3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
5 # Copyright (C) 1992, 1993, 1994 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:
15 --enable-install-termcap install the termcap data file"
17 --with-termcap=FILE use data file FILE instead of /etc/termcap"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
41 # Initialize some other variables.
48 # If the previous option needs an argument, assign it.
49 if test -n "$ac_prev"; then
50 eval "$ac_prev=\$ac_option"
56 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
60 # Accept the important Cygnus configure options, so we can diagnose typos.
64 -build | --build | --buil | --bui | --bu | --b)
66 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
69 -cache-file | --cache-file | --cache-fil | --cache-fi \
70 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
72 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
73 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
74 cache_file="$ac_optarg" ;;
76 -disable-* | --disable-*)
77 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
78 # Reject names that are not valid shell variable names.
79 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
80 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
82 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
83 eval "enable_${ac_feature}=no" ;;
85 -enable-* | --enable-*)
86 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
87 # Reject names that are not valid shell variable names.
88 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
89 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
91 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
96 eval "enable_${ac_feature}='$ac_optarg'" ;;
98 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
99 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
100 | --exec | --exe | --ex)
101 ac_prev=exec_prefix ;;
102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
104 | --exec=* | --exe=* | --ex=*)
105 exec_prefix="$ac_optarg" ;;
107 -gas | --gas | --ga | --g)
108 # Obsolete; use --with-gas.
111 -help | --help | --hel | --he)
112 # Omit some internal or obsolete options to make the list less imposing.
113 # This message is too long to be a string in the A/UX 3.1 sh.
115 Usage: configure [options] [host]
116 Options: [defaults in brackets after descriptions]
118 --cache-file=FILE cache test results in FILE
119 --help print this message
120 --no-create do not create output files
121 --quiet, --silent do not print \`checking...' messages
122 --version print the version of autoconf that created configure
123 Directory and file names:
124 --prefix=PREFIX install architecture-independent files in PREFIX
126 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
128 --srcdir=DIR find the sources in DIR [configure dir or ..]
129 --program-prefix=PREFIX prepend PREFIX to installed program names
130 --program-suffix=SUFFIX append SUFFIX to installed program names
131 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
133 --build=BUILD configure for building on BUILD [BUILD=HOST]
134 --host=HOST configure for HOST [guessed]
135 --target=TARGET configure for TARGET [TARGET=HOST]
136 Features and packages:
137 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
138 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
141 --x-includes=DIR X include files are in DIR
142 --x-libraries=DIR X library files are in DIR
143 --enable and --with options recognized:$ac_help
147 -host | --host | --hos | --ho)
149 -host=* | --host=* | --hos=* | --ho=*)
153 # Obsolete; use --without-fp.
156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
167 prefix="$ac_optarg" ;;
169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
170 | --program-pre | --program-pr | --program-p)
171 ac_prev=program_prefix ;;
172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
174 program_prefix="$ac_optarg" ;;
176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
177 | --program-suf | --program-su | --program-s)
178 ac_prev=program_suffix ;;
179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
181 program_suffix="$ac_optarg" ;;
183 -program-transform-name | --program-transform-name \
184 | --program-transform-nam | --program-transform-na \
185 | --program-transform-n | --program-transform- \
186 | --program-transform | --program-transfor \
187 | --program-transfo | --program-transf \
188 | --program-trans | --program-tran \
189 | --progr-tra | --program-tr | --program-t)
190 ac_prev=program_transform_name ;;
191 -program-transform-name=* | --program-transform-name=* \
192 | --program-transform-nam=* | --program-transform-na=* \
193 | --program-transform-n=* | --program-transform-=* \
194 | --program-transform=* | --program-transfor=* \
195 | --program-transfo=* | --program-transf=* \
196 | --program-trans=* | --program-tran=* \
197 | --progr-tra=* | --program-tr=* | --program-t=*)
198 program_transform_name="$ac_optarg" ;;
200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
201 | -silent | --silent | --silen | --sile | --sil)
204 -site | --site | --sit)
206 -site=* | --site=* | --sit=*)
209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
212 srcdir="$ac_optarg" ;;
214 -target | --target | --targe | --targ | --tar | --ta | --t)
216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
217 target="$ac_optarg" ;;
219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
222 -version | --version | --versio | --versi | --vers)
223 echo "configure generated by autoconf version 2.4"
227 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
230 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
232 ac_package=`echo $ac_package| sed 's/-/_/g'`
237 eval "with_${ac_package}='$ac_optarg'" ;;
239 -without-* | --without-*)
240 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
245 ac_package=`echo $ac_package| sed 's/-/_/g'`
246 eval "with_${ac_package}=no" ;;
249 # Obsolete; use --with-x.
252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
253 | --x-incl | --x-inc | --x-in | --x-i)
254 ac_prev=x_includes ;;
255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
257 x_includes="$ac_optarg" ;;
259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
261 ac_prev=x_libraries ;;
262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
264 x_libraries="$ac_optarg" ;;
266 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
270 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
271 echo "configure: warning: $ac_option: invalid host type" 1>&2
273 if test "x$nonopt" != xNONE; then
274 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
282 if test -n "$ac_prev"; then
283 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
286 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
288 # File descriptor usage:
291 # 2 errors and warnings
292 # 3 some systems may open it to /dev/tty
293 # 4 used on the Kubota Titan
294 # 6 checking for... messages and results
295 # 5 compiler messages saved in config.log
296 if test "$silent" = yes; then
304 This file contains any messages produced by compilers while
305 running configure, to aid debugging if configure makes a mistake.
308 # Strip out --no-create and --no-recursion so they do not pile up.
309 # Also quote any args containing shell metacharacters.
314 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 | --no-cr | --no-c) ;;
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
319 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
320 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
325 # Only set LANG and LC_ALL to C if already set.
326 # These must not be set unconditionally because not all systems understand
327 # e.g. LANG=C (notably SCO).
328 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
329 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
332 rm -rf conftest* confdefs.h
333 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
336 # A filename unique to this package, relative to the directory that
337 # configure is in, which we can look for to find out if srcdir is correct.
338 ac_unique_file=termcap.h
340 # Find the source files, if location was not specified.
341 if test -z "$srcdir"; then
342 ac_srcdir_defaulted=yes
343 # Try the directory containing this script, then its parent.
345 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
346 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
348 if test ! -r $srcdir/$ac_unique_file; then
352 ac_srcdir_defaulted=no
354 if test ! -r $srcdir/$ac_unique_file; then
355 if test "$ac_srcdir_defaulted" = yes; then
356 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
358 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
361 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
363 # Prefer explicitly selected file to automatically selected ones.
364 if test -z "$CONFIG_SITE"; then
365 if test "x$prefix" != xNONE; then
366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
371 for ac_site_file in $CONFIG_SITE; do
372 if test -r "$ac_site_file"; then
373 echo "loading site script $ac_site_file"
378 if test -r "$cache_file"; then
379 echo "loading cache $cache_file"
382 echo "creating cache $cache_file"
387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
388 ac_cpp='$CPP $CPPFLAGS'
389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
390 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
392 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
393 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
394 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
401 ac_n= ac_c='\c' ac_t=
406 # Check whether --enable-install-termcap or --disable-install-termcap was given.
407 enableval="$enable_install_termcap"
408 if test -n "$enableval"; then
409 if test $enableval = yes; then
410 installdata=install-data uninstalldata=uninstall-data
415 # Check whether --with-termcap or --without-termcap was given.
416 withval="$with_termcap"
417 if test -n "$withval"; then
420 termcapfile=/etc/termcap
424 # Extract the first word of "gcc", so it can be a program name with args.
425 set dummy gcc; ac_word=$2
426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
427 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
428 echo $ac_n "(cached) $ac_c" 1>&6
430 if test -n "$CC"; then
431 ac_cv_prog_CC="$CC" # Let the user override the test.
433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
434 for ac_dir in $PATH; do
435 test -z "$ac_dir" && ac_dir=.
436 if test -f $ac_dir/$ac_word; then
442 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
446 if test -n "$CC"; then
447 echo "$ac_t""$CC" 1>&6
449 echo "$ac_t""no" 1>&6
453 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
454 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
455 echo $ac_n "(cached) $ac_c" 1>&6
457 cat > conftest.c <<EOF
462 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
468 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
469 if test $ac_cv_prog_gcc = yes; then
471 if test "${CFLAGS+set}" != set; then
472 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
473 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
474 echo $ac_n "(cached) $ac_c" 1>&6
476 echo 'void f(){}' > conftest.c
477 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
485 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
486 if test $ac_cv_prog_gcc_g = yes; then
494 test "${CFLAGS+set}" = set || CFLAGS="-g"
497 # Extract the first word of "ranlib", so it can be a program name with args.
498 set dummy ranlib; ac_word=$2
499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
500 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
501 echo $ac_n "(cached) $ac_c" 1>&6
503 if test -n "$RANLIB"; then
504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
507 for ac_dir in $PATH; do
508 test -z "$ac_dir" && ac_dir=.
509 if test -f $ac_dir/$ac_word; then
510 ac_cv_prog_RANLIB="ranlib"
515 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
518 RANLIB="$ac_cv_prog_RANLIB"
519 if test -n "$RANLIB"; then
520 echo "$ac_t""$RANLIB" 1>&6
522 echo "$ac_t""no" 1>&6
526 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
527 if test -f $ac_dir/install-sh; then
529 ac_install_sh="$ac_aux_dir/install-sh -c"
531 elif test -f $ac_dir/install.sh; then
533 ac_install_sh="$ac_aux_dir/install.sh -c"
537 if test -z "$ac_aux_dir"; then
538 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
540 ac_config_guess=$ac_aux_dir/config.guess
541 ac_config_sub=$ac_aux_dir/config.sub
542 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544 # Find a good install program. We prefer a C program (faster),
545 # so one script is as good as another. But avoid the broken or
546 # incompatible versions:
547 # SysV /etc/install, /usr/sbin/install
548 # SunOS /usr/etc/install
551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
553 # ./install, which can be erroneously created by make from ./install.sh.
554 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
555 if test -z "$INSTALL"; then
556 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
560 for ac_dir in $PATH; do
561 # Account for people who put trailing slashes in PATH elements.
563 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
565 # OSF1 and SCO ODT 3.0 have their own names for install.
566 for ac_prog in ginstall installbsd scoinst install; do
567 if test -f $ac_dir/$ac_prog; then
568 if test $ac_prog = install &&
569 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
570 # AIX install. It has an incompatible calling convention.
571 # OSF/1 installbsd also uses dspmsg, but is usable.
574 ac_cv_path_install="$ac_dir/$ac_prog -c"
583 # As a last resort, use the slow shell script.
584 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
586 INSTALL="$ac_cv_path_install"
588 echo "$ac_t""$INSTALL" 1>&6
590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
591 # It thinks the first close brace ends the variable substitution.
592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
596 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
597 # On Suns, sometimes $CPP names a directory.
598 if test -n "$CPP" && test -d "$CPP"; then
601 if test -z "$CPP"; then
602 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
603 echo $ac_n "(cached) $ac_c" 1>&6
605 # This must be in double quotes, not single quotes, because CPP may get
606 # substituted into the Makefile and "${CC-cc}" will confuse make.
608 # On the NeXT, cc -E runs the code through the compiler's parser,
609 # not just through cpp.
610 cat > conftest.$ac_ext <<EOF
611 #line 612 "configure"
612 #include "confdefs.h"
616 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
617 ac_err=`grep -v '^ *+' conftest.out`
618 if test -z "$ac_err"; then
623 CPP="${CC-cc} -E -traditional-cpp"
624 cat > conftest.$ac_ext <<EOF
625 #line 626 "configure"
626 #include "confdefs.h"
630 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
631 ac_err=`grep -v '^ *+' conftest.out`
632 if test -z "$ac_err"; then
642 ac_cv_prog_CPP="$CPP"
644 CPP="$ac_cv_prog_CPP"
646 ac_cv_prog_CPP="$CPP"
648 echo "$ac_t""$CPP" 1>&6
650 for ac_hdr in string.h unistd.h
652 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 cat > conftest.$ac_ext <<EOF
658 #line 659 "configure"
659 #include "confdefs.h"
662 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
663 ac_err=`grep -v '^ *+' conftest.out`
664 if test -z "$ac_err"; then
666 eval "ac_cv_header_$ac_safe=yes"
670 eval "ac_cv_header_$ac_safe=no"
674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
675 echo "$ac_t""yes" 1>&6
676 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
677 cat >> confdefs.h <<EOF
682 echo "$ac_t""no" 1>&6
686 # If we cannot run a trivial program, we must be cross compiling.
687 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
688 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 if test "$cross_compiling" = yes; then
694 cat > conftest.$ac_ext <<EOF
695 #line 696 "configure"
696 #include "confdefs.h"
700 if test -s conftest && (./conftest; exit) 2>/dev/null; then
708 cross_compiling=$ac_cv_c_cross
709 echo "$ac_t""$ac_cv_c_cross" 1>&6
711 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
712 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 cat > conftest.$ac_ext <<EOF
716 #line 717 "configure"
717 #include "confdefs.h"
723 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
724 ac_err=`grep -v '^ *+' conftest.out`
725 if test -z "$ac_err"; then
727 ac_cv_header_stdc=yes
735 if test $ac_cv_header_stdc = yes; then
736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
737 cat > conftest.$ac_ext <<EOF
738 #line 739 "configure"
739 #include "confdefs.h"
742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
743 egrep "memchr" >/dev/null 2>&1; then
753 if test $ac_cv_header_stdc = yes; then
754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
755 cat > conftest.$ac_ext <<EOF
756 #line 757 "configure"
757 #include "confdefs.h"
760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
761 egrep "free" >/dev/null 2>&1; then
771 if test $ac_cv_header_stdc = yes; then
772 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
773 if test "$cross_compiling" = yes; then
776 cat > conftest.$ac_ext <<EOF
777 #line 778 "configure"
778 #include "confdefs.h"
780 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
781 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
783 int main () { int i; for (i = 0; i < 256; i++)
784 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
789 if test -s conftest && (./conftest; exit) 2>/dev/null; then
798 echo "$ac_t""$ac_cv_header_stdc" 1>&6
799 if test $ac_cv_header_stdc = yes; then
800 cat >> confdefs.h <<\EOF
801 #define STDC_HEADERS 1
808 cat > confcache <<\EOF
809 # This file is a shell script that caches the results of configure
810 # tests run on this system so they can be shared between configure
811 # scripts and configure runs. It is not useful on other systems.
812 # If it contains results you don't want to keep, you may remove or edit it.
814 # By default, configure uses ./config.cache as the cache file,
815 # creating it if it does not exist already. You can give configure
816 # the --cache-file=FILE option to use a different cache file; that is
817 # what configure does when it calls configure scripts in
818 # subdirectories, so they share the cache.
819 # Giving --cache-file=/dev/null disables caching, for debugging configure.
820 # config.status only pays attention to the cache file if you give it the
821 # --recheck option to rerun configure.
824 # Ultrix sh set writes to stderr and can't be redirected directly,
825 # and sets the high bit in the cache file unless we assign to the vars.
827 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
829 if cmp -s $cache_file confcache; then
832 if test -w $cache_file; then
833 echo "updating cache $cache_file"
834 cat confcache > $cache_file
836 echo "not updating unwritable cache $cache_file"
841 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
844 # Let make expand exec_prefix.
845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
847 # Any assignment to VPATH causes Sun make to only execute
848 # the first set of double-colon rules, so remove it if not needed.
849 # If there is a colon in the path, we need to keep it.
850 if test "x$srcdir" = x.; then
851 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
854 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
856 # Transform confdefs.h into DEFS.
857 # Protect against shell expansion while executing Makefile rules.
858 # Protect against Makefile macro expansion.
859 cat > conftest.defs <<\EOF
860 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
861 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
866 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
870 # Without the "./", some shells look in PATH for config.status.
871 : ${CONFIG_STATUS=./config.status}
873 echo creating $CONFIG_STATUS
875 cat > $CONFIG_STATUS <<EOF
877 # Generated automatically by configure.
878 # Run this file to recreate the current configuration.
879 # This directory was configured as follows,
880 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
882 # $0 $ac_configure_args
884 # Compiler output produced by configure, useful for debugging
885 # configure, is in ./config.log if it exists.
887 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
890 case "\$ac_option" in
891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
892 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
893 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
894 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
895 echo "$CONFIG_STATUS generated by autoconf version 2.4"
897 -help | --help | --hel | --he | --h)
898 echo "\$ac_cs_usage"; exit 0 ;;
899 *) echo "\$ac_cs_usage"; exit 1 ;;
903 ac_given_srcdir=$srcdir
904 ac_given_INSTALL="$INSTALL"
906 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
908 # Protect against being on the right side of a sed subst in config.status.
909 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
910 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
914 s%@CPPFLAGS@%$CPPFLAGS%g
915 s%@CXXFLAGS@%$CXXFLAGS%g
917 s%@LDFLAGS@%$LDFLAGS%g
919 s%@exec_prefix@%$exec_prefix%g
921 s%@program_transform_name@%$program_transform_name%g
922 s%@installdata@%$installdata%g
923 s%@uninstalldata@%$uninstalldata%g
924 s%@termcapfile@%$termcapfile%g
927 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
928 s%@INSTALL_DATA@%$INSTALL_DATA%g
933 cat >> $CONFIG_STATUS <<EOF
935 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
937 cat >> $CONFIG_STATUS <<\EOF
938 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
939 # Support "outfile[:infile]", defaulting infile="outfile.in".
941 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
942 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
943 *) ac_file_in="${ac_file}.in" ;;
946 # Adjust relative srcdir, etc. for subdirectories.
948 # Remove last slash and all that follows it. Not all systems have dirname.
949 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
950 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
951 # The file is in a subdirectory.
952 test ! -d "$ac_dir" && mkdir "$ac_dir"
953 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
954 # A "../" for each directory in $ac_dir_suffix.
955 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
957 ac_dir_suffix= ac_dots=
960 case "$ac_given_srcdir" in
962 if test -z "$ac_dots"; then top_srcdir=.
963 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
964 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
966 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
967 top_srcdir="$ac_dots$ac_given_srcdir" ;;
970 case "$ac_given_INSTALL" in
971 [/$]*) INSTALL="$ac_given_INSTALL" ;;
972 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
974 echo creating "$ac_file"
976 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
978 *Makefile*) ac_comsub="1i\\
979 # $configure_input" ;;
983 s%@configure_input@%$configure_input%g
985 s%@top_srcdir@%$top_srcdir%g
986 s%@INSTALL@%$INSTALL%g
987 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
995 chmod +x $CONFIG_STATUS
996 rm -fr confdefs* $ac_clean_files
997 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1