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`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
21 # Check that we are running under the correct shell.
22 SHELL=${CONFIG_SHELL-/bin/sh}
26 # Remove one level of quotation (which was required for Make).
27 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32 if test "X$1" = X--no-reexec; then
33 # Discard the --no-reexec flag, and continue.
35 elif test "X$1" = X--fallback-echo; then
36 # Avoid inline document here, it may be left over
38 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39 # Yippee, $echo works!
42 # Restart under the correct shell.
43 exec $SHELL "$0" --no-reexec ${1+"$@"}
46 if test "X$1" = X--fallback-echo; then
47 # used as fallback echo
55 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59 if test -z "$ECHO"; then
60 if test "X${echo_test_string+set}" != Xset; then
61 # find a string as large as possible, as long as the shell can cope with it
62 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65 echo_test_string="`eval $cmd`" &&
66 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
73 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75 test "X$echo_testing_string" = "X$echo_test_string"; then
78 # The Solaris, AIX, and Digital Unix default echo programs unquote
79 # backslashes. This makes it impossible to quote backslashes using
80 # echo "$something" | sed 's/\\/\\\\/g'
82 # So, first we look for a working echo in the user's PATH.
84 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85 for dir in $PATH /usr/ucb; do
86 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
96 if test "X$echo" = Xecho; then
97 # We didn't find a better echo, so look for alternatives.
98 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100 test "X$echo_testing_string" = "X$echo_test_string"; then
101 # This shell has a builtin print -r that does the trick.
103 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104 test "X$CONFIG_SHELL" != X/bin/ksh; then
105 # If we have ksh, try running configure again with it.
106 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107 export ORIGINAL_CONFIG_SHELL
108 CONFIG_SHELL=/bin/ksh
110 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116 test "X$echo_testing_string" = "X$echo_test_string"; then
119 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 SHELL="$CONFIG_SHELL"
127 echo="$CONFIG_SHELL $0 --fallback-echo"
128 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129 test "X$echo_testing_string" = 'X\t' &&
130 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131 test "X$echo_testing_string" = "X$echo_test_string"; then
132 echo="$CONFIG_SHELL $0 --fallback-echo"
134 # maybe with a smaller string...
137 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
145 if test "$prev" != 'sed 50q "$0"'; then
146 echo_test_string=`eval $prev`
147 export echo_test_string
148 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 # Oops. We lost completely, so just stick with echo.
159 # Copy echo and quote the copy suitably for passing to libtool from
160 # the Makefile, instead of quoting the original, which is used later.
162 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166 # Avoid depending upon Character Ranges.
167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170 as_cr_digits='0123456789'
171 as_cr_alnum=$as_cr_Letters$as_cr_digits
173 # Sed expression to map a string onto a valid variable name.
174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
176 # Sed expression to map a string onto a valid CPP name.
177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
179 # Be Bourne compatible
180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 # Name of the executable.
188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Support unset when possible.
217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
234 # We need space, tab and new line, in precisely that order.
240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix=/usr/local
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 ac_unique_file="src/a52dec.c"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
268 # include <sys/types.h>
271 # include <sys/stat.h>
282 # if !STDC_HEADERS && HAVE_MEMORY_H
288 # include <strings.h>
291 # include <inttypes.h>
301 # Initialize some variables set by options.
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name=s,x,x,
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
339 # Identity of this package.
349 # If the previous option needs an argument, assign it.
350 if test -n "$ac_prev"; then
351 eval "$ac_prev=\$ac_option"
356 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
358 # Accept the important Cygnus configure options, so we can diagnose typos.
362 -bindir | --bindir | --bindi | --bind | --bin | --bi)
364 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
367 -build | --build | --buil | --bui | --bu)
368 ac_prev=build_alias ;;
369 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
370 build_alias=$ac_optarg ;;
372 -cache-file | --cache-file | --cache-fil | --cache-fi \
373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
374 ac_prev=cache_file ;;
375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
377 cache_file=$ac_optarg ;;
380 cache_file=config.cache ;;
382 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
384 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
386 datadir=$ac_optarg ;;
388 -disable-* | --disable-*)
389 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393 { (exit 1); exit 1; }; }
394 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395 eval "enable_$ac_feature=no" ;;
397 -enable-* | --enable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
408 eval "enable_$ac_feature='$ac_optarg'" ;;
410 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
411 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
412 | --exec | --exe | --ex)
413 ac_prev=exec_prefix ;;
414 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
415 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
416 | --exec=* | --exe=* | --ex=*)
417 exec_prefix=$ac_optarg ;;
419 -gas | --gas | --ga | --g)
420 # Obsolete; use --with-gas.
423 -help | --help | --hel | --he | -h)
425 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
426 ac_init_help=recursive ;;
427 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
428 ac_init_help=short ;;
430 -host | --host | --hos | --ho)
431 ac_prev=host_alias ;;
432 -host=* | --host=* | --hos=* | --ho=*)
433 host_alias=$ac_optarg ;;
435 -includedir | --includedir | --includedi | --included | --include \
436 | --includ | --inclu | --incl | --inc)
437 ac_prev=includedir ;;
438 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
439 | --includ=* | --inclu=* | --incl=* | --inc=*)
440 includedir=$ac_optarg ;;
442 -infodir | --infodir | --infodi | --infod | --info | --inf)
444 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
445 infodir=$ac_optarg ;;
447 -libdir | --libdir | --libdi | --libd)
449 -libdir=* | --libdir=* | --libdi=* | --libd=*)
452 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
453 | --libexe | --libex | --libe)
454 ac_prev=libexecdir ;;
455 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
456 | --libexe=* | --libex=* | --libe=*)
457 libexecdir=$ac_optarg ;;
459 -localstatedir | --localstatedir | --localstatedi | --localstated \
460 | --localstate | --localstat | --localsta | --localst \
461 | --locals | --local | --loca | --loc | --lo)
462 ac_prev=localstatedir ;;
463 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
464 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
465 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
466 localstatedir=$ac_optarg ;;
468 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
470 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474 # Obsolete; use --without-fp.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
485 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
486 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
487 | --oldin | --oldi | --old | --ol | --o)
488 ac_prev=oldincludedir ;;
489 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
490 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
491 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
492 oldincludedir=$ac_optarg ;;
494 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
496 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
499 -program-prefix | --program-prefix | --program-prefi | --program-pref \
500 | --program-pre | --program-pr | --program-p)
501 ac_prev=program_prefix ;;
502 -program-prefix=* | --program-prefix=* | --program-prefi=* \
503 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
504 program_prefix=$ac_optarg ;;
506 -program-suffix | --program-suffix | --program-suffi | --program-suff \
507 | --program-suf | --program-su | --program-s)
508 ac_prev=program_suffix ;;
509 -program-suffix=* | --program-suffix=* | --program-suffi=* \
510 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
511 program_suffix=$ac_optarg ;;
513 -program-transform-name | --program-transform-name \
514 | --program-transform-nam | --program-transform-na \
515 | --program-transform-n | --program-transform- \
516 | --program-transform | --program-transfor \
517 | --program-transfo | --program-transf \
518 | --program-trans | --program-tran \
519 | --progr-tra | --program-tr | --program-t)
520 ac_prev=program_transform_name ;;
521 -program-transform-name=* | --program-transform-name=* \
522 | --program-transform-nam=* | --program-transform-na=* \
523 | --program-transform-n=* | --program-transform-=* \
524 | --program-transform=* | --program-transfor=* \
525 | --program-transfo=* | --program-transf=* \
526 | --program-trans=* | --program-tran=* \
527 | --progr-tra=* | --program-tr=* | --program-t=*)
528 program_transform_name=$ac_optarg ;;
530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
531 | -silent | --silent | --silen | --sile | --sil)
534 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
536 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
538 sbindir=$ac_optarg ;;
540 -sharedstatedir | --sharedstatedir | --sharedstatedi \
541 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
542 | --sharedst | --shareds | --shared | --share | --shar \
544 ac_prev=sharedstatedir ;;
545 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
546 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
547 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
549 sharedstatedir=$ac_optarg ;;
551 -site | --site | --sit)
553 -site=* | --site=* | --sit=*)
556 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
558 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
561 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
562 | --syscon | --sysco | --sysc | --sys | --sy)
563 ac_prev=sysconfdir ;;
564 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
565 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
566 sysconfdir=$ac_optarg ;;
568 -target | --target | --targe | --targ | --tar | --ta | --t)
569 ac_prev=target_alias ;;
570 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
571 target_alias=$ac_optarg ;;
573 -v | -verbose | --verbose | --verbos | --verbo | --verb)
576 -version | --version | --versio | --versi | --vers | -V)
580 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
581 # Reject names that are not valid shell variable names.
582 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583 { echo "$as_me: error: invalid package name: $ac_package" >&2
584 { (exit 1); exit 1; }; }
585 ac_package=`echo $ac_package| sed 's/-/_/g'`
587 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
590 eval "with_$ac_package='$ac_optarg'" ;;
592 -without-* | --without-*)
593 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package | sed 's/-/_/g'`
599 eval "with_$ac_package=no" ;;
602 # Obsolete; use --with-x.
605 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
606 | --x-incl | --x-inc | --x-in | --x-i)
607 ac_prev=x_includes ;;
608 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
609 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
610 x_includes=$ac_optarg ;;
612 -x-libraries | --x-libraries | --x-librarie | --x-librari \
613 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
614 ac_prev=x_libraries ;;
615 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
616 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
617 x_libraries=$ac_optarg ;;
619 -*) { echo "$as_me: error: unrecognized option: $ac_option
620 Try \`$0 --help' for more information." >&2
621 { (exit 1); exit 1; }; }
625 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
626 # Reject names that are not valid shell variable names.
627 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
628 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
629 { (exit 1); exit 1; }; }
630 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
631 eval "$ac_envvar='$ac_optarg'"
635 # FIXME: should be removed in autoconf 3.0.
636 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
637 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
638 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
639 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645 if test -n "$ac_prev"; then
646 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
647 { echo "$as_me: error: missing argument to $ac_option" >&2
648 { (exit 1); exit 1; }; }
651 # Be sure to have absolute paths.
652 for ac_var in exec_prefix prefix
654 eval ac_val=$`echo $ac_var`
656 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
657 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
658 { (exit 1); exit 1; }; };;
662 # Be sure to have absolute paths.
663 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
664 localstatedir libdir includedir oldincludedir infodir mandir
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* ) ;;
669 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # There might be people who depend on the old broken behavior: `$host'
675 # used to hold the argument of --host etc.
680 # FIXME: should be removed in autoconf 3.0.
681 if test "x$host_alias" != x; then
682 if test "x$build_alias" = x; then
683 cross_compiling=maybe
684 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
685 If a cross compiler is detected then cross compile mode will be used." >&2
686 elif test "x$build_alias" != "x$host_alias"; then
692 test -n "$host_alias" && ac_tool_prefix=$host_alias-
694 test "$silent" = yes && exec 6>/dev/null
696 # Find the source files, if location was not specified.
697 if test -z "$srcdir"; then
698 ac_srcdir_defaulted=yes
699 # Try the directory containing this script, then its parent.
701 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
702 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
704 if test ! -r $srcdir/$ac_unique_file; then
708 ac_srcdir_defaulted=no
710 if test ! -r $srcdir/$ac_unique_file; then
711 if test "$ac_srcdir_defaulted" = yes; then
712 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
713 { (exit 1); exit 1; }; }
715 { echo "$as_me: error: cannot find sources in $srcdir" >&2
716 { (exit 1); exit 1; }; }
719 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
720 ac_env_build_alias_set=${build_alias+set}
721 ac_env_build_alias_value=$build_alias
722 ac_cv_env_build_alias_set=${build_alias+set}
723 ac_cv_env_build_alias_value=$build_alias
724 ac_env_host_alias_set=${host_alias+set}
725 ac_env_host_alias_value=$host_alias
726 ac_cv_env_host_alias_set=${host_alias+set}
727 ac_cv_env_host_alias_value=$host_alias
728 ac_env_target_alias_set=${target_alias+set}
729 ac_env_target_alias_value=$target_alias
730 ac_cv_env_target_alias_set=${target_alias+set}
731 ac_cv_env_target_alias_value=$target_alias
732 ac_env_CC_set=${CC+set}
734 ac_cv_env_CC_set=${CC+set}
735 ac_cv_env_CC_value=$CC
736 ac_env_CFLAGS_set=${CFLAGS+set}
737 ac_env_CFLAGS_value=$CFLAGS
738 ac_cv_env_CFLAGS_set=${CFLAGS+set}
739 ac_cv_env_CFLAGS_value=$CFLAGS
740 ac_env_LDFLAGS_set=${LDFLAGS+set}
741 ac_env_LDFLAGS_value=$LDFLAGS
742 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
743 ac_cv_env_LDFLAGS_value=$LDFLAGS
744 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
745 ac_env_CPPFLAGS_value=$CPPFLAGS
746 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
747 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
748 ac_env_CPP_set=${CPP+set}
749 ac_env_CPP_value=$CPP
750 ac_cv_env_CPP_set=${CPP+set}
751 ac_cv_env_CPP_value=$CPP
754 # Report the --help message.
756 if test "$ac_init_help" = "long"; then
757 # Omit some internal or obsolete options to make the list less imposing.
758 # This message is too long to be a string in the A/UX 3.1 sh.
760 \`configure' configures this package to adapt to many kinds of systems.
762 Usage: $0 [OPTION]... [VAR=VALUE]...
764 To assign environment variables (e.g., CC, CFLAGS...), specify them as
765 VAR=VALUE. See below for descriptions of some of the useful variables.
767 Defaults for the options are specified in brackets.
770 -h, --help display this help and exit
771 --help=short display options specific to this package
772 --help=recursive display the short help of all the included packages
773 -V, --version display version information and exit
774 -q, --quiet, --silent do not print \`checking...' messages
775 --cache-file=FILE cache test results in FILE [disabled]
776 -C, --config-cache alias for \`--cache-file=config.cache'
777 -n, --no-create do not create output files
778 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 Installation directories:
784 --prefix=PREFIX install architecture-independent files in PREFIX
786 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
789 By default, \`make install' will install all the files in
790 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
791 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
792 for instance \`--prefix=\$HOME'.
794 For better control, use the options below.
796 Fine tuning of the installation directories:
797 --bindir=DIR user executables [EPREFIX/bin]
798 --sbindir=DIR system admin executables [EPREFIX/sbin]
799 --libexecdir=DIR program executables [EPREFIX/libexec]
800 --datadir=DIR read-only architecture-independent data [PREFIX/share]
801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
804 --libdir=DIR object code libraries [EPREFIX/lib]
805 --includedir=DIR C header files [PREFIX/include]
806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
807 --infodir=DIR info documentation [PREFIX/info]
808 --mandir=DIR man documentation [PREFIX/man]
814 --program-prefix=PREFIX prepend PREFIX to installed program names
815 --program-suffix=SUFFIX append SUFFIX to installed program names
816 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
819 --build=BUILD configure for building on BUILD [guessed]
820 --host=HOST build programs to run on HOST [BUILD]
824 if test -n "$ac_init_help"; then
829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 --enable-maintainer-mode enable make rules and dependencies not useful
832 (and sometimes confusing) to the casual installer
833 --enable-shared=PKGS build shared libraries default=no
834 --enable-static=PKGS build static libraries default=yes
835 --enable-fast-install=PKGS optimize for fast installation default=yes
836 --disable-libtool-lock avoid locking (might break parallel builds)
837 --enable-double use double-precision samples
838 --enable-djbfft make a version using djbfft
839 --disable-oss make a version not using oss
840 --disable-solaris-audio make a version not using solaris audio
841 --disable-al-audio make a version not using al audio
842 --enable-gprof make a version using gprof
843 --disable-warnings do not treat warnings as errors
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-gnu-ld assume the C compiler uses GNU ld default=no
849 --with-pic try to use only PIC/non-PIC objects default=use both
851 Some influential environment variables:
852 CC C compiler command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855 nonstandard directory <lib dir>
856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857 headers in a nonstandard directory <include dir>
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
869 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
871 # A "../" for each directory in /$ac_subdir.
872 ac_dots=`echo $ac_subdir |
873 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
876 .) # No --srcdir option. We are building in place.
877 ac_sub_srcdir=$srcdir ;;
878 [\\/]* | ?:[\\/]* ) # Absolute path.
879 ac_sub_srcdir=$srcdir/$ac_subdir ;;
881 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
884 # Check for guested configure; otherwise get Cygnus style configure.
885 if test -f $ac_sub_srcdir/configure.gnu; then
887 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
888 elif test -f $ac_sub_srcdir/configure; then
890 $SHELL $ac_sub_srcdir/configure --help=recursive
891 elif test -f $ac_sub_srcdir/configure.ac ||
892 test -f $ac_sub_srcdir/configure.in; then
896 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
902 test -n "$ac_init_help" && exit 0
903 if $ac_init_version; then
906 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
907 Free Software Foundation, Inc.
908 This configure script is free software; the Free Software Foundation
909 gives unlimited permission to copy, distribute and modify it.
915 This file contains any messages produced by compilers while
916 running configure, to aid debugging if configure makes a mistake.
918 It was created by $as_me, which was
919 generated by GNU Autoconf 2.52. Invocation command line was
930 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
931 uname -m = `(uname -m) 2>/dev/null || echo unknown`
932 uname -r = `(uname -r) 2>/dev/null || echo unknown`
933 uname -s = `(uname -s) 2>/dev/null || echo unknown`
934 uname -v = `(uname -v) 2>/dev/null || echo unknown`
936 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
937 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
939 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
940 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
941 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
942 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
943 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
944 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
945 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
959 # Keep a trace of the command line.
960 # Strip out --no-create and --no-recursion so they do not pile up.
961 # Also quote any args containing shell meta-characters.
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c) ;;
969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
971 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
972 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
973 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
975 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
978 # Get rid of the leading space.
981 # When interrupted or exit'd, cleanup temporary files, and complete
982 # config.log. We remove comments because anyway the quotes in there
983 # would cause problems or look ugly.
985 # Save into config.log some information that might help in debugging.
987 echo "## ----------------- ##" >&5
988 echo "## Cache variables. ##" >&5
989 echo "## ----------------- ##" >&5
991 # The following way of writing the cache mishandles newlines in values,
994 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
997 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1002 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1006 sed "/^$/d" confdefs.h >conftest.log
1007 if test -s conftest.log; then
1009 echo "## ------------ ##" >&5
1010 echo "## confdefs.h. ##" >&5
1011 echo "## ------------ ##" >&5
1013 cat conftest.log >&5
1016 test "$ac_signal" != 0 &&
1017 echo "$as_me: caught signal $ac_signal" >&5
1018 echo "$as_me: exit $exit_status" >&5
1019 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1022 for ac_signal in 1 2 13 15; do
1023 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1028 rm -rf conftest* confdefs.h
1029 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1032 # Let the site file select an alternate cache file if it wants to.
1033 # Prefer explicitly selected file to automatically selected ones.
1034 if test -z "$CONFIG_SITE"; then
1035 if test "x$prefix" != xNONE; then
1036 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1038 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1041 for ac_site_file in $CONFIG_SITE; do
1042 if test -r "$ac_site_file"; then
1043 { echo "$as_me:1043: loading site script $ac_site_file" >&5
1044 echo "$as_me: loading site script $ac_site_file" >&6;}
1045 cat "$ac_site_file" >&5
1050 if test -r "$cache_file"; then
1051 # Some versions of bash will fail to source /dev/null (special
1052 # files actually), so we avoid doing that.
1053 if test -f "$cache_file"; then
1054 { echo "$as_me:1054: loading cache $cache_file" >&5
1055 echo "$as_me: loading cache $cache_file" >&6;}
1057 [\\/]* | ?:[\\/]* ) . $cache_file;;
1058 *) . ./$cache_file;;
1062 { echo "$as_me:1062: creating cache $cache_file" >&5
1063 echo "$as_me: creating cache $cache_file" >&6;}
1067 # Check that the precious variables saved in the cache have kept the same
1069 ac_cache_corrupted=false
1070 for ac_var in `(set) 2>&1 |
1071 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1072 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1073 eval ac_new_set=\$ac_env_${ac_var}_set
1074 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1075 eval ac_new_val="\$ac_env_${ac_var}_value"
1076 case $ac_old_set,$ac_new_set in
1078 { echo "$as_me:1078: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1079 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1080 ac_cache_corrupted=: ;;
1082 { echo "$as_me:1082: error: \`$ac_var' was not set in the previous run" >&5
1083 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1084 ac_cache_corrupted=: ;;
1087 if test "x$ac_old_val" != "x$ac_new_val"; then
1088 { echo "$as_me:1088: error: \`$ac_var' has changed since the previous run:" >&5
1089 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1090 { echo "$as_me:1090: former value: $ac_old_val" >&5
1091 echo "$as_me: former value: $ac_old_val" >&2;}
1092 { echo "$as_me:1092: current value: $ac_new_val" >&5
1093 echo "$as_me: current value: $ac_new_val" >&2;}
1094 ac_cache_corrupted=:
1097 # Pass precious variables to config.status. It doesn't matter if
1098 # we pass some twice (in addition to the command line arguments).
1099 if test "$ac_new_set" = set; then
1101 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1103 ac_configure_args="$ac_configure_args '$ac_arg'"
1105 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1110 if $ac_cache_corrupted; then
1111 { echo "$as_me:1111: error: changes in the environment can compromise the build" >&5
1112 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1113 { { echo "$as_me:1113: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1114 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1115 { (exit 1); exit 1; }; }
1119 ac_cpp='$CPP $CPPFLAGS'
1120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1124 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1125 *c*,-n*) ECHO_N= ECHO_C='
1127 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1128 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1130 echo "#! $SHELL" >conftest.sh
1131 echo "exit 0" >>conftest.sh
1132 chmod +x conftest.sh
1133 if { (echo "$as_me:1133: PATH=\".;.\"; conftest.sh") >&5
1134 (PATH=".;."; conftest.sh) 2>&5
1136 echo "$as_me:1136: \$? = $ac_status" >&5
1137 (exit $ac_status); }; then
1138 ac_path_separator=';'
1142 PATH_SEPARATOR="$ac_path_separator"
1146 for ac_dir in autotools $srcdir/autotools; do
1147 if test -f $ac_dir/install-sh; then
1149 ac_install_sh="$ac_aux_dir/install-sh -c"
1151 elif test -f $ac_dir/install.sh; then
1153 ac_install_sh="$ac_aux_dir/install.sh -c"
1155 elif test -f $ac_dir/shtool; then
1157 ac_install_sh="$ac_aux_dir/shtool install -c"
1161 if test -z "$ac_aux_dir"; then
1162 { { echo "$as_me:1162: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&5
1163 echo "$as_me: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&2;}
1164 { (exit 1); exit 1; }; }
1166 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1167 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1168 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1170 ac_config_files="$ac_config_files Makefile autotools/Makefile include/Makefile test/Makefile doc/Makefile src/Makefile liba52/Makefile libao/Makefile vc++/Makefile"
1172 # Find a good install program. We prefer a C program (faster),
1173 # so one script is as good as another. But avoid the broken or
1174 # incompatible versions:
1175 # SysV /etc/install, /usr/sbin/install
1176 # SunOS /usr/etc/install
1177 # IRIX /sbin/install
1179 # AmigaOS /C/install, which installs bootblocks on floppy discs
1180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1183 # ./install, which can be erroneously created by make from ./install.sh.
1184 echo "$as_me:1184: checking for a BSD compatible install" >&5
1185 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1186 if test -z "$INSTALL"; then
1187 if test "${ac_cv_path_install+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1190 ac_save_IFS=$IFS; IFS=$ac_path_separator
1191 for ac_dir in $PATH; do
1193 # Account for people who put trailing slashes in PATH elements.
1195 / | ./ | .// | /cC/* \
1196 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1199 # OSF1 and SCO ODT 3.0 have their own names for install.
1200 # Don't use installbsd from OSF since it installs stuff as root
1202 for ac_prog in ginstall scoinst install; do
1203 if $as_executable_p "$ac_dir/$ac_prog"; then
1204 if test $ac_prog = install &&
1205 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1206 # AIX install. It has an incompatible calling convention.
1208 elif test $ac_prog = install &&
1209 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1210 # program-specific install script used by HP pwplus--don't use.
1213 ac_cv_path_install="$ac_dir/$ac_prog -c"
1223 if test "${ac_cv_path_install+set}" = set; then
1224 INSTALL=$ac_cv_path_install
1226 # As a last resort, use the slow shell script. We don't cache a
1227 # path for INSTALL within a source directory, because that will
1228 # break other packages using the cache if that directory is
1229 # removed, or if the path is relative.
1230 INSTALL=$ac_install_sh
1233 echo "$as_me:1233: result: $INSTALL" >&5
1234 echo "${ECHO_T}$INSTALL" >&6
1236 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1237 # It thinks the first close brace ends the variable substitution.
1238 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1240 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1242 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1244 echo "$as_me:1244: checking whether build environment is sane" >&5
1245 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1248 echo timestamp > conftestfile
1249 # Do `set' in a subshell so we don't clobber the current shell's
1250 # arguments. Must try -L first in case configure is actually a
1251 # symlink; some systems play weird games with the mod time of symlinks
1252 # (eg FreeBSD returns the mod time of the symlink's containing
1255 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1256 if test "$*" = "X"; then
1258 set X `ls -t $srcdir/configure conftestfile`
1260 if test "$*" != "X $srcdir/configure conftestfile" \
1261 && test "$*" != "X conftestfile $srcdir/configure"; then
1263 # If neither matched, then we have a broken ls. This can happen
1264 # if, for instance, CONFIG_SHELL is bash and it inherits a
1265 # broken ls alias from the environment. This has actually
1266 # happened. Such a system could not be considered "sane".
1267 { { echo "$as_me:1267: error: ls -t appears to fail. Make sure there is not a broken
1268 alias in your environment" >&5
1269 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1270 alias in your environment" >&2;}
1271 { (exit 1); exit 1; }; }
1274 test "$2" = conftestfile
1280 { { echo "$as_me:1280: error: newly created file is older than distributed files!
1281 Check your system clock" >&5
1282 echo "$as_me: error: newly created file is older than distributed files!
1283 Check your system clock" >&2;}
1284 { (exit 1); exit 1; }; }
1287 echo "$as_me:1287: result: yes" >&5
1288 echo "${ECHO_T}yes" >&6
1289 test "$program_prefix" != NONE &&
1290 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1291 # Use a double $ so make ignores it.
1292 test "$program_suffix" != NONE &&
1293 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1294 # Double any \ or $. echo might interpret backslashes.
1295 # By default was `s,x,x', remove it if useless.
1296 cat <<\_ACEOF >conftest.sed
1297 s/[\\$]/&&/g;s/;s,x,x,$//
1299 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1302 echo "$as_me:1302: checking whether ${MAKE-make} sets \${MAKE}" >&5
1303 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1304 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1305 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1306 echo $ECHO_N "(cached) $ECHO_C" >&6
1308 cat >conftest.make <<\EOF
1310 @echo 'ac_maketemp="${MAKE}"'
1312 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1313 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1314 if test -n "$ac_maketemp"; then
1315 eval ac_cv_prog_make_${ac_make}_set=yes
1317 eval ac_cv_prog_make_${ac_make}_set=no
1321 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1322 echo "$as_me:1322: result: yes" >&5
1323 echo "${ECHO_T}yes" >&6
1326 echo "$as_me:1326: result: no" >&5
1327 echo "${ECHO_T}no" >&6
1328 SET_MAKE="MAKE=${MAKE-make}"
1335 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1336 { { echo "$as_me:1336: error: source directory already configured; run \"make distclean\" there first" >&5
1337 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1338 { (exit 1); exit 1; }; }
1341 cat >>confdefs.h <<EOF
1342 #define PACKAGE "$PACKAGE"
1345 cat >>confdefs.h <<EOF
1346 #define VERSION "$VERSION"
1349 missing_dir=`cd $ac_aux_dir && pwd`
1350 echo "$as_me:1350: checking for working aclocal" >&5
1351 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1352 # Run test in a subshell; some versions of sh will print an error if
1353 # an executable is not found, even if stderr is redirected.
1354 # Redirect stdin to placate older versions of autoconf. Sigh.
1355 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1357 echo "$as_me:1357: result: found" >&5
1358 echo "${ECHO_T}found" >&6
1360 ACLOCAL="$missing_dir/missing aclocal"
1361 echo "$as_me:1361: result: missing" >&5
1362 echo "${ECHO_T}missing" >&6
1365 echo "$as_me:1365: checking for working autoconf" >&5
1366 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1367 # Run test in a subshell; some versions of sh will print an error if
1368 # an executable is not found, even if stderr is redirected.
1369 # Redirect stdin to placate older versions of autoconf. Sigh.
1370 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1372 echo "$as_me:1372: result: found" >&5
1373 echo "${ECHO_T}found" >&6
1375 AUTOCONF="$missing_dir/missing autoconf"
1376 echo "$as_me:1376: result: missing" >&5
1377 echo "${ECHO_T}missing" >&6
1380 echo "$as_me:1380: checking for working automake" >&5
1381 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1382 # Run test in a subshell; some versions of sh will print an error if
1383 # an executable is not found, even if stderr is redirected.
1384 # Redirect stdin to placate older versions of autoconf. Sigh.
1385 if (automake --version) < /dev/null > /dev/null 2>&1; then
1387 echo "$as_me:1387: result: found" >&5
1388 echo "${ECHO_T}found" >&6
1390 AUTOMAKE="$missing_dir/missing automake"
1391 echo "$as_me:1391: result: missing" >&5
1392 echo "${ECHO_T}missing" >&6
1395 echo "$as_me:1395: checking for working autoheader" >&5
1396 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1397 # Run test in a subshell; some versions of sh will print an error if
1398 # an executable is not found, even if stderr is redirected.
1399 # Redirect stdin to placate older versions of autoconf. Sigh.
1400 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1401 AUTOHEADER=autoheader
1402 echo "$as_me:1402: result: found" >&5
1403 echo "${ECHO_T}found" >&6
1405 AUTOHEADER="$missing_dir/missing autoheader"
1406 echo "$as_me:1406: result: missing" >&5
1407 echo "${ECHO_T}missing" >&6
1410 echo "$as_me:1410: checking for working makeinfo" >&5
1411 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1412 # Run test in a subshell; some versions of sh will print an error if
1413 # an executable is not found, even if stderr is redirected.
1414 # Redirect stdin to placate older versions of autoconf. Sigh.
1415 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1417 echo "$as_me:1417: result: found" >&5
1418 echo "${ECHO_T}found" >&6
1420 MAKEINFO="$missing_dir/missing makeinfo"
1421 echo "$as_me:1421: result: missing" >&5
1422 echo "${ECHO_T}missing" >&6
1425 ac_config_headers="$ac_config_headers include/config.h"
1427 ac_config_commands="$ac_config_commands default-1"
1429 echo "$as_me:1429: checking whether to enable maintainer-specific portions of Makefiles" >&5
1430 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1431 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1432 if test "${enable_maintainer_mode+set}" = set; then
1433 enableval="$enable_maintainer_mode"
1434 USE_MAINTAINER_MODE=$enableval
1436 USE_MAINTAINER_MODE=no
1438 echo "$as_me:1438: result: $USE_MAINTAINER_MODE" >&5
1439 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1441 if test $USE_MAINTAINER_MODE = yes; then
1442 MAINTAINER_MODE_TRUE=
1443 MAINTAINER_MODE_FALSE='#'
1445 MAINTAINER_MODE_TRUE='#'
1446 MAINTAINER_MODE_FALSE=
1448 MAINT=$MAINTAINER_MODE_TRUE
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452 { { echo "$as_me:1452: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454 { (exit 1); exit 1; }; }
1456 echo "$as_me:1456: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463 ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465 { { echo "$as_me:1465: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467 { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469 { { echo "$as_me:1469: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:1474: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:1481: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:1490: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:1495: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502 if test x"$host_alias" = x""; then host_alias="$host"; fi
1505 ac_cpp='$CPP $CPPFLAGS'
1506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509 if test -n "$ac_tool_prefix"; then
1510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1512 echo "$as_me:1512: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 if test -n "$CC"; then
1518 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 ac_save_IFS=$IFS; IFS=$ac_path_separator
1522 for ac_dir in $ac_dummy; do
1524 test -z "$ac_dir" && ac_dir=.
1525 $as_executable_p "$ac_dir/$ac_word" || continue
1526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1527 echo "$as_me:1527: found $ac_dir/$ac_word" >&5
1534 if test -n "$CC"; then
1535 echo "$as_me:1535: result: $CC" >&5
1536 echo "${ECHO_T}$CC" >&6
1538 echo "$as_me:1538: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1543 if test -z "$ac_cv_prog_CC"; then
1545 # Extract the first word of "gcc", so it can be a program name with args.
1546 set dummy gcc; ac_word=$2
1547 echo "$as_me:1547: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 if test -n "$ac_ct_CC"; then
1553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1555 ac_save_IFS=$IFS; IFS=$ac_path_separator
1557 for ac_dir in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir=.
1560 $as_executable_p "$ac_dir/$ac_word" || continue
1561 ac_cv_prog_ac_ct_CC="gcc"
1562 echo "$as_me:1562: found $ac_dir/$ac_word" >&5
1568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569 if test -n "$ac_ct_CC"; then
1570 echo "$as_me:1570: result: $ac_ct_CC" >&5
1571 echo "${ECHO_T}$ac_ct_CC" >&6
1573 echo "$as_me:1573: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1582 if test -z "$CC"; then
1583 if test -n "$ac_tool_prefix"; then
1584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}cc; ac_word=$2
1586 echo "$as_me:1586: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1594 ac_save_IFS=$IFS; IFS=$ac_path_separator
1596 for ac_dir in $ac_dummy; do
1598 test -z "$ac_dir" && ac_dir=.
1599 $as_executable_p "$ac_dir/$ac_word" || continue
1600 ac_cv_prog_CC="${ac_tool_prefix}cc"
1601 echo "$as_me:1601: found $ac_dir/$ac_word" >&5
1608 if test -n "$CC"; then
1609 echo "$as_me:1609: result: $CC" >&5
1610 echo "${ECHO_T}$CC" >&6
1612 echo "$as_me:1612: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1617 if test -z "$ac_cv_prog_CC"; then
1619 # Extract the first word of "cc", so it can be a program name with args.
1620 set dummy cc; ac_word=$2
1621 echo "$as_me:1621: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$ac_ct_CC"; then
1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1629 ac_save_IFS=$IFS; IFS=$ac_path_separator
1631 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 $as_executable_p "$ac_dir/$ac_word" || continue
1635 ac_cv_prog_ac_ct_CC="cc"
1636 echo "$as_me:1636: found $ac_dir/$ac_word" >&5
1642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1643 if test -n "$ac_ct_CC"; then
1644 echo "$as_me:1644: result: $ac_ct_CC" >&5
1645 echo "${ECHO_T}$ac_ct_CC" >&6
1647 echo "$as_me:1647: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1657 if test -z "$CC"; then
1658 # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:1660: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1669 ac_save_IFS=$IFS; IFS=$ac_path_separator
1671 for ac_dir in $ac_dummy; do
1673 test -z "$ac_dir" && ac_dir=.
1674 $as_executable_p "$ac_dir/$ac_word" || continue
1675 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1676 ac_prog_rejected=yes
1680 echo "$as_me:1680: found $ac_dir/$ac_word" >&5
1684 if test $ac_prog_rejected = yes; then
1685 # We found a bogon in the path, so make sure we never use it.
1686 set dummy $ac_cv_prog_CC
1688 if test $# != 0; then
1689 # We chose a different compiler from the bogus one.
1690 # However, it has the same basename, so the bogon will be chosen
1691 # first if we set CC to just the basename; use the full file name.
1693 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1701 if test -n "$CC"; then
1702 echo "$as_me:1702: result: $CC" >&5
1703 echo "${ECHO_T}$CC" >&6
1705 echo "$as_me:1705: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1710 if test -z "$CC"; then
1711 if test -n "$ac_tool_prefix"; then
1714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1716 echo "$as_me:1716: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1724 ac_save_IFS=$IFS; IFS=$ac_path_separator
1726 for ac_dir in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir=.
1729 $as_executable_p "$ac_dir/$ac_word" || continue
1730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1731 echo "$as_me:1731: found $ac_dir/$ac_word" >&5
1738 if test -n "$CC"; then
1739 echo "$as_me:1739: result: $CC" >&5
1740 echo "${ECHO_T}$CC" >&6
1742 echo "$as_me:1742: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$CC" && break
1749 if test -z "$CC"; then
1753 # Extract the first word of "$ac_prog", so it can be a program name with args.
1754 set dummy $ac_prog; ac_word=$2
1755 echo "$as_me:1755: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 ac_save_IFS=$IFS; IFS=$ac_path_separator
1765 for ac_dir in $ac_dummy; do
1767 test -z "$ac_dir" && ac_dir=.
1768 $as_executable_p "$ac_dir/$ac_word" || continue
1769 ac_cv_prog_ac_ct_CC="$ac_prog"
1770 echo "$as_me:1770: found $ac_dir/$ac_word" >&5
1776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1777 if test -n "$ac_ct_CC"; then
1778 echo "$as_me:1778: result: $ac_ct_CC" >&5
1779 echo "${ECHO_T}$ac_ct_CC" >&6
1781 echo "$as_me:1781: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1785 test -n "$ac_ct_CC" && break
1793 test -z "$CC" && { { echo "$as_me:1793: error: no acceptable cc found in \$PATH" >&5
1794 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1795 { (exit 1); exit 1; }; }
1797 # Provide some information about the compiler.
1798 echo "$as_me:1798:" \
1799 "checking for C compiler version" >&5
1800 ac_compiler=`set X $ac_compile; echo $2`
1801 { (eval echo "$as_me:1801: \"$ac_compiler --version </dev/null >&5\"") >&5
1802 (eval $ac_compiler --version </dev/null >&5) 2>&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1806 { (eval echo "$as_me:1806: \"$ac_compiler -v </dev/null >&5\"") >&5
1807 (eval $ac_compiler -v </dev/null >&5) 2>&5
1809 echo "$as_me:1809: \$? = $ac_status" >&5
1810 (exit $ac_status); }
1811 { (eval echo "$as_me:1811: \"$ac_compiler -V </dev/null >&5\"") >&5
1812 (eval $ac_compiler -V </dev/null >&5) 2>&5
1814 echo "$as_me:1814: \$? = $ac_status" >&5
1815 (exit $ac_status); }
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line 1818 "configure"
1819 #include "confdefs.h"
1829 ac_clean_files_save=$ac_clean_files
1830 ac_clean_files="$ac_clean_files a.out a.exe"
1831 # Try to create an executable without -o first, disregard a.out.
1832 # It will help us diagnose broken compilers, and finding out an intuition
1834 echo "$as_me:1834: checking for C compiler default output" >&5
1835 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1836 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1837 if { (eval echo "$as_me:1837: \"$ac_link_default\"") >&5
1838 (eval $ac_link_default) 2>&5
1840 echo "$as_me:1840: \$? = $ac_status" >&5
1841 (exit $ac_status); }; then
1842 # Find the output, starting from the most likely. This scheme is
1843 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1845 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1846 ls a.out conftest 2>/dev/null;
1847 ls a.* conftest.* 2>/dev/null`; do
1849 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1850 a.out ) # We found the default executable, but exeext='' is most
1853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1854 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1861 echo "$as_me: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 { { echo "$as_me:1863: error: C compiler cannot create executables" >&5
1864 echo "$as_me: error: C compiler cannot create executables" >&2;}
1865 { (exit 77); exit 77; }; }
1868 ac_exeext=$ac_cv_exeext
1869 echo "$as_me:1869: result: $ac_file" >&5
1870 echo "${ECHO_T}$ac_file" >&6
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:1874: checking whether the C compiler works" >&5
1875 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1876 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1877 # If not cross compiling, check that we can run a simple program.
1878 if test "$cross_compiling" != yes; then
1879 if { ac_try='./$ac_file'
1880 { (eval echo "$as_me:1880: \"$ac_try\"") >&5
1883 echo "$as_me:1883: \$? = $ac_status" >&5
1884 (exit $ac_status); }; }; then
1887 if test "$cross_compiling" = maybe; then
1890 { { echo "$as_me:1890: error: cannot run C compiled programs.
1891 If you meant to cross compile, use \`--host'." >&5
1892 echo "$as_me: error: cannot run C compiled programs.
1893 If you meant to cross compile, use \`--host'." >&2;}
1894 { (exit 1); exit 1; }; }
1898 echo "$as_me:1898: result: yes" >&5
1899 echo "${ECHO_T}yes" >&6
1901 rm -f a.out a.exe conftest$ac_cv_exeext
1902 ac_clean_files=$ac_clean_files_save
1903 # Check the compiler produces executables we can run. If not, either
1904 # the compiler is broken, or we cross compile.
1905 echo "$as_me:1905: checking whether we are cross compiling" >&5
1906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907 echo "$as_me:1907: result: $cross_compiling" >&5
1908 echo "${ECHO_T}$cross_compiling" >&6
1910 echo "$as_me:1910: checking for executable suffix" >&5
1911 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1912 if { (eval echo "$as_me:1912: \"$ac_link\"") >&5
1913 (eval $ac_link) 2>&5
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1919 # work properly (i.e., refer to `conftest.exe'), while it won't with
1921 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1923 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931 { { echo "$as_me:1931: error: cannot compute EXEEXT: cannot compile and link" >&5
1932 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1933 { (exit 1); exit 1; }; }
1936 rm -f conftest$ac_cv_exeext
1937 echo "$as_me:1937: result: $ac_cv_exeext" >&5
1938 echo "${ECHO_T}$ac_cv_exeext" >&6
1940 rm -f conftest.$ac_ext
1941 EXEEXT=$ac_cv_exeext
1943 echo "$as_me:1943: checking for object suffix" >&5
1944 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1945 if test "${ac_cv_objext+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1960 rm -f conftest.o conftest.obj
1961 if { (eval echo "$as_me:1961: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 { { echo "$as_me:1976: error: cannot compute OBJEXT: cannot compile" >&5
1977 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1978 { (exit 1); exit 1; }; }
1981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1983 echo "$as_me:1983: result: $ac_cv_objext" >&5
1984 echo "${ECHO_T}$ac_cv_objext" >&6
1985 OBJEXT=$ac_cv_objext
1987 echo "$as_me:1987: checking whether we are using the GNU C compiler" >&5
1988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 cat >conftest.$ac_ext <<_ACEOF
1993 #line 1993 "configure"
1994 #include "confdefs.h"
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:2008: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:2014: \"$ac_try\"") >&5
2017 echo "$as_me:2017: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2021 echo "$as_me: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2025 rm -f conftest.$ac_objext conftest.$ac_ext
2026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2029 echo "$as_me:2029: result: $ac_cv_c_compiler_gnu" >&5
2030 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2031 GCC=`test $ac_compiler_gnu = yes && echo yes`
2032 ac_test_CFLAGS=${CFLAGS+set}
2033 ac_save_CFLAGS=$CFLAGS
2035 echo "$as_me:2035: checking whether $CC accepts -g" >&5
2036 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2037 if test "${ac_cv_prog_cc_g+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 cat >conftest.$ac_ext <<_ACEOF
2041 #line 2041 "configure"
2042 #include "confdefs.h"
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:2053: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2056 echo "$as_me:2056: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:2059: \"$ac_try\"") >&5
2062 echo "$as_me:2062: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2072 echo "$as_me:2072: result: $ac_cv_prog_cc_g" >&5
2073 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2074 if test "$ac_test_CFLAGS" = set; then
2075 CFLAGS=$ac_save_CFLAGS
2076 elif test $ac_cv_prog_cc_g = yes; then
2077 if test "$GCC" = yes; then
2083 if test "$GCC" = yes; then
2089 # Some people use a C++ compiler to compile C. Since we use `exit',
2090 # in C++ we need to declare it. In case someone uses the same compiler
2091 # for both compiling C and C++ we need to have the C++ compiler decide
2092 # the declaration of exit, since it's the most demanding environment.
2093 cat >conftest.$ac_ext <<_ACEOF
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:2099: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:2105: \"$ac_try\"") >&5
2108 echo "$as_me:2108: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2110 for ac_declaration in \
2112 '#include <stdlib.h>' \
2113 'extern "C" void std::exit (int) throw (); using std::exit;' \
2114 'extern "C" void std::exit (int); using std::exit;' \
2115 'extern "C" void exit (int) throw ();' \
2116 'extern "C" void exit (int);' \
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line 2120 "configure"
2121 #include "confdefs.h"
2132 rm -f conftest.$ac_objext
2133 if { (eval echo "$as_me:2133: \"$ac_compile\"") >&5
2134 (eval $ac_compile) 2>&5
2136 echo "$as_me:2136: \$? = $ac_status" >&5
2137 (exit $ac_status); } &&
2138 { ac_try='test -s conftest.$ac_objext'
2139 { (eval echo "$as_me:2139: \"$ac_try\"") >&5
2142 echo "$as_me:2142: \$? = $ac_status" >&5
2143 (exit $ac_status); }; }; then
2146 echo "$as_me: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2150 rm -f conftest.$ac_objext conftest.$ac_ext
2151 cat >conftest.$ac_ext <<_ACEOF
2152 #line 2152 "configure"
2153 #include "confdefs.h"
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:2164: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>&5
2167 echo "$as_me:2167: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:2170: \"$ac_try\"") >&5
2173 echo "$as_me:2173: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2177 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 rm -f conftest.$ac_objext conftest.$ac_ext
2183 if test -n "$ac_declaration"; then
2184 echo '#ifdef __cplusplus' >>confdefs.h
2185 echo $ac_declaration >>confdefs.h
2186 echo '#endif' >>confdefs.h
2190 echo "$as_me: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 rm -f conftest.$ac_objext conftest.$ac_ext
2195 ac_cpp='$CPP $CPPFLAGS'
2196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205 echo "$as_me:2205: checking how to run the C preprocessor" >&5
2206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2207 # On Suns, sometimes $CPP names a directory.
2208 if test -n "$CPP" && test -d "$CPP"; then
2211 if test -z "$CPP"; then
2212 if test "${ac_cv_prog_CPP+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 # Double quotes because CPP needs to be expanded
2216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2219 for ac_c_preproc_warn_flag in '' yes
2221 # Use a header file that comes with gcc, so configuring glibc
2222 # with a fresh cross-compiler works.
2223 # On the NeXT, cc -E runs the code through the compiler's parser,
2224 # not just through cpp. "Syntax error" is here to catch this case.
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line 2226 "configure"
2227 #include "confdefs.h"
2231 if { (eval echo "$as_me:2231: \"$ac_cpp conftest.$ac_ext\"") >&5
2232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2234 egrep -v '^ *\+' conftest.er1 >conftest.err
2236 cat conftest.err >&5
2237 echo "$as_me:2237: \$? = $ac_status" >&5
2238 (exit $ac_status); } >/dev/null; then
2239 if test -s conftest.err; then
2240 ac_cpp_err=$ac_c_preproc_warn_flag
2247 if test -z "$ac_cpp_err"; then
2250 echo "$as_me: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 # Broken: fails on valid input.
2255 rm -f conftest.err conftest.$ac_ext
2257 # OK, works on sane cases. Now check whether non-existent headers
2258 # can be detected and how.
2259 cat >conftest.$ac_ext <<_ACEOF
2260 #line 2260 "configure"
2261 #include "confdefs.h"
2262 #include <ac_nonexistent.h>
2264 if { (eval echo "$as_me:2264: \"$ac_cpp conftest.$ac_ext\"") >&5
2265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2267 egrep -v '^ *\+' conftest.er1 >conftest.err
2269 cat conftest.err >&5
2270 echo "$as_me:2270: \$? = $ac_status" >&5
2271 (exit $ac_status); } >/dev/null; then
2272 if test -s conftest.err; then
2273 ac_cpp_err=$ac_c_preproc_warn_flag
2280 if test -z "$ac_cpp_err"; then
2281 # Broken: success on invalid input.
2284 echo "$as_me: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2286 # Passes both tests.
2290 rm -f conftest.err conftest.$ac_ext
2293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2294 rm -f conftest.err conftest.$ac_ext
2295 if $ac_preproc_ok; then
2307 echo "$as_me:2307: result: $CPP" >&5
2308 echo "${ECHO_T}$CPP" >&6
2310 for ac_c_preproc_warn_flag in '' yes
2312 # Use a header file that comes with gcc, so configuring glibc
2313 # with a fresh cross-compiler works.
2314 # On the NeXT, cc -E runs the code through the compiler's parser,
2315 # not just through cpp. "Syntax error" is here to catch this case.
2316 cat >conftest.$ac_ext <<_ACEOF
2317 #line 2317 "configure"
2318 #include "confdefs.h"
2322 if { (eval echo "$as_me:2322: \"$ac_cpp conftest.$ac_ext\"") >&5
2323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2325 egrep -v '^ *\+' conftest.er1 >conftest.err
2327 cat conftest.err >&5
2328 echo "$as_me:2328: \$? = $ac_status" >&5
2329 (exit $ac_status); } >/dev/null; then
2330 if test -s conftest.err; then
2331 ac_cpp_err=$ac_c_preproc_warn_flag
2338 if test -z "$ac_cpp_err"; then
2341 echo "$as_me: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 # Broken: fails on valid input.
2346 rm -f conftest.err conftest.$ac_ext
2348 # OK, works on sane cases. Now check whether non-existent headers
2349 # can be detected and how.
2350 cat >conftest.$ac_ext <<_ACEOF
2351 #line 2351 "configure"
2352 #include "confdefs.h"
2353 #include <ac_nonexistent.h>
2355 if { (eval echo "$as_me:2355: \"$ac_cpp conftest.$ac_ext\"") >&5
2356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2358 egrep -v '^ *\+' conftest.er1 >conftest.err
2360 cat conftest.err >&5
2361 echo "$as_me:2361: \$? = $ac_status" >&5
2362 (exit $ac_status); } >/dev/null; then
2363 if test -s conftest.err; then
2364 ac_cpp_err=$ac_c_preproc_warn_flag
2371 if test -z "$ac_cpp_err"; then
2372 # Broken: success on invalid input.
2375 echo "$as_me: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2377 # Passes both tests.
2381 rm -f conftest.err conftest.$ac_ext
2384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2385 rm -f conftest.err conftest.$ac_ext
2386 if $ac_preproc_ok; then
2389 { { echo "$as_me:2389: error: C preprocessor \"$CPP\" fails sanity check" >&5
2390 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2391 { (exit 1); exit 1; }; }
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400 if test $ac_cv_c_compiler_gnu = yes; then
2401 echo "$as_me:2401: checking whether $CC needs -traditional" >&5
2402 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2403 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 ac_pattern="Autoconf.*'x'"
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line 2408 "configure"
2409 #include "confdefs.h"
2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2414 egrep "$ac_pattern" >/dev/null 2>&1; then
2415 ac_cv_prog_gcc_traditional=yes
2417 ac_cv_prog_gcc_traditional=no
2421 if test $ac_cv_prog_gcc_traditional = no; then
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #line 2423 "configure"
2424 #include "confdefs.h"
2428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2429 egrep "$ac_pattern" >/dev/null 2>&1; then
2430 ac_cv_prog_gcc_traditional=yes
2436 echo "$as_me:2436: result: $ac_cv_prog_gcc_traditional" >&5
2437 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2438 if test $ac_cv_prog_gcc_traditional = yes; then
2439 CC="$CC -traditional"
2443 if test x"$GCC" = x"yes"; then
2445 OPT_CFLAGS=`echo "$CFLAGS"|sed "s/-O[0-9]*//g;"`
2447 OPT_CFLAGS="$OPT_CFLAGS -O3"
2448 echo "$as_me:2448: checking if $CC supports $OPT_CFLAGS flags" >&5
2449 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2450 SAVE_CFLAGS="$CFLAGS"
2451 CFLAGS="$OPT_CFLAGS"
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line 2453 "configure"
2454 #include "confdefs.h"
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:2465: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:2471: \"$ac_try\"") >&5
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 ac_cv_try_cflags_ok=yes
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 ac_cv_try_cflags_ok=no
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2483 CFLAGS="$SAVE_CFLAGS"
2484 echo "$as_me:2484: result: $ac_cv_try_cflags_ok" >&5
2485 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2486 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2492 OPT_CFLAGS="$CFLAGS -fomit-frame-pointer"
2493 echo "$as_me:2493: checking if $CC supports $OPT_CFLAGS flags" >&5
2494 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2495 SAVE_CFLAGS="$CFLAGS"
2496 CFLAGS="$OPT_CFLAGS"
2497 cat >conftest.$ac_ext <<_ACEOF
2498 #line 2498 "configure"
2499 #include "confdefs.h"
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:2510: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2513 echo "$as_me:2513: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:2516: \"$ac_try\"") >&5
2519 echo "$as_me:2519: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_cv_try_cflags_ok=yes
2523 echo "$as_me: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 ac_cv_try_cflags_ok=no
2527 rm -f conftest.$ac_objext conftest.$ac_ext
2528 CFLAGS="$SAVE_CFLAGS"
2529 echo "$as_me:2529: result: $ac_cv_try_cflags_ok" >&5
2530 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2531 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2537 case "$host_alias" in
2539 case "$host_alias" in
2540 i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";;
2541 i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";;
2542 i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";;
2543 i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";;
2544 k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";;
2546 echo "$as_me:2546: checking if $CC supports $OPT_CFLAGS flags" >&5
2547 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2548 SAVE_CFLAGS="$CFLAGS"
2549 CFLAGS="$OPT_CFLAGS"
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line 2551 "configure"
2552 #include "confdefs.h"
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:2563: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>&5
2566 echo "$as_me:2566: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:2569: \"$ac_try\"") >&5
2572 echo "$as_me:2572: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 ac_cv_try_cflags_ok=yes
2576 echo "$as_me: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2578 ac_cv_try_cflags_ok=no
2580 rm -f conftest.$ac_objext conftest.$ac_ext
2581 CFLAGS="$SAVE_CFLAGS"
2582 echo "$as_me:2582: result: $ac_cv_try_cflags_ok" >&5
2583 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2584 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2589 sparc-* | sparc64-*)
2590 OPT_CFLAGS="$CFLAGS -mtune=ultrasparc"
2591 echo "$as_me:2591: checking if $CC supports $OPT_CFLAGS flags" >&5
2592 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2593 SAVE_CFLAGS="$CFLAGS"
2594 CFLAGS="$OPT_CFLAGS"
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #line 2596 "configure"
2597 #include "confdefs.h"
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:2608: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>&5
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:2614: \"$ac_try\"") >&5
2617 echo "$as_me:2617: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 ac_cv_try_cflags_ok=yes
2621 echo "$as_me: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2623 ac_cv_try_cflags_ok=no
2625 rm -f conftest.$ac_objext conftest.$ac_ext
2626 CFLAGS="$SAVE_CFLAGS"
2627 echo "$as_me:2627: result: $ac_cv_try_cflags_ok" >&5
2628 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2629 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2634 mips-sgi-irix6.*) OPT_CFLAGS="$CFLAGS -mabi=64"
2635 echo "$as_me:2635: checking if $CC supports $OPT_CFLAGS flags" >&5
2636 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2637 SAVE_CFLAGS="$CFLAGS"
2638 CFLAGS="$OPT_CFLAGS"
2639 cat >conftest.$ac_ext <<_ACEOF
2640 #line 2640 "configure"
2641 #include "confdefs.h"
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:2652: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>&5
2655 echo "$as_me:2655: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:2658: \"$ac_try\"") >&5
2661 echo "$as_me:2661: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv_try_cflags_ok=yes
2665 echo "$as_me: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2667 ac_cv_try_cflags_ok=no
2669 rm -f conftest.$ac_objext conftest.$ac_ext
2670 CFLAGS="$SAVE_CFLAGS"
2671 echo "$as_me:2671: result: $ac_cv_try_cflags_ok" >&5
2672 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2673 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2679 elif test x"$CC" = x"tcc" -a x"`$CC -version 2>&1 | grep TenDRA`" != x""; then
2681 CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE"
2684 enable_solaris_audio=no
2685 elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then
2686 CFLAGS="-g -O3 -unroll -ip"
2688 case "$host_alias" in
2690 OPT_CFLAGS="$CFLAGS -64"
2691 echo "$as_me:2691: checking if $CC supports $OPT_CFLAGS flags" >&5
2692 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2693 SAVE_CFLAGS="$CFLAGS"
2694 CFLAGS="$OPT_CFLAGS"
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line 2696 "configure"
2697 #include "confdefs.h"
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:2708: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>&5
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:2714: \"$ac_try\"") >&5
2717 echo "$as_me:2717: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_cv_try_cflags_ok=yes
2721 echo "$as_me: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 ac_cv_try_cflags_ok=no
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2726 CFLAGS="$SAVE_CFLAGS"
2727 echo "$as_me:2727: result: $ac_cv_try_cflags_ok" >&5
2728 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2729 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2735 OPT_CFLAGS="$CFLAGS -xCC -fast -xO5"
2736 echo "$as_me:2736: checking if $CC supports $OPT_CFLAGS flags" >&5
2737 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2738 SAVE_CFLAGS="$CFLAGS"
2739 CFLAGS="$OPT_CFLAGS"
2740 cat >conftest.$ac_ext <<_ACEOF
2741 #line 2741 "configure"
2742 #include "confdefs.h"
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:2759: \"$ac_try\"") >&5
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 ac_cv_try_cflags_ok=yes
2766 echo "$as_me: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 ac_cv_try_cflags_ok=no
2770 rm -f conftest.$ac_objext conftest.$ac_ext
2771 CFLAGS="$SAVE_CFLAGS"
2772 echo "$as_me:2772: result: $ac_cv_try_cflags_ok" >&5
2773 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2774 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2782 # Check whether --enable-shared or --disable-shared was given.
2783 if test "${enable_shared+set}" = set; then
2784 enableval="$enable_shared"
2785 p=${PACKAGE-default}
2787 yes) enable_shared=yes ;;
2788 no) enable_shared=no ;;
2791 # Look at the argument we got. We use all the common list separators.
2792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2793 for pkg in $enableval; do
2794 if test "X$pkg" = "X$p"; then
2805 # Check whether --enable-static or --disable-static was given.
2806 if test "${enable_static+set}" = set; then
2807 enableval="$enable_static"
2808 p=${PACKAGE-default}
2810 yes) enable_static=yes ;;
2811 no) enable_static=no ;;
2814 # Look at the argument we got. We use all the common list separators.
2815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2816 for pkg in $enableval; do
2817 if test "X$pkg" = "X$p"; then
2827 # Check whether --enable-fast-install or --disable-fast-install was given.
2828 if test "${enable_fast_install+set}" = set; then
2829 enableval="$enable_fast_install"
2830 p=${PACKAGE-default}
2832 yes) enable_fast_install=yes ;;
2833 no) enable_fast_install=no ;;
2835 enable_fast_install=no
2836 # Look at the argument we got. We use all the common list separators.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2838 for pkg in $enableval; do
2839 if test "X$pkg" = "X$p"; then
2840 enable_fast_install=yes
2847 enable_fast_install=yes
2849 # Find the correct PATH separator. Usually this is `:', but
2850 # DJGPP uses `;' like DOS.
2851 if test "X${PATH_SEPARATOR+set}" != Xset; then
2852 UNAME=${UNAME-`uname 2>/dev/null`}
2854 *-DOS) lt_cv_sys_path_separator=';' ;;
2855 *) lt_cv_sys_path_separator=':' ;;
2857 PATH_SEPARATOR=$lt_cv_sys_path_separator
2860 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2861 if test "${with_gnu_ld+set}" = set; then
2862 withval="$with_gnu_ld"
2863 test "$withval" = no || with_gnu_ld=yes
2868 if test "$GCC" = yes; then
2869 # Check if gcc -print-prog-name=ld gives a path.
2870 echo "$as_me:2870: checking for ld used by GCC" >&5
2871 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2874 # gcc leaves a trailing carriage return which upsets mingw
2875 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2877 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2880 # Accept absolute paths.
2881 [\\/]* | [A-Za-z]:[\\/]*)
2882 re_direlt='/[^/][^/]*/\.\./'
2883 # Canonicalize the path of ld
2884 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2885 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2886 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2888 test -z "$LD" && LD="$ac_prog"
2891 # If it fails, then pretend we aren't using GCC.
2895 # If it is relative, then search for the first ld in PATH.
2899 elif test "$with_gnu_ld" = yes; then
2900 echo "$as_me:2900: checking for GNU ld" >&5
2901 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2903 echo "$as_me:2903: checking for non-GNU ld" >&5
2904 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2906 if test "${lt_cv_path_LD+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 if test -z "$LD"; then
2910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2911 for ac_dir in $PATH; do
2912 test -z "$ac_dir" && ac_dir=.
2913 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2914 lt_cv_path_LD="$ac_dir/$ac_prog"
2915 # Check to see if the program is GNU ld. I'd rather use --version,
2916 # but apparently some GNU ld's only accept -v.
2917 # Break only if it was the GNU/non-GNU ld that we prefer.
2918 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2919 test "$with_gnu_ld" != no && break
2921 test "$with_gnu_ld" != yes && break
2927 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2932 if test -n "$LD"; then
2933 echo "$as_me:2933: result: $LD" >&5
2934 echo "${ECHO_T}$LD" >&6
2936 echo "$as_me:2936: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2939 test -z "$LD" && { { echo "$as_me:2939: error: no acceptable ld found in \$PATH" >&5
2940 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2941 { (exit 1); exit 1; }; }
2942 echo "$as_me:2942: checking if the linker ($LD) is GNU ld" >&5
2943 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2944 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2948 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2949 lt_cv_prog_gnu_ld=yes
2951 lt_cv_prog_gnu_ld=no
2954 echo "$as_me:2954: result: $lt_cv_prog_gnu_ld" >&5
2955 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2956 with_gnu_ld=$lt_cv_prog_gnu_ld
2958 echo "$as_me:2958: checking for $LD option to reload object files" >&5
2959 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2960 if test "${lt_cv_ld_reload_flag+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 lt_cv_ld_reload_flag='-r'
2965 echo "$as_me:2965: result: $lt_cv_ld_reload_flag" >&5
2966 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2967 reload_flag=$lt_cv_ld_reload_flag
2968 test -n "$reload_flag" && reload_flag=" $reload_flag"
2970 echo "$as_me:2970: checking for BSD-compatible nm" >&5
2971 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2972 if test "${lt_cv_path_NM+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 if test -n "$NM"; then
2976 # Let the user override the test.
2979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2980 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2981 test -z "$ac_dir" && ac_dir=.
2982 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2983 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2984 # Check to see if the nm accepts a BSD-compat flag.
2985 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2986 # nm: unknown option "B" ignored
2987 # Tru64's nm complains that /dev/null is an invalid object file
2988 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2989 lt_cv_path_NM="$tmp_nm -B"
2991 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2992 lt_cv_path_NM="$tmp_nm -p"
2995 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2996 continue # so that we can try to find one that supports BSD flags
3001 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3006 echo "$as_me:3006: result: $NM" >&5
3007 echo "${ECHO_T}$NM" >&6
3009 echo "$as_me:3009: checking whether ln -s works" >&5
3010 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3012 if test "$LN_S" = "ln -s"; then
3013 echo "$as_me:3013: result: yes" >&5
3014 echo "${ECHO_T}yes" >&6
3016 echo "$as_me:3016: result: no, using $LN_S" >&5
3017 echo "${ECHO_T}no, using $LN_S" >&6
3020 echo "$as_me:3020: checking how to recognise dependant libraries" >&5
3021 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3022 if test "${lt_cv_deplibs_check_method+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 lt_cv_file_magic_cmd='$MAGIC_CMD'
3026 lt_cv_file_magic_test_file=
3027 lt_cv_deplibs_check_method='unknown'
3028 # Need to set the preceding variable on all platforms that support
3029 # interlibrary dependencies.
3030 # 'none' -- dependencies not supported.
3031 # `unknown' -- same as none, but documents that we really don't know.
3032 # 'pass_all' -- all dependencies passed with no checks.
3033 # 'test_compile' -- check by making test program.
3034 # 'file_magic [[regex]]' -- check by looking for files in library path
3035 # which responds to the $file_magic_cmd with a given egrep regex.
3036 # If you have `file' or equivalent on your system and you're not sure
3037 # whether `pass_all' will *always* work, you probably want this one.
3041 lt_cv_deplibs_check_method=pass_all
3045 lt_cv_deplibs_check_method=pass_all
3049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3050 lt_cv_file_magic_cmd='/usr/bin/file -L'
3051 lt_cv_file_magic_test_file=/shlib/libc.so
3054 cygwin* | mingw* | pw32*)
3055 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3056 lt_cv_file_magic_cmd='$OBJDUMP -f'
3059 darwin* | rhapsody*)
3060 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3061 lt_cv_file_magic_cmd='/usr/bin/file -L'
3063 rhapsody* | darwin1.[012])
3064 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3067 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3073 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3076 # Not sure whether the presence of OpenBSD here was a mistake.
3077 # Let's accept both of them until this is cleared up.
3078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3079 lt_cv_file_magic_cmd=/usr/bin/file
3080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3084 lt_cv_deplibs_check_method=pass_all
3089 lt_cv_deplibs_check_method=pass_all
3093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3094 lt_cv_file_magic_cmd=/usr/bin/file
3095 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3098 irix5* | irix6* | nonstopux*)
3100 irix5* | nonstopux*)
3101 # this will be overridden with pass_all, but let us keep it just in case
3102 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3106 *-32|*"-32 ") libmagic=32-bit;;
3107 *-n32|*"-n32 ") libmagic=N32;;
3108 *-64|*"-64 ") libmagic=64-bit;;
3109 *) libmagic=never-match;;
3111 # this will be overridden with pass_all, but let us keep it just in case
3112 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3115 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3116 lt_cv_deplibs_check_method=pass_all
3119 # This must be Linux ELF.
3121 lt_cv_deplibs_check_method=pass_all
3122 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3126 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3127 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3129 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3135 lt_cv_file_magic_cmd=/usr/bin/file
3136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3140 lt_cv_file_magic_cmd=/usr/bin/file
3141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3145 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3149 osf3* | osf4* | osf5*)
3150 # this will be overridden with pass_all, but let us keep it just in case
3151 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3152 lt_cv_file_magic_test_file=/shlib/libc.so
3153 lt_cv_deplibs_check_method=pass_all
3157 lt_cv_deplibs_check_method=pass_all
3161 lt_cv_deplibs_check_method=pass_all
3162 lt_cv_file_magic_test_file=/lib/libc.so
3165 sysv5uw[78]* | sysv4*uw2*)
3166 lt_cv_deplibs_check_method=pass_all
3169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3170 case $host_vendor in
3172 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]'
3173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3176 lt_cv_deplibs_check_method=pass_all
3179 lt_cv_file_magic_cmd='/bin/file'
3180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3183 lt_cv_file_magic_cmd='/bin/file'
3184 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3185 lt_cv_file_magic_test_file=/lib/libc.so
3192 echo "$as_me:3192: result: $lt_cv_deplibs_check_method" >&5
3193 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3194 file_magic_cmd=$lt_cv_file_magic_cmd
3195 deplibs_check_method=$lt_cv_deplibs_check_method
3197 # Check for command to grab the raw symbol name followed by C symbol from nm.
3198 echo "$as_me:3198: checking command to parse $NM output" >&5
3199 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3200 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 # These are sane defaults that work on at least a few old systems.
3205 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3207 # Character class describing NM global symbol codes.
3208 symcode='[BCDEGRST]'
3210 # Regexp to match symbols that can be accessed directly from C.
3211 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3213 # Transform the above into a raw symbol and a C symbol.
3214 symxfrm='\1 \2\3 \3'
3216 # Transform an extracted symbol line into a proper C declaration
3217 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3219 # Transform an extracted symbol line into symbol name and symbol address
3220 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3222 # Define system-specific variables.
3227 cygwin* | mingw* | pw32*)
3228 symcode='[ABCDGISTW]'
3230 hpux*) # Its linker distinguishes data from code symbols
3231 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3232 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3235 symcode='[BCDEGRST]'
3245 # Handle CRLF in mingw tool chain
3249 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3253 # If we're using GNU nm, then use its standard symbol codes.
3254 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3255 symcode='[ABCDGISTW]'
3258 # Try without a prefix undercore, then with it.
3259 for ac_symprfx in "" "_"; do
3261 # Write the raw and C identifiers.
3262 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3264 # Check to see that the pipe works correctly.
3267 cat > conftest.$ac_ext <<EOF
3272 void nm_test_func(){}
3276 int main(){nm_test_var='a';nm_test_func();return(0);}
3279 if { (eval echo "$as_me:3279: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>&5
3282 echo "$as_me:3282: \$? = $ac_status" >&5
3283 (exit $ac_status); }; then
3284 # Now try to grab the symbols.
3286 if { (eval echo "$as_me:3286: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3287 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3289 echo "$as_me:3289: \$? = $ac_status" >&5
3290 (exit $ac_status); } && test -s "$nlist"; then
3291 # Try sorting and uniquifying the output.
3292 if sort "$nlist" | uniq > "$nlist"T; then
3293 mv -f "$nlist"T "$nlist"
3298 # Make sure that we snagged all the symbols we need.
3299 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3300 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3301 cat <<EOF > conftest.$ac_ext
3307 # Now generate the symbol file.
3308 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3310 cat <<EOF >> conftest.$ac_ext
3311 #if defined (__STDC__) && __STDC__
3312 # define lt_ptr void *
3314 # define lt_ptr char *
3318 /* The mapping between symbol names and symbols. */
3323 lt_preloaded_symbols[] =
3326 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3327 cat <<\EOF >> conftest.$ac_ext
3335 # Now try linking the two files.
3336 mv conftest.$ac_objext conftstm.$ac_objext
3338 save_CFLAGS="$CFLAGS"
3339 LIBS="conftstm.$ac_objext"
3340 CFLAGS="$CFLAGS$no_builtin_flag"
3341 if { (eval echo "$as_me:3341: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3344 echo "$as_me:3344: \$? = $ac_status" >&5
3345 (exit $ac_status); } && test -s conftest; then
3349 CFLAGS="$save_CFLAGS"
3351 echo "cannot find nm_test_func in $nlist" >&5
3354 echo "cannot find nm_test_var in $nlist" >&5
3357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3360 echo "$progname: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3363 rm -f conftest* conftst*
3365 # Do not use the global_symbol_pipe unless it works.
3366 if test "$pipe_works" = yes; then
3369 lt_cv_sys_global_symbol_pipe=
3375 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3376 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3377 global_symbol_to_cdecl=
3378 global_symbol_to_c_name_address=
3380 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3381 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3383 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3385 echo "$as_me:3385: result: failed" >&5
3386 echo "${ECHO_T}failed" >&6
3388 echo "$as_me:3388: result: ok" >&5
3389 echo "${ECHO_T}ok" >&6
3392 for ac_header in dlfcn.h
3394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3395 echo "$as_me:3395: checking for $ac_header" >&5
3396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line 3401 "configure"
3402 #include "confdefs.h"
3403 #include <$ac_header>
3405 if { (eval echo "$as_me:3405: \"$ac_cpp conftest.$ac_ext\"") >&5
3406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3408 egrep -v '^ *\+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:3411: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3421 if test -z "$ac_cpp_err"; then
3422 eval "$as_ac_Header=yes"
3424 echo "$as_me: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3426 eval "$as_ac_Header=no"
3428 rm -f conftest.err conftest.$ac_ext
3430 echo "$as_me:3430: result: `eval echo '${'$as_ac_Header'}'`" >&5
3431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3433 cat >>confdefs.h <<EOF
3434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3440 # Only perform the check for file, if the check method requires it
3441 case $deplibs_check_method in
3443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3444 echo "$as_me:3444: checking for ${ac_tool_prefix}file" >&5
3445 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3457 ac_save_MAGIC_CMD="$MAGIC_CMD"
3458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3459 ac_dummy="/usr/bin:$PATH"
3460 for ac_dir in $ac_dummy; do
3461 test -z "$ac_dir" && ac_dir=.
3462 if test -f $ac_dir/${ac_tool_prefix}file; then
3463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3464 if test -n "$file_magic_test_file"; then
3465 case $deplibs_check_method in
3467 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3470 egrep "$file_magic_regex" > /dev/null; then
3475 *** Warning: the command libtool uses to detect shared libraries,
3476 *** $file_magic_cmd, produces output that libtool cannot recognize.
3477 *** The result is that libtool may fail to recognize shared libraries
3478 *** as such. This will affect the creation of libtool libraries that
3479 *** depend on shared libraries, but programs linked with such libtool
3480 *** libraries will work regardless of this problem. Nevertheless, you
3481 *** may want to report the problem to your system manager and/or to
3482 *** bug-libtool@gnu.org
3492 MAGIC_CMD="$ac_save_MAGIC_CMD"
3497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3498 if test -n "$MAGIC_CMD"; then
3499 echo "$as_me:3499: result: $MAGIC_CMD" >&5
3500 echo "${ECHO_T}$MAGIC_CMD" >&6
3502 echo "$as_me:3502: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3506 if test -z "$lt_cv_path_MAGIC_CMD"; then
3507 if test -n "$ac_tool_prefix"; then
3508 echo "$as_me:3508: checking for file" >&5
3509 echo $ECHO_N "checking for file... $ECHO_C" >&6
3510 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3521 ac_save_MAGIC_CMD="$MAGIC_CMD"
3522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3523 ac_dummy="/usr/bin:$PATH"
3524 for ac_dir in $ac_dummy; do
3525 test -z "$ac_dir" && ac_dir=.
3526 if test -f $ac_dir/file; then
3527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3528 if test -n "$file_magic_test_file"; then
3529 case $deplibs_check_method in
3531 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3534 egrep "$file_magic_regex" > /dev/null; then
3539 *** Warning: the command libtool uses to detect shared libraries,
3540 *** $file_magic_cmd, produces output that libtool cannot recognize.
3541 *** The result is that libtool may fail to recognize shared libraries
3542 *** as such. This will affect the creation of libtool libraries that
3543 *** depend on shared libraries, but programs linked with such libtool
3544 *** libraries will work regardless of this problem. Nevertheless, you
3545 *** may want to report the problem to your system manager and/or to
3546 *** bug-libtool@gnu.org
3556 MAGIC_CMD="$ac_save_MAGIC_CMD"
3561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3562 if test -n "$MAGIC_CMD"; then
3563 echo "$as_me:3563: result: $MAGIC_CMD" >&5
3564 echo "${ECHO_T}$MAGIC_CMD" >&6
3566 echo "$as_me:3566: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3579 if test -n "$ac_tool_prefix"; then
3580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3582 echo "$as_me:3582: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_RANLIB+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$RANLIB"; then
3588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3590 ac_save_IFS=$IFS; IFS=$ac_path_separator
3592 for ac_dir in $ac_dummy; do
3594 test -z "$ac_dir" && ac_dir=.
3595 $as_executable_p "$ac_dir/$ac_word" || continue
3596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3597 echo "$as_me:3597: found $ac_dir/$ac_word" >&5
3603 RANLIB=$ac_cv_prog_RANLIB
3604 if test -n "$RANLIB"; then
3605 echo "$as_me:3605: result: $RANLIB" >&5
3606 echo "${ECHO_T}$RANLIB" >&6
3608 echo "$as_me:3608: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3613 if test -z "$ac_cv_prog_RANLIB"; then
3614 ac_ct_RANLIB=$RANLIB
3615 # Extract the first word of "ranlib", so it can be a program name with args.
3616 set dummy ranlib; ac_word=$2
3617 echo "$as_me:3617: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test -n "$ac_ct_RANLIB"; then
3623 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3625 ac_save_IFS=$IFS; IFS=$ac_path_separator
3627 for ac_dir in $ac_dummy; do
3629 test -z "$ac_dir" && ac_dir=.
3630 $as_executable_p "$ac_dir/$ac_word" || continue
3631 ac_cv_prog_ac_ct_RANLIB="ranlib"
3632 echo "$as_me:3632: found $ac_dir/$ac_word" >&5
3636 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3640 if test -n "$ac_ct_RANLIB"; then
3641 echo "$as_me:3641: result: $ac_ct_RANLIB" >&5
3642 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3644 echo "$as_me:3644: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3648 RANLIB=$ac_ct_RANLIB
3650 RANLIB="$ac_cv_prog_RANLIB"
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}strip; ac_word=$2
3656 echo "$as_me:3656: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_prog_STRIP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 if test -n "$STRIP"; then
3662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3664 ac_save_IFS=$IFS; IFS=$ac_path_separator
3666 for ac_dir in $ac_dummy; do
3668 test -z "$ac_dir" && ac_dir=.
3669 $as_executable_p "$ac_dir/$ac_word" || continue
3670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3671 echo "$as_me:3671: found $ac_dir/$ac_word" >&5
3677 STRIP=$ac_cv_prog_STRIP
3678 if test -n "$STRIP"; then
3679 echo "$as_me:3679: result: $STRIP" >&5
3680 echo "${ECHO_T}$STRIP" >&6
3682 echo "$as_me:3682: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$ac_cv_prog_STRIP"; then
3689 # Extract the first word of "strip", so it can be a program name with args.
3690 set dummy strip; ac_word=$2
3691 echo "$as_me:3691: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if test -n "$ac_ct_STRIP"; then
3697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3699 ac_save_IFS=$IFS; IFS=$ac_path_separator
3701 for ac_dir in $ac_dummy; do
3703 test -z "$ac_dir" && ac_dir=.
3704 $as_executable_p "$ac_dir/$ac_word" || continue
3705 ac_cv_prog_ac_ct_STRIP="strip"
3706 echo "$as_me:3706: found $ac_dir/$ac_word" >&5
3710 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3714 if test -n "$ac_ct_STRIP"; then
3715 echo "$as_me:3715: result: $ac_ct_STRIP" >&5
3716 echo "${ECHO_T}$ac_ct_STRIP" >&6
3718 echo "$as_me:3718: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3724 STRIP="$ac_cv_prog_STRIP"
3728 enable_win32_dll=yes
3730 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3731 if test "${enable_libtool_lock+set}" = set; then
3732 enableval="$enable_libtool_lock"
3735 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3737 # Some flags need to be propagated to the compiler or linker for good
3741 # Find out which ABI we are using.
3742 echo '#line 3742 "configure"' > conftest.$ac_ext
3743 if { (eval echo "$as_me:3743: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>&5
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit $ac_status); }; then
3748 case `/usr/bin/file conftest.$ac_objext` in
3764 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3765 SAVE_CFLAGS="$CFLAGS"
3766 CFLAGS="$CFLAGS -belf"
3767 echo "$as_me:3767: checking whether the C compiler needs -belf" >&5
3768 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3769 if test "${lt_cv_cc_needs_belf+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 cat >conftest.$ac_ext <<_ACEOF
3780 #line 3780 "configure"
3781 #include "confdefs.h"
3791 rm -f conftest.$ac_objext conftest$ac_exeext
3792 if { (eval echo "$as_me:3792: \"$ac_link\"") >&5
3793 (eval $ac_link) 2>&5
3795 echo "$as_me:3795: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -s conftest$ac_exeext'
3798 { (eval echo "$as_me:3798: \"$ac_try\"") >&5
3801 echo "$as_me:3801: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 lt_cv_cc_needs_belf=yes
3805 echo "$as_me: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3807 lt_cv_cc_needs_belf=no
3809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 echo "$as_me:3817: result: $lt_cv_cc_needs_belf" >&5
3818 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3819 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3820 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3821 CFLAGS="$SAVE_CFLAGS"
3825 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3829 echo "$as_me:3829: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if test -n "$DLLTOOL"; then
3835 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3837 ac_save_IFS=$IFS; IFS=$ac_path_separator
3839 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 $as_executable_p "$ac_dir/$ac_word" || continue
3843 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3844 echo "$as_me:3844: found $ac_dir/$ac_word" >&5
3850 DLLTOOL=$ac_cv_prog_DLLTOOL
3851 if test -n "$DLLTOOL"; then
3852 echo "$as_me:3852: result: $DLLTOOL" >&5
3853 echo "${ECHO_T}$DLLTOOL" >&6
3855 echo "$as_me:3855: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3860 if test -z "$ac_cv_prog_DLLTOOL"; then
3861 ac_ct_DLLTOOL=$DLLTOOL
3862 # Extract the first word of "dlltool", so it can be a program name with args.
3863 set dummy dlltool; ac_word=$2
3864 echo "$as_me:3864: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$ac_ct_DLLTOOL"; then
3870 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3872 ac_save_IFS=$IFS; IFS=$ac_path_separator
3874 for ac_dir in $ac_dummy; do
3876 test -z "$ac_dir" && ac_dir=.
3877 $as_executable_p "$ac_dir/$ac_word" || continue
3878 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3879 echo "$as_me:3879: found $ac_dir/$ac_word" >&5
3883 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3886 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3887 if test -n "$ac_ct_DLLTOOL"; then
3888 echo "$as_me:3888: result: $ac_ct_DLLTOOL" >&5
3889 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3891 echo "$as_me:3891: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3895 DLLTOOL=$ac_ct_DLLTOOL
3897 DLLTOOL="$ac_cv_prog_DLLTOOL"
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}as; ac_word=$2
3903 echo "$as_me:3903: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_prog_AS+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 if test -n "$AS"; then
3909 ac_cv_prog_AS="$AS" # Let the user override the test.
3911 ac_save_IFS=$IFS; IFS=$ac_path_separator
3913 for ac_dir in $ac_dummy; do
3915 test -z "$ac_dir" && ac_dir=.
3916 $as_executable_p "$ac_dir/$ac_word" || continue
3917 ac_cv_prog_AS="${ac_tool_prefix}as"
3918 echo "$as_me:3918: found $ac_dir/$ac_word" >&5
3925 if test -n "$AS"; then
3926 echo "$as_me:3926: result: $AS" >&5
3927 echo "${ECHO_T}$AS" >&6
3929 echo "$as_me:3929: result: no" >&5
3930 echo "${ECHO_T}no" >&6
3934 if test -z "$ac_cv_prog_AS"; then
3936 # Extract the first word of "as", so it can be a program name with args.
3937 set dummy as; ac_word=$2
3938 echo "$as_me:3938: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 if test -n "$ac_ct_AS"; then
3944 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3946 ac_save_IFS=$IFS; IFS=$ac_path_separator
3948 for ac_dir in $ac_dummy; do
3950 test -z "$ac_dir" && ac_dir=.
3951 $as_executable_p "$ac_dir/$ac_word" || continue
3952 ac_cv_prog_ac_ct_AS="as"
3953 echo "$as_me:3953: found $ac_dir/$ac_word" >&5
3957 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3960 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3961 if test -n "$ac_ct_AS"; then
3962 echo "$as_me:3962: result: $ac_ct_AS" >&5
3963 echo "${ECHO_T}$ac_ct_AS" >&6
3965 echo "$as_me:3965: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3974 if test -n "$ac_tool_prefix"; then
3975 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3977 echo "$as_me:3977: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 if test -n "$OBJDUMP"; then
3983 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3985 ac_save_IFS=$IFS; IFS=$ac_path_separator
3987 for ac_dir in $ac_dummy; do
3989 test -z "$ac_dir" && ac_dir=.
3990 $as_executable_p "$ac_dir/$ac_word" || continue
3991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3992 echo "$as_me:3992: found $ac_dir/$ac_word" >&5
3998 OBJDUMP=$ac_cv_prog_OBJDUMP
3999 if test -n "$OBJDUMP"; then
4000 echo "$as_me:4000: result: $OBJDUMP" >&5
4001 echo "${ECHO_T}$OBJDUMP" >&6
4003 echo "$as_me:4003: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4008 if test -z "$ac_cv_prog_OBJDUMP"; then
4009 ac_ct_OBJDUMP=$OBJDUMP
4010 # Extract the first word of "objdump", so it can be a program name with args.
4011 set dummy objdump; ac_word=$2
4012 echo "$as_me:4012: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 if test -n "$ac_ct_OBJDUMP"; then
4018 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4020 ac_save_IFS=$IFS; IFS=$ac_path_separator
4022 for ac_dir in $ac_dummy; do
4024 test -z "$ac_dir" && ac_dir=.
4025 $as_executable_p "$ac_dir/$ac_word" || continue
4026 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4027 echo "$as_me:4027: found $ac_dir/$ac_word" >&5
4031 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4034 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4035 if test -n "$ac_ct_OBJDUMP"; then
4036 echo "$as_me:4036: result: $ac_ct_OBJDUMP" >&5
4037 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4039 echo "$as_me:4039: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 OBJDUMP=$ac_ct_OBJDUMP
4045 OBJDUMP="$ac_cv_prog_OBJDUMP"
4048 # recent cygwin and mingw systems supply a stub DllMain which the user
4049 # can override, but on older systems we have to supply one
4050 echo "$as_me:4050: checking if libtool should supply DllMain function" >&5
4051 echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6
4052 if test "${lt_cv_need_dllmain+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 cat >conftest.$ac_ext <<_ACEOF
4056 #line 4056 "configure"
4057 #include "confdefs.h"
4062 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:4069: \"$ac_link\"") >&5
4070 (eval $ac_link) 2>&5
4072 echo "$as_me:4072: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -s conftest$ac_exeext'
4075 { (eval echo "$as_me:4075: \"$ac_try\"") >&5
4078 echo "$as_me:4078: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 lt_cv_need_dllmain=no
4082 echo "$as_me: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4084 lt_cv_need_dllmain=yes
4086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4088 echo "$as_me:4088: result: $lt_cv_need_dllmain" >&5
4089 echo "${ECHO_T}$lt_cv_need_dllmain" >&6
4092 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4093 # old mingw systems require "-dll" to link a DLL, while more recent ones
4095 SAVE_CFLAGS="$CFLAGS"
4096 CFLAGS="$CFLAGS -mdll"
4097 echo "$as_me:4097: checking how to link DLLs" >&5
4098 echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6
4099 if test "${lt_cv_cc_dll_switch+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4114 rm -f conftest.$ac_objext conftest$ac_exeext
4115 if { (eval echo "$as_me:4115: \"$ac_link\"") >&5
4116 (eval $ac_link) 2>&5
4118 echo "$as_me:4118: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -s conftest$ac_exeext'
4121 { (eval echo "$as_me:4121: \"$ac_try\"") >&5
4124 echo "$as_me:4124: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 lt_cv_cc_dll_switch=-mdll
4128 echo "$as_me: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4130 lt_cv_cc_dll_switch=-dll
4132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4134 echo "$as_me:4134: result: $lt_cv_cc_dll_switch" >&5
4135 echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6
4136 CFLAGS="$SAVE_CFLAGS" ;;
4137 *-*-cygwin* | *-*-pw32*)
4138 # cygwin systems need to pass --dll to the linker, and not link
4139 # crt.o which will require a WinMain@16 definition.
4140 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4146 # Sed substitution that helps us do robust quoting. It backslashifies
4147 # metacharacters that are still active within double-quoted strings.
4148 Xsed='sed -e s/^X//'
4149 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4151 # Same as above, but do not quote variable references.
4152 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4154 # Sed substitution to delay expansion of an escaped shell variable in a
4155 # double_quote_subst'ed string.
4156 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4162 default_ofile=libtool
4163 can_build_shared=yes
4165 # All known linkers require a `.a' archive for static linking (except M$VC,
4166 # which needs '.lib').
4168 ltmain="$ac_aux_dir/ltmain.sh"
4169 ofile="$default_ofile"
4170 with_gnu_ld="$lt_cv_prog_gnu_ld"
4171 need_locks="$enable_libtool_lock"
4174 old_CFLAGS="$CFLAGS"
4176 # Set sane defaults for various variables
4177 test -z "$AR" && AR=ar
4178 test -z "$AR_FLAGS" && AR_FLAGS=cru
4179 test -z "$AS" && AS=as
4180 test -z "$CC" && CC=cc
4181 test -z "$DLLTOOL" && DLLTOOL=dlltool
4182 test -z "$LD" && LD=ld
4183 test -z "$LN_S" && LN_S="ln -s"
4184 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4185 test -z "$NM" && NM=nm
4186 test -z "$OBJDUMP" && OBJDUMP=objdump
4187 test -z "$RANLIB" && RANLIB=:
4188 test -z "$STRIP" && STRIP=:
4189 test -z "$ac_objext" && ac_objext=o
4191 if test x"$host" != x"$build"; then
4192 ac_tool_prefix=${host_alias}-
4197 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4200 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4205 # AIX sometimes has problems with the GCC collect2 program. For some
4206 # reason, if we set the COLLECT_NAMES environment variable, the problems
4207 # vanish in a puff of smoke.
4208 if test "X${COLLECT_NAMES+set}" != Xset; then
4210 export COLLECT_NAMES
4215 # Determine commands to create old-style static archives.
4216 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4217 old_postinstall_cmds='chmod 644 $oldlib'
4218 old_postuninstall_cmds=
4220 if test -n "$RANLIB"; then
4223 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4226 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4229 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4232 # Allow CC to be a program name with arguments.
4236 echo "$as_me:4236: checking for objdir" >&5
4237 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4238 rm -f .libs 2>/dev/null
4239 mkdir .libs 2>/dev/null
4240 if test -d .libs; then
4243 # MS-DOS does not allow filenames that begin with a dot.
4246 rmdir .libs 2>/dev/null
4247 echo "$as_me:4247: result: $objdir" >&5
4248 echo "${ECHO_T}$objdir" >&6
4250 # Check whether --with-pic or --without-pic was given.
4251 if test "${with_pic+set}" = set; then
4257 test -z "$pic_mode" && pic_mode=default
4259 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4260 # in isolation, and that seeing it set (from the cache) indicates that
4261 # the associated values are set (in the cache) correctly too.
4262 echo "$as_me:4262: checking for $compiler option to produce PIC" >&5
4263 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4264 if test "${lt_cv_prog_cc_pic+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 lt_cv_prog_cc_shlib=
4270 lt_cv_prog_cc_static=
4271 lt_cv_prog_cc_no_builtin=
4272 lt_cv_prog_cc_can_build_shared=$can_build_shared
4274 if test "$GCC" = yes; then
4275 lt_cv_prog_cc_wl='-Wl,'
4276 lt_cv_prog_cc_static='-static'
4280 # Below there is a dirty hack to force normal static linking with -ldl
4281 # The problem is because libdl dynamically linked with both libc and
4282 # libC (AIX C++ library), which obviously doesn't included in libraries
4283 # list by gcc. This cause undefined symbols with -static flags.
4284 # This hack allows C programs to be linked with "-static -ldl", but
4285 # not sure about C++ programs.
4286 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4289 # FIXME: we need at least 68020 code to build shared libraries, but
4290 # adding the `-m68020' flag to GCC prevents building anything better,
4292 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4295 # PIC is the default for these OSes.
4297 darwin* | rhapsody*)
4298 # PIC is the default on this platform
4299 # Common symbols not allowed in MH_DYLIB files
4300 lt_cv_prog_cc_pic='-fno-common'
4302 cygwin* | mingw* | pw32* | os2*)
4303 # This hack is so that the source file can tell whether it is being
4304 # built for inclusion in a dll (and should export symbols for example).
4305 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4308 if test -d /usr/nec; then
4309 lt_cv_prog_cc_pic=-Kconform_pic
4313 lt_cv_prog_cc_pic='-fPIC'
4317 # PORTME Check for PIC flags for the system compiler.
4319 aix3* | aix4* | aix5*)
4320 lt_cv_prog_cc_wl='-Wl,'
4321 # All AIX code is PIC.
4322 if test "$host_cpu" = ia64; then
4323 # AIX 5 now supports IA64 processor
4324 lt_cv_prog_cc_static='-Bstatic'
4326 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4330 hpux9* | hpux10* | hpux11*)
4331 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4332 lt_cv_prog_cc_wl='-Wl,'
4333 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4334 lt_cv_prog_cc_pic='+Z'
4337 irix5* | irix6* | nonstopux*)
4338 lt_cv_prog_cc_wl='-Wl,'
4339 lt_cv_prog_cc_static='-non_shared'
4340 # PIC (with -KPIC) is the default.
4343 cygwin* | mingw* | pw32* | os2*)
4344 # This hack is so that the source file can tell whether it is being
4345 # built for inclusion in a dll (and should export symbols for example).
4346 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4350 lt_cv_prog_cc_pic='-KPIC'
4351 lt_cv_prog_cc_static='-Bstatic'
4354 osf3* | osf4* | osf5*)
4355 # All OSF/1 code is PIC.
4356 lt_cv_prog_cc_wl='-Wl,'
4357 lt_cv_prog_cc_static='-non_shared'
4361 lt_cv_prog_cc_pic='-Kpic'
4362 lt_cv_prog_cc_static='-dn'
4363 lt_cv_prog_cc_shlib='-belf'
4367 lt_cv_prog_cc_pic='-KPIC'
4368 lt_cv_prog_cc_static='-Bstatic'
4369 lt_cv_prog_cc_wl='-Wl,'
4373 lt_cv_prog_cc_pic='-PIC'
4374 lt_cv_prog_cc_static='-Bstatic'
4375 lt_cv_prog_cc_wl='-Qoption ld '
4378 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4379 lt_cv_prog_cc_pic='-KPIC'
4380 lt_cv_prog_cc_static='-Bstatic'
4381 if test "x$host_vendor" = xsni; then
4382 lt_cv_prog_cc_wl='-LD'
4384 lt_cv_prog_cc_wl='-Wl,'
4389 lt_cv_prog_cc_pic='-pic'
4390 lt_cv_prog_cc_static='-Bstatic'
4394 if test -d /usr/nec ;then
4395 lt_cv_prog_cc_pic='-Kconform_pic'
4396 lt_cv_prog_cc_static='-Bstatic'
4401 lt_cv_prog_cc_can_build_shared=no
4408 if test -z "$lt_cv_prog_cc_pic"; then
4409 echo "$as_me:4409: result: none" >&5
4410 echo "${ECHO_T}none" >&6
4412 echo "$as_me:4412: result: $lt_cv_prog_cc_pic" >&5
4413 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4415 # Check to make sure the pic_flag actually works.
4416 echo "$as_me:4416: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4417 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4418 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 save_CFLAGS="$CFLAGS"
4422 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4423 cat >conftest.$ac_ext <<_ACEOF
4424 #line 4424 "configure"
4425 #include "confdefs.h"
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:4436: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>&5
4439 echo "$as_me:4439: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:4442: \"$ac_try\"") >&5
4445 echo "$as_me:4445: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4448 hpux9* | hpux10* | hpux11*)
4449 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4450 # they create non-PIC objects. So, if there were any warnings, we
4451 # assume that PIC is not supported.
4452 if test -s conftest.err; then
4453 lt_cv_prog_cc_pic_works=no
4455 lt_cv_prog_cc_pic_works=yes
4459 lt_cv_prog_cc_pic_works=yes
4464 echo "$as_me: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4466 lt_cv_prog_cc_pic_works=no
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 CFLAGS="$save_CFLAGS"
4474 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4476 lt_cv_prog_cc_can_build_shared=no
4478 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4481 echo "$as_me:4481: result: $lt_cv_prog_cc_pic_works" >&5
4482 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4485 # Check for any special shared library compilation flags.
4486 if test -n "$lt_cv_prog_cc_shlib"; then
4487 { echo "$as_me:4487: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4488 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4489 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4491 { echo "$as_me:4491: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4492 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4493 lt_cv_prog_cc_can_build_shared=no
4497 echo "$as_me:4497: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4498 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4499 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 lt_cv_prog_cc_static_works=no
4503 save_LDFLAGS="$LDFLAGS"
4504 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4505 cat >conftest.$ac_ext <<_ACEOF
4506 #line 4506 "configure"
4507 #include "confdefs.h"
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:4518: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>&5
4521 echo "$as_me:4521: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:4524: \"$ac_try\"") >&5
4527 echo "$as_me:4527: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 lt_cv_prog_cc_static_works=yes
4531 echo "$as_me: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4535 LDFLAGS="$save_LDFLAGS"
4539 # Belt *and* braces to stop my trousers falling down:
4540 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4541 echo "$as_me:4541: result: $lt_cv_prog_cc_static_works" >&5
4542 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4544 pic_flag="$lt_cv_prog_cc_pic"
4545 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4546 wl="$lt_cv_prog_cc_wl"
4547 link_static_flag="$lt_cv_prog_cc_static"
4548 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4549 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4551 # Check to see if options -o and -c are simultaneously supported by compiler
4552 echo "$as_me:4552: checking if $compiler supports -c -o file.$ac_objext" >&5
4553 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4554 if test "${lt_cv_compiler_c_o+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 $rm -r conftest 2>/dev/null
4561 echo "int some_variable = 0;" > conftest.$ac_ext
4563 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4564 # that will create temporary files in the current directory regardless of
4565 # the output directory. Thus, making CWD read-only will cause this test
4566 # to fail, enabling locking or at least warning the user not to do parallel
4569 save_CFLAGS="$CFLAGS"
4570 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4572 if { (eval echo configure:4572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4573 # The compiler can only warn and ignore the option if not recognized
4574 # So say no if there are warnings
4575 if test -s out/conftest.err; then
4576 lt_cv_compiler_c_o=no
4578 lt_cv_compiler_c_o=yes
4581 # Append any errors to the config.log.
4582 cat out/conftest.err 1>&5
4583 lt_cv_compiler_c_o=no
4585 CFLAGS="$save_CFLAGS"
4591 $rm -r conftest 2>/dev/null
4595 compiler_c_o=$lt_cv_compiler_c_o
4596 echo "$as_me:4596: result: $compiler_c_o" >&5
4597 echo "${ECHO_T}$compiler_c_o" >&6
4599 if test x"$compiler_c_o" = x"yes"; then
4600 # Check to see if we can write to a .lo
4601 echo "$as_me:4601: checking if $compiler supports -c -o file.lo" >&5
4602 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4603 if test "${lt_cv_compiler_o_lo+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 lt_cv_compiler_o_lo=no
4608 save_CFLAGS="$CFLAGS"
4609 CFLAGS="$CFLAGS -c -o conftest.lo"
4610 save_objext="$ac_objext"
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #line 4613 "configure"
4614 #include "confdefs.h"
4619 int some_variable = 0;
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:4625: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4628 echo "$as_me:4628: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:4631: \"$ac_try\"") >&5
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 # The compiler can only warn and ignore the option if not recognized
4637 # So say no if there are warnings
4638 if test -s conftest.err; then
4639 lt_cv_compiler_o_lo=no
4641 lt_cv_compiler_o_lo=yes
4645 echo "$as_me: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 rm -f conftest.$ac_objext conftest.$ac_ext
4649 ac_objext="$save_objext"
4650 CFLAGS="$save_CFLAGS"
4654 compiler_o_lo=$lt_cv_compiler_o_lo
4655 echo "$as_me:4655: result: $compiler_o_lo" >&5
4656 echo "${ECHO_T}$compiler_o_lo" >&6
4661 # Check to see if we can do hard links to lock some files if needed
4662 hard_links="nottested"
4663 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4664 # do not overwrite the value of need_locks provided by the user
4665 echo "$as_me:4665: checking if we can lock with hard links" >&5
4666 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4671 ln conftest.a conftest.b 2>&5 || hard_links=no
4672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4673 echo "$as_me:4673: result: $hard_links" >&5
4674 echo "${ECHO_T}$hard_links" >&6
4675 if test "$hard_links" = no; then
4676 { echo "$as_me:4676: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4677 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4684 if test "$GCC" = yes; then
4685 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4686 echo "$as_me:4686: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4687 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4688 echo "int some_variable = 0;" > conftest.$ac_ext
4689 save_CFLAGS="$CFLAGS"
4690 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4691 compiler_rtti_exceptions=no
4692 cat >conftest.$ac_ext <<_ACEOF
4693 #line 4693 "configure"
4694 #include "confdefs.h"
4699 int some_variable = 0;
4704 rm -f conftest.$ac_objext
4705 if { (eval echo "$as_me:4705: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>&5
4708 echo "$as_me:4708: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -s conftest.$ac_objext'
4711 { (eval echo "$as_me:4711: \"$ac_try\"") >&5
4714 echo "$as_me:4714: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 # The compiler can only warn and ignore the option if not recognized
4717 # So say no if there are warnings
4718 if test -s conftest.err; then
4719 compiler_rtti_exceptions=no
4721 compiler_rtti_exceptions=yes
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4728 rm -f conftest.$ac_objext conftest.$ac_ext
4729 CFLAGS="$save_CFLAGS"
4730 echo "$as_me:4730: result: $compiler_rtti_exceptions" >&5
4731 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4733 if test "$compiler_rtti_exceptions" = "yes"; then
4734 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4736 no_builtin_flag=' -fno-builtin'
4740 # See if the linker supports building shared libraries.
4741 echo "$as_me:4741: checking whether the linker ($LD) supports shared libraries" >&5
4742 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4744 allow_undefined_flag=
4746 need_lib_prefix=unknown
4747 need_version=unknown
4748 # when you set need_version to no, make sure it does not cause -set_version
4749 # flags to be left without arguments
4751 archive_expsym_cmds=
4752 old_archive_from_new_cmds=
4753 old_archive_from_expsyms_cmds=
4754 export_dynamic_flag_spec=
4755 whole_archive_flag_spec=
4756 thread_safe_flag_spec=
4757 hardcode_into_libs=no
4758 hardcode_libdir_flag_spec=
4759 hardcode_libdir_separator=
4762 hardcode_shlibpath_var=unsupported
4764 link_all_deplibs=unknown
4765 always_export_symbols=no
4766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4767 # include_expsyms should be a list of space-separated symbols to be *always*
4768 # included in the symbol list
4770 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4771 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4772 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4773 # as well as any symbol that contains `d'.
4774 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4776 # platforms (ab)use it in PIC code, but their linkers get confused if
4777 # the symbol is explicitly referenced. Since portable code cannot
4778 # rely on this symbol name, it's probably fine to never include it in
4779 # preloaded symbol tables.
4780 extract_expsyms_cmds=
4783 cygwin* | mingw* | pw32*)
4784 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4785 # When not using gcc, we currently assume that we are using
4786 # Microsoft Visual C++.
4787 if test "$GCC" != yes; then
4797 if test "$with_gnu_ld" = yes; then
4798 # If archive_cmds runs LD, not CC, wlarc should be empty
4801 # See if GNU ld supports shared libraries.
4803 aix3* | aix4* | aix5*)
4804 # On AIX, the GNU linker is very broken
4805 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4809 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4810 *** to be unable to reliably create shared libraries on AIX.
4811 *** Therefore, libtool is disabling shared libraries support. If you
4812 *** really care for shared libraries, you may want to modify your PATH
4813 *** so that a non-GNU linker is found, and then restart.
4819 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)'
4820 hardcode_libdir_flag_spec='-L$libdir'
4821 hardcode_minus_L=yes
4823 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4824 # that the semantics of dynamic libraries on AmigaOS, at least up
4825 # to version 4, is to share data among multiple programs linked
4826 # with the same dynamic library. Since this doesn't match the
4827 # behavior of shared libraries on other platforms, we can use
4833 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4834 allow_undefined_flag=unsupported
4835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4836 # support --undefined. This deserves some investigation. FIXME
4837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4843 cygwin* | mingw* | pw32*)
4844 # hardcode_libdir_flag_spec is actually meaningless, as there is
4845 # no search path for DLLs.
4846 hardcode_libdir_flag_spec='-L$libdir'
4847 allow_undefined_flag=unsupported
4848 always_export_symbols=yes
4850 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4851 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4852 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4853 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4854 else $CC -o impgen impgen.c ; fi)~
4855 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4857 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4859 # cygwin and mingw dlls have different entry points and sets of symbols
4861 # FIXME: what about values for MSVC?
4862 dll_entry=__cygwin_dll_entry@12
4863 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4867 dll_entry=_DllMainCRTStartup@12
4868 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4872 # mingw and cygwin differ, and it's simplest to just exclude the union
4873 # of the two symbol sets.
4874 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4876 # recent cygwin and mingw systems supply a stub DllMain which the user
4877 # can override, but on older systems we have to supply one (in ltdll.c)
4878 if test "x$lt_cv_need_dllmain" = "xyes"; then
4879 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4880 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~
4881 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4887 # Extract the symbol export list from an `--export-all' def file,
4888 # then regenerate the def file from the symbol export list, so that
4889 # the compiled dll only exports the symbol export list.
4890 # Be careful not to strip the DATA tag left be newer dlltools.
4891 export_symbols_cmds="$ltdll_cmds"'
4892 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4893 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4895 # If the export-symbols file already is a .def file (1st line
4896 # is EXPORTS), use it as is.
4897 # If DATA tags from a recent dlltool are present, honour them!
4898 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4899 cp $export_symbols $output_objdir/$soname-def;
4901 echo EXPORTS > $output_objdir/$soname-def;
4903 cat $export_symbols | while read symbol; do
4906 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4907 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4909 _lt_hint=`expr 1 + \$_lt_hint`;
4913 $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~
4914 $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~
4915 $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~
4916 $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~
4917 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4922 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4925 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4926 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4931 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4935 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4936 *** create shared libraries on Solaris systems. Therefore, libtool
4937 *** is disabling shared libraries support. We urge you to upgrade GNU
4938 *** binutils to release 2.9.1 or newer. Another option is to modify
4939 *** your PATH or compiler configuration so that the native linker is
4940 *** used, and then restart.
4943 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4952 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4955 hardcode_shlibpath_var=no
4959 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4968 if test "$ld_shlibs" = yes; then
4969 runpath_var=LD_RUN_PATH
4970 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4971 export_dynamic_flag_spec='${wl}--export-dynamic'
4973 cygwin* | mingw* | pw32*)
4974 # dlltool doesn't understand --whole-archive et. al.
4975 whole_archive_flag_spec=
4978 # ancient GNU ld didn't support --whole-archive et. al.
4979 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4982 whole_archive_flag_spec=
4988 # PORTME fill in a description of your system's linker (not GNU ld)
4991 allow_undefined_flag=unsupported
4992 always_export_symbols=yes
4993 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'
4994 # Note: this linker hardcodes the directories in LIBPATH if there
4995 # are no directories specified by -L.
4996 hardcode_minus_L=yes
4997 if test "$GCC" = yes && test -z "$link_static_flag"; then
4998 # Neither direct hardcoding nor static linking is supported with a
5000 hardcode_direct=unsupported
5005 if test "$host_cpu" = ia64; then
5006 # On IA64, the linker does run time linking by default, so we don't
5007 # have to do anything special.
5008 aix_use_runtimelinking=no
5009 exp_sym_flag='-Bexport'
5012 aix_use_runtimelinking=no
5014 # Test if we are trying to use run time linking or normal
5015 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5016 # need to do runtime linking.
5017 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5018 for ld_flag in $LDFLAGS; do
5019 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5020 aix_use_runtimelinking=yes
5026 exp_sym_flag='-bexport'
5027 no_entry_flag='-bnoentry'
5030 # When large executables or shared objects are built, AIX ld can
5031 # have problems creating the table of contents. If linking a library
5032 # or program results in "error TOC overflow" add -mminimal-toc to
5033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5038 hardcode_libdir_separator=':'
5039 if test "$GCC" = yes; then
5040 case $host_os in aix4.[012]|aix4.[012].*)
5041 collect2name=`${CC} -print-prog-name=collect2`
5042 if test -f "$collect2name" && \
5043 strings "$collect2name" | grep resolve_lib_name >/dev/null
5045 # We have reworked collect2
5048 # We have old collect2
5049 hardcode_direct=unsupported
5050 # It fails to find uninstalled libraries when the uninstalled
5051 # path is not listed in the libpath. Setting hardcode_minus_L
5052 # to unsupported forces relinking
5053 hardcode_minus_L=yes
5054 hardcode_libdir_flag_spec='-L$libdir'
5055 hardcode_libdir_separator=
5059 shared_flag='-shared'
5062 if test "$host_cpu" = ia64; then
5063 shared_flag='${wl}-G'
5065 if test "$aix_use_runtimelinking" = yes; then
5066 shared_flag='${wl}-G'
5068 shared_flag='${wl}-bM:SRE'
5073 # It seems that -bexpall can do strange things, so it is better to
5074 # generate a list of symbols to export.
5075 always_export_symbols=yes
5076 if test "$aix_use_runtimelinking" = yes; then
5077 # Warning - without using the other runtime loading flags (-brtl),
5078 # -berok will link without error, but may produce a broken library.
5079 allow_undefined_flag='-berok'
5080 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5081 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5083 if test "$host_cpu" = ia64; then
5084 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5085 allow_undefined_flag="-z nodefs"
5086 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"
5088 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5089 # Warning - without using the other run time loading flags,
5090 # -berok will link without error, but may produce a broken library.
5091 allow_undefined_flag='${wl}-berok'
5092 # This is a bit strange, but is similar to how AIX traditionally builds
5093 # it's shared libraries.
5094 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'
5100 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)'
5101 hardcode_libdir_flag_spec='-L$libdir'
5102 hardcode_minus_L=yes
5103 # see comment about different semantics on the GNU ld section
5107 cygwin* | mingw* | pw32*)
5108 # When not using gcc, we currently assume that we are using
5109 # Microsoft Visual C++.
5110 # hardcode_libdir_flag_spec is actually meaningless, as there is
5111 # no search path for DLLs.
5112 hardcode_libdir_flag_spec=' '
5113 allow_undefined_flag=unsupported
5114 # Tell ltmain to make .lib files, not .a files.
5116 # FIXME: Setting linknames here is a bad hack.
5117 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5118 # The linker will automatically build a .lib file if we build a DLL.
5119 old_archive_from_new_cmds='true'
5120 # FIXME: Should let the user specify the lib program.
5121 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5122 fix_srcfile_path='`cygpath -w "$srcfile"`'
5125 darwin* | rhapsody*)
5127 rhapsody* | darwin1.[012])
5128 allow_undefined_flag='-undefined suppress'
5131 allow_undefined_flag='-flat_namespace -undefined suppress'
5134 # FIXME: Relying on posixy $() will cause problems for
5135 # cross-compilation, but unfortunately the echo tests do not
5136 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5137 # `"' quotes if we put them in here... so don't!
5138 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5139 # We need to add '_' to the symbols in $export_symbols first
5140 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5142 hardcode_shlibpath_var=no
5143 whole_archive_flag_spec='-all_load $convenience'
5150 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5151 # support. Future versions do this automatically, but an explicit c++rt0.o
5152 # does not break anything, and helps significantly (at the cost of a little
5155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5156 hardcode_libdir_flag_spec='-R$libdir'
5158 hardcode_shlibpath_var=no
5161 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5165 hardcode_minus_L=yes
5166 hardcode_shlibpath_var=no
5169 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5171 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5172 hardcode_libdir_flag_spec='-R$libdir'
5174 hardcode_shlibpath_var=no
5177 hpux9* | hpux10* | hpux11*)
5179 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' ;;
5180 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5183 hardcode_libdir_separator=:
5185 hardcode_minus_L=yes # Not in the search PATH, but as the default
5186 # location of the library.
5187 export_dynamic_flag_spec='${wl}-E'
5190 irix5* | irix6* | nonstopux*)
5191 if test "$GCC" = yes; then
5192 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'
5194 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'
5196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5197 hardcode_libdir_separator=:
5198 link_all_deplibs=yes
5202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5205 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5207 hardcode_libdir_flag_spec='-R$libdir'
5209 hardcode_shlibpath_var=no
5213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5216 hardcode_libdir_separator=:
5217 hardcode_shlibpath_var=no
5222 hardcode_shlibpath_var=no
5223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5226 export_dynamic_flag_spec='${wl}-E'
5229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5231 hardcode_libdir_flag_spec='-R$libdir'
5234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5242 hardcode_libdir_flag_spec='-L$libdir'
5243 hardcode_minus_L=yes
5244 allow_undefined_flag=unsupported
5245 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'
5246 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5250 if test "$GCC" = yes; then
5251 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5252 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'
5254 allow_undefined_flag=' -expect_unresolved \*'
5255 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'
5257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5258 hardcode_libdir_separator=:
5261 osf4* | osf5*) # as osf3* with the addition of -msym flag
5262 if test "$GCC" = yes; then
5263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5264 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'
5265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5267 allow_undefined_flag=' -expect_unresolved \*'
5268 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'
5269 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5270 $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'
5272 #Both c and cxx compiler support -rpath directly
5273 hardcode_libdir_flag_spec='-rpath $libdir'
5275 hardcode_libdir_separator=:
5279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5280 hardcode_shlibpath_var=no
5281 runpath_var=LD_RUN_PATH
5282 hardcode_runpath_var=yes
5283 export_dynamic_flag_spec='${wl}-Bexport'
5287 # gcc --version < 3.0 without binutils cannot create self contained
5288 # shared libraries reliably, requiring libgcc.a to resolve some of
5289 # the object symbols generated in some cases. Libraries that use
5290 # assert need libgcc.a to resolve __eprintf, for example. Linking
5291 # a copy of libgcc.a into every shared library to guarantee resolving
5292 # such symbols causes other problems: According to Tim Van Holder
5293 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5294 # (to the application) exception stack for one thing.
5295 no_undefined_flag=' -z defs'
5296 if test "$GCC" = yes; then
5297 case `$CC --version 2>/dev/null` in
5301 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5302 *** create self contained shared libraries on Solaris systems, without
5303 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5304 *** -no-undefined support, which will at least allow you to build shared
5305 *** libraries. However, you may find that when you link such libraries
5306 *** into an application without using GCC, you have to manually add
5307 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5308 *** upgrade to a newer version of GCC. Another option is to rebuild your
5309 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5316 # $CC -shared without GNU ld will not create a library from C++
5317 # object files and a static libstdc++, better avoid it by now
5318 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5319 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5320 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5321 hardcode_libdir_flag_spec='-R$libdir'
5322 hardcode_shlibpath_var=no
5324 solaris2.[0-5] | solaris2.[0-5].*) ;;
5325 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5328 link_all_deplibs=yes
5332 if test "x$host_vendor" = xsequent; then
5333 # Use $CC to link under sequent, because it throws in some extra .o
5334 # files that make .init and .fini sections work.
5335 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5337 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5339 hardcode_libdir_flag_spec='-L$libdir'
5341 hardcode_minus_L=yes
5342 hardcode_shlibpath_var=no
5346 if test "x$host_vendor" = xsno; then
5347 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5348 hardcode_direct=yes # is this really true???
5350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5351 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5353 runpath_var='LD_RUN_PATH'
5354 hardcode_shlibpath_var=no
5358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5359 hardcode_shlibpath_var=no
5360 export_dynamic_flag_spec='-Bexport'
5364 no_undefined_flag=' -z text'
5365 # $CC -shared without GNU ld will not create a library from C++
5366 # object files and a static libstdc++, better avoid it by now
5367 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5368 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5369 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5370 hardcode_libdir_flag_spec=
5371 hardcode_shlibpath_var=no
5372 runpath_var='LD_RUN_PATH'
5376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5377 hardcode_libdir_flag_spec='-L$libdir'
5378 hardcode_shlibpath_var=no
5382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5383 hardcode_libdir_flag_spec='-L$libdir'
5384 hardcode_shlibpath_var=no
5388 if test -d /usr/nec; then
5389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5390 hardcode_shlibpath_var=no
5391 runpath_var=LD_RUN_PATH
5392 hardcode_runpath_var=yes
5398 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5401 hardcode_shlibpath_var=no
5402 hardcode_runpath_var=yes
5403 runpath_var=LD_RUN_PATH
5406 sysv5uw7* | unixware7*)
5407 no_undefined_flag='${wl}-z ${wl}text'
5408 if test "$GCC" = yes; then
5409 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5411 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5413 runpath_var='LD_RUN_PATH'
5414 hardcode_shlibpath_var=no
5422 echo "$as_me:5422: result: $ld_shlibs" >&5
5423 echo "${ECHO_T}$ld_shlibs" >&6
5424 test "$ld_shlibs" = no && can_build_shared=no
5426 # Check hardcoding attributes.
5427 echo "$as_me:5427: checking how to hardcode library paths into programs" >&5
5428 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5430 if test -n "$hardcode_libdir_flag_spec" || \
5431 test -n "$runpath_var"; then
5433 # We can hardcode non-existant directories.
5434 if test "$hardcode_direct" != no &&
5435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5436 # have to relink, otherwise we might link with an installed library
5437 # when we should be linking with a yet-to-be-installed one
5438 ## test "$hardcode_shlibpath_var" != no &&
5439 test "$hardcode_minus_L" != no; then
5440 # Linking always hardcodes the temporary library directory.
5441 hardcode_action=relink
5443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5444 hardcode_action=immediate
5447 # We cannot hardcode anything, or else we can only hardcode existing
5449 hardcode_action=unsupported
5451 echo "$as_me:5451: result: $hardcode_action" >&5
5452 echo "${ECHO_T}$hardcode_action" >&6
5456 echo "$as_me:5456: checking whether stripping libraries is possible" >&5
5457 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5458 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5459 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5460 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5461 echo "$as_me:5461: result: yes" >&5
5462 echo "${ECHO_T}yes" >&6
5464 echo "$as_me:5464: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5468 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5469 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5471 # PORTME Fill in your ld.so characteristics
5472 echo "$as_me:5472: checking dynamic linker characteristics" >&5
5473 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5475 libname_spec='lib$name'
5482 shlibpath_overrides_runpath=unknown
5484 dynamic_linker="$host_os ld.so"
5485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5491 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5492 shlibpath_var=LIBPATH
5494 # AIX has no versioning support, so we append a major version to the name.
5495 soname_spec='${libname}${release}.so$major'
5500 if test "$host_cpu" = ia64; then
5501 # AIX 5 supports IA64
5502 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5503 shlibpath_var=LD_LIBRARY_PATH
5505 # With GCC up to 2.95.x, collect2 would create an import file
5506 # for dependence libraries. The import file would start with
5507 # the line `#! .'. This would cause the generated library to
5508 # depend on `.', always an invalid library. This was fixed in
5509 # development snapshots of GCC prior to 3.0.
5511 aix4 | aix4.[01] | aix4.[01].*)
5512 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5514 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5521 # AIX (on Power*) has no versioning support, so currently we can
5522 # not hardcode correct soname into executable. Probably we can
5523 # add versioning support to collect2, so additional links can
5524 # be useful in future.
5525 if test "$aix_use_runtimelinking" = yes; then
5526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5527 # instead of lib<name>.a to let people know that these are not
5528 # typical AIX shared libraries.
5529 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5531 # We preserve .a as extension for shared libraries through AIX4.2
5532 # and later when we are not doing run time linking.
5533 library_names_spec='${libname}${release}.a $libname.a'
5534 soname_spec='${libname}${release}.so$major'
5536 shlibpath_var=LIBPATH
5541 library_names_spec='$libname.ixlibrary $libname.a'
5542 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5543 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'
5547 library_names_spec='${libname}.so'
5548 dynamic_linker="$host_os ld.so"
5549 shlibpath_var=LIBRARY_PATH
5555 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5556 soname_spec='${libname}${release}.so$major'
5557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5558 shlibpath_var=LD_LIBRARY_PATH
5559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5561 export_dynamic_flag_spec=-rdynamic
5562 # the default ld.so.conf also contains /usr/contrib/lib and
5563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5564 # libtool to hard-code these into programs
5567 cygwin* | mingw* | pw32*)
5568 version_type=windows
5571 case $GCC,$host_os in
5573 library_names_spec='$libname.dll.a'
5574 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5575 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5576 dldir=$destdir/`dirname \$dlpath`~
5577 test -d \$dldir || mkdir -p \$dldir~
5578 $install_prog .libs/$dlname \$dldir/$dlname'
5579 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5580 dlpath=$dir/\$dldll~
5584 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5588 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5591 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5594 dynamic_linker='Win32 ld.exe'
5595 # FIXME: first we should search . and the directory the executable is in
5599 darwin* | rhapsody*)
5600 dynamic_linker="$host_os dyld"
5604 # FIXME: Relying on posixy $() will cause problems for
5605 # cross-compilation, but unfortunately the echo tests do not
5606 # yet detect zsh echo's removal of \ escapes.
5607 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)'
5608 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5609 shlibpath_overrides_runpath=yes
5610 shlibpath_var=DYLD_LIBRARY_PATH
5618 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5619 version_type=freebsd-$objformat
5620 case $version_type in
5622 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5627 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5631 shlibpath_var=LD_LIBRARY_PATH
5634 shlibpath_overrides_runpath=yes
5637 shlibpath_overrides_runpath=no
5638 hardcode_into_libs=yes
5647 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5648 soname_spec='${libname}${release}.so$major'
5649 shlibpath_var=LD_LIBRARY_PATH
5650 hardcode_into_libs=yes
5653 hpux9* | hpux10* | hpux11*)
5654 # Give a soname corresponding to the major version so that dld.sl refuses to
5655 # link against other versions.
5656 dynamic_linker="$host_os dld.sl"
5660 shlibpath_var=SHLIB_PATH
5661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5662 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5663 soname_spec='${libname}${release}.sl$major'
5664 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5665 postinstall_cmds='chmod 555 $lib'
5668 irix5* | irix6* | nonstopux*)
5670 nonstopux*) version_type=nonstopux ;;
5671 *) version_type=irix ;;
5675 soname_spec='${libname}${release}.so$major'
5676 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5678 irix5* | nonstopux*)
5682 case $LD in # libtool.m4 will add one of these switches to LD
5683 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5684 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5685 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5686 *) libsuff= shlibsuff= libmagic=never-match;;
5690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5691 shlibpath_overrides_runpath=no
5692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5696 # No shared lib support for Linux oldld, aout, or coff.
5697 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5701 # This must be Linux ELF.
5706 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5707 soname_spec='${libname}${release}.so$major'
5708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5709 shlibpath_var=LD_LIBRARY_PATH
5710 shlibpath_overrides_runpath=no
5711 # This implies no fast_install, which is unacceptable.
5712 # Some rework will be needed to allow for fast_install
5713 # before this can be enabled.
5714 hardcode_into_libs=yes
5716 # We used to test for /lib/ld.so.1 and disable shared libraries on
5717 # powerpc, because MkLinux only supported shared libraries with the
5718 # GNU dynamic linker. Since this was broken with cross compilers,
5719 # most powerpc-linux boxes support dynamic linking these days and
5720 # people can always --disable-shared, the test was removed, and we
5721 # assume the GNU/Linux dynamic linker is in use.
5722 dynamic_linker='GNU/Linux ld.so'
5729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5730 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5732 dynamic_linker='NetBSD (a.out) ld.so'
5734 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5735 soname_spec='${libname}${release}.so$major'
5736 dynamic_linker='NetBSD ld.elf_so'
5738 shlibpath_var=LD_LIBRARY_PATH
5739 shlibpath_overrides_runpath=yes
5740 hardcode_into_libs=yes
5745 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5746 shlibpath_var=LD_LIBRARY_PATH
5747 shlibpath_overrides_runpath=yes
5754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5756 openbsd2.[89] | openbsd2.[89].*)
5757 shlibpath_overrides_runpath=no
5760 shlibpath_overrides_runpath=yes
5764 shlibpath_overrides_runpath=yes
5766 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5768 shlibpath_var=LD_LIBRARY_PATH
5772 libname_spec='$name'
5774 library_names_spec='$libname.dll $libname.a'
5775 dynamic_linker='OS/2 ld.exe'
5776 shlibpath_var=LIBPATH
5779 osf3* | osf4* | osf5*)
5783 soname_spec='${libname}${release}.so'
5784 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5785 shlibpath_var=LD_LIBRARY_PATH
5786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5792 soname_spec='${libname}${release}.so$major'
5793 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5794 shlibpath_var=LD_LIBRARY_PATH
5801 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5802 soname_spec='${libname}${release}.so$major'
5803 shlibpath_var=LD_LIBRARY_PATH
5804 shlibpath_overrides_runpath=yes
5805 hardcode_into_libs=yes
5806 # ldd complains unless libraries are executable
5807 postinstall_cmds='chmod +x $lib'
5812 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5814 shlibpath_var=LD_LIBRARY_PATH
5815 shlibpath_overrides_runpath=yes
5816 if test "$with_gnu_ld" = yes; then
5822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5824 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5825 soname_spec='${libname}${release}.so$major'
5826 shlibpath_var=LD_LIBRARY_PATH
5827 case $host_vendor in
5829 shlibpath_overrides_runpath=no
5834 shlibpath_overrides_runpath=no
5835 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5842 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5843 soname_spec='${libname}${release}.so$major'
5844 shlibpath_var=LD_LIBRARY_PATH
5851 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5852 soname_spec='${libname}${release}.so$major'
5853 shlibpath_var=LD_LIBRARY_PATH
5857 if test -d /usr/nec ;then
5859 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5860 soname_spec='$libname.so.$major'
5861 shlibpath_var=LD_LIBRARY_PATH
5869 echo "$as_me:5869: result: $dynamic_linker" >&5
5870 echo "${ECHO_T}$dynamic_linker" >&6
5871 test "$dynamic_linker" = no && can_build_shared=no
5873 # Report the final consequences.
5874 echo "$as_me:5874: checking if libtool supports shared libraries" >&5
5875 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5876 echo "$as_me:5876: result: $can_build_shared" >&5
5877 echo "${ECHO_T}$can_build_shared" >&6
5879 echo "$as_me:5879: checking whether to build shared libraries" >&5
5880 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5881 test "$can_build_shared" = "no" && enable_shared=no
5883 # On AIX, shared libraries and static libraries use the same namespace, and
5884 # are all built from PIC.
5887 test "$enable_shared" = yes && enable_static=no
5888 if test -n "$RANLIB"; then
5889 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5890 postinstall_cmds='$RANLIB $lib'
5895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5896 test "$enable_shared" = yes && enable_static=no
5900 echo "$as_me:5900: result: $enable_shared" >&5
5901 echo "${ECHO_T}$enable_shared" >&6
5903 echo "$as_me:5903: checking whether to build static libraries" >&5
5904 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5905 # Make sure either enable_shared or enable_static is yes.
5906 test "$enable_shared" = yes || enable_static=yes
5907 echo "$as_me:5907: result: $enable_static" >&5
5908 echo "${ECHO_T}$enable_static" >&6
5910 if test "$hardcode_action" = relink; then
5911 # Fast installation is not supported
5912 enable_fast_install=no
5913 elif test "$shlibpath_overrides_runpath" = yes ||
5914 test "$enable_shared" = no; then
5915 # Fast installation is not necessary
5916 enable_fast_install=needless
5919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5920 if test "$GCC" = yes; then
5921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5924 if test "x$enable_dlopen" != xyes; then
5925 enable_dlopen=unknown
5926 enable_dlopen_self=unknown
5927 enable_dlopen_self_static=unknown
5934 lt_cv_dlopen="load_add_on"
5936 lt_cv_dlopen_self=yes
5939 cygwin* | mingw* | pw32*)
5940 lt_cv_dlopen="LoadLibrary"
5945 echo "$as_me:5945: checking for shl_load" >&5
5946 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5947 if test "${ac_cv_func_shl_load+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line 5951 "configure"
5952 #include "confdefs.h"
5953 /* System header to define __stub macros and hopefully few prototypes,
5954 which can conflict with char shl_load (); below. */
5956 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5968 /* The GNU C library defines this for functions which it implements
5969 to always fail with ENOSYS. Some functions are actually named
5970 something starting with __ and the normal name is an alias. */
5971 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:5982: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>&5
5985 echo "$as_me:5985: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -s conftest$ac_exeext'
5988 { (eval echo "$as_me:5988: \"$ac_try\"") >&5
5991 echo "$as_me:5991: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_func_shl_load=yes
5995 echo "$as_me: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5997 ac_cv_func_shl_load=no
5999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6001 echo "$as_me:6001: result: $ac_cv_func_shl_load" >&5
6002 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6003 if test $ac_cv_func_shl_load = yes; then
6004 lt_cv_dlopen="shl_load"
6006 echo "$as_me:6006: checking for shl_load in -ldld" >&5
6007 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6008 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 ac_check_lib_save_LIBS=$LIBS
6013 cat >conftest.$ac_ext <<_ACEOF
6014 #line 6014 "configure"
6015 #include "confdefs.h"
6017 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:6033: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6036 echo "$as_me:6036: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -s conftest$ac_exeext'
6039 { (eval echo "$as_me:6039: \"$ac_try\"") >&5
6042 echo "$as_me:6042: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 ac_cv_lib_dld_shl_load=yes
6046 echo "$as_me: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6048 ac_cv_lib_dld_shl_load=no
6050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6051 LIBS=$ac_check_lib_save_LIBS
6053 echo "$as_me:6053: result: $ac_cv_lib_dld_shl_load" >&5
6054 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6055 if test $ac_cv_lib_dld_shl_load = yes; then
6056 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6058 echo "$as_me:6058: checking for dlopen" >&5
6059 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6060 if test "${ac_cv_func_dlopen+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line 6064 "configure"
6065 #include "confdefs.h"
6066 /* System header to define __stub macros and hopefully few prototypes,
6067 which can conflict with char dlopen (); below. */
6069 /* Override any gcc2 internal prototype to avoid an error. */
6073 /* We use char because int might match the return type of a gcc2
6074 builtin and then its argument prototype would still apply. */
6081 /* The GNU C library defines this for functions which it implements
6082 to always fail with ENOSYS. Some functions are actually named
6083 something starting with __ and the normal name is an alias. */
6084 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:6095: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6098 echo "$as_me:6098: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -s conftest$ac_exeext'
6101 { (eval echo "$as_me:6101: \"$ac_try\"") >&5
6104 echo "$as_me:6104: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_func_dlopen=yes
6108 echo "$as_me: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 ac_cv_func_dlopen=no
6112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6114 echo "$as_me:6114: result: $ac_cv_func_dlopen" >&5
6115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6116 if test $ac_cv_func_dlopen = yes; then
6117 lt_cv_dlopen="dlopen"
6119 echo "$as_me:6119: checking for dlopen in -ldl" >&5
6120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 ac_check_lib_save_LIBS=$LIBS
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line 6127 "configure"
6128 #include "confdefs.h"
6130 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:6146: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:6152: \"$ac_try\"") >&5
6155 echo "$as_me:6155: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_lib_dl_dlopen=yes
6159 echo "$as_me: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 ac_cv_lib_dl_dlopen=no
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 LIBS=$ac_check_lib_save_LIBS
6166 echo "$as_me:6166: result: $ac_cv_lib_dl_dlopen" >&5
6167 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6168 if test $ac_cv_lib_dl_dlopen = yes; then
6169 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6171 echo "$as_me:6171: checking for dlopen in -lsvld" >&5
6172 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6173 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 ac_check_lib_save_LIBS=$LIBS
6178 cat >conftest.$ac_ext <<_ACEOF
6179 #line 6179 "configure"
6180 #include "confdefs.h"
6182 /* Override any gcc2 internal prototype to avoid an error. */
6186 /* We use char because int might match the return type of a gcc2
6187 builtin and then its argument prototype would still apply. */
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:6198: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6201 echo "$as_me:6201: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:6204: \"$ac_try\"") >&5
6207 echo "$as_me:6207: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_lib_svld_dlopen=yes
6211 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6213 ac_cv_lib_svld_dlopen=no
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6218 echo "$as_me:6218: result: $ac_cv_lib_svld_dlopen" >&5
6219 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6220 if test $ac_cv_lib_svld_dlopen = yes; then
6221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6223 echo "$as_me:6223: checking for dld_link in -ldld" >&5
6224 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6225 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_check_lib_save_LIBS=$LIBS
6230 cat >conftest.$ac_ext <<_ACEOF
6231 #line 6231 "configure"
6232 #include "confdefs.h"
6234 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:6250: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>&5
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (eval echo "$as_me:6256: \"$ac_try\"") >&5
6259 echo "$as_me:6259: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 ac_cv_lib_dld_dld_link=yes
6263 echo "$as_me: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 ac_cv_lib_dld_dld_link=no
6267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6268 LIBS=$ac_check_lib_save_LIBS
6270 echo "$as_me:6270: result: $ac_cv_lib_dld_dld_link" >&5
6271 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6272 if test $ac_cv_lib_dld_dld_link = yes; then
6273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6289 if test "x$lt_cv_dlopen" != xno; then
6295 case $lt_cv_dlopen in
6297 save_CPPFLAGS="$CPPFLAGS"
6298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6300 save_LDFLAGS="$LDFLAGS"
6301 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6304 LIBS="$lt_cv_dlopen_libs $LIBS"
6306 echo "$as_me:6306: checking whether a program can dlopen itself" >&5
6307 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6308 if test "${lt_cv_dlopen_self+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 if test "$cross_compiling" = yes; then :
6312 lt_cv_dlopen_self=cross
6314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6315 lt_status=$lt_dlunknown
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6317 "configure"
6318 #include "confdefs.h"
6327 # define LT_DLGLOBAL RTLD_GLOBAL
6330 # define LT_DLGLOBAL DL_GLOBAL
6332 # define LT_DLGLOBAL 0
6336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6337 find out it does not work in some platform. */
6338 #ifndef LT_DLLAZY_OR_NOW
6340 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6343 # define LT_DLLAZY_OR_NOW DL_LAZY
6346 # define LT_DLLAZY_OR_NOW RTLD_NOW
6349 # define LT_DLLAZY_OR_NOW DL_NOW
6351 # define LT_DLLAZY_OR_NOW 0
6359 extern "C" void exit (int);
6362 void fnord() { int i=42;}
6365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6366 int status = $lt_dlunknown;
6370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6372 /* dlclose (self); */
6378 if { (eval echo "$as_me:6378: \"$ac_link\"") >&5
6379 (eval $ac_link) 2>&5
6381 echo "$as_me:6381: \$? = $ac_status" >&5
6382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6383 (./conftest; exit; ) 2>/dev/null
6386 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6387 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6388 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6391 # compilation failed
6392 lt_cv_dlopen_self=no
6398 echo "$as_me:6398: result: $lt_cv_dlopen_self" >&5
6399 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6401 if test "x$lt_cv_dlopen_self" = xyes; then
6402 LDFLAGS="$LDFLAGS $link_static_flag"
6403 echo "$as_me:6403: checking whether a statically linked program can dlopen itself" >&5
6404 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6405 if test "${lt_cv_dlopen_self_static+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 if test "$cross_compiling" = yes; then :
6409 lt_cv_dlopen_self_static=cross
6411 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6412 lt_status=$lt_dlunknown
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6414 "configure"
6415 #include "confdefs.h"
6424 # define LT_DLGLOBAL RTLD_GLOBAL
6427 # define LT_DLGLOBAL DL_GLOBAL
6429 # define LT_DLGLOBAL 0
6433 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6434 find out it does not work in some platform. */
6435 #ifndef LT_DLLAZY_OR_NOW
6437 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6440 # define LT_DLLAZY_OR_NOW DL_LAZY
6443 # define LT_DLLAZY_OR_NOW RTLD_NOW
6446 # define LT_DLLAZY_OR_NOW DL_NOW
6448 # define LT_DLLAZY_OR_NOW 0
6456 extern "C" void exit (int);
6459 void fnord() { int i=42;}
6462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6463 int status = $lt_dlunknown;
6467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6468 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6469 /* dlclose (self); */
6475 if { (eval echo "$as_me:6475: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6478 echo "$as_me:6478: \$? = $ac_status" >&5
6479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6480 (./conftest; exit; ) 2>/dev/null
6483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6485 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6488 # compilation failed
6489 lt_cv_dlopen_self_static=no
6495 echo "$as_me:6495: result: $lt_cv_dlopen_self_static" >&5
6496 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6499 CPPFLAGS="$save_CPPFLAGS"
6500 LDFLAGS="$save_LDFLAGS"
6505 case $lt_cv_dlopen_self in
6506 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6507 *) enable_dlopen_self=unknown ;;
6510 case $lt_cv_dlopen_self_static in
6511 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6512 *) enable_dlopen_self_static=unknown ;;
6516 if test "$enable_shared" = yes && test "$GCC" = yes; then
6517 case $archive_cmds in
6519 # FIXME: we may have to deal with multi-command sequences.
6522 # Test whether the compiler implicitly links with -lc since on some
6523 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6524 # to ld, don't add -lc before -lgcc.
6525 echo "$as_me:6525: checking whether -lc should be explicitly linked in" >&5
6526 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6527 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 echo 'static int dummy;' > conftest.$ac_ext
6533 if { (eval echo "$as_me:6533: \"$ac_compile\"") >&5
6534 (eval $ac_compile) 2>&5
6536 echo "$as_me:6536: \$? = $ac_status" >&5
6537 (exit $ac_status); }; then
6540 libobjs=conftest.$ac_objext
6542 wl=$lt_cv_prog_cc_wl
6548 save_allow_undefined_flag=$allow_undefined_flag
6549 allow_undefined_flag=
6550 if { (eval echo "$as_me:6550: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6551 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6553 echo "$as_me:6553: \$? = $ac_status" >&5
6554 (exit $ac_status); }
6556 lt_cv_archive_cmds_need_lc=no
6558 lt_cv_archive_cmds_need_lc=yes
6560 allow_undefined_flag=$save_allow_undefined_flag
6562 cat conftest.err 1>&5
6566 echo "$as_me:6566: result: $lt_cv_archive_cmds_need_lc" >&5
6567 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6571 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6573 # The second clause should only fire when bootstrapping the
6574 # libtool distribution, otherwise you forgot to ship ltmain.sh
6575 # with your package, and you will get complaints that there are
6576 # no rules to generate ltmain.sh.
6577 if test -f "$ltmain"; then
6580 # If there is no Makefile yet, we rely on a make rule to execute
6581 # `config.status --recheck' to rerun these tests and create the
6582 # libtool script then.
6583 test -f Makefile && make "$ltmain"
6586 if test -f "$ltmain"; then
6587 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6590 echo creating $ofile
6592 # Now quote all the things that may contain metacharacters while being
6593 # careful not to overquote the AC_SUBSTed values. We take copies of the
6594 # variables and quote the copies for generation of the libtool script.
6595 for var in echo old_CC old_CFLAGS \
6596 AR AR_FLAGS CC LD LN_S NM SHELL \
6597 reload_flag reload_cmds wl \
6598 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6599 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6600 library_names_spec soname_spec \
6601 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6602 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6603 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6604 old_striplib striplib file_magic_cmd export_symbols_cmds \
6605 deplibs_check_method allow_undefined_flag no_undefined_flag \
6606 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6607 global_symbol_to_c_name_address \
6608 hardcode_libdir_flag_spec hardcode_libdir_separator \
6609 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6610 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6613 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6614 old_postinstall_cmds | old_postuninstall_cmds | \
6615 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6616 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6617 postinstall_cmds | postuninstall_cmds | \
6618 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6619 # Double-quote double-evaled strings.
6620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6628 cat <<__EOF__ > "${ofile}T"
6631 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6632 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6633 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6635 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6636 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6638 # This program is free software; you can redistribute it and/or modify
6639 # it under the terms of the GNU General Public License as published by
6640 # the Free Software Foundation; either version 2 of the License, or
6641 # (at your option) any later version.
6643 # This program is distributed in the hope that it will be useful, but
6644 # WITHOUT ANY WARRANTY; without even the implied warranty of
6645 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6646 # General Public License for more details.
6648 # You should have received a copy of the GNU General Public License
6649 # along with this program; if not, write to the Free Software
6650 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6652 # As a special exception to the GNU General Public License, if you
6653 # distribute this file as part of a program that contains a
6654 # configuration script generated by Autoconf, you may include it under
6655 # the same distribution terms that you use for the rest of that program.
6657 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6658 Xsed="sed -e s/^X//"
6660 # The HP-UX ksh and POSIX shell print the target directory to stdout
6662 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6664 # ### BEGIN LIBTOOL CONFIG
6666 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6668 # Shell to use when invoking shell scripts.
6671 # Whether or not to build shared libraries.
6672 build_libtool_libs=$enable_shared
6674 # Whether or not to build static libraries.
6675 build_old_libs=$enable_static
6677 # Whether or not to add -lc for building shared libraries.
6678 build_libtool_need_lc=$need_lc
6680 # Whether or not to optimize for fast installation.
6681 fast_install=$enable_fast_install
6684 host_alias=$host_alias
6687 # An echo program that does not interpret backslashes.
6692 AR_FLAGS=$lt_AR_FLAGS
6694 # The default C compiler.
6697 # Is the compiler the GNU C compiler?
6700 # The linker used to build libraries.
6703 # Whether we need hard or soft links.
6706 # A BSD-compatible nm program.
6709 # A symbol stripping program
6712 # Used to examine libraries when file_magic_cmd begins "file"
6713 MAGIC_CMD=$MAGIC_CMD
6715 # Used on cygwin: DLL creation program.
6718 # Used on cygwin: object dumper.
6721 # Used on cygwin: assembler.
6724 # The name of the directory that contains temporary libtool files.
6727 # How to create reloadable object files.
6728 reload_flag=$lt_reload_flag
6729 reload_cmds=$lt_reload_cmds
6731 # How to pass a linker flag through the compiler.
6734 # Object file suffix (normally "o").
6737 # Old archive suffix (normally "a").
6740 # Executable file suffix (normally "").
6743 # Additional compiler flags for building library objects.
6744 pic_flag=$lt_pic_flag
6747 # Does compiler simultaneously support -c and -o options?
6748 compiler_c_o=$lt_compiler_c_o
6750 # Can we write directly to a .lo ?
6751 compiler_o_lo=$lt_compiler_o_lo
6753 # Must we lock files when doing compilation ?
6754 need_locks=$lt_need_locks
6756 # Do we need the lib prefix for modules?
6757 need_lib_prefix=$need_lib_prefix
6759 # Do we need a version for libraries?
6760 need_version=$need_version
6762 # Whether dlopen is supported.
6763 dlopen_support=$enable_dlopen
6765 # Whether dlopen of programs is supported.
6766 dlopen_self=$enable_dlopen_self
6768 # Whether dlopen of statically linked programs is supported.
6769 dlopen_self_static=$enable_dlopen_self_static
6771 # Compiler flag to prevent dynamic linking.
6772 link_static_flag=$lt_link_static_flag
6774 # Compiler flag to turn off builtin functions.
6775 no_builtin_flag=$lt_no_builtin_flag
6777 # Compiler flag to allow reflexive dlopens.
6778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6780 # Compiler flag to generate shared objects directly from archives.
6781 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6783 # Compiler flag to generate thread-safe objects.
6784 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6786 # Library versioning type.
6787 version_type=$version_type
6789 # Format of library name prefix.
6790 libname_spec=$lt_libname_spec
6792 # List of archive names. First name is the real one, the rest are links.
6793 # The last name is the one that the linker finds with -lNAME.
6794 library_names_spec=$lt_library_names_spec
6796 # The coded name of the library, if different from the real name.
6797 soname_spec=$lt_soname_spec
6799 # Commands used to build and install an old-style archive.
6801 old_archive_cmds=$lt_old_archive_cmds
6802 old_postinstall_cmds=$lt_old_postinstall_cmds
6803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6805 # Create an old-style archive from a shared archive.
6806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6808 # Create a temporary old-style archive to link instead of a shared archive.
6809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6811 # Commands used to build and install a shared archive.
6812 archive_cmds=$lt_archive_cmds
6813 archive_expsym_cmds=$lt_archive_expsym_cmds
6814 postinstall_cmds=$lt_postinstall_cmds
6815 postuninstall_cmds=$lt_postuninstall_cmds
6817 # Commands to strip libraries.
6818 old_striplib=$lt_old_striplib
6819 striplib=$lt_striplib
6821 # Method to check whether dependent libraries are shared objects.
6822 deplibs_check_method=$lt_deplibs_check_method
6824 # Command to use when deplibs_check_method == file_magic.
6825 file_magic_cmd=$lt_file_magic_cmd
6827 # Flag that allows shared libraries with undefined symbols to be built.
6828 allow_undefined_flag=$lt_allow_undefined_flag
6830 # Flag that forces no undefined symbols.
6831 no_undefined_flag=$lt_no_undefined_flag
6833 # Commands used to finish a libtool library installation in a directory.
6834 finish_cmds=$lt_finish_cmds
6836 # Same as above, but a single script fragment to be evaled but not shown.
6837 finish_eval=$lt_finish_eval
6839 # Take the output of nm and produce a listing of raw symbols and C names.
6840 global_symbol_pipe=$lt_global_symbol_pipe
6842 # Transform the output of nm in a proper C declaration
6843 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6845 # Transform the output of nm in a C name address pair
6846 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6848 # This is the shared library runtime path variable.
6849 runpath_var=$runpath_var
6851 # This is the shared library path variable.
6852 shlibpath_var=$shlibpath_var
6854 # Is shlibpath searched before the hard-coded library search path?
6855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6857 # How to hardcode a shared library path into an executable.
6858 hardcode_action=$hardcode_action
6860 # Whether we should hardcode library paths into libraries.
6861 hardcode_into_libs=$hardcode_into_libs
6863 # Flag to hardcode \$libdir into a binary during linking.
6864 # This must work even if \$libdir does not exist.
6865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6867 # Whether we need a single -rpath flag with a separated argument.
6868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6870 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6872 hardcode_direct=$hardcode_direct
6874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6876 hardcode_minus_L=$hardcode_minus_L
6878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6879 # the resulting binary.
6880 hardcode_shlibpath_var=$hardcode_shlibpath_var
6882 # Variables whose values should be saved in libtool wrapper scripts and
6883 # restored at relink time.
6884 variables_saved_for_relink="$variables_saved_for_relink"
6886 # Whether libtool must link a program against all its dependency libraries.
6887 link_all_deplibs=$link_all_deplibs
6889 # Compile-time system search path for libraries
6890 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6892 # Run-time system search path for libraries
6893 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6895 # Fix the shell variable \$srcfile for the compiler.
6896 fix_srcfile_path="$fix_srcfile_path"
6898 # Set to yes if exported symbols are required.
6899 always_export_symbols=$always_export_symbols
6901 # The commands to list exported symbols.
6902 export_symbols_cmds=$lt_export_symbols_cmds
6904 # The commands to extract the exported symbol list from a shared archive.
6905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6907 # Symbols that should not be listed in the preloaded symbols.
6908 exclude_expsyms=$lt_exclude_expsyms
6910 # Symbols that must always be exported.
6911 include_expsyms=$lt_include_expsyms
6913 # ### END LIBTOOL CONFIG
6919 cat <<\EOF >> "${ofile}T"
6921 # AIX sometimes has problems with the GCC collect2 program. For some
6922 # reason, if we set the COLLECT_NAMES environment variable, the problems
6923 # vanish in a puff of smoke.
6924 if test "X${COLLECT_NAMES+set}" != Xset; then
6926 export COLLECT_NAMES
6933 cygwin* | mingw* | pw32* | os2*)
6934 cat <<'EOF' >> "${ofile}T"
6935 # This is a source program that is used to create dlls on Windows
6936 # Don't remove nor modify the starting and closing comments
6937 # /* ltdll.c starts here */
6938 # #define WIN32_LEAN_AND_MEAN
6939 # #include <windows.h>
6940 # #undef WIN32_LEAN_AND_MEAN
6941 # #include <stdio.h>
6943 # #ifndef __CYGWIN__
6944 # # ifdef __CYGWIN32__
6945 # # define __CYGWIN__ __CYGWIN32__
6949 # #ifdef __cplusplus
6952 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6953 # #ifdef __cplusplus
6958 # #include <cygwin/cygwin_dll.h>
6959 # DECLARE_CYGWIN_DLL( DllMain );
6961 # HINSTANCE __hDllInstance_base;
6964 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6966 # __hDllInstance_base = hInst;
6969 # /* ltdll.c ends here */
6970 # This is a source program that is used to create import libraries
6971 # on Windows for dlls which lack them. Don't remove nor modify the
6972 # starting and closing comments
6973 # /* impgen.c starts here */
6974 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6976 # This file is part of GNU libtool.
6978 # This program is free software; you can redistribute it and/or modify
6979 # it under the terms of the GNU General Public License as published by
6980 # the Free Software Foundation; either version 2 of the License, or
6981 # (at your option) any later version.
6983 # This program is distributed in the hope that it will be useful,
6984 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6986 # GNU General Public License for more details.
6988 # You should have received a copy of the GNU General Public License
6989 # along with this program; if not, write to the Free Software
6990 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6993 # #include <stdio.h> /* for printf() */
6994 # #include <unistd.h> /* for open(), lseek(), read() */
6995 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6996 # #include <string.h> /* for strdup() */
6998 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7000 # #define O_BINARY 0
7003 # static unsigned int
7004 # pe_get16 (fd, offset)
7008 # unsigned char b[2];
7009 # lseek (fd, offset, SEEK_SET);
7011 # return b[0] + (b[1]<<8);
7014 # static unsigned int
7015 # pe_get32 (fd, offset)
7019 # unsigned char b[4];
7020 # lseek (fd, offset, SEEK_SET);
7022 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7025 # static unsigned int
7029 # unsigned char *b = ptr;
7030 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7039 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7040 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7041 # unsigned long name_rvas, nexp;
7042 # unsigned char *expdata, *erva;
7043 # char *filename, *dll_name;
7045 # filename = argv[1];
7047 # dll = open(filename, O_RDONLY|O_BINARY);
7051 # dll_name = filename;
7053 # for (i=0; filename[i]; i++)
7054 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7055 # dll_name = filename + i +1;
7057 # pe_header_offset = pe_get32 (dll, 0x3c);
7058 # opthdr_ofs = pe_header_offset + 4 + 20;
7059 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7061 # if (num_entries < 1) /* no exports */
7064 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7065 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7066 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7067 # secptr = (pe_header_offset + 4 + 20 +
7068 # pe_get16 (dll, pe_header_offset + 4 + 16));
7071 # for (i = 0; i < nsections; i++)
7074 # unsigned long secptr1 = secptr + 40 * i;
7075 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7076 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7077 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7078 # lseek(dll, secptr1, SEEK_SET);
7079 # read(dll, sname, 8);
7080 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7082 # expptr = fptr + (export_rva - vaddr);
7083 # if (export_rva + export_size > vaddr + vsize)
7084 # export_size = vsize - (export_rva - vaddr);
7089 # expdata = (unsigned char*)malloc(export_size);
7090 # lseek (dll, expptr, SEEK_SET);
7091 # read (dll, expdata, export_size);
7092 # erva = expdata - export_rva;
7094 # nexp = pe_as32 (expdata+24);
7095 # name_rvas = pe_as32 (expdata+32);
7097 # printf ("EXPORTS\n");
7098 # for (i = 0; i<nexp; i++)
7100 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7101 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7106 # /* impgen.c ends here */
7112 # We use sed instead of cat because bash on DJGPP gets confused if
7113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7114 # text mode, it properly converts lines to CR/LF. This bash problem
7115 # is reportedly fixed, but why not run on old versions too?
7116 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7118 mv -f "${ofile}T" "$ofile" || \
7119 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7123 # This can be used to rebuild libtool when needed
7124 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7126 # Always use our own libtool.
7127 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7129 # Prevent multiple expansion
7131 INCLUDES='-I$(top_srcdir)/include -I$(top_builddir)/include'
7133 for ac_header in sys/time.h io.h
7135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136 echo "$as_me:7136: checking for $ac_header" >&5
7137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7142 #line 7142 "configure"
7143 #include "confdefs.h"
7144 #include <$ac_header>
7146 if { (eval echo "$as_me:7146: \"$ac_cpp conftest.$ac_ext\"") >&5
7147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7149 egrep -v '^ *\+' conftest.er1 >conftest.err
7151 cat conftest.err >&5
7152 echo "$as_me:7152: \$? = $ac_status" >&5
7153 (exit $ac_status); } >/dev/null; then
7154 if test -s conftest.err; then
7155 ac_cpp_err=$ac_c_preproc_warn_flag
7162 if test -z "$ac_cpp_err"; then
7163 eval "$as_ac_Header=yes"
7165 echo "$as_me: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7167 eval "$as_ac_Header=no"
7169 rm -f conftest.err conftest.$ac_ext
7171 echo "$as_me:7171: result: `eval echo '${'$as_ac_Header'}'`" >&5
7172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7174 cat >>confdefs.h <<EOF
7175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7181 echo "$as_me:7181: checking for ANSI C header files" >&5
7182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7183 if test "${ac_cv_header_stdc+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line 7187 "configure"
7188 #include "confdefs.h"
7195 if { (eval echo "$as_me:7195: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7198 egrep -v '^ *\+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:7201: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev/null; then
7203 if test -s conftest.err; then
7204 ac_cpp_err=$ac_c_preproc_warn_flag
7211 if test -z "$ac_cpp_err"; then
7212 ac_cv_header_stdc=yes
7214 echo "$as_me: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 ac_cv_header_stdc=no
7218 rm -f conftest.err conftest.$ac_ext
7220 if test $ac_cv_header_stdc = yes; then
7221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7222 cat >conftest.$ac_ext <<_ACEOF
7223 #line 7223 "configure"
7224 #include "confdefs.h"
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 egrep "memchr" >/dev/null 2>&1; then
7232 ac_cv_header_stdc=no
7238 if test $ac_cv_header_stdc = yes; then
7239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line 7241 "configure"
7242 #include "confdefs.h"
7246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7247 egrep "free" >/dev/null 2>&1; then
7250 ac_cv_header_stdc=no
7256 if test $ac_cv_header_stdc = yes; then
7257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7258 if test "$cross_compiling" = yes; then
7261 cat >conftest.$ac_ext <<_ACEOF
7262 #line 7262 "configure"
7263 #include "confdefs.h"
7265 #if ((' ' & 0x0FF) == 0x020)
7266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7269 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7270 || ('j' <= (c) && (c) <= 'r') \
7271 || ('s' <= (c) && (c) <= 'z'))
7272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7280 for (i = 0; i < 256; i++)
7281 if (XOR (islower (i), ISLOWER (i))
7282 || toupper (i) != TOUPPER (i))
7287 rm -f conftest$ac_exeext
7288 if { (eval echo "$as_me:7288: \"$ac_link\"") >&5
7289 (eval $ac_link) 2>&5
7291 echo "$as_me:7291: \$? = $ac_status" >&5
7292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7293 { (eval echo "$as_me:7293: \"$ac_try\"") >&5
7296 echo "$as_me:7296: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7300 echo "$as_me: program exited with status $ac_status" >&5
7301 echo "$as_me: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7303 ac_cv_header_stdc=no
7305 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7309 echo "$as_me:7309: result: $ac_cv_header_stdc" >&5
7310 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7311 if test $ac_cv_header_stdc = yes; then
7313 cat >>confdefs.h <<\EOF
7314 #define STDC_HEADERS 1
7319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7322 inttypes.h stdint.h unistd.h
7324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325 echo "$as_me:7325: checking for $ac_header" >&5
7326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 cat >conftest.$ac_ext <<_ACEOF
7331 #line 7331 "configure"
7332 #include "confdefs.h"
7333 $ac_includes_default
7334 #include <$ac_header>
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:7337: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>&5
7340 echo "$as_me:7340: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:7343: \"$ac_try\"") >&5
7346 echo "$as_me:7346: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 eval "$as_ac_Header=yes"
7350 echo "$as_me: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7352 eval "$as_ac_Header=no"
7354 rm -f conftest.$ac_objext conftest.$ac_ext
7356 echo "$as_me:7356: result: `eval echo '${'$as_ac_Header'}'`" >&5
7357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7359 cat >>confdefs.h <<EOF
7360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7366 echo "$as_me:7366: checking for inttypes.h" >&5
7367 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7368 if test "${ac_cv_header_inttypes_h+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 cat >conftest.$ac_ext <<_ACEOF
7372 #line 7372 "configure"
7373 #include "confdefs.h"
7374 #include <inttypes.h>
7376 if { (eval echo "$as_me:7376: \"$ac_cpp conftest.$ac_ext\"") >&5
7377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7379 egrep -v '^ *\+' conftest.er1 >conftest.err
7381 cat conftest.err >&5
7382 echo "$as_me:7382: \$? = $ac_status" >&5
7383 (exit $ac_status); } >/dev/null; then
7384 if test -s conftest.err; then
7385 ac_cpp_err=$ac_c_preproc_warn_flag
7392 if test -z "$ac_cpp_err"; then
7393 ac_cv_header_inttypes_h=yes
7395 echo "$as_me: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7397 ac_cv_header_inttypes_h=no
7399 rm -f conftest.err conftest.$ac_ext
7401 echo "$as_me:7401: result: $ac_cv_header_inttypes_h" >&5
7402 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
7403 if test $ac_cv_header_inttypes_h = yes; then
7406 echo "$as_me:7406: checking for char" >&5
7407 echo $ECHO_N "checking for char... $ECHO_C" >&6
7408 if test "${ac_cv_type_char+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7412 #line 7412 "configure"
7413 #include "confdefs.h"
7414 $ac_includes_default
7426 rm -f conftest.$ac_objext
7427 if { (eval echo "$as_me:7427: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>&5
7430 echo "$as_me:7430: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:7433: \"$ac_try\"") >&5
7436 echo "$as_me:7436: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7440 echo "$as_me: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7444 rm -f conftest.$ac_objext conftest.$ac_ext
7446 echo "$as_me:7446: result: $ac_cv_type_char" >&5
7447 echo "${ECHO_T}$ac_cv_type_char" >&6
7449 echo "$as_me:7449: checking size of char" >&5
7450 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7451 if test "${ac_cv_sizeof_char+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 if test "$ac_cv_type_char" = yes; then
7455 if test "$cross_compiling" = yes; then
7456 # Depending upon the size, compute the lo and hi bounds.
7457 cat >conftest.$ac_ext <<_ACEOF
7458 #line 7458 "configure"
7459 #include "confdefs.h"
7460 $ac_includes_default
7464 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
7469 rm -f conftest.$ac_objext
7470 if { (eval echo "$as_me:7470: \"$ac_compile\"") >&5
7471 (eval $ac_compile) 2>&5
7473 echo "$as_me:7473: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -s conftest.$ac_objext'
7476 { (eval echo "$as_me:7476: \"$ac_try\"") >&5
7479 echo "$as_me:7479: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7483 cat >conftest.$ac_ext <<_ACEOF
7484 #line 7484 "configure"
7485 #include "confdefs.h"
7486 $ac_includes_default
7490 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:7496: \"$ac_compile\"") >&5
7497 (eval $ac_compile) 2>&5
7499 echo "$as_me:7499: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (eval echo "$as_me:7502: \"$ac_try\"") >&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_hi=$ac_mid; break
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7513 rm -f conftest.$ac_objext conftest.$ac_ext
7516 echo "$as_me: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7520 cat >conftest.$ac_ext <<_ACEOF
7521 #line 7521 "configure"
7522 #include "confdefs.h"
7523 $ac_includes_default
7527 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
7532 rm -f conftest.$ac_objext
7533 if { (eval echo "$as_me:7533: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>&5
7536 echo "$as_me:7536: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -s conftest.$ac_objext'
7539 { (eval echo "$as_me:7539: \"$ac_try\"") >&5
7542 echo "$as_me:7542: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_lo=$ac_mid; break
7546 echo "$as_me: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7548 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7550 rm -f conftest.$ac_objext conftest.$ac_ext
7553 rm -f conftest.$ac_objext conftest.$ac_ext
7554 # Binary search between lo and hi bounds.
7555 while test "x$ac_lo" != "x$ac_hi"; do
7556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7557 cat >conftest.$ac_ext <<_ACEOF
7558 #line 7558 "configure"
7559 #include "confdefs.h"
7560 $ac_includes_default
7564 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
7569 rm -f conftest.$ac_objext
7570 if { (eval echo "$as_me:7570: \"$ac_compile\"") >&5
7571 (eval $ac_compile) 2>&5
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -s conftest.$ac_objext'
7576 { (eval echo "$as_me:7576: \"$ac_try\"") >&5
7579 echo "$as_me:7579: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7583 echo "$as_me: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 ac_lo=`expr $ac_mid + 1`
7587 rm -f conftest.$ac_objext conftest.$ac_ext
7589 ac_cv_sizeof_char=$ac_lo
7591 if test "$cross_compiling" = yes; then
7592 { { echo "$as_me:7592: error: cannot run test program while cross compiling" >&5
7593 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7594 { (exit 1); exit 1; }; }
7596 cat >conftest.$ac_ext <<_ACEOF
7597 #line 7597 "configure"
7598 #include "confdefs.h"
7599 $ac_includes_default
7603 FILE *f = fopen ("conftest.val", "w");
7606 fprintf (f, "%d", (sizeof (char)));
7612 rm -f conftest$ac_exeext
7613 if { (eval echo "$as_me:7613: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7618 { (eval echo "$as_me:7618: \"$ac_try\"") >&5
7621 echo "$as_me:7621: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_cv_sizeof_char=`cat conftest.val`
7625 echo "$as_me: program exited with status $ac_status" >&5
7626 echo "$as_me: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7629 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:7637: result: $ac_cv_sizeof_char" >&5
7638 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
7639 cat >>confdefs.h <<EOF
7640 #define SIZEOF_CHAR $ac_cv_sizeof_char
7643 echo "$as_me:7643: checking for short" >&5
7644 echo $ECHO_N "checking for short... $ECHO_C" >&6
7645 if test "${ac_cv_type_short+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 cat >conftest.$ac_ext <<_ACEOF
7649 #line 7649 "configure"
7650 #include "confdefs.h"
7651 $ac_includes_default
7663 rm -f conftest.$ac_objext
7664 if { (eval echo "$as_me:7664: \"$ac_compile\"") >&5
7665 (eval $ac_compile) 2>&5
7667 echo "$as_me:7667: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:7670: \"$ac_try\"") >&5
7673 echo "$as_me:7673: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_type_short=yes
7677 echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7681 rm -f conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:7683: result: $ac_cv_type_short" >&5
7684 echo "${ECHO_T}$ac_cv_type_short" >&6
7686 echo "$as_me:7686: checking size of short" >&5
7687 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7688 if test "${ac_cv_sizeof_short+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 if test "$ac_cv_type_short" = yes; then
7692 if test "$cross_compiling" = yes; then
7693 # Depending upon the size, compute the lo and hi bounds.
7694 cat >conftest.$ac_ext <<_ACEOF
7695 #line 7695 "configure"
7696 #include "confdefs.h"
7697 $ac_includes_default
7701 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:7707: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>&5
7710 echo "$as_me:7710: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:7713: \"$ac_try\"") >&5
7716 echo "$as_me:7716: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line 7721 "configure"
7722 #include "confdefs.h"
7723 $ac_includes_default
7727 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7732 rm -f conftest.$ac_objext
7733 if { (eval echo "$as_me:7733: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>&5
7736 echo "$as_me:7736: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:7739: \"$ac_try\"") >&5
7742 echo "$as_me:7742: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_hi=$ac_mid; break
7746 echo "$as_me: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7748 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7750 rm -f conftest.$ac_objext conftest.$ac_ext
7753 echo "$as_me: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7757 cat >conftest.$ac_ext <<_ACEOF
7758 #line 7758 "configure"
7759 #include "confdefs.h"
7760 $ac_includes_default
7764 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:7770: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>&5
7773 echo "$as_me:7773: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:7776: \"$ac_try\"") >&5
7779 echo "$as_me:7779: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_lo=$ac_mid; break
7783 echo "$as_me: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7785 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7787 rm -f conftest.$ac_objext conftest.$ac_ext
7790 rm -f conftest.$ac_objext conftest.$ac_ext
7791 # Binary search between lo and hi bounds.
7792 while test "x$ac_lo" != "x$ac_hi"; do
7793 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7794 cat >conftest.$ac_ext <<_ACEOF
7795 #line 7795 "configure"
7796 #include "confdefs.h"
7797 $ac_includes_default
7801 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7806 rm -f conftest.$ac_objext
7807 if { (eval echo "$as_me:7807: \"$ac_compile\"") >&5
7808 (eval $ac_compile) 2>&5
7810 echo "$as_me:7810: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -s conftest.$ac_objext'
7813 { (eval echo "$as_me:7813: \"$ac_try\"") >&5
7816 echo "$as_me:7816: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7820 echo "$as_me: failed program was:" >&5
7821 cat conftest.$ac_ext >&5
7822 ac_lo=`expr $ac_mid + 1`
7824 rm -f conftest.$ac_objext conftest.$ac_ext
7826 ac_cv_sizeof_short=$ac_lo
7828 if test "$cross_compiling" = yes; then
7829 { { echo "$as_me:7829: error: cannot run test program while cross compiling" >&5
7830 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7831 { (exit 1); exit 1; }; }
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line 7834 "configure"
7835 #include "confdefs.h"
7836 $ac_includes_default
7840 FILE *f = fopen ("conftest.val", "w");
7843 fprintf (f, "%d", (sizeof (short)));
7849 rm -f conftest$ac_exeext
7850 if { (eval echo "$as_me:7850: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>&5
7853 echo "$as_me:7853: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7855 { (eval echo "$as_me:7855: \"$ac_try\"") >&5
7858 echo "$as_me:7858: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_sizeof_short=`cat conftest.val`
7862 echo "$as_me: program exited with status $ac_status" >&5
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7871 ac_cv_sizeof_short=0
7874 echo "$as_me:7874: result: $ac_cv_sizeof_short" >&5
7875 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7876 cat >>confdefs.h <<EOF
7877 #define SIZEOF_SHORT $ac_cv_sizeof_short
7880 echo "$as_me:7880: checking for int" >&5
7881 echo $ECHO_N "checking for int... $ECHO_C" >&6
7882 if test "${ac_cv_type_int+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line 7886 "configure"
7887 #include "confdefs.h"
7888 $ac_includes_default
7900 rm -f conftest.$ac_objext
7901 if { (eval echo "$as_me:7901: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -s conftest.$ac_objext'
7907 { (eval echo "$as_me:7907: \"$ac_try\"") >&5
7910 echo "$as_me:7910: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7914 echo "$as_me: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7918 rm -f conftest.$ac_objext conftest.$ac_ext
7920 echo "$as_me:7920: result: $ac_cv_type_int" >&5
7921 echo "${ECHO_T}$ac_cv_type_int" >&6
7923 echo "$as_me:7923: checking size of int" >&5
7924 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7925 if test "${ac_cv_sizeof_int+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 if test "$ac_cv_type_int" = yes; then
7929 if test "$cross_compiling" = yes; then
7930 # Depending upon the size, compute the lo and hi bounds.
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line 7932 "configure"
7933 #include "confdefs.h"
7934 $ac_includes_default
7938 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7943 rm -f conftest.$ac_objext
7944 if { (eval echo "$as_me:7944: \"$ac_compile\"") >&5
7945 (eval $ac_compile) 2>&5
7947 echo "$as_me:7947: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:7950: \"$ac_try\"") >&5
7953 echo "$as_me:7953: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7957 cat >conftest.$ac_ext <<_ACEOF
7958 #line 7958 "configure"
7959 #include "confdefs.h"
7960 $ac_includes_default
7964 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:7970: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>&5
7973 echo "$as_me:7973: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:7976: \"$ac_try\"") >&5
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_hi=$ac_mid; break
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7987 rm -f conftest.$ac_objext conftest.$ac_ext
7990 echo "$as_me: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line 7995 "configure"
7996 #include "confdefs.h"
7997 $ac_includes_default
8001 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:8007: \"$ac_compile\"") >&5
8008 (eval $ac_compile) 2>&5
8010 echo "$as_me:8010: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_lo=$ac_mid; break
8020 echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8027 rm -f conftest.$ac_objext conftest.$ac_ext
8028 # Binary search between lo and hi bounds.
8029 while test "x$ac_lo" != "x$ac_hi"; do
8030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8031 cat >conftest.$ac_ext <<_ACEOF
8032 #line 8032 "configure"
8033 #include "confdefs.h"
8034 $ac_includes_default
8038 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:8044: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>&5
8047 echo "$as_me:8047: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -s conftest.$ac_objext'
8050 { (eval echo "$as_me:8050: \"$ac_try\"") >&5
8053 echo "$as_me:8053: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8057 echo "$as_me: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8059 ac_lo=`expr $ac_mid + 1`
8061 rm -f conftest.$ac_objext conftest.$ac_ext
8063 ac_cv_sizeof_int=$ac_lo
8065 if test "$cross_compiling" = yes; then
8066 { { echo "$as_me:8066: error: cannot run test program while cross compiling" >&5
8067 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8068 { (exit 1); exit 1; }; }
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line 8071 "configure"
8072 #include "confdefs.h"
8073 $ac_includes_default
8077 FILE *f = fopen ("conftest.val", "w");
8080 fprintf (f, "%d", (sizeof (int)));
8086 rm -f conftest$ac_exeext
8087 if { (eval echo "$as_me:8087: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>&5
8090 echo "$as_me:8090: \$? = $ac_status" >&5
8091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8092 { (eval echo "$as_me:8092: \"$ac_try\"") >&5
8095 echo "$as_me:8095: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_sizeof_int=`cat conftest.val`
8099 echo "$as_me: program exited with status $ac_status" >&5
8100 echo "$as_me: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8103 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8111 echo "$as_me:8111: result: $ac_cv_sizeof_int" >&5
8112 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8113 cat >>confdefs.h <<EOF
8114 #define SIZEOF_INT $ac_cv_sizeof_int
8117 if test x"$ac_cv_sizeof_char" != x"1" -o \
8118 x"$ac_cv_sizeof_short" != x"2" -o \
8119 x"$ac_cv_sizeof_int" != x"4"; then
8120 { { echo "$as_me:8120: error: can not build a default inttypes.h" >&5
8121 echo "$as_me: error: can not build a default inttypes.h" >&2;}
8122 { (exit 1); exit 1; }; }
8124 cat >include/inttypes.h << EOF
8125 /* default inttypes.h for people who do not have it on their system */
8129 #if (!defined __int8_t_defined) && (!defined __BIT_TYPES_DEFINED__)
8130 #define __int8_t_defined
8131 typedef signed char int8_t;
8132 typedef signed short int16_t;
8133 typedef signed int int32_t;
8135 typedef signed long long int64_t;
8138 #if (!defined _LINUX_TYPES_H)
8139 typedef unsigned char uint8_t;
8140 typedef unsigned short uint16_t;
8141 typedef unsigned int uint32_t;
8143 typedef unsigned long long uint64_t;
8151 echo "$as_me:8151: checking for $CC option to accept ANSI C" >&5
8152 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8153 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_cv_prog_cc_stdc=no
8158 cat >conftest.$ac_ext <<_ACEOF
8159 #line 8159 "configure"
8160 #include "confdefs.h"
8163 #include <sys/types.h>
8164 #include <sys/stat.h>
8165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8166 struct buf { int x; };
8167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8168 static char *e (p, i)
8174 static char *f (char * (*g) (char **, int), char **p, ...)
8179 s = g (p, va_arg (v,int));
8183 int test (int i, double x);
8184 struct s1 {int (*f) (int a);};
8185 struct s2 {int (*f) (double a);};
8186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8197 # Don't try gcc -ansi; that turns off useful extensions and
8198 # breaks some systems' header files.
8199 # AIX -qlanglvl=ansi
8200 # Ultrix and OSF/1 -std1
8201 # HP-UX 10.20 and later -Ae
8202 # HP-UX older versions -Aa -D_HPUX_SOURCE
8203 # SVR4 -Xc -D__EXTENSIONS__
8204 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8206 CC="$ac_save_CC $ac_arg"
8207 rm -f conftest.$ac_objext
8208 if { (eval echo "$as_me:8208: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>&5
8211 echo "$as_me:8211: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -s conftest.$ac_objext'
8214 { (eval echo "$as_me:8214: \"$ac_try\"") >&5
8217 echo "$as_me:8217: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219 ac_cv_prog_cc_stdc=$ac_arg
8222 echo "$as_me: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8225 rm -f conftest.$ac_objext
8227 rm -f conftest.$ac_ext conftest.$ac_objext
8232 case "x$ac_cv_prog_cc_stdc" in
8234 echo "$as_me:8234: result: none needed" >&5
8235 echo "${ECHO_T}none needed" >&6 ;;
8237 echo "$as_me:8237: result: $ac_cv_prog_cc_stdc" >&5
8238 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8239 CC="$CC $ac_cv_prog_cc_stdc" ;;
8242 echo "$as_me:8242: checking for an ANSI C-conforming const" >&5
8243 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8244 if test "${ac_cv_c_const+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line 8248 "configure"
8249 #include "confdefs.h"
8254 /* FIXME: Include the comments suggested by Paul. */
8256 /* Ultrix mips cc rejects this. */
8257 typedef int charset[2];
8259 /* SunOS 4.1.1 cc rejects this. */
8260 char const *const *ccp;
8262 /* NEC SVR4.0.2 mips cc rejects this. */
8263 struct point {int x, y;};
8264 static struct point const zero = {0,0};
8265 /* AIX XL C 1.02.0.0 rejects this.
8266 It does not let you subtract one const X* pointer from another in
8267 an arm of an if-expression whose if-part is not a constant
8269 const char *g = "string";
8270 ccp = &g + (g ? g-g : 0);
8271 /* HPUX 7.0 cc rejects these. */
8274 ccp = (char const *const *) p;
8275 { /* SCO 3.2v4 cc rejects this. */
8277 char const *s = 0 ? (char *) 0 : (char const *) 0;
8281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8283 const int *foo = &x[0];
8286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8287 typedef const int *iptr;
8291 { /* AIX XL C 1.02.0.0 rejects this saying
8292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8293 struct s { int j; const int *ap[3]; };
8294 struct s *b; b->j = 5;
8296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8305 rm -f conftest.$ac_objext
8306 if { (eval echo "$as_me:8306: \"$ac_compile\"") >&5
8307 (eval $ac_compile) 2>&5
8309 echo "$as_me:8309: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:8312: \"$ac_try\"") >&5
8315 echo "$as_me:8315: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8319 echo "$as_me: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8323 rm -f conftest.$ac_objext conftest.$ac_ext
8325 echo "$as_me:8325: result: $ac_cv_c_const" >&5
8326 echo "${ECHO_T}$ac_cv_c_const" >&6
8327 if test $ac_cv_c_const = no; then
8329 cat >>confdefs.h <<\EOF
8335 echo "$as_me:8335: checking for inline" >&5
8336 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8337 if test "${ac_cv_c_inline+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 for ac_kw in inline __inline__ __inline; do
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line 8343 "configure"
8344 #include "confdefs.h"
8346 static $ac_kw int static_foo () {return 0; }
8347 $ac_kw int foo () {return 0; }
8351 rm -f conftest.$ac_objext
8352 if { (eval echo "$as_me:8352: \"$ac_compile\"") >&5
8353 (eval $ac_compile) 2>&5
8355 echo "$as_me:8355: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:8358: \"$ac_try\"") >&5
8361 echo "$as_me:8361: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_c_inline=$ac_kw; break
8365 echo "$as_me: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8372 echo "$as_me:8372: result: $ac_cv_c_inline" >&5
8373 echo "${ECHO_T}$ac_cv_c_inline" >&6
8374 case $ac_cv_c_inline in
8377 cat >>confdefs.h <<\EOF
8381 *) cat >>confdefs.h <<EOF
8382 #define inline $ac_cv_c_inline
8387 echo "$as_me:8387: checking for size_t" >&5
8388 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8389 if test "${ac_cv_type_size_t+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 cat >conftest.$ac_ext <<_ACEOF
8393 #line 8393 "configure"
8394 #include "confdefs.h"
8395 $ac_includes_default
8401 if (sizeof (size_t))
8407 rm -f conftest.$ac_objext
8408 if { (eval echo "$as_me:8408: \"$ac_compile\"") >&5
8409 (eval $ac_compile) 2>&5
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:8414: \"$ac_try\"") >&5
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_type_size_t=yes
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 ac_cv_type_size_t=no
8425 rm -f conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:8427: result: $ac_cv_type_size_t" >&5
8428 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8429 if test $ac_cv_type_size_t = yes; then
8433 cat >>confdefs.h <<EOF
8434 #define size_t unsigned
8439 echo "$as_me:8439: checking whether byte ordering is bigendian" >&5
8440 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8441 if test "${ac_cv_c_bigendian+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 ac_cv_c_bigendian=unknown
8445 # See if sys/param.h defines the BYTE_ORDER macro.
8446 cat >conftest.$ac_ext <<_ACEOF
8447 #line 8447 "configure"
8448 #include "confdefs.h"
8449 #include <sys/types.h>
8450 #include <sys/param.h>
8455 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8463 rm -f conftest.$ac_objext
8464 if { (eval echo "$as_me:8464: \"$ac_compile\"") >&5
8465 (eval $ac_compile) 2>&5
8467 echo "$as_me:8467: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:8470: \"$ac_try\"") >&5
8473 echo "$as_me:8473: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 # It does; now see whether it defined to BIG_ENDIAN or not.
8476 cat >conftest.$ac_ext <<_ACEOF
8477 #line 8477 "configure"
8478 #include "confdefs.h"
8479 #include <sys/types.h>
8480 #include <sys/param.h>
8485 #if BYTE_ORDER != BIG_ENDIAN
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:8494: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>&5
8497 echo "$as_me:8497: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest.$ac_objext'
8500 { (eval echo "$as_me:8500: \"$ac_try\"") >&5
8503 echo "$as_me:8503: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_c_bigendian=yes
8507 echo "$as_me: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 ac_cv_c_bigendian=no
8511 rm -f conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 rm -f conftest.$ac_objext conftest.$ac_ext
8517 if test $ac_cv_c_bigendian = unknown; then
8518 if test "$cross_compiling" = yes; then
8519 { { echo "$as_me:8519: error: cannot run test program while cross compiling" >&5
8520 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8521 { (exit 1); exit 1; }; }
8523 cat >conftest.$ac_ext <<_ACEOF
8524 #line 8524 "configure"
8525 #include "confdefs.h"
8529 /* Are we little or big endian? From Harbison&Steele. */
8533 char c[sizeof (long)];
8536 exit (u.c[sizeof (long) - 1] == 1);
8539 rm -f conftest$ac_exeext
8540 if { (eval echo "$as_me:8540: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>&5
8543 echo "$as_me:8543: \$? = $ac_status" >&5
8544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_cv_c_bigendian=no
8552 echo "$as_me: program exited with status $ac_status" >&5
8553 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 ac_cv_c_bigendian=yes
8557 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8561 echo "$as_me:8561: result: $ac_cv_c_bigendian" >&5
8562 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8563 if test $ac_cv_c_bigendian = yes; then
8565 cat >>confdefs.h <<\EOF
8566 #define WORDS_BIGENDIAN 1
8571 for ac_func in memalign
8573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8574 echo "$as_me:8574: checking for $ac_func" >&5
8575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8576 if eval "test \"\${$as_ac_var+set}\" = set"; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8580 #line 8580 "configure"
8581 #include "confdefs.h"
8582 /* System header to define __stub macros and hopefully few prototypes,
8583 which can conflict with char $ac_func (); below. */
8585 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8597 /* The GNU C library defines this for functions which it implements
8598 to always fail with ENOSYS. Some functions are actually named
8599 something starting with __ and the normal name is an alias. */
8600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:8611: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>&5
8614 echo "$as_me:8614: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:8617: \"$ac_try\"") >&5
8620 echo "$as_me:8620: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 eval "$as_ac_var=yes"
8624 echo "$as_me: failed program was:" >&5
8625 cat conftest.$ac_ext >&5
8626 eval "$as_ac_var=no"
8628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8630 echo "$as_me:8630: result: `eval echo '${'$as_ac_var'}'`" >&5
8631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8632 if test `eval echo '${'$as_ac_var'}'` = yes; then
8633 cat >>confdefs.h <<EOF
8634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8640 echo "$as_me:8640: checking return type of signal handlers" >&5
8641 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8642 if test "${ac_cv_type_signal+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 cat >conftest.$ac_ext <<_ACEOF
8646 #line 8646 "configure"
8647 #include "confdefs.h"
8648 #include <sys/types.h>
8654 extern "C" void (*signal (int, void (*)(int)))(int);
8656 void (*signal ()) ();
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:8668: \"$ac_compile\"") >&5
8669 (eval $ac_compile) 2>&5
8671 echo "$as_me:8671: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -s conftest.$ac_objext'
8674 { (eval echo "$as_me:8674: \"$ac_try\"") >&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 ac_cv_type_signal=void
8681 echo "$as_me: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 ac_cv_type_signal=int
8685 rm -f conftest.$ac_objext conftest.$ac_ext
8687 echo "$as_me:8687: result: $ac_cv_type_signal" >&5
8688 echo "${ECHO_T}$ac_cv_type_signal" >&6
8690 cat >>confdefs.h <<EOF
8691 #define RETSIGTYPE $ac_cv_type_signal
8694 LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
8696 # Check whether --enable-double or --disable-double was given.
8697 if test "${enable_double+set}" = set; then
8698 enableval="$enable_double"
8701 if test x"$enable_double" = x"yes"; then
8703 cat >>confdefs.h <<\EOF
8704 #define LIBA52_DOUBLE
8709 # Check whether --enable-djbfft or --disable-djbfft was given.
8710 if test "${enable_djbfft+set}" = set; then
8711 enableval="$enable_djbfft"
8714 if test x"$enable_djbfft" = x"yes"; then
8716 cat >>confdefs.h <<\EOF
8717 #define LIBA52_DJBFFT
8720 LIBA52_LIBS="$LIBA52_LIBS -ldjbfft"
8723 # Check whether --enable-oss or --disable-oss was given.
8724 if test "${enable_oss+set}" = set; then
8725 enableval="$enable_oss"
8728 if test x"$enable_oss" != x"no"; then
8730 *-linux*|*-openbsd*|*-freebsd*|*-bsdi*)
8732 cat >>confdefs.h <<\EOF
8736 echo "$as_me:8736: checking for _oss_ioctl in -lossaudio" >&5
8737 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
8738 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lossaudio $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 #line 8744 "configure"
8745 #include "confdefs.h"
8747 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:8763: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>&5
8766 echo "$as_me:8766: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (eval echo "$as_me:8769: \"$ac_try\"") >&5
8772 echo "$as_me:8772: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_lib_ossaudio__oss_ioctl=yes
8776 echo "$as_me: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 ac_cv_lib_ossaudio__oss_ioctl=no
8780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781 LIBS=$ac_check_lib_save_LIBS
8783 echo "$as_me:8783: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8784 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
8785 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
8786 LIBAO_LIBS="$LIBAO_LIBS -lossaudio"
8792 # Check whether --enable-solaris-audio or --disable-solaris-audio was given.
8793 if test "${enable_solaris_audio+set}" = set; then
8794 enableval="$enable_solaris_audio"
8797 if test x"$enable_solaris_audio" != x"no"; then
8801 cat >>confdefs.h <<\EOF
8802 #define LIBAO_SOLARIS
8808 # Check whether --enable-al-audio or --disable-al-audio was given.
8809 if test "${enable_al_audio+set}" = set; then
8810 enableval="$enable_al_audio"
8813 if test x"$enable_al" != x"no"; then
8816 LIBAO_LIBS="$LIBAO_LIBS -laudio"
8818 cat >>confdefs.h <<\EOF
8825 # Check whether --enable-gprof or --disable-gprof was given.
8826 if test "${enable_gprof+set}" = set; then
8827 enableval="$enable_gprof"
8830 if test x"$enable_gprof" = x"yes"; then
8832 cat >>confdefs.h <<\EOF
8833 #define A52DEC_GPROF
8836 A52DEC_CFLAGS="$A52DEC_CFLAGS -p"
8839 # Check whether --enable-warnings or --disable-warnings was given.
8840 if test "${enable_warnings+set}" = set; then
8841 enableval="$enable_warnings"
8844 if test x"$enable_warnings" != x"no" -a x"$GCC" = x"yes"; then
8845 OPT_CFLAGS="$CFLAGS -Wall -Werror"
8846 echo "$as_me:8846: checking if $CC supports $OPT_CFLAGS flags" >&5
8847 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
8848 SAVE_CFLAGS="$CFLAGS"
8849 CFLAGS="$OPT_CFLAGS"
8850 cat >conftest.$ac_ext <<_ACEOF
8851 #line 8851 "configure"
8852 #include "confdefs.h"
8862 rm -f conftest.$ac_objext
8863 if { (eval echo "$as_me:8863: \"$ac_compile\"") >&5
8864 (eval $ac_compile) 2>&5
8866 echo "$as_me:8866: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:8869: \"$ac_try\"") >&5
8872 echo "$as_me:8872: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_try_cflags_ok=yes
8876 echo "$as_me: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8878 ac_cv_try_cflags_ok=no
8880 rm -f conftest.$ac_objext conftest.$ac_ext
8881 CFLAGS="$SAVE_CFLAGS"
8882 echo "$as_me:8882: result: $ac_cv_try_cflags_ok" >&5
8883 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
8884 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
8889 elif test x"$TENDRA" = x"yes"; then
8890 CFLAGS="$CFLAGS -DTenDRA_check"
8893 echo "$as_me:8893: checking __attribute__ ((aligned ())) support" >&5
8894 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
8895 if test "${ac_cv_c_attribute_aligned+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 ac_cv_c_attribute_aligned=0
8899 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line 8901 "configure"
8902 #include "confdefs.h"
8907 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:8913: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>&5
8916 echo "$as_me:8916: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -s conftest.$ac_objext'
8919 { (eval echo "$as_me:8919: \"$ac_try\"") >&5
8922 echo "$as_me:8922: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
8926 echo "$as_me: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8929 rm -f conftest.$ac_objext conftest.$ac_ext
8932 echo "$as_me:8932: result: $ac_cv_c_attribute_aligned" >&5
8933 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
8934 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
8936 cat >>confdefs.h <<EOF
8937 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
8942 cat >confcache <<\_ACEOF
8943 # This file is a shell script that caches the results of configure
8944 # tests run on this system so they can be shared between configure
8945 # scripts and configure runs, see configure's option --config-cache.
8946 # It is not useful on other systems. If it contains results you don't
8947 # want to keep, you may remove or edit it.
8949 # config.status only pays attention to the cache file if you give it
8950 # the --recheck option to rerun configure.
8952 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8958 # The following way of writing the cache mishandles newlines in values,
8959 # but we know of no workaround that is simple, portable, and efficient.
8960 # So, don't put newlines in cache variables' values.
8961 # Ultrix sh set writes to stderr and can't be redirected directly,
8962 # and sets the high bit in the cache file unless we assign to the vars.
8965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8967 # `set' does not quote correctly, so add quotes (double-quote
8968 # substitution turns \\\\ into \\, and sed turns \\ into \).
8971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8974 # `set' quotes correctly as required by POSIX, so do not add quotes.
8976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8987 if cmp -s $cache_file confcache; then :; else
8988 if test -w $cache_file; then
8989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8990 cat confcache >$cache_file
8992 echo "not updating unwritable cache $cache_file"
8997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8998 # Let make expand exec_prefix.
8999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9001 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9002 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9003 # trailing colons and then remove the whole line if VPATH becomes empty
9004 # (actually we leave an empty line to preserve line numbers).
9005 if test "x$srcdir" = x.; then
9006 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9007 s/:*\$(srcdir):*/:/;
9008 s/:*\${srcdir}:*/:/;
9010 s/^\([^=]*=[ ]*\):*/\1/;
9016 DEFS=-DHAVE_CONFIG_H
9018 : ${CONFIG_STATUS=./config.status}
9019 ac_clean_files_save=$ac_clean_files
9020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9021 { echo "$as_me:9021: creating $CONFIG_STATUS" >&5
9022 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9023 cat >$CONFIG_STATUS <<_ACEOF
9025 # Generated automatically by configure.
9026 # Run this file to recreate the current configuration.
9027 # Compiler output produced by configure, useful for debugging
9028 # configure, is in config.log if it exists.
9031 SHELL=\${CONFIG_SHELL-$SHELL}
9032 ac_cs_invocation="\$0 \$@"
9036 cat >>$CONFIG_STATUS <<\_ACEOF
9037 # Be Bourne compatible
9038 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9041 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9045 # Name of the executable.
9046 as_me=`echo "$0" |sed 's,.*[\\/],,'`
9048 if expr a : '\(a\)' >/dev/null 2>&1; then
9054 rm -f conf$$ conf$$.exe conf$$.file
9056 if ln -s conf$$.file conf$$ 2>/dev/null; then
9057 # We could just check for DJGPP; but this test a) works b) is more generic
9058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9059 if test -f conf$$.exe; then
9060 # Don't use ln at all; we don't have any links
9065 elif ln conf$$.file conf$$ 2>/dev/null; then
9070 rm -f conf$$ conf$$.exe conf$$.file
9072 as_executable_p="test -f"
9074 # Support unset when possible.
9075 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9082 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
9083 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
9084 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
9085 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
9086 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
9087 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
9088 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
9089 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
9092 # We need space, tab and new line, in precisely that order.
9098 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
9104 # Files that config.status was made for.
9105 if test -n "$ac_config_files"; then
9106 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9109 if test -n "$ac_config_headers"; then
9110 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9113 if test -n "$ac_config_links"; then
9114 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9117 if test -n "$ac_config_commands"; then
9118 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9121 cat >>$CONFIG_STATUS <<\EOF
9124 \`$as_me' instantiates files from templates according to the
9125 current configuration.
9127 Usage: $0 [OPTIONS] [FILE]...
9129 -h, --help print this help, then exit
9130 -V, --version print version number, then exit
9131 -d, --debug don't remove temporary files
9132 --recheck update $as_me by reconfiguring in the same conditions
9133 --file=FILE[:TEMPLATE]
9134 instantiate the configuration file FILE
9135 --header=FILE[:TEMPLATE]
9136 instantiate the configuration header FILE
9138 Configuration files:
9141 Configuration headers:
9144 Configuration commands:
9147 Report bugs to <bug-autoconf@gnu.org>."
9150 cat >>$CONFIG_STATUS <<EOF
9153 configured by $0, generated by GNU Autoconf 2.52,
9154 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9156 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9157 Free Software Foundation, Inc.
9158 This config.status script is free software; the Free Software Foundation
9159 gives unlimited permission to copy, distribute and modify it."
9164 cat >>$CONFIG_STATUS <<\EOF
9165 # If no file are specified by the user, then we need to provide default
9166 # value. By we need to know if files were specified by the user.
9172 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9173 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9175 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9179 *) # This is not an option, so the user has probably given explicit
9181 ac_need_defaults=false;;
9185 # Handling of the options.
9187 cat >>$CONFIG_STATUS <<EOF
9188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9189 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9190 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9192 cat >>$CONFIG_STATUS <<\EOF
9193 --version | --vers* | -V )
9194 echo "$ac_cs_version"; exit 0 ;;
9196 # Conflict between --help and --header
9197 { { echo "$as_me:9197: error: ambiguous option: $1
9198 Try \`$0 --help' for more information." >&5
9199 echo "$as_me: error: ambiguous option: $1
9200 Try \`$0 --help' for more information." >&2;}
9201 { (exit 1); exit 1; }; };;
9202 --help | --hel | -h )
9203 echo "$ac_cs_usage"; exit 0 ;;
9204 --debug | --d* | -d )
9206 --file | --fil | --fi | --f )
9208 CONFIG_FILES="$CONFIG_FILES $1"
9209 ac_need_defaults=false;;
9210 --header | --heade | --head | --hea )
9212 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9213 ac_need_defaults=false;;
9216 -*) { { echo "$as_me:9216: error: unrecognized option: $1
9217 Try \`$0 --help' for more information." >&5
9218 echo "$as_me: error: unrecognized option: $1
9219 Try \`$0 --help' for more information." >&2;}
9220 { (exit 1); exit 1; }; } ;;
9222 *) ac_config_targets="$ac_config_targets $1" ;;
9231 ## ----------------------- ##
9232 ## Running config.status. ##
9233 ## ----------------------- ##
9235 This file was extended by $as_me 2.52, executed with
9236 CONFIG_FILES = $CONFIG_FILES
9237 CONFIG_HEADERS = $CONFIG_HEADERS
9238 CONFIG_LINKS = $CONFIG_LINKS
9239 CONFIG_COMMANDS = $CONFIG_COMMANDS
9241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9246 cat >>$CONFIG_STATUS <<EOF
9248 # INIT-COMMANDS section.
9253 cat >>$CONFIG_STATUS <<\EOF
9254 for ac_config_target in $ac_config_targets
9256 case "$ac_config_target" in
9257 # Handling of arguments.
9258 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9259 "autotools/Makefile" ) CONFIG_FILES="$CONFIG_FILES autotools/Makefile" ;;
9260 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9261 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
9262 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9263 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9264 "liba52/Makefile" ) CONFIG_FILES="$CONFIG_FILES liba52/Makefile" ;;
9265 "libao/Makefile" ) CONFIG_FILES="$CONFIG_FILES libao/Makefile" ;;
9266 "vc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES vc++/Makefile" ;;
9267 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9268 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
9269 *) { { echo "$as_me:9269: error: invalid argument: $ac_config_target" >&5
9270 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9271 { (exit 1); exit 1; }; };;
9275 # If the user did not use the arguments to specify the items to instantiate,
9276 # then the envvar interface is used. Set only those that are not.
9277 # We use the long form for the default assignment because of an extremely
9278 # bizarre bug on SunOS 4.1.3.
9279 if $ac_need_defaults; then
9280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9282 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9285 # Create a temporary directory, and hook for its removal unless debugging.
9288 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9289 trap '{ (exit 1); exit 1; }' 1 2 13 15
9292 # Create a (secure) tmp directory for tmp files.
9295 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9296 test -n "$tmp" && test -d "$tmp"
9299 tmp=$TMPDIR/cs$$-$RANDOM
9300 (umask 077 && mkdir $tmp)
9303 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9304 { (exit 1); exit 1; }
9309 cat >>$CONFIG_STATUS <<EOF
9312 # CONFIG_FILES section.
9315 # No need to generate the scripts if there are no CONFIG_FILES.
9316 # This happens for instance when ./config.status config.h
9317 if test -n "\$CONFIG_FILES"; then
9318 # Protect against being on the right side of a sed subst in config.status.
9319 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9320 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9321 s,@SHELL@,$SHELL,;t t
9322 s,@exec_prefix@,$exec_prefix,;t t
9323 s,@prefix@,$prefix,;t t
9324 s,@program_transform_name@,$program_transform_name,;t t
9325 s,@bindir@,$bindir,;t t
9326 s,@sbindir@,$sbindir,;t t
9327 s,@libexecdir@,$libexecdir,;t t
9328 s,@datadir@,$datadir,;t t
9329 s,@sysconfdir@,$sysconfdir,;t t
9330 s,@sharedstatedir@,$sharedstatedir,;t t
9331 s,@localstatedir@,$localstatedir,;t t
9332 s,@libdir@,$libdir,;t t
9333 s,@includedir@,$includedir,;t t
9334 s,@oldincludedir@,$oldincludedir,;t t
9335 s,@infodir@,$infodir,;t t
9336 s,@mandir@,$mandir,;t t
9337 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9338 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9339 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9340 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9341 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9342 s,@build_alias@,$build_alias,;t t
9343 s,@host_alias@,$host_alias,;t t
9344 s,@target_alias@,$target_alias,;t t
9345 s,@ECHO_C@,$ECHO_C,;t t
9346 s,@ECHO_N@,$ECHO_N,;t t
9347 s,@ECHO_T@,$ECHO_T,;t t
9348 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9351 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9352 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9353 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9354 s,@PACKAGE@,$PACKAGE,;t t
9355 s,@VERSION@,$VERSION,;t t
9356 s,@ACLOCAL@,$ACLOCAL,;t t
9357 s,@AUTOCONF@,$AUTOCONF,;t t
9358 s,@AUTOMAKE@,$AUTOMAKE,;t t
9359 s,@AUTOHEADER@,$AUTOHEADER,;t t
9360 s,@MAKEINFO@,$MAKEINFO,;t t
9361 s,@SET_MAKE@,$SET_MAKE,;t t
9362 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9363 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9364 s,@MAINT@,$MAINT,;t t
9365 s,@build@,$build,;t t
9366 s,@build_cpu@,$build_cpu,;t t
9367 s,@build_vendor@,$build_vendor,;t t
9368 s,@build_os@,$build_os,;t t
9370 s,@host_cpu@,$host_cpu,;t t
9371 s,@host_vendor@,$host_vendor,;t t
9372 s,@host_os@,$host_os,;t t
9374 s,@CFLAGS@,$CFLAGS,;t t
9375 s,@LDFLAGS@,$LDFLAGS,;t t
9376 s,@CPPFLAGS@,$CPPFLAGS,;t t
9377 s,@ac_ct_CC@,$ac_ct_CC,;t t
9378 s,@EXEEXT@,$EXEEXT,;t t
9379 s,@OBJEXT@,$OBJEXT,;t t
9383 s,@RANLIB@,$RANLIB,;t t
9384 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9385 s,@STRIP@,$STRIP,;t t
9386 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9387 s,@DLLTOOL@,$DLLTOOL,;t t
9388 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
9390 s,@ac_ct_AS@,$ac_ct_AS,;t t
9391 s,@OBJDUMP@,$OBJDUMP,;t t
9392 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
9393 s,@LIBTOOL@,$LIBTOOL,;t t
9394 s,@INCLUDES@,$INCLUDES,;t t
9395 s,@LIBA52_CFLAGS@,$LIBA52_CFLAGS,;t t
9396 s,@LIBA52_LIBS@,$LIBA52_LIBS,;t t
9397 s,@LIBAO_LIBS@,$LIBAO_LIBS,;t t
9398 s,@A52DEC_CFLAGS@,$A52DEC_CFLAGS,;t t
9403 cat >>$CONFIG_STATUS <<\EOF
9404 # Split the substitutions into bite-sized pieces for seds with
9405 # small command number limits, like on Digital OSF/1 and HP-UX.
9407 ac_sed_frag=1 # Number of current file.
9408 ac_beg=1 # First line for current file.
9409 ac_end=$ac_max_sed_lines # Line after last line for current file.
9412 while $ac_more_lines; do
9413 if test $ac_beg -gt 1; then
9414 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9416 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9418 if test ! -s $tmp/subs.frag; then
9421 # The purpose of the label and of the branching condition is to
9422 # speed up the sed processing (if there are no `@' at all, there
9423 # is no need to browse any of the substitutions).
9424 # These are the two extra sed commands mentioned above.
9426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9427 if test -z "$ac_sed_cmds"; then
9428 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9430 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9432 ac_sed_frag=`expr $ac_sed_frag + 1`
9434 ac_end=`expr $ac_end + $ac_max_sed_lines`
9437 if test -z "$ac_sed_cmds"; then
9440 fi # test -n "$CONFIG_FILES"
9443 cat >>$CONFIG_STATUS <<\EOF
9444 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9447 - | *:- | *:-:* ) # input from stdin
9449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9453 * ) ac_file_in=$ac_file.in ;;
9456 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9457 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9458 X"$ac_file" : 'X\(//\)[^/]' \| \
9459 X"$ac_file" : 'X\(//\)$' \| \
9460 X"$ac_file" : 'X\(/\)' \| \
9461 . : '\(.\)' 2>/dev/null ||
9463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9465 /^X\(\/\/\)$/{ s//\1/; q; }
9466 /^X\(\/\).*/{ s//\1/; q; }
9468 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9470 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9474 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9475 case $as_mkdir_dir in
9476 # Skip DOS drivespec
9477 ?:) as_incr_dir=$as_mkdir_dir ;;
9479 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9480 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9485 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9486 # A "../" for each directory in $ac_dir_suffix.
9487 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9489 ac_dir_suffix= ac_dots=
9494 if test -z "$ac_dots"; then
9497 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9500 ac_srcdir=$srcdir$ac_dir_suffix;
9501 ac_top_srcdir=$srcdir ;;
9503 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9504 ac_top_srcdir=$ac_dots$srcdir ;;
9508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9509 *) ac_INSTALL=$ac_dots$INSTALL ;;
9512 if test x"$ac_file" != x-; then
9513 { echo "$as_me:9513: creating $ac_file" >&5
9514 echo "$as_me: creating $ac_file" >&6;}
9517 # Let's still pretend it is `configure' which instantiates (i.e., don't
9518 # use $as_me), people would be surprised to read:
9519 # /* config.h. Generated automatically by config.status. */
9520 configure_input="Generated automatically from `echo $ac_file_in |
9521 sed 's,.*/,,'` by configure."
9523 # First look for the input files in the build tree, otherwise in the
9525 ac_file_inputs=`IFS=:
9526 for f in $ac_file_in; do
9528 -) echo $tmp/stdin ;;
9530 # Absolute (can't be DOS-style, as IFS=:)
9531 test -f "$f" || { { echo "$as_me:9531: error: cannot find input file: $f" >&5
9532 echo "$as_me: error: cannot find input file: $f" >&2;}
9533 { (exit 1); exit 1; }; }
9536 if test -f "$f"; then
9539 elif test -f "$srcdir/$f"; then
9544 { { echo "$as_me:9544: error: cannot find input file: $f" >&5
9545 echo "$as_me: error: cannot find input file: $f" >&2;}
9546 { (exit 1); exit 1; }; }
9549 done` || { (exit 1); exit 1; }
9551 cat >>$CONFIG_STATUS <<EOF
9555 cat >>$CONFIG_STATUS <<\EOF
9557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9558 s,@configure_input@,$configure_input,;t t
9559 s,@srcdir@,$ac_srcdir,;t t
9560 s,@top_srcdir@,$ac_top_srcdir,;t t
9561 s,@INSTALL@,$ac_INSTALL,;t t
9562 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9564 if test x"$ac_file" != x-; then
9565 mv $tmp/out $ac_file
9573 cat >>$CONFIG_STATUS <<\EOF
9576 # CONFIG_HEADER section.
9579 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9580 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9582 # ac_d sets the value in "#define NAME VALUE" lines.
9583 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9584 ac_dB='[ ].*$,\1#\2'
9587 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9588 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9589 ac_uB='$,\1#\2define\3'
9593 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9596 - | *:- | *:-:* ) # input from stdin
9598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9602 * ) ac_file_in=$ac_file.in ;;
9605 test x"$ac_file" != x- && { echo "$as_me:9605: creating $ac_file" >&5
9606 echo "$as_me: creating $ac_file" >&6;}
9608 # First look for the input files in the build tree, otherwise in the
9610 ac_file_inputs=`IFS=:
9611 for f in $ac_file_in; do
9613 -) echo $tmp/stdin ;;
9615 # Absolute (can't be DOS-style, as IFS=:)
9616 test -f "$f" || { { echo "$as_me:9616: error: cannot find input file: $f" >&5
9617 echo "$as_me: error: cannot find input file: $f" >&2;}
9618 { (exit 1); exit 1; }; }
9621 if test -f "$f"; then
9624 elif test -f "$srcdir/$f"; then
9629 { { echo "$as_me:9629: error: cannot find input file: $f" >&5
9630 echo "$as_me: error: cannot find input file: $f" >&2;}
9631 { (exit 1); exit 1; }; }
9634 done` || { (exit 1); exit 1; }
9635 # Remove the trailing spaces.
9636 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9640 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9641 # `conftest.undefs', that substitutes the proper values into
9642 # config.h.in to produce config.h. The first handles `#define'
9643 # templates, and the second `#undef' templates.
9644 # And first: Protect against being on the right side of a sed subst in
9645 # config.status. Protect against being in an unquoted here document
9647 rm -f conftest.defines conftest.undefs
9648 # Using a here document instead of a string reduces the quoting nightmare.
9649 # Putting comments in sed scripts is not portable.
9651 # `end' is used to avoid that the second main sed command (meant for
9652 # 0-ary CPP macros) applies to n-ary macro definitions.
9653 # See the Autoconf documentation for `clear'.
9654 cat >confdef2sed.sed <<\EOF
9659 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9661 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9664 # If some macros were called several times there might be several times
9665 # the same #defines, which is useless. Nevertheless, we may not want to
9666 # sort them, since we want the *last* AC-DEFINE to be honored.
9667 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9668 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9669 rm -f confdef2sed.sed
9671 # This sed command replaces #undef with comments. This is necessary, for
9672 # example, in the case of _POSIX_SOURCE, which is predefined and required
9673 # on some systems where configure will not decide to define it.
9674 cat >>conftest.undefs <<\EOF
9675 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9678 # Break up conftest.defines because some shells have a limit on the size
9679 # of here documents, and old seds have small limits too (100 cmds).
9680 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9681 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9682 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9683 echo ' :' >>$CONFIG_STATUS
9685 while grep . conftest.defines >/dev/null
9687 # Write a limited-size here document to $tmp/defines.sed.
9688 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9689 # Speed up: don't consider the non `#define' lines.
9690 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9691 # Work around the forget-to-reset-the-flag bug.
9692 echo 't clr' >>$CONFIG_STATUS
9693 echo ': clr' >>$CONFIG_STATUS
9694 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9696 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9700 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9701 rm -f conftest.defines
9702 mv conftest.tail conftest.defines
9704 rm -f conftest.defines
9705 echo ' fi # egrep' >>$CONFIG_STATUS
9706 echo >>$CONFIG_STATUS
9708 # Break up conftest.undefs because some shells have a limit on the size
9709 # of here documents, and old seds have small limits too (100 cmds).
9710 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9712 while grep . conftest.undefs >/dev/null
9714 # Write a limited-size here document to $tmp/undefs.sed.
9715 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9716 # Speed up: don't consider the non `#undef'
9717 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9718 # Work around the forget-to-reset-the-flag bug.
9719 echo 't clr' >>$CONFIG_STATUS
9720 echo ': clr' >>$CONFIG_STATUS
9721 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9723 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9727 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9728 rm -f conftest.undefs
9729 mv conftest.tail conftest.undefs
9731 rm -f conftest.undefs
9733 cat >>$CONFIG_STATUS <<\EOF
9734 # Let's still pretend it is `configure' which instantiates (i.e., don't
9735 # use $as_me), people would be surprised to read:
9736 # /* config.h. Generated automatically by config.status. */
9737 if test x"$ac_file" = x-; then
9738 echo "/* Generated automatically by configure. */" >$tmp/config.h
9740 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9742 cat $tmp/in >>$tmp/config.h
9744 if test x"$ac_file" != x-; then
9745 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9746 { echo "$as_me:9746: $ac_file is unchanged" >&5
9747 echo "$as_me: $ac_file is unchanged" >&6;}
9749 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9750 X"$ac_file" : 'X\(//\)[^/]' \| \
9751 X"$ac_file" : 'X\(//\)$' \| \
9752 X"$ac_file" : 'X\(/\)' \| \
9753 . : '\(.\)' 2>/dev/null ||
9755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9757 /^X\(\/\/\)$/{ s//\1/; q; }
9758 /^X\(\/\).*/{ s//\1/; q; }
9760 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9762 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9766 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9767 case $as_mkdir_dir in
9768 # Skip DOS drivespec
9769 ?:) as_incr_dir=$as_mkdir_dir ;;
9771 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9772 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9779 mv $tmp/config.h $ac_file
9787 cat >>$CONFIG_STATUS <<\EOF
9790 # CONFIG_COMMANDS section.
9792 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9793 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9794 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9797 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
9802 cat >>$CONFIG_STATUS <<\EOF
9804 { (exit 0); exit 0; }
9806 chmod +x $CONFIG_STATUS
9807 ac_clean_files=$ac_clean_files_save
9809 # configure is writing to config.log, and then calls config.status.
9810 # config.status does its own redirection, appending to config.log.
9811 # Unfortunately, on DOS this fails, as config.log is still kept open
9812 # by configure, so config.status won't be able to write to it; its
9813 # output is simply discarded. So we exec the FD to /dev/null,
9814 # effectively closing config.log, so it can be properly (re)opened and
9815 # appended to by config.status. When coming back to configure, we
9816 # need to make the FD available again.
9817 if test "$no_create" != yes; then
9820 $SHELL $CONFIG_STATUS || ac_cs_success=false
9822 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9823 # would make configure fail if this is the last instruction.
9824 $ac_cs_success || { (exit 1); exit 1; }