3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --enable-debug build debugging version"
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
22 cache_file=./config.cache
31 program_transform_name=s,x,x,
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
52 # Initialize some other variables.
55 SHELL=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82 bindir="$ac_optarg" ;;
84 -build | --build | --buil | --bui | --bu)
86 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89 -cache-file | --cache-file | --cache-fil | --cache-fi \
90 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94 cache_file="$ac_optarg" ;;
96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 datadir="$ac_optarg" ;;
102 -disable-* | --disable-*)
103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* | --enable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126 | --exec | --exe | --ex)
127 ac_prev=exec_prefix ;;
128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130 | --exec=* | --exe=* | --ex=*)
131 exec_prefix="$ac_optarg" ;;
133 -gas | --gas | --ga | --g)
134 # Obsolete; use --with-gas.
137 -help | --help | --hel | --he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
192 -host | --host | --hos | --ho)
194 -host=* | --host=* | --hos=* | --ho=*)
197 -includedir | --includedir | --includedi | --included | --include \
198 | --includ | --inclu | --incl | --inc)
199 ac_prev=includedir ;;
200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201 | --includ=* | --inclu=* | --incl=* | --inc=*)
202 includedir="$ac_optarg" ;;
204 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207 infodir="$ac_optarg" ;;
209 -libdir | --libdir | --libdi | --libd)
211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
212 libdir="$ac_optarg" ;;
214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215 | --libexe | --libex | --libe)
216 ac_prev=libexecdir ;;
217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218 | --libexe=* | --libex=* | --libe=*)
219 libexecdir="$ac_optarg" ;;
221 -localstatedir | --localstatedir | --localstatedi | --localstated \
222 | --localstate | --localstat | --localsta | --localst \
223 | --locals | --local | --loca | --loc | --lo)
224 ac_prev=localstatedir ;;
225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228 localstatedir="$ac_optarg" ;;
230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233 mandir="$ac_optarg" ;;
236 # Obsolete; use --without-fp.
239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249 | --oldin | --oldi | --old | --ol | --o)
250 ac_prev=oldincludedir ;;
251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254 oldincludedir="$ac_optarg" ;;
256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259 prefix="$ac_optarg" ;;
261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
262 | --program-pre | --program-pr | --program-p)
263 ac_prev=program_prefix ;;
264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266 program_prefix="$ac_optarg" ;;
268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
269 | --program-suf | --program-su | --program-s)
270 ac_prev=program_suffix ;;
271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273 program_suffix="$ac_optarg" ;;
275 -program-transform-name | --program-transform-name \
276 | --program-transform-nam | --program-transform-na \
277 | --program-transform-n | --program-transform- \
278 | --program-transform | --program-transfor \
279 | --program-transfo | --program-transf \
280 | --program-trans | --program-tran \
281 | --progr-tra | --program-tr | --program-t)
282 ac_prev=program_transform_name ;;
283 -program-transform-name=* | --program-transform-name=* \
284 | --program-transform-nam=* | --program-transform-na=* \
285 | --program-transform-n=* | --program-transform-=* \
286 | --program-transform=* | --program-transfor=* \
287 | --program-transfo=* | --program-transf=* \
288 | --program-trans=* | --program-tran=* \
289 | --progr-tra=* | --program-tr=* | --program-t=*)
290 program_transform_name="$ac_optarg" ;;
292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293 | -silent | --silent | --silen | --sile | --sil)
296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 sbindir="$ac_optarg" ;;
302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304 | --sharedst | --shareds | --shared | --share | --shar \
306 ac_prev=sharedstatedir ;;
307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 sharedstatedir="$ac_optarg" ;;
313 -site | --site | --sit)
315 -site=* | --site=* | --sit=*)
318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321 srcdir="$ac_optarg" ;;
323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324 | --syscon | --sysco | --sysc | --sys | --sy)
325 ac_prev=sysconfdir ;;
326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328 sysconfdir="$ac_optarg" ;;
330 -target | --target | --targe | --targ | --tar | --ta | --t)
332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333 target="$ac_optarg" ;;
335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
338 -version | --version | --versio | --versi | --vers)
339 echo "configure generated by autoconf version 2.13"
343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 eval "with_${ac_package}='$ac_optarg'" ;;
355 -without-* | --without-*)
356 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
365 # Obsolete; use --with-x.
368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369 | --x-incl | --x-inc | --x-in | --x-i)
370 ac_prev=x_includes ;;
371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373 x_includes="$ac_optarg" ;;
375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377 ac_prev=x_libraries ;;
378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380 x_libraries="$ac_optarg" ;;
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 if test "x$nonopt" != xNONE; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404 # File descriptor usage:
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431 | --no-cr | --no-c) ;;
432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 # Only set these to C if already set. These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=language.i4
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 if test ! -r $srcdir/$ac_unique_file; then
471 ac_srcdir_defaulted=no
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
501 echo "creating cache $cache_file"
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523 ac_n= ac_c='\c' ac_t=
536 # Check whether --enable-debug or --disable-debug was given.
537 if test "${enable_debug+set}" = set; then
538 enableval="$enable_debug"
540 if test "x$enable_debug" = xyes; then
541 DEBUGDEFS="-DDEBUG -DVARDIR='\"$crdir/vd\"' -DSYSTEMCONFIGDIR='\"$crdir/slash-etc\"' -DSERVICEUSERDIR='\"$crdir/tilde\"'"
543 echo will build debugging version
544 elif test "x$enable_debug" != xno; then
545 { echo "configure: error: --enable-debug does not allow any arguments except 'yes' and 'no'" 1>&2; exit 1; }
551 # Extract the first word of "gcc", so it can be a program name with args.
552 set dummy gcc; ac_word=$2
553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
554 echo "configure:555: checking for $ac_word" >&5
555 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
556 echo $ac_n "(cached) $ac_c" 1>&6
558 if test -n "$CC"; then
559 ac_cv_prog_CC="$CC" # Let the user override the test.
561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
563 for ac_dir in $ac_dummy; do
564 test -z "$ac_dir" && ac_dir=.
565 if test -f $ac_dir/$ac_word; then
574 if test -n "$CC"; then
575 echo "$ac_t""$CC" 1>&6
577 echo "$ac_t""no" 1>&6
580 if test -z "$CC"; then
581 # Extract the first word of "cc", so it can be a program name with args.
582 set dummy cc; ac_word=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 echo "configure:585: checking for $ac_word" >&5
585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 if test -n "$CC"; then
589 ac_cv_prog_CC="$CC" # Let the user override the test.
591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
594 for ac_dir in $ac_dummy; do
595 test -z "$ac_dir" && ac_dir=.
596 if test -f $ac_dir/$ac_word; then
597 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
606 if test $ac_prog_rejected = yes; then
607 # We found a bogon in the path, so make sure we never use it.
608 set dummy $ac_cv_prog_CC
610 if test $# -gt 0; then
611 # We chose a different compiler from the bogus one.
612 # However, it has the same basename, so the bogon will be chosen
613 # first if we set CC to just the basename; use the full file name.
615 set dummy "$ac_dir/$ac_word" "$@"
623 if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
626 echo "$ac_t""no" 1>&6
629 if test -z "$CC"; then
632 # Extract the first word of "cl", so it can be a program name with args.
633 set dummy cl; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
644 for ac_dir in $ac_dummy; do
645 test -z "$ac_dir" && ac_dir=.
646 if test -f $ac_dir/$ac_word; then
655 if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
658 echo "$ac_t""no" 1>&6
663 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
666 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
667 echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
671 ac_cpp='$CPP $CPPFLAGS'
672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
674 cross_compiling=$ac_cv_prog_cc_cross
676 cat > conftest.$ac_ext << EOF
678 #line 679 "configure"
679 #include "confdefs.h"
683 if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
684 ac_cv_prog_cc_works=yes
685 # If we can't run a trivial program, we are probably using a cross compiler.
686 if (./conftest; exit) 2>/dev/null; then
687 ac_cv_prog_cc_cross=no
689 ac_cv_prog_cc_cross=yes
692 echo "configure: failed program was:" >&5
693 cat conftest.$ac_ext >&5
694 ac_cv_prog_cc_works=no
698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
699 ac_cpp='$CPP $CPPFLAGS'
700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
702 cross_compiling=$ac_cv_prog_cc_cross
704 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
705 if test $ac_cv_prog_cc_works = no; then
706 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
708 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
709 echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
710 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
711 cross_compiling=$ac_cv_prog_cc_cross
713 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
714 echo "configure:715: checking whether we are using GNU C" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
718 cat > conftest.c <<EOF
723 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
730 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
732 if test $ac_cv_prog_gcc = yes; then
738 ac_test_CFLAGS="${CFLAGS+set}"
739 ac_save_CFLAGS="$CFLAGS"
741 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
742 echo "configure:743: checking whether ${CC-cc} accepts -g" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 echo 'void f(){}' > conftest.c
747 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
756 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
757 if test "$ac_test_CFLAGS" = set; then
758 CFLAGS="$ac_save_CFLAGS"
759 elif test $ac_cv_prog_cc_g = yes; then
760 if test "$GCC" = yes; then
766 if test "$GCC" = yes; then
773 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
774 echo "configure:775: checking how to run the C preprocessor" >&5
775 # On Suns, sometimes $CPP names a directory.
776 if test -n "$CPP" && test -d "$CPP"; then
779 if test -z "$CPP"; then
780 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 # This must be in double quotes, not single quotes, because CPP may get
784 # substituted into the Makefile and "${CC-cc}" will confuse make.
786 # On the NeXT, cc -E runs the code through the compiler's parser,
787 # not just through cpp.
788 cat > conftest.$ac_ext <<EOF
789 #line 790 "configure"
790 #include "confdefs.h"
794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
795 { (eval echo configure:796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
797 if test -z "$ac_err"; then
801 echo "configure: failed program was:" >&5
802 cat conftest.$ac_ext >&5
804 CPP="${CC-cc} -E -traditional-cpp"
805 cat > conftest.$ac_ext <<EOF
806 #line 807 "configure"
807 #include "confdefs.h"
811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
812 { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
814 if test -z "$ac_err"; then
818 echo "configure: failed program was:" >&5
819 cat conftest.$ac_ext >&5
821 CPP="${CC-cc} -nologo -E"
822 cat > conftest.$ac_ext <<EOF
823 #line 824 "configure"
824 #include "confdefs.h"
828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
829 { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
831 if test -z "$ac_err"; then
835 echo "configure: failed program was:" >&5
836 cat conftest.$ac_ext >&5
845 ac_cv_prog_CPP="$CPP"
847 CPP="$ac_cv_prog_CPP"
849 ac_cv_prog_CPP="$CPP"
851 echo "$ac_t""$CPP" 1>&6
854 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
855 if test -f $ac_dir/install-sh; then
857 ac_install_sh="$ac_aux_dir/install-sh -c"
859 elif test -f $ac_dir/install.sh; then
861 ac_install_sh="$ac_aux_dir/install.sh -c"
865 if test -z "$ac_aux_dir"; then
866 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
868 ac_config_guess=$ac_aux_dir/config.guess
869 ac_config_sub=$ac_aux_dir/config.sub
870 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
872 # Find a good install program. We prefer a C program (faster),
873 # so one script is as good as another. But avoid the broken or
874 # incompatible versions:
875 # SysV /etc/install, /usr/sbin/install
876 # SunOS /usr/etc/install
879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
882 # ./install, which can be erroneously created by make from ./install.sh.
883 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
884 echo "configure:885: checking for a BSD compatible install" >&5
885 if test -z "$INSTALL"; then
886 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
890 for ac_dir in $PATH; do
891 # Account for people who put trailing slashes in PATH elements.
893 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
895 # OSF1 and SCO ODT 3.0 have their own names for install.
896 # Don't use installbsd from OSF since it installs stuff as root
898 for ac_prog in ginstall scoinst install; do
899 if test -f $ac_dir/$ac_prog; then
900 if test $ac_prog = install &&
901 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
902 # AIX install. It has an incompatible calling convention.
905 ac_cv_path_install="$ac_dir/$ac_prog -c"
916 if test "${ac_cv_path_install+set}" = set; then
917 INSTALL="$ac_cv_path_install"
919 # As a last resort, use the slow shell script. We don't cache a
920 # path for INSTALL within a source directory, because that will
921 # break other packages using the cache if that directory is
922 # removed, or if the path is relative.
923 INSTALL="$ac_install_sh"
926 echo "$ac_t""$INSTALL" 1>&6
928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
929 # It thinks the first close brace ends the variable substitution.
930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
936 for ac_prog in md5sum md5 gmd5sum
938 # Extract the first word of "$ac_prog", so it can be a program name with args.
939 set dummy $ac_prog; ac_word=$2
940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 echo "configure:942: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_MD5SUM_SIMPLE'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 if test -n "$MD5SUM_SIMPLE"; then
946 ac_cv_prog_MD5SUM_SIMPLE="$MD5SUM_SIMPLE" # Let the user override the test.
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_MD5SUM_SIMPLE="$ac_prog"
960 MD5SUM_SIMPLE="$ac_cv_prog_MD5SUM_SIMPLE"
961 if test -n "$MD5SUM_SIMPLE"; then
962 echo "$ac_t""$MD5SUM_SIMPLE" 1>&6
964 echo "$ac_t""no" 1>&6
967 test -n "$MD5SUM_SIMPLE" && break
971 CFLAGS="$CFLAGS -D_GNU_SOURCE"
973 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
974 echo "configure:975: checking for socket in -lsocket" >&5
975 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
980 LIBS="-lsocket $LIBS"
981 cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
984 /* Override any gcc2 internal prototype to avoid an error. */
985 /* We use char because int might match the return type of a gcc2
986 builtin and then its argument prototype would still apply. */
993 if { (eval echo configure:994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
995 eval "ac_cv_lib_$ac_lib_var=yes"
997 echo "configure: failed program was:" >&5
998 cat conftest.$ac_ext >&5
1000 eval "ac_cv_lib_$ac_lib_var=no"
1003 LIBS="$ac_save_LIBS"
1006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1007 echo "$ac_t""yes" 1>&6
1008 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1009 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1010 cat >> confdefs.h <<EOF
1011 #define $ac_tr_lib 1
1014 LIBS="-lsocket $LIBS"
1017 echo "$ac_t""no" 1>&6
1020 for ac_func in setenv strsignal vsnprintf
1022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_func" >&5
1024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 /* System header to define __stub macros and hopefully few prototypes,
1031 which can conflict with char $ac_func(); below. */
1033 /* Override any gcc2 internal prototype to avoid an error. */
1034 /* We use char because int might match the return type of a gcc2
1035 builtin and then its argument prototype would still apply. */
1040 /* The GNU C library defines this for functions which it implements
1041 to always fail with ENOSYS. Some functions are actually named
1042 something starting with __ and the normal name is an alias. */
1043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1051 if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1053 eval "ac_cv_func_$ac_func=yes"
1055 echo "configure: failed program was:" >&5
1056 cat conftest.$ac_ext >&5
1058 eval "ac_cv_func_$ac_func=no"
1063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1064 echo "$ac_t""yes" 1>&6
1065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1066 cat >> confdefs.h <<EOF
1067 #define $ac_tr_func 1
1071 echo "$ac_t""no" 1>&6
1076 echo $ac_n "checking for EPROTO""... $ac_c" 1>&6
1077 echo "configure:1078: checking for EPROTO" >&5
1078 if eval "test \"`echo '$''{'userv_cv_hdr_eproto'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1092 egrep "yes" >/dev/null 2>&1; then
1094 userv_cv_hdr_eproto=yes
1097 userv_cv_hdr_eproto=no
1103 echo "$ac_t""$userv_cv_hdr_eproto" 1>&6
1104 if test $userv_cv_hdr_eproto = yes
1106 cat >> confdefs.h <<\EOF
1107 #define HAVE_EPROTO 1
1112 echo $ac_n "checking for LOG_AUTHPRIV""... $ac_c" 1>&6
1113 echo "configure:1114: checking for LOG_AUTHPRIV" >&5
1114 if eval "test \"`echo '$''{'userv_cv_hdr_logauthpriv'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1128 egrep "yes" >/dev/null 2>&1; then
1130 userv_cv_hdr_logauthpriv=yes
1133 userv_cv_hdr_logauthpriv=no
1139 echo "$ac_t""$userv_cv_hdr_logauthpriv" 1>&6
1140 if test $userv_cv_hdr_logauthpriv = yes
1142 cat >> confdefs.h <<\EOF
1143 #define HAVE_LOG_AUTHPRIV 1
1148 echo $ac_n "checking for WCOREDUMP""... $ac_c" 1>&6
1149 echo "configure:1150: checking for WCOREDUMP" >&5
1150 if eval "test \"`echo '$''{'userv_cv_hdr_wcoredump'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1157 #include <sys/types.h>
1158 #include <sys/wait.h>
1164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1165 egrep "yes" >/dev/null 2>&1; then
1167 userv_cv_hdr_wcoredump=yes
1170 userv_cv_hdr_wcoredump=no
1176 echo "$ac_t""$userv_cv_hdr_wcoredump" 1>&6
1177 if test $userv_cv_hdr_wcoredump = yes
1179 cat >> confdefs.h <<\EOF
1180 #define HAVE_WCOREDUMP 1
1186 if test "${GCC-no}" = yes; then
1195 echo $ac_n "checking your C compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking your C compiler" >&5
1197 if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1209 if { (eval echo configure:1210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1222 if test "x$dpkg_cv_c_works" = xyes; then
1224 echo "$ac_t""works" 1>&6
1227 echo "$ac_t""broken" 1>&6
1228 { echo "configure: error: C compiler is broken" 1>&2; exit 1; }
1233 echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
1234 echo "configure:1235: checking __attribute__((,,))" >&5
1235 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1244 extern int testfunction(int x) __attribute__((,,))
1247 if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1249 dpkg_cv_c_attribute_supported=yes
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1254 dpkg_cv_c_attribute_supported=no
1260 if test "x$dpkg_cv_c_attribute_supported" = xyes; then
1262 echo "$ac_t""yes" 1>&6
1263 cat >> confdefs.h <<\EOF
1264 #define HAVE_GNUC25_ATTRIB 1
1268 echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
1269 echo "configure:1270: checking __attribute__((noreturn))" >&5
1270 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1279 extern int testfunction(int x) __attribute__((noreturn))
1282 if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1284 dpkg_cv_c_attribute_noreturn=yes
1286 echo "configure: failed program was:" >&5
1287 cat conftest.$ac_ext >&5
1289 dpkg_cv_c_attribute_noreturn=no
1295 if test "x$dpkg_cv_c_attribute_noreturn" = xyes; then
1297 echo "$ac_t""yes" 1>&6
1298 cat >> confdefs.h <<\EOF
1299 #define HAVE_GNUC25_NORETURN 1
1304 echo "$ac_t""no" 1>&6
1308 echo $ac_n "checking __attribute__((unused))""... $ac_c" 1>&6
1309 echo "configure:1310: checking __attribute__((unused))" >&5
1310 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_unused'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1314 cat > conftest.$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1319 extern int testfunction(int x) __attribute__((unused))
1322 if { (eval echo configure:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 dpkg_cv_c_attribute_unused=yes
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1329 dpkg_cv_c_attribute_unused=no
1335 if test "x$dpkg_cv_c_attribute_unused" = xyes; then
1337 echo "$ac_t""yes" 1>&6
1338 cat >> confdefs.h <<\EOF
1339 #define HAVE_GNUC25_UNUSED 1
1344 echo "$ac_t""no" 1>&6
1348 echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
1349 echo "configure:1350: checking __attribute__((format...))" >&5
1350 if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1359 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
1362 if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1364 dpkg_cv_attribute_format=yes
1366 echo "configure: failed program was:" >&5
1367 cat conftest.$ac_ext >&5
1369 dpkg_cv_attribute_format=no
1375 if test "x$dpkg_cv_attribute_format" = xyes; then
1377 echo "$ac_t""yes" 1>&6
1378 cat >> confdefs.h <<\EOF
1379 #define HAVE_GNUC25_PRINTFFORMAT 1
1384 echo "$ac_t""no" 1>&6
1389 echo "$ac_t""no" 1>&6
1399 echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6
1400 echo "configure:1401: checking GCC warning flag(s) -Wall -Wno-implicit" >&5
1401 if test "${GCC-no}" = yes
1403 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1407 oldcflags="${CFLAGS-}"
1408 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror"
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1418 strcmp("a","b"); fprintf(stdout,"test ok\n");
1422 if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1424 dpkg_cv_c_gcc_warn_all=yes
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1429 dpkg_cv_c_gcc_warn_all=no
1432 CFLAGS="${oldcflags}"
1435 if test "x$dpkg_cv_c_gcc_warn_all" = xyes; then
1436 CWARNS="${CWARNS} -Wall -Wno-implicit"
1437 echo "$ac_t""ok" 1>&6
1439 dpkg_cv_c_gcc_warn_all=''
1440 echo "$ac_t""no" 1>&6
1443 echo "$ac_t""no" 1>&6
1447 echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6
1448 echo "configure:1449: checking GCC warning flag(s) -Wwrite-strings" >&5
1449 if test "${GCC-no}" = yes
1451 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1455 oldcflags="${CFLAGS-}"
1456 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1466 strcmp("a","b"); fprintf(stdout,"test ok\n");
1470 if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1472 dpkg_cv_c_gcc_warn_writestrings=yes
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 dpkg_cv_c_gcc_warn_writestrings=no
1480 CFLAGS="${oldcflags}"
1483 if test "x$dpkg_cv_c_gcc_warn_writestrings" = xyes; then
1484 CWARNS="${CWARNS} -Wwrite-strings"
1485 echo "$ac_t""ok" 1>&6
1487 dpkg_cv_c_gcc_warn_writestrings=''
1488 echo "$ac_t""no" 1>&6
1491 echo "$ac_t""no" 1>&6
1495 echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6
1496 echo "configure:1497: checking GCC warning flag(s) -Wpointer-arith" >&5
1497 if test "${GCC-no}" = yes
1499 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1503 oldcflags="${CFLAGS-}"
1504 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1514 strcmp("a","b"); fprintf(stdout,"test ok\n");
1518 if { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1520 dpkg_cv_c_gcc_warn_pointerarith=yes
1522 echo "configure: failed program was:" >&5
1523 cat conftest.$ac_ext >&5
1525 dpkg_cv_c_gcc_warn_pointerarith=no
1528 CFLAGS="${oldcflags}"
1531 if test "x$dpkg_cv_c_gcc_warn_pointerarith" = xyes; then
1532 CWARNS="${CWARNS} -Wpointer-arith"
1533 echo "$ac_t""ok" 1>&6
1535 dpkg_cv_c_gcc_warn_pointerarith=''
1536 echo "$ac_t""no" 1>&6
1539 echo "$ac_t""no" 1>&6
1543 echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6
1544 echo "configure:1545: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5
1545 if test "${GCC-no}" = yes
1547 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1551 oldcflags="${CFLAGS-}"
1552 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1562 strcmp("a","b"); fprintf(stdout,"test ok\n");
1566 if { (eval echo configure:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1568 dpkg_cv_c_gcc_warn_implicit=yes
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 dpkg_cv_c_gcc_warn_implicit=no
1576 CFLAGS="${oldcflags}"
1579 if test "x$dpkg_cv_c_gcc_warn_implicit" = xyes; then
1580 CWARNS="${CWARNS} -Wimplicit -Wnested-externs"
1581 echo "$ac_t""ok" 1>&6
1583 dpkg_cv_c_gcc_warn_implicit=''
1584 echo "$ac_t""no" 1>&6
1587 echo "$ac_t""no" 1>&6
1591 if test "${GCC-no}" = yes; then
1592 CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes"
1594 CFLAGS="`echo $CFLAGS $CWARNS | sed -e 's/-O[0-9]*/$(OPTIMISE)/'`"
1597 VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' debian/changelog`"
1598 echo will build version $VERSION
1601 cat > confcache <<\EOF
1602 # This file is a shell script that caches the results of configure
1603 # tests run on this system so they can be shared between configure
1604 # scripts and configure runs. It is not useful on other systems.
1605 # If it contains results you don't want to keep, you may remove or edit it.
1607 # By default, configure uses ./config.cache as the cache file,
1608 # creating it if it does not exist already. You can give configure
1609 # the --cache-file=FILE option to use a different cache file; that is
1610 # what configure does when it calls configure scripts in
1611 # subdirectories, so they share the cache.
1612 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1613 # config.status only pays attention to the cache file if you give it the
1614 # --recheck option to rerun configure.
1617 # The following way of writing the cache mishandles newlines in values,
1618 # but we know of no workaround that is simple, portable, and efficient.
1619 # So, don't put newlines in cache variables' values.
1620 # Ultrix sh set writes to stderr and can't be redirected directly,
1621 # and sets the high bit in the cache file unless we assign to the vars.
1623 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1625 # `set' does not quote correctly, so add quotes (double-quote substitution
1626 # turns \\\\ into \\, and sed turns \\ into \).
1628 -e "s/'/'\\\\''/g" \
1629 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1632 # `set' quotes correctly as required by POSIX, so do not add quotes.
1633 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1636 if cmp -s $cache_file confcache; then
1639 if test -w $cache_file; then
1640 echo "updating cache $cache_file"
1641 cat confcache > $cache_file
1643 echo "not updating unwritable cache $cache_file"
1648 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1650 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1651 # Let make expand exec_prefix.
1652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1654 # Any assignment to VPATH causes Sun make to only execute
1655 # the first set of double-colon rules, so remove it if not needed.
1656 # If there is a colon in the path, we need to keep it.
1657 if test "x$srcdir" = x.; then
1658 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1661 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1663 DEFS=-DHAVE_CONFIG_H
1665 # Without the "./", some shells look in PATH for config.status.
1666 : ${CONFIG_STATUS=./config.status}
1668 echo creating $CONFIG_STATUS
1669 rm -f $CONFIG_STATUS
1670 cat > $CONFIG_STATUS <<EOF
1672 # Generated automatically by configure.
1673 # Run this file to recreate the current configuration.
1674 # This directory was configured as follows,
1675 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1677 # $0 $ac_configure_args
1679 # Compiler output produced by configure, useful for debugging
1680 # configure, is in ./config.log if it exists.
1682 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1685 case "\$ac_option" in
1686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1687 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1688 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1689 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1690 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1692 -help | --help | --hel | --he | --h)
1693 echo "\$ac_cs_usage"; exit 0 ;;
1694 *) echo "\$ac_cs_usage"; exit 1 ;;
1698 ac_given_srcdir=$srcdir
1699 ac_given_INSTALL="$INSTALL"
1701 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1703 cat >> $CONFIG_STATUS <<EOF
1705 # Protect against being on the right side of a sed subst in config.status.
1706 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1707 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1711 s%@CFLAGS@%$CFLAGS%g
1712 s%@CPPFLAGS@%$CPPFLAGS%g
1713 s%@CXXFLAGS@%$CXXFLAGS%g
1714 s%@FFLAGS@%$FFLAGS%g
1716 s%@LDFLAGS@%$LDFLAGS%g
1718 s%@exec_prefix@%$exec_prefix%g
1719 s%@prefix@%$prefix%g
1720 s%@program_transform_name@%$program_transform_name%g
1721 s%@bindir@%$bindir%g
1722 s%@sbindir@%$sbindir%g
1723 s%@libexecdir@%$libexecdir%g
1724 s%@datadir@%$datadir%g
1725 s%@sysconfdir@%$sysconfdir%g
1726 s%@sharedstatedir@%$sharedstatedir%g
1727 s%@localstatedir@%$localstatedir%g
1728 s%@libdir@%$libdir%g
1729 s%@includedir@%$includedir%g
1730 s%@oldincludedir@%$oldincludedir%g
1731 s%@infodir@%$infodir%g
1732 s%@mandir@%$mandir%g
1733 s%@DEBUGDEFS@%$DEBUGDEFS%g
1734 s%@DEBUGLIBS@%$DEBUGLIBS%g
1737 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1738 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1739 s%@INSTALL_DATA@%$INSTALL_DATA%g
1740 s%@MD5SUM_SIMPLE@%$MD5SUM_SIMPLE%g
1741 s%@OPTIMISE@%$OPTIMISE%g
1742 s%@CWARNS@%$CWARNS%g
1743 s%@VERSION@%$VERSION%g
1748 cat >> $CONFIG_STATUS <<\EOF
1750 # Split the substitutions into bite-sized pieces for seds with
1751 # small command number limits, like on Digital OSF/1 and HP-UX.
1752 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1753 ac_file=1 # Number of current file.
1754 ac_beg=1 # First line for current file.
1755 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1758 while $ac_more_lines; do
1759 if test $ac_beg -gt 1; then
1760 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1762 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1764 if test ! -s conftest.s$ac_file; then
1766 rm -f conftest.s$ac_file
1768 if test -z "$ac_sed_cmds"; then
1769 ac_sed_cmds="sed -f conftest.s$ac_file"
1771 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1773 ac_file=`expr $ac_file + 1`
1775 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1778 if test -z "$ac_sed_cmds"; then
1783 cat >> $CONFIG_STATUS <<EOF
1785 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1787 cat >> $CONFIG_STATUS <<\EOF
1788 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1791 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1792 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1793 *) ac_file_in="${ac_file}.in" ;;
1796 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1798 # Remove last slash and all that follows it. Not all systems have dirname.
1799 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1800 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1801 # The file is in a subdirectory.
1802 test ! -d "$ac_dir" && mkdir "$ac_dir"
1803 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1804 # A "../" for each directory in $ac_dir_suffix.
1805 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1807 ac_dir_suffix= ac_dots=
1810 case "$ac_given_srcdir" in
1812 if test -z "$ac_dots"; then top_srcdir=.
1813 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1814 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1816 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1817 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1820 case "$ac_given_INSTALL" in
1821 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1822 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1825 echo creating "$ac_file"
1827 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1829 *Makefile*) ac_comsub="1i\\
1830 # $configure_input" ;;
1834 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1836 s%@configure_input@%$configure_input%g
1837 s%@srcdir@%$srcdir%g
1838 s%@top_srcdir@%$top_srcdir%g
1839 s%@INSTALL@%$INSTALL%g
1840 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1844 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1845 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1847 # ac_d sets the value in "#define NAME VALUE" lines.
1848 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1849 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1852 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1853 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1854 ac_uB='\([ ]\)%\1#\2define\3'
1857 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1858 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1859 ac_eB='$%\1#\2define\3'
1863 if test "${CONFIG_HEADERS+set}" != set; then
1865 cat >> $CONFIG_STATUS <<EOF
1866 CONFIG_HEADERS="config.h"
1868 cat >> $CONFIG_STATUS <<\EOF
1870 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1873 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1874 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1875 *) ac_file_in="${ac_file}.in" ;;
1878 echo creating $ac_file
1880 rm -f conftest.frag conftest.in conftest.out
1881 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1882 cat $ac_file_inputs > conftest.in
1886 # Transform confdefs.h into a sed script conftest.vals that substitutes
1887 # the proper values into config.h.in to produce config.h. And first:
1888 # Protect against being on the right side of a sed subst in config.status.
1889 # Protect against being in an unquoted here document in config.status.
1891 cat > conftest.hdr <<\EOF
1894 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1898 sed -n -f conftest.hdr confdefs.h > conftest.vals
1901 # This sed command replaces #undef with comments. This is necessary, for
1902 # example, in the case of _POSIX_SOURCE, which is predefined and required
1903 # on some systems where configure will not decide to define it.
1904 cat >> conftest.vals <<\EOF
1905 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1908 # Break up conftest.vals because some shells have a limit on
1909 # the size of here documents, and old seds have small limits too.
1914 ac_lines=`grep -c . conftest.vals`
1915 # grep -c gives empty output for an empty file on some AIX systems.
1916 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1917 # Write a limited-size here document to conftest.frag.
1918 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1919 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1921 sed -f conftest.frag conftest.in > conftest.out
1923 mv conftest.out conftest.in
1925 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1927 mv conftest.tail conftest.vals
1931 cat >> $CONFIG_STATUS <<\EOF
1932 rm -f conftest.frag conftest.h
1933 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1934 cat conftest.in >> conftest.h
1936 if cmp -s $ac_file conftest.h 2>/dev/null; then
1937 echo "$ac_file is unchanged"
1940 # Remove last slash and all that follows it. Not all systems have dirname.
1941 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1942 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1943 # The file is in a subdirectory.
1944 test ! -d "$ac_dir" && mkdir "$ac_dir"
1947 mv conftest.h $ac_file
1952 cat >> $CONFIG_STATUS <<EOF
1955 cat >> $CONFIG_STATUS <<\EOF
1959 chmod +x $CONFIG_STATUS
1960 rm -fr confdefs* $ac_clean_files
1961 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1