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:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=ares_init.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
535 # Extract the first word of "gcc", so it can be a program name with args.
536 set dummy gcc; ac_word=$2
537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
538 echo "configure:539: checking for $ac_word" >&5
539 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
542 if test -n "$CC"; then
543 ac_cv_prog_CC="$CC" # Let the user override the test.
545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
547 for ac_dir in $ac_dummy; do
548 test -z "$ac_dir" && ac_dir=.
549 if test -f $ac_dir/$ac_word; then
558 if test -n "$CC"; then
559 echo "$ac_t""$CC" 1>&6
561 echo "$ac_t""no" 1>&6
564 if test -z "$CC"; then
565 # Extract the first word of "cc", so it can be a program name with args.
566 set dummy cc; ac_word=$2
567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
568 echo "configure:569: checking for $ac_word" >&5
569 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
570 echo $ac_n "(cached) $ac_c" 1>&6
572 if test -n "$CC"; then
573 ac_cv_prog_CC="$CC" # Let the user override the test.
575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
578 for ac_dir in $ac_dummy; do
579 test -z "$ac_dir" && ac_dir=.
580 if test -f $ac_dir/$ac_word; then
581 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
590 if test $ac_prog_rejected = yes; then
591 # We found a bogon in the path, so make sure we never use it.
592 set dummy $ac_cv_prog_CC
594 if test $# -gt 0; then
595 # We chose a different compiler from the bogus one.
596 # However, it has the same basename, so the bogon will be chosen
597 # first if we set CC to just the basename; use the full file name.
599 set dummy "$ac_dir/$ac_word" "$@"
607 if test -n "$CC"; then
608 echo "$ac_t""$CC" 1>&6
610 echo "$ac_t""no" 1>&6
613 if test -z "$CC"; then
616 # Extract the first word of "cl", so it can be a program name with args.
617 set dummy cl; ac_word=$2
618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
619 echo "configure:620: checking for $ac_word" >&5
620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 if test -n "$CC"; then
624 ac_cv_prog_CC="$CC" # Let the user override the test.
626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 for ac_dir in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir=.
630 if test -f $ac_dir/$ac_word; then
639 if test -n "$CC"; then
640 echo "$ac_t""$CC" 1>&6
642 echo "$ac_t""no" 1>&6
647 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
650 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
651 echo "configure:652: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
655 ac_cpp='$CPP $CPPFLAGS'
656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
658 cross_compiling=$ac_cv_prog_cc_cross
660 cat > conftest.$ac_ext << EOF
662 #line 663 "configure"
663 #include "confdefs.h"
667 if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
668 ac_cv_prog_cc_works=yes
669 # If we can't run a trivial program, we are probably using a cross compiler.
670 if (./conftest; exit) 2>/dev/null; then
671 ac_cv_prog_cc_cross=no
673 ac_cv_prog_cc_cross=yes
676 echo "configure: failed program was:" >&5
677 cat conftest.$ac_ext >&5
678 ac_cv_prog_cc_works=no
682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
683 ac_cpp='$CPP $CPPFLAGS'
684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
686 cross_compiling=$ac_cv_prog_cc_cross
688 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
689 if test $ac_cv_prog_cc_works = no; then
690 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
693 echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
694 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
695 cross_compiling=$ac_cv_prog_cc_cross
697 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
698 echo "configure:699: checking whether we are using GNU C" >&5
699 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
702 cat > conftest.c <<EOF
707 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
714 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
716 if test $ac_cv_prog_gcc = yes; then
722 ac_test_CFLAGS="${CFLAGS+set}"
723 ac_save_CFLAGS="$CFLAGS"
725 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${CC-cc} accepts -g" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 echo 'void f(){}' > conftest.c
731 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
740 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
741 if test "$ac_test_CFLAGS" = set; then
742 CFLAGS="$ac_save_CFLAGS"
743 elif test $ac_cv_prog_cc_g = yes; then
744 if test "$GCC" = yes; then
750 if test "$GCC" = yes; then
758 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
759 if test -f $ac_dir/install-sh; then
761 ac_install_sh="$ac_aux_dir/install-sh -c"
763 elif test -f $ac_dir/install.sh; then
765 ac_install_sh="$ac_aux_dir/install.sh -c"
769 if test -z "$ac_aux_dir"; then
770 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
772 ac_config_guess=$ac_aux_dir/config.guess
773 ac_config_sub=$ac_aux_dir/config.sub
774 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
776 # Find a good install program. We prefer a C program (faster),
777 # so one script is as good as another. But avoid the broken or
778 # incompatible versions:
779 # SysV /etc/install, /usr/sbin/install
780 # SunOS /usr/etc/install
783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
786 # ./install, which can be erroneously created by make from ./install.sh.
787 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
788 echo "configure:789: checking for a BSD compatible install" >&5
789 if test -z "$INSTALL"; then
790 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
794 for ac_dir in $PATH; do
795 # Account for people who put trailing slashes in PATH elements.
797 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
799 # OSF1 and SCO ODT 3.0 have their own names for install.
800 # Don't use installbsd from OSF since it installs stuff as root
802 for ac_prog in ginstall scoinst install; do
803 if test -f $ac_dir/$ac_prog; then
804 if test $ac_prog = install &&
805 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
806 # AIX install. It has an incompatible calling convention.
809 ac_cv_path_install="$ac_dir/$ac_prog -c"
820 if test "${ac_cv_path_install+set}" = set; then
821 INSTALL="$ac_cv_path_install"
823 # As a last resort, use the slow shell script. We don't cache a
824 # path for INSTALL within a source directory, because that will
825 # break other packages using the cache if that directory is
826 # removed, or if the path is relative.
827 INSTALL="$ac_install_sh"
830 echo "$ac_t""$INSTALL" 1>&6
832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
833 # It thinks the first close brace ends the variable substitution.
834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
838 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
840 # Check whether --enable-shared or --disable-shared was given.
841 if test "${enable_shared+set}" = set; then
842 enableval="$enable_shared"
845 yes) enable_shared=yes ;;
846 no) enable_shared=no ;;
849 # Look at the argument we got. We use all the common list separators.
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
851 for pkg in $enableval; do
852 if test "X$pkg" = "X$p"; then
863 # Check whether --enable-static or --disable-static was given.
864 if test "${enable_static+set}" = set; then
865 enableval="$enable_static"
868 yes) enable_static=yes ;;
869 no) enable_static=no ;;
872 # Look at the argument we got. We use all the common list separators.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
874 for pkg in $enableval; do
875 if test "X$pkg" = "X$p"; then
886 # Check whether --enable-fast-install or --disable-fast-install was given.
887 if test "${enable_fast_install+set}" = set; then
888 enableval="$enable_fast_install"
891 yes) enable_fast_install=yes ;;
892 no) enable_fast_install=no ;;
894 enable_fast_install=no
895 # Look at the argument we got. We use all the common list separators.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
897 for pkg in $enableval; do
898 if test "X$pkg" = "X$p"; then
899 enable_fast_install=yes
906 enable_fast_install=yes
910 # Make sure we can run config.sub.
911 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
912 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915 echo $ac_n "checking host system type""... $ac_c" 1>&6
916 echo "configure:917: checking host system type" >&5
919 case "$host_alias" in
923 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
924 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
926 *) host_alias=$nonopt ;;
930 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
931 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
932 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
933 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
934 echo "$ac_t""$host" 1>&6
936 echo $ac_n "checking build system type""... $ac_c" 1>&6
937 echo "configure:938: checking build system type" >&5
940 case "$build_alias" in
943 NONE) build_alias=$host_alias ;;
944 *) build_alias=$nonopt ;;
948 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
949 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo "$ac_t""$build" 1>&6
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB="ranlib"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977 RANLIB="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
981 echo "$ac_t""no" 1>&6
984 # Check whether --with-gnu-ld or --without-gnu-ld was given.
985 if test "${with_gnu_ld+set}" = set; then
986 withval="$with_gnu_ld"
987 test "$withval" = no || with_gnu_ld=yes
993 if test "$ac_cv_prog_gcc" = yes; then
994 # Check if gcc -print-prog-name=ld gives a path.
995 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
996 echo "configure:997: checking for ld used by GCC" >&5
997 ac_prog=`($CC -print-prog-name=ld) 2>&5`
999 # Accept absolute paths.
1000 [\\/]* | [A-Za-z]:[\\/]*)
1001 re_direlt='/[^/][^/]*/\.\./'
1002 # Canonicalize the path of ld
1003 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1005 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1007 test -z "$LD" && LD="$ac_prog"
1010 # If it fails, then pretend we aren't using GCC.
1014 # If it is relative, then search for the first ld in PATH.
1018 elif test "$with_gnu_ld" = yes; then
1019 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1020 echo "configure:1021: checking for GNU ld" >&5
1022 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1023 echo "configure:1024: checking for non-GNU ld" >&5
1025 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 if test -z "$LD"; then
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1030 for ac_dir in $PATH; do
1031 test -z "$ac_dir" && ac_dir=.
1032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1033 ac_cv_path_LD="$ac_dir/$ac_prog"
1034 # Check to see if the program is GNU ld. I'd rather use --version,
1035 # but apparently some GNU ld's only accept -v.
1036 # Break only if it was the GNU/non-GNU ld that we prefer.
1037 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1038 test "$with_gnu_ld" != no && break
1040 test "$with_gnu_ld" != yes && break
1046 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1051 if test -n "$LD"; then
1052 echo "$ac_t""$LD" 1>&6
1054 echo "$ac_t""no" 1>&6
1056 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1057 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1058 echo "configure:1059: checking if the linker ($LD) is GNU ld" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1063 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1064 ac_cv_prog_gnu_ld=yes
1066 ac_cv_prog_gnu_ld=no
1070 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1073 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1074 echo "configure:1075: checking for BSD-compatible nm" >&5
1075 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$NM"; then
1079 # Let the user override the test.
1082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1083 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1086 # Check to see if the nm accepts a BSD-compat flag.
1087 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1088 # nm: unknown option "B" ignored
1089 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1090 ac_cv_path_NM="$ac_dir/nm -B"
1092 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1093 ac_cv_path_NM="$ac_dir/nm -p"
1096 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1097 continue # so that we can try to find one that supports BSD flags
1102 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1107 echo "$ac_t""$NM" 1>&6
1109 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether ln -s works" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1115 if ln -s X conftestdata 2>/dev/null
1118 ac_cv_prog_LN_S="ln -s"
1123 LN_S="$ac_cv_prog_LN_S"
1124 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1125 echo "$ac_t""yes" 1>&6
1127 echo "$ac_t""no" 1>&6
1132 NONE) lt_target="$host" ;;
1133 *) lt_target="$target" ;;
1136 # Check for any special flags to pass to ltconfig.
1137 libtool_flags="--cache-file=$cache_file"
1138 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1139 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1140 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1141 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1142 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1145 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1146 if test "${enable_libtool_lock+set}" = set; then
1147 enableval="$enable_libtool_lock"
1151 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1152 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1154 # Some flags need to be propagated to the compiler or linker for good
1156 case "$lt_target" in
1158 # Find out which ABI we are using.
1159 echo '#line 1160 "configure"' > conftest.$ac_ext
1160 if { (eval echo configure:1161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1161 case "`/usr/bin/file conftest.o`" in
1177 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1178 SAVE_CFLAGS="$CFLAGS"
1179 CFLAGS="$CFLAGS -belf"
1180 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether the C compiler needs -belf" >&5
1182 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1193 if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1195 lt_cv_cc_needs_belf=yes
1197 echo "configure: failed program was:" >&5
1198 cat conftest.$ac_ext >&5
1200 lt_cv_cc_needs_belf=no
1205 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1206 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1207 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1208 CFLAGS="$SAVE_CFLAGS"
1216 # Save cache, so that ltconfig can load it
1217 cat > confcache <<\EOF
1218 # This file is a shell script that caches the results of configure
1219 # tests run on this system so they can be shared between configure
1220 # scripts and configure runs. It is not useful on other systems.
1221 # If it contains results you don't want to keep, you may remove or edit it.
1223 # By default, configure uses ./config.cache as the cache file,
1224 # creating it if it does not exist already. You can give configure
1225 # the --cache-file=FILE option to use a different cache file; that is
1226 # what configure does when it calls configure scripts in
1227 # subdirectories, so they share the cache.
1228 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1229 # config.status only pays attention to the cache file if you give it the
1230 # --recheck option to rerun configure.
1233 # The following way of writing the cache mishandles newlines in values,
1234 # but we know of no workaround that is simple, portable, and efficient.
1235 # So, don't put newlines in cache variables' values.
1236 # Ultrix sh set writes to stderr and can't be redirected directly,
1237 # and sets the high bit in the cache file unless we assign to the vars.
1239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1241 # `set' does not quote correctly, so add quotes (double-quote substitution
1242 # turns \\\\ into \\, and sed turns \\ into \).
1244 -e "s/'/'\\\\''/g" \
1245 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1248 # `set' quotes correctly as required by POSIX, so do not add quotes.
1249 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1252 if cmp -s $cache_file confcache; then
1255 if test -w $cache_file; then
1256 echo "updating cache $cache_file"
1257 cat confcache > $cache_file
1259 echo "not updating unwritable cache $cache_file"
1265 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1266 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1267 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1268 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1269 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1270 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1271 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1272 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1274 # Reload cache, that may have been modified by ltconfig
1275 if test -r "$cache_file"; then
1276 echo "loading cache $cache_file"
1279 echo "creating cache $cache_file"
1284 # This can be used to rebuild libtool when needed
1285 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1287 # Always use our own libtool.
1288 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1290 # Redirect the config.log output again, so that the ltconfig log is not
1291 # clobbered by the next message.
1292 exec 5>>./config.log
1296 # Make sure we can run config.sub.
1297 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1298 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1301 echo $ac_n "checking host system type""... $ac_c" 1>&6
1302 echo "configure:1303: checking host system type" >&5
1305 case "$host_alias" in
1309 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1310 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1312 *) host_alias=$nonopt ;;
1316 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1317 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo "$ac_t""$host" 1>&6
1324 cat >> confdefs.h <<\EOF
1332 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
1333 echo "configure:1334: checking for library containing gethostbyname" >&5
1334 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 ac_func_search_save_LIBS="$LIBS"
1338 ac_cv_search_gethostbyname="no"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 /* Override any gcc2 internal prototype to avoid an error. */
1343 /* We use char because int might match the return type of a gcc2
1344 builtin and then its argument prototype would still apply. */
1345 char gethostbyname();
1351 if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1353 ac_cv_search_gethostbyname="none required"
1355 echo "configure: failed program was:" >&5
1356 cat conftest.$ac_ext >&5
1359 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
1360 LIBS="-l$i $ac_func_search_save_LIBS"
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1364 /* Override any gcc2 internal prototype to avoid an error. */
1365 /* We use char because int might match the return type of a gcc2
1366 builtin and then its argument prototype would still apply. */
1367 char gethostbyname();
1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1375 ac_cv_search_gethostbyname="-l$i"
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1383 LIBS="$ac_func_search_save_LIBS"
1386 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
1387 if test "$ac_cv_search_gethostbyname" != "no"; then
1388 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
1394 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
1395 echo "configure:1396: checking for library containing socket" >&5
1396 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 ac_func_search_save_LIBS="$LIBS"
1400 ac_cv_search_socket="no"
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404 /* Override any gcc2 internal prototype to avoid an error. */
1405 /* We use char because int might match the return type of a gcc2
1406 builtin and then its argument prototype would still apply. */
1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1415 ac_cv_search_socket="none required"
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1421 test "$ac_cv_search_socket" = "no" && for i in socket; do
1422 LIBS="-l$i $ac_func_search_save_LIBS"
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426 /* Override any gcc2 internal prototype to avoid an error. */
1427 /* We use char because int might match the return type of a gcc2
1428 builtin and then its argument prototype would still apply. */
1435 if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1437 ac_cv_search_socket="-l$i"
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1445 LIBS="$ac_func_search_save_LIBS"
1448 echo "$ac_t""$ac_cv_search_socket" 1>&6
1449 if test "$ac_cv_search_socket" != "no"; then
1450 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
1457 cat > confcache <<\EOF
1458 # This file is a shell script that caches the results of configure
1459 # tests run on this system so they can be shared between configure
1460 # scripts and configure runs. It is not useful on other systems.
1461 # If it contains results you don't want to keep, you may remove or edit it.
1463 # By default, configure uses ./config.cache as the cache file,
1464 # creating it if it does not exist already. You can give configure
1465 # the --cache-file=FILE option to use a different cache file; that is
1466 # what configure does when it calls configure scripts in
1467 # subdirectories, so they share the cache.
1468 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1469 # config.status only pays attention to the cache file if you give it the
1470 # --recheck option to rerun configure.
1473 # The following way of writing the cache mishandles newlines in values,
1474 # but we know of no workaround that is simple, portable, and efficient.
1475 # So, don't put newlines in cache variables' values.
1476 # Ultrix sh set writes to stderr and can't be redirected directly,
1477 # and sets the high bit in the cache file unless we assign to the vars.
1479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1481 # `set' does not quote correctly, so add quotes (double-quote substitution
1482 # turns \\\\ into \\, and sed turns \\ into \).
1484 -e "s/'/'\\\\''/g" \
1485 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1488 # `set' quotes correctly as required by POSIX, so do not add quotes.
1489 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1492 if cmp -s $cache_file confcache; then
1495 if test -w $cache_file; then
1496 echo "updating cache $cache_file"
1497 cat confcache > $cache_file
1499 echo "not updating unwritable cache $cache_file"
1504 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1507 # Let make expand exec_prefix.
1508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1510 # Any assignment to VPATH causes Sun make to only execute
1511 # the first set of double-colon rules, so remove it if not needed.
1512 # If there is a colon in the path, we need to keep it.
1513 if test "x$srcdir" = x.; then
1514 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1517 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1519 # Transform confdefs.h into DEFS.
1520 # Protect against shell expansion while executing Makefile rules.
1521 # Protect against Makefile macro expansion.
1522 cat > conftest.defs <<\EOF
1523 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1524 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1529 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1533 # Without the "./", some shells look in PATH for config.status.
1534 : ${CONFIG_STATUS=./config.status}
1536 echo creating $CONFIG_STATUS
1537 rm -f $CONFIG_STATUS
1538 cat > $CONFIG_STATUS <<EOF
1540 # Generated automatically by configure.
1541 # Run this file to recreate the current configuration.
1542 # This directory was configured as follows,
1543 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1545 # $0 $ac_configure_args
1547 # Compiler output produced by configure, useful for debugging
1548 # configure, is in ./config.log if it exists.
1550 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1553 case "\$ac_option" in
1554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1555 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1556 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1557 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1558 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1560 -help | --help | --hel | --he | --h)
1561 echo "\$ac_cs_usage"; exit 0 ;;
1562 *) echo "\$ac_cs_usage"; exit 1 ;;
1566 ac_given_srcdir=$srcdir
1567 ac_given_INSTALL="$INSTALL"
1569 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1571 cat >> $CONFIG_STATUS <<EOF
1573 # Protect against being on the right side of a sed subst in config.status.
1574 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1579 s%@CFLAGS@%$CFLAGS%g
1580 s%@CPPFLAGS@%$CPPFLAGS%g
1581 s%@CXXFLAGS@%$CXXFLAGS%g
1582 s%@FFLAGS@%$FFLAGS%g
1584 s%@LDFLAGS@%$LDFLAGS%g
1586 s%@exec_prefix@%$exec_prefix%g
1587 s%@prefix@%$prefix%g
1588 s%@program_transform_name@%$program_transform_name%g
1589 s%@bindir@%$bindir%g
1590 s%@sbindir@%$sbindir%g
1591 s%@libexecdir@%$libexecdir%g
1592 s%@datadir@%$datadir%g
1593 s%@sysconfdir@%$sysconfdir%g
1594 s%@sharedstatedir@%$sharedstatedir%g
1595 s%@localstatedir@%$localstatedir%g
1596 s%@libdir@%$libdir%g
1597 s%@includedir@%$includedir%g
1598 s%@oldincludedir@%$oldincludedir%g
1599 s%@infodir@%$infodir%g
1600 s%@mandir@%$mandir%g
1602 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1603 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1604 s%@INSTALL_DATA@%$INSTALL_DATA%g
1606 s%@host_alias@%$host_alias%g
1607 s%@host_cpu@%$host_cpu%g
1608 s%@host_vendor@%$host_vendor%g
1609 s%@host_os@%$host_os%g
1611 s%@build_alias@%$build_alias%g
1612 s%@build_cpu@%$build_cpu%g
1613 s%@build_vendor@%$build_vendor%g
1614 s%@build_os@%$build_os%g
1615 s%@RANLIB@%$RANLIB%g
1617 s%@LIBTOOL@%$LIBTOOL%g
1622 cat >> $CONFIG_STATUS <<\EOF
1624 # Split the substitutions into bite-sized pieces for seds with
1625 # small command number limits, like on Digital OSF/1 and HP-UX.
1626 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1627 ac_file=1 # Number of current file.
1628 ac_beg=1 # First line for current file.
1629 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1632 while $ac_more_lines; do
1633 if test $ac_beg -gt 1; then
1634 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1636 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1638 if test ! -s conftest.s$ac_file; then
1640 rm -f conftest.s$ac_file
1642 if test -z "$ac_sed_cmds"; then
1643 ac_sed_cmds="sed -f conftest.s$ac_file"
1645 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1647 ac_file=`expr $ac_file + 1`
1649 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1652 if test -z "$ac_sed_cmds"; then
1657 cat >> $CONFIG_STATUS <<EOF
1659 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1661 cat >> $CONFIG_STATUS <<\EOF
1662 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1667 *) ac_file_in="${ac_file}.in" ;;
1670 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1672 # Remove last slash and all that follows it. Not all systems have dirname.
1673 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1675 # The file is in a subdirectory.
1676 test ! -d "$ac_dir" && mkdir "$ac_dir"
1677 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1678 # A "../" for each directory in $ac_dir_suffix.
1679 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1681 ac_dir_suffix= ac_dots=
1684 case "$ac_given_srcdir" in
1686 if test -z "$ac_dots"; then top_srcdir=.
1687 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1688 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1690 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1691 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1694 case "$ac_given_INSTALL" in
1695 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1696 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1699 echo creating "$ac_file"
1701 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1703 *Makefile*) ac_comsub="1i\\
1704 # $configure_input" ;;
1708 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1710 s%@configure_input@%$configure_input%g
1711 s%@srcdir@%$srcdir%g
1712 s%@top_srcdir@%$top_srcdir%g
1713 s%@INSTALL@%$INSTALL%g
1714 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1719 cat >> $CONFIG_STATUS <<EOF
1722 cat >> $CONFIG_STATUS <<\EOF
1726 chmod +x $CONFIG_STATUS
1727 rm -fr confdefs* $ac_clean_files
1728 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1