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="configure.in"
265 # Initialize some variables set by options.
267 ac_init_version=false
268 # The variables have the same names as the options, with
269 # dashes changed to underlines.
277 program_transform_name=s,x,x,
285 # Installation directory options.
286 # These are left unexpanded so users can "make install exec_prefix=/foo"
287 # and all the variables that are supposed to be based on exec_prefix
288 # by default will actually change.
289 # Use braces instead of parens because sh, perl, etc. also accept them.
290 bindir='${exec_prefix}/bin'
291 sbindir='${exec_prefix}/sbin'
292 libexecdir='${exec_prefix}/libexec'
293 datadir='${prefix}/share'
294 sysconfdir='${prefix}/etc'
295 sharedstatedir='${prefix}/com'
296 localstatedir='${prefix}/var'
297 libdir='${exec_prefix}/lib'
298 includedir='${prefix}/include'
299 oldincludedir='/usr/include'
300 infodir='${prefix}/info'
301 mandir='${prefix}/man'
303 # Identity of this package.
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
320 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
322 # Accept the important Cygnus configure options, so we can diagnose typos.
326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
331 -build | --build | --buil | --bui | --bu)
332 ac_prev=build_alias ;;
333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
334 build_alias=$ac_optarg ;;
336 -cache-file | --cache-file | --cache-fil | --cache-fi \
337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338 ac_prev=cache_file ;;
339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
341 cache_file=$ac_optarg ;;
344 cache_file=config.cache ;;
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
350 datadir=$ac_optarg ;;
352 -disable-* | --disable-*)
353 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
361 -enable-* | --enable-*)
362 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363 # Reject names that are not valid shell variable names.
364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
372 eval "enable_$ac_feature='$ac_optarg'" ;;
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix=$ac_optarg ;;
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
387 -help | --help | --hel | --he | -h)
389 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
390 ac_init_help=recursive ;;
391 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
392 ac_init_help=short ;;
394 -host | --host | --hos | --ho)
395 ac_prev=host_alias ;;
396 -host=* | --host=* | --hos=* | --ho=*)
397 host_alias=$ac_optarg ;;
399 -includedir | --includedir | --includedi | --included | --include \
400 | --includ | --inclu | --incl | --inc)
401 ac_prev=includedir ;;
402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403 | --includ=* | --inclu=* | --incl=* | --inc=*)
404 includedir=$ac_optarg ;;
406 -infodir | --infodir | --infodi | --infod | --info | --inf)
408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
409 infodir=$ac_optarg ;;
411 -libdir | --libdir | --libdi | --libd)
413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417 | --libexe | --libex | --libe)
418 ac_prev=libexecdir ;;
419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420 | --libexe=* | --libex=* | --libe=*)
421 libexecdir=$ac_optarg ;;
423 -localstatedir | --localstatedir | --localstatedi | --localstated \
424 | --localstate | --localstat | --localsta | --localst \
425 | --locals | --local | --loca | --loc | --lo)
426 ac_prev=localstatedir ;;
427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
430 localstatedir=$ac_optarg ;;
432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
438 # Obsolete; use --without-fp.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451 | --oldin | --oldi | --old | --ol | --o)
452 ac_prev=oldincludedir ;;
453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
456 oldincludedir=$ac_optarg ;;
458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
464 | --program-pre | --program-pr | --program-p)
465 ac_prev=program_prefix ;;
466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
468 program_prefix=$ac_optarg ;;
470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
471 | --program-suf | --program-su | --program-s)
472 ac_prev=program_suffix ;;
473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
475 program_suffix=$ac_optarg ;;
477 -program-transform-name | --program-transform-name \
478 | --program-transform-nam | --program-transform-na \
479 | --program-transform-n | --program-transform- \
480 | --program-transform | --program-transfor \
481 | --program-transfo | --program-transf \
482 | --program-trans | --program-tran \
483 | --progr-tra | --program-tr | --program-t)
484 ac_prev=program_transform_name ;;
485 -program-transform-name=* | --program-transform-name=* \
486 | --program-transform-nam=* | --program-transform-na=* \
487 | --program-transform-n=* | --program-transform-=* \
488 | --program-transform=* | --program-transfor=* \
489 | --program-transfo=* | --program-transf=* \
490 | --program-trans=* | --program-tran=* \
491 | --progr-tra=* | --program-tr=* | --program-t=*)
492 program_transform_name=$ac_optarg ;;
494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495 | -silent | --silent | --silen | --sile | --sil)
498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
502 sbindir=$ac_optarg ;;
504 -sharedstatedir | --sharedstatedir | --sharedstatedi \
505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506 | --sharedst | --shareds | --shared | --share | --shar \
508 ac_prev=sharedstatedir ;;
509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
513 sharedstatedir=$ac_optarg ;;
515 -site | --site | --sit)
517 -site=* | --site=* | --sit=*)
520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526 | --syscon | --sysco | --sysc | --sys | --sy)
527 ac_prev=sysconfdir ;;
528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
530 sysconfdir=$ac_optarg ;;
532 -target | --target | --targe | --targ | --tar | --ta | --t)
533 ac_prev=target_alias ;;
534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
535 target_alias=$ac_optarg ;;
537 -v | -verbose | --verbose | --verbos | --verbo | --verb)
540 -version | --version | --versio | --versi | --vers | -V)
544 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
549 ac_package=`echo $ac_package| sed 's/-/_/g'`
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 eval "with_$ac_package='$ac_optarg'" ;;
556 -without-* | --without-*)
557 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
566 # Obsolete; use --with-x.
569 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570 | --x-incl | --x-inc | --x-in | --x-i)
571 ac_prev=x_includes ;;
572 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
574 x_includes=$ac_optarg ;;
576 -x-libraries | --x-libraries | --x-librarie | --x-librari \
577 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578 ac_prev=x_libraries ;;
579 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
581 x_libraries=$ac_optarg ;;
583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584 Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 if test -n "$ac_prev"; then
610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
615 # Be sure to have absolute paths.
616 for ac_var in exec_prefix prefix
618 eval ac_val=$`echo $ac_var`
620 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
626 # Be sure to have absolute paths.
627 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
630 eval ac_val=$`echo $ac_var`
632 [\\/$]* | ?:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
638 # There might be people who depend on the old broken behavior: `$host'
639 # used to hold the argument of --host etc.
644 # FIXME: should be removed in autoconf 3.0.
645 if test "x$host_alias" != x; then
646 if test "x$build_alias" = x; then
647 cross_compiling=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
656 test -n "$host_alias" && ac_tool_prefix=$host_alias-
658 test "$silent" = yes && exec 6>/dev/null
660 # Find the source files, if location was not specified.
661 if test -z "$srcdir"; then
662 ac_srcdir_defaulted=yes
663 # Try the directory containing this script, then its parent.
665 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
666 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
668 if test ! -r $srcdir/$ac_unique_file; then
672 ac_srcdir_defaulted=no
674 if test ! -r $srcdir/$ac_unique_file; then
675 if test "$ac_srcdir_defaulted" = yes; then
676 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677 { (exit 1); exit 1; }; }
679 { echo "$as_me: error: cannot find sources in $srcdir" >&2
680 { (exit 1); exit 1; }; }
683 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684 ac_env_build_alias_set=${build_alias+set}
685 ac_env_build_alias_value=$build_alias
686 ac_cv_env_build_alias_set=${build_alias+set}
687 ac_cv_env_build_alias_value=$build_alias
688 ac_env_host_alias_set=${host_alias+set}
689 ac_env_host_alias_value=$host_alias
690 ac_cv_env_host_alias_set=${host_alias+set}
691 ac_cv_env_host_alias_value=$host_alias
692 ac_env_target_alias_set=${target_alias+set}
693 ac_env_target_alias_value=$target_alias
694 ac_cv_env_target_alias_set=${target_alias+set}
695 ac_cv_env_target_alias_value=$target_alias
696 ac_env_CXX_set=${CXX+set}
697 ac_env_CXX_value=$CXX
698 ac_cv_env_CXX_set=${CXX+set}
699 ac_cv_env_CXX_value=$CXX
700 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
701 ac_env_CXXFLAGS_value=$CXXFLAGS
702 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
703 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
704 ac_env_LDFLAGS_set=${LDFLAGS+set}
705 ac_env_LDFLAGS_value=$LDFLAGS
706 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
707 ac_cv_env_LDFLAGS_value=$LDFLAGS
708 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
709 ac_env_CPPFLAGS_value=$CPPFLAGS
710 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
711 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
712 ac_env_CC_set=${CC+set}
714 ac_cv_env_CC_set=${CC+set}
715 ac_cv_env_CC_value=$CC
716 ac_env_CFLAGS_set=${CFLAGS+set}
717 ac_env_CFLAGS_value=$CFLAGS
718 ac_cv_env_CFLAGS_set=${CFLAGS+set}
719 ac_cv_env_CFLAGS_value=$CFLAGS
720 ac_env_CXXCPP_set=${CXXCPP+set}
721 ac_env_CXXCPP_value=$CXXCPP
722 ac_cv_env_CXXCPP_set=${CXXCPP+set}
723 ac_cv_env_CXXCPP_value=$CXXCPP
726 # Report the --help message.
728 if test "$ac_init_help" = "long"; then
729 # Omit some internal or obsolete options to make the list less imposing.
730 # This message is too long to be a string in the A/UX 3.1 sh.
732 \`configure' configures this package to adapt to many kinds of systems.
734 Usage: $0 [OPTION]... [VAR=VALUE]...
736 To assign environment variables (e.g., CC, CFLAGS...), specify them as
737 VAR=VALUE. See below for descriptions of some of the useful variables.
739 Defaults for the options are specified in brackets.
742 -h, --help display this help and exit
743 --help=short display options specific to this package
744 --help=recursive display the short help of all the included packages
745 -V, --version display version information and exit
746 -q, --quiet, --silent do not print \`checking...' messages
747 --cache-file=FILE cache test results in FILE [disabled]
748 -C, --config-cache alias for \`--cache-file=config.cache'
749 -n, --no-create do not create output files
750 --srcdir=DIR find the sources in DIR [configure dir or \`..']
755 Installation directories:
756 --prefix=PREFIX install architecture-independent files in PREFIX
758 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
761 By default, \`make install' will install all the files in
762 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
763 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
764 for instance \`--prefix=\$HOME'.
766 For better control, use the options below.
768 Fine tuning of the installation directories:
769 --bindir=DIR user executables [EPREFIX/bin]
770 --sbindir=DIR system admin executables [EPREFIX/sbin]
771 --libexecdir=DIR program executables [EPREFIX/libexec]
772 --datadir=DIR read-only architecture-independent data [PREFIX/share]
773 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
774 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
775 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
776 --libdir=DIR object code libraries [EPREFIX/lib]
777 --includedir=DIR C header files [PREFIX/include]
778 --oldincludedir=DIR C header files for non-gcc [/usr/include]
779 --infodir=DIR info documentation [PREFIX/info]
780 --mandir=DIR man documentation [PREFIX/man]
786 --program-prefix=PREFIX prepend PREFIX to installed program names
787 --program-suffix=SUFFIX append SUFFIX to installed program names
788 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
791 --build=BUILD configure for building on BUILD [guessed]
792 --host=HOST build programs to run on HOST [BUILD]
796 if test -n "$ac_init_help"; then
801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
803 --enable-shared=PKGS build shared libraries default=yes
804 --enable-static=PKGS build static libraries default=yes
805 --enable-fast-install=PKGS optimize for fast installation default=yes
806 --disable-libtool-lock avoid locking (might break parallel builds)
809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
811 --with-gnu-ld assume the C compiler uses GNU ld default=no
812 --with-pic try to use only PIC/non-PIC objects default=use both
814 Some influential environment variables:
815 CXX C++ compiler command
816 CXXFLAGS C++ compiler flags
817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
818 nonstandard directory <lib dir>
819 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
820 headers in a nonstandard directory <include dir>
821 CC C compiler command
822 CFLAGS C compiler flags
823 CXXCPP C++ preprocessor
825 Use these variables to override the choices made by `configure' or to help
826 it to find libraries and programs with nonstandard names/locations.
831 if test "$ac_init_help" = "recursive"; then
832 # If there are subdirs, report their specific --help.
834 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
836 # A "../" for each directory in /$ac_subdir.
837 ac_dots=`echo $ac_subdir |
838 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
841 .) # No --srcdir option. We are building in place.
842 ac_sub_srcdir=$srcdir ;;
843 [\\/]* | ?:[\\/]* ) # Absolute path.
844 ac_sub_srcdir=$srcdir/$ac_subdir ;;
846 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
849 # Check for guested configure; otherwise get Cygnus style configure.
850 if test -f $ac_sub_srcdir/configure.gnu; then
852 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
853 elif test -f $ac_sub_srcdir/configure; then
855 $SHELL $ac_sub_srcdir/configure --help=recursive
856 elif test -f $ac_sub_srcdir/configure.ac ||
857 test -f $ac_sub_srcdir/configure.in; then
861 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
867 test -n "$ac_init_help" && exit 0
868 if $ac_init_version; then
871 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
872 Free Software Foundation, Inc.
873 This configure script is free software; the Free Software Foundation
874 gives unlimited permission to copy, distribute and modify it.
880 This file contains any messages produced by compilers while
881 running configure, to aid debugging if configure makes a mistake.
883 It was created by $as_me, which was
884 generated by GNU Autoconf 2.52. Invocation command line was
895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
907 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
924 # Keep a trace of the command line.
925 # Strip out --no-create and --no-recursion so they do not pile up.
926 # Also quote any args containing shell meta-characters.
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c) ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
936 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
937 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
938 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
940 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
943 # Get rid of the leading space.
946 # When interrupted or exit'd, cleanup temporary files, and complete
947 # config.log. We remove comments because anyway the quotes in there
948 # would cause problems or look ugly.
950 # Save into config.log some information that might help in debugging.
952 echo "## ----------------- ##" >&5
953 echo "## Cache variables. ##" >&5
954 echo "## ----------------- ##" >&5
956 # The following way of writing the cache mishandles newlines in values,
959 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
962 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
971 sed "/^$/d" confdefs.h >conftest.log
972 if test -s conftest.log; then
974 echo "## ------------ ##" >&5
975 echo "## confdefs.h. ##" >&5
976 echo "## ------------ ##" >&5
981 test "$ac_signal" != 0 &&
982 echo "$as_me: caught signal $ac_signal" >&5
983 echo "$as_me: exit $exit_status" >&5
984 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
987 for ac_signal in 1 2 13 15; do
988 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
993 rm -rf conftest* confdefs.h
994 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
997 # Let the site file select an alternate cache file if it wants to.
998 # Prefer explicitly selected file to automatically selected ones.
999 if test -z "$CONFIG_SITE"; then
1000 if test "x$prefix" != xNONE; then
1001 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1003 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1006 for ac_site_file in $CONFIG_SITE; do
1007 if test -r "$ac_site_file"; then
1008 { echo "$as_me:1008: loading site script $ac_site_file" >&5
1009 echo "$as_me: loading site script $ac_site_file" >&6;}
1010 cat "$ac_site_file" >&5
1015 if test -r "$cache_file"; then
1016 # Some versions of bash will fail to source /dev/null (special
1017 # files actually), so we avoid doing that.
1018 if test -f "$cache_file"; then
1019 { echo "$as_me:1019: loading cache $cache_file" >&5
1020 echo "$as_me: loading cache $cache_file" >&6;}
1022 [\\/]* | ?:[\\/]* ) . $cache_file;;
1023 *) . ./$cache_file;;
1027 { echo "$as_me:1027: creating cache $cache_file" >&5
1028 echo "$as_me: creating cache $cache_file" >&6;}
1032 # Check that the precious variables saved in the cache have kept the same
1034 ac_cache_corrupted=false
1035 for ac_var in `(set) 2>&1 |
1036 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1038 eval ac_new_set=\$ac_env_${ac_var}_set
1039 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1040 eval ac_new_val="\$ac_env_${ac_var}_value"
1041 case $ac_old_set,$ac_new_set in
1043 { echo "$as_me:1043: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1044 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1045 ac_cache_corrupted=: ;;
1047 { echo "$as_me:1047: error: \`$ac_var' was not set in the previous run" >&5
1048 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1049 ac_cache_corrupted=: ;;
1052 if test "x$ac_old_val" != "x$ac_new_val"; then
1053 { echo "$as_me:1053: error: \`$ac_var' has changed since the previous run:" >&5
1054 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1055 { echo "$as_me:1055: former value: $ac_old_val" >&5
1056 echo "$as_me: former value: $ac_old_val" >&2;}
1057 { echo "$as_me:1057: current value: $ac_new_val" >&5
1058 echo "$as_me: current value: $ac_new_val" >&2;}
1059 ac_cache_corrupted=:
1062 # Pass precious variables to config.status. It doesn't matter if
1063 # we pass some twice (in addition to the command line arguments).
1064 if test "$ac_new_set" = set; then
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1068 ac_configure_args="$ac_configure_args '$ac_arg'"
1070 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1075 if $ac_cache_corrupted; then
1076 { echo "$as_me:1076: error: changes in the environment can compromise the build" >&5
1077 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1078 { { echo "$as_me:1078: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1079 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1080 { (exit 1); exit 1; }; }
1084 ac_cpp='$CPP $CPPFLAGS'
1085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1089 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1090 *c*,-n*) ECHO_N= ECHO_C='
1092 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1093 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1095 echo "#! $SHELL" >conftest.sh
1096 echo "exit 0" >>conftest.sh
1097 chmod +x conftest.sh
1098 if { (echo "$as_me:1098: PATH=\".;.\"; conftest.sh") >&5
1099 (PATH=".;."; conftest.sh) 2>&5
1101 echo "$as_me:1101: \$? = $ac_status" >&5
1102 (exit $ac_status); }; then
1103 ac_path_separator=';'
1107 PATH_SEPARATOR="$ac_path_separator"
1111 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1112 if test -f $ac_dir/install-sh; then
1114 ac_install_sh="$ac_aux_dir/install-sh -c"
1116 elif test -f $ac_dir/install.sh; then
1118 ac_install_sh="$ac_aux_dir/install.sh -c"
1120 elif test -f $ac_dir/shtool; then
1122 ac_install_sh="$ac_aux_dir/shtool install -c"
1126 if test -z "$ac_aux_dir"; then
1127 { { echo "$as_me:1127: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1128 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1129 { (exit 1); exit 1; }; }
1131 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1132 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1133 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1135 # Find a good install program. We prefer a C program (faster),
1136 # so one script is as good as another. But avoid the broken or
1137 # incompatible versions:
1138 # SysV /etc/install, /usr/sbin/install
1139 # SunOS /usr/etc/install
1140 # IRIX /sbin/install
1142 # AmigaOS /C/install, which installs bootblocks on floppy discs
1143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1146 # ./install, which can be erroneously created by make from ./install.sh.
1147 echo "$as_me:1147: checking for a BSD compatible install" >&5
1148 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1149 if test -z "$INSTALL"; then
1150 if test "${ac_cv_path_install+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1153 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $PATH; do
1156 # Account for people who put trailing slashes in PATH elements.
1158 / | ./ | .// | /cC/* \
1159 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1162 # OSF1 and SCO ODT 3.0 have their own names for install.
1163 # Don't use installbsd from OSF since it installs stuff as root
1165 for ac_prog in ginstall scoinst install; do
1166 if $as_executable_p "$ac_dir/$ac_prog"; then
1167 if test $ac_prog = install &&
1168 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1169 # AIX install. It has an incompatible calling convention.
1171 elif test $ac_prog = install &&
1172 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1173 # program-specific install script used by HP pwplus--don't use.
1176 ac_cv_path_install="$ac_dir/$ac_prog -c"
1186 if test "${ac_cv_path_install+set}" = set; then
1187 INSTALL=$ac_cv_path_install
1189 # As a last resort, use the slow shell script. We don't cache a
1190 # path for INSTALL within a source directory, because that will
1191 # break other packages using the cache if that directory is
1192 # removed, or if the path is relative.
1193 INSTALL=$ac_install_sh
1196 echo "$as_me:1196: result: $INSTALL" >&5
1197 echo "${ECHO_T}$INSTALL" >&6
1199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1200 # It thinks the first close brace ends the variable substitution.
1201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1203 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1207 echo "$as_me:1207: checking whether build environment is sane" >&5
1208 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1211 echo timestamp > conftestfile
1212 # Do `set' in a subshell so we don't clobber the current shell's
1213 # arguments. Must try -L first in case configure is actually a
1214 # symlink; some systems play weird games with the mod time of symlinks
1215 # (eg FreeBSD returns the mod time of the symlink's containing
1218 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1219 if test "$*" = "X"; then
1221 set X `ls -t $srcdir/configure conftestfile`
1223 if test "$*" != "X $srcdir/configure conftestfile" \
1224 && test "$*" != "X conftestfile $srcdir/configure"; then
1226 # If neither matched, then we have a broken ls. This can happen
1227 # if, for instance, CONFIG_SHELL is bash and it inherits a
1228 # broken ls alias from the environment. This has actually
1229 # happened. Such a system could not be considered "sane".
1230 { { echo "$as_me:1230: error: ls -t appears to fail. Make sure there is not a broken
1231 alias in your environment" >&5
1232 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1233 alias in your environment" >&2;}
1234 { (exit 1); exit 1; }; }
1237 test "$2" = conftestfile
1243 { { echo "$as_me:1243: error: newly created file is older than distributed files!
1244 Check your system clock" >&5
1245 echo "$as_me: error: newly created file is older than distributed files!
1246 Check your system clock" >&2;}
1247 { (exit 1); exit 1; }; }
1250 echo "$as_me:1250: result: yes" >&5
1251 echo "${ECHO_T}yes" >&6
1252 test "$program_prefix" != NONE &&
1253 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1254 # Use a double $ so make ignores it.
1255 test "$program_suffix" != NONE &&
1256 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1257 # Double any \ or $. echo might interpret backslashes.
1258 # By default was `s,x,x', remove it if useless.
1259 cat <<\_ACEOF >conftest.sed
1260 s/[\\$]/&&/g;s/;s,x,x,$//
1262 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1265 echo "$as_me:1265: checking whether ${MAKE-make} sets \${MAKE}" >&5
1266 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1267 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1268 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 cat >conftest.make <<\EOF
1273 @echo 'ac_maketemp="${MAKE}"'
1275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1276 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1277 if test -n "$ac_maketemp"; then
1278 eval ac_cv_prog_make_${ac_make}_set=yes
1280 eval ac_cv_prog_make_${ac_make}_set=no
1284 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1285 echo "$as_me:1285: result: yes" >&5
1286 echo "${ECHO_T}yes" >&6
1289 echo "$as_me:1289: result: no" >&5
1290 echo "${ECHO_T}no" >&6
1291 SET_MAKE="MAKE=${MAKE-make}"
1294 PACKAGE=libt2n-example1
1298 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1299 { { echo "$as_me:1299: error: source directory already configured; run \"make distclean\" there first" >&5
1300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1301 { (exit 1); exit 1; }; }
1304 cat >>confdefs.h <<EOF
1305 #define PACKAGE "$PACKAGE"
1308 cat >>confdefs.h <<EOF
1309 #define VERSION "$VERSION"
1312 missing_dir=`cd $ac_aux_dir && pwd`
1313 echo "$as_me:1313: checking for working aclocal" >&5
1314 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1315 # Run test in a subshell; some versions of sh will print an error if
1316 # an executable is not found, even if stderr is redirected.
1317 # Redirect stdin to placate older versions of autoconf. Sigh.
1318 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1320 echo "$as_me:1320: result: found" >&5
1321 echo "${ECHO_T}found" >&6
1323 ACLOCAL="$missing_dir/missing aclocal"
1324 echo "$as_me:1324: result: missing" >&5
1325 echo "${ECHO_T}missing" >&6
1328 echo "$as_me:1328: checking for working autoconf" >&5
1329 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1330 # Run test in a subshell; some versions of sh will print an error if
1331 # an executable is not found, even if stderr is redirected.
1332 # Redirect stdin to placate older versions of autoconf. Sigh.
1333 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1335 echo "$as_me:1335: result: found" >&5
1336 echo "${ECHO_T}found" >&6
1338 AUTOCONF="$missing_dir/missing autoconf"
1339 echo "$as_me:1339: result: missing" >&5
1340 echo "${ECHO_T}missing" >&6
1343 echo "$as_me:1343: checking for working automake" >&5
1344 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1345 # Run test in a subshell; some versions of sh will print an error if
1346 # an executable is not found, even if stderr is redirected.
1347 # Redirect stdin to placate older versions of autoconf. Sigh.
1348 if (automake --version) < /dev/null > /dev/null 2>&1; then
1350 echo "$as_me:1350: result: found" >&5
1351 echo "${ECHO_T}found" >&6
1353 AUTOMAKE="$missing_dir/missing automake"
1354 echo "$as_me:1354: result: missing" >&5
1355 echo "${ECHO_T}missing" >&6
1358 echo "$as_me:1358: checking for working autoheader" >&5
1359 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1360 # Run test in a subshell; some versions of sh will print an error if
1361 # an executable is not found, even if stderr is redirected.
1362 # Redirect stdin to placate older versions of autoconf. Sigh.
1363 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1364 AUTOHEADER=autoheader
1365 echo "$as_me:1365: result: found" >&5
1366 echo "${ECHO_T}found" >&6
1368 AUTOHEADER="$missing_dir/missing autoheader"
1369 echo "$as_me:1369: result: missing" >&5
1370 echo "${ECHO_T}missing" >&6
1373 echo "$as_me:1373: checking for working makeinfo" >&5
1374 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1375 # Run test in a subshell; some versions of sh will print an error if
1376 # an executable is not found, even if stderr is redirected.
1377 # Redirect stdin to placate older versions of autoconf. Sigh.
1378 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1380 echo "$as_me:1380: result: found" >&5
1381 echo "${ECHO_T}found" >&6
1383 MAKEINFO="$missing_dir/missing makeinfo"
1384 echo "$as_me:1384: result: missing" >&5
1385 echo "${ECHO_T}missing" >&6
1389 ac_cpp='$CXXCPP $CPPFLAGS'
1390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1395 ac_cpp='$CXXCPP $CPPFLAGS'
1396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1404 echo "$as_me:1404: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CXX+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$CXX"; then
1410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1414 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1419 echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1426 if test -n "$CXX"; then
1427 echo "$as_me:1427: result: $CXX" >&5
1428 echo "${ECHO_T}$CXX" >&6
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1434 test -n "$CXX" && break
1437 if test -z "$CXX"; then
1439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1441 # Extract the first word of "$ac_prog", so it can be a program name with args.
1442 set dummy $ac_prog; ac_word=$2
1443 echo "$as_me:1443: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CXX"; then
1449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1451 ac_save_IFS=$IFS; IFS=$ac_path_separator
1453 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 $as_executable_p "$ac_dir/$ac_word" || continue
1457 ac_cv_prog_ac_ct_CXX="$ac_prog"
1458 echo "$as_me:1458: found $ac_dir/$ac_word" >&5
1464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1465 if test -n "$ac_ct_CXX"; then
1466 echo "$as_me:1466: result: $ac_ct_CXX" >&5
1467 echo "${ECHO_T}$ac_ct_CXX" >&6
1469 echo "$as_me:1469: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1473 test -n "$ac_ct_CXX" && break
1475 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1480 # Provide some information about the compiler.
1481 echo "$as_me:1481:" \
1482 "checking for C++ compiler version" >&5
1483 ac_compiler=`set X $ac_compile; echo $2`
1484 { (eval echo "$as_me:1484: \"$ac_compiler --version </dev/null >&5\"") >&5
1485 (eval $ac_compiler --version </dev/null >&5) 2>&5
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }
1489 { (eval echo "$as_me:1489: \"$ac_compiler -v </dev/null >&5\"") >&5
1490 (eval $ac_compiler -v </dev/null >&5) 2>&5
1492 echo "$as_me:1492: \$? = $ac_status" >&5
1493 (exit $ac_status); }
1494 { (eval echo "$as_me:1494: \"$ac_compiler -V </dev/null >&5\"") >&5
1495 (eval $ac_compiler -V </dev/null >&5) 2>&5
1497 echo "$as_me:1497: \$? = $ac_status" >&5
1498 (exit $ac_status); }
1500 cat >conftest.$ac_ext <<_ACEOF
1501 #line 1501 "configure"
1502 #include "confdefs.h"
1512 ac_clean_files_save=$ac_clean_files
1513 ac_clean_files="$ac_clean_files a.out a.exe"
1514 # Try to create an executable without -o first, disregard a.out.
1515 # It will help us diagnose broken compilers, and finding out an intuition
1517 echo "$as_me:1517: checking for C++ compiler default output" >&5
1518 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1520 if { (eval echo "$as_me:1520: \"$ac_link_default\"") >&5
1521 (eval $ac_link_default) 2>&5
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); }; then
1525 # Find the output, starting from the most likely. This scheme is
1526 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1528 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1529 ls a.out conftest 2>/dev/null;
1530 ls a.* conftest.* 2>/dev/null`; do
1532 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1533 a.out ) # We found the default executable, but exeext='' is most
1536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1537 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1544 echo "$as_me: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 { { echo "$as_me:1546: error: C++ compiler cannot create executables" >&5
1547 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1548 { (exit 77); exit 77; }; }
1551 ac_exeext=$ac_cv_exeext
1552 echo "$as_me:1552: result: $ac_file" >&5
1553 echo "${ECHO_T}$ac_file" >&6
1555 # Check the compiler produces executables we can run. If not, either
1556 # the compiler is broken, or we cross compile.
1557 echo "$as_me:1557: checking whether the C++ compiler works" >&5
1558 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1559 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1560 # If not cross compiling, check that we can run a simple program.
1561 if test "$cross_compiling" != yes; then
1562 if { ac_try='./$ac_file'
1563 { (eval echo "$as_me:1563: \"$ac_try\"") >&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }; }; then
1570 if test "$cross_compiling" = maybe; then
1573 { { echo "$as_me:1573: error: cannot run C++ compiled programs.
1574 If you meant to cross compile, use \`--host'." >&5
1575 echo "$as_me: error: cannot run C++ compiled programs.
1576 If you meant to cross compile, use \`--host'." >&2;}
1577 { (exit 1); exit 1; }; }
1581 echo "$as_me:1581: result: yes" >&5
1582 echo "${ECHO_T}yes" >&6
1584 rm -f a.out a.exe conftest$ac_cv_exeext
1585 ac_clean_files=$ac_clean_files_save
1586 # Check the compiler produces executables we can run. If not, either
1587 # the compiler is broken, or we cross compile.
1588 echo "$as_me:1588: checking whether we are cross compiling" >&5
1589 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1590 echo "$as_me:1590: result: $cross_compiling" >&5
1591 echo "${ECHO_T}$cross_compiling" >&6
1593 echo "$as_me:1593: checking for executable suffix" >&5
1594 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1595 if { (eval echo "$as_me:1595: \"$ac_link\"") >&5
1596 (eval $ac_link) 2>&5
1598 echo "$as_me:1598: \$? = $ac_status" >&5
1599 (exit $ac_status); }; then
1600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1602 # work properly (i.e., refer to `conftest.exe'), while it won't with
1604 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1606 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1607 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1614 { { echo "$as_me:1614: error: cannot compute EXEEXT: cannot compile and link" >&5
1615 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1616 { (exit 1); exit 1; }; }
1619 rm -f conftest$ac_cv_exeext
1620 echo "$as_me:1620: result: $ac_cv_exeext" >&5
1621 echo "${ECHO_T}$ac_cv_exeext" >&6
1623 rm -f conftest.$ac_ext
1624 EXEEXT=$ac_cv_exeext
1626 echo "$as_me:1626: checking for object suffix" >&5
1627 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1628 if test "${ac_cv_objext+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 cat >conftest.$ac_ext <<_ACEOF
1632 #line 1632 "configure"
1633 #include "confdefs.h"
1643 rm -f conftest.o conftest.obj
1644 if { (eval echo "$as_me:1644: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>&5
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); }; then
1649 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1657 echo "$as_me: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 { { echo "$as_me:1659: error: cannot compute OBJEXT: cannot compile" >&5
1660 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1661 { (exit 1); exit 1; }; }
1664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1666 echo "$as_me:1666: result: $ac_cv_objext" >&5
1667 echo "${ECHO_T}$ac_cv_objext" >&6
1668 OBJEXT=$ac_cv_objext
1670 echo "$as_me:1670: checking whether we are using the GNU C++ compiler" >&5
1671 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1672 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 cat >conftest.$ac_ext <<_ACEOF
1676 #line 1676 "configure"
1677 #include "confdefs.h"
1690 rm -f conftest.$ac_objext
1691 if { (eval echo "$as_me:1691: \"$ac_compile\"") >&5
1692 (eval $ac_compile) 2>&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); } &&
1696 { ac_try='test -s conftest.$ac_objext'
1697 { (eval echo "$as_me:1697: \"$ac_try\"") >&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }; }; then
1704 echo "$as_me: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1708 rm -f conftest.$ac_objext conftest.$ac_ext
1709 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1712 echo "$as_me:1712: result: $ac_cv_cxx_compiler_gnu" >&5
1713 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1714 GXX=`test $ac_compiler_gnu = yes && echo yes`
1715 ac_test_CXXFLAGS=${CXXFLAGS+set}
1716 ac_save_CXXFLAGS=$CXXFLAGS
1718 echo "$as_me:1718: checking whether $CXX accepts -g" >&5
1719 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1720 if test "${ac_cv_prog_cxx_g+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1735 rm -f conftest.$ac_objext
1736 if { (eval echo "$as_me:1736: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); } &&
1741 { ac_try='test -s conftest.$ac_objext'
1742 { (eval echo "$as_me:1742: \"$ac_try\"") >&5
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); }; }; then
1747 ac_cv_prog_cxx_g=yes
1749 echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1753 rm -f conftest.$ac_objext conftest.$ac_ext
1755 echo "$as_me:1755: result: $ac_cv_prog_cxx_g" >&5
1756 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1757 if test "$ac_test_CXXFLAGS" = set; then
1758 CXXFLAGS=$ac_save_CXXFLAGS
1759 elif test $ac_cv_prog_cxx_g = yes; then
1760 if test "$GXX" = yes; then
1766 if test "$GXX" = yes; then
1772 for ac_declaration in \
1774 '#include <stdlib.h>' \
1775 'extern "C" void std::exit (int) throw (); using std::exit;' \
1776 'extern "C" void std::exit (int); using std::exit;' \
1777 'extern "C" void exit (int) throw ();' \
1778 'extern "C" void exit (int);' \
1781 cat >conftest.$ac_ext <<_ACEOF
1782 #line 1782 "configure"
1783 #include "confdefs.h"
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1812 rm -f conftest.$ac_objext conftest.$ac_ext
1813 cat >conftest.$ac_ext <<_ACEOF
1814 #line 1814 "configure"
1815 #include "confdefs.h"
1825 rm -f conftest.$ac_objext
1826 if { (eval echo "$as_me:1826: \"$ac_compile\"") >&5
1827 (eval $ac_compile) 2>&5
1829 echo "$as_me:1829: \$? = $ac_status" >&5
1830 (exit $ac_status); } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:1832: \"$ac_try\"") >&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1845 if test -n "$ac_declaration"; then
1846 echo '#ifdef __cplusplus' >>confdefs.h
1847 echo $ac_declaration >>confdefs.h
1848 echo '#endif' >>confdefs.h
1852 ac_cpp='$CXXCPP $CPPFLAGS'
1853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1857 # Check whether --enable-shared or --disable-shared was given.
1858 if test "${enable_shared+set}" = set; then
1859 enableval="$enable_shared"
1860 p=${PACKAGE-default}
1862 yes) enable_shared=yes ;;
1863 no) enable_shared=no ;;
1866 # Look at the argument we got. We use all the common list separators.
1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1868 for pkg in $enableval; do
1869 if test "X$pkg" = "X$p"; then
1879 # Check whether --enable-static or --disable-static was given.
1880 if test "${enable_static+set}" = set; then
1881 enableval="$enable_static"
1882 p=${PACKAGE-default}
1884 yes) enable_static=yes ;;
1885 no) enable_static=no ;;
1888 # Look at the argument we got. We use all the common list separators.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1890 for pkg in $enableval; do
1891 if test "X$pkg" = "X$p"; then
1901 # Check whether --enable-fast-install or --disable-fast-install was given.
1902 if test "${enable_fast_install+set}" = set; then
1903 enableval="$enable_fast_install"
1904 p=${PACKAGE-default}
1906 yes) enable_fast_install=yes ;;
1907 no) enable_fast_install=no ;;
1909 enable_fast_install=no
1910 # Look at the argument we got. We use all the common list separators.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1912 for pkg in $enableval; do
1913 if test "X$pkg" = "X$p"; then
1914 enable_fast_install=yes
1921 enable_fast_install=yes
1923 # Make sure we can run config.sub.
1924 $ac_config_sub sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:1925: error: cannot run $ac_config_sub" >&5
1926 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 echo "$as_me:1929: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_cv_build_alias=$build_alias
1935 test -z "$ac_cv_build_alias" &&
1936 ac_cv_build_alias=`$ac_config_guess`
1937 test -z "$ac_cv_build_alias" &&
1938 { { echo "$as_me:1938: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1942 { { echo "$as_me:1942: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1943 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1944 { (exit 1); exit 1; }; }
1947 echo "$as_me:1947: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6
1950 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1951 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1952 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1954 echo "$as_me:1954: checking host system type" >&5
1955 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1956 if test "${ac_cv_host+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 ac_cv_host_alias=$host_alias
1960 test -z "$ac_cv_host_alias" &&
1961 ac_cv_host_alias=$ac_cv_build_alias
1962 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1963 { { echo "$as_me:1963: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1964 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1965 { (exit 1); exit 1; }; }
1968 echo "$as_me:1968: result: $ac_cv_host" >&5
1969 echo "${ECHO_T}$ac_cv_host" >&6
1971 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1972 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1973 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1983 echo "$as_me:1983: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 ac_save_IFS=$IFS; IFS=$ac_path_separator
1993 for ac_dir in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir=.
1996 $as_executable_p "$ac_dir/$ac_word" || continue
1997 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1998 echo "$as_me:1998: found $ac_dir/$ac_word" >&5
2005 if test -n "$CC"; then
2006 echo "$as_me:2006: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2009 echo "$as_me:2009: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2014 if test -z "$ac_cv_prog_CC"; then
2016 # Extract the first word of "gcc", so it can be a program name with args.
2017 set dummy gcc; ac_word=$2
2018 echo "$as_me:2018: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 ac_save_IFS=$IFS; IFS=$ac_path_separator
2028 for ac_dir in $ac_dummy; do
2030 test -z "$ac_dir" && ac_dir=.
2031 $as_executable_p "$ac_dir/$ac_word" || continue
2032 ac_cv_prog_ac_ct_CC="gcc"
2033 echo "$as_me:2033: found $ac_dir/$ac_word" >&5
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041 echo "$as_me:2041: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6
2044 echo "$as_me:2044: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2053 if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056 set dummy ${ac_tool_prefix}cc; ac_word=$2
2057 echo "$as_me:2057: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 ac_save_IFS=$IFS; IFS=$ac_path_separator
2067 for ac_dir in $ac_dummy; do
2069 test -z "$ac_dir" && ac_dir=.
2070 $as_executable_p "$ac_dir/$ac_word" || continue
2071 ac_cv_prog_CC="${ac_tool_prefix}cc"
2072 echo "$as_me:2072: found $ac_dir/$ac_word" >&5
2079 if test -n "$CC"; then
2080 echo "$as_me:2080: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6
2083 echo "$as_me:2083: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2088 if test -z "$ac_cv_prog_CC"; then
2090 # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 echo "$as_me:2092: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 ac_save_IFS=$IFS; IFS=$ac_path_separator
2102 for ac_dir in $ac_dummy; do
2104 test -z "$ac_dir" && ac_dir=.
2105 $as_executable_p "$ac_dir/$ac_word" || continue
2106 ac_cv_prog_ac_ct_CC="cc"
2107 echo "$as_me:2107: found $ac_dir/$ac_word" >&5
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:2115: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:2118: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2128 if test -z "$CC"; then
2129 # Extract the first word of "cc", so it can be a program name with args.
2130 set dummy cc; ac_word=$2
2131 echo "$as_me:2131: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 ac_save_IFS=$IFS; IFS=$ac_path_separator
2142 for ac_dir in $ac_dummy; do
2144 test -z "$ac_dir" && ac_dir=.
2145 $as_executable_p "$ac_dir/$ac_word" || continue
2146 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2147 ac_prog_rejected=yes
2151 echo "$as_me:2151: found $ac_dir/$ac_word" >&5
2155 if test $ac_prog_rejected = yes; then
2156 # We found a bogon in the path, so make sure we never use it.
2157 set dummy $ac_cv_prog_CC
2159 if test $# != 0; then
2160 # We chose a different compiler from the bogus one.
2161 # However, it has the same basename, so the bogon will be chosen
2162 # first if we set CC to just the basename; use the full file name.
2164 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2172 if test -n "$CC"; then
2173 echo "$as_me:2173: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6
2176 echo "$as_me:2176: result: no" >&5
2177 echo "${ECHO_T}no" >&6
2181 if test -z "$CC"; then
2182 if test -n "$ac_tool_prefix"; then
2185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2187 echo "$as_me:2187: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 ac_save_IFS=$IFS; IFS=$ac_path_separator
2197 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 $as_executable_p "$ac_dir/$ac_word" || continue
2201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2202 echo "$as_me:2202: found $ac_dir/$ac_word" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:2210: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:2213: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 test -n "$CC" && break
2220 if test -z "$CC"; then
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:2226: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 ac_save_IFS=$IFS; IFS=$ac_path_separator
2236 for ac_dir in $ac_dummy; do
2238 test -z "$ac_dir" && ac_dir=.
2239 $as_executable_p "$ac_dir/$ac_word" || continue
2240 ac_cv_prog_ac_ct_CC="$ac_prog"
2241 echo "$as_me:2241: found $ac_dir/$ac_word" >&5
2247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248 if test -n "$ac_ct_CC"; then
2249 echo "$as_me:2249: result: $ac_ct_CC" >&5
2250 echo "${ECHO_T}$ac_ct_CC" >&6
2252 echo "$as_me:2252: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2256 test -n "$ac_ct_CC" && break
2264 test -z "$CC" && { { echo "$as_me:2264: error: no acceptable cc found in \$PATH" >&5
2265 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2266 { (exit 1); exit 1; }; }
2268 # Provide some information about the compiler.
2269 echo "$as_me:2269:" \
2270 "checking for C compiler version" >&5
2271 ac_compiler=`set X $ac_compile; echo $2`
2272 { (eval echo "$as_me:2272: \"$ac_compiler --version </dev/null >&5\"") >&5
2273 (eval $ac_compiler --version </dev/null >&5) 2>&5
2275 echo "$as_me:2275: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2277 { (eval echo "$as_me:2277: \"$ac_compiler -v </dev/null >&5\"") >&5
2278 (eval $ac_compiler -v </dev/null >&5) 2>&5
2280 echo "$as_me:2280: \$? = $ac_status" >&5
2281 (exit $ac_status); }
2282 { (eval echo "$as_me:2282: \"$ac_compiler -V </dev/null >&5\"") >&5
2283 (eval $ac_compiler -V </dev/null >&5) 2>&5
2285 echo "$as_me:2285: \$? = $ac_status" >&5
2286 (exit $ac_status); }
2288 echo "$as_me:2288: checking whether we are using the GNU C compiler" >&5
2289 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line 2294 "configure"
2295 #include "confdefs.h"
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:2309: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2312 echo "$as_me:2312: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:2315: \"$ac_try\"") >&5
2318 echo "$as_me:2318: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2330 echo "$as_me:2330: result: $ac_cv_c_compiler_gnu" >&5
2331 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2332 GCC=`test $ac_compiler_gnu = yes && echo yes`
2333 ac_test_CFLAGS=${CFLAGS+set}
2334 ac_save_CFLAGS=$CFLAGS
2336 echo "$as_me:2336: checking whether $CC accepts -g" >&5
2337 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2338 if test "${ac_cv_prog_cc_g+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line 2342 "configure"
2343 #include "confdefs.h"
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:2354: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2357 echo "$as_me:2357: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:2360: \"$ac_try\"") >&5
2363 echo "$as_me:2363: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2371 rm -f conftest.$ac_objext conftest.$ac_ext
2373 echo "$as_me:2373: result: $ac_cv_prog_cc_g" >&5
2374 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2375 if test "$ac_test_CFLAGS" = set; then
2376 CFLAGS=$ac_save_CFLAGS
2377 elif test $ac_cv_prog_cc_g = yes; then
2378 if test "$GCC" = yes; then
2384 if test "$GCC" = yes; then
2390 # Some people use a C++ compiler to compile C. Since we use `exit',
2391 # in C++ we need to declare it. In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:2400: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>&5
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:2406: \"$ac_try\"") >&5
2409 echo "$as_me:2409: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 for ac_declaration in \
2413 '#include <stdlib.h>' \
2414 'extern "C" void std::exit (int) throw (); using std::exit;' \
2415 'extern "C" void std::exit (int); using std::exit;' \
2416 'extern "C" void exit (int) throw ();' \
2417 'extern "C" void exit (int);' \
2420 cat >conftest.$ac_ext <<_ACEOF
2421 #line 2421 "configure"
2422 #include "confdefs.h"
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:2434: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2437 echo "$as_me:2437: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:2440: \"$ac_try\"") >&5
2443 echo "$as_me:2443: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2447 echo "$as_me: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2451 rm -f conftest.$ac_objext conftest.$ac_ext
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
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2484 if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2496 ac_cpp='$CXXCPP $CPPFLAGS'
2497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2501 # Find the correct PATH separator. Usually this is `:', but
2502 # DJGPP uses `;' like DOS.
2503 if test "X${PATH_SEPARATOR+set}" != Xset; then
2504 UNAME=${UNAME-`uname 2>/dev/null`}
2506 *-DOS) lt_cv_sys_path_separator=';' ;;
2507 *) lt_cv_sys_path_separator=':' ;;
2509 PATH_SEPARATOR=$lt_cv_sys_path_separator
2512 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2513 if test "${with_gnu_ld+set}" = set; then
2514 withval="$with_gnu_ld"
2515 test "$withval" = no || with_gnu_ld=yes
2520 if test "$GCC" = yes; then
2521 # Check if gcc -print-prog-name=ld gives a path.
2522 echo "$as_me:2522: checking for ld used by GCC" >&5
2523 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2526 # gcc leaves a trailing carriage return which upsets mingw
2527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2532 # Accept absolute paths.
2533 [\\/]* | [A-Za-z]:[\\/]*)
2534 re_direlt='/[^/][^/]*/\.\./'
2535 # Canonicalize the path of ld
2536 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2538 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2540 test -z "$LD" && LD="$ac_prog"
2543 # If it fails, then pretend we aren't using GCC.
2547 # If it is relative, then search for the first ld in PATH.
2551 elif test "$with_gnu_ld" = yes; then
2552 echo "$as_me:2552: checking for GNU ld" >&5
2553 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2555 echo "$as_me:2555: checking for non-GNU ld" >&5
2556 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2558 if test "${lt_cv_path_LD+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -z "$LD"; then
2562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2563 for ac_dir in $PATH; do
2564 test -z "$ac_dir" && ac_dir=.
2565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2566 lt_cv_path_LD="$ac_dir/$ac_prog"
2567 # Check to see if the program is GNU ld. I'd rather use --version,
2568 # but apparently some GNU ld's only accept -v.
2569 # Break only if it was the GNU/non-GNU ld that we prefer.
2570 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2571 test "$with_gnu_ld" != no && break
2573 test "$with_gnu_ld" != yes && break
2579 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2584 if test -n "$LD"; then
2585 echo "$as_me:2585: result: $LD" >&5
2586 echo "${ECHO_T}$LD" >&6
2588 echo "$as_me:2588: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2591 test -z "$LD" && { { echo "$as_me:2591: error: no acceptable ld found in \$PATH" >&5
2592 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2593 { (exit 1); exit 1; }; }
2594 echo "$as_me:2594: checking if the linker ($LD) is GNU ld" >&5
2595 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2596 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2600 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2601 lt_cv_prog_gnu_ld=yes
2603 lt_cv_prog_gnu_ld=no
2606 echo "$as_me:2606: result: $lt_cv_prog_gnu_ld" >&5
2607 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2608 with_gnu_ld=$lt_cv_prog_gnu_ld
2610 echo "$as_me:2610: checking for $LD option to reload object files" >&5
2611 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2612 if test "${lt_cv_ld_reload_flag+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 lt_cv_ld_reload_flag='-r'
2617 echo "$as_me:2617: result: $lt_cv_ld_reload_flag" >&5
2618 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2619 reload_flag=$lt_cv_ld_reload_flag
2620 test -n "$reload_flag" && reload_flag=" $reload_flag"
2622 echo "$as_me:2622: checking for BSD-compatible nm" >&5
2623 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2624 if test "${lt_cv_path_NM+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 if test -n "$NM"; then
2628 # Let the user override the test.
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2632 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2633 test -z "$ac_dir" && ac_dir=.
2634 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2635 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2636 # Check to see if the nm accepts a BSD-compat flag.
2637 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2638 # nm: unknown option "B" ignored
2639 # Tru64's nm complains that /dev/null is an invalid object file
2640 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2641 lt_cv_path_NM="$tmp_nm -B"
2643 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2644 lt_cv_path_NM="$tmp_nm -p"
2647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2648 continue # so that we can try to find one that supports BSD flags
2653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2658 echo "$as_me:2658: result: $NM" >&5
2659 echo "${ECHO_T}$NM" >&6
2661 echo "$as_me:2661: checking whether ln -s works" >&5
2662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2664 if test "$LN_S" = "ln -s"; then
2665 echo "$as_me:2665: result: yes" >&5
2666 echo "${ECHO_T}yes" >&6
2668 echo "$as_me:2668: result: no, using $LN_S" >&5
2669 echo "${ECHO_T}no, using $LN_S" >&6
2672 echo "$as_me:2672: checking how to recognise dependant libraries" >&5
2673 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2674 if test "${lt_cv_deplibs_check_method+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 lt_cv_file_magic_cmd='$MAGIC_CMD'
2678 lt_cv_file_magic_test_file=
2679 lt_cv_deplibs_check_method='unknown'
2680 # Need to set the preceding variable on all platforms that support
2681 # interlibrary dependencies.
2682 # 'none' -- dependencies not supported.
2683 # `unknown' -- same as none, but documents that we really don't know.
2684 # 'pass_all' -- all dependencies passed with no checks.
2685 # 'test_compile' -- check by making test program.
2686 # 'file_magic [[regex]]' -- check by looking for files in library path
2687 # which responds to the $file_magic_cmd with a given egrep regex.
2688 # If you have `file' or equivalent on your system and you're not sure
2689 # whether `pass_all' will *always* work, you probably want this one.
2693 lt_cv_deplibs_check_method=pass_all
2697 lt_cv_deplibs_check_method=pass_all
2701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2702 lt_cv_file_magic_cmd='/usr/bin/file -L'
2703 lt_cv_file_magic_test_file=/shlib/libc.so
2706 cygwin* | mingw* | pw32*)
2707 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2708 lt_cv_file_magic_cmd='$OBJDUMP -f'
2711 darwin* | rhapsody*)
2712 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2713 lt_cv_file_magic_cmd='/usr/bin/file -L'
2715 rhapsody* | darwin1.[012])
2716 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2719 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2725 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2728 # Not sure whether the presence of OpenBSD here was a mistake.
2729 # Let's accept both of them until this is cleared up.
2730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2731 lt_cv_file_magic_cmd=/usr/bin/file
2732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2736 lt_cv_deplibs_check_method=pass_all
2741 lt_cv_deplibs_check_method=pass_all
2745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2746 lt_cv_file_magic_cmd=/usr/bin/file
2747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2753 # this will be overridden with pass_all, but let us keep it just in case
2754 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2758 *-32|*"-32 ") libmagic=32-bit;;
2759 *-n32|*"-n32 ") libmagic=N32;;
2760 *-64|*"-64 ") libmagic=64-bit;;
2761 *) libmagic=never-match;;
2763 # this will be overridden with pass_all, but let us keep it just in case
2764 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2767 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2768 lt_cv_deplibs_check_method=pass_all
2771 # This must be Linux ELF.
2774 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2775 lt_cv_deplibs_check_method=pass_all ;;
2777 # glibc up to 2.1.1 does not perform some relocations on ARM
2778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2780 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2784 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2785 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2787 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2793 lt_cv_file_magic_cmd=/usr/bin/file
2794 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2798 lt_cv_file_magic_cmd=/usr/bin/file
2799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2803 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2807 osf3* | osf4* | osf5*)
2808 # this will be overridden with pass_all, but let us keep it just in case
2809 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2810 lt_cv_file_magic_test_file=/shlib/libc.so
2811 lt_cv_deplibs_check_method=pass_all
2815 lt_cv_deplibs_check_method=pass_all
2819 lt_cv_deplibs_check_method=pass_all
2820 lt_cv_file_magic_test_file=/lib/libc.so
2823 sysv5uw[78]* | sysv4*uw2*)
2824 lt_cv_deplibs_check_method=pass_all
2827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2828 case $host_vendor in
2830 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]'
2831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2834 lt_cv_deplibs_check_method=pass_all
2837 lt_cv_file_magic_cmd='/bin/file'
2838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2841 lt_cv_file_magic_cmd='/bin/file'
2842 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2843 lt_cv_file_magic_test_file=/lib/libc.so
2850 echo "$as_me:2850: result: $lt_cv_deplibs_check_method" >&5
2851 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2852 file_magic_cmd=$lt_cv_file_magic_cmd
2853 deplibs_check_method=$lt_cv_deplibs_check_method
2855 # Check for command to grab the raw symbol name followed by C symbol from nm.
2856 echo "$as_me:2856: checking command to parse $NM output" >&5
2857 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2858 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 # These are sane defaults that work on at least a few old systems.
2863 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2865 # Character class describing NM global symbol codes.
2866 symcode='[BCDEGRST]'
2868 # Regexp to match symbols that can be accessed directly from C.
2869 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2871 # Transform the above into a raw symbol and a C symbol.
2872 symxfrm='\1 \2\3 \3'
2874 # Transform an extracted symbol line into a proper C declaration
2875 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2877 # Transform an extracted symbol line into symbol name and symbol address
2878 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'"
2880 # Define system-specific variables.
2885 cygwin* | mingw* | pw32*)
2886 symcode='[ABCDGISTW]'
2888 hpux*) # Its linker distinguishes data from code symbols
2889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2890 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'"
2893 symcode='[BCDEGRST]'
2903 # Handle CRLF in mingw tool chain
2907 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2911 # If we're using GNU nm, then use its standard symbol codes.
2912 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2913 symcode='[ABCDGISTW]'
2916 # Try without a prefix undercore, then with it.
2917 for ac_symprfx in "" "_"; do
2919 # Write the raw and C identifiers.
2920 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2922 # Check to see that the pipe works correctly.
2925 cat > conftest.$ac_ext <<EOF
2930 void nm_test_func(){}
2934 int main(){nm_test_var='a';nm_test_func();return(0);}
2937 if { (eval echo "$as_me:2937: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>&5
2940 echo "$as_me:2940: \$? = $ac_status" >&5
2941 (exit $ac_status); }; then
2942 # Now try to grab the symbols.
2944 if { (eval echo "$as_me:2944: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); } && test -s "$nlist"; then
2949 # Try sorting and uniquifying the output.
2950 if sort "$nlist" | uniq > "$nlist"T; then
2951 mv -f "$nlist"T "$nlist"
2956 # Make sure that we snagged all the symbols we need.
2957 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2958 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2959 cat <<EOF > conftest.$ac_ext
2965 # Now generate the symbol file.
2966 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2968 cat <<EOF >> conftest.$ac_ext
2969 #if defined (__STDC__) && __STDC__
2970 # define lt_ptr void *
2972 # define lt_ptr char *
2976 /* The mapping between symbol names and symbols. */
2981 lt_preloaded_symbols[] =
2984 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2985 cat <<\EOF >> conftest.$ac_ext
2993 # Now try linking the two files.
2994 mv conftest.$ac_objext conftstm.$ac_objext
2996 save_CFLAGS="$CFLAGS"
2997 LIBS="conftstm.$ac_objext"
2998 CFLAGS="$CFLAGS$no_builtin_flag"
2999 if { (eval echo "$as_me:2999: \"$ac_link\"") >&5
3000 (eval $ac_link) 2>&5
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); } && test -s conftest; then
3007 CFLAGS="$save_CFLAGS"
3009 echo "cannot find nm_test_func in $nlist" >&5
3012 echo "cannot find nm_test_var in $nlist" >&5
3015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3018 echo "$progname: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3021 rm -f conftest* conftst*
3023 # Do not use the global_symbol_pipe unless it works.
3024 if test "$pipe_works" = yes; then
3027 lt_cv_sys_global_symbol_pipe=
3033 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3035 global_symbol_to_cdecl=
3036 global_symbol_to_c_name_address=
3038 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3039 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3041 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3043 echo "$as_me:3043: result: failed" >&5
3044 echo "${ECHO_T}failed" >&6
3046 echo "$as_me:3046: result: ok" >&5
3047 echo "${ECHO_T}ok" >&6
3051 ac_cpp='$CXXCPP $CPPFLAGS'
3052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3055 echo "$as_me:3055: checking how to run the C++ preprocessor" >&5
3056 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3057 if test -z "$CXXCPP"; then
3058 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 # Double quotes because CXXCPP needs to be expanded
3062 for CXXCPP in "$CXX -E" "/lib/cpp"
3065 for ac_cxx_preproc_warn_flag in '' yes
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line 3072 "configure"
3073 #include "confdefs.h"
3077 if { (eval echo "$as_me:3077: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3080 egrep -v '^ *\+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_cxx_preproc_warn_flag
3093 if test -z "$ac_cpp_err"; then
3096 echo "$as_me: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3098 # Broken: fails on valid input.
3101 rm -f conftest.err conftest.$ac_ext
3103 # OK, works on sane cases. Now check whether non-existent headers
3104 # can be detected and how.
3105 cat >conftest.$ac_ext <<_ACEOF
3106 #line 3106 "configure"
3107 #include "confdefs.h"
3108 #include <ac_nonexistent.h>
3110 if { (eval echo "$as_me:3110: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113 egrep -v '^ *\+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:3116: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_cxx_preproc_warn_flag
3126 if test -z "$ac_cpp_err"; then
3127 # Broken: success on invalid input.
3130 echo "$as_me: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3132 # Passes both tests.
3136 rm -f conftest.err conftest.$ac_ext
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3146 ac_cv_prog_CXXCPP=$CXXCPP
3149 CXXCPP=$ac_cv_prog_CXXCPP
3151 ac_cv_prog_CXXCPP=$CXXCPP
3153 echo "$as_me:3153: result: $CXXCPP" >&5
3154 echo "${ECHO_T}$CXXCPP" >&6
3156 for ac_cxx_preproc_warn_flag in '' yes
3158 # Use a header file that comes with gcc, so configuring glibc
3159 # with a fresh cross-compiler works.
3160 # On the NeXT, cc -E runs the code through the compiler's parser,
3161 # not just through cpp. "Syntax error" is here to catch this case.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 #line 3163 "configure"
3164 #include "confdefs.h"
3168 if { (eval echo "$as_me:3168: \"$ac_cpp conftest.$ac_ext\"") >&5
3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 egrep -v '^ *\+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:3174: \$? = $ac_status" >&5
3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_cxx_preproc_warn_flag
3184 if test -z "$ac_cpp_err"; then
3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 # Broken: fails on valid input.
3192 rm -f conftest.err conftest.$ac_ext
3194 # OK, works on sane cases. Now check whether non-existent headers
3195 # can be detected and how.
3196 cat >conftest.$ac_ext <<_ACEOF
3197 #line 3197 "configure"
3198 #include "confdefs.h"
3199 #include <ac_nonexistent.h>
3201 if { (eval echo "$as_me:3201: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 egrep -v '^ *\+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:3207: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_cxx_preproc_warn_flag
3217 if test -z "$ac_cpp_err"; then
3218 # Broken: success on invalid input.
3221 echo "$as_me: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 # Passes both tests.
3227 rm -f conftest.err conftest.$ac_ext
3230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231 rm -f conftest.err conftest.$ac_ext
3232 if $ac_preproc_ok; then
3235 { { echo "$as_me:3235: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3236 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3237 { (exit 1); exit 1; }; }
3241 ac_cpp='$CXXCPP $CPPFLAGS'
3242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3246 for ac_header in dlfcn.h
3248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249 echo "$as_me:3249: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line 3255 "configure"
3256 #include "confdefs.h"
3257 #include <$ac_header>
3259 if { (eval echo "$as_me:3259: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3262 egrep -v '^ *\+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:3265: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null; then
3267 if test -s conftest.err; then
3268 ac_cpp_err=$ac_cxx_preproc_warn_flag
3275 if test -z "$ac_cpp_err"; then
3276 eval "$as_ac_Header=yes"
3278 echo "$as_me: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 eval "$as_ac_Header=no"
3282 rm -f conftest.err conftest.$ac_ext
3284 echo "$as_me:3284: result: `eval echo '${'$as_ac_Header'}'`" >&5
3285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<EOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3294 # Only perform the check for file, if the check method requires it
3295 case $deplibs_check_method in
3297 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3298 echo "$as_me:3298: checking for ${ac_tool_prefix}file" >&5
3299 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3300 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3311 ac_save_MAGIC_CMD="$MAGIC_CMD"
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3313 ac_dummy="/usr/bin:$PATH"
3314 for ac_dir in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir=.
3316 if test -f $ac_dir/${ac_tool_prefix}file; then
3317 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3318 if test -n "$file_magic_test_file"; then
3319 case $deplibs_check_method in
3321 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3324 egrep "$file_magic_regex" > /dev/null; then
3329 *** Warning: the command libtool uses to detect shared libraries,
3330 *** $file_magic_cmd, produces output that libtool cannot recognize.
3331 *** The result is that libtool may fail to recognize shared libraries
3332 *** as such. This will affect the creation of libtool libraries that
3333 *** depend on shared libraries, but programs linked with such libtool
3334 *** libraries will work regardless of this problem. Nevertheless, you
3335 *** may want to report the problem to your system manager and/or to
3336 *** bug-libtool@gnu.org
3346 MAGIC_CMD="$ac_save_MAGIC_CMD"
3351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3352 if test -n "$MAGIC_CMD"; then
3353 echo "$as_me:3353: result: $MAGIC_CMD" >&5
3354 echo "${ECHO_T}$MAGIC_CMD" >&6
3356 echo "$as_me:3356: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3360 if test -z "$lt_cv_path_MAGIC_CMD"; then
3361 if test -n "$ac_tool_prefix"; then
3362 echo "$as_me:3362: checking for file" >&5
3363 echo $ECHO_N "checking for file... $ECHO_C" >&6
3364 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3375 ac_save_MAGIC_CMD="$MAGIC_CMD"
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3377 ac_dummy="/usr/bin:$PATH"
3378 for ac_dir in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir=.
3380 if test -f $ac_dir/file; then
3381 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3382 if test -n "$file_magic_test_file"; then
3383 case $deplibs_check_method in
3385 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3388 egrep "$file_magic_regex" > /dev/null; then
3393 *** Warning: the command libtool uses to detect shared libraries,
3394 *** $file_magic_cmd, produces output that libtool cannot recognize.
3395 *** The result is that libtool may fail to recognize shared libraries
3396 *** as such. This will affect the creation of libtool libraries that
3397 *** depend on shared libraries, but programs linked with such libtool
3398 *** libraries will work regardless of this problem. Nevertheless, you
3399 *** may want to report the problem to your system manager and/or to
3400 *** bug-libtool@gnu.org
3410 MAGIC_CMD="$ac_save_MAGIC_CMD"
3415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3416 if test -n "$MAGIC_CMD"; then
3417 echo "$as_me:3417: result: $MAGIC_CMD" >&5
3418 echo "${ECHO_T}$MAGIC_CMD" >&6
3420 echo "$as_me:3420: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3436 echo "$as_me:3436: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_RANLIB+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 if test -n "$RANLIB"; then
3442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3444 ac_save_IFS=$IFS; IFS=$ac_path_separator
3446 for ac_dir in $ac_dummy; do
3448 test -z "$ac_dir" && ac_dir=.
3449 $as_executable_p "$ac_dir/$ac_word" || continue
3450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3451 echo "$as_me:3451: found $ac_dir/$ac_word" >&5
3457 RANLIB=$ac_cv_prog_RANLIB
3458 if test -n "$RANLIB"; then
3459 echo "$as_me:3459: result: $RANLIB" >&5
3460 echo "${ECHO_T}$RANLIB" >&6
3462 echo "$as_me:3462: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3467 if test -z "$ac_cv_prog_RANLIB"; then
3468 ac_ct_RANLIB=$RANLIB
3469 # Extract the first word of "ranlib", so it can be a program name with args.
3470 set dummy ranlib; ac_word=$2
3471 echo "$as_me:3471: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$ac_ct_RANLIB"; then
3477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3479 ac_save_IFS=$IFS; IFS=$ac_path_separator
3481 for ac_dir in $ac_dummy; do
3483 test -z "$ac_dir" && ac_dir=.
3484 $as_executable_p "$ac_dir/$ac_word" || continue
3485 ac_cv_prog_ac_ct_RANLIB="ranlib"
3486 echo "$as_me:3486: found $ac_dir/$ac_word" >&5
3490 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3493 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3494 if test -n "$ac_ct_RANLIB"; then
3495 echo "$as_me:3495: result: $ac_ct_RANLIB" >&5
3496 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3498 echo "$as_me:3498: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3502 RANLIB=$ac_ct_RANLIB
3504 RANLIB="$ac_cv_prog_RANLIB"
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}strip; ac_word=$2
3510 echo "$as_me:3510: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_prog_STRIP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if test -n "$STRIP"; then
3516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3518 ac_save_IFS=$IFS; IFS=$ac_path_separator
3520 for ac_dir in $ac_dummy; do
3522 test -z "$ac_dir" && ac_dir=.
3523 $as_executable_p "$ac_dir/$ac_word" || continue
3524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3525 echo "$as_me:3525: found $ac_dir/$ac_word" >&5
3531 STRIP=$ac_cv_prog_STRIP
3532 if test -n "$STRIP"; then
3533 echo "$as_me:3533: result: $STRIP" >&5
3534 echo "${ECHO_T}$STRIP" >&6
3536 echo "$as_me:3536: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3541 if test -z "$ac_cv_prog_STRIP"; then
3543 # Extract the first word of "strip", so it can be a program name with args.
3544 set dummy strip; ac_word=$2
3545 echo "$as_me:3545: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3553 ac_save_IFS=$IFS; IFS=$ac_path_separator
3555 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 $as_executable_p "$ac_dir/$ac_word" || continue
3559 ac_cv_prog_ac_ct_STRIP="strip"
3560 echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568 if test -n "$ac_ct_STRIP"; then
3569 echo "$as_me:3569: result: $ac_ct_STRIP" >&5
3570 echo "${ECHO_T}$ac_ct_STRIP" >&6
3572 echo "$as_me:3572: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3578 STRIP="$ac_cv_prog_STRIP"
3584 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3585 if test "${enable_libtool_lock+set}" = set; then
3586 enableval="$enable_libtool_lock"
3589 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3591 # Some flags need to be propagated to the compiler or linker for good
3595 # Find out which ABI we are using.
3596 echo '#line 3596 "configure"' > conftest.$ac_ext
3597 if { (eval echo "$as_me:3597: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>&5
3600 echo "$as_me:3600: \$? = $ac_status" >&5
3601 (exit $ac_status); }; then
3602 case `/usr/bin/file conftest.$ac_objext` in
3618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3619 SAVE_CFLAGS="$CFLAGS"
3620 CFLAGS="$CFLAGS -belf"
3621 echo "$as_me:3621: checking whether the C compiler needs -belf" >&5
3622 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3623 if test "${lt_cv_cc_needs_belf+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #line 3634 "configure"
3635 #include "confdefs.h"
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:3646: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3649 echo "$as_me:3649: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest$ac_exeext'
3652 { (eval echo "$as_me:3652: \"$ac_try\"") >&5
3655 echo "$as_me:3655: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 lt_cv_cc_needs_belf=yes
3659 echo "$as_me: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 lt_cv_cc_needs_belf=no
3663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3665 ac_cpp='$CXXCPP $CPPFLAGS'
3666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671 echo "$as_me:3671: result: $lt_cv_cc_needs_belf" >&5
3672 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3673 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3675 CFLAGS="$SAVE_CFLAGS"
3681 # Sed substitution that helps us do robust quoting. It backslashifies
3682 # metacharacters that are still active within double-quoted strings.
3683 Xsed='sed -e s/^X//'
3684 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3686 # Same as above, but do not quote variable references.
3687 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3689 # Sed substitution to delay expansion of an escaped shell variable in a
3690 # double_quote_subst'ed string.
3691 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3697 default_ofile=libtool
3698 can_build_shared=yes
3700 # All known linkers require a `.a' archive for static linking (except M$VC,
3701 # which needs '.lib').
3703 ltmain="$ac_aux_dir/ltmain.sh"
3704 ofile="$default_ofile"
3705 with_gnu_ld="$lt_cv_prog_gnu_ld"
3706 need_locks="$enable_libtool_lock"
3709 old_CFLAGS="$CFLAGS"
3711 # Set sane defaults for various variables
3712 test -z "$AR" && AR=ar
3713 test -z "$AR_FLAGS" && AR_FLAGS=cru
3714 test -z "$AS" && AS=as
3715 test -z "$CC" && CC=cc
3716 test -z "$DLLTOOL" && DLLTOOL=dlltool
3717 test -z "$LD" && LD=ld
3718 test -z "$LN_S" && LN_S="ln -s"
3719 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3720 test -z "$NM" && NM=nm
3721 test -z "$OBJDUMP" && OBJDUMP=objdump
3722 test -z "$RANLIB" && RANLIB=:
3723 test -z "$STRIP" && STRIP=:
3724 test -z "$ac_objext" && ac_objext=o
3726 if test x"$host" != x"$build"; then
3727 ac_tool_prefix=${host_alias}-
3732 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3735 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3740 # AIX sometimes has problems with the GCC collect2 program. For some
3741 # reason, if we set the COLLECT_NAMES environment variable, the problems
3742 # vanish in a puff of smoke.
3743 if test "X${COLLECT_NAMES+set}" != Xset; then
3745 export COLLECT_NAMES
3750 # Determine commands to create old-style static archives.
3751 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3752 old_postinstall_cmds='chmod 644 $oldlib'
3753 old_postuninstall_cmds=
3755 if test -n "$RANLIB"; then
3758 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3761 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3764 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3767 # Allow CC to be a program name with arguments.
3771 echo "$as_me:3771: checking for objdir" >&5
3772 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3773 rm -f .libs 2>/dev/null
3774 mkdir .libs 2>/dev/null
3775 if test -d .libs; then
3778 # MS-DOS does not allow filenames that begin with a dot.
3781 rmdir .libs 2>/dev/null
3782 echo "$as_me:3782: result: $objdir" >&5
3783 echo "${ECHO_T}$objdir" >&6
3785 # Check whether --with-pic or --without-pic was given.
3786 if test "${with_pic+set}" = set; then
3792 test -z "$pic_mode" && pic_mode=default
3794 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3795 # in isolation, and that seeing it set (from the cache) indicates that
3796 # the associated values are set (in the cache) correctly too.
3797 echo "$as_me:3797: checking for $compiler option to produce PIC" >&5
3798 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3799 if test "${lt_cv_prog_cc_pic+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 lt_cv_prog_cc_shlib=
3805 lt_cv_prog_cc_static=
3806 lt_cv_prog_cc_no_builtin=
3807 lt_cv_prog_cc_can_build_shared=$can_build_shared
3809 if test "$GCC" = yes; then
3810 lt_cv_prog_cc_wl='-Wl,'
3811 lt_cv_prog_cc_static='-static'
3815 # Below there is a dirty hack to force normal static linking with -ldl
3816 # The problem is because libdl dynamically linked with both libc and
3817 # libC (AIX C++ library), which obviously doesn't included in libraries
3818 # list by gcc. This cause undefined symbols with -static flags.
3819 # This hack allows C programs to be linked with "-static -ldl", but
3820 # not sure about C++ programs.
3821 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3824 # FIXME: we need at least 68020 code to build shared libraries, but
3825 # adding the `-m68020' flag to GCC prevents building anything better,
3827 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3829 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3830 # PIC is the default for these OSes.
3832 darwin* | rhapsody*)
3833 # PIC is the default on this platform
3834 # Common symbols not allowed in MH_DYLIB files
3835 lt_cv_prog_cc_pic='-fno-common'
3837 cygwin* | mingw* | pw32* | os2*)
3838 # This hack is so that the source file can tell whether it is being
3839 # built for inclusion in a dll (and should export symbols for example).
3840 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3843 if test -d /usr/nec; then
3844 lt_cv_prog_cc_pic=-Kconform_pic
3848 lt_cv_prog_cc_pic='-fPIC'
3852 # PORTME Check for PIC flags for the system compiler.
3854 aix3* | aix4* | aix5*)
3855 lt_cv_prog_cc_wl='-Wl,'
3856 # All AIX code is PIC.
3857 if test "$host_cpu" = ia64; then
3858 # AIX 5 now supports IA64 processor
3859 lt_cv_prog_cc_static='-Bstatic'
3861 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3865 hpux9* | hpux10* | hpux11*)
3866 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3867 lt_cv_prog_cc_wl='-Wl,'
3868 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3869 lt_cv_prog_cc_pic='+Z'
3873 lt_cv_prog_cc_wl='-Wl,'
3874 lt_cv_prog_cc_static='-non_shared'
3875 # PIC (with -KPIC) is the default.
3878 cygwin* | mingw* | pw32* | os2*)
3879 # This hack is so that the source file can tell whether it is being
3880 # built for inclusion in a dll (and should export symbols for example).
3881 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3885 lt_cv_prog_cc_pic='-KPIC'
3886 lt_cv_prog_cc_static='-Bstatic'
3889 osf3* | osf4* | osf5*)
3890 # All OSF/1 code is PIC.
3891 lt_cv_prog_cc_wl='-Wl,'
3892 lt_cv_prog_cc_static='-non_shared'
3896 lt_cv_prog_cc_pic='-Kpic'
3897 lt_cv_prog_cc_static='-dn'
3898 lt_cv_prog_cc_shlib='-belf'
3902 lt_cv_prog_cc_pic='-KPIC'
3903 lt_cv_prog_cc_static='-Bstatic'
3904 lt_cv_prog_cc_wl='-Wl,'
3908 lt_cv_prog_cc_pic='-PIC'
3909 lt_cv_prog_cc_static='-Bstatic'
3910 lt_cv_prog_cc_wl='-Qoption ld '
3913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3914 lt_cv_prog_cc_pic='-KPIC'
3915 lt_cv_prog_cc_static='-Bstatic'
3916 if test "x$host_vendor" = xsni; then
3917 lt_cv_prog_cc_wl='-LD'
3919 lt_cv_prog_cc_wl='-Wl,'
3924 lt_cv_prog_cc_pic='-pic'
3925 lt_cv_prog_cc_static='-Bstatic'
3929 if test -d /usr/nec ;then
3930 lt_cv_prog_cc_pic='-Kconform_pic'
3931 lt_cv_prog_cc_static='-Bstatic'
3936 lt_cv_prog_cc_can_build_shared=no
3943 if test -z "$lt_cv_prog_cc_pic"; then
3944 echo "$as_me:3944: result: none" >&5
3945 echo "${ECHO_T}none" >&6
3947 echo "$as_me:3947: result: $lt_cv_prog_cc_pic" >&5
3948 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3950 # Check to make sure the pic_flag actually works.
3951 echo "$as_me:3951: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3952 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3953 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 save_CFLAGS="$CFLAGS"
3957 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line 3959 "configure"
3960 #include "confdefs.h"
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:3971: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3974 echo "$as_me:3974: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:3977: \"$ac_try\"") >&5
3980 echo "$as_me:3980: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3983 hpux9* | hpux10* | hpux11*)
3984 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3985 # they create non-PIC objects. So, if there were any warnings, we
3986 # assume that PIC is not supported.
3987 if test -s conftest.err; then
3988 lt_cv_prog_cc_pic_works=no
3990 lt_cv_prog_cc_pic_works=yes
3994 lt_cv_prog_cc_pic_works=yes
3999 echo "$as_me: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4001 lt_cv_prog_cc_pic_works=no
4004 rm -f conftest.$ac_objext conftest.$ac_ext
4005 CFLAGS="$save_CFLAGS"
4009 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4011 lt_cv_prog_cc_can_build_shared=no
4013 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4016 echo "$as_me:4016: result: $lt_cv_prog_cc_pic_works" >&5
4017 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4020 # Check for any special shared library compilation flags.
4021 if test -n "$lt_cv_prog_cc_shlib"; then
4022 { echo "$as_me:4022: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4023 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4024 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4026 { echo "$as_me:4026: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4027 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4028 lt_cv_prog_cc_can_build_shared=no
4032 echo "$as_me:4032: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4033 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4034 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 lt_cv_prog_cc_static_works=no
4038 save_LDFLAGS="$LDFLAGS"
4039 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4040 cat >conftest.$ac_ext <<_ACEOF
4041 #line 4041 "configure"
4042 #include "confdefs.h"
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:4053: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>&5
4056 echo "$as_me:4056: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -s conftest$ac_exeext'
4059 { (eval echo "$as_me:4059: \"$ac_try\"") >&5
4062 echo "$as_me:4062: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 lt_cv_prog_cc_static_works=yes
4066 echo "$as_me: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4070 LDFLAGS="$save_LDFLAGS"
4074 # Belt *and* braces to stop my trousers falling down:
4075 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4076 echo "$as_me:4076: result: $lt_cv_prog_cc_static_works" >&5
4077 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4079 pic_flag="$lt_cv_prog_cc_pic"
4080 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4081 wl="$lt_cv_prog_cc_wl"
4082 link_static_flag="$lt_cv_prog_cc_static"
4083 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4084 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4086 # Check to see if options -o and -c are simultaneously supported by compiler
4087 echo "$as_me:4087: checking if $compiler supports -c -o file.$ac_objext" >&5
4088 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4089 if test "${lt_cv_compiler_c_o+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 $rm -r conftest 2>/dev/null
4096 echo "int some_variable = 0;" > conftest.$ac_ext
4098 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4099 # that will create temporary files in the current directory regardless of
4100 # the output directory. Thus, making CWD read-only will cause this test
4101 # to fail, enabling locking or at least warning the user not to do parallel
4104 save_CFLAGS="$CFLAGS"
4105 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4107 if { (eval echo configure:4107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4108 # The compiler can only warn and ignore the option if not recognized
4109 # So say no if there are warnings
4110 if test -s out/conftest.err; then
4111 lt_cv_compiler_c_o=no
4113 lt_cv_compiler_c_o=yes
4116 # Append any errors to the config.log.
4117 cat out/conftest.err 1>&5
4118 lt_cv_compiler_c_o=no
4120 CFLAGS="$save_CFLAGS"
4126 $rm -r conftest 2>/dev/null
4130 compiler_c_o=$lt_cv_compiler_c_o
4131 echo "$as_me:4131: result: $compiler_c_o" >&5
4132 echo "${ECHO_T}$compiler_c_o" >&6
4134 if test x"$compiler_c_o" = x"yes"; then
4135 # Check to see if we can write to a .lo
4136 echo "$as_me:4136: checking if $compiler supports -c -o file.lo" >&5
4137 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4138 if test "${lt_cv_compiler_o_lo+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 lt_cv_compiler_o_lo=no
4143 save_CFLAGS="$CFLAGS"
4144 CFLAGS="$CFLAGS -c -o conftest.lo"
4145 save_objext="$ac_objext"
4147 cat >conftest.$ac_ext <<_ACEOF
4148 #line 4148 "configure"
4149 #include "confdefs.h"
4154 int some_variable = 0;
4159 rm -f conftest.$ac_objext
4160 if { (eval echo "$as_me:4160: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>&5
4163 echo "$as_me:4163: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:4166: \"$ac_try\"") >&5
4169 echo "$as_me:4169: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 # The compiler can only warn and ignore the option if not recognized
4172 # So say no if there are warnings
4173 if test -s conftest.err; then
4174 lt_cv_compiler_o_lo=no
4176 lt_cv_compiler_o_lo=yes
4180 echo "$as_me: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 rm -f conftest.$ac_objext conftest.$ac_ext
4184 ac_objext="$save_objext"
4185 CFLAGS="$save_CFLAGS"
4189 compiler_o_lo=$lt_cv_compiler_o_lo
4190 echo "$as_me:4190: result: $compiler_o_lo" >&5
4191 echo "${ECHO_T}$compiler_o_lo" >&6
4196 # Check to see if we can do hard links to lock some files if needed
4197 hard_links="nottested"
4198 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4199 # do not overwrite the value of need_locks provided by the user
4200 echo "$as_me:4200: checking if we can lock with hard links" >&5
4201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4206 ln conftest.a conftest.b 2>&5 || hard_links=no
4207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4208 echo "$as_me:4208: result: $hard_links" >&5
4209 echo "${ECHO_T}$hard_links" >&6
4210 if test "$hard_links" = no; then
4211 { echo "$as_me:4211: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4219 if test "$GCC" = yes; then
4220 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4221 echo "$as_me:4221: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4222 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4223 echo "int some_variable = 0;" > conftest.$ac_ext
4224 save_CFLAGS="$CFLAGS"
4225 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4226 compiler_rtti_exceptions=no
4227 cat >conftest.$ac_ext <<_ACEOF
4228 #line 4228 "configure"
4229 #include "confdefs.h"
4234 int some_variable = 0;
4239 rm -f conftest.$ac_objext
4240 if { (eval echo "$as_me:4240: \"$ac_compile\"") >&5
4241 (eval $ac_compile) 2>&5
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:4246: \"$ac_try\"") >&5
4249 echo "$as_me:4249: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 # The compiler can only warn and ignore the option if not recognized
4252 # So say no if there are warnings
4253 if test -s conftest.err; then
4254 compiler_rtti_exceptions=no
4256 compiler_rtti_exceptions=yes
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4263 rm -f conftest.$ac_objext conftest.$ac_ext
4264 CFLAGS="$save_CFLAGS"
4265 echo "$as_me:4265: result: $compiler_rtti_exceptions" >&5
4266 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4268 if test "$compiler_rtti_exceptions" = "yes"; then
4269 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4271 no_builtin_flag=' -fno-builtin'
4275 # See if the linker supports building shared libraries.
4276 echo "$as_me:4276: checking whether the linker ($LD) supports shared libraries" >&5
4277 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4279 allow_undefined_flag=
4281 need_lib_prefix=unknown
4282 need_version=unknown
4283 # when you set need_version to no, make sure it does not cause -set_version
4284 # flags to be left without arguments
4286 archive_expsym_cmds=
4287 old_archive_from_new_cmds=
4288 old_archive_from_expsyms_cmds=
4289 export_dynamic_flag_spec=
4290 whole_archive_flag_spec=
4291 thread_safe_flag_spec=
4292 hardcode_into_libs=no
4293 hardcode_libdir_flag_spec=
4294 hardcode_libdir_separator=
4297 hardcode_shlibpath_var=unsupported
4299 link_all_deplibs=unknown
4300 always_export_symbols=no
4301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4302 # include_expsyms should be a list of space-separated symbols to be *always*
4303 # included in the symbol list
4305 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4308 # as well as any symbol that contains `d'.
4309 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4311 # platforms (ab)use it in PIC code, but their linkers get confused if
4312 # the symbol is explicitly referenced. Since portable code cannot
4313 # rely on this symbol name, it's probably fine to never include it in
4314 # preloaded symbol tables.
4315 extract_expsyms_cmds=
4318 cygwin* | mingw* | pw32*)
4319 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4320 # When not using gcc, we currently assume that we are using
4321 # Microsoft Visual C++.
4322 if test "$GCC" != yes; then
4332 if test "$with_gnu_ld" = yes; then
4333 # If archive_cmds runs LD, not CC, wlarc should be empty
4336 # See if GNU ld supports shared libraries.
4338 aix3* | aix4* | aix5*)
4339 # On AIX, the GNU linker is very broken
4340 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4344 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4345 *** to be unable to reliably create shared libraries on AIX.
4346 *** Therefore, libtool is disabling shared libraries support. If you
4347 *** really care for shared libraries, you may want to modify your PATH
4348 *** so that a non-GNU linker is found, and then restart.
4354 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)'
4355 hardcode_libdir_flag_spec='-L$libdir'
4356 hardcode_minus_L=yes
4358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4359 # that the semantics of dynamic libraries on AmigaOS, at least up
4360 # to version 4, is to share data among multiple programs linked
4361 # with the same dynamic library. Since this doesn't match the
4362 # behavior of shared libraries on other platforms, we can use
4368 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4369 allow_undefined_flag=unsupported
4370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4371 # support --undefined. This deserves some investigation. FIXME
4372 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4378 cygwin* | mingw* | pw32*)
4379 # hardcode_libdir_flag_spec is actually meaningless, as there is
4380 # no search path for DLLs.
4381 hardcode_libdir_flag_spec='-L$libdir'
4382 allow_undefined_flag=unsupported
4383 always_export_symbols=yes
4385 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4386 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4387 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4388 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4389 else $CC -o impgen impgen.c ; fi)~
4390 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4392 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4394 # cygwin and mingw dlls have different entry points and sets of symbols
4396 # FIXME: what about values for MSVC?
4397 dll_entry=__cygwin_dll_entry@12
4398 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4402 dll_entry=_DllMainCRTStartup@12
4403 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4407 # mingw and cygwin differ, and it's simplest to just exclude the union
4408 # of the two symbol sets.
4409 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4411 # recent cygwin and mingw systems supply a stub DllMain which the user
4412 # can override, but on older systems we have to supply one (in ltdll.c)
4413 if test "x$lt_cv_need_dllmain" = "xyes"; then
4414 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4415 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~
4416 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4422 # Extract the symbol export list from an `--export-all' def file,
4423 # then regenerate the def file from the symbol export list, so that
4424 # the compiled dll only exports the symbol export list.
4425 # Be careful not to strip the DATA tag left be newer dlltools.
4426 export_symbols_cmds="$ltdll_cmds"'
4427 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4428 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4430 # If the export-symbols file already is a .def file (1st line
4431 # is EXPORTS), use it as is.
4432 # If DATA tags from a recent dlltool are present, honour them!
4433 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4434 cp $export_symbols $output_objdir/$soname-def;
4436 echo EXPORTS > $output_objdir/$soname-def;
4438 cat $export_symbols | while read symbol; do
4441 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4442 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4444 _lt_hint=`expr 1 + \$_lt_hint`;
4448 $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~
4449 $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~
4450 $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~
4451 $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~
4452 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4460 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4461 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4466 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4471 *** create shared libraries on Solaris systems. Therefore, libtool
4472 *** is disabling shared libraries support. We urge you to upgrade GNU
4473 *** binutils to release 2.9.1 or newer. Another option is to modify
4474 *** your PATH or compiler configuration so that the native linker is
4475 *** used, and then restart.
4478 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4480 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4490 hardcode_shlibpath_var=no
4494 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4503 if test "$ld_shlibs" = yes; then
4504 runpath_var=LD_RUN_PATH
4505 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4506 export_dynamic_flag_spec='${wl}--export-dynamic'
4508 cygwin* | mingw* | pw32*)
4509 # dlltool doesn't understand --whole-archive et. al.
4510 whole_archive_flag_spec=
4513 # ancient GNU ld didn't support --whole-archive et. al.
4514 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4515 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4517 whole_archive_flag_spec=
4523 # PORTME fill in a description of your system's linker (not GNU ld)
4526 allow_undefined_flag=unsupported
4527 always_export_symbols=yes
4528 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'
4529 # Note: this linker hardcodes the directories in LIBPATH if there
4530 # are no directories specified by -L.
4531 hardcode_minus_L=yes
4532 if test "$GCC" = yes && test -z "$link_static_flag"; then
4533 # Neither direct hardcoding nor static linking is supported with a
4535 hardcode_direct=unsupported
4540 if test "$host_cpu" = ia64; then
4541 # On IA64, the linker does run time linking by default, so we don't
4542 # have to do anything special.
4543 aix_use_runtimelinking=no
4544 exp_sym_flag='-Bexport'
4547 aix_use_runtimelinking=no
4549 # Test if we are trying to use run time linking or normal
4550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4551 # need to do runtime linking.
4552 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4553 for ld_flag in $LDFLAGS; do
4554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4555 aix_use_runtimelinking=yes
4561 exp_sym_flag='-bexport'
4562 no_entry_flag='-bnoentry'
4565 # When large executables or shared objects are built, AIX ld can
4566 # have problems creating the table of contents. If linking a library
4567 # or program results in "error TOC overflow" add -mminimal-toc to
4568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4573 hardcode_libdir_separator=':'
4574 if test "$GCC" = yes; then
4575 case $host_os in aix4.[012]|aix4.[012].*)
4576 collect2name=`${CC} -print-prog-name=collect2`
4577 if test -f "$collect2name" && \
4578 strings "$collect2name" | grep resolve_lib_name >/dev/null
4580 # We have reworked collect2
4583 # We have old collect2
4584 hardcode_direct=unsupported
4585 # It fails to find uninstalled libraries when the uninstalled
4586 # path is not listed in the libpath. Setting hardcode_minus_L
4587 # to unsupported forces relinking
4588 hardcode_minus_L=yes
4589 hardcode_libdir_flag_spec='-L$libdir'
4590 hardcode_libdir_separator=
4594 shared_flag='-shared'
4597 if test "$host_cpu" = ia64; then
4598 shared_flag='${wl}-G'
4600 if test "$aix_use_runtimelinking" = yes; then
4601 shared_flag='${wl}-G'
4603 shared_flag='${wl}-bM:SRE'
4608 # It seems that -bexpall can do strange things, so it is better to
4609 # generate a list of symbols to export.
4610 always_export_symbols=yes
4611 if test "$aix_use_runtimelinking" = yes; then
4612 # Warning - without using the other runtime loading flags (-brtl),
4613 # -berok will link without error, but may produce a broken library.
4614 allow_undefined_flag='-berok'
4615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4616 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"
4618 if test "$host_cpu" = ia64; then
4619 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4620 allow_undefined_flag="-z nodefs"
4621 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"
4623 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4624 # Warning - without using the other run time loading flags,
4625 # -berok will link without error, but may produce a broken library.
4626 allow_undefined_flag='${wl}-berok'
4627 # This is a bit strange, but is similar to how AIX traditionally builds
4628 # it's shared libraries.
4629 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'
4635 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)'
4636 hardcode_libdir_flag_spec='-L$libdir'
4637 hardcode_minus_L=yes
4638 # see comment about different semantics on the GNU ld section
4642 cygwin* | mingw* | pw32*)
4643 # When not using gcc, we currently assume that we are using
4644 # Microsoft Visual C++.
4645 # hardcode_libdir_flag_spec is actually meaningless, as there is
4646 # no search path for DLLs.
4647 hardcode_libdir_flag_spec=' '
4648 allow_undefined_flag=unsupported
4649 # Tell ltmain to make .lib files, not .a files.
4651 # FIXME: Setting linknames here is a bad hack.
4652 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4653 # The linker will automatically build a .lib file if we build a DLL.
4654 old_archive_from_new_cmds='true'
4655 # FIXME: Should let the user specify the lib program.
4656 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4657 fix_srcfile_path='`cygpath -w "$srcfile"`'
4660 darwin* | rhapsody*)
4662 rhapsody* | darwin1.[012])
4663 allow_undefined_flag='-undefined suppress'
4666 allow_undefined_flag='-flat_namespace -undefined suppress'
4669 # FIXME: Relying on posixy $() will cause problems for
4670 # cross-compilation, but unfortunately the echo tests do not
4671 # yet detect zsh echo's removal of \ escapes.
4672 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4673 # We need to add '_' to the symbols in $export_symbols first
4674 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4676 hardcode_shlibpath_var=no
4677 whole_archive_flag_spec='-all_load $convenience'
4684 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4685 # support. Future versions do this automatically, but an explicit c++rt0.o
4686 # does not break anything, and helps significantly (at the cost of a little
4689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4690 hardcode_libdir_flag_spec='-R$libdir'
4692 hardcode_shlibpath_var=no
4695 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4699 hardcode_minus_L=yes
4700 hardcode_shlibpath_var=no
4703 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4705 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4706 hardcode_libdir_flag_spec='-R$libdir'
4708 hardcode_shlibpath_var=no
4711 hpux9* | hpux10* | hpux11*)
4713 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' ;;
4714 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4717 hardcode_libdir_separator=:
4719 hardcode_minus_L=yes # Not in the search PATH, but as the default
4720 # location of the library.
4721 export_dynamic_flag_spec='${wl}-E'
4725 if test "$GCC" = yes; then
4726 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'
4728 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'
4730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4731 hardcode_libdir_separator=:
4732 link_all_deplibs=yes
4736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4739 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4741 hardcode_libdir_flag_spec='-R$libdir'
4743 hardcode_shlibpath_var=no
4747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4750 hardcode_libdir_separator=:
4751 hardcode_shlibpath_var=no
4756 hardcode_shlibpath_var=no
4757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4760 export_dynamic_flag_spec='${wl}-E'
4763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4765 hardcode_libdir_flag_spec='-R$libdir'
4768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4776 hardcode_libdir_flag_spec='-L$libdir'
4777 hardcode_minus_L=yes
4778 allow_undefined_flag=unsupported
4779 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'
4780 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4784 if test "$GCC" = yes; then
4785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4786 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'
4788 allow_undefined_flag=' -expect_unresolved \*'
4789 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'
4791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4792 hardcode_libdir_separator=:
4795 osf4* | osf5*) # as osf3* with the addition of -msym flag
4796 if test "$GCC" = yes; then
4797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4798 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'
4799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4801 allow_undefined_flag=' -expect_unresolved \*'
4802 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'
4803 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4804 $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'
4806 #Both c and cxx compiler support -rpath directly
4807 hardcode_libdir_flag_spec='-rpath $libdir'
4809 hardcode_libdir_separator=:
4813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4814 hardcode_shlibpath_var=no
4815 runpath_var=LD_RUN_PATH
4816 hardcode_runpath_var=yes
4817 export_dynamic_flag_spec='${wl}-Bexport'
4821 # gcc --version < 3.0 without binutils cannot create self contained
4822 # shared libraries reliably, requiring libgcc.a to resolve some of
4823 # the object symbols generated in some cases. Libraries that use
4824 # assert need libgcc.a to resolve __eprintf, for example. Linking
4825 # a copy of libgcc.a into every shared library to guarantee resolving
4826 # such symbols causes other problems: According to Tim Van Holder
4827 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4828 # (to the application) exception stack for one thing.
4829 no_undefined_flag=' -z defs'
4830 if test "$GCC" = yes; then
4831 case `$CC --version 2>/dev/null` in
4835 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4836 *** create self contained shared libraries on Solaris systems, without
4837 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4838 *** -no-undefined support, which will at least allow you to build shared
4839 *** libraries. However, you may find that when you link such libraries
4840 *** into an application without using GCC, you have to manually add
4841 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4842 *** upgrade to a newer version of GCC. Another option is to rebuild your
4843 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4850 # $CC -shared without GNU ld will not create a library from C++
4851 # object files and a static libstdc++, better avoid it by now
4852 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4853 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4854 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4855 hardcode_libdir_flag_spec='-R$libdir'
4856 hardcode_shlibpath_var=no
4858 solaris2.[0-5] | solaris2.[0-5].*) ;;
4859 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4860 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4862 link_all_deplibs=yes
4866 if test "x$host_vendor" = xsequent; then
4867 # Use $CC to link under sequent, because it throws in some extra .o
4868 # files that make .init and .fini sections work.
4869 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4871 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4873 hardcode_libdir_flag_spec='-L$libdir'
4875 hardcode_minus_L=yes
4876 hardcode_shlibpath_var=no
4880 if test "x$host_vendor" = xsno; then
4881 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4882 hardcode_direct=yes # is this really true???
4884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4885 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4887 runpath_var='LD_RUN_PATH'
4888 hardcode_shlibpath_var=no
4892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4893 hardcode_shlibpath_var=no
4894 export_dynamic_flag_spec='-Bexport'
4898 no_undefined_flag=' -z text'
4899 # $CC -shared without GNU ld will not create a library from C++
4900 # object files and a static libstdc++, better avoid it by now
4901 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4902 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4903 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4904 hardcode_libdir_flag_spec=
4905 hardcode_shlibpath_var=no
4906 runpath_var='LD_RUN_PATH'
4910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4911 hardcode_libdir_flag_spec='-L$libdir'
4912 hardcode_shlibpath_var=no
4916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4917 hardcode_libdir_flag_spec='-L$libdir'
4918 hardcode_shlibpath_var=no
4922 if test -d /usr/nec; then
4923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4924 hardcode_shlibpath_var=no
4925 runpath_var=LD_RUN_PATH
4926 hardcode_runpath_var=yes
4932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4935 hardcode_shlibpath_var=no
4936 hardcode_runpath_var=yes
4937 runpath_var=LD_RUN_PATH
4940 sysv5uw7* | unixware7*)
4941 no_undefined_flag='${wl}-z ${wl}text'
4942 if test "$GCC" = yes; then
4943 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4945 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4947 runpath_var='LD_RUN_PATH'
4948 hardcode_shlibpath_var=no
4956 echo "$as_me:4956: result: $ld_shlibs" >&5
4957 echo "${ECHO_T}$ld_shlibs" >&6
4958 test "$ld_shlibs" = no && can_build_shared=no
4960 # Check hardcoding attributes.
4961 echo "$as_me:4961: checking how to hardcode library paths into programs" >&5
4962 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4964 if test -n "$hardcode_libdir_flag_spec" || \
4965 test -n "$runpath_var"; then
4967 # We can hardcode non-existant directories.
4968 if test "$hardcode_direct" != no &&
4969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4970 # have to relink, otherwise we might link with an installed library
4971 # when we should be linking with a yet-to-be-installed one
4972 ## test "$hardcode_shlibpath_var" != no &&
4973 test "$hardcode_minus_L" != no; then
4974 # Linking always hardcodes the temporary library directory.
4975 hardcode_action=relink
4977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4978 hardcode_action=immediate
4981 # We cannot hardcode anything, or else we can only hardcode existing
4983 hardcode_action=unsupported
4985 echo "$as_me:4985: result: $hardcode_action" >&5
4986 echo "${ECHO_T}$hardcode_action" >&6
4990 echo "$as_me:4990: checking whether stripping libraries is possible" >&5
4991 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4992 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4993 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4994 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4995 echo "$as_me:4995: result: yes" >&5
4996 echo "${ECHO_T}yes" >&6
4998 echo "$as_me:4998: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5003 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5005 # PORTME Fill in your ld.so characteristics
5006 echo "$as_me:5006: checking dynamic linker characteristics" >&5
5007 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5009 libname_spec='lib$name'
5016 shlibpath_overrides_runpath=unknown
5018 dynamic_linker="$host_os ld.so"
5019 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5020 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5025 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5026 shlibpath_var=LIBPATH
5028 # AIX has no versioning support, so we append a major version to the name.
5029 soname_spec='${libname}${release}.so$major'
5034 if test "$host_cpu" = ia64; then
5035 # AIX 5 supports IA64
5036 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5037 shlibpath_var=LD_LIBRARY_PATH
5039 # With GCC up to 2.95.x, collect2 would create an import file
5040 # for dependence libraries. The import file would start with
5041 # the line `#! .'. This would cause the generated library to
5042 # depend on `.', always an invalid library. This was fixed in
5043 # development snapshots of GCC prior to 3.0.
5045 aix4 | aix4.[01] | aix4.[01].*)
5046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5048 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5055 # AIX (on Power*) has no versioning support, so currently we can
5056 # not hardcode correct soname into executable. Probably we can
5057 # add versioning support to collect2, so additional links can
5058 # be useful in future.
5059 if test "$aix_use_runtimelinking" = yes; then
5060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5061 # instead of lib<name>.a to let people know that these are not
5062 # typical AIX shared libraries.
5063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5065 # We preserve .a as extension for shared libraries through AIX4.2
5066 # and later when we are not doing run time linking.
5067 library_names_spec='${libname}${release}.a $libname.a'
5068 soname_spec='${libname}${release}.so$major'
5070 shlibpath_var=LIBPATH
5075 library_names_spec='$libname.ixlibrary $libname.a'
5076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5077 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'
5081 library_names_spec='${libname}.so'
5082 dynamic_linker="$host_os ld.so"
5083 shlibpath_var=LIBRARY_PATH
5089 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5090 soname_spec='${libname}${release}.so$major'
5091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5092 shlibpath_var=LD_LIBRARY_PATH
5093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5095 export_dynamic_flag_spec=-rdynamic
5096 # the default ld.so.conf also contains /usr/contrib/lib and
5097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5098 # libtool to hard-code these into programs
5101 cygwin* | mingw* | pw32*)
5102 version_type=windows
5105 case $GCC,$host_os in
5107 library_names_spec='$libname.dll.a'
5108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5109 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5110 dldir=$destdir/`dirname \$dlpath`~
5111 test -d \$dldir || mkdir -p \$dldir~
5112 $install_prog .libs/$dlname \$dldir/$dlname'
5113 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5114 dlpath=$dir/\$dldll~
5118 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5125 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5128 dynamic_linker='Win32 ld.exe'
5129 # FIXME: first we should search . and the directory the executable is in
5133 darwin* | rhapsody*)
5134 dynamic_linker="$host_os dyld"
5138 # FIXME: Relying on posixy $() will cause problems for
5139 # cross-compilation, but unfortunately the echo tests do not
5140 # yet detect zsh echo's removal of \ escapes.
5141 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)'
5142 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5143 shlibpath_overrides_runpath=yes
5144 shlibpath_var=DYLD_LIBRARY_PATH
5152 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5153 version_type=freebsd-$objformat
5154 case $version_type in
5156 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5161 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5165 shlibpath_var=LD_LIBRARY_PATH
5168 shlibpath_overrides_runpath=yes
5171 shlibpath_overrides_runpath=no
5172 hardcode_into_libs=yes
5181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5182 soname_spec='${libname}${release}.so$major'
5183 shlibpath_var=LD_LIBRARY_PATH
5184 hardcode_into_libs=yes
5187 hpux9* | hpux10* | hpux11*)
5188 # Give a soname corresponding to the major version so that dld.sl refuses to
5189 # link against other versions.
5190 dynamic_linker="$host_os dld.sl"
5194 shlibpath_var=SHLIB_PATH
5195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5196 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5197 soname_spec='${libname}${release}.sl$major'
5198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5199 postinstall_cmds='chmod 555 $lib'
5206 soname_spec='${libname}${release}.so$major'
5207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5213 case $LD in # libtool.m4 will add one of these switches to LD
5214 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5215 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5216 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5217 *) libsuff= shlibsuff= libmagic=never-match;;
5221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5222 shlibpath_overrides_runpath=no
5223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5227 # No shared lib support for Linux oldld, aout, or coff.
5228 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5232 # This must be Linux ELF.
5237 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5238 soname_spec='${libname}${release}.so$major'
5239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5240 shlibpath_var=LD_LIBRARY_PATH
5241 shlibpath_overrides_runpath=no
5242 # This implies no fast_install, which is unacceptable.
5243 # Some rework will be needed to allow for fast_install
5244 # before this can be enabled.
5245 hardcode_into_libs=yes
5247 # We used to test for /lib/ld.so.1 and disable shared libraries on
5248 # powerpc, because MkLinux only supported shared libraries with the
5249 # GNU dynamic linker. Since this was broken with cross compilers,
5250 # most powerpc-linux boxes support dynamic linking these days and
5251 # people can always --disable-shared, the test was removed, and we
5252 # assume the GNU/Linux dynamic linker is in use.
5253 dynamic_linker='GNU/Linux ld.so'
5260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5261 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5263 dynamic_linker='NetBSD (a.out) ld.so'
5265 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5266 soname_spec='${libname}${release}.so$major'
5267 dynamic_linker='NetBSD ld.elf_so'
5269 shlibpath_var=LD_LIBRARY_PATH
5270 shlibpath_overrides_runpath=yes
5271 hardcode_into_libs=yes
5276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5277 shlibpath_var=LD_LIBRARY_PATH
5278 shlibpath_overrides_runpath=yes
5285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5287 openbsd2.[89] | openbsd2.[89].*)
5288 shlibpath_overrides_runpath=no
5291 shlibpath_overrides_runpath=yes
5295 shlibpath_overrides_runpath=yes
5297 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5299 shlibpath_var=LD_LIBRARY_PATH
5303 libname_spec='$name'
5305 library_names_spec='$libname.dll $libname.a'
5306 dynamic_linker='OS/2 ld.exe'
5307 shlibpath_var=LIBPATH
5310 osf3* | osf4* | osf5*)
5313 soname_spec='${libname}${release}.so'
5314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5315 shlibpath_var=LD_LIBRARY_PATH
5316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5322 soname_spec='${libname}${release}.so$major'
5323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5324 shlibpath_var=LD_LIBRARY_PATH
5331 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5332 soname_spec='${libname}${release}.so$major'
5333 shlibpath_var=LD_LIBRARY_PATH
5334 shlibpath_overrides_runpath=yes
5335 hardcode_into_libs=yes
5336 # ldd complains unless libraries are executable
5337 postinstall_cmds='chmod +x $lib'
5342 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5344 shlibpath_var=LD_LIBRARY_PATH
5345 shlibpath_overrides_runpath=yes
5346 if test "$with_gnu_ld" = yes; then
5352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5354 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5355 soname_spec='${libname}${release}.so$major'
5356 shlibpath_var=LD_LIBRARY_PATH
5357 case $host_vendor in
5359 shlibpath_overrides_runpath=no
5364 shlibpath_overrides_runpath=no
5365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5372 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5373 soname_spec='${libname}${release}.so$major'
5374 shlibpath_var=LD_LIBRARY_PATH
5381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5382 soname_spec='${libname}${release}.so$major'
5383 shlibpath_var=LD_LIBRARY_PATH
5387 if test -d /usr/nec ;then
5389 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5390 soname_spec='$libname.so.$major'
5391 shlibpath_var=LD_LIBRARY_PATH
5399 echo "$as_me:5399: result: $dynamic_linker" >&5
5400 echo "${ECHO_T}$dynamic_linker" >&6
5401 test "$dynamic_linker" = no && can_build_shared=no
5403 # Report the final consequences.
5404 echo "$as_me:5404: checking if libtool supports shared libraries" >&5
5405 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5406 echo "$as_me:5406: result: $can_build_shared" >&5
5407 echo "${ECHO_T}$can_build_shared" >&6
5409 echo "$as_me:5409: checking whether to build shared libraries" >&5
5410 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5411 test "$can_build_shared" = "no" && enable_shared=no
5413 # On AIX, shared libraries and static libraries use the same namespace, and
5414 # are all built from PIC.
5417 test "$enable_shared" = yes && enable_static=no
5418 if test -n "$RANLIB"; then
5419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5420 postinstall_cmds='$RANLIB $lib'
5425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5426 test "$enable_shared" = yes && enable_static=no
5430 echo "$as_me:5430: result: $enable_shared" >&5
5431 echo "${ECHO_T}$enable_shared" >&6
5433 echo "$as_me:5433: checking whether to build static libraries" >&5
5434 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5435 # Make sure either enable_shared or enable_static is yes.
5436 test "$enable_shared" = yes || enable_static=yes
5437 echo "$as_me:5437: result: $enable_static" >&5
5438 echo "${ECHO_T}$enable_static" >&6
5440 if test "$hardcode_action" = relink; then
5441 # Fast installation is not supported
5442 enable_fast_install=no
5443 elif test "$shlibpath_overrides_runpath" = yes ||
5444 test "$enable_shared" = no; then
5445 # Fast installation is not necessary
5446 enable_fast_install=needless
5449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5450 if test "$GCC" = yes; then
5451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5454 if test "x$enable_dlopen" != xyes; then
5455 enable_dlopen=unknown
5456 enable_dlopen_self=unknown
5457 enable_dlopen_self_static=unknown
5464 lt_cv_dlopen="load_add_on"
5466 lt_cv_dlopen_self=yes
5469 cygwin* | mingw* | pw32*)
5470 lt_cv_dlopen="LoadLibrary"
5475 echo "$as_me:5475: checking for shl_load" >&5
5476 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5477 if test "${ac_cv_func_shl_load+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 cat >conftest.$ac_ext <<_ACEOF
5481 #line 5481 "configure"
5482 #include "confdefs.h"
5483 /* System header to define __stub macros and hopefully few prototypes,
5484 which can conflict with char shl_load (); below. */
5486 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5498 /* The GNU C library defines this for functions which it implements
5499 to always fail with ENOSYS. Some functions are actually named
5500 something starting with __ and the normal name is an alias. */
5501 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5511 rm -f conftest.$ac_objext conftest$ac_exeext
5512 if { (eval echo "$as_me:5512: \"$ac_link\"") >&5
5513 (eval $ac_link) 2>&5
5515 echo "$as_me:5515: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 { ac_try='test -s conftest$ac_exeext'
5518 { (eval echo "$as_me:5518: \"$ac_try\"") >&5
5521 echo "$as_me:5521: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 ac_cv_func_shl_load=yes
5525 echo "$as_me: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5527 ac_cv_func_shl_load=no
5529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5531 echo "$as_me:5531: result: $ac_cv_func_shl_load" >&5
5532 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5533 if test $ac_cv_func_shl_load = yes; then
5534 lt_cv_dlopen="shl_load"
5536 echo "$as_me:5536: checking for shl_load in -ldld" >&5
5537 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5538 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 ac_check_lib_save_LIBS=$LIBS
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line 5544 "configure"
5545 #include "confdefs.h"
5547 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */
5562 rm -f conftest.$ac_objext conftest$ac_exeext
5563 if { (eval echo "$as_me:5563: \"$ac_link\"") >&5
5564 (eval $ac_link) 2>&5
5566 echo "$as_me:5566: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -s conftest$ac_exeext'
5569 { (eval echo "$as_me:5569: \"$ac_try\"") >&5
5572 echo "$as_me:5572: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 ac_cv_lib_dld_shl_load=yes
5576 echo "$as_me: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5578 ac_cv_lib_dld_shl_load=no
5580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5581 LIBS=$ac_check_lib_save_LIBS
5583 echo "$as_me:5583: result: $ac_cv_lib_dld_shl_load" >&5
5584 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5585 if test $ac_cv_lib_dld_shl_load = yes; then
5586 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5588 echo "$as_me:5588: checking for dlopen" >&5
5589 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5590 if test "${ac_cv_func_dlopen+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 cat >conftest.$ac_ext <<_ACEOF
5594 #line 5594 "configure"
5595 #include "confdefs.h"
5596 /* System header to define __stub macros and hopefully few prototypes,
5597 which can conflict with char dlopen (); below. */
5599 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5611 /* The GNU C library defines this for functions which it implements
5612 to always fail with ENOSYS. Some functions are actually named
5613 something starting with __ and the normal name is an alias. */
5614 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:5625: \"$ac_link\"") >&5
5626 (eval $ac_link) 2>&5
5628 echo "$as_me:5628: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try='test -s conftest$ac_exeext'
5631 { (eval echo "$as_me:5631: \"$ac_try\"") >&5
5634 echo "$as_me:5634: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_cv_func_dlopen=yes
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 ac_cv_func_dlopen=no
5642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5644 echo "$as_me:5644: result: $ac_cv_func_dlopen" >&5
5645 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5646 if test $ac_cv_func_dlopen = yes; then
5647 lt_cv_dlopen="dlopen"
5649 echo "$as_me:5649: checking for dlopen in -ldl" >&5
5650 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_check_lib_save_LIBS=$LIBS
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line 5657 "configure"
5658 #include "confdefs.h"
5660 /* Override any gcc2 internal prototype to avoid an error. */
5664 /* We use char because int might match the return type of a gcc2
5665 builtin and then its argument prototype would still apply. */
5675 rm -f conftest.$ac_objext conftest$ac_exeext
5676 if { (eval echo "$as_me:5676: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>&5
5679 echo "$as_me:5679: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -s conftest$ac_exeext'
5682 { (eval echo "$as_me:5682: \"$ac_try\"") >&5
5685 echo "$as_me:5685: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_lib_dl_dlopen=yes
5689 echo "$as_me: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5691 ac_cv_lib_dl_dlopen=no
5693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5694 LIBS=$ac_check_lib_save_LIBS
5696 echo "$as_me:5696: result: $ac_cv_lib_dl_dlopen" >&5
5697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5698 if test $ac_cv_lib_dl_dlopen = yes; then
5699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5701 echo "$as_me:5701: checking for dlopen in -lsvld" >&5
5702 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5703 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 ac_check_lib_save_LIBS=$LIBS
5708 cat >conftest.$ac_ext <<_ACEOF
5709 #line 5709 "configure"
5710 #include "confdefs.h"
5712 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:5728: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>&5
5731 echo "$as_me:5731: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:5734: \"$ac_try\"") >&5
5737 echo "$as_me:5737: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_lib_svld_dlopen=yes
5741 echo "$as_me: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5743 ac_cv_lib_svld_dlopen=no
5745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5746 LIBS=$ac_check_lib_save_LIBS
5748 echo "$as_me:5748: result: $ac_cv_lib_svld_dlopen" >&5
5749 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5750 if test $ac_cv_lib_svld_dlopen = yes; then
5751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5753 echo "$as_me:5753: checking for dld_link in -ldld" >&5
5754 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_check_lib_save_LIBS=$LIBS
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line 5761 "configure"
5762 #include "confdefs.h"
5764 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:5780: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5783 echo "$as_me:5783: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:5786: \"$ac_try\"") >&5
5789 echo "$as_me:5789: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_lib_dld_dld_link=yes
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 ac_cv_lib_dld_dld_link=no
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5800 echo "$as_me:5800: result: $ac_cv_lib_dld_dld_link" >&5
5801 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5802 if test $ac_cv_lib_dld_dld_link = yes; then
5803 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5819 if test "x$lt_cv_dlopen" != xno; then
5825 case $lt_cv_dlopen in
5827 save_CPPFLAGS="$CPPFLAGS"
5828 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5830 save_LDFLAGS="$LDFLAGS"
5831 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5834 LIBS="$lt_cv_dlopen_libs $LIBS"
5836 echo "$as_me:5836: checking whether a program can dlopen itself" >&5
5837 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5838 if test "${lt_cv_dlopen_self+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 if test "$cross_compiling" = yes; then :
5842 lt_cv_dlopen_self=cross
5844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5845 lt_status=$lt_dlunknown
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5847 "configure"
5848 #include "confdefs.h"
5857 # define LT_DLGLOBAL RTLD_GLOBAL
5860 # define LT_DLGLOBAL DL_GLOBAL
5862 # define LT_DLGLOBAL 0
5866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5867 find out it does not work in some platform. */
5868 #ifndef LT_DLLAZY_OR_NOW
5870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5873 # define LT_DLLAZY_OR_NOW DL_LAZY
5876 # define LT_DLLAZY_OR_NOW RTLD_NOW
5879 # define LT_DLLAZY_OR_NOW DL_NOW
5881 # define LT_DLLAZY_OR_NOW 0
5889 extern "C" void exit (int);
5892 void fnord() { int i=42;}
5895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5896 int status = $lt_dlunknown;
5900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5901 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5902 /* dlclose (self); */
5908 if { (eval echo "$as_me:5908: \"$ac_link\"") >&5
5909 (eval $ac_link) 2>&5
5911 echo "$as_me:5911: \$? = $ac_status" >&5
5912 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5913 (./conftest; exit; ) 2>/dev/null
5916 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5917 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5918 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5921 # compilation failed
5922 lt_cv_dlopen_self=no
5928 echo "$as_me:5928: result: $lt_cv_dlopen_self" >&5
5929 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5931 if test "x$lt_cv_dlopen_self" = xyes; then
5932 LDFLAGS="$LDFLAGS $link_static_flag"
5933 echo "$as_me:5933: checking whether a statically linked program can dlopen itself" >&5
5934 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5935 if test "${lt_cv_dlopen_self_static+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test "$cross_compiling" = yes; then :
5939 lt_cv_dlopen_self_static=cross
5941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5942 lt_status=$lt_dlunknown
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5944 "configure"
5945 #include "confdefs.h"
5954 # define LT_DLGLOBAL RTLD_GLOBAL
5957 # define LT_DLGLOBAL DL_GLOBAL
5959 # define LT_DLGLOBAL 0
5963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5964 find out it does not work in some platform. */
5965 #ifndef LT_DLLAZY_OR_NOW
5967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5970 # define LT_DLLAZY_OR_NOW DL_LAZY
5973 # define LT_DLLAZY_OR_NOW RTLD_NOW
5976 # define LT_DLLAZY_OR_NOW DL_NOW
5978 # define LT_DLLAZY_OR_NOW 0
5986 extern "C" void exit (int);
5989 void fnord() { int i=42;}
5992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5993 int status = $lt_dlunknown;
5997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5998 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5999 /* dlclose (self); */
6005 if { (eval echo "$as_me:6005: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6008 echo "$as_me:6008: \$? = $ac_status" >&5
6009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6010 (./conftest; exit; ) 2>/dev/null
6013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6015 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6018 # compilation failed
6019 lt_cv_dlopen_self_static=no
6025 echo "$as_me:6025: result: $lt_cv_dlopen_self_static" >&5
6026 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6029 CPPFLAGS="$save_CPPFLAGS"
6030 LDFLAGS="$save_LDFLAGS"
6035 case $lt_cv_dlopen_self in
6036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6037 *) enable_dlopen_self=unknown ;;
6040 case $lt_cv_dlopen_self_static in
6041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6042 *) enable_dlopen_self_static=unknown ;;
6046 if test "$enable_shared" = yes && test "$GCC" = yes; then
6047 case $archive_cmds in
6049 # FIXME: we may have to deal with multi-command sequences.
6052 # Test whether the compiler implicitly links with -lc since on some
6053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6054 # to ld, don't add -lc before -lgcc.
6055 echo "$as_me:6055: checking whether -lc should be explicitly linked in" >&5
6056 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6057 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 echo 'static int dummy;' > conftest.$ac_ext
6063 if { (eval echo "$as_me:6063: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>&5
6066 echo "$as_me:6066: \$? = $ac_status" >&5
6067 (exit $ac_status); }; then
6070 libobjs=conftest.$ac_objext
6072 wl=$lt_cv_prog_cc_wl
6078 save_allow_undefined_flag=$allow_undefined_flag
6079 allow_undefined_flag=
6080 if { (eval echo "$as_me:6080: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6081 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6083 echo "$as_me:6083: \$? = $ac_status" >&5
6084 (exit $ac_status); }
6086 lt_cv_archive_cmds_need_lc=no
6088 lt_cv_archive_cmds_need_lc=yes
6090 allow_undefined_flag=$save_allow_undefined_flag
6092 cat conftest.err 1>&5
6096 echo "$as_me:6096: result: $lt_cv_archive_cmds_need_lc" >&5
6097 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6101 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6103 # The second clause should only fire when bootstrapping the
6104 # libtool distribution, otherwise you forgot to ship ltmain.sh
6105 # with your package, and you will get complaints that there are
6106 # no rules to generate ltmain.sh.
6107 if test -f "$ltmain"; then
6110 # If there is no Makefile yet, we rely on a make rule to execute
6111 # `config.status --recheck' to rerun these tests and create the
6112 # libtool script then.
6113 test -f Makefile && make "$ltmain"
6116 if test -f "$ltmain"; then
6117 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6120 echo creating $ofile
6122 # Now quote all the things that may contain metacharacters while being
6123 # careful not to overquote the AC_SUBSTed values. We take copies of the
6124 # variables and quote the copies for generation of the libtool script.
6125 for var in echo old_CC old_CFLAGS \
6126 AR AR_FLAGS CC LD LN_S NM SHELL \
6127 reload_flag reload_cmds wl \
6128 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6129 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6130 library_names_spec soname_spec \
6131 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6132 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6133 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6134 old_striplib striplib file_magic_cmd export_symbols_cmds \
6135 deplibs_check_method allow_undefined_flag no_undefined_flag \
6136 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6137 global_symbol_to_c_name_address \
6138 hardcode_libdir_flag_spec hardcode_libdir_separator \
6139 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6140 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6143 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6144 old_postinstall_cmds | old_postuninstall_cmds | \
6145 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6146 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6147 postinstall_cmds | postuninstall_cmds | \
6148 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6149 # Double-quote double-evaled strings.
6150 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6158 cat <<__EOF__ > "${ofile}T"
6161 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6162 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6163 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6165 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6166 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6168 # This program is free software; you can redistribute it and/or modify
6169 # it under the terms of the GNU General Public License as published by
6170 # the Free Software Foundation; either version 2 of the License, or
6171 # (at your option) any later version.
6173 # This program is distributed in the hope that it will be useful, but
6174 # WITHOUT ANY WARRANTY; without even the implied warranty of
6175 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6176 # General Public License for more details.
6178 # You should have received a copy of the GNU General Public License
6179 # along with this program; if not, write to the Free Software
6180 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6182 # As a special exception to the GNU General Public License, if you
6183 # distribute this file as part of a program that contains a
6184 # configuration script generated by Autoconf, you may include it under
6185 # the same distribution terms that you use for the rest of that program.
6187 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6188 Xsed="sed -e s/^X//"
6190 # The HP-UX ksh and POSIX shell print the target directory to stdout
6192 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6194 # ### BEGIN LIBTOOL CONFIG
6196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6198 # Shell to use when invoking shell scripts.
6201 # Whether or not to build shared libraries.
6202 build_libtool_libs=$enable_shared
6204 # Whether or not to build static libraries.
6205 build_old_libs=$enable_static
6207 # Whether or not to add -lc for building shared libraries.
6208 build_libtool_need_lc=$need_lc
6210 # Whether or not to optimize for fast installation.
6211 fast_install=$enable_fast_install
6214 host_alias=$host_alias
6217 # An echo program that does not interpret backslashes.
6222 AR_FLAGS=$lt_AR_FLAGS
6224 # The default C compiler.
6227 # Is the compiler the GNU C compiler?
6230 # The linker used to build libraries.
6233 # Whether we need hard or soft links.
6236 # A BSD-compatible nm program.
6239 # A symbol stripping program
6242 # Used to examine libraries when file_magic_cmd begins "file"
6243 MAGIC_CMD=$MAGIC_CMD
6245 # Used on cygwin: DLL creation program.
6248 # Used on cygwin: object dumper.
6251 # Used on cygwin: assembler.
6254 # The name of the directory that contains temporary libtool files.
6257 # How to create reloadable object files.
6258 reload_flag=$lt_reload_flag
6259 reload_cmds=$lt_reload_cmds
6261 # How to pass a linker flag through the compiler.
6264 # Object file suffix (normally "o").
6267 # Old archive suffix (normally "a").
6270 # Executable file suffix (normally "").
6273 # Additional compiler flags for building library objects.
6274 pic_flag=$lt_pic_flag
6277 # Does compiler simultaneously support -c and -o options?
6278 compiler_c_o=$lt_compiler_c_o
6280 # Can we write directly to a .lo ?
6281 compiler_o_lo=$lt_compiler_o_lo
6283 # Must we lock files when doing compilation ?
6284 need_locks=$lt_need_locks
6286 # Do we need the lib prefix for modules?
6287 need_lib_prefix=$need_lib_prefix
6289 # Do we need a version for libraries?
6290 need_version=$need_version
6292 # Whether dlopen is supported.
6293 dlopen_support=$enable_dlopen
6295 # Whether dlopen of programs is supported.
6296 dlopen_self=$enable_dlopen_self
6298 # Whether dlopen of statically linked programs is supported.
6299 dlopen_self_static=$enable_dlopen_self_static
6301 # Compiler flag to prevent dynamic linking.
6302 link_static_flag=$lt_link_static_flag
6304 # Compiler flag to turn off builtin functions.
6305 no_builtin_flag=$lt_no_builtin_flag
6307 # Compiler flag to allow reflexive dlopens.
6308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6310 # Compiler flag to generate shared objects directly from archives.
6311 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6313 # Compiler flag to generate thread-safe objects.
6314 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6316 # Library versioning type.
6317 version_type=$version_type
6319 # Format of library name prefix.
6320 libname_spec=$lt_libname_spec
6322 # List of archive names. First name is the real one, the rest are links.
6323 # The last name is the one that the linker finds with -lNAME.
6324 library_names_spec=$lt_library_names_spec
6326 # The coded name of the library, if different from the real name.
6327 soname_spec=$lt_soname_spec
6329 # Commands used to build and install an old-style archive.
6331 old_archive_cmds=$lt_old_archive_cmds
6332 old_postinstall_cmds=$lt_old_postinstall_cmds
6333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6335 # Create an old-style archive from a shared archive.
6336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6338 # Create a temporary old-style archive to link instead of a shared archive.
6339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6341 # Commands used to build and install a shared archive.
6342 archive_cmds=$lt_archive_cmds
6343 archive_expsym_cmds=$lt_archive_expsym_cmds
6344 postinstall_cmds=$lt_postinstall_cmds
6345 postuninstall_cmds=$lt_postuninstall_cmds
6347 # Commands to strip libraries.
6348 old_striplib=$lt_old_striplib
6349 striplib=$lt_striplib
6351 # Method to check whether dependent libraries are shared objects.
6352 deplibs_check_method=$lt_deplibs_check_method
6354 # Command to use when deplibs_check_method == file_magic.
6355 file_magic_cmd=$lt_file_magic_cmd
6357 # Flag that allows shared libraries with undefined symbols to be built.
6358 allow_undefined_flag=$lt_allow_undefined_flag
6360 # Flag that forces no undefined symbols.
6361 no_undefined_flag=$lt_no_undefined_flag
6363 # Commands used to finish a libtool library installation in a directory.
6364 finish_cmds=$lt_finish_cmds
6366 # Same as above, but a single script fragment to be evaled but not shown.
6367 finish_eval=$lt_finish_eval
6369 # Take the output of nm and produce a listing of raw symbols and C names.
6370 global_symbol_pipe=$lt_global_symbol_pipe
6372 # Transform the output of nm in a proper C declaration
6373 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6375 # Transform the output of nm in a C name address pair
6376 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6378 # This is the shared library runtime path variable.
6379 runpath_var=$runpath_var
6381 # This is the shared library path variable.
6382 shlibpath_var=$shlibpath_var
6384 # Is shlibpath searched before the hard-coded library search path?
6385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6387 # How to hardcode a shared library path into an executable.
6388 hardcode_action=$hardcode_action
6390 # Whether we should hardcode library paths into libraries.
6391 hardcode_into_libs=$hardcode_into_libs
6393 # Flag to hardcode \$libdir into a binary during linking.
6394 # This must work even if \$libdir does not exist.
6395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6397 # Whether we need a single -rpath flag with a separated argument.
6398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6400 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6402 hardcode_direct=$hardcode_direct
6404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6406 hardcode_minus_L=$hardcode_minus_L
6408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6409 # the resulting binary.
6410 hardcode_shlibpath_var=$hardcode_shlibpath_var
6412 # Variables whose values should be saved in libtool wrapper scripts and
6413 # restored at relink time.
6414 variables_saved_for_relink="$variables_saved_for_relink"
6416 # Whether libtool must link a program against all its dependency libraries.
6417 link_all_deplibs=$link_all_deplibs
6419 # Compile-time system search path for libraries
6420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6422 # Run-time system search path for libraries
6423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6425 # Fix the shell variable \$srcfile for the compiler.
6426 fix_srcfile_path="$fix_srcfile_path"
6428 # Set to yes if exported symbols are required.
6429 always_export_symbols=$always_export_symbols
6431 # The commands to list exported symbols.
6432 export_symbols_cmds=$lt_export_symbols_cmds
6434 # The commands to extract the exported symbol list from a shared archive.
6435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6437 # Symbols that should not be listed in the preloaded symbols.
6438 exclude_expsyms=$lt_exclude_expsyms
6440 # Symbols that must always be exported.
6441 include_expsyms=$lt_include_expsyms
6443 # ### END LIBTOOL CONFIG
6449 cat <<\EOF >> "${ofile}T"
6451 # AIX sometimes has problems with the GCC collect2 program. For some
6452 # reason, if we set the COLLECT_NAMES environment variable, the problems
6453 # vanish in a puff of smoke.
6454 if test "X${COLLECT_NAMES+set}" != Xset; then
6456 export COLLECT_NAMES
6463 cygwin* | mingw* | pw32* | os2*)
6464 cat <<'EOF' >> "${ofile}T"
6465 # This is a source program that is used to create dlls on Windows
6466 # Don't remove nor modify the starting and closing comments
6467 # /* ltdll.c starts here */
6468 # #define WIN32_LEAN_AND_MEAN
6469 # #include <windows.h>
6470 # #undef WIN32_LEAN_AND_MEAN
6471 # #include <stdio.h>
6473 # #ifndef __CYGWIN__
6474 # # ifdef __CYGWIN32__
6475 # # define __CYGWIN__ __CYGWIN32__
6479 # #ifdef __cplusplus
6482 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6483 # #ifdef __cplusplus
6488 # #include <cygwin/cygwin_dll.h>
6489 # DECLARE_CYGWIN_DLL( DllMain );
6491 # HINSTANCE __hDllInstance_base;
6494 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6496 # __hDllInstance_base = hInst;
6499 # /* ltdll.c ends here */
6500 # This is a source program that is used to create import libraries
6501 # on Windows for dlls which lack them. Don't remove nor modify the
6502 # starting and closing comments
6503 # /* impgen.c starts here */
6504 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6506 # This file is part of GNU libtool.
6508 # This program is free software; you can redistribute it and/or modify
6509 # it under the terms of the GNU General Public License as published by
6510 # the Free Software Foundation; either version 2 of the License, or
6511 # (at your option) any later version.
6513 # This program is distributed in the hope that it will be useful,
6514 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6515 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6516 # GNU General Public License for more details.
6518 # You should have received a copy of the GNU General Public License
6519 # along with this program; if not, write to the Free Software
6520 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6523 # #include <stdio.h> /* for printf() */
6524 # #include <unistd.h> /* for open(), lseek(), read() */
6525 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6526 # #include <string.h> /* for strdup() */
6528 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6530 # #define O_BINARY 0
6533 # static unsigned int
6534 # pe_get16 (fd, offset)
6538 # unsigned char b[2];
6539 # lseek (fd, offset, SEEK_SET);
6541 # return b[0] + (b[1]<<8);
6544 # static unsigned int
6545 # pe_get32 (fd, offset)
6549 # unsigned char b[4];
6550 # lseek (fd, offset, SEEK_SET);
6552 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6555 # static unsigned int
6559 # unsigned char *b = ptr;
6560 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6569 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6570 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6571 # unsigned long name_rvas, nexp;
6572 # unsigned char *expdata, *erva;
6573 # char *filename, *dll_name;
6575 # filename = argv[1];
6577 # dll = open(filename, O_RDONLY|O_BINARY);
6581 # dll_name = filename;
6583 # for (i=0; filename[i]; i++)
6584 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6585 # dll_name = filename + i +1;
6587 # pe_header_offset = pe_get32 (dll, 0x3c);
6588 # opthdr_ofs = pe_header_offset + 4 + 20;
6589 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6591 # if (num_entries < 1) /* no exports */
6594 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6595 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6596 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6597 # secptr = (pe_header_offset + 4 + 20 +
6598 # pe_get16 (dll, pe_header_offset + 4 + 16));
6601 # for (i = 0; i < nsections; i++)
6604 # unsigned long secptr1 = secptr + 40 * i;
6605 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6606 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6607 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6608 # lseek(dll, secptr1, SEEK_SET);
6609 # read(dll, sname, 8);
6610 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6612 # expptr = fptr + (export_rva - vaddr);
6613 # if (export_rva + export_size > vaddr + vsize)
6614 # export_size = vsize - (export_rva - vaddr);
6619 # expdata = (unsigned char*)malloc(export_size);
6620 # lseek (dll, expptr, SEEK_SET);
6621 # read (dll, expdata, export_size);
6622 # erva = expdata - export_rva;
6624 # nexp = pe_as32 (expdata+24);
6625 # name_rvas = pe_as32 (expdata+32);
6627 # printf ("EXPORTS\n");
6628 # for (i = 0; i<nexp; i++)
6630 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6631 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6636 # /* impgen.c ends here */
6642 # We use sed instead of cat because bash on DJGPP gets confused if
6643 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6644 # text mode, it properly converts lines to CR/LF. This bash problem
6645 # is reportedly fixed, but why not run on old versions too?
6646 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6648 mv -f "${ofile}T" "$ofile" || \
6649 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6653 # This can be used to rebuild libtool when needed
6654 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6656 # Always use our own libtool.
6657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6659 # Prevent multiple expansion
6663 if test -z "$PKG_CONFIG"; then
6664 # Extract the first word of "pkg-config", so it can be a program name with args.
6665 set dummy pkg-config; ac_word=$2
6666 echo "$as_me:6666: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6676 ac_save_IFS=$IFS; IFS=$ac_path_separator
6678 for ac_dir in $ac_dummy; do
6680 test -z "$ac_dir" && ac_dir=.
6681 if $as_executable_p "$ac_dir/$ac_word"; then
6682 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6683 echo "$as_me:6683: found $ac_dir/$ac_word" >&5
6688 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6692 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6694 if test -n "$PKG_CONFIG"; then
6695 echo "$as_me:6695: result: $PKG_CONFIG" >&5
6696 echo "${ECHO_T}$PKG_CONFIG" >&6
6698 echo "$as_me:6698: result: no" >&5
6699 echo "${ECHO_T}no" >&6
6704 if test "$PKG_CONFIG" = "no" ; then
6705 echo "*** The pkg-config script could not be found. Make sure it is"
6706 echo "*** in your path, or set the PKG_CONFIG environment variable"
6707 echo "*** to the full path to pkg-config."
6708 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6710 PKG_CONFIG_MIN_VERSION=0.9.0
6711 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6712 echo "$as_me:6712: checking for libt2n = 0.1" >&5
6713 echo $ECHO_N "checking for libt2n = 0.1... $ECHO_C" >&6
6715 if $PKG_CONFIG --exists "libt2n = 0.1" ; then
6716 echo "$as_me:6716: result: yes" >&5
6717 echo "${ECHO_T}yes" >&6
6720 echo "$as_me:6720: checking LIBT2N_CFLAGS" >&5
6721 echo $ECHO_N "checking LIBT2N_CFLAGS... $ECHO_C" >&6
6722 LIBT2N_CFLAGS=`$PKG_CONFIG --cflags "libt2n = 0.1"`
6723 echo "$as_me:6723: result: $LIBT2N_CFLAGS" >&5
6724 echo "${ECHO_T}$LIBT2N_CFLAGS" >&6
6726 echo "$as_me:6726: checking LIBT2N_LIBS" >&5
6727 echo $ECHO_N "checking LIBT2N_LIBS... $ECHO_C" >&6
6728 LIBT2N_LIBS=`$PKG_CONFIG --libs "libt2n = 0.1"`
6729 echo "$as_me:6729: result: $LIBT2N_LIBS" >&5
6730 echo "${ECHO_T}$LIBT2N_LIBS" >&6
6734 ## If we have a custom action on failure, don't print errors, but
6735 ## do set a variable so people can do so.
6736 LIBT2N_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libt2n = 0.1"`
6737 echo $LIBT2N_PKG_ERRORS
6741 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6742 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6746 if test $succeeded = yes; then
6749 { { echo "$as_me:6749: error: Library requirements (libt2n = 0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
6750 echo "$as_me: error: Library requirements (libt2n = 0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
6751 { (exit 1); exit 1; }; }
6754 LIBT2N_CODEGEN=`$PKG_CONFIG --variable libt2n_codegen libt2n`
6755 LIBT2N_DATADIR=`$PKG_CONFIG --variable libt2n_datadir libt2n`
6756 LIBT2N_CLIENT_PCTEMPLATE="$LIBT2N_DATADIR/clientlib.pc.in"
6758 ac_config_files="$ac_config_files Makefile"
6759 cat >confcache <<\_ACEOF
6760 # This file is a shell script that caches the results of configure
6761 # tests run on this system so they can be shared between configure
6762 # scripts and configure runs, see configure's option --config-cache.
6763 # It is not useful on other systems. If it contains results you don't
6764 # want to keep, you may remove or edit it.
6766 # config.status only pays attention to the cache file if you give it
6767 # the --recheck option to rerun configure.
6769 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6775 # The following way of writing the cache mishandles newlines in values,
6776 # but we know of no workaround that is simple, portable, and efficient.
6777 # So, don't put newlines in cache variables' values.
6778 # Ultrix sh set writes to stderr and can't be redirected directly,
6779 # and sets the high bit in the cache file unless we assign to the vars.
6782 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6784 # `set' does not quote correctly, so add quotes (double-quote
6785 # substitution turns \\\\ into \\, and sed turns \\ into \).
6788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6791 # `set' quotes correctly as required by POSIX, so do not add quotes.
6793 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6800 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6802 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6804 if cmp -s $cache_file confcache; then :; else
6805 if test -w $cache_file; then
6806 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6807 cat confcache >$cache_file
6809 echo "not updating unwritable cache $cache_file"
6814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6815 # Let make expand exec_prefix.
6816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6818 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6819 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6820 # trailing colons and then remove the whole line if VPATH becomes empty
6821 # (actually we leave an empty line to preserve line numbers).
6822 if test "x$srcdir" = x.; then
6823 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6824 s/:*\$(srcdir):*/:/;
6825 s/:*\${srcdir}:*/:/;
6827 s/^\([^=]*=[ ]*\):*/\1/;
6833 # Transform confdefs.h into DEFS.
6834 # Protect against shell expansion while executing Makefile rules.
6835 # Protect against Makefile macro expansion.
6837 # If the first sed substitution is executed (which looks for macros that
6838 # take arguments), then we branch to the quote section. Otherwise,
6839 # look for a macro that doesn't take arguments.
6840 cat >confdef2opt.sed <<\EOF
6843 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6845 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6849 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6855 # We use echo to avoid assuming a particular line-breaking character.
6856 # The extra dot is to prevent the shell from consuming trailing
6857 # line-breaks from the sub-command output. A line-break within
6858 # single-quotes doesn't work because, if this script is created in a
6859 # platform that uses two characters for line-breaks (e.g., DOS), tr
6861 ac_LF_and_DOT=`echo; echo .`
6862 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6863 rm -f confdef2opt.sed
6865 : ${CONFIG_STATUS=./config.status}
6866 ac_clean_files_save=$ac_clean_files
6867 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6868 { echo "$as_me:6868: creating $CONFIG_STATUS" >&5
6869 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6870 cat >$CONFIG_STATUS <<_ACEOF
6872 # Generated automatically by configure.
6873 # Run this file to recreate the current configuration.
6874 # Compiler output produced by configure, useful for debugging
6875 # configure, is in config.log if it exists.
6878 SHELL=\${CONFIG_SHELL-$SHELL}
6879 ac_cs_invocation="\$0 \$@"
6883 cat >>$CONFIG_STATUS <<\_ACEOF
6884 # Be Bourne compatible
6885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6888 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6892 # Name of the executable.
6893 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6895 if expr a : '\(a\)' >/dev/null 2>&1; then
6901 rm -f conf$$ conf$$.exe conf$$.file
6903 if ln -s conf$$.file conf$$ 2>/dev/null; then
6904 # We could just check for DJGPP; but this test a) works b) is more generic
6905 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6906 if test -f conf$$.exe; then
6907 # Don't use ln at all; we don't have any links
6912 elif ln conf$$.file conf$$ 2>/dev/null; then
6917 rm -f conf$$ conf$$.exe conf$$.file
6919 as_executable_p="test -f"
6921 # Support unset when possible.
6922 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6929 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6930 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6931 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6932 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6933 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6934 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6935 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6936 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6939 # We need space, tab and new line, in precisely that order.
6945 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6951 # Files that config.status was made for.
6952 if test -n "$ac_config_files"; then
6953 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6956 if test -n "$ac_config_headers"; then
6957 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6960 if test -n "$ac_config_links"; then
6961 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6964 if test -n "$ac_config_commands"; then
6965 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6968 cat >>$CONFIG_STATUS <<\EOF
6971 \`$as_me' instantiates files from templates according to the
6972 current configuration.
6974 Usage: $0 [OPTIONS] [FILE]...
6976 -h, --help print this help, then exit
6977 -V, --version print version number, then exit
6978 -d, --debug don't remove temporary files
6979 --recheck update $as_me by reconfiguring in the same conditions
6980 --file=FILE[:TEMPLATE]
6981 instantiate the configuration file FILE
6983 Configuration files:
6986 Report bugs to <bug-autoconf@gnu.org>."
6989 cat >>$CONFIG_STATUS <<EOF
6992 configured by $0, generated by GNU Autoconf 2.52,
6993 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6995 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6996 Free Software Foundation, Inc.
6997 This config.status script is free software; the Free Software Foundation
6998 gives unlimited permission to copy, distribute and modify it."
7003 cat >>$CONFIG_STATUS <<\EOF
7004 # If no file are specified by the user, then we need to provide default
7005 # value. By we need to know if files were specified by the user.
7011 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7012 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7014 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7018 *) # This is not an option, so the user has probably given explicit
7020 ac_need_defaults=false;;
7024 # Handling of the options.
7026 cat >>$CONFIG_STATUS <<EOF
7027 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7028 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7029 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7031 cat >>$CONFIG_STATUS <<\EOF
7032 --version | --vers* | -V )
7033 echo "$ac_cs_version"; exit 0 ;;
7035 # Conflict between --help and --header
7036 { { echo "$as_me:7036: error: ambiguous option: $1
7037 Try \`$0 --help' for more information." >&5
7038 echo "$as_me: error: ambiguous option: $1
7039 Try \`$0 --help' for more information." >&2;}
7040 { (exit 1); exit 1; }; };;
7041 --help | --hel | -h )
7042 echo "$ac_cs_usage"; exit 0 ;;
7043 --debug | --d* | -d )
7045 --file | --fil | --fi | --f )
7047 CONFIG_FILES="$CONFIG_FILES $1"
7048 ac_need_defaults=false;;
7049 --header | --heade | --head | --hea )
7051 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7052 ac_need_defaults=false;;
7055 -*) { { echo "$as_me:7055: error: unrecognized option: $1
7056 Try \`$0 --help' for more information." >&5
7057 echo "$as_me: error: unrecognized option: $1
7058 Try \`$0 --help' for more information." >&2;}
7059 { (exit 1); exit 1; }; } ;;
7061 *) ac_config_targets="$ac_config_targets $1" ;;
7070 ## ----------------------- ##
7071 ## Running config.status. ##
7072 ## ----------------------- ##
7074 This file was extended by $as_me 2.52, executed with
7075 CONFIG_FILES = $CONFIG_FILES
7076 CONFIG_HEADERS = $CONFIG_HEADERS
7077 CONFIG_LINKS = $CONFIG_LINKS
7078 CONFIG_COMMANDS = $CONFIG_COMMANDS
7080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7085 cat >>$CONFIG_STATUS <<\EOF
7086 for ac_config_target in $ac_config_targets
7088 case "$ac_config_target" in
7089 # Handling of arguments.
7090 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7091 *) { { echo "$as_me:7091: error: invalid argument: $ac_config_target" >&5
7092 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7093 { (exit 1); exit 1; }; };;
7097 # If the user did not use the arguments to specify the items to instantiate,
7098 # then the envvar interface is used. Set only those that are not.
7099 # We use the long form for the default assignment because of an extremely
7100 # bizarre bug on SunOS 4.1.3.
7101 if $ac_need_defaults; then
7102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7105 # Create a temporary directory, and hook for its removal unless debugging.
7108 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7109 trap '{ (exit 1); exit 1; }' 1 2 13 15
7112 # Create a (secure) tmp directory for tmp files.
7115 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7116 test -n "$tmp" && test -d "$tmp"
7119 tmp=$TMPDIR/cs$$-$RANDOM
7120 (umask 077 && mkdir $tmp)
7123 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7124 { (exit 1); exit 1; }
7129 cat >>$CONFIG_STATUS <<EOF
7132 # CONFIG_FILES section.
7135 # No need to generate the scripts if there are no CONFIG_FILES.
7136 # This happens for instance when ./config.status config.h
7137 if test -n "\$CONFIG_FILES"; then
7138 # Protect against being on the right side of a sed subst in config.status.
7139 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7140 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7141 s,@SHELL@,$SHELL,;t t
7142 s,@exec_prefix@,$exec_prefix,;t t
7143 s,@prefix@,$prefix,;t t
7144 s,@program_transform_name@,$program_transform_name,;t t
7145 s,@bindir@,$bindir,;t t
7146 s,@sbindir@,$sbindir,;t t
7147 s,@libexecdir@,$libexecdir,;t t
7148 s,@datadir@,$datadir,;t t
7149 s,@sysconfdir@,$sysconfdir,;t t
7150 s,@sharedstatedir@,$sharedstatedir,;t t
7151 s,@localstatedir@,$localstatedir,;t t
7152 s,@libdir@,$libdir,;t t
7153 s,@includedir@,$includedir,;t t
7154 s,@oldincludedir@,$oldincludedir,;t t
7155 s,@infodir@,$infodir,;t t
7156 s,@mandir@,$mandir,;t t
7157 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7158 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7159 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7160 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7161 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7162 s,@build_alias@,$build_alias,;t t
7163 s,@host_alias@,$host_alias,;t t
7164 s,@target_alias@,$target_alias,;t t
7165 s,@ECHO_C@,$ECHO_C,;t t
7166 s,@ECHO_N@,$ECHO_N,;t t
7167 s,@ECHO_T@,$ECHO_T,;t t
7168 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7171 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7172 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7173 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7174 s,@PACKAGE@,$PACKAGE,;t t
7175 s,@VERSION@,$VERSION,;t t
7176 s,@ACLOCAL@,$ACLOCAL,;t t
7177 s,@AUTOCONF@,$AUTOCONF,;t t
7178 s,@AUTOMAKE@,$AUTOMAKE,;t t
7179 s,@AUTOHEADER@,$AUTOHEADER,;t t
7180 s,@MAKEINFO@,$MAKEINFO,;t t
7181 s,@SET_MAKE@,$SET_MAKE,;t t
7183 s,@CXXFLAGS@,$CXXFLAGS,;t t
7184 s,@LDFLAGS@,$LDFLAGS,;t t
7185 s,@CPPFLAGS@,$CPPFLAGS,;t t
7186 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7187 s,@EXEEXT@,$EXEEXT,;t t
7188 s,@OBJEXT@,$OBJEXT,;t t
7189 s,@build@,$build,;t t
7190 s,@build_cpu@,$build_cpu,;t t
7191 s,@build_vendor@,$build_vendor,;t t
7192 s,@build_os@,$build_os,;t t
7194 s,@host_cpu@,$host_cpu,;t t
7195 s,@host_vendor@,$host_vendor,;t t
7196 s,@host_os@,$host_os,;t t
7198 s,@CFLAGS@,$CFLAGS,;t t
7199 s,@ac_ct_CC@,$ac_ct_CC,;t t
7202 s,@RANLIB@,$RANLIB,;t t
7203 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7204 s,@STRIP@,$STRIP,;t t
7205 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7206 s,@CXXCPP@,$CXXCPP,;t t
7207 s,@LIBTOOL@,$LIBTOOL,;t t
7208 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
7209 s,@LIBT2N_CFLAGS@,$LIBT2N_CFLAGS,;t t
7210 s,@LIBT2N_LIBS@,$LIBT2N_LIBS,;t t
7211 s,@LIBT2N_CODEGEN@,$LIBT2N_CODEGEN,;t t
7212 s,@LIBT2N_CLIENT_PCTEMPLATE@,$LIBT2N_CLIENT_PCTEMPLATE,;t t
7217 cat >>$CONFIG_STATUS <<\EOF
7218 # Split the substitutions into bite-sized pieces for seds with
7219 # small command number limits, like on Digital OSF/1 and HP-UX.
7221 ac_sed_frag=1 # Number of current file.
7222 ac_beg=1 # First line for current file.
7223 ac_end=$ac_max_sed_lines # Line after last line for current file.
7226 while $ac_more_lines; do
7227 if test $ac_beg -gt 1; then
7228 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7230 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7232 if test ! -s $tmp/subs.frag; then
7235 # The purpose of the label and of the branching condition is to
7236 # speed up the sed processing (if there are no `@' at all, there
7237 # is no need to browse any of the substitutions).
7238 # These are the two extra sed commands mentioned above.
7240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7241 if test -z "$ac_sed_cmds"; then
7242 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7244 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7246 ac_sed_frag=`expr $ac_sed_frag + 1`
7248 ac_end=`expr $ac_end + $ac_max_sed_lines`
7251 if test -z "$ac_sed_cmds"; then
7254 fi # test -n "$CONFIG_FILES"
7257 cat >>$CONFIG_STATUS <<\EOF
7258 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7261 - | *:- | *:-:* ) # input from stdin
7263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7267 * ) ac_file_in=$ac_file.in ;;
7270 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7271 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7272 X"$ac_file" : 'X\(//\)[^/]' \| \
7273 X"$ac_file" : 'X\(//\)$' \| \
7274 X"$ac_file" : 'X\(/\)' \| \
7275 . : '\(.\)' 2>/dev/null ||
7277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7279 /^X\(\/\/\)$/{ s//\1/; q; }
7280 /^X\(\/\).*/{ s//\1/; q; }
7282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7284 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7288 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7289 case $as_mkdir_dir in
7290 # Skip DOS drivespec
7291 ?:) as_incr_dir=$as_mkdir_dir ;;
7293 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7294 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7299 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7300 # A "../" for each directory in $ac_dir_suffix.
7301 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7303 ac_dir_suffix= ac_dots=
7308 if test -z "$ac_dots"; then
7311 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7314 ac_srcdir=$srcdir$ac_dir_suffix;
7315 ac_top_srcdir=$srcdir ;;
7317 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7318 ac_top_srcdir=$ac_dots$srcdir ;;
7322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7323 *) ac_INSTALL=$ac_dots$INSTALL ;;
7326 if test x"$ac_file" != x-; then
7327 { echo "$as_me:7327: creating $ac_file" >&5
7328 echo "$as_me: creating $ac_file" >&6;}
7331 # Let's still pretend it is `configure' which instantiates (i.e., don't
7332 # use $as_me), people would be surprised to read:
7333 # /* config.h. Generated automatically by config.status. */
7334 configure_input="Generated automatically from `echo $ac_file_in |
7335 sed 's,.*/,,'` by configure."
7337 # First look for the input files in the build tree, otherwise in the
7339 ac_file_inputs=`IFS=:
7340 for f in $ac_file_in; do
7342 -) echo $tmp/stdin ;;
7344 # Absolute (can't be DOS-style, as IFS=:)
7345 test -f "$f" || { { echo "$as_me:7345: error: cannot find input file: $f" >&5
7346 echo "$as_me: error: cannot find input file: $f" >&2;}
7347 { (exit 1); exit 1; }; }
7350 if test -f "$f"; then
7353 elif test -f "$srcdir/$f"; then
7358 { { echo "$as_me:7358: error: cannot find input file: $f" >&5
7359 echo "$as_me: error: cannot find input file: $f" >&2;}
7360 { (exit 1); exit 1; }; }
7363 done` || { (exit 1); exit 1; }
7365 cat >>$CONFIG_STATUS <<EOF
7369 cat >>$CONFIG_STATUS <<\EOF
7371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7372 s,@configure_input@,$configure_input,;t t
7373 s,@srcdir@,$ac_srcdir,;t t
7374 s,@top_srcdir@,$ac_top_srcdir,;t t
7375 s,@INSTALL@,$ac_INSTALL,;t t
7376 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7378 if test x"$ac_file" != x-; then
7379 mv $tmp/out $ac_file
7388 cat >>$CONFIG_STATUS <<\EOF
7390 { (exit 0); exit 0; }
7392 chmod +x $CONFIG_STATUS
7393 ac_clean_files=$ac_clean_files_save
7395 # configure is writing to config.log, and then calls config.status.
7396 # config.status does its own redirection, appending to config.log.
7397 # Unfortunately, on DOS this fails, as config.log is still kept open
7398 # by configure, so config.status won't be able to write to it; its
7399 # output is simply discarded. So we exec the FD to /dev/null,
7400 # effectively closing config.log, so it can be properly (re)opened and
7401 # appended to by config.status. When coming back to configure, we
7402 # need to make the FD available again.
7403 if test "$no_create" != yes; then
7406 $SHELL $CONFIG_STATUS || ac_cs_success=false
7408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7409 # would make configure fail if this is the last instruction.
7410 $ac_cs_success || { (exit 1); exit 1; }