3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.1
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 select compiler to use"
17 select compiler command line options"
19 select compiler preprocessor command line options"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
43 # Initialize some other variables.
50 # If the previous option needs an argument, assign it.
51 if test -n "$ac_prev"; then
52 eval "$ac_prev=\$ac_option"
58 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
62 # Accept the important Cygnus configure options, so we can diagnose typos.
66 -build | --build | --buil | --bui | --bu | --b)
68 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
71 -cache-file | --cache-file | --cache-fil | --cache-fi \
72 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
74 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
75 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
76 cache_file="$ac_optarg" ;;
78 -disable-* | --disable-*)
79 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
80 # Reject names that are not valid shell variable names.
81 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
82 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
84 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
85 eval "enable_${ac_feature}=no" ;;
87 -enable-* | --enable-*)
88 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
89 # Reject names that are not valid shell variable names.
90 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
91 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
93 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
98 eval "enable_${ac_feature}='$ac_optarg'" ;;
100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
102 | --exec | --exe | --ex)
103 ac_prev=exec_prefix ;;
104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
106 | --exec=* | --exe=* | --ex=*)
107 exec_prefix="$ac_optarg" ;;
109 -gas | --gas | --ga | --g)
110 # Obsolete; use --with-gas.
113 -help | --help | --hel | --he)
114 # Omit some internal or obsolete options to make the list less imposing.
115 # This message is too long to be a string in the A/UX 3.1 sh.
117 Usage: configure [options] [host]
118 Options: [defaults in brackets after descriptions]
120 --cache-file=FILE cache test results in FILE
121 --help print this message
122 --no-create do not create output files
123 --quiet, --silent do not print \`checking...' messages
124 --version print the version of autoconf that created configure
125 Directory and file names:
126 --prefix=PREFIX install architecture-independent files in PREFIX
128 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
130 --srcdir=DIR find the sources in DIR [configure dir or ..]
131 --program-prefix=PREFIX prepend PREFIX to installed program names
132 --program-suffix=SUFFIX append SUFFIX to installed program names
133 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
135 --build=BUILD configure for building on BUILD [BUILD=HOST]
136 --host=HOST configure for HOST [guessed]
137 --target=TARGET configure for TARGET [TARGET=HOST]
138 Features and packages:
139 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
140 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
141 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
142 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
143 --x-includes=DIR X include files are in DIR
144 --x-libraries=DIR X library files are in DIR
145 --enable and --with options recognized:$ac_help
149 -host | --host | --hos | --ho)
151 -host=* | --host=* | --hos=* | --ho=*)
155 # Obsolete; use --without-fp.
158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
169 prefix="$ac_optarg" ;;
171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
172 | --program-pre | --program-pr | --program-p)
173 ac_prev=program_prefix ;;
174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
176 program_prefix="$ac_optarg" ;;
178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
179 | --program-suf | --program-su | --program-s)
180 ac_prev=program_suffix ;;
181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
183 program_suffix="$ac_optarg" ;;
185 -program-transform-name | --program-transform-name \
186 | --program-transform-nam | --program-transform-na \
187 | --program-transform-n | --program-transform- \
188 | --program-transform | --program-transfor \
189 | --program-transfo | --program-transf \
190 | --program-trans | --program-tran \
191 | --progr-tra | --program-tr | --program-t)
192 ac_prev=program_transform_name ;;
193 -program-transform-name=* | --program-transform-name=* \
194 | --program-transform-nam=* | --program-transform-na=* \
195 | --program-transform-n=* | --program-transform-=* \
196 | --program-transform=* | --program-transfor=* \
197 | --program-transfo=* | --program-transf=* \
198 | --program-trans=* | --program-tran=* \
199 | --progr-tra=* | --program-tr=* | --program-t=*)
200 program_transform_name="$ac_optarg" ;;
202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
203 | -silent | --silent | --silen | --sile | --sil)
206 -site | --site | --sit)
208 -site=* | --site=* | --sit=*)
211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
214 srcdir="$ac_optarg" ;;
216 -target | --target | --targe | --targ | --tar | --ta | --t)
218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
219 target="$ac_optarg" ;;
221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
224 -version | --version | --versio | --versi | --vers)
225 echo "configure generated by autoconf version 2.1"
229 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
230 # Reject names that are not valid shell variable names.
231 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
232 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
234 ac_package=`echo $ac_package| sed 's/-/_/g'`
239 eval "with_${ac_package}='$ac_optarg'" ;;
241 -without-* | --without-*)
242 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
247 ac_package=`echo $ac_package| sed 's/-/_/g'`
248 eval "with_${ac_package}=no" ;;
251 # Obsolete; use --with-x.
254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
255 | --x-incl | --x-inc | --x-in | --x-i)
256 ac_prev=x_includes ;;
257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
259 x_includes="$ac_optarg" ;;
261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
263 ac_prev=x_libraries ;;
264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
266 x_libraries="$ac_optarg" ;;
268 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
272 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
273 echo "configure: warning: $ac_option: invalid host type" 1>&2
275 if test "x$nonopt" != xNONE; then
276 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
284 if test -n "$ac_prev"; then
285 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
288 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
290 # File descriptor usage:
291 # 0 unused; standard input
293 # 2 errors and warnings
294 # 3 unused; some systems may open it to /dev/tty
295 # 4 checking for... messages and results
296 # 5 compiler messages saved in config.log
297 if test "$silent" = yes; then
305 This file contains any messages produced by compilers while
306 running configure, to aid debugging if configure makes a mistake.
309 # Strip out --no-create and --no-recursion so they do not pile up.
310 # Also quote any args containing shell metacharacters.
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 | --no-cr | --no-c) ;;
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
320 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
321 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
326 # Only set LANG and LC_ALL to C if already set.
327 # These must not be set unconditionally because not all systems understand
328 # e.g. LANG=C (notably SCO).
329 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
330 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
332 # confdefs.h avoids OS command line length limits that DEFS can exceed.
333 rm -rf conftest* confdefs.h
334 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
337 # A filename unique to this package, relative to the directory that
338 # configure is in, which we can look for to find out if srcdir is correct.
341 # Find the source files, if location was not specified.
342 if test -z "$srcdir"; then
343 ac_srcdir_defaulted=yes
344 # Try the directory containing this script, then its parent.
346 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
347 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
349 if test ! -r $srcdir/$ac_unique_file; then
353 ac_srcdir_defaulted=no
355 if test ! -r $srcdir/$ac_unique_file; then
356 if test "$ac_srcdir_defaulted" = yes; then
357 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
359 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
362 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
364 # Prefer explicitly selected file to automatically selected ones.
365 if test -z "$CONFIG_SITE"; then
366 if test "x$prefix" != xNONE; then
367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
372 for ac_site_file in $CONFIG_SITE; do
373 if test -r "$ac_site_file"; then
374 echo "loading site script $ac_site_file"
379 if test -r "$cache_file"; then
380 echo "loading cache $cache_file"
383 echo "creating cache $cache_file"
388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
389 ac_cpp='$CPP $CPPFLAGS'
390 ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
391 ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
393 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
394 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
395 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
402 ac_n= ac_c='\c' ac_t=
408 # Check whether --with-cc or --without-cc was given.
410 if test -n "$withval"; then
411 echo "$ac_t""CC=$withval" 1>&4
414 if test -z "$CC" ; then CC=cc; fi
415 echo "$ac_t""CC defaults to $CC" 1>&4
419 # Check whether --with-ccopts or --without-ccopts was given.
420 withval="$with_ccopts"
421 if test -n "$withval"; then
422 echo "$ac_t""CCOPTS is $withval" 1>&4
424 CFLAGS="$CFLAGS $withval"
430 # Check whether --with-cppopts or --without-cppopts was given.
431 withval="$with_cppopts"
432 if test -n "$withval"; then
433 echo "$ac_t""CPPOPTS=$withval" 1>&4
435 CPPFLAGS="$CPPFLAGS $withval"
437 echo "$ac_t""CPPOPTS defaults to $CPPOPTS" 1>&4
441 if test -w $cache_file; then
442 echo "updating cache $cache_file"
443 cat > $cache_file <<\EOF
444 # This file is a shell script that caches the results of configure
445 # tests run on this system so they can be shared between configure
446 # scripts and configure runs. It is not useful on other systems.
447 # If it contains results you don't want to keep, you may remove or edit it.
449 # By default, configure uses ./config.cache as the cache file,
450 # creating it if it does not exist already. You can give configure
451 # the --cache-file=FILE option to use a different cache file; that is
452 # what configure does when it calls configure scripts in
453 # subdirectories, so they share the cache.
454 # Giving --cache-file=/dev/null disables caching, for debugging configure.
455 # config.status only pays attention to the cache file if you give it the
456 # --recheck option to rerun configure.
459 # Ultrix sh set writes to stderr and can't be redirected directly.
461 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
464 echo "not updating unwritable cache $cache_file"
467 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
470 # Let make expand exec_prefix.
471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
473 # Any assignment to VPATH causes Sun make to only execute
474 # the first set of double-colon rules, so remove it if not needed.
475 # If there is a colon in the path, we need to keep it.
476 if test "x$srcdir" = x.; then
477 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
480 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
482 # Transform confdefs.h into DEFS.
483 # Protect against shell expansion while executing Makefile rules.
484 # Protect against Makefile macro expansion.
485 cat > conftest.defs <<\EOF
486 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
487 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
492 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
496 # Without the "./", some shells look in PATH for config.status.
497 : ${CONFIG_STATUS=./config.status}
499 echo creating $CONFIG_STATUS
501 cat > $CONFIG_STATUS <<EOF
503 # Generated automatically by configure.
504 # Run this file to recreate the current configuration.
505 # This directory was configured as follows,
506 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
508 # $0 $ac_configure_args
510 # Compiler output produced by configure, useful for debugging
511 # configure, is in ./config.log if it exists.
513 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
516 case "\$ac_option" in
517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
518 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
519 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
520 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
521 echo "$CONFIG_STATUS generated by autoconf version 2.1"
523 -help | --help | --hel | --he | --h)
524 echo "\$ac_cs_usage"; exit 0 ;;
525 *) echo "\$ac_cs_usage"; exit 1 ;;
529 ac_given_srcdir=$srcdir
531 trap 'rm -f Makefile; exit 1' 1 2 15
533 # Protect against being on the right side of a sed subst in config.status.
534 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
535 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
539 s%@CPPFLAGS@%$CPPFLAGS%g
540 s%@CXXFLAGS@%$CXXFLAGS%g
542 s%@LDFLAGS@%$LDFLAGS%g
544 s%@exec_prefix@%$exec_prefix%g
546 s%@program_transform_name@%$program_transform_name%g
549 s%@CPPOPTS@%$CPPOPTS%g
553 cat >> $CONFIG_STATUS <<EOF
555 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
557 cat >> $CONFIG_STATUS <<\EOF
558 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
559 # Support "outfile[:infile]", defaulting infile="outfile.in".
561 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
562 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
563 *) ac_file_in="${ac_file}.in" ;;
566 # Adjust relative srcdir, etc. for subdirectories.
568 # Remove last slash and all that follows it. Not all systems have dirname.
569 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
570 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
571 # The file is in a subdirectory.
572 test ! -d "$ac_dir" && mkdir "$ac_dir"
573 ac_dir_suffix="/$ac_dir"
574 # A "../" for each directory in $ac_dir_suffix.
575 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
577 ac_dir_suffix= ac_dots=
580 case "$ac_given_srcdir" in
582 if test -z "$ac_dots"; then top_srcdir=.
583 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
584 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
586 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
587 top_srcdir="$ac_dots$ac_given_srcdir" ;;
590 echo creating "$ac_file"
592 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
594 *Makefile*) ac_comsub="1i\\
595 # $configure_input" ;;
599 s%@configure_input@%$configure_input%g
601 s%@top_srcdir@%$top_srcdir%g
602 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
610 chmod +x $CONFIG_STATUS
611 rm -fr confdefs* $ac_clean_files
612 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS