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 --with-auxdir=DIR path to autoconf auxiliary files"
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock avoid locking (might break parallel builds)"
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
32 --enable-java-gc=TYPE choose garbage collector [boehm]"
34 --enable-ltdl-install install libltdl"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=ltdl.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='\c' ac_t=
544 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
545 echo "configure:546: checking for Cygwin environment" >&5
546 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&6
549 cat > conftest.$ac_ext <<EOF
550 #line 551 "configure"
551 #include "confdefs.h"
556 #define __CYGWIN__ __CYGWIN32__
561 if { (eval echo configure:562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
565 echo "configure: failed program was:" >&5
566 cat conftest.$ac_ext >&5
574 echo "$ac_t""$ac_cv_cygwin" 1>&6
576 test "$ac_cv_cygwin" = yes && CYGWIN=yes
577 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
578 echo "configure:579: checking for mingw32 environment" >&5
579 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 cat > conftest.$ac_ext <<EOF
583 #line 584 "configure"
584 #include "confdefs.h"
590 if { (eval echo configure:591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
594 echo "configure: failed program was:" >&5
595 cat conftest.$ac_ext >&5
603 echo "$ac_t""$ac_cv_mingw32" 1>&6
605 test "$ac_cv_mingw32" = yes && MINGW32=yes
608 # Check whether --with-auxdir or --without-auxdir was given.
609 if test "${with_auxdir+set}" = set; then
610 withval="$with_auxdir"
612 for ac_dir in $with_auxdir $srcdir/$with_auxdir; do
613 if test -f $ac_dir/install-sh; then
615 ac_install_sh="$ac_aux_dir/install-sh -c"
617 elif test -f $ac_dir/install.sh; then
619 ac_install_sh="$ac_aux_dir/install.sh -c"
623 if test -z "$ac_aux_dir"; then
624 { echo "configure: error: can not find install-sh or install.sh in $with_auxdir $srcdir/$with_auxdir" 1>&2; exit 1; }
626 ac_config_guess=$ac_aux_dir/config.guess
627 ac_config_sub=$ac_aux_dir/config.sub
628 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
633 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
634 if test -f $ac_dir/install-sh; then
636 ac_install_sh="$ac_aux_dir/install-sh -c"
638 elif test -f $ac_dir/install.sh; then
640 ac_install_sh="$ac_aux_dir/install.sh -c"
644 if test -z "$ac_aux_dir"; then
645 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
647 ac_config_guess=$ac_aux_dir/config.guess
648 ac_config_sub=$ac_aux_dir/config.sub
649 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
654 # This is another blatant hack to work around automake bugs.
655 mkinstalldirs="$ac_aux_dir/mkinstalldirs"
658 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
659 if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
660 # if libltdl is libtoolized, it is assumed to be stand-alone and
661 # installed unless the command line overrides it (tested above)
662 enable_ltdl_install=yes
664 echo "configure: warning: *** The top-level configure must select either" 1>&2
665 echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
666 { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
670 # Find a good install program. We prefer a C program (faster),
671 # so one script is as good as another. But avoid the broken or
672 # incompatible versions:
673 # SysV /etc/install, /usr/sbin/install
674 # SunOS /usr/etc/install
677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
680 # ./install, which can be erroneously created by make from ./install.sh.
681 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
682 echo "configure:683: checking for a BSD compatible install" >&5
683 if test -z "$INSTALL"; then
684 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
688 for ac_dir in $PATH; do
689 # Account for people who put trailing slashes in PATH elements.
691 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
693 # OSF1 and SCO ODT 3.0 have their own names for install.
694 # Don't use installbsd from OSF since it installs stuff as root
696 for ac_prog in ginstall scoinst install; do
697 if test -f $ac_dir/$ac_prog; then
698 if test $ac_prog = install &&
699 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
700 # AIX install. It has an incompatible calling convention.
703 ac_cv_path_install="$ac_dir/$ac_prog -c"
714 if test "${ac_cv_path_install+set}" = set; then
715 INSTALL="$ac_cv_path_install"
717 # As a last resort, use the slow shell script. We don't cache a
718 # path for INSTALL within a source directory, because that will
719 # break other packages using the cache if that directory is
720 # removed, or if the path is relative.
721 INSTALL="$ac_install_sh"
724 echo "$ac_t""$INSTALL" 1>&6
726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
727 # It thinks the first close brace ends the variable substitution.
728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
734 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
735 echo "configure:736: checking whether build environment is sane" >&5
738 echo timestamp > conftestfile
739 # Do `set' in a subshell so we don't clobber the current shell's
740 # arguments. Must try -L first in case configure is actually a
741 # symlink; some systems play weird games with the mod time of symlinks
742 # (eg FreeBSD returns the mod time of the symlink's containing
745 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
746 if test "$*" = "X"; then
748 set X `ls -t $srcdir/configure conftestfile`
750 if test "$*" != "X $srcdir/configure conftestfile" \
751 && test "$*" != "X conftestfile $srcdir/configure"; then
753 # If neither matched, then we have a broken ls. This can happen
754 # if, for instance, CONFIG_SHELL is bash and it inherits a
755 # broken ls alias from the environment. This has actually
756 # happened. Such a system could not be considered "sane".
757 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
758 alias in your environment" 1>&2; exit 1; }
761 test "$2" = conftestfile
767 { echo "configure: error: newly created file is older than distributed files!
768 Check your system clock" 1>&2; exit 1; }
771 echo "$ac_t""yes" 1>&6
772 if test "$program_transform_name" = s,x,x,; then
773 program_transform_name=
775 # Double any \ or $. echo might interpret backslashes.
776 cat <<\EOF_SED > conftestsed
777 s,\\,\\\\,g; s,\$,$$,g
779 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
782 test "$program_prefix" != NONE &&
783 program_transform_name="s,^,${program_prefix},; $program_transform_name"
784 # Use a double $ so make ignores it.
785 test "$program_suffix" != NONE &&
786 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
788 # sed with no file args requires a program.
789 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
791 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
792 echo "configure:793: checking whether ${MAKE-make} sets \${MAKE}" >&5
793 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
794 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 cat > conftestmake <<\EOF
799 @echo 'ac_maketemp="${MAKE}"'
801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
802 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
803 if test -n "$ac_maketemp"; then
804 eval ac_cv_prog_make_${ac_make}_set=yes
806 eval ac_cv_prog_make_${ac_make}_set=no
810 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
811 echo "$ac_t""yes" 1>&6
814 echo "$ac_t""no" 1>&6
815 SET_MAKE="MAKE=${MAKE-make}"
823 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
824 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
829 missing_dir=`cd $ac_aux_dir && pwd`
830 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
831 echo "configure:832: checking for working aclocal" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
837 echo "$ac_t""found" 1>&6
839 ACLOCAL="$missing_dir/missing aclocal"
840 echo "$ac_t""missing" 1>&6
843 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
844 echo "configure:845: checking for working autoconf" >&5
845 # Run test in a subshell; some versions of sh will print an error if
846 # an executable is not found, even if stderr is redirected.
847 # Redirect stdin to placate older versions of autoconf. Sigh.
848 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
850 echo "$ac_t""found" 1>&6
852 AUTOCONF="$missing_dir/missing autoconf"
853 echo "$ac_t""missing" 1>&6
856 echo $ac_n "checking for working automake""... $ac_c" 1>&6
857 echo "configure:858: checking for working automake" >&5
858 # Run test in a subshell; some versions of sh will print an error if
859 # an executable is not found, even if stderr is redirected.
860 # Redirect stdin to placate older versions of autoconf. Sigh.
861 if (automake --version) < /dev/null > /dev/null 2>&1; then
863 echo "$ac_t""found" 1>&6
865 AUTOMAKE="$missing_dir/missing automake"
866 echo "$ac_t""missing" 1>&6
869 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
870 echo "configure:871: checking for working autoheader" >&5
871 # Run test in a subshell; some versions of sh will print an error if
872 # an executable is not found, even if stderr is redirected.
873 # Redirect stdin to placate older versions of autoconf. Sigh.
874 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
875 AUTOHEADER=autoheader
876 echo "$ac_t""found" 1>&6
878 AUTOHEADER="$missing_dir/missing autoheader"
879 echo "$ac_t""missing" 1>&6
882 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
883 echo "configure:884: checking for working makeinfo" >&5
884 # Run test in a subshell; some versions of sh will print an error if
885 # an executable is not found, even if stderr is redirected.
886 # Redirect stdin to placate older versions of autoconf. Sigh.
887 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
889 echo "$ac_t""found" 1>&6
891 MAKEINFO="$missing_dir/missing makeinfo"
892 echo "$ac_t""missing" 1>&6
899 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
900 echo "configure:901: checking whether to enable maintainer-specific portions of Makefiles" >&5
901 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
902 if test "${enable_maintainer_mode+set}" = set; then
903 enableval="$enable_maintainer_mode"
904 USE_MAINTAINER_MODE=$enableval
906 USE_MAINTAINER_MODE=no
909 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
912 if test $USE_MAINTAINER_MODE = yes; then
913 MAINTAINER_MODE_TRUE=
914 MAINTAINER_MODE_FALSE='#'
916 MAINTAINER_MODE_TRUE='#'
917 MAINTAINER_MODE_FALSE=
919 MAINT=$MAINTAINER_MODE_TRUE
923 # Extract the first word of "gcc", so it can be a program name with args.
924 set dummy gcc; ac_word=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926 echo "configure:927: checking for $ac_word" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 if test -n "$CC"; then
931 ac_cv_prog_CC="$CC" # Let the user override the test.
933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
935 for ac_dir in $ac_dummy; do
936 test -z "$ac_dir" && ac_dir=.
937 if test -f $ac_dir/$ac_word; then
946 if test -n "$CC"; then
947 echo "$ac_t""$CC" 1>&6
949 echo "$ac_t""no" 1>&6
952 if test -z "$CC"; then
953 # Extract the first word of "cc", so it can be a program name with args.
954 set dummy cc; ac_word=$2
955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
956 echo "configure:957: checking for $ac_word" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 if test -n "$CC"; then
961 ac_cv_prog_CC="$CC" # Let the user override the test.
963 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 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
978 if test $ac_prog_rejected = yes; then
979 # We found a bogon in the path, so make sure we never use it.
980 set dummy $ac_cv_prog_CC
982 if test $# -gt 0; then
983 # We chose a different compiler from the bogus one.
984 # However, it has the same basename, so the bogon will be chosen
985 # first if we set CC to just the basename; use the full file name.
987 set dummy "$ac_dir/$ac_word" "$@"
995 if test -n "$CC"; then
996 echo "$ac_t""$CC" 1>&6
998 echo "$ac_t""no" 1>&6
1001 if test -z "$CC"; then
1002 case "`uname -s`" in
1004 # Extract the first word of "cl", so it can be a program name with args.
1005 set dummy cl; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 if test -n "$CC"; then
1012 ac_cv_prog_CC="$CC" # Let the user override the test.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1027 if test -n "$CC"; then
1028 echo "$ac_t""$CC" 1>&6
1030 echo "$ac_t""no" 1>&6
1035 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CPP $CPPFLAGS'
1044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cc_cross
1048 cat > conftest.$ac_ext << EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1056 ac_cv_prog_cc_works=yes
1057 # If we can't run a trivial program, we are probably using a cross compiler.
1058 if (./conftest; exit) 2>/dev/null; then
1059 ac_cv_prog_cc_cross=no
1061 ac_cv_prog_cc_cross=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1066 ac_cv_prog_cc_works=no
1070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1074 cross_compiling=$ac_cv_prog_cc_cross
1076 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1077 if test $ac_cv_prog_cc_works = no; then
1078 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1080 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1081 echo "configure:1082: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1082 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1083 cross_compiling=$ac_cv_prog_cc_cross
1085 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether we are using GNU C" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 cat > conftest.c <<EOF
1095 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1102 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1104 if test $ac_cv_prog_gcc = yes; then
1110 ac_test_CFLAGS="${CFLAGS+set}"
1111 ac_save_CFLAGS="$CFLAGS"
1113 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether ${CC-cc} accepts -g" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 echo 'void f(){}' > conftest.c
1119 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1128 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1129 if test "$ac_test_CFLAGS" = set; then
1130 CFLAGS="$ac_save_CFLAGS"
1131 elif test $ac_cv_prog_cc_g = yes; then
1132 if test "$GCC" = yes; then
1138 if test "$GCC" = yes; then
1145 echo $ac_n "checking for working const""... $ac_c" 1>&6
1146 echo "configure:1147: checking for working const" >&5
1147 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1156 /* Ultrix mips cc rejects this. */
1157 typedef int charset[2]; const charset x;
1158 /* SunOS 4.1.1 cc rejects this. */
1159 char const *const *ccp;
1161 /* NEC SVR4.0.2 mips cc rejects this. */
1162 struct point {int x, y;};
1163 static struct point const zero = {0,0};
1164 /* AIX XL C 1.02.0.0 rejects this.
1165 It does not let you subtract one const X* pointer from another in an arm
1166 of an if-expression whose if-part is not a constant expression */
1167 const char *g = "string";
1168 ccp = &g + (g ? g-g : 0);
1169 /* HPUX 7.0 cc rejects these. */
1172 ccp = (char const *const *) p;
1173 { /* SCO 3.2v4 cc rejects this. */
1175 char const *s = 0 ? (char *) 0 : (char const *) 0;
1179 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1181 const int *foo = &x[0];
1184 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1185 typedef const int *iptr;
1189 { /* AIX XL C 1.02.0.0 rejects this saying
1190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1191 struct s { int j; const int *ap[3]; };
1192 struct s *b; b->j = 5;
1194 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1200 if { (eval echo configure:1201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1212 echo "$ac_t""$ac_cv_c_const" 1>&6
1213 if test $ac_cv_c_const = no; then
1214 cat >> confdefs.h <<\EOF
1220 echo $ac_n "checking for inline""... $ac_c" 1>&6
1221 echo "configure:1222: checking for inline" >&5
1222 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1226 for ac_kw in inline __inline__ __inline; do
1227 cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1235 if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1237 ac_cv_c_inline=$ac_kw; break
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1247 echo "$ac_t""$ac_cv_c_inline" 1>&6
1248 case "$ac_cv_c_inline" in
1250 no) cat >> confdefs.h <<\EOF
1254 *) cat >> confdefs.h <<EOF
1255 #define inline $ac_cv_c_inline
1262 # Check whether --enable-shared or --disable-shared was given.
1263 if test "${enable_shared+set}" = set; then
1264 enableval="$enable_shared"
1265 p=${PACKAGE-default}
1266 case "$enableval" in
1267 yes) enable_shared=yes ;;
1268 no) enable_shared=no ;;
1271 # Look at the argument we got. We use all the common list separators.
1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1273 for pkg in $enableval; do
1274 if test "X$pkg" = "X$p"; then
1285 # Check whether --enable-static or --disable-static was given.
1286 if test "${enable_static+set}" = set; then
1287 enableval="$enable_static"
1288 p=${PACKAGE-default}
1289 case "$enableval" in
1290 yes) enable_static=yes ;;
1291 no) enable_static=no ;;
1294 # Look at the argument we got. We use all the common list separators.
1295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1296 for pkg in $enableval; do
1297 if test "X$pkg" = "X$p"; then
1308 # Check whether --enable-fast-install or --disable-fast-install was given.
1309 if test "${enable_fast_install+set}" = set; then
1310 enableval="$enable_fast_install"
1311 p=${PACKAGE-default}
1312 case "$enableval" in
1313 yes) enable_fast_install=yes ;;
1314 no) enable_fast_install=no ;;
1316 enable_fast_install=no
1317 # Look at the argument we got. We use all the common list separators.
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1319 for pkg in $enableval; do
1320 if test "X$pkg" = "X$p"; then
1321 enable_fast_install=yes
1328 enable_fast_install=yes
1332 # Make sure we can run config.sub.
1333 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1334 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1337 echo $ac_n "checking host system type""... $ac_c" 1>&6
1338 echo "configure:1339: checking host system type" >&5
1341 case "$host_alias" in
1345 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1346 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1348 *) host_alias=$nonopt ;;
1352 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1353 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$host" 1>&6
1358 echo $ac_n "checking build system type""... $ac_c" 1>&6
1359 echo "configure:1360: checking build system type" >&5
1362 case "$build_alias" in
1365 NONE) build_alias=$host_alias ;;
1366 *) build_alias=$nonopt ;;
1370 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1371 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374 echo "$ac_t""$build" 1>&6
1376 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1377 if test "${with_gnu_ld+set}" = set; then
1378 withval="$with_gnu_ld"
1379 test "$withval" = no || with_gnu_ld=yes
1385 if test "$ac_cv_prog_gcc" = yes; then
1386 # Check if gcc -print-prog-name=ld gives a path.
1387 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1388 echo "configure:1389: checking for ld used by GCC" >&5
1391 # gcc leaves a trailing carriage return which upsets mingw
1392 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1394 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1397 # Accept absolute paths.
1398 [\\/]* | [A-Za-z]:[\\/]*)
1399 re_direlt='/[^/][^/]*/\.\./'
1400 # Canonicalize the path of ld
1401 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1402 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1403 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1405 test -z "$LD" && LD="$ac_prog"
1408 # If it fails, then pretend we aren't using GCC.
1412 # If it is relative, then search for the first ld in PATH.
1416 elif test "$with_gnu_ld" = yes; then
1417 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1418 echo "configure:1419: checking for GNU ld" >&5
1420 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1421 echo "configure:1422: checking for non-GNU ld" >&5
1423 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 if test -z "$LD"; then
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1428 for ac_dir in $PATH; do
1429 test -z "$ac_dir" && ac_dir=.
1430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1431 ac_cv_path_LD="$ac_dir/$ac_prog"
1432 # Check to see if the program is GNU ld. I'd rather use --version,
1433 # but apparently some GNU ld's only accept -v.
1434 # Break only if it was the GNU/non-GNU ld that we prefer.
1435 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1436 test "$with_gnu_ld" != no && break
1438 test "$with_gnu_ld" != yes && break
1444 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1449 if test -n "$LD"; then
1450 echo "$ac_t""$LD" 1>&6
1452 echo "$ac_t""no" 1>&6
1454 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1455 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1456 echo "configure:1457: checking if the linker ($LD) is GNU ld" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1461 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1462 ac_cv_prog_gnu_ld=yes
1464 ac_cv_prog_gnu_ld=no
1468 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1469 with_gnu_ld=$ac_cv_prog_gnu_ld
1472 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $LD option to reload object files" >&5
1474 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 lt_cv_ld_reload_flag='-r'
1480 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1481 reload_flag=$lt_cv_ld_reload_flag
1482 test -n "$reload_flag" && reload_flag=" $reload_flag"
1484 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1485 echo "configure:1486: checking for BSD-compatible nm" >&5
1486 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 if test -n "$NM"; then
1490 # Let the user override the test.
1493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1494 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1495 test -z "$ac_dir" && ac_dir=.
1496 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1497 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1498 # Check to see if the nm accepts a BSD-compat flag.
1499 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1500 # nm: unknown option "B" ignored
1501 # Tru64's nm complains that /dev/null is an invalid object file
1502 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1503 ac_cv_path_NM="$tmp_nm -B"
1505 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1506 ac_cv_path_NM="$tmp_nm -p"
1509 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1510 continue # so that we can try to find one that supports BSD flags
1515 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1520 echo "$ac_t""$NM" 1>&6
1522 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether ln -s works" >&5
1524 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1528 if ln -s X conftestdata 2>/dev/null
1531 ac_cv_prog_LN_S="ln -s"
1536 LN_S="$ac_cv_prog_LN_S"
1537 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1538 echo "$ac_t""yes" 1>&6
1540 echo "$ac_t""no" 1>&6
1543 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1544 echo "configure:1545: checking how to recognise dependant libraries" >&5
1545 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1548 lt_cv_file_magic_cmd='${MAGIC}'
1549 lt_cv_file_magic_test_file=
1550 lt_cv_deplibs_check_method='unknown'
1551 # Need to set the preceding variable on all platforms that support
1552 # interlibrary dependencies.
1553 # 'none' -- dependencies not supported.
1554 # `unknown' -- same as none, but documents that we really don't know.
1555 # 'pass_all' -- all dependencies passed with no checks.
1556 # 'test_compile' -- check by making test program.
1557 # 'file_magic [regex]' -- check by looking for files in library path
1558 # which responds to the $file_magic_cmd with a given egrep regex.
1559 # If you have `file' or equivalent on your system and you're not sure
1560 # whether `pass_all' will *always* work, you probably want this one.
1564 lt_cv_deplibs_check_method=pass_all
1568 lt_cv_deplibs_check_method=pass_all
1572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1573 lt_cv_file_magic_cmd='/usr/bin/file -L'
1574 lt_cv_file_magic_test_file=/shlib/libc.so
1578 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1579 lt_cv_file_magic_cmd='${OBJDUMP} -f'
1583 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1586 # Not sure whether the presence of OpenBSD here was a mistake.
1587 # Let's accept both of them until this is cleared up.
1588 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1589 lt_cv_file_magic_cmd=/usr/bin/file
1590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1594 lt_cv_deplibs_check_method=pass_all
1599 lt_cv_deplibs_check_method=pass_all
1603 # TODO: Does this work for hpux-11 too?
1604 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1605 lt_cv_file_magic_cmd=/usr/bin/file
1606 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1612 # this will be overridden with pass_all, but let us keep it just in case
1613 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1617 *-32|*"-32 ") libmagic=32-bit;;
1618 *-n32|*"-n32 ") libmagic=N32;;
1619 *-64|*"-64 ") libmagic=64-bit;;
1620 *) libmagic=never-match;;
1622 # this will be overridden with pass_all, but let us keep it just in case
1623 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1626 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1627 lt_cv_deplibs_check_method=pass_all
1630 # This must be Linux ELF.
1633 alpha* | i*86 | powerpc* | sparc* | ia64* )
1634 lt_cv_deplibs_check_method=pass_all ;;
1636 # glibc up to 2.1.1 does not perform some relocations on ARM
1637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1639 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1643 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1646 lt_cv_file_magic_cmd='/usr/bin/file -L'
1647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1651 osf3* | osf4* | osf5*)
1652 # this will be overridden with pass_all, but let us keep it just in case
1653 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1654 lt_cv_file_magic_test_file=/shlib/libc.so
1655 lt_cv_deplibs_check_method=pass_all
1659 lt_cv_deplibs_check_method=pass_all
1663 lt_cv_deplibs_check_method=pass_all
1664 lt_cv_file_magic_test_file=/lib/libc.so
1667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1668 case "$host_vendor" in
1670 lt_cv_deplibs_check_method=pass_all
1673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1682 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1683 file_magic_cmd=$lt_cv_file_magic_cmd
1684 deplibs_check_method=$lt_cv_deplibs_check_method
1686 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1687 echo "configure:1688: checking for object suffix" >&5
1688 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1692 echo 'int i = 1;' > conftest.$ac_ext
1693 if { (eval echo configure:1694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1694 for ac_file in conftest.*; do
1697 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1701 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1706 echo "$ac_t""$ac_cv_objext" 1>&6
1707 OBJEXT=$ac_cv_objext
1708 ac_objext=$ac_cv_objext
1712 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1713 echo "configure:1714: checking for executable suffix" >&5
1714 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1721 echo 'int main () { return 0; }' > conftest.$ac_ext
1723 if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1724 for file in conftest.*; do
1726 *.c | *.o | *.obj) ;;
1727 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1731 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1734 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1739 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1740 echo "$ac_t""${ac_cv_exeext}" 1>&6
1743 if test $host != $build; then
1744 ac_tool_prefix=${host_alias}-
1749 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1751 # Only perform the check for file, if the check method requires it
1752 case "$deplibs_check_method" in
1754 if test "$file_magic_cmd" = '${MAGIC}'; then
1755 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ${ac_tool_prefix}file" >&5
1757 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1762 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1765 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1768 ac_save_MAGIC="$MAGIC"
1769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1770 ac_dummy="/usr/bin:$PATH"
1771 for ac_dir in $ac_dummy; do
1772 test -z "$ac_dir" && ac_dir=.
1773 if test -f $ac_dir/${ac_tool_prefix}file; then
1774 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
1775 if test -n "$file_magic_test_file"; then
1776 case "$deplibs_check_method" in
1778 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1779 MAGIC="$lt_cv_path_MAGIC"
1780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1781 egrep "$file_magic_regex" > /dev/null; then
1786 *** Warning: the command libtool uses to detect shared libraries,
1787 *** $file_magic_cmd, produces output that libtool cannot recognize.
1788 *** The result is that libtool may fail to recognize shared libraries
1789 *** as such. This will affect the creation of libtool libraries that
1790 *** depend on shared libraries, but programs linked with such libtool
1791 *** libraries will work regardless of this problem. Nevertheless, you
1792 *** may want to report the problem to your system manager and/or to
1793 *** bug-libtool@gnu.org
1803 MAGIC="$ac_save_MAGIC"
1808 MAGIC="$lt_cv_path_MAGIC"
1809 if test -n "$MAGIC"; then
1810 echo "$ac_t""$MAGIC" 1>&6
1812 echo "$ac_t""no" 1>&6
1815 if test -z "$lt_cv_path_MAGIC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 echo $ac_n "checking for file""... $ac_c" 1>&6
1818 echo "configure:1819: checking for file" >&5
1819 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1824 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1827 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1830 ac_save_MAGIC="$MAGIC"
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="/usr/bin:$PATH"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/file; then
1836 lt_cv_path_MAGIC="$ac_dir/file"
1837 if test -n "$file_magic_test_file"; then
1838 case "$deplibs_check_method" in
1840 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1841 MAGIC="$lt_cv_path_MAGIC"
1842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1843 egrep "$file_magic_regex" > /dev/null; then
1848 *** Warning: the command libtool uses to detect shared libraries,
1849 *** $file_magic_cmd, produces output that libtool cannot recognize.
1850 *** The result is that libtool may fail to recognize shared libraries
1851 *** as such. This will affect the creation of libtool libraries that
1852 *** depend on shared libraries, but programs linked with such libtool
1853 *** libraries will work regardless of this problem. Nevertheless, you
1854 *** may want to report the problem to your system manager and/or to
1855 *** bug-libtool@gnu.org
1865 MAGIC="$ac_save_MAGIC"
1870 MAGIC="$lt_cv_path_MAGIC"
1871 if test -n "$MAGIC"; then
1872 echo "$ac_t""$MAGIC" 1>&6
1874 echo "$ac_t""no" 1>&6
1886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1889 echo "configure:1890: checking for $ac_word" >&5
1890 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 if test -n "$RANLIB"; then
1894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1898 for ac_dir in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/$ac_word; then
1901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1908 RANLIB="$ac_cv_prog_RANLIB"
1909 if test -n "$RANLIB"; then
1910 echo "$ac_t""$RANLIB" 1>&6
1912 echo "$ac_t""no" 1>&6
1916 if test -z "$ac_cv_prog_RANLIB"; then
1917 if test -n "$ac_tool_prefix"; then
1918 # Extract the first word of "ranlib", so it can be a program name with args.
1919 set dummy ranlib; ac_word=$2
1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_word" >&5
1922 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 if test -n "$RANLIB"; then
1926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1930 for ac_dir in $ac_dummy; do
1931 test -z "$ac_dir" && ac_dir=.
1932 if test -f $ac_dir/$ac_word; then
1933 ac_cv_prog_RANLIB="ranlib"
1938 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1941 RANLIB="$ac_cv_prog_RANLIB"
1942 if test -n "$RANLIB"; then
1943 echo "$ac_t""$RANLIB" 1>&6
1945 echo "$ac_t""no" 1>&6
1953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954 set dummy ${ac_tool_prefix}strip; ac_word=$2
1955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_word" >&5
1957 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 if test -n "$STRIP"; then
1961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1965 for ac_dir in $ac_dummy; do
1966 test -z "$ac_dir" && ac_dir=.
1967 if test -f $ac_dir/$ac_word; then
1968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1975 STRIP="$ac_cv_prog_STRIP"
1976 if test -n "$STRIP"; then
1977 echo "$ac_t""$STRIP" 1>&6
1979 echo "$ac_t""no" 1>&6
1983 if test -z "$ac_cv_prog_STRIP"; then
1984 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "strip", so it can be a program name with args.
1986 set dummy strip; ac_word=$2
1987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_word" >&5
1989 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 if test -n "$STRIP"; then
1993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1997 for ac_dir in $ac_dummy; do
1998 test -z "$ac_dir" && ac_dir=.
1999 if test -f $ac_dir/$ac_word; then
2000 ac_cv_prog_STRIP="strip"
2005 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2008 STRIP="$ac_cv_prog_STRIP"
2009 if test -n "$STRIP"; then
2010 echo "$ac_t""$STRIP" 1>&6
2012 echo "$ac_t""no" 1>&6
2021 # Check for any special flags to pass to ltconfig.
2022 libtool_flags="--cache-file=$cache_file"
2023 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2024 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2025 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2026 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2027 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2029 libtool_flags="$libtool_flags --enable-win32-dll"
2030 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2031 if test "${enable_libtool_lock+set}" = set; then
2032 enableval="$enable_libtool_lock"
2036 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2037 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2039 # Check whether --with-pic or --without-pic was given.
2040 if test "${with_pic+set}" = set; then
2047 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2048 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2050 # Some flags need to be propagated to the compiler or linker for good
2054 # Find out which ABI we are using.
2055 echo '#line 2056 "configure"' > conftest.$ac_ext
2056 if { (eval echo configure:2057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2057 case "`/usr/bin/file conftest.o`" in
2073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2074 SAVE_CFLAGS="$CFLAGS"
2075 CFLAGS="$CFLAGS -belf"
2076 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2077 echo "configure:2078: checking whether the C compiler needs -belf" >&5
2078 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2087 cross_compiling=$ac_cv_prog_cc_cross
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2097 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2099 lt_cv_cc_needs_belf=yes
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 lt_cv_cc_needs_belf=no
2108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2112 cross_compiling=$ac_cv_prog_cc_cross
2116 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2117 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2118 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2119 CFLAGS="$SAVE_CFLAGS"
2123 *-*-cygwin* | *-*-mingw*)
2124 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2125 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_word" >&5
2128 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 if test -n "$DLLTOOL"; then
2132 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2136 for ac_dir in $ac_dummy; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/$ac_word; then
2139 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2146 DLLTOOL="$ac_cv_prog_DLLTOOL"
2147 if test -n "$DLLTOOL"; then
2148 echo "$ac_t""$DLLTOOL" 1>&6
2150 echo "$ac_t""no" 1>&6
2154 if test -z "$ac_cv_prog_DLLTOOL"; then
2155 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "dlltool", so it can be a program name with args.
2157 set dummy dlltool; ac_word=$2
2158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_word" >&5
2160 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 if test -n "$DLLTOOL"; then
2164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2168 for ac_dir in $ac_dummy; do
2169 test -z "$ac_dir" && ac_dir=.
2170 if test -f $ac_dir/$ac_word; then
2171 ac_cv_prog_DLLTOOL="dlltool"
2176 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2179 DLLTOOL="$ac_cv_prog_DLLTOOL"
2180 if test -n "$DLLTOOL"; then
2181 echo "$ac_t""$DLLTOOL" 1>&6
2183 echo "$ac_t""no" 1>&6
2191 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}as; ac_word=$2
2193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2194 echo "configure:2195: checking for $ac_word" >&5
2195 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 if test -n "$AS"; then
2199 ac_cv_prog_AS="$AS" # Let the user override the test.
2201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2203 for ac_dir in $ac_dummy; do
2204 test -z "$ac_dir" && ac_dir=.
2205 if test -f $ac_dir/$ac_word; then
2206 ac_cv_prog_AS="${ac_tool_prefix}as"
2214 if test -n "$AS"; then
2215 echo "$ac_t""$AS" 1>&6
2217 echo "$ac_t""no" 1>&6
2221 if test -z "$ac_cv_prog_AS"; then
2222 if test -n "$ac_tool_prefix"; then
2223 # Extract the first word of "as", so it can be a program name with args.
2224 set dummy as; ac_word=$2
2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_word" >&5
2227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 if test -n "$AS"; then
2231 ac_cv_prog_AS="$AS" # Let the user override the test.
2233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2235 for ac_dir in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir=.
2237 if test -f $ac_dir/$ac_word; then
2243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2247 if test -n "$AS"; then
2248 echo "$ac_t""$AS" 1>&6
2250 echo "$ac_t""no" 1>&6
2258 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 if test -n "$OBJDUMP"; then
2266 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 for ac_dir in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir=.
2272 if test -f $ac_dir/$ac_word; then
2273 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2280 OBJDUMP="$ac_cv_prog_OBJDUMP"
2281 if test -n "$OBJDUMP"; then
2282 echo "$ac_t""$OBJDUMP" 1>&6
2284 echo "$ac_t""no" 1>&6
2288 if test -z "$ac_cv_prog_OBJDUMP"; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "objdump", so it can be a program name with args.
2291 set dummy objdump; ac_word=$2
2292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2293 echo "configure:2294: checking for $ac_word" >&5
2294 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 if test -n "$OBJDUMP"; then
2298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2302 for ac_dir in $ac_dummy; do
2303 test -z "$ac_dir" && ac_dir=.
2304 if test -f $ac_dir/$ac_word; then
2305 ac_cv_prog_OBJDUMP="objdump"
2310 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2313 OBJDUMP="$ac_cv_prog_OBJDUMP"
2314 if test -n "$OBJDUMP"; then
2315 echo "$ac_t""$OBJDUMP" 1>&6
2317 echo "$ac_t""no" 1>&6
2326 # recent cygwin and mingw systems supply a stub DllMain which the user
2327 # can override, but on older systems we have to supply one
2328 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2329 echo "configure:2330: checking if libtool should supply DllMain function" >&5
2330 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2338 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2344 lt_cv_need_dllmain=no
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 lt_cv_need_dllmain=yes
2354 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2357 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2358 # old mingw systems require "-dll" to link a DLL, while more recent ones
2360 SAVE_CFLAGS="$CFLAGS"
2361 CFLAGS="$CFLAGS -mdll"
2362 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2363 echo "configure:2364: checking how to link DLLs" >&5
2364 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2377 lt_cv_cc_dll_switch=-mdll
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2382 lt_cv_cc_dll_switch=-dll
2387 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2388 CFLAGS="$SAVE_CFLAGS" ;;
2390 # cygwin systems need to pass --dll to the linker, and not link
2391 # crt.o which will require a WinMain@16 definition.
2392 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2399 # Save cache, so that ltconfig can load it
2400 cat > confcache <<\EOF
2401 # This file is a shell script that caches the results of configure
2402 # tests run on this system so they can be shared between configure
2403 # scripts and configure runs. It is not useful on other systems.
2404 # If it contains results you don't want to keep, you may remove or edit it.
2406 # By default, configure uses ./config.cache as the cache file,
2407 # creating it if it does not exist already. You can give configure
2408 # the --cache-file=FILE option to use a different cache file; that is
2409 # what configure does when it calls configure scripts in
2410 # subdirectories, so they share the cache.
2411 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2412 # config.status only pays attention to the cache file if you give it the
2413 # --recheck option to rerun configure.
2416 # The following way of writing the cache mishandles newlines in values,
2417 # but we know of no workaround that is simple, portable, and efficient.
2418 # So, don't put newlines in cache variables' values.
2419 # Ultrix sh set writes to stderr and can't be redirected directly,
2420 # and sets the high bit in the cache file unless we assign to the vars.
2422 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2424 # `set' does not quote correctly, so add quotes (double-quote substitution
2425 # turns \\\\ into \\, and sed turns \\ into \).
2427 -e "s/'/'\\\\''/g" \
2428 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2431 # `set' quotes correctly as required by POSIX, so do not add quotes.
2432 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2435 if cmp -s $cache_file confcache; then
2438 if test -w $cache_file; then
2439 echo "updating cache $cache_file"
2440 cat confcache > $cache_file
2442 echo "not updating unwritable cache $cache_file"
2448 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2449 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2450 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2451 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2452 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2453 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2454 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2455 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2456 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2457 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2459 # Reload cache, that may have been modified by ltconfig
2460 if test -r "$cache_file"; then
2461 echo "loading cache $cache_file"
2464 echo "creating cache $cache_file"
2469 # This can be used to rebuild libtool when needed
2470 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2472 # Always use our own libtool.
2473 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2475 # Redirect the config.log output again, so that the ltconfig log is not
2476 # clobbered by the next message.
2477 exec 5>>./config.log
2486 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2487 echo "configure:2488: checking for garbage collector to use" >&5
2488 # Check whether --enable-java-gc or --disable-java-gc was given.
2489 if test "${enable_java_gc+set}" = set; then
2490 enableval="$enable_java_gc"
2499 if test "$GC" = "boehm"; then
2500 GCINCS='-I$(top_srcdir)/../../boehm-gc/include'
2501 GCINCS="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
2502 cat >> confdefs.h <<\EOF
2503 #define HAVE_BOEHM_GC 1
2509 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2510 echo "configure:2511: checking how to run the C preprocessor" >&5
2511 # On Suns, sometimes $CPP names a directory.
2512 if test -n "$CPP" && test -d "$CPP"; then
2515 if test -z "$CPP"; then
2516 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 # This must be in double quotes, not single quotes, because CPP may get
2520 # substituted into the Makefile and "${CC-cc}" will confuse make.
2522 # On the NeXT, cc -E runs the code through the compiler's parser,
2523 # not just through cpp.
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2531 { (eval echo configure:2532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2533 if test -z "$ac_err"; then
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 CPP="${CC-cc} -E -traditional-cpp"
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2548 { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2550 if test -z "$ac_err"; then
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 CPP="${CC-cc} -nologo -E"
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2565 { (eval echo configure:2566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2567 if test -z "$ac_err"; then
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2581 ac_cv_prog_CPP="$CPP"
2583 CPP="$ac_cv_prog_CPP"
2585 ac_cv_prog_CPP="$CPP"
2587 echo "$ac_t""$CPP" 1>&6
2589 # Read the libtool configuration
2591 ./libtool --config > conftest
2595 # Check for command to grab the raw symbol name followed by C symbol from nm.
2596 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2597 echo "configure:2598: checking command to parse $NM output" >&5
2598 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 # These are sane defaults that work on at least a few old systems.
2602 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
2604 # Character class describing NM global symbol codes.
2605 ac_symcode='[BCDEGRST]'
2607 # Regexp to match symbols that can be accessed directly from C.
2608 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2610 # Transform the above into a raw symbol and a C symbol.
2611 ac_symxfrm='\1 \2\3 \3'
2613 # Transform an extracted symbol line into a proper C declaration
2614 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2616 # Define system-specific variables.
2622 ac_symcode='[ABCDGISTW]'
2625 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2628 ac_symcode='[BCDEGRST]'
2635 # If we're using GNU nm, then use its standard symbol codes.
2636 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2637 ac_symcode='[ABCDGISTW]'
2640 # Try without a prefix undercore, then with it.
2641 for ac_symprfx in "" "_"; do
2643 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2645 # Check to see that the pipe works correctly.
2647 rm -f conftest.$ac_ext
2648 cat > conftest.$ac_ext <<EOF
2653 void nm_test_func(){}
2657 int main(){nm_test_var='a';nm_test_func;return 0;}
2660 if { (eval echo configure:2661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2661 # Now try to grab the symbols.
2662 ac_nlist=conftest.nm
2664 if { (eval echo configure:2665: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2666 # Try sorting and uniquifying the output.
2667 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2668 mv -f "$ac_nlist"T "$ac_nlist"
2673 # Make sure that we snagged all the symbols we need.
2674 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2675 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2676 cat <<EOF > conftest.c
2682 # Now generate the symbol file.
2683 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2685 cat <<EOF >> conftest.c
2686 #if defined (__STDC__) && __STDC__
2687 # define lt_ptr_t void *
2689 # define lt_ptr_t char *
2693 /* The mapping between symbol names and symbols. */
2698 lt_preloaded_symbols[] =
2701 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2702 cat <<\EOF >> conftest.c
2710 # Now try linking the two files.
2711 mv conftest.$ac_objext conftstm.$ac_objext
2712 ac_save_LIBS="$LIBS"
2713 ac_save_CFLAGS="$CFLAGS"
2714 LIBS="conftstm.$ac_objext"
2715 CFLAGS="$CFLAGS$no_builtin_flag"
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2719 echo "configure: failed program was:" >&5
2722 LIBS="$ac_save_LIBS"
2723 CFLAGS="$ac_save_CFLAGS"
2725 echo "cannot find nm_test_func in $ac_nlist" >&5
2728 echo "cannot find nm_test_var in $ac_nlist" >&5
2731 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2734 echo "$progname: failed program was:" >&5
2737 rm -rf conftest* conftst*
2739 # Do not use the global_symbol_pipe unless it works.
2740 if test "$ac_pipe_works" = yes; then
2741 if test x"$ac_symprfx" = x"_"; then
2742 ac_cv_sys_symbol_underscore=yes
2744 ac_cv_sys_symbol_underscore=no
2748 ac_cv_sys_global_symbol_pipe=
2756 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2759 echo "$ac_t""$ac_result" 1>&6
2761 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2762 echo "configure:2763: checking for ANSI C header files" >&5
2763 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 ac_cv_header_stdc=yes
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 ac_cv_header_stdc=no
2789 if test $ac_cv_header_stdc = yes; then
2790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2797 egrep "memchr" >/dev/null 2>&1; then
2801 ac_cv_header_stdc=no
2807 if test $ac_cv_header_stdc = yes; then
2808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2815 egrep "free" >/dev/null 2>&1; then
2819 ac_cv_header_stdc=no
2825 if test $ac_cv_header_stdc = yes; then
2826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2827 if test "$cross_compiling" = yes; then
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2834 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2835 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2837 int main () { int i; for (i = 0; i < 256; i++)
2838 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2842 if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 ac_cv_header_stdc=no
2857 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2858 if test $ac_cv_header_stdc = yes; then
2859 cat >> confdefs.h <<\EOF
2860 #define STDC_HEADERS 1
2865 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
2866 if test "${enable_ltdl_install+set}" = set; then
2867 enableval="$enable_ltdl_install"
2874 if test x"${enable_ltdl_install-no}" != xno; then
2876 INSTALL_LTDL_FALSE='#'
2878 INSTALL_LTDL_TRUE='#'
2883 if test x"${enable_ltdl_convenience-no}" != xno; then
2884 CONVENIENCE_LTDL_TRUE=
2885 CONVENIENCE_LTDL_FALSE='#'
2887 CONVENIENCE_LTDL_TRUE='#'
2888 CONVENIENCE_LTDL_FALSE=
2891 echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
2892 echo "configure:2893: checking which extension is used for shared libraries" >&5
2893 if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2898 for spec in $library_names_spec; do
2902 echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
2905 libltdl_cv_shlibext=`cat conftest`
2910 echo "$ac_t""$libltdl_cv_shlibext" 1>&6
2911 if test -n "$libltdl_cv_shlibext"; then
2912 cat >> confdefs.h <<EOF
2913 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
2918 echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
2919 echo "configure:2920: checking which variable specifies run-time library path" >&5
2920 if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 libltdl_cv_shlibpath_var="$shlibpath_var"
2926 echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
2927 if test -n "$libltdl_cv_shlibpath_var"; then
2928 cat >> confdefs.h <<EOF
2929 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
2934 echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
2935 echo "configure:2936: checking for the default library search path" >&5
2936 if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
2942 echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
2943 if test -n "$libltdl_cv_sys_search_path"; then
2945 *-*-mingw*) pathsep=";" ;;
2949 for dir in $libltdl_cv_sys_search_path; do
2950 if test -z "$sys_search_path"; then
2951 sys_search_path="$dir"
2953 sys_search_path="$sys_search_path$pathsep$dir"
2956 cat >> confdefs.h <<EOF
2957 #define LTDL_SYSSEARCHPATH "$sys_search_path"
2962 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2963 echo "configure:2964: checking for objdir" >&5
2964 if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 libltdl_cv_objdir="$objdir"
2968 if test -n "$objdir"; then
2971 rm -f .libs 2>/dev/null
2972 mkdir .libs 2>/dev/null
2973 if test -d .libs; then
2974 libltdl_cv_objdir=.libs
2976 # MS-DOS does not allow filenames that begin with a dot.
2977 libltdl_cv_objdir=_libs
2979 rmdir .libs 2>/dev/null
2983 echo "$ac_t""$libltdl_cv_objdir" 1>&6
2984 cat >> confdefs.h <<EOF
2985 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
2989 echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
2990 echo "configure:2991: checking whether libtool supports -dlopen/-dlpreopen" >&5
2991 if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 if test -n "$global_symbol_pipe"; then
2995 libltdl_cv_preloaded_symbols=yes
2997 libltdl_cv_preloaded_symbols=no
3002 echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
3003 if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_PRELOADED_SYMBOLS 1
3011 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3012 echo "configure:3013: checking for dlopen in -ldl" >&5
3013 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 ac_save_LIBS="$LIBS"
3019 cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022 /* Override any gcc2 internal prototype to avoid an error. */
3023 /* We use char because int might match the return type of a gcc2
3024 builtin and then its argument prototype would still apply. */
3031 if { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3033 eval "ac_cv_lib_$ac_lib_var=yes"
3035 echo "configure: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3038 eval "ac_cv_lib_$ac_lib_var=no"
3041 LIBS="$ac_save_LIBS"
3044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3045 echo "$ac_t""yes" 1>&6
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_LIBDL 1
3051 echo "$ac_t""no" 1>&6
3052 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
3053 echo "configure:3054: checking for dlopen" >&5
3054 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 /* System header to define __stub macros and hopefully few prototypes,
3061 which can conflict with char dlopen(); below. */
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3070 /* The GNU C library defines this for functions which it implements
3071 to always fail with ENOSYS. Some functions are actually named
3072 something starting with __ and the normal name is an alias. */
3073 #if defined (__stub_dlopen) || defined (__stub___dlopen)
3081 if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3083 eval "ac_cv_func_dlopen=yes"
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3088 eval "ac_cv_func_dlopen=no"
3093 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 cat >> confdefs.h <<\EOF
3096 #define HAVE_LIBDL 1
3100 echo "$ac_t""no" 1>&6
3101 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
3102 echo "configure:3103: checking for dlopen in -lsvld" >&5
3103 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
3104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 ac_save_LIBS="$LIBS"
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 eval "ac_cv_lib_$ac_lib_var=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 eval "ac_cv_lib_$ac_lib_var=no"
3131 LIBS="$ac_save_LIBS"
3134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 cat >> confdefs.h <<\EOF
3137 #define HAVE_LIBDL 1
3142 echo "$ac_t""no" 1>&6
3149 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
3150 echo "configure:3151: checking for shl_load" >&5
3151 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char shl_load(); below. */
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3167 /* The GNU C library defines this for functions which it implements
3168 to always fail with ENOSYS. Some functions are actually named
3169 something starting with __ and the normal name is an alias. */
3170 #if defined (__stub_shl_load) || defined (__stub___shl_load)
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3180 eval "ac_cv_func_shl_load=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 eval "ac_cv_func_shl_load=no"
3190 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 cat >> confdefs.h <<\EOF
3193 #define HAVE_SHL_LOAD 1
3197 echo "$ac_t""no" 1>&6
3198 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3199 echo "configure:3200: checking for shl_load in -ldld" >&5
3200 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 ac_save_LIBS="$LIBS"
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3220 eval "ac_cv_lib_$ac_lib_var=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 eval "ac_cv_lib_$ac_lib_var=no"
3228 LIBS="$ac_save_LIBS"
3231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_SHL_LOAD 1
3237 LIBADD_DL="$LIBADD_DL -ldld"
3239 echo "$ac_t""no" 1>&6
3245 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
3246 echo "configure:3247: checking for dld_link in -ldld" >&5
3247 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
3248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 ac_save_LIBS="$LIBS"
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 /* Override any gcc2 internal prototype to avoid an error. */
3257 /* We use char because int might match the return type of a gcc2
3258 builtin and then its argument prototype would still apply. */
3265 if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3267 eval "ac_cv_lib_$ac_lib_var=yes"
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3272 eval "ac_cv_lib_$ac_lib_var=no"
3275 LIBS="$ac_save_LIBS"
3278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3280 cat >> confdefs.h <<\EOF
3283 test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
3285 echo "$ac_t""no" 1>&6
3290 if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
3292 LIBS="$LIBS $LIBADD_DL"
3293 for ac_func in dlerror
3295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_func" >&5
3297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* System header to define __stub macros and hopefully few prototypes,
3304 which can conflict with char $ac_func(); below. */
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3313 /* The GNU C library defines this for functions which it implements
3314 to always fail with ENOSYS. Some functions are actually named
3315 something starting with __ and the normal name is an alias. */
3316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 eval "ac_cv_func_$ac_func=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_func_$ac_func=no"
3336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_func 1
3344 echo "$ac_t""no" 1>&6
3351 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
3352 echo "configure:3353: checking for _ prefix in compiled symbols" >&5
3353 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 ac_cv_sys_symbol_underscore=no
3357 cat > conftest.$ac_ext <<EOF
3358 void nm_test_func(){}
3359 int main(){nm_test_func;return 0;}
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3362 # Now try to grab the symbols.
3363 ac_nlist=conftest.nm
3364 if { (eval echo configure:3365: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
3365 # See whether the symbols have a leading underscore.
3366 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
3367 ac_cv_sys_symbol_underscore=yes
3369 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
3372 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
3376 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
3379 echo "configure: failed program was:" >&5
3386 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
3387 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
3388 if test x"$ac_cv_func_dlopen" = xyes ||
3389 test x"$ac_cv_lib_dl_dlopen" = xyes ; then
3390 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
3391 echo "configure:3392: checking whether we have to add an underscore for dlsym" >&5
3392 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 if test "$cross_compiling" = yes; then
3396 libltdl_cv_need_uscore=cross
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3410 # define LTDL_GLOBAL RTLD_GLOBAL
3413 # define LTDL_GLOBAL DL_GLOBAL
3415 # define LTDL_GLOBAL 0
3419 /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
3420 find out it does not work in some platform. */
3421 #ifndef LTDL_LAZY_OR_NOW
3423 # define LTDL_LAZY_OR_NOW RTLD_LAZY
3426 # define LTDL_LAZY_OR_NOW DL_LAZY
3429 # define LTDL_LAZY_OR_NOW RTLD_NOW
3432 # define LTDL_LAZY_OR_NOW DL_NOW
3434 # define LTDL_LAZY_OR_NOW 0
3441 fnord() { int i=42;}
3442 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
3443 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3444 if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3449 libltdl_cv_need_uscore=no
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 libltdl_cv_need_uscore=yes
3461 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
3465 if test x"$libltdl_cv_need_uscore" = xyes; then
3466 cat >> confdefs.h <<\EOF
3467 #define NEED_USCORE 1
3475 for ac_hdr in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
3477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3479 echo "configure:3480: checking for $ac_hdr" >&5
3480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3489 { (eval echo configure:3490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3491 if test -z "$ac_err"; then
3493 eval "ac_cv_header_$ac_safe=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_header_$ac_safe=no"
3503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3504 echo "$ac_t""yes" 1>&6
3505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3506 cat >> confdefs.h <<EOF
3507 #define $ac_tr_hdr 1
3511 echo "$ac_t""no" 1>&6
3515 for ac_hdr in string.h strings.h
3517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_hdr" >&5
3520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3529 { (eval echo configure:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3531 if test -z "$ac_err"; then
3533 eval "ac_cv_header_$ac_safe=yes"
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 eval "ac_cv_header_$ac_safe=no"
3543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3546 cat >> confdefs.h <<EOF
3547 #define $ac_tr_hdr 1
3551 echo "$ac_t""no" 1>&6
3555 for ac_func in strchr index
3557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3558 echo "configure:3559: checking for $ac_func" >&5
3559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 /* System header to define __stub macros and hopefully few prototypes,
3566 which can conflict with char $ac_func(); below. */
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3575 /* The GNU C library defines this for functions which it implements
3576 to always fail with ENOSYS. Some functions are actually named
3577 something starting with __ and the normal name is an alias. */
3578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3588 eval "ac_cv_func_$ac_func=yes"
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 eval "ac_cv_func_$ac_func=no"
3598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3601 cat >> confdefs.h <<EOF
3602 #define $ac_tr_func 1
3606 echo "$ac_t""no" 1>&6
3610 for ac_func in strrchr rindex
3612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3613 echo "configure:3614: checking for $ac_func" >&5
3614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 /* System header to define __stub macros and hopefully few prototypes,
3621 which can conflict with char $ac_func(); below. */
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3630 /* The GNU C library defines this for functions which it implements
3631 to always fail with ENOSYS. Some functions are actually named
3632 something starting with __ and the normal name is an alias. */
3633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 eval "ac_cv_func_$ac_func=yes"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 eval "ac_cv_func_$ac_func=no"
3653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3654 echo "$ac_t""yes" 1>&6
3655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3656 cat >> confdefs.h <<EOF
3657 #define $ac_tr_func 1
3661 echo "$ac_t""no" 1>&6
3665 for ac_func in strcmp
3667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3668 echo "configure:3669: checking for $ac_func" >&5
3669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* System header to define __stub macros and hopefully few prototypes,
3676 which can conflict with char $ac_func(); below. */
3678 /* Override any gcc2 internal prototype to avoid an error. */
3679 /* We use char because int might match the return type of a gcc2
3680 builtin and then its argument prototype would still apply. */
3685 /* The GNU C library defines this for functions which it implements
3686 to always fail with ENOSYS. Some functions are actually named
3687 something starting with __ and the normal name is an alias. */
3688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3696 if { (eval echo configure:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3698 eval "ac_cv_func_$ac_func=yes"
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3703 eval "ac_cv_func_$ac_func=no"
3708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3711 cat >> confdefs.h <<EOF
3712 #define $ac_tr_func 1
3716 echo "$ac_t""no" 1>&6
3724 cat > confcache <<\EOF
3725 # This file is a shell script that caches the results of configure
3726 # tests run on this system so they can be shared between configure
3727 # scripts and configure runs. It is not useful on other systems.
3728 # If it contains results you don't want to keep, you may remove or edit it.
3730 # By default, configure uses ./config.cache as the cache file,
3731 # creating it if it does not exist already. You can give configure
3732 # the --cache-file=FILE option to use a different cache file; that is
3733 # what configure does when it calls configure scripts in
3734 # subdirectories, so they share the cache.
3735 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3736 # config.status only pays attention to the cache file if you give it the
3737 # --recheck option to rerun configure.
3740 # The following way of writing the cache mishandles newlines in values,
3741 # but we know of no workaround that is simple, portable, and efficient.
3742 # So, don't put newlines in cache variables' values.
3743 # Ultrix sh set writes to stderr and can't be redirected directly,
3744 # and sets the high bit in the cache file unless we assign to the vars.
3746 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3748 # `set' does not quote correctly, so add quotes (double-quote substitution
3749 # turns \\\\ into \\, and sed turns \\ into \).
3751 -e "s/'/'\\\\''/g" \
3752 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3755 # `set' quotes correctly as required by POSIX, so do not add quotes.
3756 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3759 if cmp -s $cache_file confcache; then
3762 if test -w $cache_file; then
3763 echo "updating cache $cache_file"
3764 cat confcache > $cache_file
3766 echo "not updating unwritable cache $cache_file"
3771 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3774 # Let make expand exec_prefix.
3775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3777 # Any assignment to VPATH causes Sun make to only execute
3778 # the first set of double-colon rules, so remove it if not needed.
3779 # If there is a colon in the path, we need to keep it.
3780 if test "x$srcdir" = x.; then
3781 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3784 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3786 DEFS=-DHAVE_CONFIG_H
3788 # Without the "./", some shells look in PATH for config.status.
3789 : ${CONFIG_STATUS=./config.status}
3791 echo creating $CONFIG_STATUS
3792 rm -f $CONFIG_STATUS
3793 cat > $CONFIG_STATUS <<EOF
3795 # Generated automatically by configure.
3796 # Run this file to recreate the current configuration.
3797 # This directory was configured as follows,
3798 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3800 # $0 $ac_configure_args
3802 # Compiler output produced by configure, useful for debugging
3803 # configure, is in ./config.log if it exists.
3805 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3808 case "\$ac_option" in
3809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3810 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3811 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3812 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3813 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3815 -help | --help | --hel | --he | --h)
3816 echo "\$ac_cs_usage"; exit 0 ;;
3817 *) echo "\$ac_cs_usage"; exit 1 ;;
3821 ac_given_srcdir=$srcdir
3822 ac_given_INSTALL="$INSTALL"
3824 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3826 cat >> $CONFIG_STATUS <<EOF
3828 # Protect against being on the right side of a sed subst in config.status.
3829 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3830 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3834 s%@CFLAGS@%$CFLAGS%g
3835 s%@CPPFLAGS@%$CPPFLAGS%g
3836 s%@CXXFLAGS@%$CXXFLAGS%g
3837 s%@FFLAGS@%$FFLAGS%g
3839 s%@LDFLAGS@%$LDFLAGS%g
3841 s%@exec_prefix@%$exec_prefix%g
3842 s%@prefix@%$prefix%g
3843 s%@program_transform_name@%$program_transform_name%g
3844 s%@bindir@%$bindir%g
3845 s%@sbindir@%$sbindir%g
3846 s%@libexecdir@%$libexecdir%g
3847 s%@datadir@%$datadir%g
3848 s%@sysconfdir@%$sysconfdir%g
3849 s%@sharedstatedir@%$sharedstatedir%g
3850 s%@localstatedir@%$localstatedir%g
3851 s%@libdir@%$libdir%g
3852 s%@includedir@%$includedir%g
3853 s%@oldincludedir@%$oldincludedir%g
3854 s%@infodir@%$infodir%g
3855 s%@mandir@%$mandir%g
3856 s%@mkinstalldirs@%$mkinstalldirs%g
3857 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3858 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3859 s%@INSTALL_DATA@%$INSTALL_DATA%g
3860 s%@PACKAGE@%$PACKAGE%g
3861 s%@VERSION@%$VERSION%g
3862 s%@ACLOCAL@%$ACLOCAL%g
3863 s%@AUTOCONF@%$AUTOCONF%g
3864 s%@AUTOMAKE@%$AUTOMAKE%g
3865 s%@AUTOHEADER@%$AUTOHEADER%g
3866 s%@MAKEINFO@%$MAKEINFO%g
3867 s%@SET_MAKE@%$SET_MAKE%g
3868 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3869 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3873 s%@host_alias@%$host_alias%g
3874 s%@host_cpu@%$host_cpu%g
3875 s%@host_vendor@%$host_vendor%g
3876 s%@host_os@%$host_os%g
3878 s%@build_alias@%$build_alias%g
3879 s%@build_cpu@%$build_cpu%g
3880 s%@build_vendor@%$build_vendor%g
3881 s%@build_os@%$build_os%g
3883 s%@OBJEXT@%$OBJEXT%g
3884 s%@EXEEXT@%$EXEEXT%g
3885 s%@RANLIB@%$RANLIB%g
3887 s%@DLLTOOL@%$DLLTOOL%g
3889 s%@OBJDUMP@%$OBJDUMP%g
3890 s%@LIBTOOL@%$LIBTOOL%g
3891 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
3892 s%@GCINCS@%$GCINCS%g
3894 s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
3895 s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
3896 s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
3897 s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
3898 s%@LIBADD_DL@%$LIBADD_DL%g
3903 cat >> $CONFIG_STATUS <<\EOF
3905 # Split the substitutions into bite-sized pieces for seds with
3906 # small command number limits, like on Digital OSF/1 and HP-UX.
3907 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3908 ac_file=1 # Number of current file.
3909 ac_beg=1 # First line for current file.
3910 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3913 while $ac_more_lines; do
3914 if test $ac_beg -gt 1; then
3915 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3917 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3919 if test ! -s conftest.s$ac_file; then
3921 rm -f conftest.s$ac_file
3923 if test -z "$ac_sed_cmds"; then
3924 ac_sed_cmds="sed -f conftest.s$ac_file"
3926 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3928 ac_file=`expr $ac_file + 1`
3930 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3933 if test -z "$ac_sed_cmds"; then
3938 cat >> $CONFIG_STATUS <<EOF
3940 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3942 cat >> $CONFIG_STATUS <<\EOF
3943 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3946 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3947 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3948 *) ac_file_in="${ac_file}.in" ;;
3951 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3953 # Remove last slash and all that follows it. Not all systems have dirname.
3954 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3955 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3956 # The file is in a subdirectory.
3957 test ! -d "$ac_dir" && mkdir "$ac_dir"
3958 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3959 # A "../" for each directory in $ac_dir_suffix.
3960 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3962 ac_dir_suffix= ac_dots=
3965 case "$ac_given_srcdir" in
3967 if test -z "$ac_dots"; then top_srcdir=.
3968 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3969 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3971 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3972 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3975 case "$ac_given_INSTALL" in
3976 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3977 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3980 echo creating "$ac_file"
3982 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3984 *Makefile*) ac_comsub="1i\\
3985 # $configure_input" ;;
3989 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3991 s%@configure_input@%$configure_input%g
3992 s%@srcdir@%$srcdir%g
3993 s%@top_srcdir@%$top_srcdir%g
3994 s%@INSTALL@%$INSTALL%g
3995 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3999 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4000 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4002 # ac_d sets the value in "#define NAME VALUE" lines.
4003 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4004 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4007 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4008 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4009 ac_uB='\([ ]\)%\1#\2define\3'
4012 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4013 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4014 ac_eB='$%\1#\2define\3'
4018 if test "${CONFIG_HEADERS+set}" != set; then
4020 cat >> $CONFIG_STATUS <<EOF
4021 CONFIG_HEADERS="config.h"
4023 cat >> $CONFIG_STATUS <<\EOF
4025 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4028 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4029 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4030 *) ac_file_in="${ac_file}.in" ;;
4033 echo creating $ac_file
4035 rm -f conftest.frag conftest.in conftest.out
4036 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4037 cat $ac_file_inputs > conftest.in
4041 # Transform confdefs.h into a sed script conftest.vals that substitutes
4042 # the proper values into config.h.in to produce config.h. And first:
4043 # Protect against being on the right side of a sed subst in config.status.
4044 # Protect against being in an unquoted here document in config.status.
4046 cat > conftest.hdr <<\EOF
4049 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4053 sed -n -f conftest.hdr confdefs.h > conftest.vals
4056 # This sed command replaces #undef with comments. This is necessary, for
4057 # example, in the case of _POSIX_SOURCE, which is predefined and required
4058 # on some systems where configure will not decide to define it.
4059 cat >> conftest.vals <<\EOF
4060 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4063 # Break up conftest.vals because some shells have a limit on
4064 # the size of here documents, and old seds have small limits too.
4069 ac_lines=`grep -c . conftest.vals`
4070 # grep -c gives empty output for an empty file on some AIX systems.
4071 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4072 # Write a limited-size here document to conftest.frag.
4073 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4074 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4076 sed -f conftest.frag conftest.in > conftest.out
4078 mv conftest.out conftest.in
4080 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4082 mv conftest.tail conftest.vals
4086 cat >> $CONFIG_STATUS <<\EOF
4087 rm -f conftest.frag conftest.h
4088 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4089 cat conftest.in >> conftest.h
4091 if cmp -s $ac_file conftest.h 2>/dev/null; then
4092 echo "$ac_file is unchanged"
4095 # Remove last slash and all that follows it. Not all systems have dirname.
4096 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4098 # The file is in a subdirectory.
4099 test ! -d "$ac_dir" && mkdir "$ac_dir"
4102 mv conftest.h $ac_file
4107 cat >> $CONFIG_STATUS <<EOF
4111 cat >> $CONFIG_STATUS <<\EOF
4112 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4116 chmod +x $CONFIG_STATUS
4117 rm -fr confdefs* $ac_clean_files
4118 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1