Regenerated using autoconf-2.52.
[libiconv.git] / libcharset / configure
blobbab02fb042a23357ff15945aa12532dfe69bb006
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
20 # Check that we are running under the correct shell.
21 SHELL=${CONFIG_SHELL-/bin/sh}
23 case X$ECHO in
24 X*--fallback-echo)
25 # Remove one level of quotation (which was required for Make).
26 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
28 esac
30 echo=${ECHO-echo}
31 if test "X$1" = X--no-reexec; then
32 # Discard the --no-reexec flag, and continue.
33 shift
34 elif test "X$1" = X--fallback-echo; then
35 # Avoid inline document here, it may be left over
37 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
40 else
41 # Restart under the correct shell.
42 exec $SHELL "$0" --no-reexec ${1+"$@"}
45 if test "X$1" = X--fallback-echo; then
46 # used as fallback echo
47 shift
48 cat <<EOF
50 EOF
51 exit 0
54 # The HP-UX ksh and POSIX shell print the target directory to stdout
55 # if CDPATH is set.
56 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58 if test -z "$ECHO"; then
59 if test "X${echo_test_string+set}" != Xset; then
60 # find a string as large as possible, as long as the shell can cope with it
61 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64 echo_test_string="`eval $cmd`" &&
65 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66 then
67 break
69 done
72 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74 test "X$echo_testing_string" = "X$echo_test_string"; then
76 else
77 # The Solaris, AIX, and Digital Unix default echo programs unquote
78 # backslashes. This makes it impossible to quote backslashes using
79 # echo "$something" | sed 's/\\/\\\\/g'
81 # So, first we look for a working echo in the user's PATH.
83 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84 for dir in $PATH /usr/ucb; do
85 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
89 echo="$dir/echo"
90 break
92 done
93 IFS="$save_ifs"
95 if test "X$echo" = Xecho; then
96 # We didn't find a better echo, so look for alternatives.
97 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # This shell has a builtin print -r that does the trick.
101 echo='print -r'
102 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103 test "X$CONFIG_SHELL" != X/bin/ksh; then
104 # If we have ksh, try running configure again with it.
105 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106 export ORIGINAL_CONFIG_SHELL
107 CONFIG_SHELL=/bin/ksh
108 export CONFIG_SHELL
109 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110 else
111 # Try using printf.
112 echo='printf %s\n'
113 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
116 # Cool, printf works
118 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119 test "X$echo_testing_string" = 'X\t' &&
120 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121 test "X$echo_testing_string" = "X$echo_test_string"; then
122 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123 export CONFIG_SHELL
124 SHELL="$CONFIG_SHELL"
125 export SHELL
126 echo="$CONFIG_SHELL $0 --fallback-echo"
127 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128 test "X$echo_testing_string" = 'X\t' &&
129 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
131 echo="$CONFIG_SHELL $0 --fallback-echo"
132 else
133 # maybe with a smaller string...
134 prev=:
136 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138 then
139 break
141 prev="$cmd"
142 done
144 if test "$prev" != 'sed 50q "$0"'; then
145 echo_test_string=`eval $prev`
146 export echo_test_string
147 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148 else
149 # Oops. We lost completely, so just stick with echo.
150 echo=echo
158 # Copy echo and quote the copy suitably for passing to libtool from
159 # the Makefile, instead of quoting the original, which is used later.
160 ECHO=$echo
161 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 # Avoid depending upon Character Ranges.
166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
169 as_cr_digits='0123456789'
170 as_cr_alnum=$as_cr_Letters$as_cr_digits
172 # Sed expression to map a string onto a valid variable name.
173 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175 # Sed expression to map a string onto a valid CPP name.
176 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178 # Be Bourne compatible
179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
180 emulate sh
181 NULLCMD=:
182 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
183 set -o posix
186 # Name of the executable.
187 as_me=`echo "$0" |sed 's,.*[\\/],,'`
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Support unset when possible.
216 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
217 as_unset=unset
218 else
219 as_unset=false
222 # NLS nuisances.
223 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
224 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
225 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
226 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
227 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
228 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
229 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
230 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
236 IFS=" $as_nl"
238 # CDPATH.
239 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
241 # Name of the host.
242 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
243 # so uname gets run too.
244 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 exec 6>&1
249 # Initializations.
251 ac_default_prefix=/usr/local
252 cross_compiling=no
253 subdirs=
254 MFLAGS= MAKEFLAGS=
255 SHELL=${CONFIG_SHELL-/bin/sh}
257 # Maximum number of lines to put in a shell here document.
258 # This variable seems obsolete. It should probably be removed, and
259 # only ac_max_sed_lines should be used.
260 : ${ac_max_here_lines=38}
262 ac_unique_file="lib/localcharset.c"
264 # Initialize some variables set by options.
265 ac_init_help=
266 ac_init_version=false
267 # The variables have the same names as the options, with
268 # dashes changed to underlines.
269 cache_file=/dev/null
270 exec_prefix=NONE
271 no_create=
272 no_recursion=
273 prefix=NONE
274 program_prefix=NONE
275 program_suffix=NONE
276 program_transform_name=s,x,x,
277 silent=
278 site=
279 srcdir=
280 verbose=
281 x_includes=NONE
282 x_libraries=NONE
284 # Installation directory options.
285 # These are left unexpanded so users can "make install exec_prefix=/foo"
286 # and all the variables that are supposed to be based on exec_prefix
287 # by default will actually change.
288 # Use braces instead of parens because sh, perl, etc. also accept them.
289 bindir='${exec_prefix}/bin'
290 sbindir='${exec_prefix}/sbin'
291 libexecdir='${exec_prefix}/libexec'
292 datadir='${prefix}/share'
293 sysconfdir='${prefix}/etc'
294 sharedstatedir='${prefix}/com'
295 localstatedir='${prefix}/var'
296 libdir='${exec_prefix}/lib'
297 includedir='${prefix}/include'
298 oldincludedir='/usr/include'
299 infodir='${prefix}/info'
300 mandir='${prefix}/man'
302 # Identity of this package.
303 PACKAGE_NAME=
304 PACKAGE_TARNAME=
305 PACKAGE_VERSION=
306 PACKAGE_STRING=
307 PACKAGE_BUGREPORT=
309 ac_prev=
310 for ac_option
312 # If the previous option needs an argument, assign it.
313 if test -n "$ac_prev"; then
314 eval "$ac_prev=\$ac_option"
315 ac_prev=
316 continue
319 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
321 # Accept the important Cygnus configure options, so we can diagnose typos.
323 case $ac_option in
325 -bindir | --bindir | --bindi | --bind | --bin | --bi)
326 ac_prev=bindir ;;
327 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
328 bindir=$ac_optarg ;;
330 -build | --build | --buil | --bui | --bu)
331 ac_prev=build_alias ;;
332 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
333 build_alias=$ac_optarg ;;
335 -cache-file | --cache-file | --cache-fil | --cache-fi \
336 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
337 ac_prev=cache_file ;;
338 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
339 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
340 cache_file=$ac_optarg ;;
342 --config-cache | -C)
343 cache_file=config.cache ;;
345 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
346 ac_prev=datadir ;;
347 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
348 | --da=*)
349 datadir=$ac_optarg ;;
351 -disable-* | --disable-*)
352 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
353 # Reject names that are not valid shell variable names.
354 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
355 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
356 { (exit 1); exit 1; }; }
357 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
358 eval "enable_$ac_feature=no" ;;
360 -enable-* | --enable-*)
361 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
362 # Reject names that are not valid shell variable names.
363 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
365 { (exit 1); exit 1; }; }
366 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
367 case $ac_option in
368 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "enable_$ac_feature='$ac_optarg'" ;;
373 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
374 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
375 | --exec | --exe | --ex)
376 ac_prev=exec_prefix ;;
377 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
378 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
379 | --exec=* | --exe=* | --ex=*)
380 exec_prefix=$ac_optarg ;;
382 -gas | --gas | --ga | --g)
383 # Obsolete; use --with-gas.
384 with_gas=yes ;;
386 -help | --help | --hel | --he | -h)
387 ac_init_help=long ;;
388 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
389 ac_init_help=recursive ;;
390 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
391 ac_init_help=short ;;
393 -host | --host | --hos | --ho)
394 ac_prev=host_alias ;;
395 -host=* | --host=* | --hos=* | --ho=*)
396 host_alias=$ac_optarg ;;
398 -includedir | --includedir | --includedi | --included | --include \
399 | --includ | --inclu | --incl | --inc)
400 ac_prev=includedir ;;
401 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
402 | --includ=* | --inclu=* | --incl=* | --inc=*)
403 includedir=$ac_optarg ;;
405 -infodir | --infodir | --infodi | --infod | --info | --inf)
406 ac_prev=infodir ;;
407 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
408 infodir=$ac_optarg ;;
410 -libdir | --libdir | --libdi | --libd)
411 ac_prev=libdir ;;
412 -libdir=* | --libdir=* | --libdi=* | --libd=*)
413 libdir=$ac_optarg ;;
415 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
416 | --libexe | --libex | --libe)
417 ac_prev=libexecdir ;;
418 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
419 | --libexe=* | --libex=* | --libe=*)
420 libexecdir=$ac_optarg ;;
422 -localstatedir | --localstatedir | --localstatedi | --localstated \
423 | --localstate | --localstat | --localsta | --localst \
424 | --locals | --local | --loca | --loc | --lo)
425 ac_prev=localstatedir ;;
426 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
427 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
428 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
429 localstatedir=$ac_optarg ;;
431 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
432 ac_prev=mandir ;;
433 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
434 mandir=$ac_optarg ;;
436 -nfp | --nfp | --nf)
437 # Obsolete; use --without-fp.
438 with_fp=no ;;
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c)
442 no_create=yes ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
446 no_recursion=yes ;;
448 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
449 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
450 | --oldin | --oldi | --old | --ol | --o)
451 ac_prev=oldincludedir ;;
452 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
453 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
454 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
455 oldincludedir=$ac_optarg ;;
457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
458 ac_prev=prefix ;;
459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
460 prefix=$ac_optarg ;;
462 -program-prefix | --program-prefix | --program-prefi | --program-pref \
463 | --program-pre | --program-pr | --program-p)
464 ac_prev=program_prefix ;;
465 -program-prefix=* | --program-prefix=* | --program-prefi=* \
466 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
467 program_prefix=$ac_optarg ;;
469 -program-suffix | --program-suffix | --program-suffi | --program-suff \
470 | --program-suf | --program-su | --program-s)
471 ac_prev=program_suffix ;;
472 -program-suffix=* | --program-suffix=* | --program-suffi=* \
473 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
474 program_suffix=$ac_optarg ;;
476 -program-transform-name | --program-transform-name \
477 | --program-transform-nam | --program-transform-na \
478 | --program-transform-n | --program-transform- \
479 | --program-transform | --program-transfor \
480 | --program-transfo | --program-transf \
481 | --program-trans | --program-tran \
482 | --progr-tra | --program-tr | --program-t)
483 ac_prev=program_transform_name ;;
484 -program-transform-name=* | --program-transform-name=* \
485 | --program-transform-nam=* | --program-transform-na=* \
486 | --program-transform-n=* | --program-transform-=* \
487 | --program-transform=* | --program-transfor=* \
488 | --program-transfo=* | --program-transf=* \
489 | --program-trans=* | --program-tran=* \
490 | --progr-tra=* | --program-tr=* | --program-t=*)
491 program_transform_name=$ac_optarg ;;
493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
494 | -silent | --silent | --silen | --sile | --sil)
495 silent=yes ;;
497 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
498 ac_prev=sbindir ;;
499 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
500 | --sbi=* | --sb=*)
501 sbindir=$ac_optarg ;;
503 -sharedstatedir | --sharedstatedir | --sharedstatedi \
504 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
505 | --sharedst | --shareds | --shared | --share | --shar \
506 | --sha | --sh)
507 ac_prev=sharedstatedir ;;
508 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
509 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
510 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
511 | --sha=* | --sh=*)
512 sharedstatedir=$ac_optarg ;;
514 -site | --site | --sit)
515 ac_prev=site ;;
516 -site=* | --site=* | --sit=*)
517 site=$ac_optarg ;;
519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
520 ac_prev=srcdir ;;
521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
522 srcdir=$ac_optarg ;;
524 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
525 | --syscon | --sysco | --sysc | --sys | --sy)
526 ac_prev=sysconfdir ;;
527 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
528 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
529 sysconfdir=$ac_optarg ;;
531 -target | --target | --targe | --targ | --tar | --ta | --t)
532 ac_prev=target_alias ;;
533 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
534 target_alias=$ac_optarg ;;
536 -v | -verbose | --verbose | --verbos | --verbo | --verb)
537 verbose=yes ;;
539 -version | --version | --versio | --versi | --vers | -V)
540 ac_init_version=: ;;
542 -with-* | --with-*)
543 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
544 # Reject names that are not valid shell variable names.
545 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546 { echo "$as_me: error: invalid package name: $ac_package" >&2
547 { (exit 1); exit 1; }; }
548 ac_package=`echo $ac_package| sed 's/-/_/g'`
549 case $ac_option in
550 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
551 *) ac_optarg=yes ;;
552 esac
553 eval "with_$ac_package='$ac_optarg'" ;;
555 -without-* | --without-*)
556 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid package name: $ac_package" >&2
560 { (exit 1); exit 1; }; }
561 ac_package=`echo $ac_package | sed 's/-/_/g'`
562 eval "with_$ac_package=no" ;;
564 --x)
565 # Obsolete; use --with-x.
566 with_x=yes ;;
568 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
569 | --x-incl | --x-inc | --x-in | --x-i)
570 ac_prev=x_includes ;;
571 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
572 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
573 x_includes=$ac_optarg ;;
575 -x-libraries | --x-libraries | --x-librarie | --x-librari \
576 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
577 ac_prev=x_libraries ;;
578 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
579 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
580 x_libraries=$ac_optarg ;;
582 -*) { echo "$as_me: error: unrecognized option: $ac_option
583 Try \`$0 --help' for more information." >&2
584 { (exit 1); exit 1; }; }
587 *=*)
588 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
592 { (exit 1); exit 1; }; }
593 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
594 eval "$ac_envvar='$ac_optarg'"
595 export $ac_envvar ;;
598 # FIXME: should be removed in autoconf 3.0.
599 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
600 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
601 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
602 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
605 esac
606 done
608 if test -n "$ac_prev"; then
609 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
610 { echo "$as_me: error: missing argument to $ac_option" >&2
611 { (exit 1); exit 1; }; }
614 # Be sure to have absolute paths.
615 for ac_var in exec_prefix prefix
617 eval ac_val=$`echo $ac_var`
618 case $ac_val in
619 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
620 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
621 { (exit 1); exit 1; }; };;
622 esac
623 done
625 # Be sure to have absolute paths.
626 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
627 localstatedir libdir includedir oldincludedir infodir mandir
629 eval ac_val=$`echo $ac_var`
630 case $ac_val in
631 [\\/$]* | ?:[\\/]* ) ;;
632 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
633 { (exit 1); exit 1; }; };;
634 esac
635 done
637 # There might be people who depend on the old broken behavior: `$host'
638 # used to hold the argument of --host etc.
639 build=$build_alias
640 host=$host_alias
641 target=$target_alias
643 # FIXME: should be removed in autoconf 3.0.
644 if test "x$host_alias" != x; then
645 if test "x$build_alias" = x; then
646 cross_compiling=maybe
647 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
648 If a cross compiler is detected then cross compile mode will be used." >&2
649 elif test "x$build_alias" != "x$host_alias"; then
650 cross_compiling=yes
654 ac_tool_prefix=
655 test -n "$host_alias" && ac_tool_prefix=$host_alias-
657 test "$silent" = yes && exec 6>/dev/null
659 # Find the source files, if location was not specified.
660 if test -z "$srcdir"; then
661 ac_srcdir_defaulted=yes
662 # Try the directory containing this script, then its parent.
663 ac_prog=$0
664 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
665 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
666 srcdir=$ac_confdir
667 if test ! -r $srcdir/$ac_unique_file; then
668 srcdir=..
670 else
671 ac_srcdir_defaulted=no
673 if test ! -r $srcdir/$ac_unique_file; then
674 if test "$ac_srcdir_defaulted" = yes; then
675 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
676 { (exit 1); exit 1; }; }
677 else
678 { echo "$as_me: error: cannot find sources in $srcdir" >&2
679 { (exit 1); exit 1; }; }
682 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
683 ac_env_build_alias_set=${build_alias+set}
684 ac_env_build_alias_value=$build_alias
685 ac_cv_env_build_alias_set=${build_alias+set}
686 ac_cv_env_build_alias_value=$build_alias
687 ac_env_host_alias_set=${host_alias+set}
688 ac_env_host_alias_value=$host_alias
689 ac_cv_env_host_alias_set=${host_alias+set}
690 ac_cv_env_host_alias_value=$host_alias
691 ac_env_target_alias_set=${target_alias+set}
692 ac_env_target_alias_value=$target_alias
693 ac_cv_env_target_alias_set=${target_alias+set}
694 ac_cv_env_target_alias_value=$target_alias
695 ac_env_CC_set=${CC+set}
696 ac_env_CC_value=$CC
697 ac_cv_env_CC_set=${CC+set}
698 ac_cv_env_CC_value=$CC
699 ac_env_CFLAGS_set=${CFLAGS+set}
700 ac_env_CFLAGS_value=$CFLAGS
701 ac_cv_env_CFLAGS_set=${CFLAGS+set}
702 ac_cv_env_CFLAGS_value=$CFLAGS
703 ac_env_LDFLAGS_set=${LDFLAGS+set}
704 ac_env_LDFLAGS_value=$LDFLAGS
705 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
706 ac_cv_env_LDFLAGS_value=$LDFLAGS
707 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
708 ac_env_CPPFLAGS_value=$CPPFLAGS
709 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
710 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
711 ac_env_CPP_set=${CPP+set}
712 ac_env_CPP_value=$CPP
713 ac_cv_env_CPP_set=${CPP+set}
714 ac_cv_env_CPP_value=$CPP
717 # Report the --help message.
719 if test "$ac_init_help" = "long"; then
720 # Omit some internal or obsolete options to make the list less imposing.
721 # This message is too long to be a string in the A/UX 3.1 sh.
722 cat <<EOF
723 \`configure' configures this package to adapt to many kinds of systems.
725 Usage: $0 [OPTION]... [VAR=VALUE]...
727 To assign environment variables (e.g., CC, CFLAGS...), specify them as
728 VAR=VALUE. See below for descriptions of some of the useful variables.
730 Defaults for the options are specified in brackets.
732 Configuration:
733 -h, --help display this help and exit
734 --help=short display options specific to this package
735 --help=recursive display the short help of all the included packages
736 -V, --version display version information and exit
737 -q, --quiet, --silent do not print \`checking...' messages
738 --cache-file=FILE cache test results in FILE [disabled]
739 -C, --config-cache alias for \`--cache-file=config.cache'
740 -n, --no-create do not create output files
741 --srcdir=DIR find the sources in DIR [configure dir or \`..']
745 cat <<EOF
746 Installation directories:
747 --prefix=PREFIX install architecture-independent files in PREFIX
748 [$ac_default_prefix]
749 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
750 [PREFIX]
752 By default, \`make install' will install all the files in
753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
755 for instance \`--prefix=\$HOME'.
757 For better control, use the options below.
759 Fine tuning of the installation directories:
760 --bindir=DIR user executables [EPREFIX/bin]
761 --sbindir=DIR system admin executables [EPREFIX/sbin]
762 --libexecdir=DIR program executables [EPREFIX/libexec]
763 --datadir=DIR read-only architecture-independent data [PREFIX/share]
764 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
765 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
766 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
767 --libdir=DIR object code libraries [EPREFIX/lib]
768 --includedir=DIR C header files [PREFIX/include]
769 --oldincludedir=DIR C header files for non-gcc [/usr/include]
770 --infodir=DIR info documentation [PREFIX/info]
771 --mandir=DIR man documentation [PREFIX/man]
774 cat <<\EOF
776 System types:
777 --build=BUILD configure for building on BUILD [guessed]
778 --host=HOST build programs to run on HOST [BUILD]
782 if test -n "$ac_init_help"; then
784 cat <<\EOF
786 Optional Features:
787 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
788 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
789 --enable-shared=PKGS build shared libraries default=yes
790 --enable-static=PKGS build static libraries default=yes
791 --enable-fast-install=PKGS optimize for fast installation default=yes
792 --disable-libtool-lock avoid locking (might break parallel builds)
794 Optional Packages:
795 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
796 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
797 --with-gnu-ld assume the C compiler uses GNU ld default=no
798 --with-pic try to use only PIC/non-PIC objects default=use both
800 Some influential environment variables:
801 CC C compiler command
802 CFLAGS C compiler flags
803 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
804 nonstandard directory <lib dir>
805 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
806 headers in a nonstandard directory <include dir>
807 CPP C preprocessor
809 Use these variables to override the choices made by `configure' or to help
810 it to find libraries and programs with nonstandard names/locations.
815 if test "$ac_init_help" = "recursive"; then
816 # If there are subdirs, report their specific --help.
817 ac_popdir=`pwd`
818 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
819 cd $ac_subdir
820 # A "../" for each directory in /$ac_subdir.
821 ac_dots=`echo $ac_subdir |
822 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
824 case $srcdir in
825 .) # No --srcdir option. We are building in place.
826 ac_sub_srcdir=$srcdir ;;
827 [\\/]* | ?:[\\/]* ) # Absolute path.
828 ac_sub_srcdir=$srcdir/$ac_subdir ;;
829 *) # Relative path.
830 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
831 esac
833 # Check for guested configure; otherwise get Cygnus style configure.
834 if test -f $ac_sub_srcdir/configure.gnu; then
835 echo
836 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
837 elif test -f $ac_sub_srcdir/configure; then
838 echo
839 $SHELL $ac_sub_srcdir/configure --help=recursive
840 elif test -f $ac_sub_srcdir/configure.ac ||
841 test -f $ac_sub_srcdir/configure.in; then
842 echo
843 $ac_configure --help
844 else
845 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
847 cd $ac_popdir
848 done
851 test -n "$ac_init_help" && exit 0
852 if $ac_init_version; then
853 cat <<\EOF
855 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
856 Free Software Foundation, Inc.
857 This configure script is free software; the Free Software Foundation
858 gives unlimited permission to copy, distribute and modify it.
860 exit 0
862 exec 5>config.log
863 cat >&5 <<EOF
864 This file contains any messages produced by compilers while
865 running configure, to aid debugging if configure makes a mistake.
867 It was created by $as_me, which was
868 generated by GNU Autoconf 2.52. Invocation command line was
870 $ $0 $@
874 cat <<_ASUNAME
875 ## ---------- ##
876 ## Platform. ##
877 ## ---------- ##
879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
891 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
896 PATH = $PATH
898 _ASUNAME
899 } >&5
901 cat >&5 <<EOF
902 ## ------------ ##
903 ## Core tests. ##
904 ## ------------ ##
908 # Keep a trace of the command line.
909 # Strip out --no-create and --no-recursion so they do not pile up.
910 # Also quote any args containing shell meta-characters.
911 ac_configure_args=
912 ac_sep=
913 for ac_arg
915 case $ac_arg in
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c) ;;
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
920 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
921 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
922 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
923 ac_sep=" " ;;
924 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
925 ac_sep=" " ;;
926 esac
927 # Get rid of the leading space.
928 done
930 # When interrupted or exit'd, cleanup temporary files, and complete
931 # config.log. We remove comments because anyway the quotes in there
932 # would cause problems or look ugly.
933 trap 'exit_status=$?
934 # Save into config.log some information that might help in debugging.
935 echo >&5
936 echo "## ----------------- ##" >&5
937 echo "## Cache variables. ##" >&5
938 echo "## ----------------- ##" >&5
939 echo >&5
940 # The following way of writing the cache mishandles newlines in values,
942 (set) 2>&1 |
943 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
944 *ac_space=\ *)
945 sed -n \
946 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
950 sed -n \
951 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
953 esac;
954 } >&5
955 sed "/^$/d" confdefs.h >conftest.log
956 if test -s conftest.log; then
957 echo >&5
958 echo "## ------------ ##" >&5
959 echo "## confdefs.h. ##" >&5
960 echo "## ------------ ##" >&5
961 echo >&5
962 cat conftest.log >&5
964 (echo; echo) >&5
965 test "$ac_signal" != 0 &&
966 echo "$as_me: caught signal $ac_signal" >&5
967 echo "$as_me: exit $exit_status" >&5
968 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
969 exit $exit_status
971 for ac_signal in 1 2 13 15; do
972 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
973 done
974 ac_signal=0
976 # confdefs.h avoids OS command line length limits that DEFS can exceed.
977 rm -rf conftest* confdefs.h
978 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
979 echo >confdefs.h
981 # Let the site file select an alternate cache file if it wants to.
982 # Prefer explicitly selected file to automatically selected ones.
983 if test -z "$CONFIG_SITE"; then
984 if test "x$prefix" != xNONE; then
985 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
986 else
987 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
990 for ac_site_file in $CONFIG_SITE; do
991 if test -r "$ac_site_file"; then
992 { echo "$as_me:992: loading site script $ac_site_file" >&5
993 echo "$as_me: loading site script $ac_site_file" >&6;}
994 cat "$ac_site_file" >&5
995 . "$ac_site_file"
997 done
999 if test -r "$cache_file"; then
1000 # Some versions of bash will fail to source /dev/null (special
1001 # files actually), so we avoid doing that.
1002 if test -f "$cache_file"; then
1003 { echo "$as_me:1003: loading cache $cache_file" >&5
1004 echo "$as_me: loading cache $cache_file" >&6;}
1005 case $cache_file in
1006 [\\/]* | ?:[\\/]* ) . $cache_file;;
1007 *) . ./$cache_file;;
1008 esac
1010 else
1011 { echo "$as_me:1011: creating cache $cache_file" >&5
1012 echo "$as_me: creating cache $cache_file" >&6;}
1013 >$cache_file
1016 # Check that the precious variables saved in the cache have kept the same
1017 # value.
1018 ac_cache_corrupted=false
1019 for ac_var in `(set) 2>&1 |
1020 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1022 eval ac_new_set=\$ac_env_${ac_var}_set
1023 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1024 eval ac_new_val="\$ac_env_${ac_var}_value"
1025 case $ac_old_set,$ac_new_set in
1026 set,)
1027 { echo "$as_me:1027: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1028 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1029 ac_cache_corrupted=: ;;
1030 ,set)
1031 { echo "$as_me:1031: error: \`$ac_var' was not set in the previous run" >&5
1032 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1033 ac_cache_corrupted=: ;;
1034 ,);;
1036 if test "x$ac_old_val" != "x$ac_new_val"; then
1037 { echo "$as_me:1037: error: \`$ac_var' has changed since the previous run:" >&5
1038 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1039 { echo "$as_me:1039: former value: $ac_old_val" >&5
1040 echo "$as_me: former value: $ac_old_val" >&2;}
1041 { echo "$as_me:1041: current value: $ac_new_val" >&5
1042 echo "$as_me: current value: $ac_new_val" >&2;}
1043 ac_cache_corrupted=:
1044 fi;;
1045 esac
1046 # Pass precious variables to config.status. It doesn't matter if
1047 # we pass some twice (in addition to the command line arguments).
1048 if test "$ac_new_set" = set; then
1049 case $ac_new_val in
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1052 ac_configure_args="$ac_configure_args '$ac_arg'"
1054 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1056 esac
1058 done
1059 if $ac_cache_corrupted; then
1060 { echo "$as_me:1060: error: changes in the environment can compromise the build" >&5
1061 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1062 { { echo "$as_me:1062: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1063 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1064 { (exit 1); exit 1; }; }
1067 ac_ext=c
1068 ac_cpp='$CPP $CPPFLAGS'
1069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1073 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1074 *c*,-n*) ECHO_N= ECHO_C='
1075 ' ECHO_T=' ' ;;
1076 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1077 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1078 esac
1079 echo "#! $SHELL" >conftest.sh
1080 echo "exit 0" >>conftest.sh
1081 chmod +x conftest.sh
1082 if { (echo "$as_me:1082: PATH=\".;.\"; conftest.sh") >&5
1083 (PATH=".;."; conftest.sh) 2>&5
1084 ac_status=$?
1085 echo "$as_me:1085: \$? = $ac_status" >&5
1086 (exit $ac_status); }; then
1087 ac_path_separator=';'
1088 else
1089 ac_path_separator=:
1091 PATH_SEPARATOR="$ac_path_separator"
1092 rm -f conftest.sh
1094 ac_aux_dir=
1095 for ac_dir in autoconf $srcdir/autoconf; do
1096 if test -f $ac_dir/install-sh; then
1097 ac_aux_dir=$ac_dir
1098 ac_install_sh="$ac_aux_dir/install-sh -c"
1099 break
1100 elif test -f $ac_dir/install.sh; then
1101 ac_aux_dir=$ac_dir
1102 ac_install_sh="$ac_aux_dir/install.sh -c"
1103 break
1104 elif test -f $ac_dir/shtool; then
1105 ac_aux_dir=$ac_dir
1106 ac_install_sh="$ac_aux_dir/shtool install -c"
1107 break
1109 done
1110 if test -z "$ac_aux_dir"; then
1111 { { echo "$as_me:1111: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1112 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1113 { (exit 1); exit 1; }; }
1115 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1116 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1117 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1119 ac_config_headers="$ac_config_headers config.h"
1121 echo "$as_me:1121: checking whether ${MAKE-make} sets \${MAKE}" >&5
1122 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1123 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1124 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1125 echo $ECHO_N "(cached) $ECHO_C" >&6
1126 else
1127 cat >conftest.make <<\EOF
1128 all:
1129 @echo 'ac_maketemp="${MAKE}"'
1131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1132 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1133 if test -n "$ac_maketemp"; then
1134 eval ac_cv_prog_make_${ac_make}_set=yes
1135 else
1136 eval ac_cv_prog_make_${ac_make}_set=no
1138 rm -f conftest.make
1140 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1141 echo "$as_me:1141: result: yes" >&5
1142 echo "${ECHO_T}yes" >&6
1143 SET_MAKE=
1144 else
1145 echo "$as_me:1145: result: no" >&5
1146 echo "${ECHO_T}no" >&6
1147 SET_MAKE="MAKE=${MAKE-make}"
1150 ac_ext=c
1151 ac_cpp='$CPP $CPPFLAGS'
1152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1155 if test -n "$ac_tool_prefix"; then
1156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1158 echo "$as_me:1158: checking for $ac_word" >&5
1159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1160 if test "${ac_cv_prog_CC+set}" = set; then
1161 echo $ECHO_N "(cached) $ECHO_C" >&6
1162 else
1163 if test -n "$CC"; then
1164 ac_cv_prog_CC="$CC" # Let the user override the test.
1165 else
1166 ac_save_IFS=$IFS; IFS=$ac_path_separator
1167 ac_dummy="$PATH"
1168 for ac_dir in $ac_dummy; do
1169 IFS=$ac_save_IFS
1170 test -z "$ac_dir" && ac_dir=.
1171 $as_executable_p "$ac_dir/$ac_word" || continue
1172 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1173 echo "$as_me:1173: found $ac_dir/$ac_word" >&5
1174 break
1175 done
1179 CC=$ac_cv_prog_CC
1180 if test -n "$CC"; then
1181 echo "$as_me:1181: result: $CC" >&5
1182 echo "${ECHO_T}$CC" >&6
1183 else
1184 echo "$as_me:1184: result: no" >&5
1185 echo "${ECHO_T}no" >&6
1189 if test -z "$ac_cv_prog_CC"; then
1190 ac_ct_CC=$CC
1191 # Extract the first word of "gcc", so it can be a program name with args.
1192 set dummy gcc; ac_word=$2
1193 echo "$as_me:1193: checking for $ac_word" >&5
1194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1196 echo $ECHO_N "(cached) $ECHO_C" >&6
1197 else
1198 if test -n "$ac_ct_CC"; then
1199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1200 else
1201 ac_save_IFS=$IFS; IFS=$ac_path_separator
1202 ac_dummy="$PATH"
1203 for ac_dir in $ac_dummy; do
1204 IFS=$ac_save_IFS
1205 test -z "$ac_dir" && ac_dir=.
1206 $as_executable_p "$ac_dir/$ac_word" || continue
1207 ac_cv_prog_ac_ct_CC="gcc"
1208 echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1209 break
1210 done
1214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1215 if test -n "$ac_ct_CC"; then
1216 echo "$as_me:1216: result: $ac_ct_CC" >&5
1217 echo "${ECHO_T}$ac_ct_CC" >&6
1218 else
1219 echo "$as_me:1219: result: no" >&5
1220 echo "${ECHO_T}no" >&6
1223 CC=$ac_ct_CC
1224 else
1225 CC="$ac_cv_prog_CC"
1228 if test -z "$CC"; then
1229 if test -n "$ac_tool_prefix"; then
1230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1231 set dummy ${ac_tool_prefix}cc; ac_word=$2
1232 echo "$as_me:1232: checking for $ac_word" >&5
1233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1234 if test "${ac_cv_prog_CC+set}" = set; then
1235 echo $ECHO_N "(cached) $ECHO_C" >&6
1236 else
1237 if test -n "$CC"; then
1238 ac_cv_prog_CC="$CC" # Let the user override the test.
1239 else
1240 ac_save_IFS=$IFS; IFS=$ac_path_separator
1241 ac_dummy="$PATH"
1242 for ac_dir in $ac_dummy; do
1243 IFS=$ac_save_IFS
1244 test -z "$ac_dir" && ac_dir=.
1245 $as_executable_p "$ac_dir/$ac_word" || continue
1246 ac_cv_prog_CC="${ac_tool_prefix}cc"
1247 echo "$as_me:1247: found $ac_dir/$ac_word" >&5
1248 break
1249 done
1253 CC=$ac_cv_prog_CC
1254 if test -n "$CC"; then
1255 echo "$as_me:1255: result: $CC" >&5
1256 echo "${ECHO_T}$CC" >&6
1257 else
1258 echo "$as_me:1258: result: no" >&5
1259 echo "${ECHO_T}no" >&6
1263 if test -z "$ac_cv_prog_CC"; then
1264 ac_ct_CC=$CC
1265 # Extract the first word of "cc", so it can be a program name with args.
1266 set dummy cc; ac_word=$2
1267 echo "$as_me:1267: checking for $ac_word" >&5
1268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1270 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 else
1272 if test -n "$ac_ct_CC"; then
1273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1274 else
1275 ac_save_IFS=$IFS; IFS=$ac_path_separator
1276 ac_dummy="$PATH"
1277 for ac_dir in $ac_dummy; do
1278 IFS=$ac_save_IFS
1279 test -z "$ac_dir" && ac_dir=.
1280 $as_executable_p "$ac_dir/$ac_word" || continue
1281 ac_cv_prog_ac_ct_CC="cc"
1282 echo "$as_me:1282: found $ac_dir/$ac_word" >&5
1283 break
1284 done
1288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1289 if test -n "$ac_ct_CC"; then
1290 echo "$as_me:1290: result: $ac_ct_CC" >&5
1291 echo "${ECHO_T}$ac_ct_CC" >&6
1292 else
1293 echo "$as_me:1293: result: no" >&5
1294 echo "${ECHO_T}no" >&6
1297 CC=$ac_ct_CC
1298 else
1299 CC="$ac_cv_prog_CC"
1303 if test -z "$CC"; then
1304 # Extract the first word of "cc", so it can be a program name with args.
1305 set dummy cc; ac_word=$2
1306 echo "$as_me:1306: checking for $ac_word" >&5
1307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1308 if test "${ac_cv_prog_CC+set}" = set; then
1309 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 else
1311 if test -n "$CC"; then
1312 ac_cv_prog_CC="$CC" # Let the user override the test.
1313 else
1314 ac_prog_rejected=no
1315 ac_save_IFS=$IFS; IFS=$ac_path_separator
1316 ac_dummy="$PATH"
1317 for ac_dir in $ac_dummy; do
1318 IFS=$ac_save_IFS
1319 test -z "$ac_dir" && ac_dir=.
1320 $as_executable_p "$ac_dir/$ac_word" || continue
1321 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1322 ac_prog_rejected=yes
1323 continue
1325 ac_cv_prog_CC="cc"
1326 echo "$as_me:1326: found $ac_dir/$ac_word" >&5
1327 break
1328 done
1330 if test $ac_prog_rejected = yes; then
1331 # We found a bogon in the path, so make sure we never use it.
1332 set dummy $ac_cv_prog_CC
1333 shift
1334 if test $# != 0; then
1335 # We chose a different compiler from the bogus one.
1336 # However, it has the same basename, so the bogon will be chosen
1337 # first if we set CC to just the basename; use the full file name.
1338 shift
1339 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1340 shift
1341 ac_cv_prog_CC="$@"
1346 CC=$ac_cv_prog_CC
1347 if test -n "$CC"; then
1348 echo "$as_me:1348: result: $CC" >&5
1349 echo "${ECHO_T}$CC" >&6
1350 else
1351 echo "$as_me:1351: result: no" >&5
1352 echo "${ECHO_T}no" >&6
1356 if test -z "$CC"; then
1357 if test -n "$ac_tool_prefix"; then
1358 for ac_prog in cl
1360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1362 echo "$as_me:1362: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_CC+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 if test -n "$CC"; then
1368 ac_cv_prog_CC="$CC" # Let the user override the test.
1369 else
1370 ac_save_IFS=$IFS; IFS=$ac_path_separator
1371 ac_dummy="$PATH"
1372 for ac_dir in $ac_dummy; do
1373 IFS=$ac_save_IFS
1374 test -z "$ac_dir" && ac_dir=.
1375 $as_executable_p "$ac_dir/$ac_word" || continue
1376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1377 echo "$as_me:1377: found $ac_dir/$ac_word" >&5
1378 break
1379 done
1383 CC=$ac_cv_prog_CC
1384 if test -n "$CC"; then
1385 echo "$as_me:1385: result: $CC" >&5
1386 echo "${ECHO_T}$CC" >&6
1387 else
1388 echo "$as_me:1388: result: no" >&5
1389 echo "${ECHO_T}no" >&6
1392 test -n "$CC" && break
1393 done
1395 if test -z "$CC"; then
1396 ac_ct_CC=$CC
1397 for ac_prog in cl
1399 # Extract the first word of "$ac_prog", so it can be a program name with args.
1400 set dummy $ac_prog; ac_word=$2
1401 echo "$as_me:1401: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 if test -n "$ac_ct_CC"; then
1407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1408 else
1409 ac_save_IFS=$IFS; IFS=$ac_path_separator
1410 ac_dummy="$PATH"
1411 for ac_dir in $ac_dummy; do
1412 IFS=$ac_save_IFS
1413 test -z "$ac_dir" && ac_dir=.
1414 $as_executable_p "$ac_dir/$ac_word" || continue
1415 ac_cv_prog_ac_ct_CC="$ac_prog"
1416 echo "$as_me:1416: found $ac_dir/$ac_word" >&5
1417 break
1418 done
1422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1423 if test -n "$ac_ct_CC"; then
1424 echo "$as_me:1424: result: $ac_ct_CC" >&5
1425 echo "${ECHO_T}$ac_ct_CC" >&6
1426 else
1427 echo "$as_me:1427: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1431 test -n "$ac_ct_CC" && break
1432 done
1434 CC=$ac_ct_CC
1439 test -z "$CC" && { { echo "$as_me:1439: error: no acceptable cc found in \$PATH" >&5
1440 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1441 { (exit 1); exit 1; }; }
1443 # Provide some information about the compiler.
1444 echo "$as_me:1444:" \
1445 "checking for C compiler version" >&5
1446 ac_compiler=`set X $ac_compile; echo $2`
1447 { (eval echo "$as_me:1447: \"$ac_compiler --version </dev/null >&5\"") >&5
1448 (eval $ac_compiler --version </dev/null >&5) 2>&5
1449 ac_status=$?
1450 echo "$as_me:1450: \$? = $ac_status" >&5
1451 (exit $ac_status); }
1452 { (eval echo "$as_me:1452: \"$ac_compiler -v </dev/null >&5\"") >&5
1453 (eval $ac_compiler -v </dev/null >&5) 2>&5
1454 ac_status=$?
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }
1457 { (eval echo "$as_me:1457: \"$ac_compiler -V </dev/null >&5\"") >&5
1458 (eval $ac_compiler -V </dev/null >&5) 2>&5
1459 ac_status=$?
1460 echo "$as_me:1460: \$? = $ac_status" >&5
1461 (exit $ac_status); }
1463 cat >conftest.$ac_ext <<_ACEOF
1464 #line 1464 "configure"
1465 #include "confdefs.h"
1468 main ()
1472 return 0;
1474 _ACEOF
1475 ac_clean_files_save=$ac_clean_files
1476 ac_clean_files="$ac_clean_files a.out a.exe"
1477 # Try to create an executable without -o first, disregard a.out.
1478 # It will help us diagnose broken compilers, and finding out an intuition
1479 # of exeext.
1480 echo "$as_me:1480: checking for C compiler default output" >&5
1481 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1482 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1483 if { (eval echo "$as_me:1483: \"$ac_link_default\"") >&5
1484 (eval $ac_link_default) 2>&5
1485 ac_status=$?
1486 echo "$as_me:1486: \$? = $ac_status" >&5
1487 (exit $ac_status); }; then
1488 # Find the output, starting from the most likely. This scheme is
1489 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1490 # resort.
1491 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1492 ls a.out conftest 2>/dev/null;
1493 ls a.* conftest.* 2>/dev/null`; do
1494 case $ac_file in
1495 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1496 a.out ) # We found the default executable, but exeext='' is most
1497 # certainly right.
1498 break;;
1499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1500 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1501 export ac_cv_exeext
1502 break;;
1503 * ) break;;
1504 esac
1505 done
1506 else
1507 echo "$as_me: failed program was:" >&5
1508 cat conftest.$ac_ext >&5
1509 { { echo "$as_me:1509: error: C compiler cannot create executables" >&5
1510 echo "$as_me: error: C compiler cannot create executables" >&2;}
1511 { (exit 77); exit 77; }; }
1514 ac_exeext=$ac_cv_exeext
1515 echo "$as_me:1515: result: $ac_file" >&5
1516 echo "${ECHO_T}$ac_file" >&6
1518 # Check the compiler produces executables we can run. If not, either
1519 # the compiler is broken, or we cross compile.
1520 echo "$as_me:1520: checking whether the C compiler works" >&5
1521 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1522 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1523 # If not cross compiling, check that we can run a simple program.
1524 if test "$cross_compiling" != yes; then
1525 if { ac_try='./$ac_file'
1526 { (eval echo "$as_me:1526: \"$ac_try\"") >&5
1527 (eval $ac_try) 2>&5
1528 ac_status=$?
1529 echo "$as_me:1529: \$? = $ac_status" >&5
1530 (exit $ac_status); }; }; then
1531 cross_compiling=no
1532 else
1533 if test "$cross_compiling" = maybe; then
1534 cross_compiling=yes
1535 else
1536 { { echo "$as_me:1536: error: cannot run C compiled programs.
1537 If you meant to cross compile, use \`--host'." >&5
1538 echo "$as_me: error: cannot run C compiled programs.
1539 If you meant to cross compile, use \`--host'." >&2;}
1540 { (exit 1); exit 1; }; }
1544 echo "$as_me:1544: result: yes" >&5
1545 echo "${ECHO_T}yes" >&6
1547 rm -f a.out a.exe conftest$ac_cv_exeext
1548 ac_clean_files=$ac_clean_files_save
1549 # Check the compiler produces executables we can run. If not, either
1550 # the compiler is broken, or we cross compile.
1551 echo "$as_me:1551: checking whether we are cross compiling" >&5
1552 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1553 echo "$as_me:1553: result: $cross_compiling" >&5
1554 echo "${ECHO_T}$cross_compiling" >&6
1556 echo "$as_me:1556: checking for executable suffix" >&5
1557 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1558 if { (eval echo "$as_me:1558: \"$ac_link\"") >&5
1559 (eval $ac_link) 2>&5
1560 ac_status=$?
1561 echo "$as_me:1561: \$? = $ac_status" >&5
1562 (exit $ac_status); }; then
1563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1565 # work properly (i.e., refer to `conftest.exe'), while it won't with
1566 # `rm'.
1567 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1568 case $ac_file in
1569 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1570 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1571 export ac_cv_exeext
1572 break;;
1573 * ) break;;
1574 esac
1575 done
1576 else
1577 { { echo "$as_me:1577: error: cannot compute EXEEXT: cannot compile and link" >&5
1578 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1579 { (exit 1); exit 1; }; }
1582 rm -f conftest$ac_cv_exeext
1583 echo "$as_me:1583: result: $ac_cv_exeext" >&5
1584 echo "${ECHO_T}$ac_cv_exeext" >&6
1586 rm -f conftest.$ac_ext
1587 EXEEXT=$ac_cv_exeext
1588 ac_exeext=$EXEEXT
1589 echo "$as_me:1589: checking for object suffix" >&5
1590 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1591 if test "${ac_cv_objext+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594 cat >conftest.$ac_ext <<_ACEOF
1595 #line 1595 "configure"
1596 #include "confdefs.h"
1599 main ()
1603 return 0;
1605 _ACEOF
1606 rm -f conftest.o conftest.obj
1607 if { (eval echo "$as_me:1607: \"$ac_compile\"") >&5
1608 (eval $ac_compile) 2>&5
1609 ac_status=$?
1610 echo "$as_me:1610: \$? = $ac_status" >&5
1611 (exit $ac_status); }; then
1612 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1613 case $ac_file in
1614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1615 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1616 break;;
1617 esac
1618 done
1619 else
1620 echo "$as_me: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1622 { { echo "$as_me:1622: error: cannot compute OBJEXT: cannot compile" >&5
1623 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1624 { (exit 1); exit 1; }; }
1627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1629 echo "$as_me:1629: result: $ac_cv_objext" >&5
1630 echo "${ECHO_T}$ac_cv_objext" >&6
1631 OBJEXT=$ac_cv_objext
1632 ac_objext=$OBJEXT
1633 echo "$as_me:1633: checking whether we are using the GNU C compiler" >&5
1634 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638 cat >conftest.$ac_ext <<_ACEOF
1639 #line 1639 "configure"
1640 #include "confdefs.h"
1643 main ()
1645 #ifndef __GNUC__
1646 choke me
1647 #endif
1650 return 0;
1652 _ACEOF
1653 rm -f conftest.$ac_objext
1654 if { (eval echo "$as_me:1654: \"$ac_compile\"") >&5
1655 (eval $ac_compile) 2>&5
1656 ac_status=$?
1657 echo "$as_me:1657: \$? = $ac_status" >&5
1658 (exit $ac_status); } &&
1659 { ac_try='test -s conftest.$ac_objext'
1660 { (eval echo "$as_me:1660: \"$ac_try\"") >&5
1661 (eval $ac_try) 2>&5
1662 ac_status=$?
1663 echo "$as_me:1663: \$? = $ac_status" >&5
1664 (exit $ac_status); }; }; then
1665 ac_compiler_gnu=yes
1666 else
1667 echo "$as_me: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1669 ac_compiler_gnu=no
1671 rm -f conftest.$ac_objext conftest.$ac_ext
1672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1675 echo "$as_me:1675: result: $ac_cv_c_compiler_gnu" >&5
1676 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1677 GCC=`test $ac_compiler_gnu = yes && echo yes`
1678 ac_test_CFLAGS=${CFLAGS+set}
1679 ac_save_CFLAGS=$CFLAGS
1680 CFLAGS="-g"
1681 echo "$as_me:1681: checking whether $CC accepts -g" >&5
1682 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1683 if test "${ac_cv_prog_cc_g+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 cat >conftest.$ac_ext <<_ACEOF
1687 #line 1687 "configure"
1688 #include "confdefs.h"
1691 main ()
1695 return 0;
1697 _ACEOF
1698 rm -f conftest.$ac_objext
1699 if { (eval echo "$as_me:1699: \"$ac_compile\"") >&5
1700 (eval $ac_compile) 2>&5
1701 ac_status=$?
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); } &&
1704 { ac_try='test -s conftest.$ac_objext'
1705 { (eval echo "$as_me:1705: \"$ac_try\"") >&5
1706 (eval $ac_try) 2>&5
1707 ac_status=$?
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }; }; then
1710 ac_cv_prog_cc_g=yes
1711 else
1712 echo "$as_me: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1714 ac_cv_prog_cc_g=no
1716 rm -f conftest.$ac_objext conftest.$ac_ext
1718 echo "$as_me:1718: result: $ac_cv_prog_cc_g" >&5
1719 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1720 if test "$ac_test_CFLAGS" = set; then
1721 CFLAGS=$ac_save_CFLAGS
1722 elif test $ac_cv_prog_cc_g = yes; then
1723 if test "$GCC" = yes; then
1724 CFLAGS="-g -O2"
1725 else
1726 CFLAGS="-g"
1728 else
1729 if test "$GCC" = yes; then
1730 CFLAGS="-O2"
1731 else
1732 CFLAGS=
1735 # Some people use a C++ compiler to compile C. Since we use `exit',
1736 # in C++ we need to declare it. In case someone uses the same compiler
1737 # for both compiling C and C++ we need to have the C++ compiler decide
1738 # the declaration of exit, since it's the most demanding environment.
1739 cat >conftest.$ac_ext <<_ACEOF
1740 #ifndef __cplusplus
1741 choke me
1742 #endif
1743 _ACEOF
1744 rm -f conftest.$ac_objext
1745 if { (eval echo "$as_me:1745: \"$ac_compile\"") >&5
1746 (eval $ac_compile) 2>&5
1747 ac_status=$?
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); } &&
1750 { ac_try='test -s conftest.$ac_objext'
1751 { (eval echo "$as_me:1751: \"$ac_try\"") >&5
1752 (eval $ac_try) 2>&5
1753 ac_status=$?
1754 echo "$as_me:1754: \$? = $ac_status" >&5
1755 (exit $ac_status); }; }; then
1756 for ac_declaration in \
1758 '#include <stdlib.h>' \
1759 'extern "C" void std::exit (int) throw (); using std::exit;' \
1760 'extern "C" void std::exit (int); using std::exit;' \
1761 'extern "C" void exit (int) throw ();' \
1762 'extern "C" void exit (int);' \
1763 'void exit (int);'
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line 1766 "configure"
1767 #include "confdefs.h"
1768 #include <stdlib.h>
1769 $ac_declaration
1771 main ()
1773 exit (42);
1775 return 0;
1777 _ACEOF
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1781 ac_status=$?
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1786 (eval $ac_try) 2>&5
1787 ac_status=$?
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1791 else
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 continue
1796 rm -f conftest.$ac_objext conftest.$ac_ext
1797 cat >conftest.$ac_ext <<_ACEOF
1798 #line 1798 "configure"
1799 #include "confdefs.h"
1800 $ac_declaration
1802 main ()
1804 exit (42);
1806 return 0;
1808 _ACEOF
1809 rm -f conftest.$ac_objext
1810 if { (eval echo "$as_me:1810: \"$ac_compile\"") >&5
1811 (eval $ac_compile) 2>&5
1812 ac_status=$?
1813 echo "$as_me:1813: \$? = $ac_status" >&5
1814 (exit $ac_status); } &&
1815 { ac_try='test -s conftest.$ac_objext'
1816 { (eval echo "$as_me:1816: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:1819: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 break
1822 else
1823 echo "$as_me: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 rm -f conftest.$ac_objext conftest.$ac_ext
1827 done
1828 rm -f conftest*
1829 if test -n "$ac_declaration"; then
1830 echo '#ifdef __cplusplus' >>confdefs.h
1831 echo $ac_declaration >>confdefs.h
1832 echo '#endif' >>confdefs.h
1835 else
1836 echo "$as_me: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1839 rm -f conftest.$ac_objext conftest.$ac_ext
1840 ac_ext=c
1841 ac_cpp='$CPP $CPPFLAGS'
1842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846 ac_ext=c
1847 ac_cpp='$CPP $CPPFLAGS'
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1851 echo "$as_me:1851: checking how to run the C preprocessor" >&5
1852 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1853 # On Suns, sometimes $CPP names a directory.
1854 if test -n "$CPP" && test -d "$CPP"; then
1855 CPP=
1857 if test -z "$CPP"; then
1858 if test "${ac_cv_prog_CPP+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 # Double quotes because CPP needs to be expanded
1862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1864 ac_preproc_ok=false
1865 for ac_c_preproc_warn_flag in '' yes
1867 # Use a header file that comes with gcc, so configuring glibc
1868 # with a fresh cross-compiler works.
1869 # On the NeXT, cc -E runs the code through the compiler's parser,
1870 # not just through cpp. "Syntax error" is here to catch this case.
1871 cat >conftest.$ac_ext <<_ACEOF
1872 #line 1872 "configure"
1873 #include "confdefs.h"
1874 #include <assert.h>
1875 Syntax error
1876 _ACEOF
1877 if { (eval echo "$as_me:1877: \"$ac_cpp conftest.$ac_ext\"") >&5
1878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1879 ac_status=$?
1880 egrep -v '^ *\+' conftest.er1 >conftest.err
1881 rm -f conftest.er1
1882 cat conftest.err >&5
1883 echo "$as_me:1883: \$? = $ac_status" >&5
1884 (exit $ac_status); } >/dev/null; then
1885 if test -s conftest.err; then
1886 ac_cpp_err=$ac_c_preproc_warn_flag
1887 else
1888 ac_cpp_err=
1890 else
1891 ac_cpp_err=yes
1893 if test -z "$ac_cpp_err"; then
1895 else
1896 echo "$as_me: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 # Broken: fails on valid input.
1899 continue
1901 rm -f conftest.err conftest.$ac_ext
1903 # OK, works on sane cases. Now check whether non-existent headers
1904 # can be detected and how.
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #line 1906 "configure"
1907 #include "confdefs.h"
1908 #include <ac_nonexistent.h>
1909 _ACEOF
1910 if { (eval echo "$as_me:1910: \"$ac_cpp conftest.$ac_ext\"") >&5
1911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1912 ac_status=$?
1913 egrep -v '^ *\+' conftest.er1 >conftest.err
1914 rm -f conftest.er1
1915 cat conftest.err >&5
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); } >/dev/null; then
1918 if test -s conftest.err; then
1919 ac_cpp_err=$ac_c_preproc_warn_flag
1920 else
1921 ac_cpp_err=
1923 else
1924 ac_cpp_err=yes
1926 if test -z "$ac_cpp_err"; then
1927 # Broken: success on invalid input.
1928 continue
1929 else
1930 echo "$as_me: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1932 # Passes both tests.
1933 ac_preproc_ok=:
1934 break
1936 rm -f conftest.err conftest.$ac_ext
1938 done
1939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1940 rm -f conftest.err conftest.$ac_ext
1941 if $ac_preproc_ok; then
1942 break
1945 done
1946 ac_cv_prog_CPP=$CPP
1949 CPP=$ac_cv_prog_CPP
1950 else
1951 ac_cv_prog_CPP=$CPP
1953 echo "$as_me:1953: result: $CPP" >&5
1954 echo "${ECHO_T}$CPP" >&6
1955 ac_preproc_ok=false
1956 for ac_c_preproc_warn_flag in '' yes
1958 # Use a header file that comes with gcc, so configuring glibc
1959 # with a fresh cross-compiler works.
1960 # On the NeXT, cc -E runs the code through the compiler's parser,
1961 # not just through cpp. "Syntax error" is here to catch this case.
1962 cat >conftest.$ac_ext <<_ACEOF
1963 #line 1963 "configure"
1964 #include "confdefs.h"
1965 #include <assert.h>
1966 Syntax error
1967 _ACEOF
1968 if { (eval echo "$as_me:1968: \"$ac_cpp conftest.$ac_ext\"") >&5
1969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1970 ac_status=$?
1971 egrep -v '^ *\+' conftest.er1 >conftest.err
1972 rm -f conftest.er1
1973 cat conftest.err >&5
1974 echo "$as_me:1974: \$? = $ac_status" >&5
1975 (exit $ac_status); } >/dev/null; then
1976 if test -s conftest.err; then
1977 ac_cpp_err=$ac_c_preproc_warn_flag
1978 else
1979 ac_cpp_err=
1981 else
1982 ac_cpp_err=yes
1984 if test -z "$ac_cpp_err"; then
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 # Broken: fails on valid input.
1990 continue
1992 rm -f conftest.err conftest.$ac_ext
1994 # OK, works on sane cases. Now check whether non-existent headers
1995 # can be detected and how.
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line 1997 "configure"
1998 #include "confdefs.h"
1999 #include <ac_nonexistent.h>
2000 _ACEOF
2001 if { (eval echo "$as_me:2001: \"$ac_cpp conftest.$ac_ext\"") >&5
2002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2003 ac_status=$?
2004 egrep -v '^ *\+' conftest.er1 >conftest.err
2005 rm -f conftest.er1
2006 cat conftest.err >&5
2007 echo "$as_me:2007: \$? = $ac_status" >&5
2008 (exit $ac_status); } >/dev/null; then
2009 if test -s conftest.err; then
2010 ac_cpp_err=$ac_c_preproc_warn_flag
2011 else
2012 ac_cpp_err=
2014 else
2015 ac_cpp_err=yes
2017 if test -z "$ac_cpp_err"; then
2018 # Broken: success on invalid input.
2019 continue
2020 else
2021 echo "$as_me: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 # Passes both tests.
2024 ac_preproc_ok=:
2025 break
2027 rm -f conftest.err conftest.$ac_ext
2029 done
2030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2031 rm -f conftest.err conftest.$ac_ext
2032 if $ac_preproc_ok; then
2034 else
2035 { { echo "$as_me:2035: error: C preprocessor \"$CPP\" fails sanity check" >&5
2036 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2037 { (exit 1); exit 1; }; }
2040 ac_ext=c
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046 if test $ac_cv_c_compiler_gnu = yes; then
2047 echo "$as_me:2047: checking whether $CC needs -traditional" >&5
2048 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2049 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 ac_pattern="Autoconf.*'x'"
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2056 #include <sgtty.h>
2057 Autoconf TIOCGETP
2058 _ACEOF
2059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2060 egrep "$ac_pattern" >/dev/null 2>&1; then
2061 ac_cv_prog_gcc_traditional=yes
2062 else
2063 ac_cv_prog_gcc_traditional=no
2065 rm -f conftest*
2067 if test $ac_cv_prog_gcc_traditional = no; then
2068 cat >conftest.$ac_ext <<_ACEOF
2069 #line 2069 "configure"
2070 #include "confdefs.h"
2071 #include <termio.h>
2072 Autoconf TCGETA
2073 _ACEOF
2074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2075 egrep "$ac_pattern" >/dev/null 2>&1; then
2076 ac_cv_prog_gcc_traditional=yes
2078 rm -f conftest*
2082 echo "$as_me:2082: result: $ac_cv_prog_gcc_traditional" >&5
2083 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2084 if test $ac_cv_prog_gcc_traditional = yes; then
2085 CC="$CC -traditional"
2089 # Find a good install program. We prefer a C program (faster),
2090 # so one script is as good as another. But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2095 # AIX /bin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 echo "$as_me:2101: checking for a BSD compatible install" >&5
2102 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_save_IFS=$IFS; IFS=$ac_path_separator
2108 for ac_dir in $PATH; do
2109 IFS=$ac_save_IFS
2110 # Account for people who put trailing slashes in PATH elements.
2111 case $ac_dir/ in
2112 / | ./ | .// | /cC/* \
2113 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2114 | /usr/ucb/* ) ;;
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2118 # by default.
2119 for ac_prog in ginstall scoinst install; do
2120 if $as_executable_p "$ac_dir/$ac_prog"; then
2121 if test $ac_prog = install &&
2122 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2125 elif test $ac_prog = install &&
2126 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2127 # program-specific install script used by HP pwplus--don't use.
2129 else
2130 ac_cv_path_install="$ac_dir/$ac_prog -c"
2131 break 2
2134 done
2136 esac
2137 done
2140 if test "${ac_cv_path_install+set}" = set; then
2141 INSTALL=$ac_cv_path_install
2142 else
2143 # As a last resort, use the slow shell script. We don't cache a
2144 # path for INSTALL within a source directory, because that will
2145 # break other packages using the cache if that directory is
2146 # removed, or if the path is relative.
2147 INSTALL=$ac_install_sh
2150 echo "$as_me:2150: result: $INSTALL" >&5
2151 echo "${ECHO_T}$INSTALL" >&6
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2161 # Make sure we can run config.sub.
2162 $ac_config_sub sun4 >/dev/null 2>&1 ||
2163 { { echo "$as_me:2163: error: cannot run $ac_config_sub" >&5
2164 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2165 { (exit 1); exit 1; }; }
2167 echo "$as_me:2167: checking build system type" >&5
2168 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2169 if test "${ac_cv_build+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 ac_cv_build_alias=$build_alias
2173 test -z "$ac_cv_build_alias" &&
2174 ac_cv_build_alias=`$ac_config_guess`
2175 test -z "$ac_cv_build_alias" &&
2176 { { echo "$as_me:2176: error: cannot guess build type; you must specify one" >&5
2177 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2178 { (exit 1); exit 1; }; }
2179 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2180 { { echo "$as_me:2180: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2181 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2182 { (exit 1); exit 1; }; }
2185 echo "$as_me:2185: result: $ac_cv_build" >&5
2186 echo "${ECHO_T}$ac_cv_build" >&6
2187 build=$ac_cv_build
2188 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2189 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2190 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2192 echo "$as_me:2192: checking host system type" >&5
2193 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2194 if test "${ac_cv_host+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197 ac_cv_host_alias=$host_alias
2198 test -z "$ac_cv_host_alias" &&
2199 ac_cv_host_alias=$ac_cv_build_alias
2200 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2201 { { echo "$as_me:2201: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2202 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2203 { (exit 1); exit 1; }; }
2206 echo "$as_me:2206: result: $ac_cv_host" >&5
2207 echo "${ECHO_T}$ac_cv_host" >&6
2208 host=$ac_cv_host
2209 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2210 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2211 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2213 echo "$as_me:2213: checking for AIX" >&5
2214 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #line 2216 "configure"
2217 #include "confdefs.h"
2218 #ifdef _AIX
2220 #endif
2222 _ACEOF
2223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2224 egrep "yes" >/dev/null 2>&1; then
2225 echo "$as_me:2225: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6
2227 cat >>confdefs.h <<\EOF
2228 #define _ALL_SOURCE 1
2231 else
2232 echo "$as_me:2232: result: no" >&5
2233 echo "${ECHO_T}no" >&6
2235 rm -f conftest*
2237 echo "$as_me:2237: checking for minix/config.h" >&5
2238 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2239 if test "${ac_cv_header_minix_config_h+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 cat >conftest.$ac_ext <<_ACEOF
2243 #line 2243 "configure"
2244 #include "confdefs.h"
2245 #include <minix/config.h>
2246 _ACEOF
2247 if { (eval echo "$as_me:2247: \"$ac_cpp conftest.$ac_ext\"") >&5
2248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2249 ac_status=$?
2250 egrep -v '^ *\+' conftest.er1 >conftest.err
2251 rm -f conftest.er1
2252 cat conftest.err >&5
2253 echo "$as_me:2253: \$? = $ac_status" >&5
2254 (exit $ac_status); } >/dev/null; then
2255 if test -s conftest.err; then
2256 ac_cpp_err=$ac_c_preproc_warn_flag
2257 else
2258 ac_cpp_err=
2260 else
2261 ac_cpp_err=yes
2263 if test -z "$ac_cpp_err"; then
2264 ac_cv_header_minix_config_h=yes
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 ac_cv_header_minix_config_h=no
2270 rm -f conftest.err conftest.$ac_ext
2272 echo "$as_me:2272: result: $ac_cv_header_minix_config_h" >&5
2273 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2274 if test $ac_cv_header_minix_config_h = yes; then
2275 MINIX=yes
2276 else
2277 MINIX=
2280 if test "$MINIX" = yes; then
2282 cat >>confdefs.h <<\EOF
2283 #define _POSIX_SOURCE 1
2286 cat >>confdefs.h <<\EOF
2287 #define _POSIX_1_SOURCE 2
2290 cat >>confdefs.h <<\EOF
2291 #define _MINIX 1
2296 echo "$as_me:2296: checking for POSIXized ISC" >&5
2297 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2298 if test -d /etc/conf/kconfig.d &&
2299 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2300 then
2301 echo "$as_me:2301: result: yes" >&5
2302 echo "${ECHO_T}yes" >&6
2303 ISC=yes # If later tests want to check for ISC.
2305 cat >>confdefs.h <<\EOF
2306 #define _POSIX_SOURCE 1
2309 if test "$GCC" = yes; then
2310 CC="$CC -posix"
2311 else
2312 CC="$CC -Xp"
2314 else
2315 echo "$as_me:2315: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2317 ISC=
2320 # Check whether --enable-shared or --disable-shared was given.
2321 if test "${enable_shared+set}" = set; then
2322 enableval="$enable_shared"
2323 p=${PACKAGE-default}
2324 case $enableval in
2325 yes) enable_shared=yes ;;
2326 no) enable_shared=no ;;
2328 enable_shared=no
2329 # Look at the argument we got. We use all the common list separators.
2330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2331 for pkg in $enableval; do
2332 if test "X$pkg" = "X$p"; then
2333 enable_shared=yes
2335 done
2336 IFS="$ac_save_ifs"
2338 esac
2339 else
2340 enable_shared=yes
2342 # Check whether --enable-static or --disable-static was given.
2343 if test "${enable_static+set}" = set; then
2344 enableval="$enable_static"
2345 p=${PACKAGE-default}
2346 case $enableval in
2347 yes) enable_static=yes ;;
2348 no) enable_static=no ;;
2350 enable_static=no
2351 # Look at the argument we got. We use all the common list separators.
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2353 for pkg in $enableval; do
2354 if test "X$pkg" = "X$p"; then
2355 enable_static=yes
2357 done
2358 IFS="$ac_save_ifs"
2360 esac
2361 else
2362 enable_static=yes
2364 # Check whether --enable-fast-install or --disable-fast-install was given.
2365 if test "${enable_fast_install+set}" = set; then
2366 enableval="$enable_fast_install"
2367 p=${PACKAGE-default}
2368 case $enableval in
2369 yes) enable_fast_install=yes ;;
2370 no) enable_fast_install=no ;;
2372 enable_fast_install=no
2373 # Look at the argument we got. We use all the common list separators.
2374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2375 for pkg in $enableval; do
2376 if test "X$pkg" = "X$p"; then
2377 enable_fast_install=yes
2379 done
2380 IFS="$ac_save_ifs"
2382 esac
2383 else
2384 enable_fast_install=yes
2387 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2388 if test "${with_gnu_ld+set}" = set; then
2389 withval="$with_gnu_ld"
2390 test "$withval" = no || with_gnu_ld=yes
2391 else
2392 with_gnu_ld=no
2394 ac_prog=ld
2395 if test "$GCC" = yes; then
2396 # Check if gcc -print-prog-name=ld gives a path.
2397 echo "$as_me:2397: checking for ld used by GCC" >&5
2398 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2399 case $host in
2400 *-*-mingw*)
2401 # gcc leaves a trailing carriage return which upsets mingw
2402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2405 esac
2406 case $ac_prog in
2407 # Accept absolute paths.
2408 [\\/]* | [A-Za-z]:[\\/]*)
2409 re_direlt='/[^/][^/]*/\.\./'
2410 # Canonicalize the path of ld
2411 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2412 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2413 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2414 done
2415 test -z "$LD" && LD="$ac_prog"
2418 # If it fails, then pretend we aren't using GCC.
2419 ac_prog=ld
2422 # If it is relative, then search for the first ld in PATH.
2423 with_gnu_ld=unknown
2425 esac
2426 elif test "$with_gnu_ld" = yes; then
2427 echo "$as_me:2427: checking for GNU ld" >&5
2428 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2429 else
2430 echo "$as_me:2430: checking for non-GNU ld" >&5
2431 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2433 if test "${lt_cv_path_LD+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -z "$LD"; then
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2438 for ac_dir in $PATH; do
2439 test -z "$ac_dir" && ac_dir=.
2440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2441 lt_cv_path_LD="$ac_dir/$ac_prog"
2442 # Check to see if the program is GNU ld. I'd rather use --version,
2443 # but apparently some GNU ld's only accept -v.
2444 # Break only if it was the GNU/non-GNU ld that we prefer.
2445 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2446 test "$with_gnu_ld" != no && break
2447 else
2448 test "$with_gnu_ld" != yes && break
2451 done
2452 IFS="$ac_save_ifs"
2453 else
2454 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2458 LD="$lt_cv_path_LD"
2459 if test -n "$LD"; then
2460 echo "$as_me:2460: result: $LD" >&5
2461 echo "${ECHO_T}$LD" >&6
2462 else
2463 echo "$as_me:2463: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2466 test -z "$LD" && { { echo "$as_me:2466: error: no acceptable ld found in \$PATH" >&5
2467 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2468 { (exit 1); exit 1; }; }
2469 echo "$as_me:2469: checking if the linker ($LD) is GNU ld" >&5
2470 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2471 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2475 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2476 lt_cv_prog_gnu_ld=yes
2477 else
2478 lt_cv_prog_gnu_ld=no
2481 echo "$as_me:2481: result: $lt_cv_prog_gnu_ld" >&5
2482 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2483 with_gnu_ld=$lt_cv_prog_gnu_ld
2485 echo "$as_me:2485: checking for $LD option to reload object files" >&5
2486 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2487 if test "${lt_cv_ld_reload_flag+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 lt_cv_ld_reload_flag='-r'
2492 echo "$as_me:2492: result: $lt_cv_ld_reload_flag" >&5
2493 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2494 reload_flag=$lt_cv_ld_reload_flag
2495 test -n "$reload_flag" && reload_flag=" $reload_flag"
2497 echo "$as_me:2497: checking for BSD-compatible nm" >&5
2498 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2499 if test "${lt_cv_path_NM+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$NM"; then
2503 # Let the user override the test.
2504 lt_cv_path_NM="$NM"
2505 else
2506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2507 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2508 test -z "$ac_dir" && ac_dir=.
2509 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2510 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2511 # Check to see if the nm accepts a BSD-compat flag.
2512 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2513 # nm: unknown option "B" ignored
2514 # Tru64's nm complains that /dev/null is an invalid object file
2515 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2516 lt_cv_path_NM="$tmp_nm -B"
2517 break
2518 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2519 lt_cv_path_NM="$tmp_nm -p"
2520 break
2521 else
2522 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2523 continue # so that we can try to find one that supports BSD flags
2526 done
2527 IFS="$ac_save_ifs"
2528 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2532 NM="$lt_cv_path_NM"
2533 echo "$as_me:2533: result: $NM" >&5
2534 echo "${ECHO_T}$NM" >&6
2536 echo "$as_me:2536: checking whether ln -s works" >&5
2537 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2538 LN_S=$as_ln_s
2539 if test "$LN_S" = "ln -s"; then
2540 echo "$as_me:2540: result: yes" >&5
2541 echo "${ECHO_T}yes" >&6
2542 else
2543 echo "$as_me:2543: result: no, using $LN_S" >&5
2544 echo "${ECHO_T}no, using $LN_S" >&6
2547 echo "$as_me:2547: checking how to recognise dependant libraries" >&5
2548 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2549 if test "${lt_cv_deplibs_check_method+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 lt_cv_file_magic_cmd='$MAGIC_CMD'
2553 lt_cv_file_magic_test_file=
2554 lt_cv_deplibs_check_method='unknown'
2555 # Need to set the preceding variable on all platforms that support
2556 # interlibrary dependencies.
2557 # 'none' -- dependencies not supported.
2558 # `unknown' -- same as none, but documents that we really don't know.
2559 # 'pass_all' -- all dependencies passed with no checks.
2560 # 'test_compile' -- check by making test program.
2561 # ['file_magic [regex]'] -- check by looking for files in library path
2562 # which responds to the $file_magic_cmd with a given egrep regex.
2563 # If you have `file' or equivalent on your system and you're not sure
2564 # whether `pass_all' will *always* work, you probably want this one.
2566 case $host_os in
2567 aix4* | aix5*)
2568 lt_cv_deplibs_check_method=pass_all
2571 beos*)
2572 lt_cv_deplibs_check_method=pass_all
2575 bsdi4*)
2576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2577 lt_cv_file_magic_cmd='/usr/bin/file -L'
2578 lt_cv_file_magic_test_file=/shlib/libc.so
2581 cygwin* | mingw* | pw32*)
2582 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2583 lt_cv_file_magic_cmd='$OBJDUMP -f'
2586 darwin* | rhapsody*)
2587 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2588 lt_cv_file_magic_cmd='/usr/bin/file -L'
2589 case "$host_os" in
2590 rhapsody* | darwin1.012)
2591 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2593 *) # Darwin 1.3 on
2594 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2596 esac
2599 freebsd*)
2600 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2601 case $host_cpu in
2602 i*86 )
2603 # Not sure whether the presence of OpenBSD here was a mistake.
2604 # Let's accept both of them until this is cleared up.
2605 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2606 lt_cv_file_magic_cmd=/usr/bin/file
2607 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2609 esac
2610 else
2611 lt_cv_deplibs_check_method=pass_all
2615 gnu*)
2616 lt_cv_deplibs_check_method=pass_all
2619 hpux10.20*|hpux11*)
2620 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2621 lt_cv_file_magic_cmd=/usr/bin/file
2622 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2625 irix5* | irix6*)
2626 case $host_os in
2627 irix5*)
2628 # this will be overridden with pass_all, but let us keep it just in case
2629 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2632 case $LD in
2633 *-32|*"-32 ") libmagic=32-bit;;
2634 *-n32|*"-n32 ") libmagic=N32;;
2635 *-64|*"-64 ") libmagic=64-bit;;
2636 *) libmagic=never-match;;
2637 esac
2638 # this will be overridden with pass_all, but let us keep it just in case
2639 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2641 esac
2642 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2643 lt_cv_deplibs_check_method=pass_all
2646 # This must be Linux ELF.
2647 linux-gnu*)
2648 case $host_cpu in
2649 alpha* | i*86 | powerpc* | sparc* | ia64* )
2650 lt_cv_deplibs_check_method=pass_all ;;
2652 # glibc up to 2.1.1 does not perform some relocations on ARM
2653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2654 esac
2655 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2658 netbsd*)
2659 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2660 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2661 else
2662 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2666 newos6*)
2667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2668 lt_cv_file_magic_cmd=/usr/bin/file
2669 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2672 osf3* | osf4* | osf5*)
2673 # this will be overridden with pass_all, but let us keep it just in case
2674 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2675 lt_cv_file_magic_test_file=/shlib/libc.so
2676 lt_cv_deplibs_check_method=pass_all
2679 sco3.2v5*)
2680 lt_cv_deplibs_check_method=pass_all
2683 solaris*)
2684 lt_cv_deplibs_check_method=pass_all
2685 lt_cv_file_magic_test_file=/lib/libc.so
2688 sysv5uw[78]* | sysv4*uw2*)
2689 lt_cv_deplibs_check_method=pass_all
2692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2693 case $host_vendor in
2694 motorola)
2695 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]'
2696 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2698 ncr)
2699 lt_cv_deplibs_check_method=pass_all
2701 sequent)
2702 lt_cv_file_magic_cmd='/bin/file'
2703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2705 sni)
2706 lt_cv_file_magic_cmd='/bin/file'
2707 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2708 lt_cv_file_magic_test_file=/lib/libc.so
2710 esac
2712 esac
2715 echo "$as_me:2715: result: $lt_cv_deplibs_check_method" >&5
2716 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2717 file_magic_cmd=$lt_cv_file_magic_cmd
2718 deplibs_check_method=$lt_cv_deplibs_check_method
2720 # Check for command to grab the raw symbol name followed by C symbol from nm.
2721 echo "$as_me:2721: checking command to parse $NM output" >&5
2722 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2727 # These are sane defaults that work on at least a few old systems.
2728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2730 # Character class describing NM global symbol codes.
2731 symcode='[BCDEGRST]'
2733 # Regexp to match symbols that can be accessed directly from C.
2734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2736 # Transform the above into a raw symbol and a C symbol.
2737 symxfrm='\1 \2\3 \3'
2739 # Transform an extracted symbol line into a proper C declaration
2740 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2742 # Define system-specific variables.
2743 case $host_os in
2744 aix*)
2745 symcode='[BCDT]'
2747 cygwin* | mingw* | pw32*)
2748 symcode='[ABCDGISTW]'
2750 hpux*) # Its linker distinguishes data from code symbols
2751 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2753 irix*)
2754 symcode='[BCDEGRST]'
2756 solaris* | sysv5*)
2757 symcode='[BDT]'
2759 sysv4)
2760 symcode='[DFNSTU]'
2762 esac
2764 # Handle CRLF in mingw tool chain
2765 opt_cr=
2766 case $host_os in
2767 mingw*)
2768 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2770 esac
2772 # If we're using GNU nm, then use its standard symbol codes.
2773 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2774 symcode='[ABCDGISTW]'
2777 # Try without a prefix undercore, then with it.
2778 for ac_symprfx in "" "_"; do
2780 # Write the raw and C identifiers.
2781 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2783 # Check to see that the pipe works correctly.
2784 pipe_works=no
2785 rm -f conftest*
2786 cat > conftest.$ac_ext <<EOF
2787 #ifdef __cplusplus
2788 extern "C" {
2789 #endif
2790 char nm_test_var;
2791 void nm_test_func(){}
2792 #ifdef __cplusplus
2794 #endif
2795 int main(){nm_test_var='a';nm_test_func();return(0);}
2798 if { (eval echo "$as_me:2798: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>&5
2800 ac_status=$?
2801 echo "$as_me:2801: \$? = $ac_status" >&5
2802 (exit $ac_status); }; then
2803 # Now try to grab the symbols.
2804 nlist=conftest.nm
2805 if { (eval echo "$as_me:2805: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2806 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2807 ac_status=$?
2808 echo "$as_me:2808: \$? = $ac_status" >&5
2809 (exit $ac_status); } && test -s "$nlist"; then
2810 # Try sorting and uniquifying the output.
2811 if sort "$nlist" | uniq > "$nlist"T; then
2812 mv -f "$nlist"T "$nlist"
2813 else
2814 rm -f "$nlist"T
2817 # Make sure that we snagged all the symbols we need.
2818 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2819 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2820 cat <<EOF > conftest.$ac_ext
2821 #ifdef __cplusplus
2822 extern "C" {
2823 #endif
2826 # Now generate the symbol file.
2827 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2829 cat <<EOF >> conftest.$ac_ext
2830 #if defined (__STDC__) && __STDC__
2831 # define lt_ptr_t void *
2832 #else
2833 # define lt_ptr_t char *
2834 # define const
2835 #endif
2837 /* The mapping between symbol names and symbols. */
2838 const struct {
2839 const char *name;
2840 lt_ptr_t address;
2842 lt_preloaded_symbols[] =
2845 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
2846 cat <<\EOF >> conftest.$ac_ext
2847 {0, (lt_ptr_t) 0}
2850 #ifdef __cplusplus
2852 #endif
2854 # Now try linking the two files.
2855 mv conftest.$ac_objext conftstm.$ac_objext
2856 save_LIBS="$LIBS"
2857 save_CFLAGS="$CFLAGS"
2858 LIBS="conftstm.$ac_objext"
2859 CFLAGS="$CFLAGS$no_builtin_flag"
2860 if { (eval echo "$as_me:2860: \"$ac_link\"") >&5
2861 (eval $ac_link) 2>&5
2862 ac_status=$?
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); } && test -s conftest; then
2865 pipe_works=yes
2867 LIBS="$save_LIBS"
2868 CFLAGS="$save_CFLAGS"
2869 else
2870 echo "cannot find nm_test_func in $nlist" >&5
2872 else
2873 echo "cannot find nm_test_var in $nlist" >&5
2875 else
2876 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2878 else
2879 echo "$progname: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 rm -f conftest* conftst*
2884 # Do not use the global_symbol_pipe unless it works.
2885 if test "$pipe_works" = yes; then
2886 break
2887 else
2888 lt_cv_sys_global_symbol_pipe=
2890 done
2894 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2895 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2896 global_symbol_to_cdecl=
2897 else
2898 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2900 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2901 echo "$as_me:2901: result: failed" >&5
2902 echo "${ECHO_T}failed" >&6
2903 else
2904 echo "$as_me:2904: result: ok" >&5
2905 echo "${ECHO_T}ok" >&6
2908 for ac_header in dlfcn.h
2910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2911 echo "$as_me:2911: checking for $ac_header" >&5
2912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 cat >conftest.$ac_ext <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2919 #include <$ac_header>
2920 _ACEOF
2921 if { (eval echo "$as_me:2921: \"$ac_cpp conftest.$ac_ext\"") >&5
2922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923 ac_status=$?
2924 egrep -v '^ *\+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:2927: \$? = $ac_status" >&5
2928 (exit $ac_status); } >/dev/null; then
2929 if test -s conftest.err; then
2930 ac_cpp_err=$ac_c_preproc_warn_flag
2931 else
2932 ac_cpp_err=
2934 else
2935 ac_cpp_err=yes
2937 if test -z "$ac_cpp_err"; then
2938 eval "$as_ac_Header=yes"
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2942 eval "$as_ac_Header=no"
2944 rm -f conftest.err conftest.$ac_ext
2946 echo "$as_me:2946: result: `eval echo '${'$as_ac_Header'}'`" >&5
2947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2949 cat >>confdefs.h <<EOF
2950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2954 done
2956 # Only perform the check for file, if the check method requires it
2957 case $deplibs_check_method in
2958 file_magic*)
2959 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2960 echo "$as_me:2960: checking for ${ac_tool_prefix}file" >&5
2961 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2962 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 case $MAGIC_CMD in
2967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2969 ?:/*)
2970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2973 ac_save_MAGIC_CMD="$MAGIC_CMD"
2974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2975 ac_dummy="/usr/bin:$PATH"
2976 for ac_dir in $ac_dummy; do
2977 test -z "$ac_dir" && ac_dir=.
2978 if test -f $ac_dir/${ac_tool_prefix}file; then
2979 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2980 if test -n "$file_magic_test_file"; then
2981 case $deplibs_check_method in
2982 "file_magic "*)
2983 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2986 egrep "$file_magic_regex" > /dev/null; then
2988 else
2989 cat <<EOF 1>&2
2991 *** Warning: the command libtool uses to detect shared libraries,
2992 *** $file_magic_cmd, produces output that libtool cannot recognize.
2993 *** The result is that libtool may fail to recognize shared libraries
2994 *** as such. This will affect the creation of libtool libraries that
2995 *** depend on shared libraries, but programs linked with such libtool
2996 *** libraries will work regardless of this problem. Nevertheless, you
2997 *** may want to report the problem to your system manager and/or to
2998 *** bug-libtool@gnu.org
3001 fi ;;
3002 esac
3004 break
3006 done
3007 IFS="$ac_save_ifs"
3008 MAGIC_CMD="$ac_save_MAGIC_CMD"
3010 esac
3013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3014 if test -n "$MAGIC_CMD"; then
3015 echo "$as_me:3015: result: $MAGIC_CMD" >&5
3016 echo "${ECHO_T}$MAGIC_CMD" >&6
3017 else
3018 echo "$as_me:3018: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3022 if test -z "$lt_cv_path_MAGIC_CMD"; then
3023 if test -n "$ac_tool_prefix"; then
3024 echo "$as_me:3024: checking for file" >&5
3025 echo $ECHO_N "checking for file... $ECHO_C" >&6
3026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 case $MAGIC_CMD in
3031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3033 ?:/*)
3034 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3037 ac_save_MAGIC_CMD="$MAGIC_CMD"
3038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3039 ac_dummy="/usr/bin:$PATH"
3040 for ac_dir in $ac_dummy; do
3041 test -z "$ac_dir" && ac_dir=.
3042 if test -f $ac_dir/file; then
3043 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3044 if test -n "$file_magic_test_file"; then
3045 case $deplibs_check_method in
3046 "file_magic "*)
3047 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3050 egrep "$file_magic_regex" > /dev/null; then
3052 else
3053 cat <<EOF 1>&2
3055 *** Warning: the command libtool uses to detect shared libraries,
3056 *** $file_magic_cmd, produces output that libtool cannot recognize.
3057 *** The result is that libtool may fail to recognize shared libraries
3058 *** as such. This will affect the creation of libtool libraries that
3059 *** depend on shared libraries, but programs linked with such libtool
3060 *** libraries will work regardless of this problem. Nevertheless, you
3061 *** may want to report the problem to your system manager and/or to
3062 *** bug-libtool@gnu.org
3065 fi ;;
3066 esac
3068 break
3070 done
3071 IFS="$ac_save_ifs"
3072 MAGIC_CMD="$ac_save_MAGIC_CMD"
3074 esac
3077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3078 if test -n "$MAGIC_CMD"; then
3079 echo "$as_me:3079: result: $MAGIC_CMD" >&5
3080 echo "${ECHO_T}$MAGIC_CMD" >&6
3081 else
3082 echo "$as_me:3082: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3086 else
3087 MAGIC_CMD=:
3093 esac
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3098 echo "$as_me:3098: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_prog_RANLIB+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 if test -n "$RANLIB"; then
3104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3105 else
3106 ac_save_IFS=$IFS; IFS=$ac_path_separator
3107 ac_dummy="$PATH"
3108 for ac_dir in $ac_dummy; do
3109 IFS=$ac_save_IFS
3110 test -z "$ac_dir" && ac_dir=.
3111 $as_executable_p "$ac_dir/$ac_word" || continue
3112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3113 echo "$as_me:3113: found $ac_dir/$ac_word" >&5
3114 break
3115 done
3119 RANLIB=$ac_cv_prog_RANLIB
3120 if test -n "$RANLIB"; then
3121 echo "$as_me:3121: result: $RANLIB" >&5
3122 echo "${ECHO_T}$RANLIB" >&6
3123 else
3124 echo "$as_me:3124: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3129 if test -z "$ac_cv_prog_RANLIB"; then
3130 ac_ct_RANLIB=$RANLIB
3131 # Extract the first word of "ranlib", so it can be a program name with args.
3132 set dummy ranlib; ac_word=$2
3133 echo "$as_me:3133: checking for $ac_word" >&5
3134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 if test -n "$ac_ct_RANLIB"; then
3139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3140 else
3141 ac_save_IFS=$IFS; IFS=$ac_path_separator
3142 ac_dummy="$PATH"
3143 for ac_dir in $ac_dummy; do
3144 IFS=$ac_save_IFS
3145 test -z "$ac_dir" && ac_dir=.
3146 $as_executable_p "$ac_dir/$ac_word" || continue
3147 ac_cv_prog_ac_ct_RANLIB="ranlib"
3148 echo "$as_me:3148: found $ac_dir/$ac_word" >&5
3149 break
3150 done
3152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3156 if test -n "$ac_ct_RANLIB"; then
3157 echo "$as_me:3157: result: $ac_ct_RANLIB" >&5
3158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3159 else
3160 echo "$as_me:3160: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3164 RANLIB=$ac_ct_RANLIB
3165 else
3166 RANLIB="$ac_cv_prog_RANLIB"
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}strip; ac_word=$2
3172 echo "$as_me:3172: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_STRIP+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 if test -n "$STRIP"; then
3178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3179 else
3180 ac_save_IFS=$IFS; IFS=$ac_path_separator
3181 ac_dummy="$PATH"
3182 for ac_dir in $ac_dummy; do
3183 IFS=$ac_save_IFS
3184 test -z "$ac_dir" && ac_dir=.
3185 $as_executable_p "$ac_dir/$ac_word" || continue
3186 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3187 echo "$as_me:3187: found $ac_dir/$ac_word" >&5
3188 break
3189 done
3193 STRIP=$ac_cv_prog_STRIP
3194 if test -n "$STRIP"; then
3195 echo "$as_me:3195: result: $STRIP" >&5
3196 echo "${ECHO_T}$STRIP" >&6
3197 else
3198 echo "$as_me:3198: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3203 if test -z "$ac_cv_prog_STRIP"; then
3204 ac_ct_STRIP=$STRIP
3205 # Extract the first word of "strip", so it can be a program name with args.
3206 set dummy strip; ac_word=$2
3207 echo "$as_me:3207: checking for $ac_word" >&5
3208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 if test -n "$ac_ct_STRIP"; then
3213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3214 else
3215 ac_save_IFS=$IFS; IFS=$ac_path_separator
3216 ac_dummy="$PATH"
3217 for ac_dir in $ac_dummy; do
3218 IFS=$ac_save_IFS
3219 test -z "$ac_dir" && ac_dir=.
3220 $as_executable_p "$ac_dir/$ac_word" || continue
3221 ac_cv_prog_ac_ct_STRIP="strip"
3222 echo "$as_me:3222: found $ac_dir/$ac_word" >&5
3223 break
3224 done
3226 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3230 if test -n "$ac_ct_STRIP"; then
3231 echo "$as_me:3231: result: $ac_ct_STRIP" >&5
3232 echo "${ECHO_T}$ac_ct_STRIP" >&6
3233 else
3234 echo "$as_me:3234: result: no" >&5
3235 echo "${ECHO_T}no" >&6
3238 STRIP=$ac_ct_STRIP
3239 else
3240 STRIP="$ac_cv_prog_STRIP"
3243 enable_dlopen=no
3244 enable_win32_dll=no
3246 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3247 if test "${enable_libtool_lock+set}" = set; then
3248 enableval="$enable_libtool_lock"
3251 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3253 # Some flags need to be propagated to the compiler or linker for good
3254 # libtool support.
3255 case $host in
3256 *-*-irix6*)
3257 # Find out which ABI we are using.
3258 echo '#line 3258 "configure"' > conftest.$ac_ext
3259 if { (eval echo "$as_me:3259: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>&5
3261 ac_status=$?
3262 echo "$as_me:3262: \$? = $ac_status" >&5
3263 (exit $ac_status); }; then
3264 case `/usr/bin/file conftest.$ac_objext` in
3265 *32-bit*)
3266 LD="${LD-ld} -32"
3268 *N32*)
3269 LD="${LD-ld} -n32"
3271 *64-bit*)
3272 LD="${LD-ld} -64"
3274 esac
3276 rm -rf conftest*
3279 *-*-sco3.2v5*)
3280 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3281 SAVE_CFLAGS="$CFLAGS"
3282 CFLAGS="$CFLAGS -belf"
3283 echo "$as_me:3283: checking whether the C compiler needs -belf" >&5
3284 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3285 if test "${lt_cv_cc_needs_belf+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 cat >conftest.$ac_ext <<_ACEOF
3296 #line 3296 "configure"
3297 #include "confdefs.h"
3300 main ()
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:3308: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>&5
3310 ac_status=$?
3311 echo "$as_me:3311: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
3314 { (eval echo "$as_me:3314: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:3317: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 lt_cv_cc_needs_belf=yes
3320 else
3321 echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 lt_cv_cc_needs_belf=no
3325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 echo "$as_me:3333: result: $lt_cv_cc_needs_belf" >&5
3334 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3335 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3336 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3337 CFLAGS="$SAVE_CFLAGS"
3341 esac
3343 # Sed substitution that helps us do robust quoting. It backslashifies
3344 # metacharacters that are still active within double-quoted strings.
3345 Xsed='sed -e s/^X//'
3346 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3348 # Same as above, but do not quote variable references.
3349 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3351 # Sed substitution to delay expansion of an escaped shell variable in a
3352 # double_quote_subst'ed string.
3353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3355 # Constants:
3356 rm="rm -f"
3358 # Global variables:
3359 default_ofile=libtool
3360 can_build_shared=yes
3362 # All known linkers require a `.a' archive for static linking (except M$VC,
3363 # which needs '.lib').
3364 libext=a
3365 ltmain="$ac_aux_dir/ltmain.sh"
3366 ofile="$default_ofile"
3367 with_gnu_ld="$lt_cv_prog_gnu_ld"
3368 need_locks="$enable_libtool_lock"
3370 old_CC="$CC"
3371 old_CFLAGS="$CFLAGS"
3373 # Set sane defaults for various variables
3374 test -z "$AR" && AR=ar
3375 test -z "$AR_FLAGS" && AR_FLAGS=cru
3376 test -z "$AS" && AS=as
3377 test -z "$CC" && CC=cc
3378 test -z "$DLLTOOL" && DLLTOOL=dlltool
3379 test -z "$LD" && LD=ld
3380 test -z "$LN_S" && LN_S="ln -s"
3381 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3382 test -z "$NM" && NM=nm
3383 test -z "$OBJDUMP" && OBJDUMP=objdump
3384 test -z "$RANLIB" && RANLIB=:
3385 test -z "$STRIP" && STRIP=:
3386 test -z "$ac_objext" && ac_objext=o
3388 if test x"$host" != x"$build"; then
3389 ac_tool_prefix=${host_alias}-
3390 else
3391 ac_tool_prefix=
3394 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3395 case $host_os in
3396 linux-gnu*) ;;
3397 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3398 esac
3400 case $host_os in
3401 aix3*)
3402 # AIX sometimes has problems with the GCC collect2 program. For some
3403 # reason, if we set the COLLECT_NAMES environment variable, the problems
3404 # vanish in a puff of smoke.
3405 if test "X${COLLECT_NAMES+set}" != Xset; then
3406 COLLECT_NAMES=
3407 export COLLECT_NAMES
3410 esac
3412 # Determine commands to create old-style static archives.
3413 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3414 old_postinstall_cmds='chmod 644 $oldlib'
3415 old_postuninstall_cmds=
3417 if test -n "$RANLIB"; then
3418 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3419 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3422 # Allow CC to be a program name with arguments.
3423 set dummy $CC
3424 compiler="$2"
3426 echo "$as_me:3426: checking for objdir" >&5
3427 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3428 rm -f .libs 2>/dev/null
3429 mkdir .libs 2>/dev/null
3430 if test -d .libs; then
3431 objdir=.libs
3432 else
3433 # MS-DOS does not allow filenames that begin with a dot.
3434 objdir=_libs
3436 rmdir .libs 2>/dev/null
3437 echo "$as_me:3437: result: $objdir" >&5
3438 echo "${ECHO_T}$objdir" >&6
3440 # Check whether --with-pic or --without-pic was given.
3441 if test "${with_pic+set}" = set; then
3442 withval="$with_pic"
3443 pic_mode="$withval"
3444 else
3445 pic_mode=default
3447 test -z "$pic_mode" && pic_mode=default
3449 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3450 # in isolation, and that seeing it set (from the cache) indicates that
3451 # the associated values are set (in the cache) correctly too.
3452 echo "$as_me:3452: checking for $compiler option to produce PIC" >&5
3453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3454 if test "${lt_cv_prog_cc_pic+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 lt_cv_prog_cc_pic=
3458 lt_cv_prog_cc_shlib=
3459 lt_cv_prog_cc_wl=
3460 lt_cv_prog_cc_static=
3461 lt_cv_prog_cc_no_builtin=
3462 lt_cv_prog_cc_can_build_shared=$can_build_shared
3464 if test "$GCC" = yes; then
3465 lt_cv_prog_cc_wl='-Wl,'
3466 lt_cv_prog_cc_static='-static'
3468 case $host_os in
3469 aix*)
3470 # Below there is a dirty hack to force normal static linking with -ldl
3471 # The problem is because libdl dynamically linked with both libc and
3472 # libC (AIX C++ library), which obviously doesn't included in libraries
3473 # list by gcc. This cause undefined symbols with -static flags.
3474 # This hack allows C programs to be linked with "-static -ldl", but
3475 # we not sure about C++ programs.
3476 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3478 amigaos*)
3479 # FIXME: we need at least 68020 code to build shared libraries, but
3480 # adding the `-m68020' flag to GCC prevents building anything better,
3481 # like `-m68040'.
3482 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3484 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3485 # PIC is the default for these OSes.
3487 darwin* | rhapsody*)
3488 # PIC is the default on this platform
3489 # Common symbols not allowed in MH_DYLIB files
3490 lt_cv_prog_cc_pic='-fno-common'
3492 cygwin* | mingw* | pw32* | os2*)
3493 # This hack is so that the source file can tell whether it is being
3494 # built for inclusion in a dll (and should export symbols for example).
3495 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3497 sysv4*MP*)
3498 if test -d /usr/nec; then
3499 lt_cv_prog_cc_pic=-Kconform_pic
3503 lt_cv_prog_cc_pic='-fPIC'
3505 esac
3506 else
3507 # PORTME Check for PIC flags for the system compiler.
3508 case $host_os in
3509 aix3* | aix4* | aix5*)
3510 # All AIX code is PIC.
3511 if test "$host_cpu" = ia64; then
3512 # AIX 5 now supports IA64 processor
3513 lt_cv_prog_cc_static='-Bstatic'
3514 lt_cv_prog_cc_wl='-Wl,'
3515 else
3516 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3520 hpux9* | hpux10* | hpux11*)
3521 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3522 lt_cv_prog_cc_wl='-Wl,'
3523 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3524 lt_cv_prog_cc_pic='+Z'
3527 irix5* | irix6*)
3528 lt_cv_prog_cc_wl='-Wl,'
3529 lt_cv_prog_cc_static='-non_shared'
3530 # PIC (with -KPIC) is the default.
3533 cygwin* | mingw* | pw32* | os2*)
3534 # This hack is so that the source file can tell whether it is being
3535 # built for inclusion in a dll (and should export symbols for example).
3536 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3539 newsos6)
3540 lt_cv_prog_cc_pic='-KPIC'
3541 lt_cv_prog_cc_static='-Bstatic'
3544 osf3* | osf4* | osf5*)
3545 # All OSF/1 code is PIC.
3546 lt_cv_prog_cc_wl='-Wl,'
3547 lt_cv_prog_cc_static='-non_shared'
3550 sco3.2v5*)
3551 lt_cv_prog_cc_pic='-Kpic'
3552 lt_cv_prog_cc_static='-dn'
3553 lt_cv_prog_cc_shlib='-belf'
3556 solaris*)
3557 lt_cv_prog_cc_pic='-KPIC'
3558 lt_cv_prog_cc_static='-Bstatic'
3559 lt_cv_prog_cc_wl='-Wl,'
3562 sunos4*)
3563 lt_cv_prog_cc_pic='-PIC'
3564 lt_cv_prog_cc_static='-Bstatic'
3565 lt_cv_prog_cc_wl='-Qoption ld '
3568 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3569 lt_cv_prog_cc_pic='-KPIC'
3570 lt_cv_prog_cc_static='-Bstatic'
3571 if test "x$host_vendor" = xsni; then
3572 lt_cv_prog_cc_wl='-LD'
3573 else
3574 lt_cv_prog_cc_wl='-Wl,'
3578 uts4*)
3579 lt_cv_prog_cc_pic='-pic'
3580 lt_cv_prog_cc_static='-Bstatic'
3583 sysv4*MP*)
3584 if test -d /usr/nec ;then
3585 lt_cv_prog_cc_pic='-Kconform_pic'
3586 lt_cv_prog_cc_static='-Bstatic'
3591 lt_cv_prog_cc_can_build_shared=no
3593 esac
3598 if test -z "$lt_cv_prog_cc_pic"; then
3599 echo "$as_me:3599: result: none" >&5
3600 echo "${ECHO_T}none" >&6
3601 else
3602 echo "$as_me:3602: result: $lt_cv_prog_cc_pic" >&5
3603 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3605 # Check to make sure the pic_flag actually works.
3606 echo "$as_me:3606: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3607 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3608 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 save_CFLAGS="$CFLAGS"
3612 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line 3614 "configure"
3615 #include "confdefs.h"
3618 main ()
3622 return 0;
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:3626: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>&5
3628 ac_status=$?
3629 echo "$as_me:3629: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:3632: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:3635: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 case $host_os in
3638 hpux9* | hpux10* | hpux11*)
3639 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3640 # they create non-PIC objects. So, if there were any warnings, we
3641 # assume that PIC is not supported.
3642 if test -s conftest.err; then
3643 lt_cv_prog_cc_pic_works=no
3644 else
3645 lt_cv_prog_cc_pic_works=yes
3649 lt_cv_prog_cc_pic_works=yes
3651 esac
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 lt_cv_prog_cc_pic_works=no
3659 rm -f conftest.$ac_objext conftest.$ac_ext
3660 CFLAGS="$save_CFLAGS"
3664 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3665 lt_cv_prog_cc_pic=
3666 lt_cv_prog_cc_can_build_shared=no
3667 else
3668 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3671 echo "$as_me:3671: result: $lt_cv_prog_cc_pic_works" >&5
3672 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3675 # Check for any special shared library compilation flags.
3676 if test -n "$lt_cv_prog_cc_shlib"; then
3677 { echo "$as_me:3677: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3678 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3679 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3680 else
3681 { echo "$as_me:3681: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3682 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3683 lt_cv_prog_cc_can_build_shared=no
3687 echo "$as_me:3687: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3688 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3689 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 lt_cv_prog_cc_static_works=no
3693 save_LDFLAGS="$LDFLAGS"
3694 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line 3696 "configure"
3697 #include "confdefs.h"
3700 main ()
3704 return 0;
3706 _ACEOF
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:3708: \"$ac_link\"") >&5
3709 (eval $ac_link) 2>&5
3710 ac_status=$?
3711 echo "$as_me:3711: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -s conftest$ac_exeext'
3714 { (eval echo "$as_me:3714: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:3717: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 lt_cv_prog_cc_static_works=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3725 LDFLAGS="$save_LDFLAGS"
3729 # Belt *and* braces to stop my trousers falling down:
3730 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3731 echo "$as_me:3731: result: $lt_cv_prog_cc_static_works" >&5
3732 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3734 pic_flag="$lt_cv_prog_cc_pic"
3735 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3736 wl="$lt_cv_prog_cc_wl"
3737 link_static_flag="$lt_cv_prog_cc_static"
3738 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3739 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3741 # Check to see if options -o and -c are simultaneously supported by compiler
3742 echo "$as_me:3742: checking if $compiler supports -c -o file.$ac_objext" >&5
3743 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3744 if test "${lt_cv_compiler_c_o+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3748 $rm -r conftest 2>/dev/null
3749 mkdir conftest
3750 cd conftest
3751 echo "int some_variable = 0;" > conftest.$ac_ext
3752 mkdir out
3753 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3754 # that will create temporary files in the current directory regardless of
3755 # the output directory. Thus, making CWD read-only will cause this test
3756 # to fail, enabling locking or at least warning the user not to do parallel
3757 # builds.
3758 chmod -w .
3759 save_CFLAGS="$CFLAGS"
3760 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3761 compiler_c_o=no
3762 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3763 # The compiler can only warn and ignore the option if not recognized
3764 # So say no if there are warnings
3765 if test -s out/conftest.err; then
3766 lt_cv_compiler_c_o=no
3767 else
3768 lt_cv_compiler_c_o=yes
3770 else
3771 # Append any errors to the config.log.
3772 cat out/conftest.err 1>&5
3773 lt_cv_compiler_c_o=no
3775 CFLAGS="$save_CFLAGS"
3776 chmod u+w .
3777 $rm conftest* out/*
3778 rmdir out
3779 cd ..
3780 rmdir conftest
3781 $rm -r conftest 2>/dev/null
3785 compiler_c_o=$lt_cv_compiler_c_o
3786 echo "$as_me:3786: result: $compiler_c_o" >&5
3787 echo "${ECHO_T}$compiler_c_o" >&6
3789 if test x"$compiler_c_o" = x"yes"; then
3790 # Check to see if we can write to a .lo
3791 echo "$as_me:3791: checking if $compiler supports -c -o file.lo" >&5
3792 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3793 if test "${lt_cv_compiler_o_lo+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3797 lt_cv_compiler_o_lo=no
3798 save_CFLAGS="$CFLAGS"
3799 CFLAGS="$CFLAGS -c -o conftest.lo"
3800 cat >conftest.$ac_ext <<_ACEOF
3801 #line 3801 "configure"
3802 #include "confdefs.h"
3805 main ()
3807 int some_variable = 0;
3809 return 0;
3811 _ACEOF
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:3813: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>&5
3815 ac_status=$?
3816 echo "$as_me:3816: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:3819: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:3822: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 # The compiler can only warn and ignore the option if not recognized
3825 # So say no if there are warnings
3826 if test -s conftest.err; then
3827 lt_cv_compiler_o_lo=no
3828 else
3829 lt_cv_compiler_o_lo=yes
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 rm -f conftest.$ac_objext conftest.$ac_ext
3837 CFLAGS="$save_CFLAGS"
3841 compiler_o_lo=$lt_cv_compiler_o_lo
3842 echo "$as_me:3842: result: $compiler_c_lo" >&5
3843 echo "${ECHO_T}$compiler_c_lo" >&6
3844 else
3845 compiler_o_lo=no
3848 # Check to see if we can do hard links to lock some files if needed
3849 hard_links="nottested"
3850 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3851 # do not overwrite the value of need_locks provided by the user
3852 echo "$as_me:3852: checking if we can lock with hard links" >&5
3853 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3854 hard_links=yes
3855 $rm conftest*
3856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3857 touch conftest.a
3858 ln conftest.a conftest.b 2>&5 || hard_links=no
3859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3860 echo "$as_me:3860: result: $hard_links" >&5
3861 echo "${ECHO_T}$hard_links" >&6
3862 if test "$hard_links" = no; then
3863 { echo "$as_me:3863: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3864 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3865 need_locks=warn
3867 else
3868 need_locks=no
3871 if test "$GCC" = yes; then
3872 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3873 echo "$as_me:3873: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3874 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3875 echo "int some_variable = 0;" > conftest.$ac_ext
3876 save_CFLAGS="$CFLAGS"
3877 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3878 compiler_rtti_exceptions=no
3879 cat >conftest.$ac_ext <<_ACEOF
3880 #line 3880 "configure"
3881 #include "confdefs.h"
3884 main ()
3886 int some_variable = 0;
3888 return 0;
3890 _ACEOF
3891 rm -f conftest.$ac_objext
3892 if { (eval echo "$as_me:3892: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>&5
3894 ac_status=$?
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -s conftest.$ac_objext'
3898 { (eval echo "$as_me:3898: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:3901: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 # The compiler can only warn and ignore the option if not recognized
3904 # So say no if there are warnings
3905 if test -s conftest.err; then
3906 compiler_rtti_exceptions=no
3907 else
3908 compiler_rtti_exceptions=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3915 rm -f conftest.$ac_objext conftest.$ac_ext
3916 CFLAGS="$save_CFLAGS"
3917 echo "$as_me:3917: result: $compiler_rtti_exceptions" >&5
3918 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3920 if test "$compiler_rtti_exceptions" = "yes"; then
3921 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3922 else
3923 no_builtin_flag=' -fno-builtin'
3927 # See if the linker supports building shared libraries.
3928 echo "$as_me:3928: checking whether the linker ($LD) supports shared libraries" >&5
3929 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
3931 allow_undefined_flag=
3932 no_undefined_flag=
3933 need_lib_prefix=unknown
3934 need_version=unknown
3935 # when you set need_version to no, make sure it does not cause -set_version
3936 # flags to be left without arguments
3937 archive_cmds=
3938 archive_expsym_cmds=
3939 old_archive_from_new_cmds=
3940 old_archive_from_expsyms_cmds=
3941 export_dynamic_flag_spec=
3942 whole_archive_flag_spec=
3943 thread_safe_flag_spec=
3944 hardcode_into_libs=no
3945 hardcode_libdir_flag_spec=
3946 hardcode_libdir_separator=
3947 hardcode_direct=no
3948 hardcode_minus_L=no
3949 hardcode_shlibpath_var=unsupported
3950 runpath_var=
3951 link_all_deplibs=unknown
3952 always_export_symbols=no
3953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3954 # include_expsyms should be a list of space-separated symbols to be *always*
3955 # included in the symbol list
3956 include_expsyms=
3957 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3960 # as well as any symbol that contains `d'.
3961 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3963 # platforms (ab)use it in PIC code, but their linkers get confused if
3964 # the symbol is explicitly referenced. Since portable code cannot
3965 # rely on this symbol name, it's probably fine to never include it in
3966 # preloaded symbol tables.
3967 extract_expsyms_cmds=
3969 case $host_os in
3970 cygwin* | mingw* | pw32* )
3971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3972 # When not using gcc, we currently assume that we are using
3973 # Microsoft Visual C++.
3974 if test "$GCC" != yes; then
3975 with_gnu_ld=no
3979 esac
3981 ld_shlibs=yes
3982 if test "$with_gnu_ld" = yes; then
3983 # If archive_cmds runs LD, not CC, wlarc should be empty
3984 wlarc='${wl}'
3986 # See if GNU ld supports shared libraries.
3987 case $host_os in
3988 aix3* | aix4* | aix5*)
3989 # On AIX, the GNU linker is very broken
3990 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3991 ld_shlibs=no
3992 cat <<EOF 1>&2
3994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3995 *** to be unable to reliably create shared libraries on AIX.
3996 *** Therefore, libtool is disabling shared libraries support. If you
3997 *** really care for shared libraries, you may want to modify your PATH
3998 *** so that a non-GNU linker is found, and then restart.
4003 amigaos*)
4004 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4005 hardcode_libdir_flag_spec='-L$libdir'
4006 hardcode_minus_L=yes
4008 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4009 # that the semantics of dynamic libraries on AmigaOS, at least up
4010 # to version 4, is to share data among multiple programs linked
4011 # with the same dynamic library. Since this doesn't match the
4012 # behavior of shared libraries on other platforms, we can use
4013 # them.
4014 ld_shlibs=no
4017 beos*)
4018 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4019 allow_undefined_flag=unsupported
4020 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4021 # support --undefined. This deserves some investigation. FIXME
4022 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4023 else
4024 ld_shlibs=no
4028 cygwin* | mingw* | pw32*)
4029 # hardcode_libdir_flag_spec is actually meaningless, as there is
4030 # no search path for DLLs.
4031 hardcode_libdir_flag_spec='-L$libdir'
4032 allow_undefined_flag=unsupported
4033 always_export_symbols=yes
4035 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4036 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4037 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4038 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4039 else $CC -o impgen impgen.c ; fi)~
4040 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4042 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4044 # cygwin and mingw dlls have different entry points and sets of symbols
4045 # to exclude.
4046 # FIXME: what about values for MSVC?
4047 dll_entry=__cygwin_dll_entry@12
4048 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4049 case $host_os in
4050 mingw*)
4051 # mingw values
4052 dll_entry=_DllMainCRTStartup@12
4053 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4055 esac
4057 # mingw and cygwin differ, and it's simplest to just exclude the union
4058 # of the two symbol sets.
4059 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4061 # recent cygwin and mingw systems supply a stub DllMain which the user
4062 # can override, but on older systems we have to supply one (in ltdll.c)
4063 if test "x$lt_cv_need_dllmain" = "xyes"; then
4064 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4065 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4066 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4067 else
4068 ltdll_obj=
4069 ltdll_cmds=
4072 # Extract the symbol export list from an `--export-all' def file,
4073 # then regenerate the def file from the symbol export list, so that
4074 # the compiled dll only exports the symbol export list.
4075 # Be careful not to strip the DATA tag left be newer dlltools.
4076 export_symbols_cmds="$ltdll_cmds"'
4077 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4078 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4080 # If the export-symbols file already is a .def file (1st line
4081 # is EXPORTS), use it as is.
4082 # If DATA tags from a recent dlltool are present, honour them!
4083 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4084 cp $export_symbols $output_objdir/$soname-def;
4085 else
4086 echo EXPORTS > $output_objdir/$soname-def;
4087 _lt_hint=1;
4088 cat $export_symbols | while read symbol; do
4089 set dummy \$symbol;
4090 case \$# in
4091 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4092 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4093 esac;
4094 _lt_hint=`expr 1 + \$_lt_hint`;
4095 done;
4097 '"$ltdll_cmds"'
4098 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4099 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4100 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4101 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4102 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4105 netbsd*)
4106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4107 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4108 wlarc=
4109 else
4110 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4111 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4115 solaris* | sysv5*)
4116 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4117 ld_shlibs=no
4118 cat <<EOF 1>&2
4120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4121 *** create shared libraries on Solaris systems. Therefore, libtool
4122 *** is disabling shared libraries support. We urge you to upgrade GNU
4123 *** binutils to release 2.9.1 or newer. Another option is to modify
4124 *** your PATH or compiler configuration so that the native linker is
4125 *** used, and then restart.
4128 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4131 else
4132 ld_shlibs=no
4136 sunos4*)
4137 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4138 wlarc=
4139 hardcode_direct=yes
4140 hardcode_shlibpath_var=no
4144 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4147 else
4148 ld_shlibs=no
4151 esac
4153 if test "$ld_shlibs" = yes; then
4154 runpath_var=LD_RUN_PATH
4155 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4156 export_dynamic_flag_spec='${wl}--export-dynamic'
4157 case $host_os in
4158 cygwin* | mingw* | pw32*)
4159 # dlltool doesn't understand --whole-archive et. al.
4160 whole_archive_flag_spec=
4163 # ancient GNU ld didn't support --whole-archive et. al.
4164 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4165 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4166 else
4167 whole_archive_flag_spec=
4170 esac
4172 else
4173 # PORTME fill in a description of your system's linker (not GNU ld)
4174 case $host_os in
4175 aix3*)
4176 allow_undefined_flag=unsupported
4177 always_export_symbols=yes
4178 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4179 # Note: this linker hardcodes the directories in LIBPATH if there
4180 # are no directories specified by -L.
4181 hardcode_minus_L=yes
4182 if test "$GCC" = yes && test -z "$link_static_flag"; then
4183 # Neither direct hardcoding nor static linking is supported with a
4184 # broken collect2.
4185 hardcode_direct=unsupported
4189 aix4* | aix5*)
4190 # When large executables or shared objects are built, AIX ld can
4191 # have problems creating the table of contents. If linking a library
4192 # or program results in "error TOC overflow" add -mminimal-toc to
4193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4196 archive_cmds=''
4197 hardcode_libdir_separator=':'
4198 if test "$GCC" = yes; then
4199 collect2name=`${CC} -print-prog-name=collect2`
4200 if test -f "$collect2name" && \
4201 strings "$collect2name" | grep resolve_lib_name >/dev/null
4202 then
4203 # We have reworked collect2
4204 hardcode_direct=yes
4205 else
4206 # We have old collect2
4207 hardcode_direct=unsupported
4208 # It fails to find uninstalled libraries when the uninstalled
4209 # path is not listed in the libpath. Setting hardcode_minus_L
4210 # to unsupported forces relinking
4211 hardcode_minus_L=yes
4212 hardcode_libdir_flag_spec='-L$libdir'
4213 hardcode_libdir_separator=
4215 shared_flag='-shared'
4216 else
4217 if test "$host_cpu" = ia64; then
4218 shared_flag='-G'
4219 else
4220 shared_flag='${wl}-bM:SRE'
4222 hardcode_direct=yes
4225 if test "$host_cpu" = ia64; then
4226 # On IA64, the linker does run time linking by default, so we don't
4227 # have to do anything special.
4228 aix_use_runtimelinking=no
4229 exp_sym_flag='-Bexport'
4230 no_entry_flag=""
4231 else
4232 # Test if we are trying to use run time linking, or normal AIX style linking.
4233 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4234 aix_use_runtimelinking=no
4235 for ld_flag in $LDFLAGS; do
4236 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4237 aix_use_runtimelinking=yes
4238 break
4240 done
4241 exp_sym_flag='-bexport'
4242 no_entry_flag='-bnoentry'
4244 # It seems that -bexpall can do strange things, so it is better to
4245 # generate a list of symbols to export.
4246 always_export_symbols=yes
4247 if test "$aix_use_runtimelinking" = yes; then
4248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4249 allow_undefined_flag=' -Wl,-G'
4250 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4251 else
4252 if test "$host_cpu" = ia64; then
4253 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4254 allow_undefined_flag="-znodefs"
4255 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4256 else
4257 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4258 # Warning - without using the other run time loading flags, -berok will
4259 # link without error, but may produce a broken library.
4260 allow_undefined_flag='${wl}-berok"
4261 # This is a bit strange, but is similar to how AIX traditionally builds
4262 # it's shared libraries.
4263 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4268 amigaos*)
4269 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4270 hardcode_libdir_flag_spec='-L$libdir'
4271 hardcode_minus_L=yes
4272 # see comment about different semantics on the GNU ld section
4273 ld_shlibs=no
4276 cygwin* | mingw* | pw32*)
4277 # When not using gcc, we currently assume that we are using
4278 # Microsoft Visual C++.
4279 # hardcode_libdir_flag_spec is actually meaningless, as there is
4280 # no search path for DLLs.
4281 hardcode_libdir_flag_spec=' '
4282 allow_undefined_flag=unsupported
4283 # Tell ltmain to make .lib files, not .a files.
4284 libext=lib
4285 # FIXME: Setting linknames here is a bad hack.
4286 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4287 # The linker will automatically build a .lib file if we build a DLL.
4288 old_archive_from_new_cmds='true'
4289 # FIXME: Should let the user specify the lib program.
4290 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4291 fix_srcfile_path='`cygpath -w "$srcfile"`'
4294 darwin* | rhapsody*)
4295 allow_undefined_flag='-undefined suppress'
4296 # FIXME: Relying on posixy $() will cause problems for
4297 # cross-compilation, but unfortunately the echo tests do not
4298 # yet detect zsh echo's removal of \ escapes.
4299 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4300 # We need to add '_' to the symbols in $export_symbols first
4301 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4302 hardcode_direct=yes
4303 hardcode_shlibpath_var=no
4304 whole_archive_flag_spec='-all_load $convenience'
4307 freebsd1*)
4308 ld_shlibs=no
4311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4312 # support. Future versions do this automatically, but an explicit c++rt0.o
4313 # does not break anything, and helps significantly (at the cost of a little
4314 # extra space).
4315 freebsd2.2*)
4316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4317 hardcode_libdir_flag_spec='-R$libdir'
4318 hardcode_direct=yes
4319 hardcode_shlibpath_var=no
4322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4323 freebsd2*)
4324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4325 hardcode_direct=yes
4326 hardcode_minus_L=yes
4327 hardcode_shlibpath_var=no
4330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4331 freebsd*)
4332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4333 hardcode_libdir_flag_spec='-R$libdir'
4334 hardcode_direct=yes
4335 hardcode_shlibpath_var=no
4338 hpux9* | hpux10* | hpux11*)
4339 case $host_os in
4340 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4341 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4342 esac
4343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4344 hardcode_libdir_separator=:
4345 hardcode_direct=yes
4346 hardcode_minus_L=yes # Not in the search PATH, but as the default
4347 # location of the library.
4348 export_dynamic_flag_spec='${wl}-E'
4351 irix5* | irix6*)
4352 if test "$GCC" = yes; then
4353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4354 else
4355 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4358 hardcode_libdir_separator=:
4359 link_all_deplibs=yes
4362 netbsd*)
4363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4365 else
4366 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4368 hardcode_libdir_flag_spec='-R$libdir'
4369 hardcode_direct=yes
4370 hardcode_shlibpath_var=no
4373 newsos6)
4374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4375 hardcode_direct=yes
4376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4377 hardcode_libdir_separator=:
4378 hardcode_shlibpath_var=no
4381 openbsd*)
4382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4383 hardcode_libdir_flag_spec='-R$libdir'
4384 hardcode_direct=yes
4385 hardcode_shlibpath_var=no
4388 os2*)
4389 hardcode_libdir_flag_spec='-L$libdir'
4390 hardcode_minus_L=yes
4391 allow_undefined_flag=unsupported
4392 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4393 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4396 osf3*)
4397 if test "$GCC" = yes; then
4398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4399 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4400 else
4401 allow_undefined_flag=' -expect_unresolved \*'
4402 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4405 hardcode_libdir_separator=:
4408 osf4* | osf5*) # as osf3* with the addition of -msym flag
4409 if test "$GCC" = yes; then
4410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4411 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4413 else
4414 allow_undefined_flag=' -expect_unresolved \*'
4415 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4416 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4417 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4419 #Both c and cxx compiler support -rpath directly
4420 hardcode_libdir_flag_spec='-rpath $libdir'
4422 hardcode_libdir_separator=:
4425 sco3.2v5*)
4426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4427 hardcode_shlibpath_var=no
4428 runpath_var=LD_RUN_PATH
4429 hardcode_runpath_var=yes
4432 solaris*)
4433 no_undefined_flag=' -z defs'
4434 # $CC -shared without GNU ld will not create a library from C++
4435 # object files and a static libstdc++, better avoid it by now
4436 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4437 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4439 hardcode_libdir_flag_spec='-R$libdir'
4440 hardcode_shlibpath_var=no
4441 case $host_os in
4442 solaris2.[0-5] | solaris2.[0-5].*) ;;
4443 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4445 esac
4446 link_all_deplibs=yes
4449 sunos4*)
4450 if test "x$host_vendor" = xsequent; then
4451 # Use $CC to link under sequent, because it throws in some extra .o
4452 # files that make .init and .fini sections work.
4453 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4454 else
4455 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4457 hardcode_libdir_flag_spec='-L$libdir'
4458 hardcode_direct=yes
4459 hardcode_minus_L=yes
4460 hardcode_shlibpath_var=no
4463 sysv4)
4464 if test "x$host_vendor" = xsno; then
4465 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4466 hardcode_direct=yes # is this really true???
4467 else
4468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4471 runpath_var='LD_RUN_PATH'
4472 hardcode_shlibpath_var=no
4475 sysv4.3*)
4476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4477 hardcode_shlibpath_var=no
4478 export_dynamic_flag_spec='-Bexport'
4481 sysv5*)
4482 no_undefined_flag=' -z text'
4483 # $CC -shared without GNU ld will not create a library from C++
4484 # object files and a static libstdc++, better avoid it by now
4485 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4486 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4487 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4488 hardcode_libdir_flag_spec=
4489 hardcode_shlibpath_var=no
4490 runpath_var='LD_RUN_PATH'
4493 uts4*)
4494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4495 hardcode_libdir_flag_spec='-L$libdir'
4496 hardcode_shlibpath_var=no
4499 dgux*)
4500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4501 hardcode_libdir_flag_spec='-L$libdir'
4502 hardcode_shlibpath_var=no
4505 sysv4*MP*)
4506 if test -d /usr/nec; then
4507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4508 hardcode_shlibpath_var=no
4509 runpath_var=LD_RUN_PATH
4510 hardcode_runpath_var=yes
4511 ld_shlibs=yes
4515 sysv4.2uw2*)
4516 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4517 hardcode_direct=yes
4518 hardcode_minus_L=no
4519 hardcode_shlibpath_var=no
4520 hardcode_runpath_var=yes
4521 runpath_var=LD_RUN_PATH
4524 sysv5uw7* | unixware7*)
4525 no_undefined_flag='${wl}-z ${wl}text'
4526 if test "$GCC" = yes; then
4527 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4528 else
4529 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4531 runpath_var='LD_RUN_PATH'
4532 hardcode_shlibpath_var=no
4536 ld_shlibs=no
4538 esac
4540 echo "$as_me:4540: result: $ld_shlibs" >&5
4541 echo "${ECHO_T}$ld_shlibs" >&6
4542 test "$ld_shlibs" = no && can_build_shared=no
4544 # Check hardcoding attributes.
4545 echo "$as_me:4545: checking how to hardcode library paths into programs" >&5
4546 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4547 hardcode_action=
4548 if test -n "$hardcode_libdir_flag_spec" || \
4549 test -n "$runpath_var"; then
4551 # We can hardcode non-existant directories.
4552 if test "$hardcode_direct" != no &&
4553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4554 # have to relink, otherwise we might link with an installed library
4555 # when we should be linking with a yet-to-be-installed one
4556 ## test "$hardcode_shlibpath_var" != no &&
4557 test "$hardcode_minus_L" != no; then
4558 # Linking always hardcodes the temporary library directory.
4559 hardcode_action=relink
4560 else
4561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4562 hardcode_action=immediate
4564 else
4565 # We cannot hardcode anything, or else we can only hardcode existing
4566 # directories.
4567 hardcode_action=unsupported
4569 echo "$as_me:4569: result: $hardcode_action" >&5
4570 echo "${ECHO_T}$hardcode_action" >&6
4572 striplib=
4573 old_striplib=
4574 echo "$as_me:4574: checking whether stripping libraries is possible" >&5
4575 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4576 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4577 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4578 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4579 echo "$as_me:4579: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4581 else
4582 echo "$as_me:4582: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4587 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4589 # PORTME Fill in your ld.so characteristics
4590 echo "$as_me:4590: checking dynamic linker characteristics" >&5
4591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4592 library_names_spec=
4593 libname_spec='lib$name'
4594 soname_spec=
4595 postinstall_cmds=
4596 postuninstall_cmds=
4597 finish_cmds=
4598 finish_eval=
4599 shlibpath_var=
4600 shlibpath_overrides_runpath=unknown
4601 version_type=none
4602 dynamic_linker="$host_os ld.so"
4603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4604 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4606 case $host_os in
4607 aix3*)
4608 version_type=linux
4609 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4610 shlibpath_var=LIBPATH
4612 # AIX has no versioning support, so we append a major version to the name.
4613 soname_spec='${libname}${release}.so$major'
4616 aix4* | aix5*)
4617 version_type=linux
4618 if test "$host_cpu" = ia64; then
4619 # AIX 5 supports IA64
4620 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4621 shlibpath_var=LD_LIBRARY_PATH
4622 else
4623 # With GCC up to 2.95.x, collect2 would create an import file
4624 # for dependence libraries. The import file would start with
4625 # the line `#! .'. This would cause the generated library to
4626 # depend on `.', always an invalid library. This was fixed in
4627 # development snapshots of GCC prior to 3.0.
4628 case $host_os in
4629 aix4 | aix4.[01] | aix4.[01].*)
4630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4631 echo ' yes '
4632 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4634 else
4635 can_build_shared=no
4638 esac
4639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4640 # soname into executable. Probably we can add versioning support to
4641 # collect2, so additional links can be useful in future.
4642 if test "$aix_use_runtimelinking" = yes; then
4643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4644 # lib<name>.a to let people know that these are not typical AIX shared libraries.
4645 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4646 else
4647 # We preserve .a as extension for shared libraries through AIX4.2
4648 # and later when we are not doing run time linking.
4649 library_names_spec='${libname}${release}.a $libname.a'
4650 soname_spec='${libname}${release}.so$major'
4652 shlibpath_var=LIBPATH
4653 deplibs_check_method=pass_all
4657 amigaos*)
4658 library_names_spec='$libname.ixlibrary $libname.a'
4659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4660 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4663 beos*)
4664 library_names_spec='${libname}.so'
4665 dynamic_linker="$host_os ld.so"
4666 shlibpath_var=LIBRARY_PATH
4669 bsdi4*)
4670 version_type=linux
4671 need_version=no
4672 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4673 soname_spec='${libname}${release}.so$major'
4674 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4675 shlibpath_var=LD_LIBRARY_PATH
4676 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4677 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4678 export_dynamic_flag_spec=-rdynamic
4679 # the default ld.so.conf also contains /usr/contrib/lib and
4680 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4681 # libtool to hard-code these into programs
4684 cygwin* | mingw* | pw32*)
4685 version_type=windows
4686 need_version=no
4687 need_lib_prefix=no
4688 case $GCC,$host_os in
4689 yes,cygwin*)
4690 library_names_spec='$libname.dll.a'
4691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4692 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4693 dldir=$destdir/`dirname \$dlpath`~
4694 test -d \$dldir || mkdir -p \$dldir~
4695 $install_prog .libs/$dlname \$dldir/$dlname'
4696 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4697 dlpath=$dir/\$dldll~
4698 $rm \$dlpath'
4700 yes,mingw*)
4701 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4702 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4704 yes,pw32*)
4705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4708 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4710 esac
4711 dynamic_linker='Win32 ld.exe'
4712 # FIXME: first we should search . and the directory the executable is in
4713 shlibpath_var=PATH
4716 darwin* | rhapsody*)
4717 dynamic_linker="$host_os dyld"
4718 version_type=darwin
4719 need_lib_prefix=no
4720 need_version=no
4721 # FIXME: Relying on posixy $() will cause problems for
4722 # cross-compilation, but unfortunately the echo tests do not
4723 # yet detect zsh echo's removal of \ escapes.
4724 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4725 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4726 shlibpath_overrides_runpath=yes
4727 shlibpath_var=DYLD_LIBRARY_PATH
4730 freebsd1*)
4731 dynamic_linker=no
4734 freebsd*)
4735 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4736 version_type=freebsd-$objformat
4737 case $version_type in
4738 freebsd-elf*)
4739 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4740 need_version=no
4741 need_lib_prefix=no
4743 freebsd-*)
4744 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4745 need_version=yes
4747 esac
4748 shlibpath_var=LD_LIBRARY_PATH
4749 case $host_os in
4750 freebsd2*)
4751 shlibpath_overrides_runpath=yes
4754 shlibpath_overrides_runpath=no
4755 hardcode_into_libs=yes
4757 esac
4760 gnu*)
4761 version_type=linux
4762 need_lib_prefix=no
4763 need_version=no
4764 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4765 soname_spec='${libname}${release}.so$major'
4766 shlibpath_var=LD_LIBRARY_PATH
4767 hardcode_into_libs=yes
4770 hpux9* | hpux10* | hpux11*)
4771 # Give a soname corresponding to the major version so that dld.sl refuses to
4772 # link against other versions.
4773 dynamic_linker="$host_os dld.sl"
4774 version_type=sunos
4775 need_lib_prefix=no
4776 need_version=no
4777 shlibpath_var=SHLIB_PATH
4778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4779 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4780 soname_spec='${libname}${release}.sl$major'
4781 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4782 postinstall_cmds='chmod 555 $lib'
4785 irix5* | irix6*)
4786 version_type=irix
4787 need_lib_prefix=no
4788 need_version=no
4789 soname_spec='${libname}${release}.so$major'
4790 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4791 case $host_os in
4792 irix5*)
4793 libsuff= shlibsuff=
4796 case $LD in # libtool.m4 will add one of these switches to LD
4797 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4798 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4799 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4800 *) libsuff= shlibsuff= libmagic=never-match;;
4801 esac
4803 esac
4804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4805 shlibpath_overrides_runpath=no
4806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4810 # No shared lib support for Linux oldld, aout, or coff.
4811 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4812 dynamic_linker=no
4815 # This must be Linux ELF.
4816 linux-gnu*)
4817 version_type=linux
4818 need_lib_prefix=no
4819 need_version=no
4820 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4821 soname_spec='${libname}${release}.so$major'
4822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4823 shlibpath_var=LD_LIBRARY_PATH
4824 shlibpath_overrides_runpath=no
4825 # This implies no fast_install, which is unacceptable.
4826 # Some rework will be needed to allow for fast_install
4827 # before this can be enabled.
4828 hardcode_into_libs=yes
4830 # We used to test for /lib/ld.so.1 and disable shared libraries on
4831 # powerpc, because MkLinux only supported shared libraries with the
4832 # GNU dynamic linker. Since this was broken with cross compilers,
4833 # most powerpc-linux boxes support dynamic linking these days and
4834 # people can always --disable-shared, the test was removed, and we
4835 # assume the GNU/Linux dynamic linker is in use.
4836 dynamic_linker='GNU/Linux ld.so'
4839 netbsd*)
4840 version_type=sunos
4841 need_lib_prefix=no
4842 need_version=no
4843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4844 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4846 dynamic_linker='NetBSD (a.out) ld.so'
4847 else
4848 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4849 soname_spec='${libname}${release}.so$major'
4850 dynamic_linker='NetBSD ld.elf_so'
4852 shlibpath_var=LD_LIBRARY_PATH
4853 shlibpath_overrides_runpath=yes
4854 hardcode_into_libs=yes
4857 newsos6)
4858 version_type=linux
4859 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4860 shlibpath_var=LD_LIBRARY_PATH
4861 shlibpath_overrides_runpath=yes
4864 openbsd*)
4865 version_type=sunos
4866 if test "$with_gnu_ld" = yes; then
4867 need_lib_prefix=no
4868 need_version=no
4870 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4872 shlibpath_var=LD_LIBRARY_PATH
4875 os2*)
4876 libname_spec='$name'
4877 need_lib_prefix=no
4878 library_names_spec='$libname.dll $libname.a'
4879 dynamic_linker='OS/2 ld.exe'
4880 shlibpath_var=LIBPATH
4883 osf3* | osf4* | osf5*)
4884 version_type=osf
4885 need_version=no
4886 soname_spec='${libname}${release}.so'
4887 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4888 shlibpath_var=LD_LIBRARY_PATH
4889 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4890 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4893 sco3.2v5*)
4894 version_type=osf
4895 soname_spec='${libname}${release}.so$major'
4896 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4897 shlibpath_var=LD_LIBRARY_PATH
4900 solaris*)
4901 version_type=linux
4902 need_lib_prefix=no
4903 need_version=no
4904 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4905 soname_spec='${libname}${release}.so$major'
4906 shlibpath_var=LD_LIBRARY_PATH
4907 shlibpath_overrides_runpath=yes
4908 hardcode_into_libs=yes
4909 # ldd complains unless libraries are executable
4910 postinstall_cmds='chmod +x $lib'
4913 sunos4*)
4914 version_type=sunos
4915 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4917 shlibpath_var=LD_LIBRARY_PATH
4918 shlibpath_overrides_runpath=yes
4919 if test "$with_gnu_ld" = yes; then
4920 need_lib_prefix=no
4922 need_version=yes
4925 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4926 version_type=linux
4927 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4928 soname_spec='${libname}${release}.so$major'
4929 shlibpath_var=LD_LIBRARY_PATH
4930 case $host_vendor in
4931 sni)
4932 shlibpath_overrides_runpath=no
4934 motorola)
4935 need_lib_prefix=no
4936 need_version=no
4937 shlibpath_overrides_runpath=no
4938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4940 esac
4943 uts4*)
4944 version_type=linux
4945 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4946 soname_spec='${libname}${release}.so$major'
4947 shlibpath_var=LD_LIBRARY_PATH
4950 dgux*)
4951 version_type=linux
4952 need_lib_prefix=no
4953 need_version=no
4954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4955 soname_spec='${libname}${release}.so$major'
4956 shlibpath_var=LD_LIBRARY_PATH
4959 sysv4*MP*)
4960 if test -d /usr/nec ;then
4961 version_type=linux
4962 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4963 soname_spec='$libname.so.$major'
4964 shlibpath_var=LD_LIBRARY_PATH
4969 dynamic_linker=no
4971 esac
4972 echo "$as_me:4972: result: $dynamic_linker" >&5
4973 echo "${ECHO_T}$dynamic_linker" >&6
4974 test "$dynamic_linker" = no && can_build_shared=no
4976 # Report the final consequences.
4977 echo "$as_me:4977: checking if libtool supports shared libraries" >&5
4978 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4979 echo "$as_me:4979: result: $can_build_shared" >&5
4980 echo "${ECHO_T}$can_build_shared" >&6
4982 if test "$hardcode_action" = relink; then
4983 # Fast installation is not supported
4984 enable_fast_install=no
4985 elif test "$shlibpath_overrides_runpath" = yes ||
4986 test "$enable_shared" = no; then
4987 # Fast installation is not necessary
4988 enable_fast_install=needless
4991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4992 if test "$GCC" = yes; then
4993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4996 if test "x$enable_dlopen" != xyes; then
4997 enable_dlopen=unknown
4998 enable_dlopen_self=unknown
4999 enable_dlopen_self_static=unknown
5000 else
5001 lt_cv_dlopen=no
5002 lt_cv_dlopen_libs=
5004 case $host_os in
5005 beos*)
5006 lt_cv_dlopen="load_add_on"
5007 lt_cv_dlopen_libs=
5008 lt_cv_dlopen_self=yes
5011 cygwin* | mingw* | pw32*)
5012 lt_cv_dlopen="LoadLibrary"
5013 lt_cv_dlopen_libs=
5017 echo "$as_me:5017: checking for dlopen in -ldl" >&5
5018 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5019 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 ac_check_lib_save_LIBS=$LIBS
5023 LIBS="-ldl $LIBS"
5024 cat >conftest.$ac_ext <<_ACEOF
5025 #line 5025 "configure"
5026 #include "confdefs.h"
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 #ifdef __cplusplus
5030 extern "C"
5031 #endif
5032 /* We use char because int might match the return type of a gcc2
5033 builtin and then its argument prototype would still apply. */
5034 char dlopen ();
5036 main ()
5038 dlopen ();
5040 return 0;
5042 _ACEOF
5043 rm -f conftest.$ac_objext conftest$ac_exeext
5044 if { (eval echo "$as_me:5044: \"$ac_link\"") >&5
5045 (eval $ac_link) 2>&5
5046 ac_status=$?
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -s conftest$ac_exeext'
5050 { (eval echo "$as_me:5050: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:5053: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_cv_lib_dl_dlopen=yes
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059 ac_cv_lib_dl_dlopen=no
5061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5062 LIBS=$ac_check_lib_save_LIBS
5064 echo "$as_me:5064: result: $ac_cv_lib_dl_dlopen" >&5
5065 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5066 if test $ac_cv_lib_dl_dlopen = yes; then
5067 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5068 else
5069 echo "$as_me:5069: checking for dlopen" >&5
5070 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5071 if test "${ac_cv_func_dlopen+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line 5075 "configure"
5076 #include "confdefs.h"
5077 /* System header to define __stub macros and hopefully few prototypes,
5078 which can conflict with char dlopen (); below. */
5079 #include <assert.h>
5080 /* Override any gcc2 internal prototype to avoid an error. */
5081 #ifdef __cplusplus
5082 extern "C"
5083 #endif
5084 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */
5086 char dlopen ();
5087 char (*f) ();
5090 main ()
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5096 choke me
5097 #else
5098 f = dlopen;
5099 #endif
5102 return 0;
5104 _ACEOF
5105 rm -f conftest.$ac_objext conftest$ac_exeext
5106 if { (eval echo "$as_me:5106: \"$ac_link\"") >&5
5107 (eval $ac_link) 2>&5
5108 ac_status=$?
5109 echo "$as_me:5109: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -s conftest$ac_exeext'
5112 { (eval echo "$as_me:5112: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:5115: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_func_dlopen=yes
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5121 ac_cv_func_dlopen=no
5123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5125 echo "$as_me:5125: result: $ac_cv_func_dlopen" >&5
5126 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5127 if test $ac_cv_func_dlopen = yes; then
5128 lt_cv_dlopen="dlopen"
5129 else
5130 echo "$as_me:5130: checking for shl_load" >&5
5131 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5132 if test "${ac_cv_func_shl_load+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 cat >conftest.$ac_ext <<_ACEOF
5136 #line 5136 "configure"
5137 #include "confdefs.h"
5138 /* System header to define __stub macros and hopefully few prototypes,
5139 which can conflict with char shl_load (); below. */
5140 #include <assert.h>
5141 /* Override any gcc2 internal prototype to avoid an error. */
5142 #ifdef __cplusplus
5143 extern "C"
5144 #endif
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5147 char shl_load ();
5148 char (*f) ();
5151 main ()
5153 /* The GNU C library defines this for functions which it implements
5154 to always fail with ENOSYS. Some functions are actually named
5155 something starting with __ and the normal name is an alias. */
5156 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5157 choke me
5158 #else
5159 f = shl_load;
5160 #endif
5163 return 0;
5165 _ACEOF
5166 rm -f conftest.$ac_objext conftest$ac_exeext
5167 if { (eval echo "$as_me:5167: \"$ac_link\"") >&5
5168 (eval $ac_link) 2>&5
5169 ac_status=$?
5170 echo "$as_me:5170: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -s conftest$ac_exeext'
5173 { (eval echo "$as_me:5173: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:5176: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5178 ac_cv_func_shl_load=yes
5179 else
5180 echo "$as_me: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 ac_cv_func_shl_load=no
5184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5186 echo "$as_me:5186: result: $ac_cv_func_shl_load" >&5
5187 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5188 if test $ac_cv_func_shl_load = yes; then
5189 lt_cv_dlopen="shl_load"
5190 else
5191 echo "$as_me:5191: checking for dlopen in -lsvld" >&5
5192 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5193 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 ac_check_lib_save_LIBS=$LIBS
5197 LIBS="-lsvld $LIBS"
5198 cat >conftest.$ac_ext <<_ACEOF
5199 #line 5199 "configure"
5200 #include "confdefs.h"
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 #ifdef __cplusplus
5204 extern "C"
5205 #endif
5206 /* We use char because int might match the return type of a gcc2
5207 builtin and then its argument prototype would still apply. */
5208 char dlopen ();
5210 main ()
5212 dlopen ();
5214 return 0;
5216 _ACEOF
5217 rm -f conftest.$ac_objext conftest$ac_exeext
5218 if { (eval echo "$as_me:5218: \"$ac_link\"") >&5
5219 (eval $ac_link) 2>&5
5220 ac_status=$?
5221 echo "$as_me:5221: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -s conftest$ac_exeext'
5224 { (eval echo "$as_me:5224: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:5227: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_lib_svld_dlopen=yes
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5233 ac_cv_lib_svld_dlopen=no
5235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5236 LIBS=$ac_check_lib_save_LIBS
5238 echo "$as_me:5238: result: $ac_cv_lib_svld_dlopen" >&5
5239 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5240 if test $ac_cv_lib_svld_dlopen = yes; then
5241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5242 else
5243 echo "$as_me:5243: checking for shl_load in -ldld" >&5
5244 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5245 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-ldld $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line 5251 "configure"
5252 #include "confdefs.h"
5254 /* Override any gcc2 internal prototype to avoid an error. */
5255 #ifdef __cplusplus
5256 extern "C"
5257 #endif
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5260 char shl_load ();
5262 main ()
5264 shl_load ();
5266 return 0;
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:5270: \"$ac_link\"") >&5
5271 (eval $ac_link) 2>&5
5272 ac_status=$?
5273 echo "$as_me:5273: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest$ac_exeext'
5276 { (eval echo "$as_me:5276: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:5279: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_lib_dld_shl_load=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 ac_cv_lib_dld_shl_load=no
5287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_check_lib_save_LIBS
5290 echo "$as_me:5290: result: $ac_cv_lib_dld_shl_load" >&5
5291 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5292 if test $ac_cv_lib_dld_shl_load = yes; then
5293 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5305 esac
5307 if test "x$lt_cv_dlopen" != xno; then
5308 enable_dlopen=yes
5309 else
5310 enable_dlopen=no
5313 case $lt_cv_dlopen in
5314 dlopen)
5315 save_CPPFLAGS="$CPPFLAGS"
5316 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5318 save_LDFLAGS="$LDFLAGS"
5319 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5321 save_LIBS="$LIBS"
5322 LIBS="$lt_cv_dlopen_libs $LIBS"
5324 echo "$as_me:5324: checking whether a program can dlopen itself" >&5
5325 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5326 if test "${lt_cv_dlopen_self+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 if test "$cross_compiling" = yes; then :
5330 lt_cv_dlopen_self=cross
5331 else
5332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5333 lt_status=$lt_dlunknown
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5335 "configure"
5336 #include "confdefs.h"
5338 #if HAVE_DLFCN_H
5339 #include <dlfcn.h>
5340 #endif
5342 #include <stdio.h>
5344 #ifdef RTLD_GLOBAL
5345 # define LT_DLGLOBAL RTLD_GLOBAL
5346 #else
5347 # ifdef DL_GLOBAL
5348 # define LT_DLGLOBAL DL_GLOBAL
5349 # else
5350 # define LT_DLGLOBAL 0
5351 # endif
5352 #endif
5354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5355 find out it does not work in some platform. */
5356 #ifndef LT_DLLAZY_OR_NOW
5357 # ifdef RTLD_LAZY
5358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5359 # else
5360 # ifdef DL_LAZY
5361 # define LT_DLLAZY_OR_NOW DL_LAZY
5362 # else
5363 # ifdef RTLD_NOW
5364 # define LT_DLLAZY_OR_NOW RTLD_NOW
5365 # else
5366 # ifdef DL_NOW
5367 # define LT_DLLAZY_OR_NOW DL_NOW
5368 # else
5369 # define LT_DLLAZY_OR_NOW 0
5370 # endif
5371 # endif
5372 # endif
5373 # endif
5374 #endif
5376 #ifdef __cplusplus
5377 extern "C" void exit (int);
5378 #endif
5380 void fnord() { int i=42;}
5381 int main ()
5383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5384 int status = $lt_dlunknown;
5386 if (self)
5388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5390 /* dlclose (self); */
5393 exit (status);
5396 if { (eval echo "$as_me:5396: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>&5
5398 ac_status=$?
5399 echo "$as_me:5399: \$? = $ac_status" >&5
5400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5401 (./conftest; exit; ) 2>/dev/null
5402 lt_status=$?
5403 case x$lt_status in
5404 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5405 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5406 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5407 esac
5408 else :
5409 # compilation failed
5410 lt_cv_dlopen_self=no
5413 rm -fr conftest*
5416 echo "$as_me:5416: result: $lt_cv_dlopen_self" >&5
5417 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5419 if test "x$lt_cv_dlopen_self" = xyes; then
5420 LDFLAGS="$LDFLAGS $link_static_flag"
5421 echo "$as_me:5421: checking whether a statically linked program can dlopen itself" >&5
5422 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5423 if test "${lt_cv_dlopen_self_static+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 if test "$cross_compiling" = yes; then :
5427 lt_cv_dlopen_self_static=cross
5428 else
5429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5430 lt_status=$lt_dlunknown
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5432 "configure"
5433 #include "confdefs.h"
5435 #if HAVE_DLFCN_H
5436 #include <dlfcn.h>
5437 #endif
5439 #include <stdio.h>
5441 #ifdef RTLD_GLOBAL
5442 # define LT_DLGLOBAL RTLD_GLOBAL
5443 #else
5444 # ifdef DL_GLOBAL
5445 # define LT_DLGLOBAL DL_GLOBAL
5446 # else
5447 # define LT_DLGLOBAL 0
5448 # endif
5449 #endif
5451 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5452 find out it does not work in some platform. */
5453 #ifndef LT_DLLAZY_OR_NOW
5454 # ifdef RTLD_LAZY
5455 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5456 # else
5457 # ifdef DL_LAZY
5458 # define LT_DLLAZY_OR_NOW DL_LAZY
5459 # else
5460 # ifdef RTLD_NOW
5461 # define LT_DLLAZY_OR_NOW RTLD_NOW
5462 # else
5463 # ifdef DL_NOW
5464 # define LT_DLLAZY_OR_NOW DL_NOW
5465 # else
5466 # define LT_DLLAZY_OR_NOW 0
5467 # endif
5468 # endif
5469 # endif
5470 # endif
5471 #endif
5473 #ifdef __cplusplus
5474 extern "C" void exit (int);
5475 #endif
5477 void fnord() { int i=42;}
5478 int main ()
5480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5481 int status = $lt_dlunknown;
5483 if (self)
5485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5486 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5487 /* dlclose (self); */
5490 exit (status);
5493 if { (eval echo "$as_me:5493: \"$ac_link\"") >&5
5494 (eval $ac_link) 2>&5
5495 ac_status=$?
5496 echo "$as_me:5496: \$? = $ac_status" >&5
5497 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5498 (./conftest; exit; ) 2>/dev/null
5499 lt_status=$?
5500 case x$lt_status in
5501 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5502 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5503 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5504 esac
5505 else :
5506 # compilation failed
5507 lt_cv_dlopen_self_static=no
5510 rm -fr conftest*
5513 echo "$as_me:5513: result: $lt_cv_dlopen_self_static" >&5
5514 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5517 CPPFLAGS="$save_CPPFLAGS"
5518 LDFLAGS="$save_LDFLAGS"
5519 LIBS="$save_LIBS"
5521 esac
5523 case $lt_cv_dlopen_self in
5524 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5525 *) enable_dlopen_self=unknown ;;
5526 esac
5528 case $lt_cv_dlopen_self_static in
5529 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5530 *) enable_dlopen_self_static=unknown ;;
5531 esac
5534 if test "$enable_shared" = yes && test "$GCC" = yes; then
5535 case $archive_cmds in
5536 *'~'*)
5537 # FIXME: we may have to deal with multi-command sequences.
5539 '$CC '*)
5540 # Test whether the compiler implicitly links with -lc since on some
5541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5542 # to ld, don't add -lc before -lgcc.
5543 echo "$as_me:5543: checking whether -lc should be explicitly linked in" >&5
5544 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5545 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548 $rm conftest*
5549 echo 'static int dummy;' > conftest.$ac_ext
5551 if { (eval echo "$as_me:5551: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>&5
5553 ac_status=$?
5554 echo "$as_me:5554: \$? = $ac_status" >&5
5555 (exit $ac_status); }; then
5556 soname=conftest
5557 lib=conftest
5558 libobjs=conftest.$ac_objext
5559 deplibs=
5560 wl=$lt_cv_prog_cc_wl
5561 compiler_flags=-v
5562 linker_flags=-v
5563 verstring=
5564 output_objdir=.
5565 libname=conftest
5566 save_allow_undefined_flag=$allow_undefined_flag
5567 allow_undefined_flag=
5568 if { (eval echo "$as_me:5568: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5569 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5570 ac_status=$?
5571 echo "$as_me:5571: \$? = $ac_status" >&5
5572 (exit $ac_status); }
5573 then
5574 lt_cv_archive_cmds_need_lc=no
5575 else
5576 lt_cv_archive_cmds_need_lc=yes
5578 allow_undefined_flag=$save_allow_undefined_flag
5579 else
5580 cat conftest.err 1>&5
5584 echo "$as_me:5584: result: $lt_cv_archive_cmds_need_lc" >&5
5585 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5587 esac
5589 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5591 # The second clause should only fire when bootstrapping the
5592 # libtool distribution, otherwise you forgot to ship ltmain.sh
5593 # with your package, and you will get complaints that there are
5594 # no rules to generate ltmain.sh.
5595 if test -f "$ltmain"; then
5597 else
5598 # If there is no Makefile yet, we rely on a make rule to execute
5599 # `config.status --recheck' to rerun these tests and create the
5600 # libtool script then.
5601 test -f Makefile && make "$ltmain"
5604 if test -f "$ltmain"; then
5605 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5606 $rm -f "${ofile}T"
5608 echo creating $ofile
5610 # Now quote all the things that may contain metacharacters while being
5611 # careful not to overquote the AC_SUBSTed values. We take copies of the
5612 # variables and quote the copies for generation of the libtool script.
5613 for var in echo old_CC old_CFLAGS \
5614 AR AR_FLAGS CC LD LN_S NM SHELL \
5615 reload_flag reload_cmds wl \
5616 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5617 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5618 library_names_spec soname_spec \
5619 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5620 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5621 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5622 old_striplib striplib file_magic_cmd export_symbols_cmds \
5623 deplibs_check_method allow_undefined_flag no_undefined_flag \
5624 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5625 hardcode_libdir_flag_spec hardcode_libdir_separator \
5626 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5627 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5629 case $var in
5630 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5631 old_postinstall_cmds | old_postuninstall_cmds | \
5632 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5633 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5634 postinstall_cmds | postuninstall_cmds | \
5635 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5636 # Double-quote double-evaled strings.
5637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5642 esac
5643 done
5645 cat <<__EOF__ > "${ofile}T"
5646 #! $SHELL
5648 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5649 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5650 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5652 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5653 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5655 # This program is free software; you can redistribute it and/or modify
5656 # it under the terms of the GNU General Public License as published by
5657 # the Free Software Foundation; either version 2 of the License, or
5658 # (at your option) any later version.
5660 # This program is distributed in the hope that it will be useful, but
5661 # WITHOUT ANY WARRANTY; without even the implied warranty of
5662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5663 # General Public License for more details.
5665 # You should have received a copy of the GNU General Public License
5666 # along with this program; if not, write to the Free Software
5667 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5669 # As a special exception to the GNU General Public License, if you
5670 # distribute this file as part of a program that contains a
5671 # configuration script generated by Autoconf, you may include it under
5672 # the same distribution terms that you use for the rest of that program.
5674 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5675 Xsed="sed -e s/^X//"
5677 # The HP-UX ksh and POSIX shell print the target directory to stdout
5678 # if CDPATH is set.
5679 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5681 # ### BEGIN LIBTOOL CONFIG
5683 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5685 # Shell to use when invoking shell scripts.
5686 SHELL=$lt_SHELL
5688 # Whether or not to build shared libraries.
5689 build_libtool_libs=$enable_shared
5691 # Whether or not to add -lc for building shared libraries.
5692 build_libtool_need_lc=$need_lc
5694 # Whether or not to build static libraries.
5695 build_old_libs=$enable_static
5697 # Whether or not to optimize for fast installation.
5698 fast_install=$enable_fast_install
5700 # The host system.
5701 host_alias=$host_alias
5702 host=$host
5704 # An echo program that does not interpret backslashes.
5705 echo=$lt_echo
5707 # The archiver.
5708 AR=$lt_AR
5709 AR_FLAGS=$lt_AR_FLAGS
5711 # The default C compiler.
5712 CC=$lt_CC
5714 # Is the compiler the GNU C compiler?
5715 with_gcc=$GCC
5717 # The linker used to build libraries.
5718 LD=$lt_LD
5720 # Whether we need hard or soft links.
5721 LN_S=$lt_LN_S
5723 # A BSD-compatible nm program.
5724 NM=$lt_NM
5726 # A symbol stripping program
5727 STRIP=$STRIP
5729 # Used to examine libraries when file_magic_cmd begins "file"
5730 MAGIC_CMD=$MAGIC_CMD
5732 # Used on cygwin: DLL creation program.
5733 DLLTOOL="$DLLTOOL"
5735 # Used on cygwin: object dumper.
5736 OBJDUMP="$OBJDUMP"
5738 # Used on cygwin: assembler.
5739 AS="$AS"
5741 # The name of the directory that contains temporary libtool files.
5742 objdir=$objdir
5744 # How to create reloadable object files.
5745 reload_flag=$lt_reload_flag
5746 reload_cmds=$lt_reload_cmds
5748 # How to pass a linker flag through the compiler.
5749 wl=$lt_wl
5751 # Object file suffix (normally "o").
5752 objext="$ac_objext"
5754 # Old archive suffix (normally "a").
5755 libext="$libext"
5757 # Executable file suffix (normally "").
5758 exeext="$exeext"
5760 # Additional compiler flags for building library objects.
5761 pic_flag=$lt_pic_flag
5762 pic_mode=$pic_mode
5764 # Does compiler simultaneously support -c and -o options?
5765 compiler_c_o=$lt_compiler_c_o
5767 # Can we write directly to a .lo ?
5768 compiler_o_lo=$lt_compiler_o_lo
5770 # Must we lock files when doing compilation ?
5771 need_locks=$lt_need_locks
5773 # Do we need the lib prefix for modules?
5774 need_lib_prefix=$need_lib_prefix
5776 # Do we need a version for libraries?
5777 need_version=$need_version
5779 # Whether dlopen is supported.
5780 dlopen_support=$enable_dlopen
5782 # Whether dlopen of programs is supported.
5783 dlopen_self=$enable_dlopen_self
5785 # Whether dlopen of statically linked programs is supported.
5786 dlopen_self_static=$enable_dlopen_self_static
5788 # Compiler flag to prevent dynamic linking.
5789 link_static_flag=$lt_link_static_flag
5791 # Compiler flag to turn off builtin functions.
5792 no_builtin_flag=$lt_no_builtin_flag
5794 # Compiler flag to allow reflexive dlopens.
5795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5797 # Compiler flag to generate shared objects directly from archives.
5798 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5800 # Compiler flag to generate thread-safe objects.
5801 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5803 # Library versioning type.
5804 version_type=$version_type
5806 # Format of library name prefix.
5807 libname_spec=$lt_libname_spec
5809 # List of archive names. First name is the real one, the rest are links.
5810 # The last name is the one that the linker finds with -lNAME.
5811 library_names_spec=$lt_library_names_spec
5813 # The coded name of the library, if different from the real name.
5814 soname_spec=$lt_soname_spec
5816 # Commands used to build and install an old-style archive.
5817 RANLIB=$lt_RANLIB
5818 old_archive_cmds=$lt_old_archive_cmds
5819 old_postinstall_cmds=$lt_old_postinstall_cmds
5820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5822 # Create an old-style archive from a shared archive.
5823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5825 # Create a temporary old-style archive to link instead of a shared archive.
5826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5828 # Commands used to build and install a shared archive.
5829 archive_cmds=$lt_archive_cmds
5830 archive_expsym_cmds=$lt_archive_expsym_cmds
5831 postinstall_cmds=$lt_postinstall_cmds
5832 postuninstall_cmds=$lt_postuninstall_cmds
5834 # Commands to strip libraries.
5835 old_striplib=$lt_old_striplib
5836 striplib=$lt_striplib
5838 # Method to check whether dependent libraries are shared objects.
5839 deplibs_check_method=$lt_deplibs_check_method
5841 # Command to use when deplibs_check_method == file_magic.
5842 file_magic_cmd=$lt_file_magic_cmd
5844 # Flag that allows shared libraries with undefined symbols to be built.
5845 allow_undefined_flag=$lt_allow_undefined_flag
5847 # Flag that forces no undefined symbols.
5848 no_undefined_flag=$lt_no_undefined_flag
5850 # Commands used to finish a libtool library installation in a directory.
5851 finish_cmds=$lt_finish_cmds
5853 # Same as above, but a single script fragment to be evaled but not shown.
5854 finish_eval=$lt_finish_eval
5856 # Take the output of nm and produce a listing of raw symbols and C names.
5857 global_symbol_pipe=$lt_global_symbol_pipe
5859 # Transform the output of nm in a proper C declaration
5860 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5862 # This is the shared library runtime path variable.
5863 runpath_var=$runpath_var
5865 # This is the shared library path variable.
5866 shlibpath_var=$shlibpath_var
5868 # Is shlibpath searched before the hard-coded library search path?
5869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5871 # How to hardcode a shared library path into an executable.
5872 hardcode_action=$hardcode_action
5874 # Whether we should hardcode library paths into libraries.
5875 hardcode_into_libs=$hardcode_into_libs
5877 # Flag to hardcode \$libdir into a binary during linking.
5878 # This must work even if \$libdir does not exist.
5879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5881 # Whether we need a single -rpath flag with a separated argument.
5882 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5884 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5885 # resulting binary.
5886 hardcode_direct=$hardcode_direct
5888 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5889 # resulting binary.
5890 hardcode_minus_L=$hardcode_minus_L
5892 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5893 # the resulting binary.
5894 hardcode_shlibpath_var=$hardcode_shlibpath_var
5896 # Variables whose values should be saved in libtool wrapper scripts and
5897 # restored at relink time.
5898 variables_saved_for_relink="$variables_saved_for_relink"
5900 # Whether libtool must link a program against all its dependency libraries.
5901 link_all_deplibs=$link_all_deplibs
5903 # Compile-time system search path for libraries
5904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5906 # Run-time system search path for libraries
5907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5909 # Fix the shell variable \$srcfile for the compiler.
5910 fix_srcfile_path="$fix_srcfile_path"
5912 # Set to yes if exported symbols are required.
5913 always_export_symbols=$always_export_symbols
5915 # The commands to list exported symbols.
5916 export_symbols_cmds=$lt_export_symbols_cmds
5918 # The commands to extract the exported symbol list from a shared archive.
5919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5921 # Symbols that should not be listed in the preloaded symbols.
5922 exclude_expsyms=$lt_exclude_expsyms
5924 # Symbols that must always be exported.
5925 include_expsyms=$lt_include_expsyms
5927 # ### END LIBTOOL CONFIG
5929 __EOF__
5931 case $host_os in
5932 aix3*)
5933 cat <<\EOF >> "${ofile}T"
5935 # AIX sometimes has problems with the GCC collect2 program. For some
5936 # reason, if we set the COLLECT_NAMES environment variable, the problems
5937 # vanish in a puff of smoke.
5938 if test "X${COLLECT_NAMES+set}" != Xset; then
5939 COLLECT_NAMES=
5940 export COLLECT_NAMES
5944 esac
5946 case $host_os in
5947 cygwin* | mingw* | pw32* | os2*)
5948 cat <<'EOF' >> "${ofile}T"
5949 # This is a source program that is used to create dlls on Windows
5950 # Don't remove nor modify the starting and closing comments
5951 # /* ltdll.c starts here */
5952 # #define WIN32_LEAN_AND_MEAN
5953 # #include <windows.h>
5954 # #undef WIN32_LEAN_AND_MEAN
5955 # #include <stdio.h>
5957 # #ifndef __CYGWIN__
5958 # # ifdef __CYGWIN32__
5959 # # define __CYGWIN__ __CYGWIN32__
5960 # # endif
5961 # #endif
5963 # #ifdef __cplusplus
5964 # extern "C" {
5965 # #endif
5966 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5967 # #ifdef __cplusplus
5969 # #endif
5971 # #ifdef __CYGWIN__
5972 # #include <cygwin/cygwin_dll.h>
5973 # DECLARE_CYGWIN_DLL( DllMain );
5974 # #endif
5975 # HINSTANCE __hDllInstance_base;
5977 # BOOL APIENTRY
5978 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5980 # __hDllInstance_base = hInst;
5981 # return TRUE;
5983 # /* ltdll.c ends here */
5984 # This is a source program that is used to create import libraries
5985 # on Windows for dlls which lack them. Don't remove nor modify the
5986 # starting and closing comments
5987 # /* impgen.c starts here */
5988 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5990 # This file is part of GNU libtool.
5992 # This program is free software; you can redistribute it and/or modify
5993 # it under the terms of the GNU General Public License as published by
5994 # the Free Software Foundation; either version 2 of the License, or
5995 # (at your option) any later version.
5997 # This program is distributed in the hope that it will be useful,
5998 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5999 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6000 # GNU General Public License for more details.
6002 # You should have received a copy of the GNU General Public License
6003 # along with this program; if not, write to the Free Software
6004 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6005 # */
6007 # #include <stdio.h> /* for printf() */
6008 # #include <unistd.h> /* for open(), lseek(), read() */
6009 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6010 # #include <string.h> /* for strdup() */
6012 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6013 # #ifndef O_BINARY
6014 # #define O_BINARY 0
6015 # #endif
6017 # static unsigned int
6018 # pe_get16 (fd, offset)
6019 # int fd;
6020 # int offset;
6022 # unsigned char b[2];
6023 # lseek (fd, offset, SEEK_SET);
6024 # read (fd, b, 2);
6025 # return b[0] + (b[1]<<8);
6028 # static unsigned int
6029 # pe_get32 (fd, offset)
6030 # int fd;
6031 # int offset;
6033 # unsigned char b[4];
6034 # lseek (fd, offset, SEEK_SET);
6035 # read (fd, b, 4);
6036 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6039 # static unsigned int
6040 # pe_as32 (ptr)
6041 # void *ptr;
6043 # unsigned char *b = ptr;
6044 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6047 # int
6048 # main (argc, argv)
6049 # int argc;
6050 # char *argv[];
6052 # int dll;
6053 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6054 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6055 # unsigned long name_rvas, nexp;
6056 # unsigned char *expdata, *erva;
6057 # char *filename, *dll_name;
6059 # filename = argv[1];
6061 # dll = open(filename, O_RDONLY|O_BINARY);
6062 # if (dll < 1)
6063 # return 1;
6065 # dll_name = filename;
6067 # for (i=0; filename[i]; i++)
6068 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6069 # dll_name = filename + i +1;
6071 # pe_header_offset = pe_get32 (dll, 0x3c);
6072 # opthdr_ofs = pe_header_offset + 4 + 20;
6073 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6075 # if (num_entries < 1) /* no exports */
6076 # return 1;
6078 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6079 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6080 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6081 # secptr = (pe_header_offset + 4 + 20 +
6082 # pe_get16 (dll, pe_header_offset + 4 + 16));
6084 # expptr = 0;
6085 # for (i = 0; i < nsections; i++)
6087 # char sname[8];
6088 # unsigned long secptr1 = secptr + 40 * i;
6089 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6090 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6091 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6092 # lseek(dll, secptr1, SEEK_SET);
6093 # read(dll, sname, 8);
6094 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6096 # expptr = fptr + (export_rva - vaddr);
6097 # if (export_rva + export_size > vaddr + vsize)
6098 # export_size = vsize - (export_rva - vaddr);
6099 # break;
6103 # expdata = (unsigned char*)malloc(export_size);
6104 # lseek (dll, expptr, SEEK_SET);
6105 # read (dll, expdata, export_size);
6106 # erva = expdata - export_rva;
6108 # nexp = pe_as32 (expdata+24);
6109 # name_rvas = pe_as32 (expdata+32);
6111 # printf ("EXPORTS\n");
6112 # for (i = 0; i<nexp; i++)
6114 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6115 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6118 # return 0;
6120 # /* impgen.c ends here */
6124 esac
6126 # We use sed instead of cat because bash on DJGPP gets confused if
6127 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6128 # text mode, it properly converts lines to CR/LF. This bash problem
6129 # is reportedly fixed, but why not run on old versions too?
6130 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6132 mv -f "${ofile}T" "$ofile" || \
6133 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6134 chmod +x "$ofile"
6137 # This can be used to rebuild libtool when needed
6138 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6140 # Always use our own libtool.
6141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6143 # Prevent multiple expansion
6145 for ac_header in langinfo.h
6147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 echo "$as_me:6148: checking for $ac_header" >&5
6149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line 6154 "configure"
6155 #include "confdefs.h"
6156 #include <$ac_header>
6157 _ACEOF
6158 if { (eval echo "$as_me:6158: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160 ac_status=$?
6161 egrep -v '^ *\+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:6164: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev/null; then
6166 if test -s conftest.err; then
6167 ac_cpp_err=$ac_c_preproc_warn_flag
6168 else
6169 ac_cpp_err=
6171 else
6172 ac_cpp_err=yes
6174 if test -z "$ac_cpp_err"; then
6175 eval "$as_ac_Header=yes"
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 eval "$as_ac_Header=no"
6181 rm -f conftest.err conftest.$ac_ext
6183 echo "$as_me:6183: result: `eval echo '${'$as_ac_Header'}'`" >&5
6184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6186 cat >>confdefs.h <<EOF
6187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6191 done
6193 for ac_func in nl_langinfo
6195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6196 echo "$as_me:6196: checking for $ac_func" >&5
6197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_var+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 cat >conftest.$ac_ext <<_ACEOF
6202 #line 6202 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func (); below. */
6206 #include <assert.h>
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 #ifdef __cplusplus
6209 extern "C"
6210 #endif
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6213 char $ac_func ();
6214 char (*f) ();
6217 main ()
6219 /* The GNU C library defines this for functions which it implements
6220 to always fail with ENOSYS. Some functions are actually named
6221 something starting with __ and the normal name is an alias. */
6222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6223 choke me
6224 #else
6225 f = $ac_func;
6226 #endif
6229 return 0;
6231 _ACEOF
6232 rm -f conftest.$ac_objext conftest$ac_exeext
6233 if { (eval echo "$as_me:6233: \"$ac_link\"") >&5
6234 (eval $ac_link) 2>&5
6235 ac_status=$?
6236 echo "$as_me:6236: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -s conftest$ac_exeext'
6239 { (eval echo "$as_me:6239: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:6242: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6244 eval "$as_ac_var=yes"
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6248 eval "$as_ac_var=no"
6250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6252 echo "$as_me:6252: result: `eval echo '${'$as_ac_var'}'`" >&5
6253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6254 if test `eval echo '${'$as_ac_var'}'` = yes; then
6255 cat >>confdefs.h <<EOF
6256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6260 done
6262 echo "$as_me:6262: checking for nl_langinfo and CODESET" >&5
6263 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6264 if test "${jm_cv_langinfo_codeset+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line 6268 "configure"
6269 #include "confdefs.h"
6270 #include <langinfo.h>
6272 main ()
6274 char* cs = nl_langinfo(CODESET);
6276 return 0;
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:6280: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>&5
6282 ac_status=$?
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:6286: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:6289: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 jm_cv_langinfo_codeset=yes
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 jm_cv_langinfo_codeset=no
6297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6300 echo "$as_me:6300: result: $jm_cv_langinfo_codeset" >&5
6301 echo "${ECHO_T}$jm_cv_langinfo_codeset" >&6
6302 if test $jm_cv_langinfo_codeset = yes; then
6304 cat >>confdefs.h <<\EOF
6305 #define HAVE_LANGINFO_CODESET 1
6310 echo "$as_me:6310: checking whether we are using the GNU C Library 2.1 or newer" >&5
6311 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6312 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line 6316 "configure"
6317 #include "confdefs.h"
6319 #include <features.h>
6320 #ifdef __GNU_LIBRARY__
6321 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6322 Lucky GNU user
6323 #endif
6324 #endif
6326 _ACEOF
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 egrep "Lucky GNU user" >/dev/null 2>&1; then
6329 ac_cv_gnu_library_2_1=yes
6330 else
6331 ac_cv_gnu_library_2_1=no
6333 rm -f conftest*
6336 echo "$as_me:6336: result: $ac_cv_gnu_library_2_1" >&5
6337 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6339 GLIBC21="$ac_cv_gnu_library_2_1"
6341 for ac_header in stddef.h stdlib.h string.h
6343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6344 echo "$as_me:6344: checking for $ac_header" >&5
6345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line 6350 "configure"
6351 #include "confdefs.h"
6352 #include <$ac_header>
6353 _ACEOF
6354 if { (eval echo "$as_me:6354: \"$ac_cpp conftest.$ac_ext\"") >&5
6355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6356 ac_status=$?
6357 egrep -v '^ *\+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:6360: \$? = $ac_status" >&5
6361 (exit $ac_status); } >/dev/null; then
6362 if test -s conftest.err; then
6363 ac_cpp_err=$ac_c_preproc_warn_flag
6364 else
6365 ac_cpp_err=
6367 else
6368 ac_cpp_err=yes
6370 if test -z "$ac_cpp_err"; then
6371 eval "$as_ac_Header=yes"
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 eval "$as_ac_Header=no"
6377 rm -f conftest.err conftest.$ac_ext
6379 echo "$as_me:6379: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6382 cat >>confdefs.h <<EOF
6383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6387 done
6389 for ac_func in setlocale
6391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6392 echo "$as_me:6392: checking for $ac_func" >&5
6393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_var+set}\" = set"; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397 cat >conftest.$ac_ext <<_ACEOF
6398 #line 6398 "configure"
6399 #include "confdefs.h"
6400 /* System header to define __stub macros and hopefully few prototypes,
6401 which can conflict with char $ac_func (); below. */
6402 #include <assert.h>
6403 /* Override any gcc2 internal prototype to avoid an error. */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6409 char $ac_func ();
6410 char (*f) ();
6413 main ()
6415 /* The GNU C library defines this for functions which it implements
6416 to always fail with ENOSYS. Some functions are actually named
6417 something starting with __ and the normal name is an alias. */
6418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6419 choke me
6420 #else
6421 f = $ac_func;
6422 #endif
6425 return 0;
6427 _ACEOF
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (eval echo "$as_me:6429: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6431 ac_status=$?
6432 echo "$as_me:6432: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -s conftest$ac_exeext'
6435 { (eval echo "$as_me:6435: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:6438: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 eval "$as_ac_var=yes"
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 cat conftest.$ac_ext >&5
6444 eval "$as_ac_var=no"
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6448 echo "$as_me:6448: result: `eval echo '${'$as_ac_var'}'`" >&5
6449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6450 if test `eval echo '${'$as_ac_var'}'` = yes; then
6451 cat >>confdefs.h <<EOF
6452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6456 done
6458 ac_config_files="$ac_config_files Makefile lib/Makefile"
6459 cat >confcache <<\_ACEOF
6460 # This file is a shell script that caches the results of configure
6461 # tests run on this system so they can be shared between configure
6462 # scripts and configure runs, see configure's option --config-cache.
6463 # It is not useful on other systems. If it contains results you don't
6464 # want to keep, you may remove or edit it.
6466 # config.status only pays attention to the cache file if you give it
6467 # the --recheck option to rerun configure.
6469 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6471 # following values.
6473 _ACEOF
6475 # The following way of writing the cache mishandles newlines in values,
6476 # but we know of no workaround that is simple, portable, and efficient.
6477 # So, don't put newlines in cache variables' values.
6478 # Ultrix sh set writes to stderr and can't be redirected directly,
6479 # and sets the high bit in the cache file unless we assign to the vars.
6481 (set) 2>&1 |
6482 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6483 *ac_space=\ *)
6484 # `set' does not quote correctly, so add quotes (double-quote
6485 # substitution turns \\\\ into \\, and sed turns \\ into \).
6486 sed -n \
6487 "s/'/'\\\\''/g;
6488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6491 # `set' quotes correctly as required by POSIX, so do not add quotes.
6492 sed -n \
6493 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6495 esac;
6497 sed '
6498 t clear
6499 : clear
6500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6501 t end
6502 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6503 : end' >>confcache
6504 if cmp -s $cache_file confcache; then :; else
6505 if test -w $cache_file; then
6506 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6507 cat confcache >$cache_file
6508 else
6509 echo "not updating unwritable cache $cache_file"
6512 rm -f confcache
6514 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6515 # Let make expand exec_prefix.
6516 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6518 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6519 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6520 # trailing colons and then remove the whole line if VPATH becomes empty
6521 # (actually we leave an empty line to preserve line numbers).
6522 if test "x$srcdir" = x.; then
6523 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6524 s/:*\$(srcdir):*/:/;
6525 s/:*\${srcdir}:*/:/;
6526 s/:*@srcdir@:*/:/;
6527 s/^\([^=]*=[ ]*\):*/\1/;
6528 s/:*$//;
6529 s/^[^=]*=[ ]*$//;
6533 DEFS=-DHAVE_CONFIG_H
6535 : ${CONFIG_STATUS=./config.status}
6536 ac_clean_files_save=$ac_clean_files
6537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6538 { echo "$as_me:6538: creating $CONFIG_STATUS" >&5
6539 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6540 cat >$CONFIG_STATUS <<_ACEOF
6541 #! $SHELL
6542 # Generated automatically by configure.
6543 # Run this file to recreate the current configuration.
6544 # Compiler output produced by configure, useful for debugging
6545 # configure, is in config.log if it exists.
6547 debug=false
6548 SHELL=\${CONFIG_SHELL-$SHELL}
6549 ac_cs_invocation="\$0 \$@"
6551 _ACEOF
6553 cat >>$CONFIG_STATUS <<\_ACEOF
6554 # Be Bourne compatible
6555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6556 emulate sh
6557 NULLCMD=:
6558 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6559 set -o posix
6562 # Name of the executable.
6563 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6565 if expr a : '\(a\)' >/dev/null 2>&1; then
6566 as_expr=expr
6567 else
6568 as_expr=false
6571 rm -f conf$$ conf$$.exe conf$$.file
6572 echo >conf$$.file
6573 if ln -s conf$$.file conf$$ 2>/dev/null; then
6574 # We could just check for DJGPP; but this test a) works b) is more generic
6575 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6576 if test -f conf$$.exe; then
6577 # Don't use ln at all; we don't have any links
6578 as_ln_s='cp -p'
6579 else
6580 as_ln_s='ln -s'
6582 elif ln conf$$.file conf$$ 2>/dev/null; then
6583 as_ln_s=ln
6584 else
6585 as_ln_s='cp -p'
6587 rm -f conf$$ conf$$.exe conf$$.file
6589 as_executable_p="test -f"
6591 # Support unset when possible.
6592 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6593 as_unset=unset
6594 else
6595 as_unset=false
6598 # NLS nuisances.
6599 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6600 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6601 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6602 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6603 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6604 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6605 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6606 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6608 # IFS
6609 # We need space, tab and new line, in precisely that order.
6610 as_nl='
6612 IFS=" $as_nl"
6614 # CDPATH.
6615 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6617 exec 6>&1
6619 _ACEOF
6621 # Files that config.status was made for.
6622 if test -n "$ac_config_files"; then
6623 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6626 if test -n "$ac_config_headers"; then
6627 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6630 if test -n "$ac_config_links"; then
6631 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6634 if test -n "$ac_config_commands"; then
6635 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6638 cat >>$CONFIG_STATUS <<\EOF
6640 ac_cs_usage="\
6641 \`$as_me' instantiates files from templates according to the
6642 current configuration.
6644 Usage: $0 [OPTIONS] [FILE]...
6646 -h, --help print this help, then exit
6647 -V, --version print version number, then exit
6648 -d, --debug don't remove temporary files
6649 --recheck update $as_me by reconfiguring in the same conditions
6650 --file=FILE[:TEMPLATE]
6651 instantiate the configuration file FILE
6652 --header=FILE[:TEMPLATE]
6653 instantiate the configuration header FILE
6655 Configuration files:
6656 $config_files
6658 Configuration headers:
6659 $config_headers
6661 Report bugs to <bug-autoconf@gnu.org>."
6664 cat >>$CONFIG_STATUS <<EOF
6665 ac_cs_version="\\
6666 config.status
6667 configured by $0, generated by GNU Autoconf 2.52,
6668 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6670 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6671 Free Software Foundation, Inc.
6672 This config.status script is free software; the Free Software Foundation
6673 gives unlimited permission to copy, distribute and modify it."
6674 srcdir=$srcdir
6675 INSTALL="$INSTALL"
6678 cat >>$CONFIG_STATUS <<\EOF
6679 # If no file are specified by the user, then we need to provide default
6680 # value. By we need to know if files were specified by the user.
6681 ac_need_defaults=:
6682 while test $# != 0
6684 case $1 in
6685 --*=*)
6686 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6687 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6688 shift
6689 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6690 shift
6692 -*);;
6693 *) # This is not an option, so the user has probably given explicit
6694 # arguments.
6695 ac_need_defaults=false;;
6696 esac
6698 case $1 in
6699 # Handling of the options.
6701 cat >>$CONFIG_STATUS <<EOF
6702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6703 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6704 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6706 cat >>$CONFIG_STATUS <<\EOF
6707 --version | --vers* | -V )
6708 echo "$ac_cs_version"; exit 0 ;;
6709 --he | --h)
6710 # Conflict between --help and --header
6711 { { echo "$as_me:6711: error: ambiguous option: $1
6712 Try \`$0 --help' for more information." >&5
6713 echo "$as_me: error: ambiguous option: $1
6714 Try \`$0 --help' for more information." >&2;}
6715 { (exit 1); exit 1; }; };;
6716 --help | --hel | -h )
6717 echo "$ac_cs_usage"; exit 0 ;;
6718 --debug | --d* | -d )
6719 debug=: ;;
6720 --file | --fil | --fi | --f )
6721 shift
6722 CONFIG_FILES="$CONFIG_FILES $1"
6723 ac_need_defaults=false;;
6724 --header | --heade | --head | --hea )
6725 shift
6726 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6727 ac_need_defaults=false;;
6729 # This is an error.
6730 -*) { { echo "$as_me:6730: error: unrecognized option: $1
6731 Try \`$0 --help' for more information." >&5
6732 echo "$as_me: error: unrecognized option: $1
6733 Try \`$0 --help' for more information." >&2;}
6734 { (exit 1); exit 1; }; } ;;
6736 *) ac_config_targets="$ac_config_targets $1" ;;
6738 esac
6739 shift
6740 done
6742 exec 5>>config.log
6743 cat >&5 << _ACEOF
6745 ## ----------------------- ##
6746 ## Running config.status. ##
6747 ## ----------------------- ##
6749 This file was extended by $as_me 2.52, executed with
6750 CONFIG_FILES = $CONFIG_FILES
6751 CONFIG_HEADERS = $CONFIG_HEADERS
6752 CONFIG_LINKS = $CONFIG_LINKS
6753 CONFIG_COMMANDS = $CONFIG_COMMANDS
6754 > $ac_cs_invocation
6755 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6757 _ACEOF
6760 cat >>$CONFIG_STATUS <<\EOF
6761 for ac_config_target in $ac_config_targets
6763 case "$ac_config_target" in
6764 # Handling of arguments.
6765 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6766 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6767 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6768 *) { { echo "$as_me:6768: error: invalid argument: $ac_config_target" >&5
6769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6770 { (exit 1); exit 1; }; };;
6771 esac
6772 done
6774 # If the user did not use the arguments to specify the items to instantiate,
6775 # then the envvar interface is used. Set only those that are not.
6776 # We use the long form for the default assignment because of an extremely
6777 # bizarre bug on SunOS 4.1.3.
6778 if $ac_need_defaults; then
6779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6783 # Create a temporary directory, and hook for its removal unless debugging.
6784 $debug ||
6786 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6787 trap '{ (exit 1); exit 1; }' 1 2 13 15
6790 # Create a (secure) tmp directory for tmp files.
6791 : ${TMPDIR=/tmp}
6793 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6794 test -n "$tmp" && test -d "$tmp"
6795 } ||
6797 tmp=$TMPDIR/cs$$-$RANDOM
6798 (umask 077 && mkdir $tmp)
6799 } ||
6801 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6802 { (exit 1); exit 1; }
6807 cat >>$CONFIG_STATUS <<EOF
6810 # CONFIG_FILES section.
6813 # No need to generate the scripts if there are no CONFIG_FILES.
6814 # This happens for instance when ./config.status config.h
6815 if test -n "\$CONFIG_FILES"; then
6816 # Protect against being on the right side of a sed subst in config.status.
6817 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6818 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6819 s,@SHELL@,$SHELL,;t t
6820 s,@exec_prefix@,$exec_prefix,;t t
6821 s,@prefix@,$prefix,;t t
6822 s,@program_transform_name@,$program_transform_name,;t t
6823 s,@bindir@,$bindir,;t t
6824 s,@sbindir@,$sbindir,;t t
6825 s,@libexecdir@,$libexecdir,;t t
6826 s,@datadir@,$datadir,;t t
6827 s,@sysconfdir@,$sysconfdir,;t t
6828 s,@sharedstatedir@,$sharedstatedir,;t t
6829 s,@localstatedir@,$localstatedir,;t t
6830 s,@libdir@,$libdir,;t t
6831 s,@includedir@,$includedir,;t t
6832 s,@oldincludedir@,$oldincludedir,;t t
6833 s,@infodir@,$infodir,;t t
6834 s,@mandir@,$mandir,;t t
6835 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6836 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6837 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6838 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6839 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6840 s,@build_alias@,$build_alias,;t t
6841 s,@host_alias@,$host_alias,;t t
6842 s,@target_alias@,$target_alias,;t t
6843 s,@ECHO_C@,$ECHO_C,;t t
6844 s,@ECHO_N@,$ECHO_N,;t t
6845 s,@ECHO_T@,$ECHO_T,;t t
6846 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6847 s,@DEFS@,$DEFS,;t t
6848 s,@LIBS@,$LIBS,;t t
6849 s,@SET_MAKE@,$SET_MAKE,;t t
6850 s,@PACKAGE@,$PACKAGE,;t t
6851 s,@VERSION@,$VERSION,;t t
6852 s,@CC@,$CC,;t t
6853 s,@CFLAGS@,$CFLAGS,;t t
6854 s,@LDFLAGS@,$LDFLAGS,;t t
6855 s,@CPPFLAGS@,$CPPFLAGS,;t t
6856 s,@ac_ct_CC@,$ac_ct_CC,;t t
6857 s,@EXEEXT@,$EXEEXT,;t t
6858 s,@OBJEXT@,$OBJEXT,;t t
6859 s,@CPP@,$CPP,;t t
6860 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6861 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6862 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6863 s,@build@,$build,;t t
6864 s,@build_cpu@,$build_cpu,;t t
6865 s,@build_vendor@,$build_vendor,;t t
6866 s,@build_os@,$build_os,;t t
6867 s,@host@,$host,;t t
6868 s,@host_cpu@,$host_cpu,;t t
6869 s,@host_vendor@,$host_vendor,;t t
6870 s,@host_os@,$host_os,;t t
6871 s,@LN_S@,$LN_S,;t t
6872 s,@ECHO@,$ECHO,;t t
6873 s,@RANLIB@,$RANLIB,;t t
6874 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6875 s,@STRIP@,$STRIP,;t t
6876 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6877 s,@LIBTOOL@,$LIBTOOL,;t t
6878 s,@GLIBC21@,$GLIBC21,;t t
6879 CEOF
6883 cat >>$CONFIG_STATUS <<\EOF
6884 # Split the substitutions into bite-sized pieces for seds with
6885 # small command number limits, like on Digital OSF/1 and HP-UX.
6886 ac_max_sed_lines=48
6887 ac_sed_frag=1 # Number of current file.
6888 ac_beg=1 # First line for current file.
6889 ac_end=$ac_max_sed_lines # Line after last line for current file.
6890 ac_more_lines=:
6891 ac_sed_cmds=
6892 while $ac_more_lines; do
6893 if test $ac_beg -gt 1; then
6894 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6895 else
6896 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6898 if test ! -s $tmp/subs.frag; then
6899 ac_more_lines=false
6900 else
6901 # The purpose of the label and of the branching condition is to
6902 # speed up the sed processing (if there are no `@' at all, there
6903 # is no need to browse any of the substitutions).
6904 # These are the two extra sed commands mentioned above.
6905 (echo ':t
6906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6907 if test -z "$ac_sed_cmds"; then
6908 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6909 else
6910 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6912 ac_sed_frag=`expr $ac_sed_frag + 1`
6913 ac_beg=$ac_end
6914 ac_end=`expr $ac_end + $ac_max_sed_lines`
6916 done
6917 if test -z "$ac_sed_cmds"; then
6918 ac_sed_cmds=cat
6920 fi # test -n "$CONFIG_FILES"
6923 cat >>$CONFIG_STATUS <<\EOF
6924 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6926 case $ac_file in
6927 - | *:- | *:-:* ) # input from stdin
6928 cat >$tmp/stdin
6929 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6931 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6933 * ) ac_file_in=$ac_file.in ;;
6934 esac
6936 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6937 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6938 X"$ac_file" : 'X\(//\)[^/]' \| \
6939 X"$ac_file" : 'X\(//\)$' \| \
6940 X"$ac_file" : 'X\(/\)' \| \
6941 . : '\(.\)' 2>/dev/null ||
6942 echo X"$ac_file" |
6943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6945 /^X\(\/\/\)$/{ s//\1/; q; }
6946 /^X\(\/\).*/{ s//\1/; q; }
6947 s/.*/./; q'`
6948 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6949 { case "$ac_dir" in
6950 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6951 *) as_incr_dir=.;;
6952 esac
6953 as_dummy="$ac_dir"
6954 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6955 case $as_mkdir_dir in
6956 # Skip DOS drivespec
6957 ?:) as_incr_dir=$as_mkdir_dir ;;
6959 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6960 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6962 esac
6963 done; }
6965 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6966 # A "../" for each directory in $ac_dir_suffix.
6967 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6968 else
6969 ac_dir_suffix= ac_dots=
6972 case $srcdir in
6973 .) ac_srcdir=.
6974 if test -z "$ac_dots"; then
6975 ac_top_srcdir=.
6976 else
6977 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6978 fi ;;
6979 [\\/]* | ?:[\\/]* )
6980 ac_srcdir=$srcdir$ac_dir_suffix;
6981 ac_top_srcdir=$srcdir ;;
6982 *) # Relative path.
6983 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6984 ac_top_srcdir=$ac_dots$srcdir ;;
6985 esac
6987 case $INSTALL in
6988 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6989 *) ac_INSTALL=$ac_dots$INSTALL ;;
6990 esac
6992 if test x"$ac_file" != x-; then
6993 { echo "$as_me:6993: creating $ac_file" >&5
6994 echo "$as_me: creating $ac_file" >&6;}
6995 rm -f "$ac_file"
6997 # Let's still pretend it is `configure' which instantiates (i.e., don't
6998 # use $as_me), people would be surprised to read:
6999 # /* config.h. Generated automatically by config.status. */
7000 configure_input="Generated automatically from `echo $ac_file_in |
7001 sed 's,.*/,,'` by configure."
7003 # First look for the input files in the build tree, otherwise in the
7004 # src tree.
7005 ac_file_inputs=`IFS=:
7006 for f in $ac_file_in; do
7007 case $f in
7008 -) echo $tmp/stdin ;;
7009 [\\/$]*)
7010 # Absolute (can't be DOS-style, as IFS=:)
7011 test -f "$f" || { { echo "$as_me:7011: error: cannot find input file: $f" >&5
7012 echo "$as_me: error: cannot find input file: $f" >&2;}
7013 { (exit 1); exit 1; }; }
7014 echo $f;;
7015 *) # Relative
7016 if test -f "$f"; then
7017 # Build tree
7018 echo $f
7019 elif test -f "$srcdir/$f"; then
7020 # Source tree
7021 echo $srcdir/$f
7022 else
7023 # /dev/null tree
7024 { { echo "$as_me:7024: error: cannot find input file: $f" >&5
7025 echo "$as_me: error: cannot find input file: $f" >&2;}
7026 { (exit 1); exit 1; }; }
7027 fi;;
7028 esac
7029 done` || { (exit 1); exit 1; }
7031 cat >>$CONFIG_STATUS <<EOF
7032 sed "$ac_vpsub
7033 $extrasub
7035 cat >>$CONFIG_STATUS <<\EOF
7037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7038 s,@configure_input@,$configure_input,;t t
7039 s,@srcdir@,$ac_srcdir,;t t
7040 s,@top_srcdir@,$ac_top_srcdir,;t t
7041 s,@INSTALL@,$ac_INSTALL,;t t
7042 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7043 rm -f $tmp/stdin
7044 if test x"$ac_file" != x-; then
7045 mv $tmp/out $ac_file
7046 else
7047 cat $tmp/out
7048 rm -f $tmp/out
7051 done
7053 cat >>$CONFIG_STATUS <<\EOF
7056 # CONFIG_HEADER section.
7059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7062 # ac_d sets the value in "#define NAME VALUE" lines.
7063 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7064 ac_dB='[ ].*$,\1#\2'
7065 ac_dC=' '
7066 ac_dD=',;t'
7067 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7068 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7069 ac_uB='$,\1#\2define\3'
7070 ac_uC=' '
7071 ac_uD=',;t'
7073 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7075 case $ac_file in
7076 - | *:- | *:-:* ) # input from stdin
7077 cat >$tmp/stdin
7078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7082 * ) ac_file_in=$ac_file.in ;;
7083 esac
7085 test x"$ac_file" != x- && { echo "$as_me:7085: creating $ac_file" >&5
7086 echo "$as_me: creating $ac_file" >&6;}
7088 # First look for the input files in the build tree, otherwise in the
7089 # src tree.
7090 ac_file_inputs=`IFS=:
7091 for f in $ac_file_in; do
7092 case $f in
7093 -) echo $tmp/stdin ;;
7094 [\\/$]*)
7095 # Absolute (can't be DOS-style, as IFS=:)
7096 test -f "$f" || { { echo "$as_me:7096: error: cannot find input file: $f" >&5
7097 echo "$as_me: error: cannot find input file: $f" >&2;}
7098 { (exit 1); exit 1; }; }
7099 echo $f;;
7100 *) # Relative
7101 if test -f "$f"; then
7102 # Build tree
7103 echo $f
7104 elif test -f "$srcdir/$f"; then
7105 # Source tree
7106 echo $srcdir/$f
7107 else
7108 # /dev/null tree
7109 { { echo "$as_me:7109: error: cannot find input file: $f" >&5
7110 echo "$as_me: error: cannot find input file: $f" >&2;}
7111 { (exit 1); exit 1; }; }
7112 fi;;
7113 esac
7114 done` || { (exit 1); exit 1; }
7115 # Remove the trailing spaces.
7116 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7120 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7121 # `conftest.undefs', that substitutes the proper values into
7122 # config.h.in to produce config.h. The first handles `#define'
7123 # templates, and the second `#undef' templates.
7124 # And first: Protect against being on the right side of a sed subst in
7125 # config.status. Protect against being in an unquoted here document
7126 # in config.status.
7127 rm -f conftest.defines conftest.undefs
7128 # Using a here document instead of a string reduces the quoting nightmare.
7129 # Putting comments in sed scripts is not portable.
7131 # `end' is used to avoid that the second main sed command (meant for
7132 # 0-ary CPP macros) applies to n-ary macro definitions.
7133 # See the Autoconf documentation for `clear'.
7134 cat >confdef2sed.sed <<\EOF
7135 s/[\\&,]/\\&/g
7136 s,[\\$`],\\&,g
7137 t clear
7138 : clear
7139 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7140 t end
7141 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7142 : end
7144 # If some macros were called several times there might be several times
7145 # the same #defines, which is useless. Nevertheless, we may not want to
7146 # sort them, since we want the *last* AC-DEFINE to be honored.
7147 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7148 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7149 rm -f confdef2sed.sed
7151 # This sed command replaces #undef with comments. This is necessary, for
7152 # example, in the case of _POSIX_SOURCE, which is predefined and required
7153 # on some systems where configure will not decide to define it.
7154 cat >>conftest.undefs <<\EOF
7155 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7158 # Break up conftest.defines because some shells have a limit on the size
7159 # of here documents, and old seds have small limits too (100 cmds).
7160 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7161 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7162 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7163 echo ' :' >>$CONFIG_STATUS
7164 rm -f conftest.tail
7165 while grep . conftest.defines >/dev/null
7167 # Write a limited-size here document to $tmp/defines.sed.
7168 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7169 # Speed up: don't consider the non `#define' lines.
7170 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7171 # Work around the forget-to-reset-the-flag bug.
7172 echo 't clr' >>$CONFIG_STATUS
7173 echo ': clr' >>$CONFIG_STATUS
7174 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7175 echo 'CEOF
7176 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7177 rm -f $tmp/in
7178 mv $tmp/out $tmp/in
7179 ' >>$CONFIG_STATUS
7180 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7181 rm -f conftest.defines
7182 mv conftest.tail conftest.defines
7183 done
7184 rm -f conftest.defines
7185 echo ' fi # egrep' >>$CONFIG_STATUS
7186 echo >>$CONFIG_STATUS
7188 # Break up conftest.undefs because some shells have a limit on the size
7189 # of here documents, and old seds have small limits too (100 cmds).
7190 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7191 rm -f conftest.tail
7192 while grep . conftest.undefs >/dev/null
7194 # Write a limited-size here document to $tmp/undefs.sed.
7195 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7196 # Speed up: don't consider the non `#undef'
7197 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7198 # Work around the forget-to-reset-the-flag bug.
7199 echo 't clr' >>$CONFIG_STATUS
7200 echo ': clr' >>$CONFIG_STATUS
7201 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7202 echo 'CEOF
7203 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7204 rm -f $tmp/in
7205 mv $tmp/out $tmp/in
7206 ' >>$CONFIG_STATUS
7207 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7208 rm -f conftest.undefs
7209 mv conftest.tail conftest.undefs
7210 done
7211 rm -f conftest.undefs
7213 cat >>$CONFIG_STATUS <<\EOF
7214 # Let's still pretend it is `configure' which instantiates (i.e., don't
7215 # use $as_me), people would be surprised to read:
7216 # /* config.h. Generated automatically by config.status. */
7217 if test x"$ac_file" = x-; then
7218 echo "/* Generated automatically by configure. */" >$tmp/config.h
7219 else
7220 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7222 cat $tmp/in >>$tmp/config.h
7223 rm -f $tmp/in
7224 if test x"$ac_file" != x-; then
7225 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7226 { echo "$as_me:7226: $ac_file is unchanged" >&5
7227 echo "$as_me: $ac_file is unchanged" >&6;}
7228 else
7229 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7230 X"$ac_file" : 'X\(//\)[^/]' \| \
7231 X"$ac_file" : 'X\(//\)$' \| \
7232 X"$ac_file" : 'X\(/\)' \| \
7233 . : '\(.\)' 2>/dev/null ||
7234 echo X"$ac_file" |
7235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7237 /^X\(\/\/\)$/{ s//\1/; q; }
7238 /^X\(\/\).*/{ s//\1/; q; }
7239 s/.*/./; q'`
7240 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7241 { case "$ac_dir" in
7242 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7243 *) as_incr_dir=.;;
7244 esac
7245 as_dummy="$ac_dir"
7246 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7247 case $as_mkdir_dir in
7248 # Skip DOS drivespec
7249 ?:) as_incr_dir=$as_mkdir_dir ;;
7251 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7252 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7254 esac
7255 done; }
7258 rm -f $ac_file
7259 mv $tmp/config.h $ac_file
7261 else
7262 cat $tmp/config.h
7263 rm -f $tmp/config.h
7265 done
7268 cat >>$CONFIG_STATUS <<\EOF
7270 { (exit 0); exit 0; }
7272 chmod +x $CONFIG_STATUS
7273 ac_clean_files=$ac_clean_files_save
7275 # configure is writing to config.log, and then calls config.status.
7276 # config.status does its own redirection, appending to config.log.
7277 # Unfortunately, on DOS this fails, as config.log is still kept open
7278 # by configure, so config.status won't be able to write to it; its
7279 # output is simply discarded. So we exec the FD to /dev/null,
7280 # effectively closing config.log, so it can be properly (re)opened and
7281 # appended to by config.status. When coming back to configure, we
7282 # need to make the FD available again.
7283 if test "$no_create" != yes; then
7284 ac_cs_success=:
7285 exec 5>/dev/null
7286 $SHELL $CONFIG_STATUS || ac_cs_success=false
7287 exec 5>>config.log
7288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7289 # would make configure fail if this is the last instruction.
7290 $ac_cs_success || { (exit 1); exit 1; }