2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for libiconv 1.8.
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="lib/iconv.c"
264 ac_subdirs_all="$ac_subdirs_all libcharset"
266 # Initialize some variables set by options.
268 ac_init_version=false
269 # The variables have the same names as the options, with
270 # dashes changed to underlines.
278 program_transform_name=s,x,x,
286 # Installation directory options.
287 # These are left unexpanded so users can "make install exec_prefix=/foo"
288 # and all the variables that are supposed to be based on exec_prefix
289 # by default will actually change.
290 # Use braces instead of parens because sh, perl, etc. also accept them.
291 bindir='${exec_prefix}/bin'
292 sbindir='${exec_prefix}/sbin'
293 libexecdir='${exec_prefix}/libexec'
294 datadir='${prefix}/share'
295 sysconfdir='${prefix}/etc'
296 sharedstatedir='${prefix}/com'
297 localstatedir='${prefix}/var'
298 libdir='${exec_prefix}/lib'
299 includedir='${prefix}/include'
300 oldincludedir='/usr/include'
301 infodir='${prefix}/info'
302 mandir='${prefix}/man'
304 # Identity of this package.
305 PACKAGE_NAME='libiconv'
306 PACKAGE_TARNAME='libiconv'
307 PACKAGE_VERSION='1.8'
308 PACKAGE_STRING='libiconv 1.8'
314 # If the previous option needs an argument, assign it.
315 if test -n "$ac_prev"; then
316 eval "$ac_prev=\$ac_option"
321 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
323 # Accept the important Cygnus configure options, so we can diagnose typos.
327 -bindir | --bindir | --bindi | --bind | --bin | --bi)
329 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
332 -build | --build | --buil | --bui | --bu)
333 ac_prev=build_alias ;;
334 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
335 build_alias=$ac_optarg ;;
337 -cache-file | --cache-file | --cache-fil | --cache-fi \
338 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
339 ac_prev=cache_file ;;
340 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
341 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
342 cache_file=$ac_optarg ;;
345 cache_file=config.cache ;;
347 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
349 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
351 datadir=$ac_optarg ;;
353 -disable-* | --disable-*)
354 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
355 # Reject names that are not valid shell variable names.
356 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
357 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
358 { (exit 1); exit 1; }; }
359 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
360 eval "enable_$ac_feature=no" ;;
362 -enable-* | --enable-*)
363 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
364 # Reject names that are not valid shell variable names.
365 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
366 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
367 { (exit 1); exit 1; }; }
368 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
370 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
373 eval "enable_$ac_feature='$ac_optarg'" ;;
375 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
376 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
377 | --exec | --exe | --ex)
378 ac_prev=exec_prefix ;;
379 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
380 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
381 | --exec=* | --exe=* | --ex=*)
382 exec_prefix=$ac_optarg ;;
384 -gas | --gas | --ga | --g)
385 # Obsolete; use --with-gas.
388 -help | --help | --hel | --he | -h)
390 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
391 ac_init_help=recursive ;;
392 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
393 ac_init_help=short ;;
395 -host | --host | --hos | --ho)
396 ac_prev=host_alias ;;
397 -host=* | --host=* | --hos=* | --ho=*)
398 host_alias=$ac_optarg ;;
400 -includedir | --includedir | --includedi | --included | --include \
401 | --includ | --inclu | --incl | --inc)
402 ac_prev=includedir ;;
403 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
404 | --includ=* | --inclu=* | --incl=* | --inc=*)
405 includedir=$ac_optarg ;;
407 -infodir | --infodir | --infodi | --infod | --info | --inf)
409 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
410 infodir=$ac_optarg ;;
412 -libdir | --libdir | --libdi | --libd)
414 -libdir=* | --libdir=* | --libdi=* | --libd=*)
417 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
418 | --libexe | --libex | --libe)
419 ac_prev=libexecdir ;;
420 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
421 | --libexe=* | --libex=* | --libe=*)
422 libexecdir=$ac_optarg ;;
424 -localstatedir | --localstatedir | --localstatedi | --localstated \
425 | --localstate | --localstat | --localsta | --localst \
426 | --locals | --local | --loca | --loc | --lo)
427 ac_prev=localstatedir ;;
428 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
429 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
430 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
431 localstatedir=$ac_optarg ;;
433 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
435 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
439 # Obsolete; use --without-fp.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
450 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
451 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
452 | --oldin | --oldi | --old | --ol | --o)
453 ac_prev=oldincludedir ;;
454 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
455 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
456 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
457 oldincludedir=$ac_optarg ;;
459 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
461 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
464 -program-prefix | --program-prefix | --program-prefi | --program-pref \
465 | --program-pre | --program-pr | --program-p)
466 ac_prev=program_prefix ;;
467 -program-prefix=* | --program-prefix=* | --program-prefi=* \
468 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
469 program_prefix=$ac_optarg ;;
471 -program-suffix | --program-suffix | --program-suffi | --program-suff \
472 | --program-suf | --program-su | --program-s)
473 ac_prev=program_suffix ;;
474 -program-suffix=* | --program-suffix=* | --program-suffi=* \
475 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
476 program_suffix=$ac_optarg ;;
478 -program-transform-name | --program-transform-name \
479 | --program-transform-nam | --program-transform-na \
480 | --program-transform-n | --program-transform- \
481 | --program-transform | --program-transfor \
482 | --program-transfo | --program-transf \
483 | --program-trans | --program-tran \
484 | --progr-tra | --program-tr | --program-t)
485 ac_prev=program_transform_name ;;
486 -program-transform-name=* | --program-transform-name=* \
487 | --program-transform-nam=* | --program-transform-na=* \
488 | --program-transform-n=* | --program-transform-=* \
489 | --program-transform=* | --program-transfor=* \
490 | --program-transfo=* | --program-transf=* \
491 | --program-trans=* | --program-tran=* \
492 | --progr-tra=* | --program-tr=* | --program-t=*)
493 program_transform_name=$ac_optarg ;;
495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
496 | -silent | --silent | --silen | --sile | --sil)
499 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
501 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
503 sbindir=$ac_optarg ;;
505 -sharedstatedir | --sharedstatedir | --sharedstatedi \
506 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
507 | --sharedst | --shareds | --shared | --share | --shar \
509 ac_prev=sharedstatedir ;;
510 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
511 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
512 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
514 sharedstatedir=$ac_optarg ;;
516 -site | --site | --sit)
518 -site=* | --site=* | --sit=*)
521 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
523 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
526 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
527 | --syscon | --sysco | --sysc | --sys | --sy)
528 ac_prev=sysconfdir ;;
529 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
530 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
531 sysconfdir=$ac_optarg ;;
533 -target | --target | --targe | --targ | --tar | --ta | --t)
534 ac_prev=target_alias ;;
535 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
536 target_alias=$ac_optarg ;;
538 -v | -verbose | --verbose | --verbos | --verbo | --verb)
541 -version | --version | --versio | --versi | --vers | -V)
545 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid package name: $ac_package" >&2
549 { (exit 1); exit 1; }; }
550 ac_package=`echo $ac_package| sed 's/-/_/g'`
552 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
555 eval "with_$ac_package='$ac_optarg'" ;;
557 -without-* | --without-*)
558 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid package name: $ac_package" >&2
562 { (exit 1); exit 1; }; }
563 ac_package=`echo $ac_package | sed 's/-/_/g'`
564 eval "with_$ac_package=no" ;;
567 # Obsolete; use --with-x.
570 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
571 | --x-incl | --x-inc | --x-in | --x-i)
572 ac_prev=x_includes ;;
573 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
574 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
575 x_includes=$ac_optarg ;;
577 -x-libraries | --x-libraries | --x-librarie | --x-librari \
578 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
579 ac_prev=x_libraries ;;
580 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
581 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
582 x_libraries=$ac_optarg ;;
584 -*) { echo "$as_me: error: unrecognized option: $ac_option
585 Try \`$0 --help' for more information." >&2
586 { (exit 1); exit 1; }; }
590 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
594 { (exit 1); exit 1; }; }
595 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
596 eval "$ac_envvar='$ac_optarg'"
600 # FIXME: should be removed in autoconf 3.0.
601 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
602 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
603 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
604 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610 if test -n "$ac_prev"; then
611 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
612 { echo "$as_me: error: missing argument to $ac_option" >&2
613 { (exit 1); exit 1; }; }
616 # Be sure to have absolute paths.
617 for ac_var in exec_prefix prefix
619 eval ac_val=$`echo $ac_var`
621 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
622 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
623 { (exit 1); exit 1; }; };;
627 # Be sure to have absolute paths.
628 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
629 localstatedir libdir includedir oldincludedir infodir mandir
631 eval ac_val=$`echo $ac_var`
633 [\\/$]* | ?:[\\/]* ) ;;
634 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
635 { (exit 1); exit 1; }; };;
639 # There might be people who depend on the old broken behavior: `$host'
640 # used to hold the argument of --host etc.
645 # FIXME: should be removed in autoconf 3.0.
646 if test "x$host_alias" != x; then
647 if test "x$build_alias" = x; then
648 cross_compiling=maybe
649 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
650 If a cross compiler is detected then cross compile mode will be used." >&2
651 elif test "x$build_alias" != "x$host_alias"; then
657 test -n "$host_alias" && ac_tool_prefix=$host_alias-
659 test "$silent" = yes && exec 6>/dev/null
661 # Find the source files, if location was not specified.
662 if test -z "$srcdir"; then
663 ac_srcdir_defaulted=yes
664 # Try the directory containing this script, then its parent.
666 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
667 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
669 if test ! -r $srcdir/$ac_unique_file; then
673 ac_srcdir_defaulted=no
675 if test ! -r $srcdir/$ac_unique_file; then
676 if test "$ac_srcdir_defaulted" = yes; then
677 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
678 { (exit 1); exit 1; }; }
680 { echo "$as_me: error: cannot find sources in $srcdir" >&2
681 { (exit 1); exit 1; }; }
684 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
685 ac_env_build_alias_set=${build_alias+set}
686 ac_env_build_alias_value=$build_alias
687 ac_cv_env_build_alias_set=${build_alias+set}
688 ac_cv_env_build_alias_value=$build_alias
689 ac_env_host_alias_set=${host_alias+set}
690 ac_env_host_alias_value=$host_alias
691 ac_cv_env_host_alias_set=${host_alias+set}
692 ac_cv_env_host_alias_value=$host_alias
693 ac_env_target_alias_set=${target_alias+set}
694 ac_env_target_alias_value=$target_alias
695 ac_cv_env_target_alias_set=${target_alias+set}
696 ac_cv_env_target_alias_value=$target_alias
697 ac_env_CC_set=${CC+set}
699 ac_cv_env_CC_set=${CC+set}
700 ac_cv_env_CC_value=$CC
701 ac_env_CFLAGS_set=${CFLAGS+set}
702 ac_env_CFLAGS_value=$CFLAGS
703 ac_cv_env_CFLAGS_set=${CFLAGS+set}
704 ac_cv_env_CFLAGS_value=$CFLAGS
705 ac_env_LDFLAGS_set=${LDFLAGS+set}
706 ac_env_LDFLAGS_value=$LDFLAGS
707 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
708 ac_cv_env_LDFLAGS_value=$LDFLAGS
709 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
710 ac_env_CPPFLAGS_value=$CPPFLAGS
711 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
712 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
713 ac_env_CPP_set=${CPP+set}
714 ac_env_CPP_value=$CPP
715 ac_cv_env_CPP_set=${CPP+set}
716 ac_cv_env_CPP_value=$CPP
719 # Report the --help message.
721 if test "$ac_init_help" = "long"; then
722 # Omit some internal or obsolete options to make the list less imposing.
723 # This message is too long to be a string in the A/UX 3.1 sh.
725 \`configure' configures libiconv 1.8 to adapt to many kinds of systems.
727 Usage: $0 [OPTION]... [VAR=VALUE]...
729 To assign environment variables (e.g., CC, CFLAGS...), specify them as
730 VAR=VALUE. See below for descriptions of some of the useful variables.
732 Defaults for the options are specified in brackets.
735 -h, --help display this help and exit
736 --help=short display options specific to this package
737 --help=recursive display the short help of all the included packages
738 -V, --version display version information and exit
739 -q, --quiet, --silent do not print \`checking...' messages
740 --cache-file=FILE cache test results in FILE [disabled]
741 -C, --config-cache alias for \`--cache-file=config.cache'
742 -n, --no-create do not create output files
743 --srcdir=DIR find the sources in DIR [configure dir or \`..']
748 Installation directories:
749 --prefix=PREFIX install architecture-independent files in PREFIX
751 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
754 By default, \`make install' will install all the files in
755 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
756 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
757 for instance \`--prefix=\$HOME'.
759 For better control, use the options below.
761 Fine tuning of the installation directories:
762 --bindir=DIR user executables [EPREFIX/bin]
763 --sbindir=DIR system admin executables [EPREFIX/sbin]
764 --libexecdir=DIR program executables [EPREFIX/libexec]
765 --datadir=DIR read-only architecture-independent data [PREFIX/share]
766 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
767 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
768 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
769 --libdir=DIR object code libraries [EPREFIX/lib]
770 --includedir=DIR C header files [PREFIX/include]
771 --oldincludedir=DIR C header files for non-gcc [/usr/include]
772 --infodir=DIR info documentation [PREFIX/info]
773 --mandir=DIR man documentation [PREFIX/man]
779 --build=BUILD configure for building on BUILD [guessed]
780 --host=HOST build programs to run on HOST [BUILD]
784 if test -n "$ac_init_help"; then
785 case $ac_init_help in
786 short | recursive ) echo "Configuration of libiconv 1.8:";;
791 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
792 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
793 --enable-extra-encodings
794 add support for a few rarely used encodings
795 --enable-static=PKGS build static libraries default=no
796 --enable-shared=PKGS build shared libraries default=yes
797 --enable-fast-install=PKGS optimize for fast installation default=yes
798 --disable-libtool-lock avoid locking (might break parallel builds)
799 --disable-nls do not use Native Language Support
802 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
803 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
804 --with-gnu-ld assume the C compiler uses GNU ld default=no
805 --with-pic try to use only PIC/non-PIC objects default=use both
806 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
807 --without-libiconv-prefix don't search for libiconv in includedir and libdir
808 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
809 --without-libintl-prefix don't search for libintl in includedir and libdir
811 Some influential environment variables:
812 CC C compiler command
813 CFLAGS C compiler flags
814 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
815 nonstandard directory <lib dir>
816 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
817 headers in a nonstandard directory <include dir>
820 Use these variables to override the choices made by `configure' or to help
821 it to find libraries and programs with nonstandard names/locations.
826 if test "$ac_init_help" = "recursive"; then
827 # If there are subdirs, report their specific --help.
829 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
831 # A "../" for each directory in /$ac_subdir.
832 ac_dots=`echo $ac_subdir |
833 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
836 .) # No --srcdir option. We are building in place.
837 ac_sub_srcdir=$srcdir ;;
838 [\\/]* | ?:[\\/]* ) # Absolute path.
839 ac_sub_srcdir=$srcdir/$ac_subdir ;;
841 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
844 # Check for guested configure; otherwise get Cygnus style configure.
845 if test -f $ac_sub_srcdir/configure.gnu; then
847 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
848 elif test -f $ac_sub_srcdir/configure; then
850 $SHELL $ac_sub_srcdir/configure --help=recursive
851 elif test -f $ac_sub_srcdir/configure.ac ||
852 test -f $ac_sub_srcdir/configure.in; then
856 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
862 test -n "$ac_init_help" && exit 0
863 if $ac_init_version; then
865 libiconv configure 1.8
866 generated by GNU Autoconf 2.52
868 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
869 Free Software Foundation, Inc.
870 This configure script is free software; the Free Software Foundation
871 gives unlimited permission to copy, distribute and modify it.
877 This file contains any messages produced by compilers while
878 running configure, to aid debugging if configure makes a mistake.
880 It was created by libiconv $as_me 1.8, which was
881 generated by GNU Autoconf 2.52. Invocation command line was
892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
904 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
921 # Keep a trace of the command line.
922 # Strip out --no-create and --no-recursion so they do not pile up.
923 # Also quote any args containing shell meta-characters.
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c) ;;
931 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
932 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
933 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
935 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
937 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
940 # Get rid of the leading space.
943 # When interrupted or exit'd, cleanup temporary files, and complete
944 # config.log. We remove comments because anyway the quotes in there
945 # would cause problems or look ugly.
947 # Save into config.log some information that might help in debugging.
949 echo "## ----------------- ##" >&5
950 echo "## Cache variables. ##" >&5
951 echo "## ----------------- ##" >&5
953 # The following way of writing the cache mishandles newlines in values,
956 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
959 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
964 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
968 sed "/^$/d" confdefs.h >conftest.log
969 if test -s conftest.log; then
971 echo "## ------------ ##" >&5
972 echo "## confdefs.h. ##" >&5
973 echo "## ------------ ##" >&5
978 test "$ac_signal" != 0 &&
979 echo "$as_me: caught signal $ac_signal" >&5
980 echo "$as_me: exit $exit_status" >&5
981 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
984 for ac_signal in 1 2 13 15; do
985 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
990 rm -rf conftest* confdefs.h
991 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
994 # Let the site file select an alternate cache file if it wants to.
995 # Prefer explicitly selected file to automatically selected ones.
996 if test -z "$CONFIG_SITE"; then
997 if test "x$prefix" != xNONE; then
998 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1000 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1003 for ac_site_file in $CONFIG_SITE; do
1004 if test -r "$ac_site_file"; then
1005 { echo "$as_me:1005: loading site script $ac_site_file" >&5
1006 echo "$as_me: loading site script $ac_site_file" >&6;}
1007 cat "$ac_site_file" >&5
1012 if test -r "$cache_file"; then
1013 # Some versions of bash will fail to source /dev/null (special
1014 # files actually), so we avoid doing that.
1015 if test -f "$cache_file"; then
1016 { echo "$as_me:1016: loading cache $cache_file" >&5
1017 echo "$as_me: loading cache $cache_file" >&6;}
1019 [\\/]* | ?:[\\/]* ) . $cache_file;;
1020 *) . ./$cache_file;;
1024 { echo "$as_me:1024: creating cache $cache_file" >&5
1025 echo "$as_me: creating cache $cache_file" >&6;}
1029 # Check that the precious variables saved in the cache have kept the same
1031 ac_cache_corrupted=false
1032 for ac_var in `(set) 2>&1 |
1033 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1034 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1035 eval ac_new_set=\$ac_env_${ac_var}_set
1036 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1037 eval ac_new_val="\$ac_env_${ac_var}_value"
1038 case $ac_old_set,$ac_new_set in
1040 { echo "$as_me:1040: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1041 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1042 ac_cache_corrupted=: ;;
1044 { echo "$as_me:1044: error: \`$ac_var' was not set in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1046 ac_cache_corrupted=: ;;
1049 if test "x$ac_old_val" != "x$ac_new_val"; then
1050 { echo "$as_me:1050: error: \`$ac_var' has changed since the previous run:" >&5
1051 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1052 { echo "$as_me:1052: former value: $ac_old_val" >&5
1053 echo "$as_me: former value: $ac_old_val" >&2;}
1054 { echo "$as_me:1054: current value: $ac_new_val" >&5
1055 echo "$as_me: current value: $ac_new_val" >&2;}
1056 ac_cache_corrupted=:
1059 # Pass precious variables to config.status. It doesn't matter if
1060 # we pass some twice (in addition to the command line arguments).
1061 if test "$ac_new_set" = set; then
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1065 ac_configure_args="$ac_configure_args '$ac_arg'"
1067 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1072 if $ac_cache_corrupted; then
1073 { echo "$as_me:1073: error: changes in the environment can compromise the build" >&5
1074 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1075 { { echo "$as_me:1075: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1076 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1077 { (exit 1); exit 1; }; }
1081 ac_cpp='$CPP $CPPFLAGS'
1082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1086 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1087 *c*,-n*) ECHO_N= ECHO_C='
1089 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1090 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1092 echo "#! $SHELL" >conftest.sh
1093 echo "exit 0" >>conftest.sh
1094 chmod +x conftest.sh
1095 if { (echo "$as_me:1095: PATH=\".;.\"; conftest.sh") >&5
1096 (PATH=".;."; conftest.sh) 2>&5
1098 echo "$as_me:1098: \$? = $ac_status" >&5
1099 (exit $ac_status); }; then
1100 ac_path_separator=';'
1104 PATH_SEPARATOR="$ac_path_separator"
1107 PACKAGE=$PACKAGE_NAME
1108 VERSION=$PACKAGE_VERSION
1109 cat >>confdefs.h <<EOF
1110 #define PACKAGE "$PACKAGE"
1113 cat >>confdefs.h <<EOF
1114 #define VERSION "$VERSION"
1118 for ac_dir in autoconf $srcdir/autoconf; do
1119 if test -f $ac_dir/install-sh; then
1121 ac_install_sh="$ac_aux_dir/install-sh -c"
1123 elif test -f $ac_dir/install.sh; then
1125 ac_install_sh="$ac_aux_dir/install.sh -c"
1127 elif test -f $ac_dir/shtool; then
1129 ac_install_sh="$ac_aux_dir/shtool install -c"
1133 if test -z "$ac_aux_dir"; then
1134 { { echo "$as_me:1134: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1135 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1136 { (exit 1); exit 1; }; }
1138 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1139 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1140 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1142 ac_config_headers="$ac_config_headers lib/config.h src/config.h"
1144 echo "$as_me:1144: checking whether ${MAKE-make} sets \${MAKE}" >&5
1145 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1148 echo $ECHO_N "(cached) $ECHO_C" >&6
1150 cat >conftest.make <<\EOF
1152 @echo 'ac_maketemp="${MAKE}"'
1154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1156 if test -n "$ac_maketemp"; then
1157 eval ac_cv_prog_make_${ac_make}_set=yes
1159 eval ac_cv_prog_make_${ac_make}_set=no
1163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1164 echo "$as_me:1164: result: yes" >&5
1165 echo "${ECHO_T}yes" >&6
1168 echo "$as_me:1168: result: no" >&5
1169 echo "${ECHO_T}no" >&6
1170 SET_MAKE="MAKE=${MAKE-make}"
1173 # Check whether --enable-extra-encodings or --disable-extra-encodings was given.
1174 if test "${enable_extra_encodings+set}" = set; then
1175 enableval="$enable_extra_encodings"
1177 cat >>confdefs.h <<\EOF
1178 #define ENABLE_EXTRA 1
1181 USE_EXTRA_ENCODINGS=yes
1183 USE_EXTRA_ENCODINGS=no
1187 ac_cpp='$CPP $CPPFLAGS'
1188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1191 if test -n "$ac_tool_prefix"; then
1192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1194 echo "$as_me:1194: checking for $ac_word" >&5
1195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196 if test "${ac_cv_prog_CC+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1199 if test -n "$CC"; then
1200 ac_cv_prog_CC="$CC" # Let the user override the test.
1202 ac_save_IFS=$IFS; IFS=$ac_path_separator
1204 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 $as_executable_p "$ac_dir/$ac_word" || continue
1208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1209 echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1216 if test -n "$CC"; then
1217 echo "$as_me:1217: result: $CC" >&5
1218 echo "${ECHO_T}$CC" >&6
1220 echo "$as_me:1220: result: no" >&5
1221 echo "${ECHO_T}no" >&6
1225 if test -z "$ac_cv_prog_CC"; then
1227 # Extract the first word of "gcc", so it can be a program name with args.
1228 set dummy gcc; ac_word=$2
1229 echo "$as_me:1229: checking for $ac_word" >&5
1230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1232 echo $ECHO_N "(cached) $ECHO_C" >&6
1234 if test -n "$ac_ct_CC"; then
1235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1237 ac_save_IFS=$IFS; IFS=$ac_path_separator
1239 for ac_dir in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir=.
1242 $as_executable_p "$ac_dir/$ac_word" || continue
1243 ac_cv_prog_ac_ct_CC="gcc"
1244 echo "$as_me:1244: found $ac_dir/$ac_word" >&5
1250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1251 if test -n "$ac_ct_CC"; then
1252 echo "$as_me:1252: result: $ac_ct_CC" >&5
1253 echo "${ECHO_T}$ac_ct_CC" >&6
1255 echo "$as_me:1255: result: no" >&5
1256 echo "${ECHO_T}no" >&6
1264 if test -z "$CC"; then
1265 if test -n "$ac_tool_prefix"; then
1266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1267 set dummy ${ac_tool_prefix}cc; ac_word=$2
1268 echo "$as_me:1268: checking for $ac_word" >&5
1269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1270 if test "${ac_cv_prog_CC+set}" = set; then
1271 echo $ECHO_N "(cached) $ECHO_C" >&6
1273 if test -n "$CC"; then
1274 ac_cv_prog_CC="$CC" # Let the user override the test.
1276 ac_save_IFS=$IFS; IFS=$ac_path_separator
1278 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 $as_executable_p "$ac_dir/$ac_word" || continue
1282 ac_cv_prog_CC="${ac_tool_prefix}cc"
1283 echo "$as_me:1283: found $ac_dir/$ac_word" >&5
1290 if test -n "$CC"; then
1291 echo "$as_me:1291: result: $CC" >&5
1292 echo "${ECHO_T}$CC" >&6
1294 echo "$as_me:1294: result: no" >&5
1295 echo "${ECHO_T}no" >&6
1299 if test -z "$ac_cv_prog_CC"; then
1301 # Extract the first word of "cc", so it can be a program name with args.
1302 set dummy cc; ac_word=$2
1303 echo "$as_me:1303: checking for $ac_word" >&5
1304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1306 echo $ECHO_N "(cached) $ECHO_C" >&6
1308 if test -n "$ac_ct_CC"; then
1309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1311 ac_save_IFS=$IFS; IFS=$ac_path_separator
1313 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 $as_executable_p "$ac_dir/$ac_word" || continue
1317 ac_cv_prog_ac_ct_CC="cc"
1318 echo "$as_me:1318: found $ac_dir/$ac_word" >&5
1324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1325 if test -n "$ac_ct_CC"; then
1326 echo "$as_me:1326: result: $ac_ct_CC" >&5
1327 echo "${ECHO_T}$ac_ct_CC" >&6
1329 echo "$as_me:1329: result: no" >&5
1330 echo "${ECHO_T}no" >&6
1339 if test -z "$CC"; then
1340 # Extract the first word of "cc", so it can be a program name with args.
1341 set dummy cc; ac_word=$2
1342 echo "$as_me:1342: checking for $ac_word" >&5
1343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344 if test "${ac_cv_prog_CC+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 if test -n "$CC"; then
1348 ac_cv_prog_CC="$CC" # Let the user override the test.
1351 ac_save_IFS=$IFS; IFS=$ac_path_separator
1353 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 $as_executable_p "$ac_dir/$ac_word" || continue
1357 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1358 ac_prog_rejected=yes
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1366 if test $ac_prog_rejected = yes; then
1367 # We found a bogon in the path, so make sure we never use it.
1368 set dummy $ac_cv_prog_CC
1370 if test $# != 0; then
1371 # We chose a different compiler from the bogus one.
1372 # However, it has the same basename, so the bogon will be chosen
1373 # first if we set CC to just the basename; use the full file name.
1375 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1383 if test -n "$CC"; then
1384 echo "$as_me:1384: result: $CC" >&5
1385 echo "${ECHO_T}$CC" >&6
1387 echo "$as_me:1387: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1392 if test -z "$CC"; then
1393 if test -n "$ac_tool_prefix"; then
1396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1398 echo "$as_me:1398: checking for $ac_word" >&5
1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400 if test "${ac_cv_prog_CC+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 if test -n "$CC"; then
1404 ac_cv_prog_CC="$CC" # Let the user override the test.
1406 ac_save_IFS=$IFS; IFS=$ac_path_separator
1408 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 $as_executable_p "$ac_dir/$ac_word" || continue
1412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1413 echo "$as_me:1413: found $ac_dir/$ac_word" >&5
1420 if test -n "$CC"; then
1421 echo "$as_me:1421: result: $CC" >&5
1422 echo "${ECHO_T}$CC" >&6
1424 echo "$as_me:1424: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1428 test -n "$CC" && break
1431 if test -z "$CC"; then
1435 # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy $ac_prog; ac_word=$2
1437 echo "$as_me:1437: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$ac_ct_CC"; then
1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1445 ac_save_IFS=$IFS; IFS=$ac_path_separator
1447 for ac_dir in $ac_dummy; do
1449 test -z "$ac_dir" && ac_dir=.
1450 $as_executable_p "$ac_dir/$ac_word" || continue
1451 ac_cv_prog_ac_ct_CC="$ac_prog"
1452 echo "$as_me:1452: found $ac_dir/$ac_word" >&5
1458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1459 if test -n "$ac_ct_CC"; then
1460 echo "$as_me:1460: result: $ac_ct_CC" >&5
1461 echo "${ECHO_T}$ac_ct_CC" >&6
1463 echo "$as_me:1463: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1467 test -n "$ac_ct_CC" && break
1475 test -z "$CC" && { { echo "$as_me:1475: error: no acceptable cc found in \$PATH" >&5
1476 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1477 { (exit 1); exit 1; }; }
1479 # Provide some information about the compiler.
1480 echo "$as_me:1480:" \
1481 "checking for C compiler version" >&5
1482 ac_compiler=`set X $ac_compile; echo $2`
1483 { (eval echo "$as_me:1483: \"$ac_compiler --version </dev/null >&5\"") >&5
1484 (eval $ac_compiler --version </dev/null >&5) 2>&5
1486 echo "$as_me:1486: \$? = $ac_status" >&5
1487 (exit $ac_status); }
1488 { (eval echo "$as_me:1488: \"$ac_compiler -v </dev/null >&5\"") >&5
1489 (eval $ac_compiler -v </dev/null >&5) 2>&5
1491 echo "$as_me:1491: \$? = $ac_status" >&5
1492 (exit $ac_status); }
1493 { (eval echo "$as_me:1493: \"$ac_compiler -V </dev/null >&5\"") >&5
1494 (eval $ac_compiler -V </dev/null >&5) 2>&5
1496 echo "$as_me:1496: \$? = $ac_status" >&5
1497 (exit $ac_status); }
1499 cat >conftest.$ac_ext <<_ACEOF
1500 #line 1500 "configure"
1501 #include "confdefs.h"
1511 ac_clean_files_save=$ac_clean_files
1512 ac_clean_files="$ac_clean_files a.out a.exe"
1513 # Try to create an executable without -o first, disregard a.out.
1514 # It will help us diagnose broken compilers, and finding out an intuition
1516 echo "$as_me:1516: checking for C compiler default output" >&5
1517 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1518 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1519 if { (eval echo "$as_me:1519: \"$ac_link_default\"") >&5
1520 (eval $ac_link_default) 2>&5
1522 echo "$as_me:1522: \$? = $ac_status" >&5
1523 (exit $ac_status); }; then
1524 # Find the output, starting from the most likely. This scheme is
1525 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1527 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1528 ls a.out conftest 2>/dev/null;
1529 ls a.* conftest.* 2>/dev/null`; do
1531 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1532 a.out ) # We found the default executable, but exeext='' is most
1535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1536 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1543 echo "$as_me: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1545 { { echo "$as_me:1545: error: C compiler cannot create executables" >&5
1546 echo "$as_me: error: C compiler cannot create executables" >&2;}
1547 { (exit 77); exit 77; }; }
1550 ac_exeext=$ac_cv_exeext
1551 echo "$as_me:1551: result: $ac_file" >&5
1552 echo "${ECHO_T}$ac_file" >&6
1554 # Check the compiler produces executables we can run. If not, either
1555 # the compiler is broken, or we cross compile.
1556 echo "$as_me:1556: checking whether the C compiler works" >&5
1557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1559 # If not cross compiling, check that we can run a simple program.
1560 if test "$cross_compiling" != yes; then
1561 if { ac_try='./$ac_file'
1562 { (eval echo "$as_me:1562: \"$ac_try\"") >&5
1565 echo "$as_me:1565: \$? = $ac_status" >&5
1566 (exit $ac_status); }; }; then
1569 if test "$cross_compiling" = maybe; then
1572 { { echo "$as_me:1572: error: cannot run C compiled programs.
1573 If you meant to cross compile, use \`--host'." >&5
1574 echo "$as_me: error: cannot run C compiled programs.
1575 If you meant to cross compile, use \`--host'." >&2;}
1576 { (exit 1); exit 1; }; }
1580 echo "$as_me:1580: result: yes" >&5
1581 echo "${ECHO_T}yes" >&6
1583 rm -f a.out a.exe conftest$ac_cv_exeext
1584 ac_clean_files=$ac_clean_files_save
1585 # Check the compiler produces executables we can run. If not, either
1586 # the compiler is broken, or we cross compile.
1587 echo "$as_me:1587: checking whether we are cross compiling" >&5
1588 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1589 echo "$as_me:1589: result: $cross_compiling" >&5
1590 echo "${ECHO_T}$cross_compiling" >&6
1592 echo "$as_me:1592: checking for executable suffix" >&5
1593 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1594 if { (eval echo "$as_me:1594: \"$ac_link\"") >&5
1595 (eval $ac_link) 2>&5
1597 echo "$as_me:1597: \$? = $ac_status" >&5
1598 (exit $ac_status); }; then
1599 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1600 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1601 # work properly (i.e., refer to `conftest.exe'), while it won't with
1603 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1605 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1613 { { echo "$as_me:1613: error: cannot compute EXEEXT: cannot compile and link" >&5
1614 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1615 { (exit 1); exit 1; }; }
1618 rm -f conftest$ac_cv_exeext
1619 echo "$as_me:1619: result: $ac_cv_exeext" >&5
1620 echo "${ECHO_T}$ac_cv_exeext" >&6
1622 rm -f conftest.$ac_ext
1623 EXEEXT=$ac_cv_exeext
1625 echo "$as_me:1625: checking for object suffix" >&5
1626 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1627 if test "${ac_cv_objext+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 cat >conftest.$ac_ext <<_ACEOF
1631 #line 1631 "configure"
1632 #include "confdefs.h"
1642 rm -f conftest.o conftest.obj
1643 if { (eval echo "$as_me:1643: \"$ac_compile\"") >&5
1644 (eval $ac_compile) 2>&5
1646 echo "$as_me:1646: \$? = $ac_status" >&5
1647 (exit $ac_status); }; then
1648 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1656 echo "$as_me: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 { { echo "$as_me:1658: error: cannot compute OBJEXT: cannot compile" >&5
1659 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1660 { (exit 1); exit 1; }; }
1663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1665 echo "$as_me:1665: result: $ac_cv_objext" >&5
1666 echo "${ECHO_T}$ac_cv_objext" >&6
1667 OBJEXT=$ac_cv_objext
1669 echo "$as_me:1669: checking whether we are using the GNU C compiler" >&5
1670 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1671 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 cat >conftest.$ac_ext <<_ACEOF
1675 #line 1675 "configure"
1676 #include "confdefs.h"
1689 rm -f conftest.$ac_objext
1690 if { (eval echo "$as_me:1690: \"$ac_compile\"") >&5
1691 (eval $ac_compile) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); } &&
1695 { ac_try='test -s conftest.$ac_objext'
1696 { (eval echo "$as_me:1696: \"$ac_try\"") >&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }; }; then
1703 echo "$as_me: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1707 rm -f conftest.$ac_objext conftest.$ac_ext
1708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1711 echo "$as_me:1711: result: $ac_cv_c_compiler_gnu" >&5
1712 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1713 GCC=`test $ac_compiler_gnu = yes && echo yes`
1714 ac_test_CFLAGS=${CFLAGS+set}
1715 ac_save_CFLAGS=$CFLAGS
1717 echo "$as_me:1717: checking whether $CC accepts -g" >&5
1718 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1719 if test "${ac_cv_prog_cc_g+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 cat >conftest.$ac_ext <<_ACEOF
1723 #line 1723 "configure"
1724 #include "confdefs.h"
1734 rm -f conftest.$ac_objext
1735 if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); } &&
1740 { ac_try='test -s conftest.$ac_objext'
1741 { (eval echo "$as_me:1741: \"$ac_try\"") >&5
1744 echo "$as_me:1744: \$? = $ac_status" >&5
1745 (exit $ac_status); }; }; then
1748 echo "$as_me: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1752 rm -f conftest.$ac_objext conftest.$ac_ext
1754 echo "$as_me:1754: result: $ac_cv_prog_cc_g" >&5
1755 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1756 if test "$ac_test_CFLAGS" = set; then
1757 CFLAGS=$ac_save_CFLAGS
1758 elif test $ac_cv_prog_cc_g = yes; then
1759 if test "$GCC" = yes; then
1765 if test "$GCC" = yes; then
1771 # Some people use a C++ compiler to compile C. Since we use `exit',
1772 # in C++ we need to declare it. In case someone uses the same compiler
1773 # for both compiling C and C++ we need to have the C++ compiler decide
1774 # the declaration of exit, since it's the most demanding environment.
1775 cat >conftest.$ac_ext <<_ACEOF
1780 rm -f conftest.$ac_objext
1781 if { (eval echo "$as_me:1781: \"$ac_compile\"") >&5
1782 (eval $ac_compile) 2>&5
1784 echo "$as_me:1784: \$? = $ac_status" >&5
1785 (exit $ac_status); } &&
1786 { ac_try='test -s conftest.$ac_objext'
1787 { (eval echo "$as_me:1787: \"$ac_try\"") >&5
1790 echo "$as_me:1790: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1792 for ac_declaration in \
1794 '#include <stdlib.h>' \
1795 'extern "C" void std::exit (int) throw (); using std::exit;' \
1796 'extern "C" void std::exit (int); using std::exit;' \
1797 'extern "C" void exit (int) throw ();' \
1798 'extern "C" void exit (int);' \
1801 cat >conftest.$ac_ext <<_ACEOF
1802 #line 1802 "configure"
1803 #include "confdefs.h"
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -s conftest.$ac_objext'
1821 { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1832 rm -f conftest.$ac_objext conftest.$ac_ext
1833 cat >conftest.$ac_ext <<_ACEOF
1834 #line 1834 "configure"
1835 #include "confdefs.h"
1845 rm -f conftest.$ac_objext
1846 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
1847 (eval $ac_compile) 2>&5
1849 echo "$as_me:1849: \$? = $ac_status" >&5
1850 (exit $ac_status); } &&
1851 { ac_try='test -s conftest.$ac_objext'
1852 { (eval echo "$as_me:1852: \"$ac_try\"") >&5
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1859 echo "$as_me: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1862 rm -f conftest.$ac_objext conftest.$ac_ext
1865 if test -n "$ac_declaration"; then
1866 echo '#ifdef __cplusplus' >>confdefs.h
1867 echo $ac_declaration >>confdefs.h
1868 echo '#endif' >>confdefs.h
1872 echo "$as_me: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1875 rm -f conftest.$ac_objext conftest.$ac_ext
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887 echo "$as_me:1887: checking how to run the C preprocessor" >&5
1888 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1889 # On Suns, sometimes $CPP names a directory.
1890 if test -n "$CPP" && test -d "$CPP"; then
1893 if test -z "$CPP"; then
1894 if test "${ac_cv_prog_CPP+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 # Double quotes because CPP needs to be expanded
1898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1901 for ac_c_preproc_warn_flag in '' yes
1903 # Use a header file that comes with gcc, so configuring glibc
1904 # with a fresh cross-compiler works.
1905 # On the NeXT, cc -E runs the code through the compiler's parser,
1906 # not just through cpp. "Syntax error" is here to catch this case.
1907 cat >conftest.$ac_ext <<_ACEOF
1908 #line 1908 "configure"
1909 #include "confdefs.h"
1913 if { (eval echo "$as_me:1913: \"$ac_cpp conftest.$ac_ext\"") >&5
1914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1916 egrep -v '^ *\+' conftest.er1 >conftest.err
1918 cat conftest.err >&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); } >/dev/null; then
1921 if test -s conftest.err; then
1922 ac_cpp_err=$ac_c_preproc_warn_flag
1929 if test -z "$ac_cpp_err"; then
1932 echo "$as_me: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1934 # Broken: fails on valid input.
1937 rm -f conftest.err conftest.$ac_ext
1939 # OK, works on sane cases. Now check whether non-existent headers
1940 # can be detected and how.
1941 cat >conftest.$ac_ext <<_ACEOF
1942 #line 1942 "configure"
1943 #include "confdefs.h"
1944 #include <ac_nonexistent.h>
1946 if { (eval echo "$as_me:1946: \"$ac_cpp conftest.$ac_ext\"") >&5
1947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1949 egrep -v '^ *\+' conftest.er1 >conftest.err
1951 cat conftest.err >&5
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); } >/dev/null; then
1954 if test -s conftest.err; then
1955 ac_cpp_err=$ac_c_preproc_warn_flag
1962 if test -z "$ac_cpp_err"; then
1963 # Broken: success on invalid input.
1966 echo "$as_me: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1968 # Passes both tests.
1972 rm -f conftest.err conftest.$ac_ext
1975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1976 rm -f conftest.err conftest.$ac_ext
1977 if $ac_preproc_ok; then
1989 echo "$as_me:1989: result: $CPP" >&5
1990 echo "${ECHO_T}$CPP" >&6
1992 for ac_c_preproc_warn_flag in '' yes
1994 # Use a header file that comes with gcc, so configuring glibc
1995 # with a fresh cross-compiler works.
1996 # On the NeXT, cc -E runs the code through the compiler's parser,
1997 # not just through cpp. "Syntax error" is here to catch this case.
1998 cat >conftest.$ac_ext <<_ACEOF
1999 #line 1999 "configure"
2000 #include "confdefs.h"
2004 if { (eval echo "$as_me:2004: \"$ac_cpp conftest.$ac_ext\"") >&5
2005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2007 egrep -v '^ *\+' conftest.er1 >conftest.err
2009 cat conftest.err >&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); } >/dev/null; then
2012 if test -s conftest.err; then
2013 ac_cpp_err=$ac_c_preproc_warn_flag
2020 if test -z "$ac_cpp_err"; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 # Broken: fails on valid input.
2028 rm -f conftest.err conftest.$ac_ext
2030 # OK, works on sane cases. Now check whether non-existent headers
2031 # can be detected and how.
2032 cat >conftest.$ac_ext <<_ACEOF
2033 #line 2033 "configure"
2034 #include "confdefs.h"
2035 #include <ac_nonexistent.h>
2037 if { (eval echo "$as_me:2037: \"$ac_cpp conftest.$ac_ext\"") >&5
2038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2040 egrep -v '^ *\+' conftest.er1 >conftest.err
2042 cat conftest.err >&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); } >/dev/null; then
2045 if test -s conftest.err; then
2046 ac_cpp_err=$ac_c_preproc_warn_flag
2053 if test -z "$ac_cpp_err"; then
2054 # Broken: success on invalid input.
2057 echo "$as_me: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 # Passes both tests.
2063 rm -f conftest.err conftest.$ac_ext
2066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2067 rm -f conftest.err conftest.$ac_ext
2068 if $ac_preproc_ok; then
2071 { { echo "$as_me:2071: error: C preprocessor \"$CPP\" fails sanity check" >&5
2072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2073 { (exit 1); exit 1; }; }
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 if test $ac_cv_c_compiler_gnu = yes; then
2083 echo "$as_me:2083: checking whether $CC needs -traditional" >&5
2084 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2085 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 ac_pattern="Autoconf.*'x'"
2089 cat >conftest.$ac_ext <<_ACEOF
2090 #line 2090 "configure"
2091 #include "confdefs.h"
2095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2096 egrep "$ac_pattern" >/dev/null 2>&1; then
2097 ac_cv_prog_gcc_traditional=yes
2099 ac_cv_prog_gcc_traditional=no
2103 if test $ac_cv_prog_gcc_traditional = no; then
2104 cat >conftest.$ac_ext <<_ACEOF
2105 #line 2105 "configure"
2106 #include "confdefs.h"
2110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2111 egrep "$ac_pattern" >/dev/null 2>&1; then
2112 ac_cv_prog_gcc_traditional=yes
2118 echo "$as_me:2118: result: $ac_cv_prog_gcc_traditional" >&5
2119 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2120 if test $ac_cv_prog_gcc_traditional = yes; then
2121 CC="$CC -traditional"
2125 # Extract the first word of "ranlib", so it can be a program name with args.
2126 set dummy ranlib; ac_word=$2
2127 echo "$as_me:2127: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_RANLIB+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test -n "$RANLIB"; then
2133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2135 ac_save_IFS=$IFS; IFS=$ac_path_separator
2137 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 $as_executable_p "$ac_dir/$ac_word" || continue
2141 ac_cv_prog_RANLIB="ranlib"
2142 echo "$as_me:2142: found $ac_dir/$ac_word" >&5
2146 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
2149 RANLIB=$ac_cv_prog_RANLIB
2150 if test -n "$RANLIB"; then
2151 echo "$as_me:2151: result: $RANLIB" >&5
2152 echo "${ECHO_T}$RANLIB" >&6
2154 echo "$as_me:2154: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2158 # Find a good install program. We prefer a C program (faster),
2159 # so one script is as good as another. But avoid the broken or
2160 # incompatible versions:
2161 # SysV /etc/install, /usr/sbin/install
2162 # SunOS /usr/etc/install
2163 # IRIX /sbin/install
2165 # AmigaOS /C/install, which installs bootblocks on floppy discs
2166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 echo "$as_me:2170: checking for a BSD compatible install" >&5
2171 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2172 if test -z "$INSTALL"; then
2173 if test "${ac_cv_path_install+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 ac_save_IFS=$IFS; IFS=$ac_path_separator
2177 for ac_dir in $PATH; do
2179 # Account for people who put trailing slashes in PATH elements.
2181 / | ./ | .// | /cC/* \
2182 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2185 # OSF1 and SCO ODT 3.0 have their own names for install.
2186 # Don't use installbsd from OSF since it installs stuff as root
2188 for ac_prog in ginstall scoinst install; do
2189 if $as_executable_p "$ac_dir/$ac_prog"; then
2190 if test $ac_prog = install &&
2191 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2192 # AIX install. It has an incompatible calling convention.
2194 elif test $ac_prog = install &&
2195 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2196 # program-specific install script used by HP pwplus--don't use.
2199 ac_cv_path_install="$ac_dir/$ac_prog -c"
2209 if test "${ac_cv_path_install+set}" = set; then
2210 INSTALL=$ac_cv_path_install
2212 # As a last resort, use the slow shell script. We don't cache a
2213 # path for INSTALL within a source directory, because that will
2214 # break other packages using the cache if that directory is
2215 # removed, or if the path is relative.
2216 INSTALL=$ac_install_sh
2219 echo "$as_me:2219: result: $INSTALL" >&5
2220 echo "${ECHO_T}$INSTALL" >&6
2222 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2223 # It thinks the first close brace ends the variable substitution.
2224 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2226 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2230 echo "$as_me:2230: checking how to copy files" >&5
2231 echo $ECHO_N "checking how to copy files... $ECHO_C" >&6
2232 if test "${cl_cv_prog_cp+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 echo "blabla" > conftest.x
2237 err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
2238 if test -z "$err"; then
2239 cl_cv_prog_cp='cp -p'
2246 echo "$as_me:2246: result: $cl_cv_prog_cp" >&5
2247 echo "${ECHO_T}$cl_cv_prog_cp" >&6
2250 echo "$as_me:2250: checking how to make hard links" >&5
2251 echo $ECHO_N "checking how to make hard links... $ECHO_C" >&6
2252 if test "${cl_cv_prog_LN+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 rm -f conftestdata conftestfile
2257 echo data > conftestfile
2258 if ln conftestfile conftestdata 2>/dev/null; then
2261 cl_cv_prog_LN="$cl_cv_prog_cp"
2263 rm -f conftestdata conftestfile
2266 echo "$as_me:2266: result: $cl_cv_prog_LN" >&5
2267 echo "${ECHO_T}$cl_cv_prog_LN" >&6
2270 echo "$as_me:2270: checking whether ln -s works" >&5
2271 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2272 if test "${cl_cv_prog_LN_S+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if ln -s X conftestdata 2>/dev/null; then
2278 cl_cv_prog_LN_S="ln -s"
2280 cl_cv_prog_LN_S="$cl_cv_prog_LN"
2285 if test "$cl_cv_prog_LN_S" = "ln -s"; then
2286 echo "$as_me:2286: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6
2289 echo "$as_me:2289: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2292 LN_S="$cl_cv_prog_LN_S"
2294 ac_aux_dir=${srcdir}/autoconf
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2297 # Make sure we can run config.sub.
2298 $ac_config_sub sun4 >/dev/null 2>&1 ||
2299 { { echo "$as_me:2299: error: cannot run $ac_config_sub" >&5
2300 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2301 { (exit 1); exit 1; }; }
2303 echo "$as_me:2303: checking build system type" >&5
2304 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2305 if test "${ac_cv_build+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 ac_cv_build_alias=$build_alias
2309 test -z "$ac_cv_build_alias" &&
2310 ac_cv_build_alias=`$ac_config_guess`
2311 test -z "$ac_cv_build_alias" &&
2312 { { echo "$as_me:2312: error: cannot guess build type; you must specify one" >&5
2313 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2314 { (exit 1); exit 1; }; }
2315 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2316 { { echo "$as_me:2316: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2317 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2318 { (exit 1); exit 1; }; }
2321 echo "$as_me:2321: result: $ac_cv_build" >&5
2322 echo "${ECHO_T}$ac_cv_build" >&6
2324 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2325 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2326 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2328 echo "$as_me:2328: checking host system type" >&5
2329 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2330 if test "${ac_cv_host+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 ac_cv_host_alias=$host_alias
2334 test -z "$ac_cv_host_alias" &&
2335 ac_cv_host_alias=$ac_cv_build_alias
2336 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2337 { { echo "$as_me:2337: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2338 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2339 { (exit 1); exit 1; }; }
2342 echo "$as_me:2342: result: $ac_cv_host" >&5
2343 echo "${ECHO_T}$ac_cv_host" >&6
2345 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2346 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2347 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2349 echo "$as_me:2349: checking for AIX" >&5
2350 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2352 #line 2352 "configure"
2353 #include "confdefs.h"
2359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2360 egrep "yes" >/dev/null 2>&1; then
2361 echo "$as_me:2361: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6
2363 cat >>confdefs.h <<\EOF
2364 #define _ALL_SOURCE 1
2368 echo "$as_me:2368: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2373 echo "$as_me:2373: checking for minix/config.h" >&5
2374 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2375 if test "${ac_cv_header_minix_config_h+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line 2379 "configure"
2380 #include "confdefs.h"
2381 #include <minix/config.h>
2383 if { (eval echo "$as_me:2383: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 egrep -v '^ *\+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:2389: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2399 if test -z "$ac_cpp_err"; then
2400 ac_cv_header_minix_config_h=yes
2402 echo "$as_me: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 ac_cv_header_minix_config_h=no
2406 rm -f conftest.err conftest.$ac_ext
2408 echo "$as_me:2408: result: $ac_cv_header_minix_config_h" >&5
2409 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2410 if test $ac_cv_header_minix_config_h = yes; then
2416 if test "$MINIX" = yes; then
2418 cat >>confdefs.h <<\EOF
2419 #define _POSIX_SOURCE 1
2422 cat >>confdefs.h <<\EOF
2423 #define _POSIX_1_SOURCE 2
2426 cat >>confdefs.h <<\EOF
2432 echo "$as_me:2432: checking for strerror in -lcposix" >&5
2433 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2434 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_check_lib_save_LIBS=$LIBS
2438 LIBS="-lcposix $LIBS"
2439 cat >conftest.$ac_ext <<_ACEOF
2440 #line 2440 "configure"
2441 #include "confdefs.h"
2443 /* Override any gcc2 internal prototype to avoid an error. */
2447 /* We use char because int might match the return type of a gcc2
2448 builtin and then its argument prototype would still apply. */
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { (eval echo "$as_me:2459: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>&5
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:2465: \"$ac_try\"") >&5
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_lib_cposix_strerror=yes
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 ac_cv_lib_cposix_strerror=no
2476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2477 LIBS=$ac_check_lib_save_LIBS
2479 echo "$as_me:2479: result: $ac_cv_lib_cposix_strerror" >&5
2480 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2481 if test $ac_cv_lib_cposix_strerror = yes; then
2482 LIBS="$LIBS -lcposix"
2485 # Check whether --enable-static or --disable-static was given.
2486 if test "${enable_static+set}" = set; then
2487 enableval="$enable_static"
2488 p=${PACKAGE-default}
2490 yes) enable_static=yes ;;
2491 no) enable_static=no ;;
2494 # Look at the argument we got. We use all the common list separators.
2495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2496 for pkg in $enableval; do
2497 if test "X$pkg" = "X$p"; then
2507 # Check whether --enable-shared or --disable-shared was given.
2508 if test "${enable_shared+set}" = set; then
2509 enableval="$enable_shared"
2510 p=${PACKAGE-default}
2512 yes) enable_shared=yes ;;
2513 no) enable_shared=no ;;
2516 # Look at the argument we got. We use all the common list separators.
2517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2518 for pkg in $enableval; do
2519 if test "X$pkg" = "X$p"; then
2529 # Check whether --enable-fast-install or --disable-fast-install was given.
2530 if test "${enable_fast_install+set}" = set; then
2531 enableval="$enable_fast_install"
2532 p=${PACKAGE-default}
2534 yes) enable_fast_install=yes ;;
2535 no) enable_fast_install=no ;;
2537 enable_fast_install=no
2538 # Look at the argument we got. We use all the common list separators.
2539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2540 for pkg in $enableval; do
2541 if test "X$pkg" = "X$p"; then
2542 enable_fast_install=yes
2549 enable_fast_install=yes
2551 # Find the correct PATH separator. Usually this is `:', but
2552 # DJGPP uses `;' like DOS.
2553 if test "X${PATH_SEPARATOR+set}" != Xset; then
2554 UNAME=${UNAME-`uname 2>/dev/null`}
2556 *-DOS) lt_cv_sys_path_separator=';' ;;
2557 *) lt_cv_sys_path_separator=':' ;;
2559 PATH_SEPARATOR=$lt_cv_sys_path_separator
2562 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2563 if test "${with_gnu_ld+set}" = set; then
2564 withval="$with_gnu_ld"
2565 test "$withval" = no || with_gnu_ld=yes
2570 if test "$GCC" = yes; then
2571 # Check if gcc -print-prog-name=ld gives a path.
2572 echo "$as_me:2572: checking for ld used by GCC" >&5
2573 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2576 # gcc leaves a trailing carriage return which upsets mingw
2577 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2579 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2582 # Accept absolute paths.
2583 [\\/]* | [A-Za-z]:[\\/]*)
2584 re_direlt='/[^/][^/]*/\.\./'
2585 # Canonicalize the path of ld
2586 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2587 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2588 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2590 test -z "$LD" && LD="$ac_prog"
2593 # If it fails, then pretend we aren't using GCC.
2597 # If it is relative, then search for the first ld in PATH.
2601 elif test "$with_gnu_ld" = yes; then
2602 echo "$as_me:2602: checking for GNU ld" >&5
2603 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2605 echo "$as_me:2605: checking for non-GNU ld" >&5
2606 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2608 if test "${lt_cv_path_LD+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 if test -z "$LD"; then
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2613 for ac_dir in $PATH; do
2614 test -z "$ac_dir" && ac_dir=.
2615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2616 lt_cv_path_LD="$ac_dir/$ac_prog"
2617 # Check to see if the program is GNU ld. I'd rather use --version,
2618 # but apparently some GNU ld's only accept -v.
2619 # Break only if it was the GNU/non-GNU ld that we prefer.
2620 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2621 test "$with_gnu_ld" != no && break
2623 test "$with_gnu_ld" != yes && break
2629 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2634 if test -n "$LD"; then
2635 echo "$as_me:2635: result: $LD" >&5
2636 echo "${ECHO_T}$LD" >&6
2638 echo "$as_me:2638: result: no" >&5
2639 echo "${ECHO_T}no" >&6
2641 test -z "$LD" && { { echo "$as_me:2641: error: no acceptable ld found in \$PATH" >&5
2642 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2643 { (exit 1); exit 1; }; }
2644 echo "$as_me:2644: checking if the linker ($LD) is GNU ld" >&5
2645 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2646 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2650 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2651 lt_cv_prog_gnu_ld=yes
2653 lt_cv_prog_gnu_ld=no
2656 echo "$as_me:2656: result: $lt_cv_prog_gnu_ld" >&5
2657 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2658 with_gnu_ld=$lt_cv_prog_gnu_ld
2660 echo "$as_me:2660: checking for $LD option to reload object files" >&5
2661 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2662 if test "${lt_cv_ld_reload_flag+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 lt_cv_ld_reload_flag='-r'
2667 echo "$as_me:2667: result: $lt_cv_ld_reload_flag" >&5
2668 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2669 reload_flag=$lt_cv_ld_reload_flag
2670 test -n "$reload_flag" && reload_flag=" $reload_flag"
2672 echo "$as_me:2672: checking for BSD-compatible nm" >&5
2673 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2674 if test "${lt_cv_path_NM+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$NM"; then
2678 # Let the user override the test.
2681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2682 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2683 test -z "$ac_dir" && ac_dir=.
2684 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2685 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2686 # Check to see if the nm accepts a BSD-compat flag.
2687 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2688 # nm: unknown option "B" ignored
2689 # Tru64's nm complains that /dev/null is an invalid object file
2690 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2691 lt_cv_path_NM="$tmp_nm -B"
2693 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2694 lt_cv_path_NM="$tmp_nm -p"
2697 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2698 continue # so that we can try to find one that supports BSD flags
2703 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2708 echo "$as_me:2708: result: $NM" >&5
2709 echo "${ECHO_T}$NM" >&6
2711 echo "$as_me:2711: checking how to recognise dependant libraries" >&5
2712 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2713 if test "${lt_cv_deplibs_check_method+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 lt_cv_file_magic_cmd='$MAGIC_CMD'
2717 lt_cv_file_magic_test_file=
2718 lt_cv_deplibs_check_method='unknown'
2719 # Need to set the preceding variable on all platforms that support
2720 # interlibrary dependencies.
2721 # 'none' -- dependencies not supported.
2722 # `unknown' -- same as none, but documents that we really don't know.
2723 # 'pass_all' -- all dependencies passed with no checks.
2724 # 'test_compile' -- check by making test program.
2725 # 'file_magic [[regex]]' -- check by looking for files in library path
2726 # which responds to the $file_magic_cmd with a given egrep regex.
2727 # If you have `file' or equivalent on your system and you're not sure
2728 # whether `pass_all' will *always* work, you probably want this one.
2732 lt_cv_deplibs_check_method=pass_all
2736 lt_cv_deplibs_check_method=pass_all
2740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2741 lt_cv_file_magic_cmd='/usr/bin/file -L'
2742 lt_cv_file_magic_test_file=/shlib/libc.so
2745 cygwin* | mingw* | pw32*)
2746 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2747 lt_cv_file_magic_cmd='$OBJDUMP -f'
2750 darwin* | rhapsody*)
2751 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2752 lt_cv_file_magic_cmd='/usr/bin/file -L'
2754 rhapsody* | darwin1.[012])
2755 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2758 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2764 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2767 # Not sure whether the presence of OpenBSD here was a mistake.
2768 # Let's accept both of them until this is cleared up.
2769 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2770 lt_cv_file_magic_cmd=/usr/bin/file
2771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2775 lt_cv_deplibs_check_method=pass_all
2780 lt_cv_deplibs_check_method=pass_all
2784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2785 lt_cv_file_magic_cmd=/usr/bin/file
2786 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2792 # this will be overridden with pass_all, but let us keep it just in case
2793 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2797 *-32|*"-32 ") libmagic=32-bit;;
2798 *-n32|*"-n32 ") libmagic=N32;;
2799 *-64|*"-64 ") libmagic=64-bit;;
2800 *) libmagic=never-match;;
2802 # this will be overridden with pass_all, but let us keep it just in case
2803 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2806 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2807 lt_cv_deplibs_check_method=pass_all
2810 # This must be Linux ELF.
2813 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2814 lt_cv_deplibs_check_method=pass_all ;;
2816 # glibc up to 2.1.1 does not perform some relocations on ARM
2817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2819 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2823 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2824 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2826 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2832 lt_cv_file_magic_cmd=/usr/bin/file
2833 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2837 lt_cv_file_magic_cmd=/usr/bin/file
2838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2842 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2846 osf3* | osf4* | osf5*)
2847 # this will be overridden with pass_all, but let us keep it just in case
2848 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2849 lt_cv_file_magic_test_file=/shlib/libc.so
2850 lt_cv_deplibs_check_method=pass_all
2854 lt_cv_deplibs_check_method=pass_all
2858 lt_cv_deplibs_check_method=pass_all
2859 lt_cv_file_magic_test_file=/lib/libc.so
2862 sysv5uw[78]* | sysv4*uw2*)
2863 lt_cv_deplibs_check_method=pass_all
2866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2867 case $host_vendor in
2869 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]'
2870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2873 lt_cv_deplibs_check_method=pass_all
2876 lt_cv_file_magic_cmd='/bin/file'
2877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2880 lt_cv_file_magic_cmd='/bin/file'
2881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2882 lt_cv_file_magic_test_file=/lib/libc.so
2889 echo "$as_me:2889: result: $lt_cv_deplibs_check_method" >&5
2890 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2891 file_magic_cmd=$lt_cv_file_magic_cmd
2892 deplibs_check_method=$lt_cv_deplibs_check_method
2894 # Check for command to grab the raw symbol name followed by C symbol from nm.
2895 echo "$as_me:2895: checking command to parse $NM output" >&5
2896 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2897 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 # These are sane defaults that work on at least a few old systems.
2902 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2904 # Character class describing NM global symbol codes.
2905 symcode='[BCDEGRST]'
2907 # Regexp to match symbols that can be accessed directly from C.
2908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2910 # Transform the above into a raw symbol and a C symbol.
2911 symxfrm='\1 \2\3 \3'
2913 # Transform an extracted symbol line into a proper C declaration
2914 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2916 # Transform an extracted symbol line into symbol name and symbol address
2917 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'"
2919 # Define system-specific variables.
2924 cygwin* | mingw* | pw32*)
2925 symcode='[ABCDGISTW]'
2927 hpux*) # Its linker distinguishes data from code symbols
2928 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2929 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'"
2932 symcode='[BCDEGRST]'
2942 # Handle CRLF in mingw tool chain
2946 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2950 # If we're using GNU nm, then use its standard symbol codes.
2951 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2952 symcode='[ABCDGISTW]'
2955 # Try without a prefix undercore, then with it.
2956 for ac_symprfx in "" "_"; do
2958 # Write the raw and C identifiers.
2959 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2961 # Check to see that the pipe works correctly.
2964 cat > conftest.$ac_ext <<EOF
2969 void nm_test_func(){}
2973 int main(){nm_test_var='a';nm_test_func();return(0);}
2976 if { (eval echo "$as_me:2976: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>&5
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 # Now try to grab the symbols.
2983 if { (eval echo "$as_me:2983: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2984 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2986 echo "$as_me:2986: \$? = $ac_status" >&5
2987 (exit $ac_status); } && test -s "$nlist"; then
2988 # Try sorting and uniquifying the output.
2989 if sort "$nlist" | uniq > "$nlist"T; then
2990 mv -f "$nlist"T "$nlist"
2995 # Make sure that we snagged all the symbols we need.
2996 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2997 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2998 cat <<EOF > conftest.$ac_ext
3004 # Now generate the symbol file.
3005 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3007 cat <<EOF >> conftest.$ac_ext
3008 #if defined (__STDC__) && __STDC__
3009 # define lt_ptr void *
3011 # define lt_ptr char *
3015 /* The mapping between symbol names and symbols. */
3020 lt_preloaded_symbols[] =
3023 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3024 cat <<\EOF >> conftest.$ac_ext
3032 # Now try linking the two files.
3033 mv conftest.$ac_objext conftstm.$ac_objext
3035 save_CFLAGS="$CFLAGS"
3036 LIBS="conftstm.$ac_objext"
3037 CFLAGS="$CFLAGS$no_builtin_flag"
3038 if { (eval echo "$as_me:3038: \"$ac_link\"") >&5
3039 (eval $ac_link) 2>&5
3041 echo "$as_me:3041: \$? = $ac_status" >&5
3042 (exit $ac_status); } && test -s conftest; then
3046 CFLAGS="$save_CFLAGS"
3048 echo "cannot find nm_test_func in $nlist" >&5
3051 echo "cannot find nm_test_var in $nlist" >&5
3054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3057 echo "$progname: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 rm -f conftest* conftst*
3062 # Do not use the global_symbol_pipe unless it works.
3063 if test "$pipe_works" = yes; then
3066 lt_cv_sys_global_symbol_pipe=
3072 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3073 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3074 global_symbol_to_cdecl=
3075 global_symbol_to_c_name_address=
3077 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3078 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3080 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3082 echo "$as_me:3082: result: failed" >&5
3083 echo "${ECHO_T}failed" >&6
3085 echo "$as_me:3085: result: ok" >&5
3086 echo "${ECHO_T}ok" >&6
3089 for ac_header in dlfcn.h
3091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3092 echo "$as_me:3092: checking for $ac_header" >&5
3093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line 3098 "configure"
3099 #include "confdefs.h"
3100 #include <$ac_header>
3102 if { (eval echo "$as_me:3102: \"$ac_cpp conftest.$ac_ext\"") >&5
3103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3105 egrep -v '^ *\+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:3108: \$? = $ac_status" >&5
3109 (exit $ac_status); } >/dev/null; then
3110 if test -s conftest.err; then
3111 ac_cpp_err=$ac_c_preproc_warn_flag
3118 if test -z "$ac_cpp_err"; then
3119 eval "$as_ac_Header=yes"
3121 echo "$as_me: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 eval "$as_ac_Header=no"
3125 rm -f conftest.err conftest.$ac_ext
3127 echo "$as_me:3127: result: `eval echo '${'$as_ac_Header'}'`" >&5
3128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3130 cat >>confdefs.h <<EOF
3131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3137 # Only perform the check for file, if the check method requires it
3138 case $deplibs_check_method in
3140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3141 echo "$as_me:3141: checking for ${ac_tool_prefix}file" >&5
3142 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3151 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3154 ac_save_MAGIC_CMD="$MAGIC_CMD"
3155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3156 ac_dummy="/usr/bin:$PATH"
3157 for ac_dir in $ac_dummy; do
3158 test -z "$ac_dir" && ac_dir=.
3159 if test -f $ac_dir/${ac_tool_prefix}file; then
3160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3161 if test -n "$file_magic_test_file"; then
3162 case $deplibs_check_method in
3164 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3167 egrep "$file_magic_regex" > /dev/null; then
3172 *** Warning: the command libtool uses to detect shared libraries,
3173 *** $file_magic_cmd, produces output that libtool cannot recognize.
3174 *** The result is that libtool may fail to recognize shared libraries
3175 *** as such. This will affect the creation of libtool libraries that
3176 *** depend on shared libraries, but programs linked with such libtool
3177 *** libraries will work regardless of this problem. Nevertheless, you
3178 *** may want to report the problem to your system manager and/or to
3179 *** bug-libtool@gnu.org
3189 MAGIC_CMD="$ac_save_MAGIC_CMD"
3194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3195 if test -n "$MAGIC_CMD"; then
3196 echo "$as_me:3196: result: $MAGIC_CMD" >&5
3197 echo "${ECHO_T}$MAGIC_CMD" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 if test -z "$lt_cv_path_MAGIC_CMD"; then
3204 if test -n "$ac_tool_prefix"; then
3205 echo "$as_me:3205: checking for file" >&5
3206 echo $ECHO_N "checking for file... $ECHO_C" >&6
3207 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3218 ac_save_MAGIC_CMD="$MAGIC_CMD"
3219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3220 ac_dummy="/usr/bin:$PATH"
3221 for ac_dir in $ac_dummy; do
3222 test -z "$ac_dir" && ac_dir=.
3223 if test -f $ac_dir/file; then
3224 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3225 if test -n "$file_magic_test_file"; then
3226 case $deplibs_check_method in
3228 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3231 egrep "$file_magic_regex" > /dev/null; then
3236 *** Warning: the command libtool uses to detect shared libraries,
3237 *** $file_magic_cmd, produces output that libtool cannot recognize.
3238 *** The result is that libtool may fail to recognize shared libraries
3239 *** as such. This will affect the creation of libtool libraries that
3240 *** depend on shared libraries, but programs linked with such libtool
3241 *** libraries will work regardless of this problem. Nevertheless, you
3242 *** may want to report the problem to your system manager and/or to
3243 *** bug-libtool@gnu.org
3253 MAGIC_CMD="$ac_save_MAGIC_CMD"
3258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3259 if test -n "$MAGIC_CMD"; then
3260 echo "$as_me:3260: result: $MAGIC_CMD" >&5
3261 echo "${ECHO_T}$MAGIC_CMD" >&6
3263 echo "$as_me:3263: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3279 echo "$as_me:3279: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_RANLIB+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$RANLIB"; then
3285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3287 ac_save_IFS=$IFS; IFS=$ac_path_separator
3289 for ac_dir in $ac_dummy; do
3291 test -z "$ac_dir" && ac_dir=.
3292 $as_executable_p "$ac_dir/$ac_word" || continue
3293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3294 echo "$as_me:3294: found $ac_dir/$ac_word" >&5
3300 RANLIB=$ac_cv_prog_RANLIB
3301 if test -n "$RANLIB"; then
3302 echo "$as_me:3302: result: $RANLIB" >&5
3303 echo "${ECHO_T}$RANLIB" >&6
3305 echo "$as_me:3305: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3310 if test -z "$ac_cv_prog_RANLIB"; then
3311 ac_ct_RANLIB=$RANLIB
3312 # Extract the first word of "ranlib", so it can be a program name with args.
3313 set dummy ranlib; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$ac_ct_RANLIB"; then
3320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_ac_ct_RANLIB="ranlib"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3333 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3337 if test -n "$ac_ct_RANLIB"; then
3338 echo "$as_me:3338: result: $ac_ct_RANLIB" >&5
3339 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3341 echo "$as_me:3341: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3345 RANLIB=$ac_ct_RANLIB
3347 RANLIB="$ac_cv_prog_RANLIB"
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}strip; ac_word=$2
3353 echo "$as_me:3353: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_STRIP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$STRIP"; then
3359 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3361 ac_save_IFS=$IFS; IFS=$ac_path_separator
3363 for ac_dir in $ac_dummy; do
3365 test -z "$ac_dir" && ac_dir=.
3366 $as_executable_p "$ac_dir/$ac_word" || continue
3367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3368 echo "$as_me:3368: found $ac_dir/$ac_word" >&5
3374 STRIP=$ac_cv_prog_STRIP
3375 if test -n "$STRIP"; then
3376 echo "$as_me:3376: result: $STRIP" >&5
3377 echo "${ECHO_T}$STRIP" >&6
3379 echo "$as_me:3379: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3384 if test -z "$ac_cv_prog_STRIP"; then
3386 # Extract the first word of "strip", so it can be a program name with args.
3387 set dummy strip; ac_word=$2
3388 echo "$as_me:3388: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 if test -n "$ac_ct_STRIP"; then
3394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3396 ac_save_IFS=$IFS; IFS=$ac_path_separator
3398 for ac_dir in $ac_dummy; do
3400 test -z "$ac_dir" && ac_dir=.
3401 $as_executable_p "$ac_dir/$ac_word" || continue
3402 ac_cv_prog_ac_ct_STRIP="strip"
3403 echo "$as_me:3403: found $ac_dir/$ac_word" >&5
3407 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3411 if test -n "$ac_ct_STRIP"; then
3412 echo "$as_me:3412: result: $ac_ct_STRIP" >&5
3413 echo "${ECHO_T}$ac_ct_STRIP" >&6
3415 echo "$as_me:3415: result: no" >&5
3416 echo "${ECHO_T}no" >&6
3421 STRIP="$ac_cv_prog_STRIP"
3427 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3428 if test "${enable_libtool_lock+set}" = set; then
3429 enableval="$enable_libtool_lock"
3432 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3434 # Some flags need to be propagated to the compiler or linker for good
3438 # Find out which ABI we are using.
3439 echo '#line 3439 "configure"' > conftest.$ac_ext
3440 if { (eval echo "$as_me:3440: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:3443: \$? = $ac_status" >&5
3444 (exit $ac_status); }; then
3445 case `/usr/bin/file conftest.$ac_objext` in
3461 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3462 SAVE_CFLAGS="$CFLAGS"
3463 CFLAGS="$CFLAGS -belf"
3464 echo "$as_me:3464: checking whether the C compiler needs -belf" >&5
3465 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3466 if test "${lt_cv_cc_needs_belf+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 cat >conftest.$ac_ext <<_ACEOF
3477 #line 3477 "configure"
3478 #include "confdefs.h"
3488 rm -f conftest.$ac_objext conftest$ac_exeext
3489 if { (eval echo "$as_me:3489: \"$ac_link\"") >&5
3490 (eval $ac_link) 2>&5
3492 echo "$as_me:3492: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -s conftest$ac_exeext'
3495 { (eval echo "$as_me:3495: \"$ac_try\"") >&5
3498 echo "$as_me:3498: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 lt_cv_cc_needs_belf=yes
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 lt_cv_cc_needs_belf=no
3506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 echo "$as_me:3514: result: $lt_cv_cc_needs_belf" >&5
3515 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3518 CFLAGS="$SAVE_CFLAGS"
3524 # Sed substitution that helps us do robust quoting. It backslashifies
3525 # metacharacters that are still active within double-quoted strings.
3526 Xsed='sed -e s/^X//'
3527 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3529 # Same as above, but do not quote variable references.
3530 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3532 # Sed substitution to delay expansion of an escaped shell variable in a
3533 # double_quote_subst'ed string.
3534 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3540 default_ofile=libtool
3541 can_build_shared=yes
3543 # All known linkers require a `.a' archive for static linking (except M$VC,
3544 # which needs '.lib').
3546 ltmain="$ac_aux_dir/ltmain.sh"
3547 ofile="$default_ofile"
3548 with_gnu_ld="$lt_cv_prog_gnu_ld"
3549 need_locks="$enable_libtool_lock"
3552 old_CFLAGS="$CFLAGS"
3554 # Set sane defaults for various variables
3555 test -z "$AR" && AR=ar
3556 test -z "$AR_FLAGS" && AR_FLAGS=cru
3557 test -z "$AS" && AS=as
3558 test -z "$CC" && CC=cc
3559 test -z "$DLLTOOL" && DLLTOOL=dlltool
3560 test -z "$LD" && LD=ld
3561 test -z "$LN_S" && LN_S="ln -s"
3562 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3563 test -z "$NM" && NM=nm
3564 test -z "$OBJDUMP" && OBJDUMP=objdump
3565 test -z "$RANLIB" && RANLIB=:
3566 test -z "$STRIP" && STRIP=:
3567 test -z "$ac_objext" && ac_objext=o
3569 if test x"$host" != x"$build"; then
3570 ac_tool_prefix=${host_alias}-
3575 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3578 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3583 # AIX sometimes has problems with the GCC collect2 program. For some
3584 # reason, if we set the COLLECT_NAMES environment variable, the problems
3585 # vanish in a puff of smoke.
3586 if test "X${COLLECT_NAMES+set}" != Xset; then
3588 export COLLECT_NAMES
3593 # Determine commands to create old-style static archives.
3594 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3595 old_postinstall_cmds='chmod 644 $oldlib'
3596 old_postuninstall_cmds=
3598 if test -n "$RANLIB"; then
3601 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3604 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3607 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3610 # Allow CC to be a program name with arguments.
3614 echo "$as_me:3614: checking for objdir" >&5
3615 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3616 rm -f .libs 2>/dev/null
3617 mkdir .libs 2>/dev/null
3618 if test -d .libs; then
3621 # MS-DOS does not allow filenames that begin with a dot.
3624 rmdir .libs 2>/dev/null
3625 echo "$as_me:3625: result: $objdir" >&5
3626 echo "${ECHO_T}$objdir" >&6
3628 # Check whether --with-pic or --without-pic was given.
3629 if test "${with_pic+set}" = set; then
3635 test -z "$pic_mode" && pic_mode=default
3637 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3638 # in isolation, and that seeing it set (from the cache) indicates that
3639 # the associated values are set (in the cache) correctly too.
3640 echo "$as_me:3640: checking for $compiler option to produce PIC" >&5
3641 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3642 if test "${lt_cv_prog_cc_pic+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 lt_cv_prog_cc_shlib=
3648 lt_cv_prog_cc_static=
3649 lt_cv_prog_cc_no_builtin=
3650 lt_cv_prog_cc_can_build_shared=$can_build_shared
3652 if test "$GCC" = yes; then
3653 lt_cv_prog_cc_wl='-Wl,'
3654 lt_cv_prog_cc_static='-static'
3658 # Below there is a dirty hack to force normal static linking with -ldl
3659 # The problem is because libdl dynamically linked with both libc and
3660 # libC (AIX C++ library), which obviously doesn't included in libraries
3661 # list by gcc. This cause undefined symbols with -static flags.
3662 # This hack allows C programs to be linked with "-static -ldl", but
3663 # not sure about C++ programs.
3664 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3667 # FIXME: we need at least 68020 code to build shared libraries, but
3668 # adding the `-m68020' flag to GCC prevents building anything better,
3670 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3672 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3673 # PIC is the default for these OSes.
3675 darwin* | rhapsody*)
3676 # PIC is the default on this platform
3677 # Common symbols not allowed in MH_DYLIB files
3678 lt_cv_prog_cc_pic='-fno-common'
3680 cygwin* | mingw* | pw32* | os2*)
3681 # This hack is so that the source file can tell whether it is being
3682 # built for inclusion in a dll (and should export symbols for example).
3683 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3686 if test -d /usr/nec; then
3687 lt_cv_prog_cc_pic=-Kconform_pic
3691 lt_cv_prog_cc_pic='-fPIC'
3695 # PORTME Check for PIC flags for the system compiler.
3697 aix3* | aix4* | aix5*)
3698 lt_cv_prog_cc_wl='-Wl,'
3699 # All AIX code is PIC.
3700 if test "$host_cpu" = ia64; then
3701 # AIX 5 now supports IA64 processor
3702 lt_cv_prog_cc_static='-Bstatic'
3704 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3708 hpux9* | hpux10* | hpux11*)
3709 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3710 lt_cv_prog_cc_wl='-Wl,'
3711 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3712 lt_cv_prog_cc_pic='+Z'
3716 lt_cv_prog_cc_wl='-Wl,'
3717 lt_cv_prog_cc_static='-non_shared'
3718 # PIC (with -KPIC) is the default.
3722 echo '__INTEL_COMPILER' > conftest.$ac_ext
3723 if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null
3725 lt_cv_prog_cc_can_build_shared=no
3728 lt_cv_prog_cc_pic='-KPIC'
3729 lt_cv_prog_cc_static='-static'
3730 lt_cv_prog_cc_wl='-Qoption,ld,'
3734 cygwin* | mingw* | pw32* | os2*)
3735 # This hack is so that the source file can tell whether it is being
3736 # built for inclusion in a dll (and should export symbols for example).
3737 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3741 lt_cv_prog_cc_pic='-KPIC'
3742 lt_cv_prog_cc_static='-Bstatic'
3745 osf3* | osf4* | osf5*)
3746 # All OSF/1 code is PIC.
3747 lt_cv_prog_cc_wl='-Wl,'
3748 lt_cv_prog_cc_static='-non_shared'
3752 lt_cv_prog_cc_pic='-Kpic'
3753 lt_cv_prog_cc_static='-dn'
3754 lt_cv_prog_cc_shlib='-belf'
3758 lt_cv_prog_cc_pic='-KPIC'
3759 lt_cv_prog_cc_static='-Bstatic'
3760 lt_cv_prog_cc_wl='-Wl,'
3764 lt_cv_prog_cc_pic='-PIC'
3765 lt_cv_prog_cc_static='-Bstatic'
3766 lt_cv_prog_cc_wl='-Qoption ld '
3769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3770 lt_cv_prog_cc_pic='-KPIC'
3771 lt_cv_prog_cc_static='-Bstatic'
3772 if test "x$host_vendor" = xsni; then
3773 lt_cv_prog_cc_wl='-LD'
3775 lt_cv_prog_cc_wl='-Wl,'
3780 lt_cv_prog_cc_pic='-pic'
3781 lt_cv_prog_cc_static='-Bstatic'
3785 if test -d /usr/nec ;then
3786 lt_cv_prog_cc_pic='-Kconform_pic'
3787 lt_cv_prog_cc_static='-Bstatic'
3792 lt_cv_prog_cc_can_build_shared=no
3799 if test -z "$lt_cv_prog_cc_pic"; then
3800 echo "$as_me:3800: result: none" >&5
3801 echo "${ECHO_T}none" >&6
3803 echo "$as_me:3803: result: $lt_cv_prog_cc_pic" >&5
3804 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3806 # Check to make sure the pic_flag actually works.
3807 echo "$as_me:3807: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3808 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3809 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 save_CFLAGS="$CFLAGS"
3813 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3814 cat >conftest.$ac_ext <<_ACEOF
3815 #line 3815 "configure"
3816 #include "confdefs.h"
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:3827: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>&5
3830 echo "$as_me:3830: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -s conftest.$ac_objext'
3833 { (eval echo "$as_me:3833: \"$ac_try\"") >&5
3836 echo "$as_me:3836: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3839 hpux9* | hpux10* | hpux11*)
3840 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3841 # they create non-PIC objects. So, if there were any warnings, we
3842 # assume that PIC is not supported.
3843 if test -s conftest.err; then
3844 lt_cv_prog_cc_pic_works=no
3846 lt_cv_prog_cc_pic_works=yes
3850 lt_cv_prog_cc_pic_works=yes
3855 echo "$as_me: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 lt_cv_prog_cc_pic_works=no
3860 rm -f conftest.$ac_objext conftest.$ac_ext
3861 CFLAGS="$save_CFLAGS"
3865 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3867 lt_cv_prog_cc_can_build_shared=no
3869 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3872 echo "$as_me:3872: result: $lt_cv_prog_cc_pic_works" >&5
3873 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3876 # Check for any special shared library compilation flags.
3877 if test -n "$lt_cv_prog_cc_shlib"; then
3878 { echo "$as_me:3878: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3879 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3880 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3882 { echo "$as_me:3882: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3883 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3884 lt_cv_prog_cc_can_build_shared=no
3888 echo "$as_me:3888: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3889 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3890 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 lt_cv_prog_cc_static_works=no
3894 save_LDFLAGS="$LDFLAGS"
3895 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3896 cat >conftest.$ac_ext <<_ACEOF
3897 #line 3897 "configure"
3898 #include "confdefs.h"
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (eval echo "$as_me:3909: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3912 echo "$as_me:3912: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -s conftest$ac_exeext'
3915 { (eval echo "$as_me:3915: \"$ac_try\"") >&5
3918 echo "$as_me:3918: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 lt_cv_prog_cc_static_works=yes
3922 echo "$as_me: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3926 LDFLAGS="$save_LDFLAGS"
3930 # Belt *and* braces to stop my trousers falling down:
3931 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3932 echo "$as_me:3932: result: $lt_cv_prog_cc_static_works" >&5
3933 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3935 pic_flag="$lt_cv_prog_cc_pic"
3936 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3937 wl="$lt_cv_prog_cc_wl"
3938 link_static_flag="$lt_cv_prog_cc_static"
3939 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3940 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3942 # Check to see if options -o and -c are simultaneously supported by compiler
3943 echo "$as_me:3943: checking if $compiler supports -c -o file.$ac_objext" >&5
3944 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3945 if test "${lt_cv_compiler_c_o+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 $rm -r conftest 2>/dev/null
3952 echo "int some_variable = 0;" > conftest.$ac_ext
3954 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3955 # that will create temporary files in the current directory regardless of
3956 # the output directory. Thus, making CWD read-only will cause this test
3957 # to fail, enabling locking or at least warning the user not to do parallel
3960 save_CFLAGS="$CFLAGS"
3961 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3963 if { (eval echo configure:3963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3964 # The compiler can only warn and ignore the option if not recognized
3965 # So say no if there are warnings
3966 if test -s out/conftest.err; then
3967 lt_cv_compiler_c_o=no
3969 lt_cv_compiler_c_o=yes
3972 # Append any errors to the config.log.
3973 cat out/conftest.err 1>&5
3974 lt_cv_compiler_c_o=no
3976 CFLAGS="$save_CFLAGS"
3982 $rm -r conftest 2>/dev/null
3986 compiler_c_o=$lt_cv_compiler_c_o
3987 echo "$as_me:3987: result: $compiler_c_o" >&5
3988 echo "${ECHO_T}$compiler_c_o" >&6
3990 if test x"$compiler_c_o" = x"yes"; then
3991 # Check to see if we can write to a .lo
3992 echo "$as_me:3992: checking if $compiler supports -c -o file.lo" >&5
3993 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3994 if test "${lt_cv_compiler_o_lo+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 lt_cv_compiler_o_lo=no
3999 save_CFLAGS="$CFLAGS"
4000 CFLAGS="$CFLAGS -c -o conftest.lo"
4001 save_objext="$ac_objext"
4003 cat >conftest.$ac_ext <<_ACEOF
4004 #line 4004 "configure"
4005 #include "confdefs.h"
4010 int some_variable = 0;
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:4016: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4019 echo "$as_me:4019: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (eval echo "$as_me:4022: \"$ac_try\"") >&5
4025 echo "$as_me:4025: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 # The compiler can only warn and ignore the option if not recognized
4028 # So say no if there are warnings
4029 if test -s conftest.err; then
4030 lt_cv_compiler_o_lo=no
4032 lt_cv_compiler_o_lo=yes
4036 echo "$as_me: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 rm -f conftest.$ac_objext conftest.$ac_ext
4040 ac_objext="$save_objext"
4041 CFLAGS="$save_CFLAGS"
4045 compiler_o_lo=$lt_cv_compiler_o_lo
4046 echo "$as_me:4046: result: $compiler_o_lo" >&5
4047 echo "${ECHO_T}$compiler_o_lo" >&6
4052 # Check to see if we can do hard links to lock some files if needed
4053 hard_links="nottested"
4054 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4055 # do not overwrite the value of need_locks provided by the user
4056 echo "$as_me:4056: checking if we can lock with hard links" >&5
4057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4062 ln conftest.a conftest.b 2>&5 || hard_links=no
4063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4064 echo "$as_me:4064: result: $hard_links" >&5
4065 echo "${ECHO_T}$hard_links" >&6
4066 if test "$hard_links" = no; then
4067 { echo "$as_me:4067: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4075 if test "$GCC" = yes; then
4076 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4077 echo "$as_me:4077: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4078 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4079 echo "int some_variable = 0;" > conftest.$ac_ext
4080 save_CFLAGS="$CFLAGS"
4081 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4082 compiler_rtti_exceptions=no
4083 cat >conftest.$ac_ext <<_ACEOF
4084 #line 4084 "configure"
4085 #include "confdefs.h"
4090 int some_variable = 0;
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:4096: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>&5
4099 echo "$as_me:4099: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:4102: \"$ac_try\"") >&5
4105 echo "$as_me:4105: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 # The compiler can only warn and ignore the option if not recognized
4108 # So say no if there are warnings
4109 if test -s conftest.err; then
4110 compiler_rtti_exceptions=no
4112 compiler_rtti_exceptions=yes
4116 echo "$as_me: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 rm -f conftest.$ac_objext conftest.$ac_ext
4120 CFLAGS="$save_CFLAGS"
4121 echo "$as_me:4121: result: $compiler_rtti_exceptions" >&5
4122 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4124 if test "$compiler_rtti_exceptions" = "yes"; then
4125 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4127 no_builtin_flag=' -fno-builtin'
4131 # See if the linker supports building shared libraries.
4132 echo "$as_me:4132: checking whether the linker ($LD) supports shared libraries" >&5
4133 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4135 allow_undefined_flag=
4137 need_lib_prefix=unknown
4138 need_version=unknown
4139 # when you set need_version to no, make sure it does not cause -set_version
4140 # flags to be left without arguments
4142 archive_expsym_cmds=
4143 old_archive_from_new_cmds=
4144 old_archive_from_expsyms_cmds=
4145 export_dynamic_flag_spec=
4146 whole_archive_flag_spec=
4147 thread_safe_flag_spec=
4148 hardcode_into_libs=no
4149 hardcode_libdir_flag_spec=
4150 hardcode_libdir_separator=
4153 hardcode_shlibpath_var=unsupported
4155 link_all_deplibs=unknown
4156 always_export_symbols=no
4157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4158 # include_expsyms should be a list of space-separated symbols to be *always*
4159 # included in the symbol list
4161 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4162 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4163 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4164 # as well as any symbol that contains `d'.
4165 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4166 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4167 # platforms (ab)use it in PIC code, but their linkers get confused if
4168 # the symbol is explicitly referenced. Since portable code cannot
4169 # rely on this symbol name, it's probably fine to never include it in
4170 # preloaded symbol tables.
4171 extract_expsyms_cmds=
4174 cygwin* | mingw* | pw32*)
4175 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4176 # When not using gcc, we currently assume that we are using
4177 # Microsoft Visual C++.
4178 if test "$GCC" != yes; then
4188 if test "$with_gnu_ld" = yes; then
4189 # If archive_cmds runs LD, not CC, wlarc should be empty
4192 # See if GNU ld supports shared libraries.
4194 aix3* | aix4* | aix5*)
4195 # On AIX, the GNU linker is very broken
4196 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4200 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4201 *** to be unable to reliably create shared libraries on AIX.
4202 *** Therefore, libtool is disabling shared libraries support. If you
4203 *** really care for shared libraries, you may want to modify your PATH
4204 *** so that a non-GNU linker is found, and then restart.
4210 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)'
4211 hardcode_libdir_flag_spec='-L$libdir'
4212 hardcode_minus_L=yes
4214 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4215 # that the semantics of dynamic libraries on AmigaOS, at least up
4216 # to version 4, is to share data among multiple programs linked
4217 # with the same dynamic library. Since this doesn't match the
4218 # behavior of shared libraries on other platforms, we can use
4224 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4225 allow_undefined_flag=unsupported
4226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4227 # support --undefined. This deserves some investigation. FIXME
4228 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4234 cygwin* | mingw* | pw32*)
4235 # hardcode_libdir_flag_spec is actually meaningless, as there is
4236 # no search path for DLLs.
4237 hardcode_libdir_flag_spec='-L$libdir'
4238 allow_undefined_flag=unsupported
4239 always_export_symbols=yes
4241 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4242 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4243 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4244 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4245 else $CC -o impgen impgen.c ; fi)~
4246 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4248 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4250 # cygwin and mingw dlls have different entry points and sets of symbols
4252 # FIXME: what about values for MSVC?
4253 dll_entry=__cygwin_dll_entry@12
4254 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4258 dll_entry=_DllMainCRTStartup@12
4259 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4263 # mingw and cygwin differ, and it's simplest to just exclude the union
4264 # of the two symbol sets.
4265 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4267 # recent cygwin and mingw systems supply a stub DllMain which the user
4268 # can override, but on older systems we have to supply one (in ltdll.c)
4269 if test "x$lt_cv_need_dllmain" = "xyes"; then
4270 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4271 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~
4272 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4278 # Extract the symbol export list from an `--export-all' def file,
4279 # then regenerate the def file from the symbol export list, so that
4280 # the compiled dll only exports the symbol export list.
4281 # Be careful not to strip the DATA tag left be newer dlltools.
4282 export_symbols_cmds="$ltdll_cmds"'
4283 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4284 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4286 # If the export-symbols file already is a .def file (1st line
4287 # is EXPORTS), use it as is.
4288 # If DATA tags from a recent dlltool are present, honour them!
4289 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4290 cp $export_symbols $output_objdir/$soname-def;
4292 echo EXPORTS > $output_objdir/$soname-def;
4294 cat $export_symbols | while read symbol; do
4297 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4298 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4300 _lt_hint=`expr 1 + \$_lt_hint`;
4304 $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~
4305 $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~
4306 $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~
4307 $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~
4308 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4316 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4317 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4322 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4327 *** create shared libraries on Solaris systems. Therefore, libtool
4328 *** is disabling shared libraries support. We urge you to upgrade GNU
4329 *** binutils to release 2.9.1 or newer. Another option is to modify
4330 *** your PATH or compiler configuration so that the native linker is
4331 *** used, and then restart.
4334 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4343 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4346 hardcode_shlibpath_var=no
4350 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4359 if test "$ld_shlibs" = yes; then
4360 runpath_var=LD_RUN_PATH
4361 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4362 export_dynamic_flag_spec='${wl}--export-dynamic'
4364 cygwin* | mingw* | pw32*)
4365 # dlltool doesn't understand --whole-archive et. al.
4366 whole_archive_flag_spec=
4369 # ancient GNU ld didn't support --whole-archive et. al.
4370 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4371 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4373 whole_archive_flag_spec=
4379 # PORTME fill in a description of your system's linker (not GNU ld)
4382 allow_undefined_flag=unsupported
4383 always_export_symbols=yes
4384 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'
4385 # Note: this linker hardcodes the directories in LIBPATH if there
4386 # are no directories specified by -L.
4387 hardcode_minus_L=yes
4388 if test "$GCC" = yes && test -z "$link_static_flag"; then
4389 # Neither direct hardcoding nor static linking is supported with a
4391 hardcode_direct=unsupported
4396 if test "$host_cpu" = ia64; then
4397 # On IA64, the linker does run time linking by default, so we don't
4398 # have to do anything special.
4399 aix_use_runtimelinking=no
4400 exp_sym_flag='-Bexport'
4403 aix_use_runtimelinking=no
4405 # Test if we are trying to use run time linking or normal
4406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4407 # need to do runtime linking.
4408 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4409 for ld_flag in $LDFLAGS; do
4410 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4411 aix_use_runtimelinking=yes
4417 exp_sym_flag='-bexport'
4418 no_entry_flag='-bnoentry'
4421 # When large executables or shared objects are built, AIX ld can
4422 # have problems creating the table of contents. If linking a library
4423 # or program results in "error TOC overflow" add -mminimal-toc to
4424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4429 hardcode_libdir_separator=':'
4430 if test "$GCC" = yes; then
4431 case $host_os in aix4.[012]|aix4.[012].*)
4432 collect2name=`${CC} -print-prog-name=collect2`
4433 if test -f "$collect2name" && \
4434 strings "$collect2name" | grep resolve_lib_name >/dev/null
4436 # We have reworked collect2
4439 # We have old collect2
4440 hardcode_direct=unsupported
4441 # It fails to find uninstalled libraries when the uninstalled
4442 # path is not listed in the libpath. Setting hardcode_minus_L
4443 # to unsupported forces relinking
4444 hardcode_minus_L=yes
4445 hardcode_libdir_flag_spec='-L$libdir'
4446 hardcode_libdir_separator=
4450 shared_flag='-shared'
4453 if test "$host_cpu" = ia64; then
4454 shared_flag='${wl}-G'
4456 if test "$aix_use_runtimelinking" = yes; then
4457 shared_flag='${wl}-G'
4459 shared_flag='${wl}-bM:SRE'
4464 # It seems that -bexpall can do strange things, so it is better to
4465 # generate a list of symbols to export.
4466 always_export_symbols=yes
4467 if test "$aix_use_runtimelinking" = yes; then
4468 # Warning - without using the other runtime loading flags (-brtl),
4469 # -berok will link without error, but may produce a broken library.
4470 allow_undefined_flag='-berok'
4471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4472 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"
4474 if test "$host_cpu" = ia64; then
4475 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4476 allow_undefined_flag="-z nodefs"
4477 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"
4479 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4480 # Warning - without using the other run time loading flags,
4481 # -berok will link without error, but may produce a broken library.
4482 allow_undefined_flag='${wl}-berok'
4483 # This is a bit strange, but is similar to how AIX traditionally builds
4484 # it's shared libraries.
4485 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'
4491 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)'
4492 hardcode_libdir_flag_spec='-L$libdir'
4493 hardcode_minus_L=yes
4494 # see comment about different semantics on the GNU ld section
4498 cygwin* | mingw* | pw32*)
4499 # When not using gcc, we currently assume that we are using
4500 # Microsoft Visual C++.
4501 # hardcode_libdir_flag_spec is actually meaningless, as there is
4502 # no search path for DLLs.
4503 hardcode_libdir_flag_spec=' '
4504 allow_undefined_flag=unsupported
4505 # Tell ltmain to make .lib files, not .a files.
4507 # FIXME: Setting linknames here is a bad hack.
4508 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4509 # The linker will automatically build a .lib file if we build a DLL.
4510 old_archive_from_new_cmds='true'
4511 # FIXME: Should let the user specify the lib program.
4512 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4513 fix_srcfile_path='`cygpath -w "$srcfile"`'
4516 darwin* | rhapsody*)
4518 rhapsody* | darwin1.[012])
4519 allow_undefined_flag='-undefined suppress'
4522 allow_undefined_flag='-flat_namespace -undefined suppress'
4525 # FIXME: Relying on posixy $() will cause problems for
4526 # cross-compilation, but unfortunately the echo tests do not
4527 # yet detect zsh echo's removal of \ escapes.
4528 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'
4529 # We need to add '_' to the symbols in $export_symbols first
4530 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4532 hardcode_shlibpath_var=no
4533 whole_archive_flag_spec='-all_load $convenience'
4540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4541 # support. Future versions do this automatically, but an explicit c++rt0.o
4542 # does not break anything, and helps significantly (at the cost of a little
4545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4546 hardcode_libdir_flag_spec='-R$libdir'
4548 hardcode_shlibpath_var=no
4551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4555 hardcode_minus_L=yes
4556 hardcode_shlibpath_var=no
4559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4561 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4562 hardcode_libdir_flag_spec='-R$libdir'
4564 hardcode_shlibpath_var=no
4567 hpux9* | hpux10* | hpux11*)
4569 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' ;;
4570 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4573 hardcode_libdir_separator=:
4575 hardcode_minus_L=yes # Not in the search PATH, but as the default
4576 # location of the library.
4577 export_dynamic_flag_spec='${wl}-E'
4581 if test "$GCC" = yes; then
4582 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'
4584 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'
4586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4587 hardcode_libdir_separator=:
4588 link_all_deplibs=yes
4592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4595 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4597 hardcode_libdir_flag_spec='-R$libdir'
4599 hardcode_shlibpath_var=no
4603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4606 hardcode_libdir_separator=:
4607 hardcode_shlibpath_var=no
4612 hardcode_shlibpath_var=no
4613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4616 export_dynamic_flag_spec='${wl}-E'
4619 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4621 hardcode_libdir_flag_spec='-R$libdir'
4624 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4632 hardcode_libdir_flag_spec='-L$libdir'
4633 hardcode_minus_L=yes
4634 allow_undefined_flag=unsupported
4635 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'
4636 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4640 if test "$GCC" = yes; then
4641 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4642 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'
4644 allow_undefined_flag=' -expect_unresolved \*'
4645 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'
4647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4648 hardcode_libdir_separator=:
4651 osf4* | osf5*) # as osf3* with the addition of -msym flag
4652 if test "$GCC" = yes; then
4653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4654 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'
4655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4657 allow_undefined_flag=' -expect_unresolved \*'
4658 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'
4659 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4660 $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'
4662 #Both c and cxx compiler support -rpath directly
4663 hardcode_libdir_flag_spec='-rpath $libdir'
4665 hardcode_libdir_separator=:
4669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4670 hardcode_shlibpath_var=no
4671 runpath_var=LD_RUN_PATH
4672 hardcode_runpath_var=yes
4673 export_dynamic_flag_spec='${wl}-Bexport'
4677 # gcc --version < 3.0 without binutils cannot create self contained
4678 # shared libraries reliably, requiring libgcc.a to resolve some of
4679 # the object symbols generated in some cases. Libraries that use
4680 # assert need libgcc.a to resolve __eprintf, for example. Linking
4681 # a copy of libgcc.a into every shared library to guarantee resolving
4682 # such symbols causes other problems: According to Tim Van Holder
4683 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4684 # (to the application) exception stack for one thing.
4685 no_undefined_flag=' -z defs'
4686 if test "$GCC" = yes; then
4687 case `$CC --version 2>/dev/null` in
4691 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4692 *** create self contained shared libraries on Solaris systems, without
4693 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4694 *** -no-undefined support, which will at least allow you to build shared
4695 *** libraries. However, you may find that when you link such libraries
4696 *** into an application without using GCC, you have to manually add
4697 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4698 *** upgrade to a newer version of GCC. Another option is to rebuild your
4699 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4706 # $CC -shared without GNU ld will not create a library from C++
4707 # object files and a static libstdc++, better avoid it by now
4708 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4709 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4711 hardcode_libdir_flag_spec='-R$libdir'
4712 hardcode_shlibpath_var=no
4714 solaris2.[0-5] | solaris2.[0-5].*) ;;
4715 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4716 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4718 link_all_deplibs=yes
4722 if test "x$host_vendor" = xsequent; then
4723 # Use $CC to link under sequent, because it throws in some extra .o
4724 # files that make .init and .fini sections work.
4725 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4727 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4729 hardcode_libdir_flag_spec='-L$libdir'
4731 hardcode_minus_L=yes
4732 hardcode_shlibpath_var=no
4736 if test "x$host_vendor" = xsno; then
4737 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4738 hardcode_direct=yes # is this really true???
4740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4741 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4743 runpath_var='LD_RUN_PATH'
4744 hardcode_shlibpath_var=no
4748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4749 hardcode_shlibpath_var=no
4750 export_dynamic_flag_spec='-Bexport'
4754 no_undefined_flag=' -z text'
4755 # $CC -shared without GNU ld will not create a library from C++
4756 # object files and a static libstdc++, better avoid it by now
4757 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4758 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4760 hardcode_libdir_flag_spec=
4761 hardcode_shlibpath_var=no
4762 runpath_var='LD_RUN_PATH'
4766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4767 hardcode_libdir_flag_spec='-L$libdir'
4768 hardcode_shlibpath_var=no
4772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4773 hardcode_libdir_flag_spec='-L$libdir'
4774 hardcode_shlibpath_var=no
4778 if test -d /usr/nec; then
4779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4780 hardcode_shlibpath_var=no
4781 runpath_var=LD_RUN_PATH
4782 hardcode_runpath_var=yes
4788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4791 hardcode_shlibpath_var=no
4792 hardcode_runpath_var=yes
4793 runpath_var=LD_RUN_PATH
4796 sysv5uw7* | unixware7*)
4797 no_undefined_flag='${wl}-z ${wl}text'
4798 if test "$GCC" = yes; then
4799 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4801 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4803 runpath_var='LD_RUN_PATH'
4804 hardcode_shlibpath_var=no
4812 echo "$as_me:4812: result: $ld_shlibs" >&5
4813 echo "${ECHO_T}$ld_shlibs" >&6
4814 test "$ld_shlibs" = no && can_build_shared=no
4816 # Check hardcoding attributes.
4817 echo "$as_me:4817: checking how to hardcode library paths into programs" >&5
4818 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4820 if test -n "$hardcode_libdir_flag_spec" || \
4821 test -n "$runpath_var"; then
4823 # We can hardcode non-existant directories.
4824 if test "$hardcode_direct" != no &&
4825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4826 # have to relink, otherwise we might link with an installed library
4827 # when we should be linking with a yet-to-be-installed one
4828 ## test "$hardcode_shlibpath_var" != no &&
4829 test "$hardcode_minus_L" != no; then
4830 # Linking always hardcodes the temporary library directory.
4831 hardcode_action=relink
4833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4834 hardcode_action=immediate
4837 # We cannot hardcode anything, or else we can only hardcode existing
4839 hardcode_action=unsupported
4841 echo "$as_me:4841: result: $hardcode_action" >&5
4842 echo "${ECHO_T}$hardcode_action" >&6
4846 echo "$as_me:4846: checking whether stripping libraries is possible" >&5
4847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4848 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4851 echo "$as_me:4851: result: yes" >&5
4852 echo "${ECHO_T}yes" >&6
4854 echo "$as_me:4854: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4858 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4861 # PORTME Fill in your ld.so characteristics
4862 echo "$as_me:4862: checking dynamic linker characteristics" >&5
4863 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4865 libname_spec='lib$name'
4872 shlibpath_overrides_runpath=unknown
4874 dynamic_linker="$host_os ld.so"
4875 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4881 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4882 shlibpath_var=LIBPATH
4884 # AIX has no versioning support, so we append a major version to the name.
4885 soname_spec='${libname}${release}.so$major'
4890 if test "$host_cpu" = ia64; then
4891 # AIX 5 supports IA64
4892 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4893 shlibpath_var=LD_LIBRARY_PATH
4895 # With GCC up to 2.95.x, collect2 would create an import file
4896 # for dependence libraries. The import file would start with
4897 # the line `#! .'. This would cause the generated library to
4898 # depend on `.', always an invalid library. This was fixed in
4899 # development snapshots of GCC prior to 3.0.
4901 aix4 | aix4.[01] | aix4.[01].*)
4902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4911 # AIX (on Power*) has no versioning support, so currently we can
4912 # not hardcode correct soname into executable. Probably we can
4913 # add versioning support to collect2, so additional links can
4914 # be useful in future.
4915 if test "$aix_use_runtimelinking" = yes; then
4916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4917 # instead of lib<name>.a to let people know that these are not
4918 # typical AIX shared libraries.
4919 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4921 # We preserve .a as extension for shared libraries through AIX4.2
4922 # and later when we are not doing run time linking.
4923 library_names_spec='${libname}${release}.a $libname.a'
4924 soname_spec='${libname}${release}.so$major'
4926 shlibpath_var=LIBPATH
4931 library_names_spec='$libname.ixlibrary $libname.a'
4932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4933 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'
4937 library_names_spec='${libname}.so'
4938 dynamic_linker="$host_os ld.so"
4939 shlibpath_var=LIBRARY_PATH
4945 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4946 soname_spec='${libname}${release}.so$major'
4947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4948 shlibpath_var=LD_LIBRARY_PATH
4949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4951 export_dynamic_flag_spec=-rdynamic
4952 # the default ld.so.conf also contains /usr/contrib/lib and
4953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4954 # libtool to hard-code these into programs
4957 cygwin* | mingw* | pw32*)
4958 version_type=windows
4961 case $GCC,$host_os in
4963 library_names_spec='$libname.dll.a'
4964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4965 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4966 dldir=$destdir/`dirname \$dlpath`~
4967 test -d \$dldir || mkdir -p \$dldir~
4968 $install_prog .libs/$dlname \$dldir/$dlname'
4969 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4970 dlpath=$dir/\$dldll~
4974 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4981 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4984 dynamic_linker='Win32 ld.exe'
4985 # FIXME: first we should search . and the directory the executable is in
4989 darwin* | rhapsody*)
4990 dynamic_linker="$host_os dyld"
4994 # FIXME: Relying on posixy $() will cause problems for
4995 # cross-compilation, but unfortunately the echo tests do not
4996 # yet detect zsh echo's removal of \ escapes.
4997 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)'
4998 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4999 shlibpath_overrides_runpath=yes
5000 shlibpath_var=DYLD_LIBRARY_PATH
5008 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5009 version_type=freebsd-$objformat
5010 case $version_type in
5012 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5017 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5021 shlibpath_var=LD_LIBRARY_PATH
5024 shlibpath_overrides_runpath=yes
5027 shlibpath_overrides_runpath=no
5028 hardcode_into_libs=yes
5037 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5038 soname_spec='${libname}${release}.so$major'
5039 shlibpath_var=LD_LIBRARY_PATH
5040 hardcode_into_libs=yes
5043 hpux9* | hpux10* | hpux11*)
5044 # Give a soname corresponding to the major version so that dld.sl refuses to
5045 # link against other versions.
5046 dynamic_linker="$host_os dld.sl"
5050 shlibpath_var=SHLIB_PATH
5051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5052 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5053 soname_spec='${libname}${release}.sl$major'
5054 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5055 postinstall_cmds='chmod 555 $lib'
5062 soname_spec='${libname}${release}.so$major'
5063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5069 case $LD in # libtool.m4 will add one of these switches to LD
5070 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5071 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5072 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5073 *) libsuff= shlibsuff= libmagic=never-match;;
5077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5078 shlibpath_overrides_runpath=no
5079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5083 # No shared lib support for Linux oldld, aout, or coff.
5084 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5088 # This must be Linux ELF.
5093 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5094 soname_spec='${libname}${release}.so$major'
5095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5096 shlibpath_var=LD_LIBRARY_PATH
5097 shlibpath_overrides_runpath=no
5098 # This implies no fast_install, which is unacceptable.
5099 # Some rework will be needed to allow for fast_install
5100 # before this can be enabled.
5101 hardcode_into_libs=yes
5103 # We used to test for /lib/ld.so.1 and disable shared libraries on
5104 # powerpc, because MkLinux only supported shared libraries with the
5105 # GNU dynamic linker. Since this was broken with cross compilers,
5106 # most powerpc-linux boxes support dynamic linking these days and
5107 # people can always --disable-shared, the test was removed, and we
5108 # assume the GNU/Linux dynamic linker is in use.
5109 dynamic_linker='GNU/Linux ld.so'
5116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5117 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5119 dynamic_linker='NetBSD (a.out) ld.so'
5121 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5122 soname_spec='${libname}${release}.so$major'
5123 dynamic_linker='NetBSD ld.elf_so'
5125 shlibpath_var=LD_LIBRARY_PATH
5126 shlibpath_overrides_runpath=yes
5127 hardcode_into_libs=yes
5132 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5133 shlibpath_var=LD_LIBRARY_PATH
5134 shlibpath_overrides_runpath=yes
5141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5143 openbsd2.[89] | openbsd2.[89].*)
5144 shlibpath_overrides_runpath=no
5147 shlibpath_overrides_runpath=yes
5151 shlibpath_overrides_runpath=yes
5153 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5155 shlibpath_var=LD_LIBRARY_PATH
5159 libname_spec='$name'
5161 library_names_spec='$libname.dll $libname.a'
5162 dynamic_linker='OS/2 ld.exe'
5163 shlibpath_var=LIBPATH
5166 osf3* | osf4* | osf5*)
5169 soname_spec='${libname}${release}.so'
5170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5171 shlibpath_var=LD_LIBRARY_PATH
5172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5178 soname_spec='${libname}${release}.so$major'
5179 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5180 shlibpath_var=LD_LIBRARY_PATH
5187 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5188 soname_spec='${libname}${release}.so$major'
5189 shlibpath_var=LD_LIBRARY_PATH
5190 shlibpath_overrides_runpath=yes
5191 hardcode_into_libs=yes
5192 # ldd complains unless libraries are executable
5193 postinstall_cmds='chmod +x $lib'
5198 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5200 shlibpath_var=LD_LIBRARY_PATH
5201 shlibpath_overrides_runpath=yes
5202 if test "$with_gnu_ld" = yes; then
5208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5210 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5211 soname_spec='${libname}${release}.so$major'
5212 shlibpath_var=LD_LIBRARY_PATH
5213 case $host_vendor in
5215 shlibpath_overrides_runpath=no
5220 shlibpath_overrides_runpath=no
5221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5228 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5229 soname_spec='${libname}${release}.so$major'
5230 shlibpath_var=LD_LIBRARY_PATH
5237 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5238 soname_spec='${libname}${release}.so$major'
5239 shlibpath_var=LD_LIBRARY_PATH
5243 if test -d /usr/nec ;then
5245 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5246 soname_spec='$libname.so.$major'
5247 shlibpath_var=LD_LIBRARY_PATH
5255 echo "$as_me:5255: result: $dynamic_linker" >&5
5256 echo "${ECHO_T}$dynamic_linker" >&6
5257 test "$dynamic_linker" = no && can_build_shared=no
5259 # Report the final consequences.
5260 echo "$as_me:5260: checking if libtool supports shared libraries" >&5
5261 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5262 echo "$as_me:5262: result: $can_build_shared" >&5
5263 echo "${ECHO_T}$can_build_shared" >&6
5265 echo "$as_me:5265: checking whether to build shared libraries" >&5
5266 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5267 test "$can_build_shared" = "no" && enable_shared=no
5269 # On AIX, shared libraries and static libraries use the same namespace, and
5270 # are all built from PIC.
5273 test "$enable_shared" = yes && enable_static=no
5274 if test -n "$RANLIB"; then
5275 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5276 postinstall_cmds='$RANLIB $lib'
5281 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5282 test "$enable_shared" = yes && enable_static=no
5286 echo "$as_me:5286: result: $enable_shared" >&5
5287 echo "${ECHO_T}$enable_shared" >&6
5289 echo "$as_me:5289: checking whether to build static libraries" >&5
5290 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5291 # Make sure either enable_shared or enable_static is yes.
5292 test "$enable_shared" = yes || enable_static=yes
5293 echo "$as_me:5293: result: $enable_static" >&5
5294 echo "${ECHO_T}$enable_static" >&6
5296 if test "$hardcode_action" = relink; then
5297 # Fast installation is not supported
5298 enable_fast_install=no
5299 elif test "$shlibpath_overrides_runpath" = yes ||
5300 test "$enable_shared" = no; then
5301 # Fast installation is not necessary
5302 enable_fast_install=needless
5305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5306 if test "$GCC" = yes; then
5307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5310 if test "x$enable_dlopen" != xyes; then
5311 enable_dlopen=unknown
5312 enable_dlopen_self=unknown
5313 enable_dlopen_self_static=unknown
5320 lt_cv_dlopen="load_add_on"
5322 lt_cv_dlopen_self=yes
5325 cygwin* | mingw* | pw32*)
5326 lt_cv_dlopen="LoadLibrary"
5331 echo "$as_me:5331: checking for shl_load" >&5
5332 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5333 if test "${ac_cv_func_shl_load+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 cat >conftest.$ac_ext <<_ACEOF
5337 #line 5337 "configure"
5338 #include "confdefs.h"
5339 /* System header to define __stub macros and hopefully few prototypes,
5340 which can conflict with char shl_load (); below. */
5342 /* Override any gcc2 internal prototype to avoid an error. */
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5354 /* The GNU C library defines this for functions which it implements
5355 to always fail with ENOSYS. Some functions are actually named
5356 something starting with __ and the normal name is an alias. */
5357 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:5368: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5371 echo "$as_me:5371: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5377 echo "$as_me:5377: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_func_shl_load=yes
5381 echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_func_shl_load=no
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5387 echo "$as_me:5387: result: $ac_cv_func_shl_load" >&5
5388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5389 if test $ac_cv_func_shl_load = yes; then
5390 lt_cv_dlopen="shl_load"
5392 echo "$as_me:5392: checking for shl_load in -ldld" >&5
5393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_check_lib_save_LIBS=$LIBS
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line 5400 "configure"
5401 #include "confdefs.h"
5403 /* Override any gcc2 internal prototype to avoid an error. */
5407 /* We use char because int might match the return type of a gcc2
5408 builtin and then its argument prototype would still apply. */
5418 rm -f conftest.$ac_objext conftest$ac_exeext
5419 if { (eval echo "$as_me:5419: \"$ac_link\"") >&5
5420 (eval $ac_link) 2>&5
5422 echo "$as_me:5422: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -s conftest$ac_exeext'
5425 { (eval echo "$as_me:5425: \"$ac_try\"") >&5
5428 echo "$as_me:5428: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_cv_lib_dld_shl_load=yes
5432 echo "$as_me: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5434 ac_cv_lib_dld_shl_load=no
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5439 echo "$as_me:5439: result: $ac_cv_lib_dld_shl_load" >&5
5440 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5441 if test $ac_cv_lib_dld_shl_load = yes; then
5442 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5444 echo "$as_me:5444: checking for dlopen" >&5
5445 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5446 if test "${ac_cv_func_dlopen+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line 5450 "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char dlopen (); below. */
5455 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5467 /* The GNU C library defines this for functions which it implements
5468 to always fail with ENOSYS. Some functions are actually named
5469 something starting with __ and the normal name is an alias. */
5470 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:5481: \"$ac_link\"") >&5
5482 (eval $ac_link) 2>&5
5484 echo "$as_me:5484: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -s conftest$ac_exeext'
5487 { (eval echo "$as_me:5487: \"$ac_try\"") >&5
5490 echo "$as_me:5490: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_func_dlopen=yes
5494 echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 ac_cv_func_dlopen=no
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 echo "$as_me:5500: result: $ac_cv_func_dlopen" >&5
5501 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5502 if test $ac_cv_func_dlopen = yes; then
5503 lt_cv_dlopen="dlopen"
5505 echo "$as_me:5505: checking for dlopen in -ldl" >&5
5506 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5507 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 ac_check_lib_save_LIBS=$LIBS
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line 5513 "configure"
5514 #include "confdefs.h"
5516 /* Override any gcc2 internal prototype to avoid an error. */
5520 /* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5531 rm -f conftest.$ac_objext conftest$ac_exeext
5532 if { (eval echo "$as_me:5532: \"$ac_link\"") >&5
5533 (eval $ac_link) 2>&5
5535 echo "$as_me:5535: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:5538: \"$ac_try\"") >&5
5541 echo "$as_me:5541: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_lib_dl_dlopen=yes
5545 echo "$as_me: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 ac_cv_lib_dl_dlopen=no
5549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5550 LIBS=$ac_check_lib_save_LIBS
5552 echo "$as_me:5552: result: $ac_cv_lib_dl_dlopen" >&5
5553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5554 if test $ac_cv_lib_dl_dlopen = yes; then
5555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5557 echo "$as_me:5557: checking for dlopen in -lsvld" >&5
5558 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5559 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 ac_check_lib_save_LIBS=$LIBS
5564 cat >conftest.$ac_ext <<_ACEOF
5565 #line 5565 "configure"
5566 #include "confdefs.h"
5568 /* Override any gcc2 internal prototype to avoid an error. */
5572 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5583 rm -f conftest.$ac_objext conftest$ac_exeext
5584 if { (eval echo "$as_me:5584: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>&5
5587 echo "$as_me:5587: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -s conftest$ac_exeext'
5590 { (eval echo "$as_me:5590: \"$ac_try\"") >&5
5593 echo "$as_me:5593: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_lib_svld_dlopen=yes
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5599 ac_cv_lib_svld_dlopen=no
5601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5602 LIBS=$ac_check_lib_save_LIBS
5604 echo "$as_me:5604: result: $ac_cv_lib_svld_dlopen" >&5
5605 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5606 if test $ac_cv_lib_svld_dlopen = yes; then
5607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5609 echo "$as_me:5609: checking for dld_link in -ldld" >&5
5610 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5611 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 ac_check_lib_save_LIBS=$LIBS
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line 5617 "configure"
5618 #include "confdefs.h"
5620 /* Override any gcc2 internal prototype to avoid an error. */
5624 /* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5635 rm -f conftest.$ac_objext conftest$ac_exeext
5636 if { (eval echo "$as_me:5636: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>&5
5639 echo "$as_me:5639: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -s conftest$ac_exeext'
5642 { (eval echo "$as_me:5642: \"$ac_try\"") >&5
5645 echo "$as_me:5645: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 ac_cv_lib_dld_dld_link=yes
5649 echo "$as_me: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 ac_cv_lib_dld_dld_link=no
5653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5654 LIBS=$ac_check_lib_save_LIBS
5656 echo "$as_me:5656: result: $ac_cv_lib_dld_dld_link" >&5
5657 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5658 if test $ac_cv_lib_dld_dld_link = yes; then
5659 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5675 if test "x$lt_cv_dlopen" != xno; then
5681 case $lt_cv_dlopen in
5683 save_CPPFLAGS="$CPPFLAGS"
5684 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5686 save_LDFLAGS="$LDFLAGS"
5687 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5690 LIBS="$lt_cv_dlopen_libs $LIBS"
5692 echo "$as_me:5692: checking whether a program can dlopen itself" >&5
5693 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5694 if test "${lt_cv_dlopen_self+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 if test "$cross_compiling" = yes; then :
5698 lt_cv_dlopen_self=cross
5700 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5701 lt_status=$lt_dlunknown
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5703 "configure"
5704 #include "confdefs.h"
5713 # define LT_DLGLOBAL RTLD_GLOBAL
5716 # define LT_DLGLOBAL DL_GLOBAL
5718 # define LT_DLGLOBAL 0
5722 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5723 find out it does not work in some platform. */
5724 #ifndef LT_DLLAZY_OR_NOW
5726 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5729 # define LT_DLLAZY_OR_NOW DL_LAZY
5732 # define LT_DLLAZY_OR_NOW RTLD_NOW
5735 # define LT_DLLAZY_OR_NOW DL_NOW
5737 # define LT_DLLAZY_OR_NOW 0
5745 extern "C" void exit (int);
5748 void fnord() { int i=42;}
5751 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5752 int status = $lt_dlunknown;
5756 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5757 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5758 /* dlclose (self); */
5764 if { (eval echo "$as_me:5764: \"$ac_link\"") >&5
5765 (eval $ac_link) 2>&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5769 (./conftest; exit; ) 2>/dev/null
5772 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5773 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5774 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5777 # compilation failed
5778 lt_cv_dlopen_self=no
5784 echo "$as_me:5784: result: $lt_cv_dlopen_self" >&5
5785 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5787 if test "x$lt_cv_dlopen_self" = xyes; then
5788 LDFLAGS="$LDFLAGS $link_static_flag"
5789 echo "$as_me:5789: checking whether a statically linked program can dlopen itself" >&5
5790 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5791 if test "${lt_cv_dlopen_self_static+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test "$cross_compiling" = yes; then :
5795 lt_cv_dlopen_self_static=cross
5797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5798 lt_status=$lt_dlunknown
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5800 "configure"
5801 #include "confdefs.h"
5810 # define LT_DLGLOBAL RTLD_GLOBAL
5813 # define LT_DLGLOBAL DL_GLOBAL
5815 # define LT_DLGLOBAL 0
5819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5820 find out it does not work in some platform. */
5821 #ifndef LT_DLLAZY_OR_NOW
5823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5826 # define LT_DLLAZY_OR_NOW DL_LAZY
5829 # define LT_DLLAZY_OR_NOW RTLD_NOW
5832 # define LT_DLLAZY_OR_NOW DL_NOW
5834 # define LT_DLLAZY_OR_NOW 0
5842 extern "C" void exit (int);
5845 void fnord() { int i=42;}
5848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5849 int status = $lt_dlunknown;
5853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5855 /* dlclose (self); */
5861 if { (eval echo "$as_me:5861: \"$ac_link\"") >&5
5862 (eval $ac_link) 2>&5
5864 echo "$as_me:5864: \$? = $ac_status" >&5
5865 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5866 (./conftest; exit; ) 2>/dev/null
5869 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5870 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5871 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5874 # compilation failed
5875 lt_cv_dlopen_self_static=no
5881 echo "$as_me:5881: result: $lt_cv_dlopen_self_static" >&5
5882 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5885 CPPFLAGS="$save_CPPFLAGS"
5886 LDFLAGS="$save_LDFLAGS"
5891 case $lt_cv_dlopen_self in
5892 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5893 *) enable_dlopen_self=unknown ;;
5896 case $lt_cv_dlopen_self_static in
5897 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5898 *) enable_dlopen_self_static=unknown ;;
5902 if test "$enable_shared" = yes && test "$GCC" = yes; then
5903 case $archive_cmds in
5905 # FIXME: we may have to deal with multi-command sequences.
5908 # Test whether the compiler implicitly links with -lc since on some
5909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5910 # to ld, don't add -lc before -lgcc.
5911 echo "$as_me:5911: checking whether -lc should be explicitly linked in" >&5
5912 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5913 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 echo 'static int dummy;' > conftest.$ac_ext
5919 if { (eval echo "$as_me:5919: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>&5
5922 echo "$as_me:5922: \$? = $ac_status" >&5
5923 (exit $ac_status); }; then
5926 libobjs=conftest.$ac_objext
5928 wl=$lt_cv_prog_cc_wl
5934 save_allow_undefined_flag=$allow_undefined_flag
5935 allow_undefined_flag=
5936 if { (eval echo "$as_me:5936: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5937 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5939 echo "$as_me:5939: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5942 lt_cv_archive_cmds_need_lc=no
5944 lt_cv_archive_cmds_need_lc=yes
5946 allow_undefined_flag=$save_allow_undefined_flag
5948 cat conftest.err 1>&5
5954 echo "$as_me:5954: result: $lt_cv_archive_cmds_need_lc" >&5
5955 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5959 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5961 # The second clause should only fire when bootstrapping the
5962 # libtool distribution, otherwise you forgot to ship ltmain.sh
5963 # with your package, and you will get complaints that there are
5964 # no rules to generate ltmain.sh.
5965 if test -f "$ltmain"; then
5968 # If there is no Makefile yet, we rely on a make rule to execute
5969 # `config.status --recheck' to rerun these tests and create the
5970 # libtool script then.
5971 test -f Makefile && make "$ltmain"
5974 if test -f "$ltmain"; then
5975 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5978 echo creating $ofile
5980 # Now quote all the things that may contain metacharacters while being
5981 # careful not to overquote the AC_SUBSTed values. We take copies of the
5982 # variables and quote the copies for generation of the libtool script.
5983 for var in echo old_CC old_CFLAGS \
5984 AR AR_FLAGS CC LD LN_S NM SHELL \
5985 reload_flag reload_cmds wl \
5986 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5987 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5988 library_names_spec soname_spec \
5989 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5990 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5991 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5992 old_striplib striplib file_magic_cmd export_symbols_cmds \
5993 deplibs_check_method allow_undefined_flag no_undefined_flag \
5994 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5995 global_symbol_to_c_name_address \
5996 hardcode_libdir_flag_spec hardcode_libdir_separator \
5997 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5998 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6001 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6002 old_postinstall_cmds | old_postuninstall_cmds | \
6003 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6004 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6005 postinstall_cmds | postuninstall_cmds | \
6006 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6007 # Double-quote double-evaled strings.
6008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6016 cat <<__EOF__ > "${ofile}T"
6019 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6020 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6021 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6023 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6024 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6026 # This program is free software; you can redistribute it and/or modify
6027 # it under the terms of the GNU General Public License as published by
6028 # the Free Software Foundation; either version 2 of the License, or
6029 # (at your option) any later version.
6031 # This program is distributed in the hope that it will be useful, but
6032 # WITHOUT ANY WARRANTY; without even the implied warranty of
6033 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6034 # General Public License for more details.
6036 # You should have received a copy of the GNU General Public License
6037 # along with this program; if not, write to the Free Software
6038 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6040 # As a special exception to the GNU General Public License, if you
6041 # distribute this file as part of a program that contains a
6042 # configuration script generated by Autoconf, you may include it under
6043 # the same distribution terms that you use for the rest of that program.
6045 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6046 Xsed="sed -e s/^X//"
6048 # The HP-UX ksh and POSIX shell print the target directory to stdout
6050 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6052 # ### BEGIN LIBTOOL CONFIG
6054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6056 # Shell to use when invoking shell scripts.
6059 # Whether or not to build shared libraries.
6060 build_libtool_libs=$enable_shared
6062 # Whether or not to build static libraries.
6063 build_old_libs=$enable_static
6065 # Whether or not to add -lc for building shared libraries.
6066 build_libtool_need_lc=$need_lc
6068 # Whether or not to optimize for fast installation.
6069 fast_install=$enable_fast_install
6072 host_alias=$host_alias
6075 # An echo program that does not interpret backslashes.
6080 AR_FLAGS=$lt_AR_FLAGS
6082 # The default C compiler.
6085 # Is the compiler the GNU C compiler?
6088 # The linker used to build libraries.
6091 # Whether we need hard or soft links.
6094 # A BSD-compatible nm program.
6097 # A symbol stripping program
6100 # Used to examine libraries when file_magic_cmd begins "file"
6101 MAGIC_CMD=$MAGIC_CMD
6103 # Used on cygwin: DLL creation program.
6106 # Used on cygwin: object dumper.
6109 # Used on cygwin: assembler.
6112 # The name of the directory that contains temporary libtool files.
6115 # How to create reloadable object files.
6116 reload_flag=$lt_reload_flag
6117 reload_cmds=$lt_reload_cmds
6119 # How to pass a linker flag through the compiler.
6122 # Object file suffix (normally "o").
6125 # Old archive suffix (normally "a").
6128 # Executable file suffix (normally "").
6131 # Additional compiler flags for building library objects.
6132 pic_flag=$lt_pic_flag
6135 # Does compiler simultaneously support -c and -o options?
6136 compiler_c_o=$lt_compiler_c_o
6138 # Can we write directly to a .lo ?
6139 compiler_o_lo=$lt_compiler_o_lo
6141 # Must we lock files when doing compilation ?
6142 need_locks=$lt_need_locks
6144 # Do we need the lib prefix for modules?
6145 need_lib_prefix=$need_lib_prefix
6147 # Do we need a version for libraries?
6148 need_version=$need_version
6150 # Whether dlopen is supported.
6151 dlopen_support=$enable_dlopen
6153 # Whether dlopen of programs is supported.
6154 dlopen_self=$enable_dlopen_self
6156 # Whether dlopen of statically linked programs is supported.
6157 dlopen_self_static=$enable_dlopen_self_static
6159 # Compiler flag to prevent dynamic linking.
6160 link_static_flag=$lt_link_static_flag
6162 # Compiler flag to turn off builtin functions.
6163 no_builtin_flag=$lt_no_builtin_flag
6165 # Compiler flag to allow reflexive dlopens.
6166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6168 # Compiler flag to generate shared objects directly from archives.
6169 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6171 # Compiler flag to generate thread-safe objects.
6172 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6174 # Library versioning type.
6175 version_type=$version_type
6177 # Format of library name prefix.
6178 libname_spec=$lt_libname_spec
6180 # List of archive names. First name is the real one, the rest are links.
6181 # The last name is the one that the linker finds with -lNAME.
6182 library_names_spec=$lt_library_names_spec
6184 # The coded name of the library, if different from the real name.
6185 soname_spec=$lt_soname_spec
6187 # Commands used to build and install an old-style archive.
6189 old_archive_cmds=$lt_old_archive_cmds
6190 old_postinstall_cmds=$lt_old_postinstall_cmds
6191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6193 # Create an old-style archive from a shared archive.
6194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6196 # Create a temporary old-style archive to link instead of a shared archive.
6197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6199 # Commands used to build and install a shared archive.
6200 archive_cmds=$lt_archive_cmds
6201 archive_expsym_cmds=$lt_archive_expsym_cmds
6202 postinstall_cmds=$lt_postinstall_cmds
6203 postuninstall_cmds=$lt_postuninstall_cmds
6205 # Commands to strip libraries.
6206 old_striplib=$lt_old_striplib
6207 striplib=$lt_striplib
6209 # Method to check whether dependent libraries are shared objects.
6210 deplibs_check_method=$lt_deplibs_check_method
6212 # Command to use when deplibs_check_method == file_magic.
6213 file_magic_cmd=$lt_file_magic_cmd
6215 # Flag that allows shared libraries with undefined symbols to be built.
6216 allow_undefined_flag=$lt_allow_undefined_flag
6218 # Flag that forces no undefined symbols.
6219 no_undefined_flag=$lt_no_undefined_flag
6221 # Commands used to finish a libtool library installation in a directory.
6222 finish_cmds=$lt_finish_cmds
6224 # Same as above, but a single script fragment to be evaled but not shown.
6225 finish_eval=$lt_finish_eval
6227 # Take the output of nm and produce a listing of raw symbols and C names.
6228 global_symbol_pipe=$lt_global_symbol_pipe
6230 # Transform the output of nm in a proper C declaration
6231 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6233 # Transform the output of nm in a C name address pair
6234 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6236 # This is the shared library runtime path variable.
6237 runpath_var=$runpath_var
6239 # This is the shared library path variable.
6240 shlibpath_var=$shlibpath_var
6242 # Is shlibpath searched before the hard-coded library search path?
6243 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6245 # How to hardcode a shared library path into an executable.
6246 hardcode_action=$hardcode_action
6248 # Whether we should hardcode library paths into libraries.
6249 hardcode_into_libs=$hardcode_into_libs
6251 # Flag to hardcode \$libdir into a binary during linking.
6252 # This must work even if \$libdir does not exist.
6253 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6255 # Whether we need a single -rpath flag with a separated argument.
6256 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6258 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6260 hardcode_direct=$hardcode_direct
6262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6264 hardcode_minus_L=$hardcode_minus_L
6266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6267 # the resulting binary.
6268 hardcode_shlibpath_var=$hardcode_shlibpath_var
6270 # Variables whose values should be saved in libtool wrapper scripts and
6271 # restored at relink time.
6272 variables_saved_for_relink="$variables_saved_for_relink"
6274 # Whether libtool must link a program against all its dependency libraries.
6275 link_all_deplibs=$link_all_deplibs
6277 # Compile-time system search path for libraries
6278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6280 # Run-time system search path for libraries
6281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6283 # Fix the shell variable \$srcfile for the compiler.
6284 fix_srcfile_path="$fix_srcfile_path"
6286 # Set to yes if exported symbols are required.
6287 always_export_symbols=$always_export_symbols
6289 # The commands to list exported symbols.
6290 export_symbols_cmds=$lt_export_symbols_cmds
6292 # The commands to extract the exported symbol list from a shared archive.
6293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6295 # Symbols that should not be listed in the preloaded symbols.
6296 exclude_expsyms=$lt_exclude_expsyms
6298 # Symbols that must always be exported.
6299 include_expsyms=$lt_include_expsyms
6301 # ### END LIBTOOL CONFIG
6307 cat <<\EOF >> "${ofile}T"
6309 # AIX sometimes has problems with the GCC collect2 program. For some
6310 # reason, if we set the COLLECT_NAMES environment variable, the problems
6311 # vanish in a puff of smoke.
6312 if test "X${COLLECT_NAMES+set}" != Xset; then
6314 export COLLECT_NAMES
6321 cygwin* | mingw* | pw32* | os2*)
6322 cat <<'EOF' >> "${ofile}T"
6323 # This is a source program that is used to create dlls on Windows
6324 # Don't remove nor modify the starting and closing comments
6325 # /* ltdll.c starts here */
6326 # #define WIN32_LEAN_AND_MEAN
6327 # #include <windows.h>
6328 # #undef WIN32_LEAN_AND_MEAN
6329 # #include <stdio.h>
6331 # #ifndef __CYGWIN__
6332 # # ifdef __CYGWIN32__
6333 # # define __CYGWIN__ __CYGWIN32__
6337 # #ifdef __cplusplus
6340 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6341 # #ifdef __cplusplus
6346 # #include <cygwin/cygwin_dll.h>
6347 # DECLARE_CYGWIN_DLL( DllMain );
6349 # HINSTANCE __hDllInstance_base;
6352 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6354 # __hDllInstance_base = hInst;
6357 # /* ltdll.c ends here */
6358 # This is a source program that is used to create import libraries
6359 # on Windows for dlls which lack them. Don't remove nor modify the
6360 # starting and closing comments
6361 # /* impgen.c starts here */
6362 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6364 # This file is part of GNU libtool.
6366 # This program is free software; you can redistribute it and/or modify
6367 # it under the terms of the GNU General Public License as published by
6368 # the Free Software Foundation; either version 2 of the License, or
6369 # (at your option) any later version.
6371 # This program is distributed in the hope that it will be useful,
6372 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6373 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6374 # GNU General Public License for more details.
6376 # You should have received a copy of the GNU General Public License
6377 # along with this program; if not, write to the Free Software
6378 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6381 # #include <stdio.h> /* for printf() */
6382 # #include <unistd.h> /* for open(), lseek(), read() */
6383 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6384 # #include <string.h> /* for strdup() */
6386 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6388 # #define O_BINARY 0
6391 # static unsigned int
6392 # pe_get16 (fd, offset)
6396 # unsigned char b[2];
6397 # lseek (fd, offset, SEEK_SET);
6399 # return b[0] + (b[1]<<8);
6402 # static unsigned int
6403 # pe_get32 (fd, offset)
6407 # unsigned char b[4];
6408 # lseek (fd, offset, SEEK_SET);
6410 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6413 # static unsigned int
6417 # unsigned char *b = ptr;
6418 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6427 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6428 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6429 # unsigned long name_rvas, nexp;
6430 # unsigned char *expdata, *erva;
6431 # char *filename, *dll_name;
6433 # filename = argv[1];
6435 # dll = open(filename, O_RDONLY|O_BINARY);
6439 # dll_name = filename;
6441 # for (i=0; filename[i]; i++)
6442 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6443 # dll_name = filename + i +1;
6445 # pe_header_offset = pe_get32 (dll, 0x3c);
6446 # opthdr_ofs = pe_header_offset + 4 + 20;
6447 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6449 # if (num_entries < 1) /* no exports */
6452 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6453 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6454 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6455 # secptr = (pe_header_offset + 4 + 20 +
6456 # pe_get16 (dll, pe_header_offset + 4 + 16));
6459 # for (i = 0; i < nsections; i++)
6462 # unsigned long secptr1 = secptr + 40 * i;
6463 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6464 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6465 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6466 # lseek(dll, secptr1, SEEK_SET);
6467 # read(dll, sname, 8);
6468 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6470 # expptr = fptr + (export_rva - vaddr);
6471 # if (export_rva + export_size > vaddr + vsize)
6472 # export_size = vsize - (export_rva - vaddr);
6477 # expdata = (unsigned char*)malloc(export_size);
6478 # lseek (dll, expptr, SEEK_SET);
6479 # read (dll, expdata, export_size);
6480 # erva = expdata - export_rva;
6482 # nexp = pe_as32 (expdata+24);
6483 # name_rvas = pe_as32 (expdata+32);
6485 # printf ("EXPORTS\n");
6486 # for (i = 0; i<nexp; i++)
6488 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6489 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6494 # /* impgen.c ends here */
6500 # We use sed instead of cat because bash on DJGPP gets confused if
6501 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6502 # text mode, it properly converts lines to CR/LF. This bash problem
6503 # is reportedly fixed, but why not run on old versions too?
6504 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6506 mv -f "${ofile}T" "$ofile" || \
6507 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6511 # This can be used to rebuild libtool when needed
6512 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6514 # Always use our own libtool.
6515 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6517 # Prevent multiple expansion
6519 if test "X$prefix" = "XNONE"; then
6520 acl_final_prefix="$ac_default_prefix"
6522 acl_final_prefix="$prefix"
6524 if test "X$exec_prefix" = "XNONE"; then
6525 acl_final_exec_prefix='${prefix}'
6527 acl_final_exec_prefix="$exec_prefix"
6529 acl_save_prefix="$prefix"
6530 prefix="$acl_final_prefix"
6531 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6532 prefix="$acl_save_prefix"
6534 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6535 if test "${with_gnu_ld+set}" = set; then
6536 withval="$with_gnu_ld"
6537 test "$withval" = no || with_gnu_ld=yes
6542 if test "$GCC" = yes; then
6543 # Check if gcc -print-prog-name=ld gives a path.
6544 echo "$as_me:6544: checking for ld used by GCC" >&5
6545 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6548 # gcc leaves a trailing carriage return which upsets mingw
6549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6554 # Accept absolute paths.
6555 [\\/]* | [A-Za-z]:[\\/]*)
6556 re_direlt='/[^/][^/]*/\.\./'
6557 # Canonicalize the path of ld
6558 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6559 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6560 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6562 test -z "$LD" && LD="$ac_prog"
6565 # If it fails, then pretend we aren't using GCC.
6569 # If it is relative, then search for the first ld in PATH.
6573 elif test "$with_gnu_ld" = yes; then
6574 echo "$as_me:6574: checking for GNU ld" >&5
6575 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6577 echo "$as_me:6577: checking for non-GNU ld" >&5
6578 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6580 if test "${acl_cv_path_LD+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 if test -z "$LD"; then
6584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6585 for ac_dir in $PATH; do
6586 test -z "$ac_dir" && ac_dir=.
6587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6588 acl_cv_path_LD="$ac_dir/$ac_prog"
6589 # Check to see if the program is GNU ld. I'd rather use --version,
6590 # but apparently some GNU ld's only accept -v.
6591 # Break only if it was the GNU/non-GNU ld that we prefer.
6592 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6593 test "$with_gnu_ld" != no && break
6595 test "$with_gnu_ld" != yes && break
6601 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6605 LD="$acl_cv_path_LD"
6606 if test -n "$LD"; then
6607 echo "$as_me:6607: result: $LD" >&5
6608 echo "${ECHO_T}$LD" >&6
6610 echo "$as_me:6610: result: no" >&5
6611 echo "${ECHO_T}no" >&6
6613 test -z "$LD" && { { echo "$as_me:6613: error: no acceptable ld found in \$PATH" >&5
6614 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6615 { (exit 1); exit 1; }; }
6616 echo "$as_me:6616: checking if the linker ($LD) is GNU ld" >&5
6617 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6618 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6622 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6623 acl_cv_prog_gnu_ld=yes
6625 acl_cv_prog_gnu_ld=no
6628 echo "$as_me:6628: result: $acl_cv_prog_gnu_ld" >&5
6629 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6630 with_gnu_ld=$acl_cv_prog_gnu_ld
6632 echo "$as_me:6632: checking for shared library run path origin" >&5
6633 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6634 if test "${acl_cv_rpath+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6639 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6645 echo "$as_me:6645: result: $acl_cv_rpath" >&5
6646 echo "${ECHO_T}$acl_cv_rpath" >&6
6648 libext="$acl_cv_libext"
6649 shlibext="$acl_cv_shlibext"
6650 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6651 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6652 hardcode_direct="$acl_cv_hardcode_direct"
6653 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6654 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
6655 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
6659 acl_save_prefix="$prefix"
6660 prefix="$acl_final_prefix"
6661 acl_save_exec_prefix="$exec_prefix"
6662 exec_prefix="$acl_final_exec_prefix"
6664 eval additional_includedir=\"$includedir\"
6665 eval additional_libdir=\"$libdir\"
6667 exec_prefix="$acl_save_exec_prefix"
6668 prefix="$acl_save_prefix"
6670 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6671 if test "${with_libiconv_prefix+set}" = set; then
6672 withval="$with_libiconv_prefix"
6674 if test "X$withval" = "Xno"; then
6677 if test "X$withval" = "X"; then
6679 acl_save_prefix="$prefix"
6680 prefix="$acl_final_prefix"
6681 acl_save_exec_prefix="$exec_prefix"
6682 exec_prefix="$acl_final_exec_prefix"
6684 eval additional_includedir=\"$includedir\"
6685 eval additional_libdir=\"$libdir\"
6687 exec_prefix="$acl_save_exec_prefix"
6688 prefix="$acl_save_prefix"
6691 additional_includedir="$withval/include"
6692 additional_libdir="$withval/lib"
6702 names_already_handled=
6703 names_next_round='iconv '
6704 while test -n "$names_next_round"; do
6705 names_this_round="$names_next_round"
6707 for name in $names_this_round; do
6709 for n in $names_already_handled; do
6710 if test "$n" = "$name"; then
6715 if test -z "$already_handled"; then
6716 names_already_handled="$names_already_handled $name"
6717 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6718 eval value=\"\$HAVE_LIB$uppername\"
6719 if test -n "$value"; then
6720 if test "$value" = yes; then
6721 eval value=\"\$LIB$uppername\"
6722 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6723 eval value=\"\$LTLIB$uppername\"
6724 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6733 if test $use_additional = yes; then
6734 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6735 found_dir="$additional_libdir"
6736 found_so="$additional_libdir/lib$name.$shlibext"
6737 if test -f "$additional_libdir/lib$name.la"; then
6738 found_la="$additional_libdir/lib$name.la"
6741 if test -f "$additional_libdir/lib$name.$libext"; then
6742 found_dir="$additional_libdir"
6743 found_a="$additional_libdir/lib$name.$libext"
6744 if test -f "$additional_libdir/lib$name.la"; then
6745 found_la="$additional_libdir/lib$name.la"
6750 if test "X$found_dir" = "X"; then
6751 for x in $LDFLAGS $LTLIBICONV; do
6753 acl_save_prefix="$prefix"
6754 prefix="$acl_final_prefix"
6755 acl_save_exec_prefix="$exec_prefix"
6756 exec_prefix="$acl_final_exec_prefix"
6758 exec_prefix="$acl_save_exec_prefix"
6759 prefix="$acl_save_prefix"
6763 dir=`echo "X$x" | sed -e 's/^X-L//'`
6764 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6766 found_so="$dir/lib$name.$shlibext"
6767 if test -f "$dir/lib$name.la"; then
6768 found_la="$dir/lib$name.la"
6771 if test -f "$dir/lib$name.$libext"; then
6773 found_a="$dir/lib$name.$libext"
6774 if test -f "$dir/lib$name.la"; then
6775 found_la="$dir/lib$name.la"
6781 if test "X$found_dir" != "X"; then
6786 if test "X$found_dir" != "X"; then
6787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6788 if test "X$found_so" != "X"; then
6789 if test "X$found_dir" = "X/usr/lib"; then
6790 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6793 for x in $ltrpathdirs; do
6794 if test "X$x" = "X$found_dir"; then
6799 if test -z "$haveit"; then
6800 ltrpathdirs="$ltrpathdirs $found_dir"
6802 if test "$hardcode_direct" = yes; then
6803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6805 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6808 for x in $rpathdirs; do
6809 if test "X$x" = "X$found_dir"; then
6814 if test -z "$haveit"; then
6815 rpathdirs="$rpathdirs $found_dir"
6819 for x in $LDFLAGS $LIBICONV; do
6821 acl_save_prefix="$prefix"
6822 prefix="$acl_final_prefix"
6823 acl_save_exec_prefix="$exec_prefix"
6824 exec_prefix="$acl_final_exec_prefix"
6826 exec_prefix="$acl_save_exec_prefix"
6827 prefix="$acl_save_prefix"
6829 if test "X$x" = "X-L$found_dir"; then
6834 if test -z "$haveit"; then
6835 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6837 if test "$hardcode_minus_L" != no; then
6838 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6840 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6846 if test "X$found_a" != "X"; then
6847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6849 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6852 additional_includedir=
6853 case "$found_dir" in
6855 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6856 additional_includedir="$basedir/include"
6859 if test "X$additional_includedir" != "X"; then
6860 if test "X$additional_includedir" != "X/usr/include"; then
6862 if test "X$additional_includedir" = "X/usr/local/include"; then
6863 if test -n "$GCC"; then
6865 linux*) haveit=yes;;
6869 if test -z "$haveit"; then
6870 for x in $CPPFLAGS $INCICONV; do
6872 acl_save_prefix="$prefix"
6873 prefix="$acl_final_prefix"
6874 acl_save_exec_prefix="$exec_prefix"
6875 exec_prefix="$acl_final_exec_prefix"
6877 exec_prefix="$acl_save_exec_prefix"
6878 prefix="$acl_save_prefix"
6880 if test "X$x" = "X-I$additional_includedir"; then
6885 if test -z "$haveit"; then
6886 if test -d "$additional_includedir"; then
6887 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6893 if test -n "$found_la"; then
6894 save_libdir="$libdir"
6896 */* | *\\*) . "$found_la" ;;
6897 *) . "./$found_la" ;;
6899 libdir="$save_libdir"
6900 for dep in $dependency_libs; do
6903 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6904 if test "X$additional_libdir" != "X/usr/lib"; then
6906 if test "X$additional_libdir" = "X/usr/local/lib"; then
6907 if test -n "$GCC"; then
6909 linux*) haveit=yes;;
6913 if test -z "$haveit"; then
6915 for x in $LDFLAGS $LIBICONV; do
6917 acl_save_prefix="$prefix"
6918 prefix="$acl_final_prefix"
6919 acl_save_exec_prefix="$exec_prefix"
6920 exec_prefix="$acl_final_exec_prefix"
6922 exec_prefix="$acl_save_exec_prefix"
6923 prefix="$acl_save_prefix"
6925 if test "X$x" = "X-L$additional_libdir"; then
6930 if test -z "$haveit"; then
6931 if test -d "$additional_libdir"; then
6932 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6936 for x in $LDFLAGS $LTLIBICONV; do
6938 acl_save_prefix="$prefix"
6939 prefix="$acl_final_prefix"
6940 acl_save_exec_prefix="$exec_prefix"
6941 exec_prefix="$acl_final_exec_prefix"
6943 exec_prefix="$acl_save_exec_prefix"
6944 prefix="$acl_save_prefix"
6946 if test "X$x" = "X-L$additional_libdir"; then
6951 if test -z "$haveit"; then
6952 if test -d "$additional_libdir"; then
6953 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6960 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6962 for x in $rpathdirs; do
6963 if test "X$x" = "X$dir"; then
6968 if test -z "$haveit"; then
6969 rpathdirs="$rpathdirs $dir"
6972 for x in $ltrpathdirs; do
6973 if test "X$x" = "X$dir"; then
6978 if test -z "$haveit"; then
6979 ltrpathdirs="$ltrpathdirs $dir"
6983 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6986 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6989 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6990 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6996 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6997 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7003 if test "X$rpathdirs" != "X"; then
7004 if test -n "$hardcode_libdir_separator"; then
7006 for found_dir in $rpathdirs; do
7007 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7009 acl_save_libdir="$libdir"
7011 eval flag=\"$hardcode_libdir_flag_spec\"
7012 libdir="$acl_save_libdir"
7013 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7015 for found_dir in $rpathdirs; do
7016 acl_save_libdir="$libdir"
7018 eval flag=\"$hardcode_libdir_flag_spec\"
7019 libdir="$acl_save_libdir"
7020 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7024 if test "X$ltrpathdirs" != "X"; then
7025 for found_dir in $ltrpathdirs; do
7026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7030 am_save_CPPFLAGS="$CPPFLAGS"
7032 for element in $INCICONV; do
7034 for x in $CPPFLAGS; do
7036 acl_save_prefix="$prefix"
7037 prefix="$acl_final_prefix"
7038 acl_save_exec_prefix="$exec_prefix"
7039 exec_prefix="$acl_final_exec_prefix"
7041 exec_prefix="$acl_save_exec_prefix"
7042 prefix="$acl_save_prefix"
7044 if test "X$x" = "X$element"; then
7049 if test -z "$haveit"; then
7050 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7054 echo "$as_me:7054: checking for iconv" >&5
7055 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7056 if test "${am_cv_func_iconv+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 am_cv_func_iconv="no, consider installing GNU libiconv"
7062 cat >conftest.$ac_ext <<_ACEOF
7063 #line 7063 "configure"
7064 #include "confdefs.h"
7070 iconv_t cd = iconv_open("","");
7071 iconv(cd,NULL,NULL,NULL,NULL);
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:7078: \"$ac_link\"") >&5
7079 (eval $ac_link) 2>&5
7081 echo "$as_me:7081: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -s conftest$ac_exeext'
7084 { (eval echo "$as_me:7084: \"$ac_try\"") >&5
7087 echo "$as_me:7087: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 am_cv_func_iconv=yes
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095 if test "$am_cv_func_iconv" != yes; then
7096 am_save_LIBS="$LIBS"
7097 LIBS="$LIBS $LIBICONV"
7098 cat >conftest.$ac_ext <<_ACEOF
7099 #line 7099 "configure"
7100 #include "confdefs.h"
7106 iconv_t cd = iconv_open("","");
7107 iconv(cd,NULL,NULL,NULL,NULL);
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:7114: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>&5
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:7120: \"$ac_try\"") >&5
7123 echo "$as_me:7123: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7126 am_cv_func_iconv=yes
7128 echo "$as_me: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7132 LIBS="$am_save_LIBS"
7136 echo "$as_me:7136: result: $am_cv_func_iconv" >&5
7137 echo "${ECHO_T}$am_cv_func_iconv" >&6
7138 if test "$am_cv_func_iconv" = yes; then
7140 cat >>confdefs.h <<\EOF
7141 #define HAVE_ICONV 1
7145 if test "$am_cv_lib_iconv" = yes; then
7146 echo "$as_me:7146: checking how to link with libiconv" >&5
7147 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7148 echo "$as_me:7148: result: $LIBICONV" >&5
7149 echo "${ECHO_T}$LIBICONV" >&6
7151 CPPFLAGS="$am_save_CPPFLAGS"
7156 if test "$am_cv_func_iconv" = yes; then
7157 echo "$as_me:7157: checking for iconv declaration" >&5
7158 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7159 if test "${am_cv_proto_iconv+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 cat >conftest.$ac_ext <<_ACEOF
7164 #line 7164 "configure"
7165 #include "confdefs.h"
7173 #if defined(__STDC__) || defined(__cplusplus)
7174 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7187 rm -f conftest.$ac_objext
7188 if { (eval echo "$as_me:7188: \"$ac_compile\"") >&5
7189 (eval $ac_compile) 2>&5
7191 echo "$as_me:7191: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:7194: \"$ac_try\"") >&5
7197 echo "$as_me:7197: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 am_cv_proto_iconv_arg1=""
7201 echo "$as_me: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 am_cv_proto_iconv_arg1="const"
7205 rm -f conftest.$ac_objext conftest.$ac_ext
7206 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7209 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7210 echo "$as_me:7210: result: ${ac_t:-
7211 }$am_cv_proto_iconv" >&5
7212 echo "${ECHO_T}${ac_t:-
7213 }$am_cv_proto_iconv" >&6
7215 cat >>confdefs.h <<EOF
7216 #define ICONV_CONST $am_cv_proto_iconv_arg1
7222 if test -n "$ac_aux_dir"; then
7223 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7225 if test -z "$MKINSTALLDIRS"; then
7226 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7229 # Extract the first word of "msgfmt", so it can be a program name with args.
7230 set dummy msgfmt; ac_word=$2
7231 echo "$as_me:7231: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_path_MSGFMT+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7242 for ac_dir in $PATH; do
7243 test -z "$ac_dir" && ac_dir=.
7244 if test -f $ac_dir/$ac_word; then
7245 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7246 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7247 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7253 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7257 MSGFMT="$ac_cv_path_MSGFMT"
7258 if test "$MSGFMT" != ":"; then
7259 echo "$as_me:7259: result: $MSGFMT" >&5
7260 echo "${ECHO_T}$MSGFMT" >&6
7262 echo "$as_me:7262: result: no" >&5
7263 echo "${ECHO_T}no" >&6
7266 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7267 set dummy gmsgfmt; ac_word=$2
7268 echo "$as_me:7268: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7278 ac_save_IFS=$IFS; IFS=$ac_path_separator
7280 for ac_dir in $ac_dummy; do
7282 test -z "$ac_dir" && ac_dir=.
7283 if $as_executable_p "$ac_dir/$ac_word"; then
7284 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7285 echo "$as_me:7285: found $ac_dir/$ac_word" >&5
7290 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7294 GMSGFMT=$ac_cv_path_GMSGFMT
7296 if test -n "$GMSGFMT"; then
7297 echo "$as_me:7297: result: $GMSGFMT" >&5
7298 echo "${ECHO_T}$GMSGFMT" >&6
7300 echo "$as_me:7300: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7304 # Extract the first word of "xgettext", so it can be a program name with args.
7305 set dummy xgettext; ac_word=$2
7306 echo "$as_me:7306: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7317 for ac_dir in $PATH; do
7318 test -z "$ac_dir" && ac_dir=.
7319 if test -f $ac_dir/$ac_word; then
7320 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
7321 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7322 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7328 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7332 XGETTEXT="$ac_cv_path_XGETTEXT"
7333 if test "$XGETTEXT" != ":"; then
7334 echo "$as_me:7334: result: $XGETTEXT" >&5
7335 echo "${ECHO_T}$XGETTEXT" >&6
7337 echo "$as_me:7337: result: no" >&5
7338 echo "${ECHO_T}no" >&6
7343 # Extract the first word of "msgmerge", so it can be a program name with args.
7344 set dummy msgmerge; ac_word=$2
7345 echo "$as_me:7345: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7356 for ac_dir in $PATH; do
7357 test -z "$ac_dir" && ac_dir=.
7358 if test -f $ac_dir/$ac_word; then
7359 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7360 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
7366 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7370 MSGMERGE="$ac_cv_path_MSGMERGE"
7371 if test "$MSGMERGE" != ":"; then
7372 echo "$as_me:7372: result: $MSGMERGE" >&5
7373 echo "${ECHO_T}$MSGMERGE" >&6
7375 echo "$as_me:7375: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7379 if test "$GMSGFMT" != ":"; then
7380 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7381 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7384 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7385 echo "$as_me:7385: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7386 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7391 if test "$XGETTEXT" != ":"; then
7392 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
7393 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7396 echo "$as_me:7396: result: found xgettext program is not GNU xgettext; ignore it" >&5
7397 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7403 ac_config_commands="$ac_config_commands default-1"
7405 echo "$as_me:7405: checking whether NLS is requested" >&5
7406 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7407 # Check whether --enable-nls or --disable-nls was given.
7408 if test "${enable_nls+set}" = set; then
7409 enableval="$enable_nls"
7414 echo "$as_me:7414: result: $USE_NLS" >&5
7415 echo "${ECHO_T}$USE_NLS" >&6
7421 if test "$USE_NLS" = "yes"; then
7422 gt_use_preinstalled_gnugettext=no
7424 echo "$as_me:7424: checking for GNU gettext in libc" >&5
7425 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7426 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 cat >conftest.$ac_ext <<_ACEOF
7430 #line 7430 "configure"
7431 #include "confdefs.h"
7432 #include <libintl.h>
7433 extern int _nl_msg_cat_cntr;
7434 extern int *_nl_domain_bindings;
7438 bindtextdomain ("", "");
7439 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:7445: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7448 echo "$as_me:7448: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:7451: \"$ac_try\"") >&5
7454 echo "$as_me:7454: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 gt_cv_func_gnugettext1_libc=yes
7458 echo "$as_me: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7460 gt_cv_func_gnugettext1_libc=no
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7464 echo "$as_me:7464: result: $gt_cv_func_gnugettext1_libc" >&5
7465 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7467 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7471 acl_save_prefix="$prefix"
7472 prefix="$acl_final_prefix"
7473 acl_save_exec_prefix="$exec_prefix"
7474 exec_prefix="$acl_final_exec_prefix"
7476 eval additional_includedir=\"$includedir\"
7477 eval additional_libdir=\"$libdir\"
7479 exec_prefix="$acl_save_exec_prefix"
7480 prefix="$acl_save_prefix"
7482 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7483 if test "${with_libiconv_prefix+set}" = set; then
7484 withval="$with_libiconv_prefix"
7486 if test "X$withval" = "Xno"; then
7489 if test "X$withval" = "X"; then
7491 acl_save_prefix="$prefix"
7492 prefix="$acl_final_prefix"
7493 acl_save_exec_prefix="$exec_prefix"
7494 exec_prefix="$acl_final_exec_prefix"
7496 eval additional_includedir=\"$includedir\"
7497 eval additional_libdir=\"$libdir\"
7499 exec_prefix="$acl_save_exec_prefix"
7500 prefix="$acl_save_prefix"
7503 additional_includedir="$withval/include"
7504 additional_libdir="$withval/lib"
7514 names_already_handled=
7515 names_next_round='iconv '
7516 while test -n "$names_next_round"; do
7517 names_this_round="$names_next_round"
7519 for name in $names_this_round; do
7521 for n in $names_already_handled; do
7522 if test "$n" = "$name"; then
7527 if test -z "$already_handled"; then
7528 names_already_handled="$names_already_handled $name"
7529 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7530 eval value=\"\$HAVE_LIB$uppername\"
7531 if test -n "$value"; then
7532 if test "$value" = yes; then
7533 eval value=\"\$LIB$uppername\"
7534 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7535 eval value=\"\$LTLIB$uppername\"
7536 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7545 if test $use_additional = yes; then
7546 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7547 found_dir="$additional_libdir"
7548 found_so="$additional_libdir/lib$name.$shlibext"
7549 if test -f "$additional_libdir/lib$name.la"; then
7550 found_la="$additional_libdir/lib$name.la"
7553 if test -f "$additional_libdir/lib$name.$libext"; then
7554 found_dir="$additional_libdir"
7555 found_a="$additional_libdir/lib$name.$libext"
7556 if test -f "$additional_libdir/lib$name.la"; then
7557 found_la="$additional_libdir/lib$name.la"
7562 if test "X$found_dir" = "X"; then
7563 for x in $LDFLAGS $LTLIBICONV; do
7565 acl_save_prefix="$prefix"
7566 prefix="$acl_final_prefix"
7567 acl_save_exec_prefix="$exec_prefix"
7568 exec_prefix="$acl_final_exec_prefix"
7570 exec_prefix="$acl_save_exec_prefix"
7571 prefix="$acl_save_prefix"
7575 dir=`echo "X$x" | sed -e 's/^X-L//'`
7576 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7578 found_so="$dir/lib$name.$shlibext"
7579 if test -f "$dir/lib$name.la"; then
7580 found_la="$dir/lib$name.la"
7583 if test -f "$dir/lib$name.$libext"; then
7585 found_a="$dir/lib$name.$libext"
7586 if test -f "$dir/lib$name.la"; then
7587 found_la="$dir/lib$name.la"
7593 if test "X$found_dir" != "X"; then
7598 if test "X$found_dir" != "X"; then
7599 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7600 if test "X$found_so" != "X"; then
7601 if test "X$found_dir" = "X/usr/lib"; then
7602 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7605 for x in $ltrpathdirs; do
7606 if test "X$x" = "X$found_dir"; then
7611 if test -z "$haveit"; then
7612 ltrpathdirs="$ltrpathdirs $found_dir"
7614 if test "$hardcode_direct" = yes; then
7615 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7617 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7618 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7620 for x in $rpathdirs; do
7621 if test "X$x" = "X$found_dir"; then
7626 if test -z "$haveit"; then
7627 rpathdirs="$rpathdirs $found_dir"
7631 for x in $LDFLAGS $LIBICONV; do
7633 acl_save_prefix="$prefix"
7634 prefix="$acl_final_prefix"
7635 acl_save_exec_prefix="$exec_prefix"
7636 exec_prefix="$acl_final_exec_prefix"
7638 exec_prefix="$acl_save_exec_prefix"
7639 prefix="$acl_save_prefix"
7641 if test "X$x" = "X-L$found_dir"; then
7646 if test -z "$haveit"; then
7647 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7649 if test "$hardcode_minus_L" != no; then
7650 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7652 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7658 if test "X$found_a" != "X"; then
7659 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7661 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7664 additional_includedir=
7665 case "$found_dir" in
7667 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7668 additional_includedir="$basedir/include"
7671 if test "X$additional_includedir" != "X"; then
7672 if test "X$additional_includedir" != "X/usr/include"; then
7674 if test "X$additional_includedir" = "X/usr/local/include"; then
7675 if test -n "$GCC"; then
7677 linux*) haveit=yes;;
7681 if test -z "$haveit"; then
7682 for x in $CPPFLAGS $INCICONV; do
7684 acl_save_prefix="$prefix"
7685 prefix="$acl_final_prefix"
7686 acl_save_exec_prefix="$exec_prefix"
7687 exec_prefix="$acl_final_exec_prefix"
7689 exec_prefix="$acl_save_exec_prefix"
7690 prefix="$acl_save_prefix"
7692 if test "X$x" = "X-I$additional_includedir"; then
7697 if test -z "$haveit"; then
7698 if test -d "$additional_includedir"; then
7699 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7705 if test -n "$found_la"; then
7706 save_libdir="$libdir"
7708 */* | *\\*) . "$found_la" ;;
7709 *) . "./$found_la" ;;
7711 libdir="$save_libdir"
7712 for dep in $dependency_libs; do
7715 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7716 if test "X$additional_libdir" != "X/usr/lib"; then
7718 if test "X$additional_libdir" = "X/usr/local/lib"; then
7719 if test -n "$GCC"; then
7721 linux*) haveit=yes;;
7725 if test -z "$haveit"; then
7727 for x in $LDFLAGS $LIBICONV; do
7729 acl_save_prefix="$prefix"
7730 prefix="$acl_final_prefix"
7731 acl_save_exec_prefix="$exec_prefix"
7732 exec_prefix="$acl_final_exec_prefix"
7734 exec_prefix="$acl_save_exec_prefix"
7735 prefix="$acl_save_prefix"
7737 if test "X$x" = "X-L$additional_libdir"; then
7742 if test -z "$haveit"; then
7743 if test -d "$additional_libdir"; then
7744 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7748 for x in $LDFLAGS $LTLIBICONV; do
7750 acl_save_prefix="$prefix"
7751 prefix="$acl_final_prefix"
7752 acl_save_exec_prefix="$exec_prefix"
7753 exec_prefix="$acl_final_exec_prefix"
7755 exec_prefix="$acl_save_exec_prefix"
7756 prefix="$acl_save_prefix"
7758 if test "X$x" = "X-L$additional_libdir"; then
7763 if test -z "$haveit"; then
7764 if test -d "$additional_libdir"; then
7765 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7772 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7774 for x in $rpathdirs; do
7775 if test "X$x" = "X$dir"; then
7780 if test -z "$haveit"; then
7781 rpathdirs="$rpathdirs $dir"
7784 for x in $ltrpathdirs; do
7785 if test "X$x" = "X$dir"; then
7790 if test -z "$haveit"; then
7791 ltrpathdirs="$ltrpathdirs $dir"
7795 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7798 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7801 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7802 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7808 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7809 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7815 if test "X$rpathdirs" != "X"; then
7816 if test -n "$hardcode_libdir_separator"; then
7818 for found_dir in $rpathdirs; do
7819 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7821 acl_save_libdir="$libdir"
7823 eval flag=\"$hardcode_libdir_flag_spec\"
7824 libdir="$acl_save_libdir"
7825 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7827 for found_dir in $rpathdirs; do
7828 acl_save_libdir="$libdir"
7830 eval flag=\"$hardcode_libdir_flag_spec\"
7831 libdir="$acl_save_libdir"
7832 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7836 if test "X$ltrpathdirs" != "X"; then
7837 for found_dir in $ltrpathdirs; do
7838 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7842 am_save_CPPFLAGS="$CPPFLAGS"
7844 for element in $INCICONV; do
7846 for x in $CPPFLAGS; do
7848 acl_save_prefix="$prefix"
7849 prefix="$acl_final_prefix"
7850 acl_save_exec_prefix="$exec_prefix"
7851 exec_prefix="$acl_final_exec_prefix"
7853 exec_prefix="$acl_save_exec_prefix"
7854 prefix="$acl_save_prefix"
7856 if test "X$x" = "X$element"; then
7861 if test -z "$haveit"; then
7862 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7866 echo "$as_me:7866: checking for iconv" >&5
7867 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7868 if test "${am_cv_func_iconv+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 am_cv_func_iconv="no, consider installing GNU libiconv"
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line 7875 "configure"
7876 #include "confdefs.h"
7882 iconv_t cd = iconv_open("","");
7883 iconv(cd,NULL,NULL,NULL,NULL);
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:7890: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>&5
7893 echo "$as_me:7893: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (eval echo "$as_me:7896: \"$ac_try\"") >&5
7899 echo "$as_me:7899: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 am_cv_func_iconv=yes
7903 echo "$as_me: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7907 if test "$am_cv_func_iconv" != yes; then
7908 am_save_LIBS="$LIBS"
7909 LIBS="$LIBS $LIBICONV"
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line 7911 "configure"
7912 #include "confdefs.h"
7918 iconv_t cd = iconv_open("","");
7919 iconv(cd,NULL,NULL,NULL,NULL);
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (eval echo "$as_me:7926: \"$ac_link\"") >&5
7927 (eval $ac_link) 2>&5
7929 echo "$as_me:7929: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
7931 { ac_try='test -s conftest$ac_exeext'
7932 { (eval echo "$as_me:7932: \"$ac_try\"") >&5
7935 echo "$as_me:7935: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7938 am_cv_func_iconv=yes
7940 echo "$as_me: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7944 LIBS="$am_save_LIBS"
7948 echo "$as_me:7948: result: $am_cv_func_iconv" >&5
7949 echo "${ECHO_T}$am_cv_func_iconv" >&6
7950 if test "$am_cv_func_iconv" = yes; then
7952 cat >>confdefs.h <<\EOF
7953 #define HAVE_ICONV 1
7957 if test "$am_cv_lib_iconv" = yes; then
7958 echo "$as_me:7958: checking how to link with libiconv" >&5
7959 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7960 echo "$as_me:7960: result: $LIBICONV" >&5
7961 echo "${ECHO_T}$LIBICONV" >&6
7963 CPPFLAGS="$am_save_CPPFLAGS"
7970 acl_save_prefix="$prefix"
7971 prefix="$acl_final_prefix"
7972 acl_save_exec_prefix="$exec_prefix"
7973 exec_prefix="$acl_final_exec_prefix"
7975 eval additional_includedir=\"$includedir\"
7976 eval additional_libdir=\"$libdir\"
7978 exec_prefix="$acl_save_exec_prefix"
7979 prefix="$acl_save_prefix"
7981 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7982 if test "${with_libintl_prefix+set}" = set; then
7983 withval="$with_libintl_prefix"
7985 if test "X$withval" = "Xno"; then
7988 if test "X$withval" = "X"; then
7990 acl_save_prefix="$prefix"
7991 prefix="$acl_final_prefix"
7992 acl_save_exec_prefix="$exec_prefix"
7993 exec_prefix="$acl_final_exec_prefix"
7995 eval additional_includedir=\"$includedir\"
7996 eval additional_libdir=\"$libdir\"
7998 exec_prefix="$acl_save_exec_prefix"
7999 prefix="$acl_save_prefix"
8002 additional_includedir="$withval/include"
8003 additional_libdir="$withval/lib"
8013 names_already_handled=
8014 names_next_round='intl '
8015 while test -n "$names_next_round"; do
8016 names_this_round="$names_next_round"
8018 for name in $names_this_round; do
8020 for n in $names_already_handled; do
8021 if test "$n" = "$name"; then
8026 if test -z "$already_handled"; then
8027 names_already_handled="$names_already_handled $name"
8028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8029 eval value=\"\$HAVE_LIB$uppername\"
8030 if test -n "$value"; then
8031 if test "$value" = yes; then
8032 eval value=\"\$LIB$uppername\"
8033 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8034 eval value=\"\$LTLIB$uppername\"
8035 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8044 if test $use_additional = yes; then
8045 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8046 found_dir="$additional_libdir"
8047 found_so="$additional_libdir/lib$name.$shlibext"
8048 if test -f "$additional_libdir/lib$name.la"; then
8049 found_la="$additional_libdir/lib$name.la"
8052 if test -f "$additional_libdir/lib$name.$libext"; then
8053 found_dir="$additional_libdir"
8054 found_a="$additional_libdir/lib$name.$libext"
8055 if test -f "$additional_libdir/lib$name.la"; then
8056 found_la="$additional_libdir/lib$name.la"
8061 if test "X$found_dir" = "X"; then
8062 for x in $LDFLAGS $LTLIBINTL; do
8064 acl_save_prefix="$prefix"
8065 prefix="$acl_final_prefix"
8066 acl_save_exec_prefix="$exec_prefix"
8067 exec_prefix="$acl_final_exec_prefix"
8069 exec_prefix="$acl_save_exec_prefix"
8070 prefix="$acl_save_prefix"
8074 dir=`echo "X$x" | sed -e 's/^X-L//'`
8075 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8077 found_so="$dir/lib$name.$shlibext"
8078 if test -f "$dir/lib$name.la"; then
8079 found_la="$dir/lib$name.la"
8082 if test -f "$dir/lib$name.$libext"; then
8084 found_a="$dir/lib$name.$libext"
8085 if test -f "$dir/lib$name.la"; then
8086 found_la="$dir/lib$name.la"
8092 if test "X$found_dir" != "X"; then
8097 if test "X$found_dir" != "X"; then
8098 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8099 if test "X$found_so" != "X"; then
8100 if test "X$found_dir" = "X/usr/lib"; then
8101 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8104 for x in $ltrpathdirs; do
8105 if test "X$x" = "X$found_dir"; then
8110 if test -z "$haveit"; then
8111 ltrpathdirs="$ltrpathdirs $found_dir"
8113 if test "$hardcode_direct" = yes; then
8114 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8116 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8119 for x in $rpathdirs; do
8120 if test "X$x" = "X$found_dir"; then
8125 if test -z "$haveit"; then
8126 rpathdirs="$rpathdirs $found_dir"
8130 for x in $LDFLAGS $LIBINTL; do
8132 acl_save_prefix="$prefix"
8133 prefix="$acl_final_prefix"
8134 acl_save_exec_prefix="$exec_prefix"
8135 exec_prefix="$acl_final_exec_prefix"
8137 exec_prefix="$acl_save_exec_prefix"
8138 prefix="$acl_save_prefix"
8140 if test "X$x" = "X-L$found_dir"; then
8145 if test -z "$haveit"; then
8146 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8148 if test "$hardcode_minus_L" != no; then
8149 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8157 if test "X$found_a" != "X"; then
8158 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8160 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8163 additional_includedir=
8164 case "$found_dir" in
8166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8167 additional_includedir="$basedir/include"
8170 if test "X$additional_includedir" != "X"; then
8171 if test "X$additional_includedir" != "X/usr/include"; then
8173 if test "X$additional_includedir" = "X/usr/local/include"; then
8174 if test -n "$GCC"; then
8176 linux*) haveit=yes;;
8180 if test -z "$haveit"; then
8181 for x in $CPPFLAGS $INCINTL; do
8183 acl_save_prefix="$prefix"
8184 prefix="$acl_final_prefix"
8185 acl_save_exec_prefix="$exec_prefix"
8186 exec_prefix="$acl_final_exec_prefix"
8188 exec_prefix="$acl_save_exec_prefix"
8189 prefix="$acl_save_prefix"
8191 if test "X$x" = "X-I$additional_includedir"; then
8196 if test -z "$haveit"; then
8197 if test -d "$additional_includedir"; then
8198 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8204 if test -n "$found_la"; then
8205 save_libdir="$libdir"
8207 */* | *\\*) . "$found_la" ;;
8208 *) . "./$found_la" ;;
8210 libdir="$save_libdir"
8211 for dep in $dependency_libs; do
8214 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8215 if test "X$additional_libdir" != "X/usr/lib"; then
8217 if test "X$additional_libdir" = "X/usr/local/lib"; then
8218 if test -n "$GCC"; then
8220 linux*) haveit=yes;;
8224 if test -z "$haveit"; then
8226 for x in $LDFLAGS $LIBINTL; do
8228 acl_save_prefix="$prefix"
8229 prefix="$acl_final_prefix"
8230 acl_save_exec_prefix="$exec_prefix"
8231 exec_prefix="$acl_final_exec_prefix"
8233 exec_prefix="$acl_save_exec_prefix"
8234 prefix="$acl_save_prefix"
8236 if test "X$x" = "X-L$additional_libdir"; then
8241 if test -z "$haveit"; then
8242 if test -d "$additional_libdir"; then
8243 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8247 for x in $LDFLAGS $LTLIBINTL; do
8249 acl_save_prefix="$prefix"
8250 prefix="$acl_final_prefix"
8251 acl_save_exec_prefix="$exec_prefix"
8252 exec_prefix="$acl_final_exec_prefix"
8254 exec_prefix="$acl_save_exec_prefix"
8255 prefix="$acl_save_prefix"
8257 if test "X$x" = "X-L$additional_libdir"; then
8262 if test -z "$haveit"; then
8263 if test -d "$additional_libdir"; then
8264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8271 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8273 for x in $rpathdirs; do
8274 if test "X$x" = "X$dir"; then
8279 if test -z "$haveit"; then
8280 rpathdirs="$rpathdirs $dir"
8283 for x in $ltrpathdirs; do
8284 if test "X$x" = "X$dir"; then
8289 if test -z "$haveit"; then
8290 ltrpathdirs="$ltrpathdirs $dir"
8294 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8300 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8307 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8308 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8314 if test "X$rpathdirs" != "X"; then
8315 if test -n "$hardcode_libdir_separator"; then
8317 for found_dir in $rpathdirs; do
8318 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8320 acl_save_libdir="$libdir"
8322 eval flag=\"$hardcode_libdir_flag_spec\"
8323 libdir="$acl_save_libdir"
8324 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8326 for found_dir in $rpathdirs; do
8327 acl_save_libdir="$libdir"
8329 eval flag=\"$hardcode_libdir_flag_spec\"
8330 libdir="$acl_save_libdir"
8331 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8335 if test "X$ltrpathdirs" != "X"; then
8336 for found_dir in $ltrpathdirs; do
8337 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8341 echo "$as_me:8341: checking for GNU gettext in libintl" >&5
8342 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8343 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 gt_save_CPPFLAGS="$CPPFLAGS"
8347 CPPFLAGS="$CPPFLAGS $INCINTL"
8348 gt_save_LIBS="$LIBS"
8349 LIBS="$LIBS $LIBINTL"
8350 cat >conftest.$ac_ext <<_ACEOF
8351 #line 8351 "configure"
8352 #include "confdefs.h"
8353 #include <libintl.h>
8354 extern int _nl_msg_cat_cntr;
8359 const char *_nl_expand_alias ();
8363 bindtextdomain ("", "");
8364 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:8370: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>&5
8373 echo "$as_me:8373: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -s conftest$ac_exeext'
8376 { (eval echo "$as_me:8376: \"$ac_try\"") >&5
8379 echo "$as_me:8379: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 gt_cv_func_gnugettext1_libintl=yes
8383 echo "$as_me: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8385 gt_cv_func_gnugettext1_libintl=no
8387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8388 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8389 LIBS="$LIBS $LIBICONV"
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8393 #include <libintl.h>
8394 extern int _nl_msg_cat_cntr;
8399 const char *_nl_expand_alias ();
8403 bindtextdomain ("", "");
8404 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:8410: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>&5
8413 echo "$as_me:8413: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -s conftest$ac_exeext'
8416 { (eval echo "$as_me:8416: \"$ac_try\"") >&5
8419 echo "$as_me:8419: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 LIBINTL="$LIBINTL $LIBICONV"
8422 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8423 gt_cv_func_gnugettext1_libintl=yes
8426 echo "$as_me: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8431 CPPFLAGS="$gt_save_CPPFLAGS"
8432 LIBS="$gt_save_LIBS"
8434 echo "$as_me:8434: result: $gt_cv_func_gnugettext1_libintl" >&5
8435 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8438 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8439 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8440 && test "$PACKAGE" != gettext; }; then
8441 gt_use_preinstalled_gnugettext=yes
8448 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8449 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8451 cat >>confdefs.h <<\EOF
8452 #define ENABLE_NLS 1
8460 if test "$USE_NLS" = "yes"; then
8462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8463 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8464 echo "$as_me:8464: checking how to link with libintl" >&5
8465 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8466 echo "$as_me:8466: result: $LIBINTL" >&5
8467 echo "${ECHO_T}$LIBINTL" >&6
8469 for element in $INCINTL; do
8471 for x in $CPPFLAGS; do
8473 acl_save_prefix="$prefix"
8474 prefix="$acl_final_prefix"
8475 acl_save_exec_prefix="$exec_prefix"
8476 exec_prefix="$acl_final_exec_prefix"
8478 exec_prefix="$acl_save_exec_prefix"
8479 prefix="$acl_save_prefix"
8481 if test "X$x" = "X$element"; then
8486 if test -z "$haveit"; then
8487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8493 cat >>confdefs.h <<\EOF
8494 #define HAVE_GETTEXT 1
8497 cat >>confdefs.h <<\EOF
8498 #define HAVE_DCGETTEXT 1
8508 for ac_header in locale.h
8510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 echo "$as_me:8511: checking for $ac_header" >&5
8512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 cat >conftest.$ac_ext <<_ACEOF
8517 #line 8517 "configure"
8518 #include "confdefs.h"
8519 #include <$ac_header>
8521 if { (eval echo "$as_me:8521: \"$ac_cpp conftest.$ac_ext\"") >&5
8522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8524 egrep -v '^ *\+' conftest.er1 >conftest.err
8526 cat conftest.err >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); } >/dev/null; then
8529 if test -s conftest.err; then
8530 ac_cpp_err=$ac_c_preproc_warn_flag
8537 if test -z "$ac_cpp_err"; then
8538 eval "$as_ac_Header=yes"
8540 echo "$as_me: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8542 eval "$as_ac_Header=no"
8544 rm -f conftest.err conftest.$ac_ext
8546 echo "$as_me:8546: result: `eval echo '${'$as_ac_Header'}'`" >&5
8547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549 cat >>confdefs.h <<EOF
8550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8556 for ac_header in stdlib.h
8558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8559 echo "$as_me:8559: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 cat >conftest.$ac_ext <<_ACEOF
8565 #line 8565 "configure"
8566 #include "confdefs.h"
8567 #include <$ac_header>
8569 if { (eval echo "$as_me:8569: \"$ac_cpp conftest.$ac_ext\"") >&5
8570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8572 egrep -v '^ *\+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:8575: \$? = $ac_status" >&5
8576 (exit $ac_status); } >/dev/null; then
8577 if test -s conftest.err; then
8578 ac_cpp_err=$ac_c_preproc_warn_flag
8585 if test -z "$ac_cpp_err"; then
8586 eval "$as_ac_Header=yes"
8588 echo "$as_me: failed program was:" >&5
8589 cat conftest.$ac_ext >&5
8590 eval "$as_ac_Header=no"
8592 rm -f conftest.err conftest.$ac_ext
8594 echo "$as_me:8594: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8597 cat >>confdefs.h <<EOF
8598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604 echo "$as_me:8604: checking for mbstate_t" >&5
8605 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
8606 if test "${ac_cv_type_mbstate_t+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 cat >conftest.$ac_ext <<_ACEOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8614 # include <stdlib.h>
8620 mbstate_t x; return sizeof x;
8625 rm -f conftest.$ac_objext
8626 if { (eval echo "$as_me:8626: \"$ac_compile\"") >&5
8627 (eval $ac_compile) 2>&5
8629 echo "$as_me:8629: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:8632: \"$ac_try\"") >&5
8635 echo "$as_me:8635: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_type_mbstate_t=yes
8639 echo "$as_me: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8641 ac_cv_type_mbstate_t=no
8643 rm -f conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:8645: result: $ac_cv_type_mbstate_t" >&5
8646 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
8647 if test $ac_cv_type_mbstate_t = no; then
8649 cat >>confdefs.h <<\EOF
8650 #define mbstate_t int
8655 if test "$am_cv_func_iconv" = yes -a -z "$am_cv_proto_iconv_arg1"; then
8661 for ac_func in mbrtowc wcrtomb mbsinit setlocale
8663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8664 echo "$as_me:8664: checking for $ac_func" >&5
8665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8666 if eval "test \"\${$as_ac_var+set}\" = set"; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 #line 8670 "configure"
8671 #include "confdefs.h"
8672 /* System header to define __stub macros and hopefully few prototypes,
8673 which can conflict with char $ac_func (); below. */
8675 /* Override any gcc2 internal prototype to avoid an error. */
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:8701: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>&5
8704 echo "$as_me:8704: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:8707: \"$ac_try\"") >&5
8710 echo "$as_me:8710: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 eval "$as_ac_var=yes"
8714 echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 eval "$as_ac_var=no"
8718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8720 echo "$as_me:8720: result: `eval echo '${'$as_ac_var'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8722 if test `eval echo '${'$as_ac_var'}'` = yes; then
8723 cat >>confdefs.h <<EOF
8724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8730 for ac_header in wchar.h
8732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8733 echo "$as_me:8733: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line 8739 "configure"
8740 #include "confdefs.h"
8741 #include <$ac_header>
8743 if { (eval echo "$as_me:8743: \"$ac_cpp conftest.$ac_ext\"") >&5
8744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8746 egrep -v '^ *\+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:8749: \$? = $ac_status" >&5
8750 (exit $ac_status); } >/dev/null; then
8751 if test -s conftest.err; then
8752 ac_cpp_err=$ac_c_preproc_warn_flag
8759 if test -z "$ac_cpp_err"; then
8760 eval "$as_ac_Header=yes"
8762 echo "$as_me: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 eval "$as_ac_Header=no"
8766 rm -f conftest.err conftest.$ac_ext
8768 echo "$as_me:8768: result: `eval echo '${'$as_ac_Header'}'`" >&5
8769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8771 cat >>confdefs.h <<EOF
8772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 echo "$as_me:8778: checking for EILSEQ" >&5
8779 echo $ECHO_N "checking for EILSEQ... $ECHO_C" >&6
8780 if test "${ac_cv_decl_EILSEQ+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line 8785 "configure"
8786 #include "confdefs.h"
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795 egrep "yes" >/dev/null 2>&1; then
8800 if test -n "$have_eilseq"; then
8801 ac_cv_decl_EILSEQ=yes
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line 8804 "configure"
8805 #include "confdefs.h"
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 egrep "yes" >/dev/null 2>&1; then
8822 if test -n "$have_eilseq"; then
8823 if test "$cross_compiling" = yes; then
8824 # Depending upon the size, compute the lo and hi bounds.
8825 cat >conftest.$ac_ext <<_ACEOF
8826 #line 8826 "configure"
8827 #include "confdefs.h"
8833 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8840 int _array_ [1 - 2 * !((EILSEQ) >= 0)]
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:8846: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>&5
8849 echo "$as_me:8849: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest.$ac_objext'
8852 { (eval echo "$as_me:8852: \"$ac_try\"") >&5
8855 echo "$as_me:8855: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8859 cat >conftest.$ac_ext <<_ACEOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8867 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8874 int _array_ [1 - 2 * !((EILSEQ) <= $ac_mid)]
8879 rm -f conftest.$ac_objext
8880 if { (eval echo "$as_me:8880: \"$ac_compile\"") >&5
8881 (eval $ac_compile) 2>&5
8883 echo "$as_me:8883: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (eval echo "$as_me:8886: \"$ac_try\"") >&5
8889 echo "$as_me:8889: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_hi=$ac_mid; break
8893 echo "$as_me: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8895 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8897 rm -f conftest.$ac_objext conftest.$ac_ext
8900 echo "$as_me: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8904 cat >conftest.$ac_ext <<_ACEOF
8905 #line 8905 "configure"
8906 #include "confdefs.h"
8912 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8919 int _array_ [1 - 2 * !((EILSEQ) >= $ac_mid)]
8924 rm -f conftest.$ac_objext
8925 if { (eval echo "$as_me:8925: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>&5
8928 echo "$as_me:8928: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -s conftest.$ac_objext'
8931 { (eval echo "$as_me:8931: \"$ac_try\"") >&5
8934 echo "$as_me:8934: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_lo=$ac_mid; break
8938 echo "$as_me: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8940 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8942 rm -f conftest.$ac_objext conftest.$ac_ext
8945 rm -f conftest.$ac_objext conftest.$ac_ext
8946 # Binary search between lo and hi bounds.
8947 while test "x$ac_lo" != "x$ac_hi"; do
8948 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8949 cat >conftest.$ac_ext <<_ACEOF
8950 #line 8950 "configure"
8951 #include "confdefs.h"
8957 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8964 int _array_ [1 - 2 * !((EILSEQ) <= $ac_mid)]
8969 rm -f conftest.$ac_objext
8970 if { (eval echo "$as_me:8970: \"$ac_compile\"") >&5
8971 (eval $ac_compile) 2>&5
8973 echo "$as_me:8973: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:8976: \"$ac_try\"") >&5
8979 echo "$as_me:8979: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8983 echo "$as_me: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8985 ac_lo=`expr $ac_mid + 1`
8987 rm -f conftest.$ac_objext conftest.$ac_ext
8989 ac_cv_decl_EILSEQ=$ac_lo
8991 if test "$cross_compiling" = yes; then
8992 { { echo "$as_me:8992: error: cannot run test program while cross compiling" >&5
8993 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8994 { (exit 1); exit 1; }; }
8996 cat >conftest.$ac_ext <<_ACEOF
8997 #line 8997 "configure"
8998 #include "confdefs.h"
9004 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9011 FILE *f = fopen ("conftest.val", "w");
9014 fprintf (f, "%d", (EILSEQ));
9020 rm -f conftest$ac_exeext
9021 if { (eval echo "$as_me:9021: \"$ac_link\"") >&5
9022 (eval $ac_link) 2>&5
9024 echo "$as_me:9024: \$? = $ac_status" >&5
9025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9026 { (eval echo "$as_me:9026: \"$ac_try\"") >&5
9029 echo "$as_me:9029: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_cv_decl_EILSEQ=`cat conftest.val`
9033 echo "$as_me: program exited with status $ac_status" >&5
9034 echo "$as_me: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9037 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9042 ac_cv_decl_EILSEQ=ENOENT
9047 echo "$as_me:9047: result: $ac_cv_decl_EILSEQ" >&5
9048 echo "${ECHO_T}$ac_cv_decl_EILSEQ" >&6
9049 if test "$ac_cv_decl_EILSEQ" != yes; then
9051 cat >>confdefs.h <<EOF
9052 #define EILSEQ $ac_cv_decl_EILSEQ
9055 EILSEQ="$ac_cv_decl_EILSEQ"
9059 echo "$as_me:9059: checking byte ordering" >&5
9060 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6
9061 if test "${cl_cv_sys_endian+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 if test "$cross_compiling" = yes; then
9066 : # must guess the endianness
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9073 /* Are we little or big endian? From Harbison&Steele. */
9077 char c[sizeof (long)];
9083 rm -f conftest$ac_exeext
9084 if { (eval echo "$as_me:9084: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9087 echo "$as_me:9087: \$? = $ac_status" >&5
9088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9089 { (eval echo "$as_me:9089: \"$ac_try\"") >&5
9092 echo "$as_me:9092: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 cl_cv_sys_endian="big endian"
9096 echo "$as_me: program exited with status $ac_status" >&5
9097 echo "$as_me: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9099 cl_cv_sys_endian="little endian"
9101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9103 if test -z "$cl_cv_sys_endian"; then
9104 cat >conftest.$ac_ext <<_ACEOF
9105 #line 9105 "configure"
9106 #include "confdefs.h"
9107 #if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
9112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9113 egrep "yes" >/dev/null 2>&1; then
9114 cl_cv_sys_endian="big endian"
9119 if test -z "$cl_cv_sys_endian"; then
9120 cat >conftest.$ac_ext <<_ACEOF
9121 #line 9121 "configure"
9122 #include "confdefs.h"
9123 #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 egrep "yes" >/dev/null 2>&1; then
9130 cl_cv_sys_endian="little endian"
9135 if test -z "$cl_cv_sys_endian"; then
9136 cl_cv_sys_endian="guessing little endian"
9140 echo "$as_me:9140: result: $cl_cv_sys_endian" >&5
9141 echo "${ECHO_T}$cl_cv_sys_endian" >&6
9142 case "$cl_cv_sys_endian" in
9143 *little*) cat >>confdefs.h <<\EOF
9144 #define WORDS_LITTLEENDIAN 1
9152 linux*) OS="linux" ;;
9153 solaris*) OS="solaris" ;;
9156 if test -n "$OS"; then
9158 PLUGLIB="libiconv_plug.so"
9163 if test -d "${srcdir}/tests"; then
9164 TESTS_MAKEFILE=tests/Makefile
9169 subdirs="$subdirs libcharset"
9171 ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile po/Makefile.in man/Makefile ${TESTS_MAKEFILE} include/iconv.h"
9172 cat >confcache <<\_ACEOF
9173 # This file is a shell script that caches the results of configure
9174 # tests run on this system so they can be shared between configure
9175 # scripts and configure runs, see configure's option --config-cache.
9176 # It is not useful on other systems. If it contains results you don't
9177 # want to keep, you may remove or edit it.
9179 # config.status only pays attention to the cache file if you give it
9180 # the --recheck option to rerun configure.
9182 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9188 # The following way of writing the cache mishandles newlines in values,
9189 # but we know of no workaround that is simple, portable, and efficient.
9190 # So, don't put newlines in cache variables' values.
9191 # Ultrix sh set writes to stderr and can't be redirected directly,
9192 # and sets the high bit in the cache file unless we assign to the vars.
9195 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9197 # `set' does not quote correctly, so add quotes (double-quote
9198 # substitution turns \\\\ into \\, and sed turns \\ into \).
9201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9204 # `set' quotes correctly as required by POSIX, so do not add quotes.
9206 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9215 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9217 if cmp -s $cache_file confcache; then :; else
9218 if test -w $cache_file; then
9219 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9220 cat confcache >$cache_file
9222 echo "not updating unwritable cache $cache_file"
9227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9228 # Let make expand exec_prefix.
9229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9231 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9232 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9233 # trailing colons and then remove the whole line if VPATH becomes empty
9234 # (actually we leave an empty line to preserve line numbers).
9235 if test "x$srcdir" = x.; then
9236 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9237 s/:*\$(srcdir):*/:/;
9238 s/:*\${srcdir}:*/:/;
9240 s/^\([^=]*=[ ]*\):*/\1/;
9246 DEFS=-DHAVE_CONFIG_H
9248 : ${CONFIG_STATUS=./config.status}
9249 ac_clean_files_save=$ac_clean_files
9250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9251 { echo "$as_me:9251: creating $CONFIG_STATUS" >&5
9252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9253 cat >$CONFIG_STATUS <<_ACEOF
9255 # Generated automatically by configure.
9256 # Run this file to recreate the current configuration.
9257 # Compiler output produced by configure, useful for debugging
9258 # configure, is in config.log if it exists.
9261 SHELL=\${CONFIG_SHELL-$SHELL}
9262 ac_cs_invocation="\$0 \$@"
9266 cat >>$CONFIG_STATUS <<\_ACEOF
9267 # Be Bourne compatible
9268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9271 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9275 # Name of the executable.
9276 as_me=`echo "$0" |sed 's,.*[\\/],,'`
9278 if expr a : '\(a\)' >/dev/null 2>&1; then
9284 rm -f conf$$ conf$$.exe conf$$.file
9286 if ln -s conf$$.file conf$$ 2>/dev/null; then
9287 # We could just check for DJGPP; but this test a) works b) is more generic
9288 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9289 if test -f conf$$.exe; then
9290 # Don't use ln at all; we don't have any links
9295 elif ln conf$$.file conf$$ 2>/dev/null; then
9300 rm -f conf$$ conf$$.exe conf$$.file
9302 as_executable_p="test -f"
9304 # Support unset when possible.
9305 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9312 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
9313 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
9314 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
9315 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
9316 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
9317 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
9318 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
9319 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
9322 # We need space, tab and new line, in precisely that order.
9328 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
9334 # Files that config.status was made for.
9335 if test -n "$ac_config_files"; then
9336 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9339 if test -n "$ac_config_headers"; then
9340 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9343 if test -n "$ac_config_links"; then
9344 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9347 if test -n "$ac_config_commands"; then
9348 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9351 cat >>$CONFIG_STATUS <<\EOF
9354 \`$as_me' instantiates files from templates according to the
9355 current configuration.
9357 Usage: $0 [OPTIONS] [FILE]...
9359 -h, --help print this help, then exit
9360 -V, --version print version number, then exit
9361 -d, --debug don't remove temporary files
9362 --recheck update $as_me by reconfiguring in the same conditions
9363 --file=FILE[:TEMPLATE]
9364 instantiate the configuration file FILE
9365 --header=FILE[:TEMPLATE]
9366 instantiate the configuration header FILE
9368 Configuration files:
9371 Configuration headers:
9374 Configuration commands:
9377 Report bugs to <bug-autoconf@gnu.org>."
9380 cat >>$CONFIG_STATUS <<EOF
9382 libiconv config.status 1.8
9383 configured by $0, generated by GNU Autoconf 2.52,
9384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9386 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9387 Free Software Foundation, Inc.
9388 This config.status script is free software; the Free Software Foundation
9389 gives unlimited permission to copy, distribute and modify it."
9394 cat >>$CONFIG_STATUS <<\EOF
9395 # If no file are specified by the user, then we need to provide default
9396 # value. By we need to know if files were specified by the user.
9402 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9403 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9405 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9409 *) # This is not an option, so the user has probably given explicit
9411 ac_need_defaults=false;;
9415 # Handling of the options.
9417 cat >>$CONFIG_STATUS <<EOF
9418 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9419 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9420 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9422 cat >>$CONFIG_STATUS <<\EOF
9423 --version | --vers* | -V )
9424 echo "$ac_cs_version"; exit 0 ;;
9426 # Conflict between --help and --header
9427 { { echo "$as_me:9427: error: ambiguous option: $1
9428 Try \`$0 --help' for more information." >&5
9429 echo "$as_me: error: ambiguous option: $1
9430 Try \`$0 --help' for more information." >&2;}
9431 { (exit 1); exit 1; }; };;
9432 --help | --hel | -h )
9433 echo "$ac_cs_usage"; exit 0 ;;
9434 --debug | --d* | -d )
9436 --file | --fil | --fi | --f )
9438 CONFIG_FILES="$CONFIG_FILES $1"
9439 ac_need_defaults=false;;
9440 --header | --heade | --head | --hea )
9442 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9443 ac_need_defaults=false;;
9446 -*) { { echo "$as_me:9446: error: unrecognized option: $1
9447 Try \`$0 --help' for more information." >&5
9448 echo "$as_me: error: unrecognized option: $1
9449 Try \`$0 --help' for more information." >&2;}
9450 { (exit 1); exit 1; }; } ;;
9452 *) ac_config_targets="$ac_config_targets $1" ;;
9461 ## ----------------------- ##
9462 ## Running config.status. ##
9463 ## ----------------------- ##
9465 This file was extended by $as_me (libiconv 1.8) 2.52, executed with
9466 CONFIG_FILES = $CONFIG_FILES
9467 CONFIG_HEADERS = $CONFIG_HEADERS
9468 CONFIG_LINKS = $CONFIG_LINKS
9469 CONFIG_COMMANDS = $CONFIG_COMMANDS
9471 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9476 cat >>$CONFIG_STATUS <<EOF
9478 # INIT-COMMANDS section.
9481 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
9482 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9484 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9485 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9486 LINGUAS="${LINGUAS-%UNSET%}"
9490 cat >>$CONFIG_STATUS <<\EOF
9491 for ac_config_target in $ac_config_targets
9493 case "$ac_config_target" in
9494 # Handling of arguments.
9495 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9496 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9497 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9498 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9499 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9500 "${TESTS_MAKEFILE}" ) CONFIG_FILES="$CONFIG_FILES ${TESTS_MAKEFILE}" ;;
9501 "include/iconv.h" ) CONFIG_FILES="$CONFIG_FILES include/iconv.h" ;;
9502 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9503 "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
9504 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9505 *) { { echo "$as_me:9505: error: invalid argument: $ac_config_target" >&5
9506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9507 { (exit 1); exit 1; }; };;
9511 # If the user did not use the arguments to specify the items to instantiate,
9512 # then the envvar interface is used. Set only those that are not.
9513 # We use the long form for the default assignment because of an extremely
9514 # bizarre bug on SunOS 4.1.3.
9515 if $ac_need_defaults; then
9516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9521 # Create a temporary directory, and hook for its removal unless debugging.
9524 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9525 trap '{ (exit 1); exit 1; }' 1 2 13 15
9528 # Create a (secure) tmp directory for tmp files.
9531 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9532 test -n "$tmp" && test -d "$tmp"
9535 tmp=$TMPDIR/cs$$-$RANDOM
9536 (umask 077 && mkdir $tmp)
9539 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9540 { (exit 1); exit 1; }
9545 cat >>$CONFIG_STATUS <<EOF
9548 # CONFIG_FILES section.
9551 # No need to generate the scripts if there are no CONFIG_FILES.
9552 # This happens for instance when ./config.status config.h
9553 if test -n "\$CONFIG_FILES"; then
9554 # Protect against being on the right side of a sed subst in config.status.
9555 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9556 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9557 s,@SHELL@,$SHELL,;t t
9558 s,@exec_prefix@,$exec_prefix,;t t
9559 s,@prefix@,$prefix,;t t
9560 s,@program_transform_name@,$program_transform_name,;t t
9561 s,@bindir@,$bindir,;t t
9562 s,@sbindir@,$sbindir,;t t
9563 s,@libexecdir@,$libexecdir,;t t
9564 s,@datadir@,$datadir,;t t
9565 s,@sysconfdir@,$sysconfdir,;t t
9566 s,@sharedstatedir@,$sharedstatedir,;t t
9567 s,@localstatedir@,$localstatedir,;t t
9568 s,@libdir@,$libdir,;t t
9569 s,@includedir@,$includedir,;t t
9570 s,@oldincludedir@,$oldincludedir,;t t
9571 s,@infodir@,$infodir,;t t
9572 s,@mandir@,$mandir,;t t
9573 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9574 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9575 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9576 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9577 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9578 s,@build_alias@,$build_alias,;t t
9579 s,@host_alias@,$host_alias,;t t
9580 s,@target_alias@,$target_alias,;t t
9581 s,@ECHO_C@,$ECHO_C,;t t
9582 s,@ECHO_N@,$ECHO_N,;t t
9583 s,@ECHO_T@,$ECHO_T,;t t
9584 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9587 s,@PACKAGE@,$PACKAGE,;t t
9588 s,@VERSION@,$VERSION,;t t
9589 s,@SET_MAKE@,$SET_MAKE,;t t
9590 s,@USE_EXTRA_ENCODINGS@,$USE_EXTRA_ENCODINGS,;t t
9592 s,@CFLAGS@,$CFLAGS,;t t
9593 s,@LDFLAGS@,$LDFLAGS,;t t
9594 s,@CPPFLAGS@,$CPPFLAGS,;t t
9595 s,@ac_ct_CC@,$ac_ct_CC,;t t
9596 s,@EXEEXT@,$EXEEXT,;t t
9597 s,@OBJEXT@,$OBJEXT,;t t
9599 s,@RANLIB@,$RANLIB,;t t
9600 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9601 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9602 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9606 s,@build@,$build,;t t
9607 s,@build_cpu@,$build_cpu,;t t
9608 s,@build_vendor@,$build_vendor,;t t
9609 s,@build_os@,$build_os,;t t
9611 s,@host_cpu@,$host_cpu,;t t
9612 s,@host_vendor@,$host_vendor,;t t
9613 s,@host_os@,$host_os,;t t
9615 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9616 s,@STRIP@,$STRIP,;t t
9617 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9618 s,@LIBTOOL@,$LIBTOOL,;t t
9619 s,@LIBICONV@,$LIBICONV,;t t
9620 s,@LTLIBICONV@,$LTLIBICONV,;t t
9621 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9622 s,@MSGFMT@,$MSGFMT,;t t
9623 s,@GMSGFMT@,$GMSGFMT,;t t
9624 s,@XGETTEXT@,$XGETTEXT,;t t
9625 s,@MSGMERGE@,$MSGMERGE,;t t
9626 s,@USE_NLS@,$USE_NLS,;t t
9627 s,@INTLLIBS@,$INTLLIBS,;t t
9628 s,@LIBINTL@,$LIBINTL,;t t
9629 s,@LTLIBINTL@,$LTLIBINTL,;t t
9630 s,@POSUB@,$POSUB,;t t
9631 s,@ICONV_CONST@,$ICONV_CONST,;t t
9632 s,@EILSEQ@,$EILSEQ,;t t
9635 s,@PLUGLIB@,$PLUGLIB,;t t
9636 s,@subdirs@,$subdirs,;t t
9641 cat >>$CONFIG_STATUS <<\EOF
9642 # Split the substitutions into bite-sized pieces for seds with
9643 # small command number limits, like on Digital OSF/1 and HP-UX.
9645 ac_sed_frag=1 # Number of current file.
9646 ac_beg=1 # First line for current file.
9647 ac_end=$ac_max_sed_lines # Line after last line for current file.
9650 while $ac_more_lines; do
9651 if test $ac_beg -gt 1; then
9652 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9654 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9656 if test ! -s $tmp/subs.frag; then
9659 # The purpose of the label and of the branching condition is to
9660 # speed up the sed processing (if there are no `@' at all, there
9661 # is no need to browse any of the substitutions).
9662 # These are the two extra sed commands mentioned above.
9664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9665 if test -z "$ac_sed_cmds"; then
9666 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9668 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9670 ac_sed_frag=`expr $ac_sed_frag + 1`
9672 ac_end=`expr $ac_end + $ac_max_sed_lines`
9675 if test -z "$ac_sed_cmds"; then
9678 fi # test -n "$CONFIG_FILES"
9681 cat >>$CONFIG_STATUS <<\EOF
9682 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9683 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9685 - | *:- | *:-:* ) # input from stdin
9687 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9688 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9689 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9691 * ) ac_file_in=$ac_file.in ;;
9694 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9695 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9696 X"$ac_file" : 'X\(//\)[^/]' \| \
9697 X"$ac_file" : 'X\(//\)$' \| \
9698 X"$ac_file" : 'X\(/\)' \| \
9699 . : '\(.\)' 2>/dev/null ||
9701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9703 /^X\(\/\/\)$/{ s//\1/; q; }
9704 /^X\(\/\).*/{ s//\1/; q; }
9706 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9708 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9712 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9713 case $as_mkdir_dir in
9714 # Skip DOS drivespec
9715 ?:) as_incr_dir=$as_mkdir_dir ;;
9717 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9718 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9723 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9724 # A "../" for each directory in $ac_dir_suffix.
9725 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9727 ac_dir_suffix= ac_dots=
9732 if test -z "$ac_dots"; then
9735 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9738 ac_srcdir=$srcdir$ac_dir_suffix;
9739 ac_top_srcdir=$srcdir ;;
9741 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9742 ac_top_srcdir=$ac_dots$srcdir ;;
9746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9747 *) ac_INSTALL=$ac_dots$INSTALL ;;
9750 if test x"$ac_file" != x-; then
9751 { echo "$as_me:9751: creating $ac_file" >&5
9752 echo "$as_me: creating $ac_file" >&6;}
9755 # Let's still pretend it is `configure' which instantiates (i.e., don't
9756 # use $as_me), people would be surprised to read:
9757 # /* config.h. Generated automatically by config.status. */
9758 configure_input="Generated automatically from `echo $ac_file_in |
9759 sed 's,.*/,,'` by configure."
9761 # First look for the input files in the build tree, otherwise in the
9763 ac_file_inputs=`IFS=:
9764 for f in $ac_file_in; do
9766 -) echo $tmp/stdin ;;
9768 # Absolute (can't be DOS-style, as IFS=:)
9769 test -f "$f" || { { echo "$as_me:9769: error: cannot find input file: $f" >&5
9770 echo "$as_me: error: cannot find input file: $f" >&2;}
9771 { (exit 1); exit 1; }; }
9774 if test -f "$f"; then
9777 elif test -f "$srcdir/$f"; then
9782 { { echo "$as_me:9782: error: cannot find input file: $f" >&5
9783 echo "$as_me: error: cannot find input file: $f" >&2;}
9784 { (exit 1); exit 1; }; }
9787 done` || { (exit 1); exit 1; }
9789 cat >>$CONFIG_STATUS <<EOF
9793 cat >>$CONFIG_STATUS <<\EOF
9795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9796 s,@configure_input@,$configure_input,;t t
9797 s,@srcdir@,$ac_srcdir,;t t
9798 s,@top_srcdir@,$ac_top_srcdir,;t t
9799 s,@INSTALL@,$ac_INSTALL,;t t
9800 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9802 if test x"$ac_file" != x-; then
9803 mv $tmp/out $ac_file
9811 cat >>$CONFIG_STATUS <<\EOF
9814 # CONFIG_HEADER section.
9817 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9818 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9820 # ac_d sets the value in "#define NAME VALUE" lines.
9821 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9822 ac_dB='[ ].*$,\1#\2'
9825 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9826 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9827 ac_uB='$,\1#\2define\3'
9831 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9832 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9834 - | *:- | *:-:* ) # input from stdin
9836 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9838 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9840 * ) ac_file_in=$ac_file.in ;;
9843 test x"$ac_file" != x- && { echo "$as_me:9843: creating $ac_file" >&5
9844 echo "$as_me: creating $ac_file" >&6;}
9846 # First look for the input files in the build tree, otherwise in the
9848 ac_file_inputs=`IFS=:
9849 for f in $ac_file_in; do
9851 -) echo $tmp/stdin ;;
9853 # Absolute (can't be DOS-style, as IFS=:)
9854 test -f "$f" || { { echo "$as_me:9854: error: cannot find input file: $f" >&5
9855 echo "$as_me: error: cannot find input file: $f" >&2;}
9856 { (exit 1); exit 1; }; }
9859 if test -f "$f"; then
9862 elif test -f "$srcdir/$f"; then
9867 { { echo "$as_me:9867: error: cannot find input file: $f" >&5
9868 echo "$as_me: error: cannot find input file: $f" >&2;}
9869 { (exit 1); exit 1; }; }
9872 done` || { (exit 1); exit 1; }
9873 # Remove the trailing spaces.
9874 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9878 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9879 # `conftest.undefs', that substitutes the proper values into
9880 # config.h.in to produce config.h. The first handles `#define'
9881 # templates, and the second `#undef' templates.
9882 # And first: Protect against being on the right side of a sed subst in
9883 # config.status. Protect against being in an unquoted here document
9885 rm -f conftest.defines conftest.undefs
9886 # Using a here document instead of a string reduces the quoting nightmare.
9887 # Putting comments in sed scripts is not portable.
9889 # `end' is used to avoid that the second main sed command (meant for
9890 # 0-ary CPP macros) applies to n-ary macro definitions.
9891 # See the Autoconf documentation for `clear'.
9892 cat >confdef2sed.sed <<\EOF
9897 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9899 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9902 # If some macros were called several times there might be several times
9903 # the same #defines, which is useless. Nevertheless, we may not want to
9904 # sort them, since we want the *last* AC-DEFINE to be honored.
9905 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9906 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9907 rm -f confdef2sed.sed
9909 # This sed command replaces #undef with comments. This is necessary, for
9910 # example, in the case of _POSIX_SOURCE, which is predefined and required
9911 # on some systems where configure will not decide to define it.
9912 cat >>conftest.undefs <<\EOF
9913 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9916 # Break up conftest.defines because some shells have a limit on the size
9917 # of here documents, and old seds have small limits too (100 cmds).
9918 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9919 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9920 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9921 echo ' :' >>$CONFIG_STATUS
9923 while grep . conftest.defines >/dev/null
9925 # Write a limited-size here document to $tmp/defines.sed.
9926 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9927 # Speed up: don't consider the non `#define' lines.
9928 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9929 # Work around the forget-to-reset-the-flag bug.
9930 echo 't clr' >>$CONFIG_STATUS
9931 echo ': clr' >>$CONFIG_STATUS
9932 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9934 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9938 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9939 rm -f conftest.defines
9940 mv conftest.tail conftest.defines
9942 rm -f conftest.defines
9943 echo ' fi # egrep' >>$CONFIG_STATUS
9944 echo >>$CONFIG_STATUS
9946 # Break up conftest.undefs because some shells have a limit on the size
9947 # of here documents, and old seds have small limits too (100 cmds).
9948 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9950 while grep . conftest.undefs >/dev/null
9952 # Write a limited-size here document to $tmp/undefs.sed.
9953 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9954 # Speed up: don't consider the non `#undef'
9955 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9956 # Work around the forget-to-reset-the-flag bug.
9957 echo 't clr' >>$CONFIG_STATUS
9958 echo ': clr' >>$CONFIG_STATUS
9959 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9961 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9965 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9966 rm -f conftest.undefs
9967 mv conftest.tail conftest.undefs
9969 rm -f conftest.undefs
9971 cat >>$CONFIG_STATUS <<\EOF
9972 # Let's still pretend it is `configure' which instantiates (i.e., don't
9973 # use $as_me), people would be surprised to read:
9974 # /* config.h. Generated automatically by config.status. */
9975 if test x"$ac_file" = x-; then
9976 echo "/* Generated automatically by configure. */" >$tmp/config.h
9978 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9980 cat $tmp/in >>$tmp/config.h
9982 if test x"$ac_file" != x-; then
9983 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9984 { echo "$as_me:9984: $ac_file is unchanged" >&5
9985 echo "$as_me: $ac_file is unchanged" >&6;}
9987 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9988 X"$ac_file" : 'X\(//\)[^/]' \| \
9989 X"$ac_file" : 'X\(//\)$' \| \
9990 X"$ac_file" : 'X\(/\)' \| \
9991 . : '\(.\)' 2>/dev/null ||
9993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9995 /^X\(\/\/\)$/{ s//\1/; q; }
9996 /^X\(\/\).*/{ s//\1/; q; }
9998 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10000 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10004 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10005 case $as_mkdir_dir in
10006 # Skip DOS drivespec
10007 ?:) as_incr_dir=$as_mkdir_dir ;;
10009 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10010 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10017 mv $tmp/config.h $ac_file
10021 rm -f $tmp/config.h
10025 cat >>$CONFIG_STATUS <<\EOF
10028 # CONFIG_COMMANDS section.
10030 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10031 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10032 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10036 for ac_file in $CONFIG_FILES; do
10037 # Support "outfile[:infile[:infile...]]"
10039 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10041 # PO directories have a Makefile.in generated from Makefile.in.in.
10042 case "$ac_file" in */Makefile.in)
10043 # Adjust a relative srcdir.
10044 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10045 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10046 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10047 # In autoconf-2.13 it is called $ac_given_srcdir.
10048 # In autoconf-2.50 it is called $srcdir.
10049 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10050 case "$ac_given_srcdir" in
10051 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10052 /*) top_srcdir="$ac_given_srcdir" ;;
10053 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10055 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10056 rm -f "$ac_dir/POTFILES"
10057 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10058 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10059 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10060 # on $ac_dir but don't depend on user-specified configuration
10062 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10063 # The LINGUAS file contains the set of available languages.
10064 if test -n "$ALL_LINGUAS"; then
10065 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10067 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10068 # Hide the ALL_LINGUAS assigment from automake.
10069 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10071 case "$ac_given_srcdir" in
10073 *) srcdirpre='$(srcdir)/' ;;
10079 for lang in $ALL_LINGUAS; do
10080 POFILES="$POFILES $srcdirpre$lang.po"
10081 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10082 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10083 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10085 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10086 # environment variable.
10088 if test -n "$ALL_LINGUAS"; then
10089 for presentlang in $ALL_LINGUAS; do
10091 if test "%UNSET%" != "$LINGUAS"; then
10092 desiredlanguages="$LINGUAS"
10094 desiredlanguages="$ALL_LINGUAS"
10096 for desiredlang in $desiredlanguages; do
10097 # Use the presentlang catalog if desiredlang is
10098 # a. equal to presentlang, or
10099 # b. a variant of presentlang (because in this case,
10100 # presentlang can be used as a fallback for messages
10101 # which are not translated in the desiredlang catalog).
10102 case "$desiredlang" in
10103 "$presentlang"*) useit=yes;;
10106 if test $useit = yes; then
10107 INST_LINGUAS="$INST_LINGUAS $presentlang"
10112 if test -n "$INST_LINGUAS"; then
10113 for lang in $INST_LINGUAS; do
10114 CATALOGS="$CATALOGS $lang.gmo"
10117 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10118 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10119 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10120 if test -f "$f"; then
10122 *.orig | *.bak | *~) ;;
10123 *) cat "$f" >> "$ac_dir/Makefile" ;;
10135 cat >>$CONFIG_STATUS <<\EOF
10137 { (exit 0); exit 0; }
10139 chmod +x $CONFIG_STATUS
10140 ac_clean_files=$ac_clean_files_save
10142 # configure is writing to config.log, and then calls config.status.
10143 # config.status does its own redirection, appending to config.log.
10144 # Unfortunately, on DOS this fails, as config.log is still kept open
10145 # by configure, so config.status won't be able to write to it; its
10146 # output is simply discarded. So we exec the FD to /dev/null,
10147 # effectively closing config.log, so it can be properly (re)opened and
10148 # appended to by config.status. When coming back to configure, we
10149 # need to make the FD available again.
10150 if test "$no_create" != yes; then
10153 $SHELL $CONFIG_STATUS || ac_cs_success=false
10155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10156 # would make configure fail if this is the last instruction.
10157 $ac_cs_success || { (exit 1); exit 1; }
10161 # CONFIG_SUBDIRS section.
10163 if test "$no_recursion" != yes; then
10165 # Remove --cache-file and --srcdir arguments so they do not pile up.
10166 ac_sub_configure_args=
10168 for ac_arg in $ac_configure_args; do
10169 if test -n "$ac_prev"; then
10174 -cache-file | --cache-file | --cache-fil | --cache-fi \
10175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10176 ac_prev=cache_file ;;
10177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10181 --config-cache | -C)
10183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10187 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10191 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
10193 # Do not complain, so a configure script can configure whichever
10194 # parts of a large source tree are present.
10195 test -d $srcdir/$ac_subdir || continue
10197 { echo "$as_me:10197: configuring in $ac_subdir" >&5
10198 echo "$as_me: configuring in $ac_subdir" >&6;}
10201 *) { case "./$ac_subdir" in
10202 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10205 as_dummy="./$ac_subdir"
10206 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10207 case $as_mkdir_dir in
10208 # Skip DOS drivespec
10209 ?:) as_incr_dir=$as_mkdir_dir ;;
10211 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10212 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10217 if test -d ./$ac_subdir; then :;
10219 { { echo "$as_me:10219: error: cannot create \`pwd\`/$ac_subdir" >&5
10220 echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
10221 { (exit 1); exit 1; }; }
10229 # A "../" for each directory in /$ac_subdir.
10230 ac_dots=`echo $ac_subdir |
10231 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
10234 .) # No --srcdir option. We are building in place.
10235 ac_sub_srcdir=$srcdir ;;
10236 [\\/]* | ?:[\\/]* ) # Absolute path.
10237 ac_sub_srcdir=$srcdir/$ac_subdir ;;
10238 *) # Relative path.
10239 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
10242 # Check for guested configure; otherwise get Cygnus style configure.
10243 if test -f $ac_sub_srcdir/configure.gnu; then
10244 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
10245 elif test -f $ac_sub_srcdir/configure; then
10246 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
10247 elif test -f $ac_sub_srcdir/configure.in; then
10248 ac_sub_configure=$ac_configure
10250 { echo "$as_me:10250: WARNING: no configuration information is in $ac_subdir" >&5
10251 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
10255 # The recursion is here.
10256 if test -n "$ac_sub_configure"; then
10257 # Make the cache file name correct relative to the subdirectory.
10258 case $cache_file in
10259 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10260 *) # Relative path.
10261 ac_sub_cache_file=$ac_dots$cache_file ;;
10264 { echo "$as_me:10264: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
10265 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
10266 # The eval makes quoting arguments work.
10267 eval $ac_sub_configure $ac_sub_configure_args \
10268 --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
10269 { { echo "$as_me:10269: error: $ac_sub_configure failed for $ac_subdir" >&5
10270 echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
10271 { (exit 1); exit 1; }; }