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
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"
1163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1164 egrep "yes" >/dev/null 2>&1; then
1166 userv_cv_hdr_wcoredump=yes
1169 userv_cv_hdr_wcoredump=no
1175 echo "$ac_t""$userv_cv_hdr_wcoredump" 1>&6
1176 if test $userv_cv_hdr_wcoredump = yes
1178 cat >> confdefs.h <<\EOF
1179 #define HAVE_WCOREDUMP 1
1185 if test "${GCC-no}" = yes; then
1194 echo $ac_n "checking your C compiler""... $ac_c" 1>&6
1195 echo "configure:1196: checking your C compiler" >&5
1196 if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1208 if { (eval echo configure:1209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1221 if test "x$dpkg_cv_c_works" = xyes; then
1223 echo "$ac_t""works" 1>&6
1226 echo "$ac_t""broken" 1>&6
1227 { echo "configure: error: C compiler is broken" 1>&2; exit 1; }
1232 echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
1233 echo "configure:1234: checking __attribute__((,,))" >&5
1234 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1243 extern int testfunction(int x) __attribute__((,,))
1246 if { (eval echo configure:1247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1248 dpkg_cv_c_attribute_supported=yes
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1253 dpkg_cv_c_attribute_supported=no
1259 if test "x$dpkg_cv_c_attribute_supported" = xyes; then
1261 echo "$ac_t""yes" 1>&6
1262 cat >> confdefs.h <<\EOF
1263 #define HAVE_GNUC25_ATTRIB 1
1267 echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
1268 echo "configure:1269: checking __attribute__((noreturn))" >&5
1269 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1273 cat > conftest.$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1278 extern int testfunction(int x) __attribute__((noreturn))
1281 if { (eval echo configure:1282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1283 dpkg_cv_c_attribute_noreturn=yes
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1288 dpkg_cv_c_attribute_noreturn=no
1294 if test "x$dpkg_cv_c_attribute_noreturn" = xyes; then
1296 echo "$ac_t""yes" 1>&6
1297 cat >> confdefs.h <<\EOF
1298 #define HAVE_GNUC25_NORETURN 1
1303 echo "$ac_t""no" 1>&6
1307 echo $ac_n "checking __attribute__((unused))""... $ac_c" 1>&6
1308 echo "configure:1309: checking __attribute__((unused))" >&5
1309 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_unused'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftest.$ac_ext <<EOF
1314 #line 1315 "configure"
1315 #include "confdefs.h"
1318 extern int testfunction(int x) __attribute__((unused))
1321 if { (eval echo configure:1322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323 dpkg_cv_c_attribute_unused=yes
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1328 dpkg_cv_c_attribute_unused=no
1334 if test "x$dpkg_cv_c_attribute_unused" = xyes; then
1336 echo "$ac_t""yes" 1>&6
1337 cat >> confdefs.h <<\EOF
1338 #define HAVE_GNUC25_UNUSED 1
1343 echo "$ac_t""no" 1>&6
1347 echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
1348 echo "configure:1349: checking __attribute__((format...))" >&5
1349 if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1358 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
1361 if { (eval echo configure:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363 dpkg_cv_attribute_format=yes
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1368 dpkg_cv_attribute_format=no
1374 if test "x$dpkg_cv_attribute_format" = xyes; then
1376 echo "$ac_t""yes" 1>&6
1377 cat >> confdefs.h <<\EOF
1378 #define HAVE_GNUC25_PRINTFFORMAT 1
1383 echo "$ac_t""no" 1>&6
1388 echo "$ac_t""no" 1>&6
1398 echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6
1399 echo "configure:1400: checking GCC warning flag(s) -Wall -Wno-implicit" >&5
1400 if test "${GCC-no}" = yes
1402 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1406 oldcflags="${CFLAGS-}"
1407 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror"
1408 cat > conftest.$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1417 strcmp("a","b"); fprintf(stdout,"test ok\n");
1421 if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1423 dpkg_cv_c_gcc_warn_all=yes
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1428 dpkg_cv_c_gcc_warn_all=no
1431 CFLAGS="${oldcflags}"
1434 if test "x$dpkg_cv_c_gcc_warn_all" = xyes; then
1435 CWARNS="${CWARNS} -Wall -Wno-implicit"
1436 echo "$ac_t""ok" 1>&6
1438 dpkg_cv_c_gcc_warn_all=''
1439 echo "$ac_t""no" 1>&6
1442 echo "$ac_t""no" 1>&6
1446 echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6
1447 echo "configure:1448: checking GCC warning flag(s) -Wwrite-strings" >&5
1448 if test "${GCC-no}" = yes
1450 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1454 oldcflags="${CFLAGS-}"
1455 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1465 strcmp("a","b"); fprintf(stdout,"test ok\n");
1469 if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1471 dpkg_cv_c_gcc_warn_writestrings=yes
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1476 dpkg_cv_c_gcc_warn_writestrings=no
1479 CFLAGS="${oldcflags}"
1482 if test "x$dpkg_cv_c_gcc_warn_writestrings" = xyes; then
1483 CWARNS="${CWARNS} -Wwrite-strings"
1484 echo "$ac_t""ok" 1>&6
1486 dpkg_cv_c_gcc_warn_writestrings=''
1487 echo "$ac_t""no" 1>&6
1490 echo "$ac_t""no" 1>&6
1494 echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6
1495 echo "configure:1496: checking GCC warning flag(s) -Wpointer-arith" >&5
1496 if test "${GCC-no}" = yes
1498 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1502 oldcflags="${CFLAGS-}"
1503 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1513 strcmp("a","b"); fprintf(stdout,"test ok\n");
1517 if { (eval echo configure:1518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519 dpkg_cv_c_gcc_warn_pointerarith=yes
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1524 dpkg_cv_c_gcc_warn_pointerarith=no
1527 CFLAGS="${oldcflags}"
1530 if test "x$dpkg_cv_c_gcc_warn_pointerarith" = xyes; then
1531 CWARNS="${CWARNS} -Wpointer-arith"
1532 echo "$ac_t""ok" 1>&6
1534 dpkg_cv_c_gcc_warn_pointerarith=''
1535 echo "$ac_t""no" 1>&6
1538 echo "$ac_t""no" 1>&6
1542 echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6
1543 echo "configure:1544: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5
1544 if test "${GCC-no}" = yes
1546 if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1550 oldcflags="${CFLAGS-}"
1551 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1561 strcmp("a","b"); fprintf(stdout,"test ok\n");
1565 if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1567 dpkg_cv_c_gcc_warn_implicit=yes
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1572 dpkg_cv_c_gcc_warn_implicit=no
1575 CFLAGS="${oldcflags}"
1578 if test "x$dpkg_cv_c_gcc_warn_implicit" = xyes; then
1579 CWARNS="${CWARNS} -Wimplicit -Wnested-externs"
1580 echo "$ac_t""ok" 1>&6
1582 dpkg_cv_c_gcc_warn_implicit=''
1583 echo "$ac_t""no" 1>&6
1586 echo "$ac_t""no" 1>&6
1590 if test "${GCC-no}" = yes; then
1591 CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes"
1593 CFLAGS="`echo $CFLAGS $CWARNS | sed -e 's/-O[0-9]*/$(OPTIMISE)/'`"
1596 VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' debian/changelog`"
1597 echo will build version $VERSION
1600 cat > confcache <<\EOF
1601 # This file is a shell script that caches the results of configure
1602 # tests run on this system so they can be shared between configure
1603 # scripts and configure runs. It is not useful on other systems.
1604 # If it contains results you don't want to keep, you may remove or edit it.
1606 # By default, configure uses ./config.cache as the cache file,
1607 # creating it if it does not exist already. You can give configure
1608 # the --cache-file=FILE option to use a different cache file; that is
1609 # what configure does when it calls configure scripts in
1610 # subdirectories, so they share the cache.
1611 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1612 # config.status only pays attention to the cache file if you give it the
1613 # --recheck option to rerun configure.
1616 # The following way of writing the cache mishandles newlines in values,
1617 # but we know of no workaround that is simple, portable, and efficient.
1618 # So, don't put newlines in cache variables' values.
1619 # Ultrix sh set writes to stderr and can't be redirected directly,
1620 # and sets the high bit in the cache file unless we assign to the vars.
1622 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1624 # `set' does not quote correctly, so add quotes (double-quote substitution
1625 # turns \\\\ into \\, and sed turns \\ into \).
1627 -e "s/'/'\\\\''/g" \
1628 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1631 # `set' quotes correctly as required by POSIX, so do not add quotes.
1632 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1635 if cmp -s $cache_file confcache; then
1638 if test -w $cache_file; then
1639 echo "updating cache $cache_file"
1640 cat confcache > $cache_file
1642 echo "not updating unwritable cache $cache_file"
1647 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1650 # Let make expand exec_prefix.
1651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1653 # Any assignment to VPATH causes Sun make to only execute
1654 # the first set of double-colon rules, so remove it if not needed.
1655 # If there is a colon in the path, we need to keep it.
1656 if test "x$srcdir" = x.; then
1657 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1660 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1662 DEFS=-DHAVE_CONFIG_H
1664 # Without the "./", some shells look in PATH for config.status.
1665 : ${CONFIG_STATUS=./config.status}
1667 echo creating $CONFIG_STATUS
1668 rm -f $CONFIG_STATUS
1669 cat > $CONFIG_STATUS <<EOF
1671 # Generated automatically by configure.
1672 # Run this file to recreate the current configuration.
1673 # This directory was configured as follows,
1674 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1676 # $0 $ac_configure_args
1678 # Compiler output produced by configure, useful for debugging
1679 # configure, is in ./config.log if it exists.
1681 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1684 case "\$ac_option" in
1685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1686 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1687 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1688 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1689 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1691 -help | --help | --hel | --he | --h)
1692 echo "\$ac_cs_usage"; exit 0 ;;
1693 *) echo "\$ac_cs_usage"; exit 1 ;;
1697 ac_given_srcdir=$srcdir
1698 ac_given_INSTALL="$INSTALL"
1700 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1702 cat >> $CONFIG_STATUS <<EOF
1704 # Protect against being on the right side of a sed subst in config.status.
1705 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1706 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1710 s%@CFLAGS@%$CFLAGS%g
1711 s%@CPPFLAGS@%$CPPFLAGS%g
1712 s%@CXXFLAGS@%$CXXFLAGS%g
1713 s%@FFLAGS@%$FFLAGS%g
1715 s%@LDFLAGS@%$LDFLAGS%g
1717 s%@exec_prefix@%$exec_prefix%g
1718 s%@prefix@%$prefix%g
1719 s%@program_transform_name@%$program_transform_name%g
1720 s%@bindir@%$bindir%g
1721 s%@sbindir@%$sbindir%g
1722 s%@libexecdir@%$libexecdir%g
1723 s%@datadir@%$datadir%g
1724 s%@sysconfdir@%$sysconfdir%g
1725 s%@sharedstatedir@%$sharedstatedir%g
1726 s%@localstatedir@%$localstatedir%g
1727 s%@libdir@%$libdir%g
1728 s%@includedir@%$includedir%g
1729 s%@oldincludedir@%$oldincludedir%g
1730 s%@infodir@%$infodir%g
1731 s%@mandir@%$mandir%g
1732 s%@DEBUGDEFS@%$DEBUGDEFS%g
1733 s%@DEBUGLIBS@%$DEBUGLIBS%g
1736 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1737 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1738 s%@INSTALL_DATA@%$INSTALL_DATA%g
1739 s%@MD5SUM_SIMPLE@%$MD5SUM_SIMPLE%g
1740 s%@OPTIMISE@%$OPTIMISE%g
1741 s%@CWARNS@%$CWARNS%g
1742 s%@VERSION@%$VERSION%g
1747 cat >> $CONFIG_STATUS <<\EOF
1749 # Split the substitutions into bite-sized pieces for seds with
1750 # small command number limits, like on Digital OSF/1 and HP-UX.
1751 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1752 ac_file=1 # Number of current file.
1753 ac_beg=1 # First line for current file.
1754 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1757 while $ac_more_lines; do
1758 if test $ac_beg -gt 1; then
1759 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1761 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1763 if test ! -s conftest.s$ac_file; then
1765 rm -f conftest.s$ac_file
1767 if test -z "$ac_sed_cmds"; then
1768 ac_sed_cmds="sed -f conftest.s$ac_file"
1770 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1772 ac_file=`expr $ac_file + 1`
1774 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1777 if test -z "$ac_sed_cmds"; then
1782 cat >> $CONFIG_STATUS <<EOF
1784 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1786 cat >> $CONFIG_STATUS <<\EOF
1787 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1790 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1791 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1792 *) ac_file_in="${ac_file}.in" ;;
1795 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1797 # Remove last slash and all that follows it. Not all systems have dirname.
1798 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1799 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1800 # The file is in a subdirectory.
1801 test ! -d "$ac_dir" && mkdir "$ac_dir"
1802 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1803 # A "../" for each directory in $ac_dir_suffix.
1804 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1806 ac_dir_suffix= ac_dots=
1809 case "$ac_given_srcdir" in
1811 if test -z "$ac_dots"; then top_srcdir=.
1812 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1813 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1815 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1816 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1819 case "$ac_given_INSTALL" in
1820 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1821 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1824 echo creating "$ac_file"
1826 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1828 *Makefile*) ac_comsub="1i\\
1829 # $configure_input" ;;
1833 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1835 s%@configure_input@%$configure_input%g
1836 s%@srcdir@%$srcdir%g
1837 s%@top_srcdir@%$top_srcdir%g
1838 s%@INSTALL@%$INSTALL%g
1839 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1843 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1844 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1846 # ac_d sets the value in "#define NAME VALUE" lines.
1847 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1848 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1851 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1852 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1853 ac_uB='\([ ]\)%\1#\2define\3'
1856 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1857 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1858 ac_eB='$%\1#\2define\3'
1862 if test "${CONFIG_HEADERS+set}" != set; then
1864 cat >> $CONFIG_STATUS <<EOF
1865 CONFIG_HEADERS="config.h"
1867 cat >> $CONFIG_STATUS <<\EOF
1869 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1872 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1873 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1874 *) ac_file_in="${ac_file}.in" ;;
1877 echo creating $ac_file
1879 rm -f conftest.frag conftest.in conftest.out
1880 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1881 cat $ac_file_inputs > conftest.in
1885 # Transform confdefs.h into a sed script conftest.vals that substitutes
1886 # the proper values into config.h.in to produce config.h. And first:
1887 # Protect against being on the right side of a sed subst in config.status.
1888 # Protect against being in an unquoted here document in config.status.
1890 cat > conftest.hdr <<\EOF
1893 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1897 sed -n -f conftest.hdr confdefs.h > conftest.vals
1900 # This sed command replaces #undef with comments. This is necessary, for
1901 # example, in the case of _POSIX_SOURCE, which is predefined and required
1902 # on some systems where configure will not decide to define it.
1903 cat >> conftest.vals <<\EOF
1904 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1907 # Break up conftest.vals because some shells have a limit on
1908 # the size of here documents, and old seds have small limits too.
1913 ac_lines=`grep -c . conftest.vals`
1914 # grep -c gives empty output for an empty file on some AIX systems.
1915 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1916 # Write a limited-size here document to conftest.frag.
1917 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1918 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1920 sed -f conftest.frag conftest.in > conftest.out
1922 mv conftest.out conftest.in
1924 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1926 mv conftest.tail conftest.vals
1930 cat >> $CONFIG_STATUS <<\EOF
1931 rm -f conftest.frag conftest.h
1932 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1933 cat conftest.in >> conftest.h
1935 if cmp -s $ac_file conftest.h 2>/dev/null; then
1936 echo "$ac_file is unchanged"
1939 # Remove last slash and all that follows it. Not all systems have dirname.
1940 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1941 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1942 # The file is in a subdirectory.
1943 test ! -d "$ac_dir" && mkdir "$ac_dir"
1946 mv conftest.h $ac_file
1951 cat >> $CONFIG_STATUS <<EOF
1954 cat >> $CONFIG_STATUS <<\EOF
1958 chmod +x $CONFIG_STATUS
1959 rm -fr confdefs* $ac_clean_files
1960 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1