Regenerated with autoconf-2.52.
[libiconv.git] / libcharset / configure
blob55b2abb27e0f100ff48871a343cf946026ff9752
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 # Find the correct PATH separator. Usually this is `:', but
24 # DJGPP uses `;' like DOS.
25 if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`}
27 case X$UNAME in
28 *-DOS) lt_cv_sys_path_separator=';' ;;
29 *) lt_cv_sys_path_separator=':' ;;
30 esac
34 # Check that we are running under the correct shell.
35 SHELL=${CONFIG_SHELL-/bin/sh}
37 case X$ECHO in
38 X*--fallback-echo)
39 # Remove one level of quotation (which was required for Make).
40 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
42 esac
44 echo=${ECHO-echo}
45 if test "X$1" = X--no-reexec; then
46 # Discard the --no-reexec flag, and continue.
47 shift
48 elif test "X$1" = X--fallback-echo; then
49 # Avoid inline document here, it may be left over
51 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
52 # Yippee, $echo works!
54 else
55 # Restart under the correct shell.
56 exec $SHELL "$0" --no-reexec ${1+"$@"}
59 if test "X$1" = X--fallback-echo; then
60 # used as fallback echo
61 shift
62 cat <<EOF
64 EOF
65 exit 0
68 # The HP-UX ksh and POSIX shell print the target directory to stdout
69 # if CDPATH is set.
70 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
72 if test -z "$ECHO"; then
73 if test "X${echo_test_string+set}" != Xset; then
74 # find a string as large as possible, as long as the shell can cope with it
75 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
76 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
77 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
78 echo_test_string="`eval $cmd`" &&
79 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
80 then
81 break
83 done
86 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
90 else
91 # The Solaris, AIX, and Digital Unix default echo programs unquote
92 # backslashes. This makes it impossible to quote backslashes using
93 # echo "$something" | sed 's/\\/\\\\/g'
95 # So, first we look for a working echo in the user's PATH.
97 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
98 for dir in $PATH /usr/ucb; do
99 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
100 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
101 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
102 test "X$echo_testing_string" = "X$echo_test_string"; then
103 echo="$dir/echo"
104 break
106 done
107 IFS="$save_ifs"
109 if test "X$echo" = Xecho; then
110 # We didn't find a better echo, so look for alternatives.
111 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
112 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
114 # This shell has a builtin print -r that does the trick.
115 echo='print -r'
116 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
117 test "X$CONFIG_SHELL" != X/bin/ksh; then
118 # If we have ksh, try running configure again with it.
119 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
120 export ORIGINAL_CONFIG_SHELL
121 CONFIG_SHELL=/bin/ksh
122 export CONFIG_SHELL
123 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
124 else
125 # Try using printf.
126 echo='printf %s\n'
127 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
128 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
129 test "X$echo_testing_string" = "X$echo_test_string"; then
130 # Cool, printf works
132 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133 test "X$echo_testing_string" = 'X\t' &&
134 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135 test "X$echo_testing_string" = "X$echo_test_string"; then
136 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
137 export CONFIG_SHELL
138 SHELL="$CONFIG_SHELL"
139 export SHELL
140 echo="$CONFIG_SHELL $0 --fallback-echo"
141 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 echo="$CONFIG_SHELL $0 --fallback-echo"
146 else
147 # maybe with a smaller string...
148 prev=:
150 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
151 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
152 then
153 break
155 prev="$cmd"
156 done
158 if test "$prev" != 'sed 50q "$0"'; then
159 echo_test_string=`eval $prev`
160 export echo_test_string
161 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
162 else
163 # Oops. We lost completely, so just stick with echo.
164 echo=echo
172 # Copy echo and quote the copy suitably for passing to libtool from
173 # the Makefile, instead of quoting the original, which is used later.
174 ECHO=$echo
175 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
180 ac_help="$ac_help
181 --disable-libtool-lock avoid locking (might break parallel builds)"
182 ac_help="$ac_help
183 --with-pic try to use only PIC/non-PIC objects [default=use both]"
185 # Initialize some variables set by options.
186 # The variables have the same names as the options, with
187 # dashes changed to underlines.
188 build=NONE
189 cache_file=./config.cache
190 exec_prefix=NONE
191 host=NONE
192 no_create=
193 nonopt=NONE
194 no_recursion=
195 prefix=NONE
196 program_prefix=NONE
197 program_suffix=NONE
198 program_transform_name=s,x,x,
199 silent=
200 site=
201 srcdir=
202 target=NONE
203 verbose=
204 x_includes=NONE
205 x_libraries=NONE
206 bindir='${exec_prefix}/bin'
207 sbindir='${exec_prefix}/sbin'
208 libexecdir='${exec_prefix}/libexec'
209 datadir='${prefix}/share'
210 sysconfdir='${prefix}/etc'
211 sharedstatedir='${prefix}/com'
212 localstatedir='${prefix}/var'
213 libdir='${exec_prefix}/lib'
214 includedir='${prefix}/include'
215 oldincludedir='/usr/include'
216 infodir='${prefix}/info'
217 mandir='${prefix}/man'
219 # Initialize some other variables.
220 subdirs=
221 MFLAGS= MAKEFLAGS=
222 SHELL=${CONFIG_SHELL-/bin/sh}
223 # Maximum number of lines to put in a shell here document.
224 ac_max_here_lines=12
226 ac_prev=
227 for ac_option
230 # If the previous option needs an argument, assign it.
231 if test -n "$ac_prev"; then
232 eval "$ac_prev=\$ac_option"
233 ac_prev=
234 continue
237 case "$ac_option" in
238 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
239 *) ac_optarg= ;;
240 esac
242 # Accept the important Cygnus configure options, so we can diagnose typos.
244 case "$ac_option" in
246 -bindir | --bindir | --bindi | --bind | --bin | --bi)
247 ac_prev=bindir ;;
248 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
249 bindir="$ac_optarg" ;;
251 -build | --build | --buil | --bui | --bu)
252 ac_prev=build ;;
253 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
254 build="$ac_optarg" ;;
256 -cache-file | --cache-file | --cache-fil | --cache-fi \
257 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
258 ac_prev=cache_file ;;
259 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
260 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
261 cache_file="$ac_optarg" ;;
263 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
264 ac_prev=datadir ;;
265 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
266 | --da=*)
267 datadir="$ac_optarg" ;;
269 -disable-* | --disable-*)
270 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
271 # Reject names that are not valid shell variable names.
272 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
273 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
275 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
276 eval "enable_${ac_feature}=no" ;;
278 -enable-* | --enable-*)
279 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
280 # Reject names that are not valid shell variable names.
281 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
282 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
284 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
285 case "$ac_option" in
286 *=*) ;;
287 *) ac_optarg=yes ;;
288 esac
289 eval "enable_${ac_feature}='$ac_optarg'" ;;
291 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
292 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
293 | --exec | --exe | --ex)
294 ac_prev=exec_prefix ;;
295 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
296 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
297 | --exec=* | --exe=* | --ex=*)
298 exec_prefix="$ac_optarg" ;;
300 -gas | --gas | --ga | --g)
301 # Obsolete; use --with-gas.
302 with_gas=yes ;;
304 -help | --help | --hel | --he)
305 # Omit some internal or obsolete options to make the list less imposing.
306 # This message is too long to be a string in the A/UX 3.1 sh.
307 cat << EOF
308 Usage: configure [options] [host]
309 Options: [defaults in brackets after descriptions]
310 Configuration:
311 --cache-file=FILE cache test results in FILE
312 --help print this message
313 --no-create do not create output files
314 --quiet, --silent do not print \`checking...' messages
315 --version print the version of autoconf that created configure
316 Directory and file names:
317 --prefix=PREFIX install architecture-independent files in PREFIX
318 [$ac_default_prefix]
319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
320 [same as prefix]
321 --bindir=DIR user executables in DIR [EPREFIX/bin]
322 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
323 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
324 --datadir=DIR read-only architecture-independent data in DIR
325 [PREFIX/share]
326 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
327 --sharedstatedir=DIR modifiable architecture-independent data in DIR
328 [PREFIX/com]
329 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
330 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
331 --includedir=DIR C header files in DIR [PREFIX/include]
332 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
333 --infodir=DIR info documentation in DIR [PREFIX/info]
334 --mandir=DIR man documentation in DIR [PREFIX/man]
335 --srcdir=DIR find the sources in DIR [configure dir or ..]
336 --program-prefix=PREFIX prepend PREFIX to installed program names
337 --program-suffix=SUFFIX append SUFFIX to installed program names
338 --program-transform-name=PROGRAM
339 run sed PROGRAM on installed program names
341 cat << EOF
342 Host type:
343 --build=BUILD configure for building on BUILD [BUILD=HOST]
344 --host=HOST configure for HOST [guessed]
345 --target=TARGET configure for TARGET [TARGET=HOST]
346 Features and packages:
347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
351 --x-includes=DIR X include files are in DIR
352 --x-libraries=DIR X library files are in DIR
354 if test -n "$ac_help"; then
355 echo "--enable and --with options recognized:$ac_help"
357 exit 0 ;;
359 -host | --host | --hos | --ho)
360 ac_prev=host ;;
361 -host=* | --host=* | --hos=* | --ho=*)
362 host="$ac_optarg" ;;
364 -includedir | --includedir | --includedi | --included | --include \
365 | --includ | --inclu | --incl | --inc)
366 ac_prev=includedir ;;
367 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
368 | --includ=* | --inclu=* | --incl=* | --inc=*)
369 includedir="$ac_optarg" ;;
371 -infodir | --infodir | --infodi | --infod | --info | --inf)
372 ac_prev=infodir ;;
373 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
374 infodir="$ac_optarg" ;;
376 -libdir | --libdir | --libdi | --libd)
377 ac_prev=libdir ;;
378 -libdir=* | --libdir=* | --libdi=* | --libd=*)
379 libdir="$ac_optarg" ;;
381 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
382 | --libexe | --libex | --libe)
383 ac_prev=libexecdir ;;
384 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
385 | --libexe=* | --libex=* | --libe=*)
386 libexecdir="$ac_optarg" ;;
388 -localstatedir | --localstatedir | --localstatedi | --localstated \
389 | --localstate | --localstat | --localsta | --localst \
390 | --locals | --local | --loca | --loc | --lo)
391 ac_prev=localstatedir ;;
392 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
393 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
394 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
395 localstatedir="$ac_optarg" ;;
397 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
398 ac_prev=mandir ;;
399 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
400 mandir="$ac_optarg" ;;
402 -nfp | --nfp | --nf)
403 # Obsolete; use --without-fp.
404 with_fp=no ;;
406 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
407 | --no-cr | --no-c)
408 no_create=yes ;;
410 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
411 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
412 no_recursion=yes ;;
414 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
415 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
416 | --oldin | --oldi | --old | --ol | --o)
417 ac_prev=oldincludedir ;;
418 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
419 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
420 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
421 oldincludedir="$ac_optarg" ;;
423 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
424 ac_prev=prefix ;;
425 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
426 prefix="$ac_optarg" ;;
428 -program-prefix | --program-prefix | --program-prefi | --program-pref \
429 | --program-pre | --program-pr | --program-p)
430 ac_prev=program_prefix ;;
431 -program-prefix=* | --program-prefix=* | --program-prefi=* \
432 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
433 program_prefix="$ac_optarg" ;;
435 -program-suffix | --program-suffix | --program-suffi | --program-suff \
436 | --program-suf | --program-su | --program-s)
437 ac_prev=program_suffix ;;
438 -program-suffix=* | --program-suffix=* | --program-suffi=* \
439 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
440 program_suffix="$ac_optarg" ;;
442 -program-transform-name | --program-transform-name \
443 | --program-transform-nam | --program-transform-na \
444 | --program-transform-n | --program-transform- \
445 | --program-transform | --program-transfor \
446 | --program-transfo | --program-transf \
447 | --program-trans | --program-tran \
448 | --progr-tra | --program-tr | --program-t)
449 ac_prev=program_transform_name ;;
450 -program-transform-name=* | --program-transform-name=* \
451 | --program-transform-nam=* | --program-transform-na=* \
452 | --program-transform-n=* | --program-transform-=* \
453 | --program-transform=* | --program-transfor=* \
454 | --program-transfo=* | --program-transf=* \
455 | --program-trans=* | --program-tran=* \
456 | --progr-tra=* | --program-tr=* | --program-t=*)
457 program_transform_name="$ac_optarg" ;;
459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
460 | -silent | --silent | --silen | --sile | --sil)
461 silent=yes ;;
463 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
464 ac_prev=sbindir ;;
465 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
466 | --sbi=* | --sb=*)
467 sbindir="$ac_optarg" ;;
469 -sharedstatedir | --sharedstatedir | --sharedstatedi \
470 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
471 | --sharedst | --shareds | --shared | --share | --shar \
472 | --sha | --sh)
473 ac_prev=sharedstatedir ;;
474 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
475 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
476 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
477 | --sha=* | --sh=*)
478 sharedstatedir="$ac_optarg" ;;
480 -site | --site | --sit)
481 ac_prev=site ;;
482 -site=* | --site=* | --sit=*)
483 site="$ac_optarg" ;;
485 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
486 ac_prev=srcdir ;;
487 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
488 srcdir="$ac_optarg" ;;
490 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
491 | --syscon | --sysco | --sysc | --sys | --sy)
492 ac_prev=sysconfdir ;;
493 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
494 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
495 sysconfdir="$ac_optarg" ;;
497 -target | --target | --targe | --targ | --tar | --ta | --t)
498 ac_prev=target ;;
499 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
500 target="$ac_optarg" ;;
502 -v | -verbose | --verbose | --verbos | --verbo | --verb)
503 verbose=yes ;;
505 -version | --version | --versio | --versi | --vers)
506 echo "configure generated by autoconf version 2.13"
507 exit 0 ;;
509 -with-* | --with-*)
510 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
511 # Reject names that are not valid shell variable names.
512 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
513 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
515 ac_package=`echo $ac_package| sed 's/-/_/g'`
516 case "$ac_option" in
517 *=*) ;;
518 *) ac_optarg=yes ;;
519 esac
520 eval "with_${ac_package}='$ac_optarg'" ;;
522 -without-* | --without-*)
523 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
524 # Reject names that are not valid shell variable names.
525 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
526 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
528 ac_package=`echo $ac_package| sed 's/-/_/g'`
529 eval "with_${ac_package}=no" ;;
531 --x)
532 # Obsolete; use --with-x.
533 with_x=yes ;;
535 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
536 | --x-incl | --x-inc | --x-in | --x-i)
537 ac_prev=x_includes ;;
538 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
539 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
540 x_includes="$ac_optarg" ;;
542 -x-libraries | --x-libraries | --x-librarie | --x-librari \
543 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
544 ac_prev=x_libraries ;;
545 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
546 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
547 x_libraries="$ac_optarg" ;;
549 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
553 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
554 echo "configure: warning: $ac_option: invalid host type" 1>&2
556 if test "x$nonopt" != xNONE; then
557 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
559 nonopt="$ac_option"
562 esac
563 done
565 if test -n "$ac_prev"; then
566 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
569 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
571 # File descriptor usage:
572 # 0 standard input
573 # 1 file creation
574 # 2 errors and warnings
575 # 3 some systems may open it to /dev/tty
576 # 4 used on the Kubota Titan
577 # 6 checking for... messages and results
578 # 5 compiler messages saved in config.log
579 if test "$silent" = yes; then
580 exec 6>/dev/null
581 else
582 exec 6>&1
584 exec 5>./config.log
586 echo "\
587 This file contains any messages produced by compilers while
588 running configure, to aid debugging if configure makes a mistake.
589 " 1>&5
591 # Strip out --no-create and --no-recursion so they do not pile up.
592 # Also quote any args containing shell metacharacters.
593 ac_configure_args=
594 for ac_arg
596 case "$ac_arg" in
597 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
598 | --no-cr | --no-c) ;;
599 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
600 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
601 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
602 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
603 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
604 esac
605 done
607 # NLS nuisances.
608 # Only set these to C if already set. These must not be set unconditionally
609 # because not all systems understand e.g. LANG=C (notably SCO).
610 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
611 # Non-C LC_CTYPE values break the ctype check.
612 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
613 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
614 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
615 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
617 # confdefs.h avoids OS command line length limits that DEFS can exceed.
618 rm -rf conftest* confdefs.h
619 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
620 echo > confdefs.h
622 # A filename unique to this package, relative to the directory that
623 # configure is in, which we can look for to find out if srcdir is correct.
624 ac_unique_file=lib/localcharset.c
626 # Find the source files, if location was not specified.
627 if test -z "$srcdir"; then
628 ac_srcdir_defaulted=yes
629 # Try the directory containing this script, then its parent.
630 ac_prog=$0
631 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
632 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
633 srcdir=$ac_confdir
634 if test ! -r $srcdir/$ac_unique_file; then
635 srcdir=..
637 else
638 ac_srcdir_defaulted=no
640 if test ! -r $srcdir/$ac_unique_file; then
641 if test "$ac_srcdir_defaulted" = yes; then
642 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
643 else
644 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
647 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
649 # Prefer explicitly selected file to automatically selected ones.
650 if test -z "$CONFIG_SITE"; then
651 if test "x$prefix" != xNONE; then
652 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
653 else
654 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
657 for ac_site_file in $CONFIG_SITE; do
658 if test -r "$ac_site_file"; then
659 echo "loading site script $ac_site_file"
660 . "$ac_site_file"
662 done
664 if test -r "$cache_file"; then
665 echo "loading cache $cache_file"
666 . $cache_file
667 else
668 echo "creating cache $cache_file"
669 > $cache_file
672 ac_ext=c
673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
674 ac_cpp='$CPP $CPPFLAGS'
675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
677 cross_compiling=$ac_cv_prog_cc_cross
679 ac_exeext=
680 ac_objext=o
681 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
682 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
683 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
684 ac_n= ac_c='
685 ' ac_t=' '
686 else
687 ac_n=-n ac_c= ac_t=
689 else
690 ac_n= ac_c='\c' ac_t=
694 ac_aux_dir=
695 for ac_dir in autoconf $srcdir/autoconf; do
696 if test -f $ac_dir/install-sh; then
697 ac_aux_dir=$ac_dir
698 ac_install_sh="$ac_aux_dir/install-sh -c"
699 break
700 elif test -f $ac_dir/install.sh; then
701 ac_aux_dir=$ac_dir
702 ac_install_sh="$ac_aux_dir/install.sh -c"
703 break
705 done
706 if test -z "$ac_aux_dir"; then
707 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
709 ac_config_guess=$ac_aux_dir/config.guess
710 ac_config_sub=$ac_aux_dir/config.sub
711 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
714 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
715 echo "configure:716: checking whether ${MAKE-make} sets \${MAKE}" >&5
716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
717 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
719 else
720 cat > conftestmake <<\EOF
721 all:
722 @echo 'ac_maketemp="${MAKE}"'
724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
725 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
726 if test -n "$ac_maketemp"; then
727 eval ac_cv_prog_make_${ac_make}_set=yes
728 else
729 eval ac_cv_prog_make_${ac_make}_set=no
731 rm -f conftestmake
733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
734 echo "$ac_t""yes" 1>&6
735 SET_MAKE=
736 else
737 echo "$ac_t""no" 1>&6
738 SET_MAKE="MAKE=${MAKE-make}"
741 PACKAGE=libcharset
742 VERSION=1.0
747 # Extract the first word of "gcc", so it can be a program name with args.
748 set dummy gcc; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 if test -n "$CC"; then
755 ac_cv_prog_CC="$CC" # Let the user override the test.
756 else
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 ac_dummy="$PATH"
759 for ac_dir in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir=.
761 if test -f $ac_dir/$ac_word; then
762 ac_cv_prog_CC="gcc"
763 break
765 done
766 IFS="$ac_save_ifs"
769 CC="$ac_cv_prog_CC"
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
772 else
773 echo "$ac_t""no" 1>&6
776 if test -z "$CC"; then
777 # Extract the first word of "cc", so it can be a program name with args.
778 set dummy cc; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783 else
784 if test -n "$CC"; then
785 ac_cv_prog_CC="$CC" # Let the user override the test.
786 else
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
788 ac_prog_rejected=no
789 ac_dummy="$PATH"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
793 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
794 ac_prog_rejected=yes
795 continue
797 ac_cv_prog_CC="cc"
798 break
800 done
801 IFS="$ac_save_ifs"
802 if test $ac_prog_rejected = yes; then
803 # We found a bogon in the path, so make sure we never use it.
804 set dummy $ac_cv_prog_CC
805 shift
806 if test $# -gt 0; then
807 # We chose a different compiler from the bogus one.
808 # However, it has the same basename, so the bogon will be chosen
809 # first if we set CC to just the basename; use the full file name.
810 shift
811 set dummy "$ac_dir/$ac_word" "$@"
812 shift
813 ac_cv_prog_CC="$@"
818 CC="$ac_cv_prog_CC"
819 if test -n "$CC"; then
820 echo "$ac_t""$CC" 1>&6
821 else
822 echo "$ac_t""no" 1>&6
825 if test -z "$CC"; then
826 case "`uname -s`" in
827 *win32* | *WIN32*)
828 # Extract the first word of "cl", so it can be a program name with args.
829 set dummy cl; ac_word=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
834 else
835 if test -n "$CC"; then
836 ac_cv_prog_CC="$CC" # Let the user override the test.
837 else
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
839 ac_dummy="$PATH"
840 for ac_dir in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir=.
842 if test -f $ac_dir/$ac_word; then
843 ac_cv_prog_CC="cl"
844 break
846 done
847 IFS="$ac_save_ifs"
850 CC="$ac_cv_prog_CC"
851 if test -n "$CC"; then
852 echo "$ac_t""$CC" 1>&6
853 else
854 echo "$ac_t""no" 1>&6
857 esac
859 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
863 echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
865 ac_ext=c
866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
867 ac_cpp='$CPP $CPPFLAGS'
868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
870 cross_compiling=$ac_cv_prog_cc_cross
872 cat > conftest.$ac_ext << EOF
874 #line 875 "configure"
875 #include "confdefs.h"
877 main(){return(0);}
879 if { (eval echo configure:880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
880 ac_cv_prog_cc_works=yes
881 # If we can't run a trivial program, we are probably using a cross compiler.
882 if (./conftest; exit) 2>/dev/null; then
883 ac_cv_prog_cc_cross=no
884 else
885 ac_cv_prog_cc_cross=yes
887 else
888 echo "configure: failed program was:" >&5
889 cat conftest.$ac_ext >&5
890 ac_cv_prog_cc_works=no
892 rm -fr conftest*
893 ac_ext=c
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cc_cross
900 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
901 if test $ac_cv_prog_cc_works = no; then
902 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
906 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
907 cross_compiling=$ac_cv_prog_cc_cross
909 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
910 echo "configure:911: checking whether we are using GNU C" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
913 else
914 cat > conftest.c <<EOF
915 #ifdef __GNUC__
916 yes;
917 #endif
919 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
920 ac_cv_prog_gcc=yes
921 else
922 ac_cv_prog_gcc=no
926 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
928 if test $ac_cv_prog_gcc = yes; then
929 GCC=yes
930 else
931 GCC=
934 ac_test_CFLAGS="${CFLAGS+set}"
935 ac_save_CFLAGS="$CFLAGS"
936 CFLAGS=
937 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
938 echo "configure:939: checking whether ${CC-cc} accepts -g" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941 else
942 echo 'void f(){}' > conftest.c
943 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944 ac_cv_prog_cc_g=yes
945 else
946 ac_cv_prog_cc_g=no
948 rm -f conftest*
952 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
953 if test "$ac_test_CFLAGS" = set; then
954 CFLAGS="$ac_save_CFLAGS"
955 elif test $ac_cv_prog_cc_g = yes; then
956 if test "$GCC" = yes; then
957 CFLAGS="-g -O2"
958 else
959 CFLAGS="-g"
961 else
962 if test "$GCC" = yes; then
963 CFLAGS="-O2"
964 else
965 CFLAGS=
969 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
970 echo "configure:971: checking how to run the C preprocessor" >&5
971 # On Suns, sometimes $CPP names a directory.
972 if test -n "$CPP" && test -d "$CPP"; then
973 CPP=
975 if test -z "$CPP"; then
976 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
978 else
979 # This must be in double quotes, not single quotes, because CPP may get
980 # substituted into the Makefile and "${CC-cc}" will confuse make.
981 CPP="${CC-cc} -E"
982 # On the NeXT, cc -E runs the code through the compiler's parser,
983 # not just through cpp.
984 cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
987 #include <assert.h>
988 Syntax Error
990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
991 { (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
993 if test -z "$ac_err"; then
995 else
996 echo "$ac_err" >&5
997 echo "configure: failed program was:" >&5
998 cat conftest.$ac_ext >&5
999 rm -rf conftest*
1000 CPP="${CC-cc} -E -traditional-cpp"
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1004 #include <assert.h>
1005 Syntax Error
1007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010 if test -z "$ac_err"; then
1012 else
1013 echo "$ac_err" >&5
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1016 rm -rf conftest*
1017 CPP="${CC-cc} -nologo -E"
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <assert.h>
1022 Syntax Error
1024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1027 if test -z "$ac_err"; then
1029 else
1030 echo "$ac_err" >&5
1031 echo "configure: failed program was:" >&5
1032 cat conftest.$ac_ext >&5
1033 rm -rf conftest*
1034 CPP=/lib/cpp
1036 rm -f conftest*
1038 rm -f conftest*
1040 rm -f conftest*
1041 ac_cv_prog_CPP="$CPP"
1043 CPP="$ac_cv_prog_CPP"
1044 else
1045 ac_cv_prog_CPP="$CPP"
1047 echo "$ac_t""$CPP" 1>&6
1049 if test $ac_cv_prog_gcc = yes; then
1050 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1051 echo "configure:1052: checking whether ${CC-cc} needs -traditional" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1054 else
1055 ac_pattern="Autoconf.*'x'"
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059 #include <sgtty.h>
1060 Autoconf TIOCGETP
1062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1063 egrep "$ac_pattern" >/dev/null 2>&1; then
1064 rm -rf conftest*
1065 ac_cv_prog_gcc_traditional=yes
1066 else
1067 rm -rf conftest*
1068 ac_cv_prog_gcc_traditional=no
1070 rm -f conftest*
1073 if test $ac_cv_prog_gcc_traditional = no; then
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1077 #include <termio.h>
1078 Autoconf TCGETA
1080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1081 egrep "$ac_pattern" >/dev/null 2>&1; then
1082 rm -rf conftest*
1083 ac_cv_prog_gcc_traditional=yes
1085 rm -f conftest*
1090 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1091 if test $ac_cv_prog_gcc_traditional = yes; then
1092 CC="$CC -traditional"
1096 # Find a good install program. We prefer a C program (faster),
1097 # so one script is as good as another. But avoid the broken or
1098 # incompatible versions:
1099 # SysV /etc/install, /usr/sbin/install
1100 # SunOS /usr/etc/install
1101 # IRIX /sbin/install
1102 # AIX /bin/install
1103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1106 # ./install, which can be erroneously created by make from ./install.sh.
1107 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1108 echo "configure:1109: checking for a BSD compatible install" >&5
1109 if test -z "$INSTALL"; then
1110 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1112 else
1113 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1114 for ac_dir in $PATH; do
1115 # Account for people who put trailing slashes in PATH elements.
1116 case "$ac_dir/" in
1117 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1119 # OSF1 and SCO ODT 3.0 have their own names for install.
1120 # Don't use installbsd from OSF since it installs stuff as root
1121 # by default.
1122 for ac_prog in ginstall scoinst install; do
1123 if test -f $ac_dir/$ac_prog; then
1124 if test $ac_prog = install &&
1125 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1126 # AIX install. It has an incompatible calling convention.
1128 else
1129 ac_cv_path_install="$ac_dir/$ac_prog -c"
1130 break 2
1133 done
1135 esac
1136 done
1137 IFS="$ac_save_IFS"
1140 if test "${ac_cv_path_install+set}" = set; then
1141 INSTALL="$ac_cv_path_install"
1142 else
1143 # As a last resort, use the slow shell script. We don't cache a
1144 # path for INSTALL within a source directory, because that will
1145 # break other packages using the cache if that directory is
1146 # removed, or if the path is relative.
1147 INSTALL="$ac_install_sh"
1150 echo "$ac_t""$INSTALL" 1>&6
1152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1153 # It thinks the first close brace ends the variable substitution.
1154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1163 # Make sure we can run config.sub.
1164 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1165 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1168 echo $ac_n "checking host system type""... $ac_c" 1>&6
1169 echo "configure:1170: checking host system type" >&5
1171 host_alias=$host
1172 case "$host_alias" in
1173 NONE)
1174 case $nonopt in
1175 NONE)
1176 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1177 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1178 fi ;;
1179 *) host_alias=$nonopt ;;
1180 esac ;;
1181 esac
1183 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1184 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1185 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1186 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1187 echo "$ac_t""$host" 1>&6
1191 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1192 echo "configure:1193: checking for AIX" >&5
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1196 #ifdef _AIX
1198 #endif
1201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1202 egrep "yes" >/dev/null 2>&1; then
1203 rm -rf conftest*
1204 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1205 #define _ALL_SOURCE 1
1208 else
1209 rm -rf conftest*
1210 echo "$ac_t""no" 1>&6
1212 rm -f conftest*
1215 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1216 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1217 echo "configure:1218: checking for minix/config.h" >&5
1218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 #include <minix/config.h>
1226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1227 { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1229 if test -z "$ac_err"; then
1230 rm -rf conftest*
1231 eval "ac_cv_header_$ac_safe=yes"
1232 else
1233 echo "$ac_err" >&5
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1236 rm -rf conftest*
1237 eval "ac_cv_header_$ac_safe=no"
1239 rm -f conftest*
1241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1243 MINIX=yes
1244 else
1245 echo "$ac_t""no" 1>&6
1246 MINIX=
1249 if test "$MINIX" = yes; then
1250 cat >> confdefs.h <<\EOF
1251 #define _POSIX_SOURCE 1
1254 cat >> confdefs.h <<\EOF
1255 #define _POSIX_1_SOURCE 2
1258 cat >> confdefs.h <<\EOF
1259 #define _MINIX 1
1264 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1265 echo "configure:1266: checking for POSIXized ISC" >&5
1266 if test -d /etc/conf/kconfig.d &&
1267 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1268 then
1269 echo "$ac_t""yes" 1>&6
1270 ISC=yes # If later tests want to check for ISC.
1271 cat >> confdefs.h <<\EOF
1272 #define _POSIX_SOURCE 1
1275 if test "$GCC" = yes; then
1276 CC="$CC -posix"
1277 else
1278 CC="$CC -Xp"
1280 else
1281 echo "$ac_t""no" 1>&6
1282 ISC=
1287 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1288 echo "configure:1289: checking for object suffix" >&5
1289 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292 rm -f conftest*
1293 echo 'int i = 1;' > conftest.$ac_ext
1294 if { (eval echo configure:1295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1295 for ac_file in conftest.*; do
1296 case $ac_file in
1297 *.c) ;;
1298 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1299 esac
1300 done
1301 else
1302 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1304 rm -f conftest*
1307 echo "$ac_t""$ac_cv_objext" 1>&6
1308 OBJEXT=$ac_cv_objext
1309 ac_objext=$ac_cv_objext
1311 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1312 echo "configure:1313: checking for Cygwin environment" >&5
1313 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1315 else
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1320 int main() {
1322 #ifndef __CYGWIN__
1323 #define __CYGWIN__ __CYGWIN32__
1324 #endif
1325 return __CYGWIN__;
1326 ; return 0; }
1328 if { (eval echo configure:1329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1329 rm -rf conftest*
1330 ac_cv_cygwin=yes
1331 else
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1334 rm -rf conftest*
1335 ac_cv_cygwin=no
1337 rm -f conftest*
1338 rm -f conftest*
1341 echo "$ac_t""$ac_cv_cygwin" 1>&6
1342 CYGWIN=
1343 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1344 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1345 echo "configure:1346: checking for mingw32 environment" >&5
1346 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1353 int main() {
1354 return __MINGW32__;
1355 ; return 0; }
1357 if { (eval echo configure:1358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 rm -rf conftest*
1359 ac_cv_mingw32=yes
1360 else
1361 echo "configure: failed program was:" >&5
1362 cat conftest.$ac_ext >&5
1363 rm -rf conftest*
1364 ac_cv_mingw32=no
1366 rm -f conftest*
1367 rm -f conftest*
1370 echo "$ac_t""$ac_cv_mingw32" 1>&6
1371 MINGW32=
1372 test "$ac_cv_mingw32" = yes && MINGW32=yes
1375 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1376 echo "configure:1377: checking for executable suffix" >&5
1377 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1381 ac_cv_exeext=.exe
1382 else
1383 rm -f conftest*
1384 echo 'int main () { return 0; }' > conftest.$ac_ext
1385 ac_cv_exeext=
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1387 for file in conftest.*; do
1388 case $file in
1389 *.c | *.o | *.obj) ;;
1390 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1391 esac
1392 done
1393 else
1394 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1396 rm -f conftest*
1397 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1401 EXEEXT=""
1402 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1403 echo "$ac_t""${ac_cv_exeext}" 1>&6
1404 ac_exeext=$EXEEXT
1408 # Check whether --enable-shared or --disable-shared was given.
1409 if test "${enable_shared+set}" = set; then
1410 enableval="$enable_shared"
1411 p=${PACKAGE-default}
1412 case $enableval in
1413 yes) enable_shared=yes ;;
1414 no) enable_shared=no ;;
1416 enable_shared=no
1417 # Look at the argument we got. We use all the common list separators.
1418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1419 for pkg in $enableval; do
1420 if test "X$pkg" = "X$p"; then
1421 enable_shared=yes
1423 done
1424 IFS="$ac_save_ifs"
1426 esac
1427 else
1428 enable_shared=yes
1431 # Check whether --enable-static or --disable-static was given.
1432 if test "${enable_static+set}" = set; then
1433 enableval="$enable_static"
1434 p=${PACKAGE-default}
1435 case $enableval in
1436 yes) enable_static=yes ;;
1437 no) enable_static=no ;;
1439 enable_static=no
1440 # Look at the argument we got. We use all the common list separators.
1441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1442 for pkg in $enableval; do
1443 if test "X$pkg" = "X$p"; then
1444 enable_static=yes
1446 done
1447 IFS="$ac_save_ifs"
1449 esac
1450 else
1451 enable_static=yes
1454 # Check whether --enable-fast-install or --disable-fast-install was given.
1455 if test "${enable_fast_install+set}" = set; then
1456 enableval="$enable_fast_install"
1457 p=${PACKAGE-default}
1458 case $enableval in
1459 yes) enable_fast_install=yes ;;
1460 no) enable_fast_install=no ;;
1462 enable_fast_install=no
1463 # Look at the argument we got. We use all the common list separators.
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1465 for pkg in $enableval; do
1466 if test "X$pkg" = "X$p"; then
1467 enable_fast_install=yes
1469 done
1470 IFS="$ac_save_ifs"
1472 esac
1473 else
1474 enable_fast_install=yes
1477 echo $ac_n "checking build system type""... $ac_c" 1>&6
1478 echo "configure:1479: checking build system type" >&5
1480 build_alias=$build
1481 case "$build_alias" in
1482 NONE)
1483 case $nonopt in
1484 NONE) build_alias=$host_alias ;;
1485 *) build_alias=$nonopt ;;
1486 esac ;;
1487 esac
1489 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1490 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1491 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1492 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1493 echo "$ac_t""$build" 1>&6
1495 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1496 if test "${with_gnu_ld+set}" = set; then
1497 withval="$with_gnu_ld"
1498 test "$withval" = no || with_gnu_ld=yes
1499 else
1500 with_gnu_ld=no
1503 ac_prog=ld
1504 if test "$GCC" = yes; then
1505 # Check if gcc -print-prog-name=ld gives a path.
1506 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1507 echo "configure:1508: checking for ld used by GCC" >&5
1508 case $host in
1509 *-*-mingw*)
1510 # gcc leaves a trailing carriage return which upsets mingw
1511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1514 esac
1515 case $ac_prog in
1516 # Accept absolute paths.
1517 [\\/]* | [A-Za-z]:[\\/]*)
1518 re_direlt='/[^/][^/]*/\.\./'
1519 # Canonicalize the path of ld
1520 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1521 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1522 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1523 done
1524 test -z "$LD" && LD="$ac_prog"
1527 # If it fails, then pretend we aren't using GCC.
1528 ac_prog=ld
1531 # If it is relative, then search for the first ld in PATH.
1532 with_gnu_ld=unknown
1534 esac
1535 elif test "$with_gnu_ld" = yes; then
1536 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1537 echo "configure:1538: checking for GNU ld" >&5
1538 else
1539 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1540 echo "configure:1541: checking for non-GNU ld" >&5
1542 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545 if test -z "$LD"; then
1546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1547 for ac_dir in $PATH; do
1548 test -z "$ac_dir" && ac_dir=.
1549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1550 lt_cv_path_LD="$ac_dir/$ac_prog"
1551 # Check to see if the program is GNU ld. I'd rather use --version,
1552 # but apparently some GNU ld's only accept -v.
1553 # Break only if it was the GNU/non-GNU ld that we prefer.
1554 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1555 test "$with_gnu_ld" != no && break
1556 else
1557 test "$with_gnu_ld" != yes && break
1560 done
1561 IFS="$ac_save_ifs"
1562 else
1563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1567 LD="$lt_cv_path_LD"
1568 if test -n "$LD"; then
1569 echo "$ac_t""$LD" 1>&6
1570 else
1571 echo "$ac_t""no" 1>&6
1573 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1574 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1575 echo "configure:1576: checking if the linker ($LD) is GNU ld" >&5
1576 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1578 else
1579 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1580 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1581 lt_cv_prog_gnu_ld=yes
1582 else
1583 lt_cv_prog_gnu_ld=no
1587 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1588 with_gnu_ld=$lt_cv_prog_gnu_ld
1591 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $LD option to reload object files" >&5
1593 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596 lt_cv_ld_reload_flag='-r'
1599 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1600 reload_flag=$lt_cv_ld_reload_flag
1601 test -n "$reload_flag" && reload_flag=" $reload_flag"
1603 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1604 echo "configure:1605: checking for BSD-compatible nm" >&5
1605 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608 if test -n "$NM"; then
1609 # Let the user override the test.
1610 lt_cv_path_NM="$NM"
1611 else
1612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1613 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1614 test -z "$ac_dir" && ac_dir=.
1615 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1616 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1617 # Check to see if the nm accepts a BSD-compat flag.
1618 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1619 # nm: unknown option "B" ignored
1620 # Tru64's nm complains that /dev/null is an invalid object file
1621 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1622 lt_cv_path_NM="$tmp_nm -B"
1623 break
1624 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1625 lt_cv_path_NM="$tmp_nm -p"
1626 break
1627 else
1628 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1629 continue # so that we can try to find one that supports BSD flags
1632 done
1633 IFS="$ac_save_ifs"
1634 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1638 NM="$lt_cv_path_NM"
1639 echo "$ac_t""$NM" 1>&6
1641 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether ln -s works" >&5
1643 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 rm -f conftestdata
1647 if ln -s X conftestdata 2>/dev/null
1648 then
1649 rm -f conftestdata
1650 ac_cv_prog_LN_S="ln -s"
1651 else
1652 ac_cv_prog_LN_S=ln
1655 LN_S="$ac_cv_prog_LN_S"
1656 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1657 echo "$ac_t""yes" 1>&6
1658 else
1659 echo "$ac_t""no" 1>&6
1662 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1663 echo "configure:1664: checking how to recognise dependant libraries" >&5
1664 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1666 else
1667 lt_cv_file_magic_cmd='$MAGIC_CMD'
1668 lt_cv_file_magic_test_file=
1669 lt_cv_deplibs_check_method='unknown'
1670 # Need to set the preceding variable on all platforms that support
1671 # interlibrary dependencies.
1672 # 'none' -- dependencies not supported.
1673 # `unknown' -- same as none, but documents that we really don't know.
1674 # 'pass_all' -- all dependencies passed with no checks.
1675 # 'test_compile' -- check by making test program.
1676 # ['file_magic [regex]'] -- check by looking for files in library path
1677 # which responds to the $file_magic_cmd with a given egrep regex.
1678 # If you have `file' or equivalent on your system and you're not sure
1679 # whether `pass_all' will *always* work, you probably want this one.
1681 case $host_os in
1682 aix4* | aix5*)
1683 lt_cv_deplibs_check_method=pass_all
1686 beos*)
1687 lt_cv_deplibs_check_method=pass_all
1690 bsdi4*)
1691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1692 lt_cv_file_magic_cmd='/usr/bin/file -L'
1693 lt_cv_file_magic_test_file=/shlib/libc.so
1696 cygwin* | mingw* | pw32*)
1697 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1698 lt_cv_file_magic_cmd='$OBJDUMP -f'
1701 darwin* | rhapsody*)
1702 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1703 lt_cv_file_magic_cmd='/usr/bin/file -L'
1704 case "$host_os" in
1705 rhapsody* | darwin1.012)
1706 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1708 *) # Darwin 1.3 on
1709 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1711 esac
1714 freebsd*)
1715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1716 case $host_cpu in
1717 i*86 )
1718 # Not sure whether the presence of OpenBSD here was a mistake.
1719 # Let's accept both of them until this is cleared up.
1720 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1721 lt_cv_file_magic_cmd=/usr/bin/file
1722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1724 esac
1725 else
1726 lt_cv_deplibs_check_method=pass_all
1730 gnu*)
1731 lt_cv_deplibs_check_method=pass_all
1734 hpux10.20*|hpux11*)
1735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1736 lt_cv_file_magic_cmd=/usr/bin/file
1737 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1740 irix5* | irix6*)
1741 case $host_os in
1742 irix5*)
1743 # this will be overridden with pass_all, but let us keep it just in case
1744 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1747 case $LD in
1748 *-32|*"-32 ") libmagic=32-bit;;
1749 *-n32|*"-n32 ") libmagic=N32;;
1750 *-64|*"-64 ") libmagic=64-bit;;
1751 *) libmagic=never-match;;
1752 esac
1753 # this will be overridden with pass_all, but let us keep it just in case
1754 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1756 esac
1757 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1758 lt_cv_deplibs_check_method=pass_all
1761 # This must be Linux ELF.
1762 linux-gnu*)
1763 case $host_cpu in
1764 alpha* | i*86 | powerpc* | sparc* | ia64* )
1765 lt_cv_deplibs_check_method=pass_all ;;
1767 # glibc up to 2.1.1 does not perform some relocations on ARM
1768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1769 esac
1770 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1773 netbsd*)
1774 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1775 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1776 else
1777 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1781 newos6*)
1782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1783 lt_cv_file_magic_cmd=/usr/bin/file
1784 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1787 osf3* | osf4* | osf5*)
1788 # this will be overridden with pass_all, but let us keep it just in case
1789 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1790 lt_cv_file_magic_test_file=/shlib/libc.so
1791 lt_cv_deplibs_check_method=pass_all
1794 sco3.2v5*)
1795 lt_cv_deplibs_check_method=pass_all
1798 solaris*)
1799 lt_cv_deplibs_check_method=pass_all
1800 lt_cv_file_magic_test_file=/lib/libc.so
1803 sysv5uw[78]* | sysv4*uw2*)
1804 lt_cv_deplibs_check_method=pass_all
1807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1808 case $host_vendor in
1809 motorola)
1810 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]'
1811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1813 ncr)
1814 lt_cv_deplibs_check_method=pass_all
1816 sequent)
1817 lt_cv_file_magic_cmd='/bin/file'
1818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1820 sni)
1821 lt_cv_file_magic_cmd='/bin/file'
1822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1823 lt_cv_file_magic_test_file=/lib/libc.so
1825 esac
1827 esac
1831 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1832 file_magic_cmd=$lt_cv_file_magic_cmd
1833 deplibs_check_method=$lt_cv_deplibs_check_method
1835 if test $host != $build; then
1836 ac_tool_prefix=${host_alias}-
1837 else
1838 ac_tool_prefix=
1844 # Check for command to grab the raw symbol name followed by C symbol from nm.
1845 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1846 echo "configure:1847: checking command to parse $NM output" >&5
1847 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1851 # These are sane defaults that work on at least a few old systems.
1852 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1854 # Character class describing NM global symbol codes.
1855 symcode='[BCDEGRST]'
1857 # Regexp to match symbols that can be accessed directly from C.
1858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1860 # Transform the above into a raw symbol and a C symbol.
1861 symxfrm='\1 \2\3 \3'
1863 # Transform an extracted symbol line into a proper C declaration
1864 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1866 # Define system-specific variables.
1867 case $host_os in
1868 aix*)
1869 symcode='[BCDT]'
1871 cygwin* | mingw* | pw32*)
1872 symcode='[ABCDGISTW]'
1874 hpux*) # Its linker distinguishes data from code symbols
1875 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1877 irix*)
1878 symcode='[BCDEGRST]'
1880 solaris* | sysv5*)
1881 symcode='[BDT]'
1883 sysv4)
1884 symcode='[DFNSTU]'
1886 esac
1888 # Handle CRLF in mingw tool chain
1889 opt_cr=
1890 case $host_os in
1891 mingw*)
1892 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1894 esac
1896 # If we're using GNU nm, then use its standard symbol codes.
1897 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1898 symcode='[ABCDGISTW]'
1901 # Try without a prefix undercore, then with it.
1902 for ac_symprfx in "" "_"; do
1904 # Write the raw and C identifiers.
1905 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1907 # Check to see that the pipe works correctly.
1908 pipe_works=no
1909 rm -f conftest*
1910 cat > conftest.$ac_ext <<EOF
1911 #ifdef __cplusplus
1912 extern "C" {
1913 #endif
1914 char nm_test_var;
1915 void nm_test_func(){}
1916 #ifdef __cplusplus
1918 #endif
1919 int main(){nm_test_var='a';nm_test_func();return(0);}
1922 if { (eval echo configure:1923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1923 # Now try to grab the symbols.
1924 nlist=conftest.nm
1925 if { (eval echo configure:1926: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
1926 # Try sorting and uniquifying the output.
1927 if sort "$nlist" | uniq > "$nlist"T; then
1928 mv -f "$nlist"T "$nlist"
1929 else
1930 rm -f "$nlist"T
1933 # Make sure that we snagged all the symbols we need.
1934 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1935 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1936 cat <<EOF > conftest.$ac_ext
1937 #ifdef __cplusplus
1938 extern "C" {
1939 #endif
1942 # Now generate the symbol file.
1943 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1945 cat <<EOF >> conftest.$ac_ext
1946 #if defined (__STDC__) && __STDC__
1947 # define lt_ptr_t void *
1948 #else
1949 # define lt_ptr_t char *
1950 # define const
1951 #endif
1953 /* The mapping between symbol names and symbols. */
1954 const struct {
1955 const char *name;
1956 lt_ptr_t address;
1958 lt_preloaded_symbols[] =
1961 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
1962 cat <<\EOF >> conftest.$ac_ext
1963 {0, (lt_ptr_t) 0}
1966 #ifdef __cplusplus
1968 #endif
1970 # Now try linking the two files.
1971 mv conftest.$ac_objext conftstm.$ac_objext
1972 save_LIBS="$LIBS"
1973 save_CFLAGS="$CFLAGS"
1974 LIBS="conftstm.$ac_objext"
1975 CFLAGS="$CFLAGS$no_builtin_flag"
1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1977 pipe_works=yes
1979 LIBS="$save_LIBS"
1980 CFLAGS="$save_CFLAGS"
1981 else
1982 echo "cannot find nm_test_func in $nlist" >&5
1984 else
1985 echo "cannot find nm_test_var in $nlist" >&5
1987 else
1988 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1990 else
1991 echo "$progname: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1994 rm -f conftest* conftst*
1996 # Do not use the global_symbol_pipe unless it works.
1997 if test "$pipe_works" = yes; then
1998 break
1999 else
2000 lt_cv_sys_global_symbol_pipe=
2002 done
2006 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2007 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2008 global_symbol_to_cdecl=
2009 else
2010 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2012 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2013 echo "$ac_t""failed" 1>&6
2014 else
2015 echo "$ac_t""ok" 1>&6
2018 for ac_hdr in dlfcn.h
2020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2022 echo "configure:2023: checking for $ac_hdr" >&5
2023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2025 else
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include <$ac_hdr>
2031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2032 { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2034 if test -z "$ac_err"; then
2035 rm -rf conftest*
2036 eval "ac_cv_header_$ac_safe=yes"
2037 else
2038 echo "$ac_err" >&5
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 rm -rf conftest*
2042 eval "ac_cv_header_$ac_safe=no"
2044 rm -f conftest*
2046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2049 cat >> confdefs.h <<EOF
2050 #define $ac_tr_hdr 1
2053 else
2054 echo "$ac_t""no" 1>&6
2056 done
2062 # Only perform the check for file, if the check method requires it
2063 case $deplibs_check_method in
2064 file_magic*)
2065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2066 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2067 echo "configure:2068: checking for ${ac_tool_prefix}file" >&5
2068 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 case $MAGIC_CMD in
2073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2075 ?:/*)
2076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2079 ac_save_MAGIC_CMD="$MAGIC_CMD"
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2081 ac_dummy="/usr/bin:$PATH"
2082 for ac_dir in $ac_dummy; do
2083 test -z "$ac_dir" && ac_dir=.
2084 if test -f $ac_dir/${ac_tool_prefix}file; then
2085 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2086 if test -n "$file_magic_test_file"; then
2087 case $deplibs_check_method in
2088 "file_magic "*)
2089 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2092 egrep "$file_magic_regex" > /dev/null; then
2094 else
2095 cat <<EOF 1>&2
2097 *** Warning: the command libtool uses to detect shared libraries,
2098 *** $file_magic_cmd, produces output that libtool cannot recognize.
2099 *** The result is that libtool may fail to recognize shared libraries
2100 *** as such. This will affect the creation of libtool libraries that
2101 *** depend on shared libraries, but programs linked with such libtool
2102 *** libraries will work regardless of this problem. Nevertheless, you
2103 *** may want to report the problem to your system manager and/or to
2104 *** bug-libtool@gnu.org
2107 fi ;;
2108 esac
2110 break
2112 done
2113 IFS="$ac_save_ifs"
2114 MAGIC_CMD="$ac_save_MAGIC_CMD"
2116 esac
2119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2120 if test -n "$MAGIC_CMD"; then
2121 echo "$ac_t""$MAGIC_CMD" 1>&6
2122 else
2123 echo "$ac_t""no" 1>&6
2126 if test -z "$lt_cv_path_MAGIC_CMD"; then
2127 if test -n "$ac_tool_prefix"; then
2128 echo $ac_n "checking for file""... $ac_c" 1>&6
2129 echo "configure:2130: checking for file" >&5
2130 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 case $MAGIC_CMD in
2135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2137 ?:/*)
2138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2141 ac_save_MAGIC_CMD="$MAGIC_CMD"
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2143 ac_dummy="/usr/bin:$PATH"
2144 for ac_dir in $ac_dummy; do
2145 test -z "$ac_dir" && ac_dir=.
2146 if test -f $ac_dir/file; then
2147 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2148 if test -n "$file_magic_test_file"; then
2149 case $deplibs_check_method in
2150 "file_magic "*)
2151 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2154 egrep "$file_magic_regex" > /dev/null; then
2156 else
2157 cat <<EOF 1>&2
2159 *** Warning: the command libtool uses to detect shared libraries,
2160 *** $file_magic_cmd, produces output that libtool cannot recognize.
2161 *** The result is that libtool may fail to recognize shared libraries
2162 *** as such. This will affect the creation of libtool libraries that
2163 *** depend on shared libraries, but programs linked with such libtool
2164 *** libraries will work regardless of this problem. Nevertheless, you
2165 *** may want to report the problem to your system manager and/or to
2166 *** bug-libtool@gnu.org
2169 fi ;;
2170 esac
2172 break
2174 done
2175 IFS="$ac_save_ifs"
2176 MAGIC_CMD="$ac_save_MAGIC_CMD"
2178 esac
2181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2182 if test -n "$MAGIC_CMD"; then
2183 echo "$ac_t""$MAGIC_CMD" 1>&6
2184 else
2185 echo "$ac_t""no" 1>&6
2188 else
2189 MAGIC_CMD=:
2195 esac
2197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 if test -n "$RANLIB"; then
2205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2206 else
2207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 ac_dummy="$PATH"
2209 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 if test -f $ac_dir/$ac_word; then
2212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2213 break
2215 done
2216 IFS="$ac_save_ifs"
2219 RANLIB="$ac_cv_prog_RANLIB"
2220 if test -n "$RANLIB"; then
2221 echo "$ac_t""$RANLIB" 1>&6
2222 else
2223 echo "$ac_t""no" 1>&6
2227 if test -z "$ac_cv_prog_RANLIB"; then
2228 if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "ranlib", so it can be a program name with args.
2230 set dummy ranlib; ac_word=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 if test -n "$RANLIB"; then
2237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2238 else
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2240 ac_dummy="$PATH"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_RANLIB="ranlib"
2245 break
2247 done
2248 IFS="$ac_save_ifs"
2249 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2252 RANLIB="$ac_cv_prog_RANLIB"
2253 if test -n "$RANLIB"; then
2254 echo "$ac_t""$RANLIB" 1>&6
2255 else
2256 echo "$ac_t""no" 1>&6
2259 else
2260 RANLIB=":"
2264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2265 set dummy ${ac_tool_prefix}strip; ac_word=$2
2266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271 if test -n "$STRIP"; then
2272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2273 else
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275 ac_dummy="$PATH"
2276 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2280 break
2282 done
2283 IFS="$ac_save_ifs"
2286 STRIP="$ac_cv_prog_STRIP"
2287 if test -n "$STRIP"; then
2288 echo "$ac_t""$STRIP" 1>&6
2289 else
2290 echo "$ac_t""no" 1>&6
2294 if test -z "$ac_cv_prog_STRIP"; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "strip", so it can be a program name with args.
2297 set dummy strip; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 if test -n "$STRIP"; then
2304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305 else
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2307 ac_dummy="$PATH"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_STRIP="strip"
2312 break
2314 done
2315 IFS="$ac_save_ifs"
2316 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2319 STRIP="$ac_cv_prog_STRIP"
2320 if test -n "$STRIP"; then
2321 echo "$ac_t""$STRIP" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2326 else
2327 STRIP=":"
2332 enable_dlopen=no
2333 enable_win32_dll=no
2335 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2336 if test "${enable_libtool_lock+set}" = set; then
2337 enableval="$enable_libtool_lock"
2341 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2343 # Some flags need to be propagated to the compiler or linker for good
2344 # libtool support.
2345 case $host in
2346 *-*-irix6*)
2347 # Find out which ABI we are using.
2348 echo '#line 2349 "configure"' > conftest.$ac_ext
2349 if { (eval echo configure:2350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2350 case `/usr/bin/file conftest.$ac_objext` in
2351 *32-bit*)
2352 LD="${LD-ld} -32"
2354 *N32*)
2355 LD="${LD-ld} -n32"
2357 *64-bit*)
2358 LD="${LD-ld} -64"
2360 esac
2362 rm -rf conftest*
2365 *-*-sco3.2v5*)
2366 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2367 SAVE_CFLAGS="$CFLAGS"
2368 CFLAGS="$CFLAGS -belf"
2369 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2370 echo "configure:2371: checking whether the C compiler needs -belf" >&5
2371 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2375 ac_ext=c
2376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2377 ac_cpp='$CPP $CPPFLAGS'
2378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2380 cross_compiling=$ac_cv_prog_cc_cross
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2386 int main() {
2388 ; return 0; }
2390 if { (eval echo configure:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2391 rm -rf conftest*
2392 lt_cv_cc_needs_belf=yes
2393 else
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2396 rm -rf conftest*
2397 lt_cv_cc_needs_belf=no
2399 rm -f conftest*
2400 ac_ext=c
2401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2405 cross_compiling=$ac_cv_prog_cc_cross
2409 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2410 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2412 CFLAGS="$SAVE_CFLAGS"
2417 esac
2419 # Sed substitution that helps us do robust quoting. It backslashifies
2420 # metacharacters that are still active within double-quoted strings.
2421 Xsed='sed -e s/^X//'
2422 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2424 # Same as above, but do not quote variable references.
2425 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2427 # Sed substitution to delay expansion of an escaped shell variable in a
2428 # double_quote_subst'ed string.
2429 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2431 # Constants:
2432 rm="rm -f"
2434 # Global variables:
2435 default_ofile=libtool
2436 can_build_shared=yes
2438 # All known linkers require a `.a' archive for static linking (except M$VC,
2439 # which needs '.lib').
2440 libext=a
2441 ltmain="$ac_aux_dir/ltmain.sh"
2442 ofile="$default_ofile"
2443 with_gnu_ld="$lt_cv_prog_gnu_ld"
2444 need_locks="$enable_libtool_lock"
2446 old_CC="$CC"
2447 old_CFLAGS="$CFLAGS"
2449 # Set sane defaults for various variables
2450 test -z "$AR" && AR=ar
2451 test -z "$AR_FLAGS" && AR_FLAGS=cru
2452 test -z "$AS" && AS=as
2453 test -z "$CC" && CC=cc
2454 test -z "$DLLTOOL" && DLLTOOL=dlltool
2455 test -z "$LD" && LD=ld
2456 test -z "$LN_S" && LN_S="ln -s"
2457 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2458 test -z "$NM" && NM=nm
2459 test -z "$OBJDUMP" && OBJDUMP=objdump
2460 test -z "$RANLIB" && RANLIB=:
2461 test -z "$STRIP" && STRIP=:
2462 test -z "$ac_objext" && ac_objext=o
2464 if test x"$host" != x"$build"; then
2465 ac_tool_prefix=${host_alias}-
2466 else
2467 ac_tool_prefix=
2470 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2471 case $host_os in
2472 linux-gnu*) ;;
2473 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2474 esac
2476 case $host_os in
2477 aix3*)
2478 # AIX sometimes has problems with the GCC collect2 program. For some
2479 # reason, if we set the COLLECT_NAMES environment variable, the problems
2480 # vanish in a puff of smoke.
2481 if test "X${COLLECT_NAMES+set}" != Xset; then
2482 COLLECT_NAMES=
2483 export COLLECT_NAMES
2486 esac
2488 # Determine commands to create old-style static archives.
2489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2490 old_postinstall_cmds='chmod 644 $oldlib'
2491 old_postuninstall_cmds=
2493 if test -n "$RANLIB"; then
2494 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2495 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2498 # Allow CC to be a program name with arguments.
2499 set dummy $CC
2500 compiler="$2"
2502 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2503 echo "configure:2504: checking for objdir" >&5
2504 rm -f .libs 2>/dev/null
2505 mkdir .libs 2>/dev/null
2506 if test -d .libs; then
2507 objdir=.libs
2508 else
2509 # MS-DOS does not allow filenames that begin with a dot.
2510 objdir=_libs
2512 rmdir .libs 2>/dev/null
2513 echo "$ac_t""$objdir" 1>&6
2516 # Check whether --with-pic or --without-pic was given.
2517 if test "${with_pic+set}" = set; then
2518 withval="$with_pic"
2519 pic_mode="$withval"
2520 else
2521 pic_mode=default
2524 test -z "$pic_mode" && pic_mode=default
2526 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2527 # in isolation, and that seeing it set (from the cache) indicates that
2528 # the associated values are set (in the cache) correctly too.
2529 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $compiler option to produce PIC" >&5
2531 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534 lt_cv_prog_cc_pic=
2535 lt_cv_prog_cc_shlib=
2536 lt_cv_prog_cc_wl=
2537 lt_cv_prog_cc_static=
2538 lt_cv_prog_cc_no_builtin=
2539 lt_cv_prog_cc_can_build_shared=$can_build_shared
2541 if test "$GCC" = yes; then
2542 lt_cv_prog_cc_wl='-Wl,'
2543 lt_cv_prog_cc_static='-static'
2545 case $host_os in
2546 aix*)
2547 # Below there is a dirty hack to force normal static linking with -ldl
2548 # The problem is because libdl dynamically linked with both libc and
2549 # libC (AIX C++ library), which obviously doesn't included in libraries
2550 # list by gcc. This cause undefined symbols with -static flags.
2551 # This hack allows C programs to be linked with "-static -ldl", but
2552 # we not sure about C++ programs.
2553 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2555 amigaos*)
2556 # FIXME: we need at least 68020 code to build shared libraries, but
2557 # adding the `-m68020' flag to GCC prevents building anything better,
2558 # like `-m68040'.
2559 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2561 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2562 # PIC is the default for these OSes.
2564 darwin* | rhapsody*)
2565 # PIC is the default on this platform
2566 # Common symbols not allowed in MH_DYLIB files
2567 lt_cv_prog_cc_pic='-fno-common'
2569 cygwin* | mingw* | pw32* | os2*)
2570 # This hack is so that the source file can tell whether it is being
2571 # built for inclusion in a dll (and should export symbols for example).
2572 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2574 sysv4*MP*)
2575 if test -d /usr/nec; then
2576 lt_cv_prog_cc_pic=-Kconform_pic
2580 lt_cv_prog_cc_pic='-fPIC'
2582 esac
2583 else
2584 # PORTME Check for PIC flags for the system compiler.
2585 case $host_os in
2586 aix3* | aix4* | aix5*)
2587 # All AIX code is PIC.
2588 if test "$host_cpu" = ia64; then
2589 # AIX 5 now supports IA64 processor
2590 lt_cv_prog_cc_static='-Bstatic'
2591 lt_cv_prog_cc_wl='-Wl,'
2592 else
2593 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2597 hpux9* | hpux10* | hpux11*)
2598 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2599 lt_cv_prog_cc_wl='-Wl,'
2600 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2601 lt_cv_prog_cc_pic='+Z'
2604 irix5* | irix6*)
2605 lt_cv_prog_cc_wl='-Wl,'
2606 lt_cv_prog_cc_static='-non_shared'
2607 # PIC (with -KPIC) is the default.
2610 cygwin* | mingw* | pw32* | os2*)
2611 # This hack is so that the source file can tell whether it is being
2612 # built for inclusion in a dll (and should export symbols for example).
2613 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2616 newsos6)
2617 lt_cv_prog_cc_pic='-KPIC'
2618 lt_cv_prog_cc_static='-Bstatic'
2621 osf3* | osf4* | osf5*)
2622 # All OSF/1 code is PIC.
2623 lt_cv_prog_cc_wl='-Wl,'
2624 lt_cv_prog_cc_static='-non_shared'
2627 sco3.2v5*)
2628 lt_cv_prog_cc_pic='-Kpic'
2629 lt_cv_prog_cc_static='-dn'
2630 lt_cv_prog_cc_shlib='-belf'
2633 solaris*)
2634 lt_cv_prog_cc_pic='-KPIC'
2635 lt_cv_prog_cc_static='-Bstatic'
2636 lt_cv_prog_cc_wl='-Wl,'
2639 sunos4*)
2640 lt_cv_prog_cc_pic='-PIC'
2641 lt_cv_prog_cc_static='-Bstatic'
2642 lt_cv_prog_cc_wl='-Qoption ld '
2645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2646 lt_cv_prog_cc_pic='-KPIC'
2647 lt_cv_prog_cc_static='-Bstatic'
2648 if test "x$host_vendor" = xsni; then
2649 lt_cv_prog_cc_wl='-LD'
2650 else
2651 lt_cv_prog_cc_wl='-Wl,'
2655 uts4*)
2656 lt_cv_prog_cc_pic='-pic'
2657 lt_cv_prog_cc_static='-Bstatic'
2660 sysv4*MP*)
2661 if test -d /usr/nec ;then
2662 lt_cv_prog_cc_pic='-Kconform_pic'
2663 lt_cv_prog_cc_static='-Bstatic'
2668 lt_cv_prog_cc_can_build_shared=no
2670 esac
2675 if test -z "$lt_cv_prog_cc_pic"; then
2676 echo "$ac_t""none" 1>&6
2677 else
2678 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2680 # Check to make sure the pic_flag actually works.
2681 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2682 echo "configure:2683: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2683 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 save_CFLAGS="$CFLAGS"
2687 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2688 cat > conftest.$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2692 int main() {
2694 ; return 0; }
2696 if { (eval echo configure:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 rm -rf conftest*
2698 case $host_os in
2699 hpux9* | hpux10* | hpux11*)
2700 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2701 # they create non-PIC objects. So, if there were any warnings, we
2702 # assume that PIC is not supported.
2703 if test -s conftest.err; then
2704 lt_cv_prog_cc_pic_works=no
2705 else
2706 lt_cv_prog_cc_pic_works=yes
2710 lt_cv_prog_cc_pic_works=yes
2712 esac
2714 else
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 rm -rf conftest*
2718 lt_cv_prog_cc_pic_works=no
2721 rm -f conftest*
2722 CFLAGS="$save_CFLAGS"
2727 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2728 lt_cv_prog_cc_pic=
2729 lt_cv_prog_cc_can_build_shared=no
2730 else
2731 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2734 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2737 # Check for any special shared library compilation flags.
2738 if test -n "$lt_cv_prog_cc_shlib"; then
2739 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2740 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2741 else
2742 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2743 lt_cv_prog_cc_can_build_shared=no
2747 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2748 echo "configure:2749: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2749 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2751 else
2752 lt_cv_prog_cc_static_works=no
2753 save_LDFLAGS="$LDFLAGS"
2754 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2759 int main() {
2761 ; return 0; }
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2764 rm -rf conftest*
2765 lt_cv_prog_cc_static_works=yes
2766 else
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2770 rm -f conftest*
2771 LDFLAGS="$save_LDFLAGS"
2776 # Belt *and* braces to stop my trousers falling down:
2777 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2778 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2780 pic_flag="$lt_cv_prog_cc_pic"
2781 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2782 wl="$lt_cv_prog_cc_wl"
2783 link_static_flag="$lt_cv_prog_cc_static"
2784 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2785 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2788 # Check to see if options -o and -c are simultaneously supported by compiler
2789 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2790 echo "configure:2791: checking if $compiler supports -c -o file.$ac_objext" >&5
2791 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2795 $rm -r conftest 2>/dev/null
2796 mkdir conftest
2797 cd conftest
2798 echo "int some_variable = 0;" > conftest.$ac_ext
2799 mkdir out
2800 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2801 # that will create temporary files in the current directory regardless of
2802 # the output directory. Thus, making CWD read-only will cause this test
2803 # to fail, enabling locking or at least warning the user not to do parallel
2804 # builds.
2805 chmod -w .
2806 save_CFLAGS="$CFLAGS"
2807 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2808 compiler_c_o=no
2809 if { (eval echo configure:2810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2810 # The compiler can only warn and ignore the option if not recognized
2811 # So say no if there are warnings
2812 if test -s out/conftest.err; then
2813 lt_cv_compiler_c_o=no
2814 else
2815 lt_cv_compiler_c_o=yes
2817 else
2818 # Append any errors to the config.log.
2819 cat out/conftest.err 1>&5
2820 lt_cv_compiler_c_o=no
2822 CFLAGS="$save_CFLAGS"
2823 chmod u+w .
2824 $rm conftest* out/*
2825 rmdir out
2826 cd ..
2827 rmdir conftest
2828 $rm -r conftest 2>/dev/null
2832 compiler_c_o=$lt_cv_compiler_c_o
2833 echo "$ac_t""$compiler_c_o" 1>&6
2835 if test x"$compiler_c_o" = x"yes"; then
2836 # Check to see if we can write to a .lo
2837 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2838 echo "configure:2839: checking if $compiler supports -c -o file.lo" >&5
2839 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2841 else
2843 lt_cv_compiler_o_lo=no
2844 save_CFLAGS="$CFLAGS"
2845 CFLAGS="$CFLAGS -c -o conftest.lo"
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2850 int main() {
2851 int some_variable = 0;
2852 ; return 0; }
2854 if { (eval echo configure:2855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2855 rm -rf conftest*
2856 # The compiler can only warn and ignore the option if not recognized
2857 # So say no if there are warnings
2858 if test -s conftest.err; then
2859 lt_cv_compiler_o_lo=no
2860 else
2861 lt_cv_compiler_o_lo=yes
2864 else
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2868 rm -f conftest*
2869 CFLAGS="$save_CFLAGS"
2873 compiler_o_lo=$lt_cv_compiler_o_lo
2874 echo "$ac_t""$compiler_c_lo" 1>&6
2875 else
2876 compiler_o_lo=no
2879 # Check to see if we can do hard links to lock some files if needed
2880 hard_links="nottested"
2881 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2882 # do not overwrite the value of need_locks provided by the user
2883 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2884 echo "configure:2885: checking if we can lock with hard links" >&5
2885 hard_links=yes
2886 $rm conftest*
2887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2888 touch conftest.a
2889 ln conftest.a conftest.b 2>&5 || hard_links=no
2890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2891 echo "$ac_t""$hard_links" 1>&6
2892 if test "$hard_links" = no; then
2893 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
2894 need_locks=warn
2896 else
2897 need_locks=no
2900 if test "$GCC" = yes; then
2901 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2902 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
2903 echo "configure:2904: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2904 echo "int some_variable = 0;" > conftest.$ac_ext
2905 save_CFLAGS="$CFLAGS"
2906 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2907 compiler_rtti_exceptions=no
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2912 int main() {
2913 int some_variable = 0;
2914 ; return 0; }
2916 if { (eval echo configure:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2917 rm -rf conftest*
2918 # The compiler can only warn and ignore the option if not recognized
2919 # So say no if there are warnings
2920 if test -s conftest.err; then
2921 compiler_rtti_exceptions=no
2922 else
2923 compiler_rtti_exceptions=yes
2926 else
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2930 rm -f conftest*
2931 CFLAGS="$save_CFLAGS"
2932 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
2934 if test "$compiler_rtti_exceptions" = "yes"; then
2935 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2936 else
2937 no_builtin_flag=' -fno-builtin'
2941 # See if the linker supports building shared libraries.
2942 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
2943 echo "configure:2944: checking whether the linker ($LD) supports shared libraries" >&5
2945 allow_undefined_flag=
2946 no_undefined_flag=
2947 need_lib_prefix=unknown
2948 need_version=unknown
2949 # when you set need_version to no, make sure it does not cause -set_version
2950 # flags to be left without arguments
2951 archive_cmds=
2952 archive_expsym_cmds=
2953 old_archive_from_new_cmds=
2954 old_archive_from_expsyms_cmds=
2955 export_dynamic_flag_spec=
2956 whole_archive_flag_spec=
2957 thread_safe_flag_spec=
2958 hardcode_into_libs=no
2959 hardcode_libdir_flag_spec=
2960 hardcode_libdir_separator=
2961 hardcode_direct=no
2962 hardcode_minus_L=no
2963 hardcode_shlibpath_var=unsupported
2964 runpath_var=
2965 link_all_deplibs=unknown
2966 always_export_symbols=no
2967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2968 # include_expsyms should be a list of space-separated symbols to be *always*
2969 # included in the symbol list
2970 include_expsyms=
2971 # exclude_expsyms can be an egrep regular expression of symbols to exclude
2972 # it will be wrapped by ` (' and `)$', so one must not match beginning or
2973 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2974 # as well as any symbol that contains `d'.
2975 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2976 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2977 # platforms (ab)use it in PIC code, but their linkers get confused if
2978 # the symbol is explicitly referenced. Since portable code cannot
2979 # rely on this symbol name, it's probably fine to never include it in
2980 # preloaded symbol tables.
2981 extract_expsyms_cmds=
2983 case $host_os in
2984 cygwin* | mingw* | pw32* )
2985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
2986 # When not using gcc, we currently assume that we are using
2987 # Microsoft Visual C++.
2988 if test "$GCC" != yes; then
2989 with_gnu_ld=no
2993 esac
2995 ld_shlibs=yes
2996 if test "$with_gnu_ld" = yes; then
2997 # If archive_cmds runs LD, not CC, wlarc should be empty
2998 wlarc='${wl}'
3000 # See if GNU ld supports shared libraries.
3001 case $host_os in
3002 aix3* | aix4* | aix5*)
3003 # On AIX, the GNU linker is very broken
3004 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3005 ld_shlibs=no
3006 cat <<EOF 1>&2
3008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3009 *** to be unable to reliably create shared libraries on AIX.
3010 *** Therefore, libtool is disabling shared libraries support. If you
3011 *** really care for shared libraries, you may want to modify your PATH
3012 *** so that a non-GNU linker is found, and then restart.
3017 amigaos*)
3018 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)'
3019 hardcode_libdir_flag_spec='-L$libdir'
3020 hardcode_minus_L=yes
3022 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3023 # that the semantics of dynamic libraries on AmigaOS, at least up
3024 # to version 4, is to share data among multiple programs linked
3025 # with the same dynamic library. Since this doesn't match the
3026 # behavior of shared libraries on other platforms, we can use
3027 # them.
3028 ld_shlibs=no
3031 beos*)
3032 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3033 allow_undefined_flag=unsupported
3034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3035 # support --undefined. This deserves some investigation. FIXME
3036 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3037 else
3038 ld_shlibs=no
3042 cygwin* | mingw* | pw32*)
3043 # hardcode_libdir_flag_spec is actually meaningless, as there is
3044 # no search path for DLLs.
3045 hardcode_libdir_flag_spec='-L$libdir'
3046 allow_undefined_flag=unsupported
3047 always_export_symbols=yes
3049 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3050 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3051 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3052 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3053 else $CC -o impgen impgen.c ; fi)~
3054 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3056 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3058 # cygwin and mingw dlls have different entry points and sets of symbols
3059 # to exclude.
3060 # FIXME: what about values for MSVC?
3061 dll_entry=__cygwin_dll_entry@12
3062 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3063 case $host_os in
3064 mingw*)
3065 # mingw values
3066 dll_entry=_DllMainCRTStartup@12
3067 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3069 esac
3071 # mingw and cygwin differ, and it's simplest to just exclude the union
3072 # of the two symbol sets.
3073 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3075 # recent cygwin and mingw systems supply a stub DllMain which the user
3076 # can override, but on older systems we have to supply one (in ltdll.c)
3077 if test "x$lt_cv_need_dllmain" = "xyes"; then
3078 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3079 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~
3080 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3081 else
3082 ltdll_obj=
3083 ltdll_cmds=
3086 # Extract the symbol export list from an `--export-all' def file,
3087 # then regenerate the def file from the symbol export list, so that
3088 # the compiled dll only exports the symbol export list.
3089 # Be careful not to strip the DATA tag left be newer dlltools.
3090 export_symbols_cmds="$ltdll_cmds"'
3091 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3092 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3094 # If the export-symbols file already is a .def file (1st line
3095 # is EXPORTS), use it as is.
3096 # If DATA tags from a recent dlltool are present, honour them!
3097 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3098 cp $export_symbols $output_objdir/$soname-def;
3099 else
3100 echo EXPORTS > $output_objdir/$soname-def;
3101 _lt_hint=1;
3102 cat $export_symbols | while read symbol; do
3103 set dummy \$symbol;
3104 case \$# in
3105 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3106 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3107 esac;
3108 _lt_hint=`expr 1 + \$_lt_hint`;
3109 done;
3111 '"$ltdll_cmds"'
3112 $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~
3113 $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~
3114 $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~
3115 $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~
3116 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3119 netbsd*)
3120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3121 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3122 wlarc=
3123 else
3124 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3125 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3129 solaris* | sysv5*)
3130 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3131 ld_shlibs=no
3132 cat <<EOF 1>&2
3134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3135 *** create shared libraries on Solaris systems. Therefore, libtool
3136 *** is disabling shared libraries support. We urge you to upgrade GNU
3137 *** binutils to release 2.9.1 or newer. Another option is to modify
3138 *** your PATH or compiler configuration so that the native linker is
3139 *** used, and then restart.
3142 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3145 else
3146 ld_shlibs=no
3150 sunos4*)
3151 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3152 wlarc=
3153 hardcode_direct=yes
3154 hardcode_shlibpath_var=no
3158 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3161 else
3162 ld_shlibs=no
3165 esac
3167 if test "$ld_shlibs" = yes; then
3168 runpath_var=LD_RUN_PATH
3169 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3170 export_dynamic_flag_spec='${wl}--export-dynamic'
3171 case $host_os in
3172 cygwin* | mingw* | pw32*)
3173 # dlltool doesn't understand --whole-archive et. al.
3174 whole_archive_flag_spec=
3177 # ancient GNU ld didn't support --whole-archive et. al.
3178 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3180 else
3181 whole_archive_flag_spec=
3184 esac
3186 else
3187 # PORTME fill in a description of your system's linker (not GNU ld)
3188 case $host_os in
3189 aix3*)
3190 allow_undefined_flag=unsupported
3191 always_export_symbols=yes
3192 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'
3193 # Note: this linker hardcodes the directories in LIBPATH if there
3194 # are no directories specified by -L.
3195 hardcode_minus_L=yes
3196 if test "$GCC" = yes && test -z "$link_static_flag"; then
3197 # Neither direct hardcoding nor static linking is supported with a
3198 # broken collect2.
3199 hardcode_direct=unsupported
3203 aix4* | aix5*)
3204 # When large executables or shared objects are built, AIX ld can
3205 # have problems creating the table of contents. If linking a library
3206 # or program results in "error TOC overflow" add -mminimal-toc to
3207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3210 archive_cmds=''
3211 hardcode_libdir_separator=':'
3212 if test "$GCC" = yes; then
3213 collect2name=`${CC} -print-prog-name=collect2`
3214 if test -f "$collect2name" && \
3215 strings "$collect2name" | grep resolve_lib_name >/dev/null
3216 then
3217 # We have reworked collect2
3218 hardcode_direct=yes
3219 else
3220 # We have old collect2
3221 hardcode_direct=unsupported
3222 # It fails to find uninstalled libraries when the uninstalled
3223 # path is not listed in the libpath. Setting hardcode_minus_L
3224 # to unsupported forces relinking
3225 hardcode_minus_L=yes
3226 hardcode_libdir_flag_spec='-L$libdir'
3227 hardcode_libdir_separator=
3229 shared_flag='-shared'
3230 else
3231 if test "$host_cpu" = ia64; then
3232 shared_flag='-G'
3233 else
3234 shared_flag='${wl}-bM:SRE'
3236 hardcode_direct=yes
3239 if test "$host_cpu" = ia64; then
3240 # On IA64, the linker does run time linking by default, so we don't
3241 # have to do anything special.
3242 aix_use_runtimelinking=no
3243 exp_sym_flag='-Bexport'
3244 no_entry_flag=""
3245 else
3246 # Test if we are trying to use run time linking, or normal AIX style linking.
3247 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3248 aix_use_runtimelinking=no
3249 for ld_flag in $LDFLAGS; do
3250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
3251 aix_use_runtimelinking=yes
3252 break
3254 done
3255 exp_sym_flag='-bexport'
3256 no_entry_flag='-bnoentry'
3258 # It seems that -bexpall can do strange things, so it is better to
3259 # generate a list of symbols to export.
3260 always_export_symbols=yes
3261 if test "$aix_use_runtimelinking" = yes; then
3262 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3263 allow_undefined_flag=' -Wl,-G'
3264 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"
3265 else
3266 if test "$host_cpu" = ia64; then
3267 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3268 allow_undefined_flag="-znodefs"
3269 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"
3270 else
3271 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3272 # Warning - without using the other run time loading flags, -berok will
3273 # link without error, but may produce a broken library.
3274 allow_undefined_flag='${wl}-berok"
3275 # This is a bit strange, but is similar to how AIX traditionally builds
3276 # it's shared libraries.
3277 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'
3282 amigaos*)
3283 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)'
3284 hardcode_libdir_flag_spec='-L$libdir'
3285 hardcode_minus_L=yes
3286 # see comment about different semantics on the GNU ld section
3287 ld_shlibs=no
3290 cygwin* | mingw* | pw32*)
3291 # When not using gcc, we currently assume that we are using
3292 # Microsoft Visual C++.
3293 # hardcode_libdir_flag_spec is actually meaningless, as there is
3294 # no search path for DLLs.
3295 hardcode_libdir_flag_spec=' '
3296 allow_undefined_flag=unsupported
3297 # Tell ltmain to make .lib files, not .a files.
3298 libext=lib
3299 # FIXME: Setting linknames here is a bad hack.
3300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3301 # The linker will automatically build a .lib file if we build a DLL.
3302 old_archive_from_new_cmds='true'
3303 # FIXME: Should let the user specify the lib program.
3304 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3305 fix_srcfile_path='`cygpath -w "$srcfile"`'
3308 darwin* | rhapsody*)
3309 allow_undefined_flag='-undefined suppress'
3310 # FIXME: Relying on posixy $() will cause problems for
3311 # cross-compilation, but unfortunately the echo tests do not
3312 # yet detect zsh echo's removal of \ escapes.
3313 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3314 # We need to add '_' to the symbols in $export_symbols first
3315 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3316 hardcode_direct=yes
3317 hardcode_shlibpath_var=no
3318 whole_archive_flag_spec='-all_load $convenience'
3321 freebsd1*)
3322 ld_shlibs=no
3325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3326 # support. Future versions do this automatically, but an explicit c++rt0.o
3327 # does not break anything, and helps significantly (at the cost of a little
3328 # extra space).
3329 freebsd2.2*)
3330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3331 hardcode_libdir_flag_spec='-R$libdir'
3332 hardcode_direct=yes
3333 hardcode_shlibpath_var=no
3336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3337 freebsd2*)
3338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3339 hardcode_direct=yes
3340 hardcode_minus_L=yes
3341 hardcode_shlibpath_var=no
3344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3345 freebsd*)
3346 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3347 hardcode_libdir_flag_spec='-R$libdir'
3348 hardcode_direct=yes
3349 hardcode_shlibpath_var=no
3352 hpux9* | hpux10* | hpux11*)
3353 case $host_os in
3354 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' ;;
3355 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3356 esac
3357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3358 hardcode_libdir_separator=:
3359 hardcode_direct=yes
3360 hardcode_minus_L=yes # Not in the search PATH, but as the default
3361 # location of the library.
3362 export_dynamic_flag_spec='${wl}-E'
3365 irix5* | irix6*)
3366 if test "$GCC" = yes; then
3367 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'
3368 else
3369 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'
3371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3372 hardcode_libdir_separator=:
3373 link_all_deplibs=yes
3376 netbsd*)
3377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3379 else
3380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3382 hardcode_libdir_flag_spec='-R$libdir'
3383 hardcode_direct=yes
3384 hardcode_shlibpath_var=no
3387 newsos6)
3388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3389 hardcode_direct=yes
3390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3391 hardcode_libdir_separator=:
3392 hardcode_shlibpath_var=no
3395 openbsd*)
3396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3397 hardcode_libdir_flag_spec='-R$libdir'
3398 hardcode_direct=yes
3399 hardcode_shlibpath_var=no
3402 os2*)
3403 hardcode_libdir_flag_spec='-L$libdir'
3404 hardcode_minus_L=yes
3405 allow_undefined_flag=unsupported
3406 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'
3407 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3410 osf3*)
3411 if test "$GCC" = yes; then
3412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3413 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'
3414 else
3415 allow_undefined_flag=' -expect_unresolved \*'
3416 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'
3418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3419 hardcode_libdir_separator=:
3422 osf4* | osf5*) # as osf3* with the addition of -msym flag
3423 if test "$GCC" = yes; then
3424 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3425 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'
3426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3427 else
3428 allow_undefined_flag=' -expect_unresolved \*'
3429 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'
3430 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3431 $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'
3433 #Both c and cxx compiler support -rpath directly
3434 hardcode_libdir_flag_spec='-rpath $libdir'
3436 hardcode_libdir_separator=:
3439 sco3.2v5*)
3440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3441 hardcode_shlibpath_var=no
3442 runpath_var=LD_RUN_PATH
3443 hardcode_runpath_var=yes
3446 solaris*)
3447 no_undefined_flag=' -z defs'
3448 # $CC -shared without GNU ld will not create a library from C++
3449 # object files and a static libstdc++, better avoid it by now
3450 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3451 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3453 hardcode_libdir_flag_spec='-R$libdir'
3454 hardcode_shlibpath_var=no
3455 case $host_os in
3456 solaris2.[0-5] | solaris2.[0-5].*) ;;
3457 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3458 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3459 esac
3460 link_all_deplibs=yes
3463 sunos4*)
3464 if test "x$host_vendor" = xsequent; then
3465 # Use $CC to link under sequent, because it throws in some extra .o
3466 # files that make .init and .fini sections work.
3467 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3468 else
3469 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3471 hardcode_libdir_flag_spec='-L$libdir'
3472 hardcode_direct=yes
3473 hardcode_minus_L=yes
3474 hardcode_shlibpath_var=no
3477 sysv4)
3478 if test "x$host_vendor" = xsno; then
3479 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3480 hardcode_direct=yes # is this really true???
3481 else
3482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3483 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3485 runpath_var='LD_RUN_PATH'
3486 hardcode_shlibpath_var=no
3489 sysv4.3*)
3490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3491 hardcode_shlibpath_var=no
3492 export_dynamic_flag_spec='-Bexport'
3495 sysv5*)
3496 no_undefined_flag=' -z text'
3497 # $CC -shared without GNU ld will not create a library from C++
3498 # object files and a static libstdc++, better avoid it by now
3499 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3500 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3502 hardcode_libdir_flag_spec=
3503 hardcode_shlibpath_var=no
3504 runpath_var='LD_RUN_PATH'
3507 uts4*)
3508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3509 hardcode_libdir_flag_spec='-L$libdir'
3510 hardcode_shlibpath_var=no
3513 dgux*)
3514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3515 hardcode_libdir_flag_spec='-L$libdir'
3516 hardcode_shlibpath_var=no
3519 sysv4*MP*)
3520 if test -d /usr/nec; then
3521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3522 hardcode_shlibpath_var=no
3523 runpath_var=LD_RUN_PATH
3524 hardcode_runpath_var=yes
3525 ld_shlibs=yes
3529 sysv4.2uw2*)
3530 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3531 hardcode_direct=yes
3532 hardcode_minus_L=no
3533 hardcode_shlibpath_var=no
3534 hardcode_runpath_var=yes
3535 runpath_var=LD_RUN_PATH
3538 sysv5uw7* | unixware7*)
3539 no_undefined_flag='${wl}-z ${wl}text'
3540 if test "$GCC" = yes; then
3541 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3542 else
3543 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3545 runpath_var='LD_RUN_PATH'
3546 hardcode_shlibpath_var=no
3550 ld_shlibs=no
3552 esac
3554 echo "$ac_t""$ld_shlibs" 1>&6
3555 test "$ld_shlibs" = no && can_build_shared=no
3557 # Check hardcoding attributes.
3558 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3559 echo "configure:3560: checking how to hardcode library paths into programs" >&5
3560 hardcode_action=
3561 if test -n "$hardcode_libdir_flag_spec" || \
3562 test -n "$runpath_var"; then
3564 # We can hardcode non-existant directories.
3565 if test "$hardcode_direct" != no &&
3566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3567 # have to relink, otherwise we might link with an installed library
3568 # when we should be linking with a yet-to-be-installed one
3569 ## test "$hardcode_shlibpath_var" != no &&
3570 test "$hardcode_minus_L" != no; then
3571 # Linking always hardcodes the temporary library directory.
3572 hardcode_action=relink
3573 else
3574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3575 hardcode_action=immediate
3577 else
3578 # We cannot hardcode anything, or else we can only hardcode existing
3579 # directories.
3580 hardcode_action=unsupported
3582 echo "$ac_t""$hardcode_action" 1>&6
3584 striplib=
3585 old_striplib=
3586 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3587 echo "configure:3588: checking whether stripping libraries is possible" >&5
3588 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3591 echo "$ac_t""yes" 1>&6
3592 else
3593 echo "$ac_t""no" 1>&6
3596 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3599 # PORTME Fill in your ld.so characteristics
3600 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3601 echo "configure:3602: checking dynamic linker characteristics" >&5
3602 library_names_spec=
3603 libname_spec='lib$name'
3604 soname_spec=
3605 postinstall_cmds=
3606 postuninstall_cmds=
3607 finish_cmds=
3608 finish_eval=
3609 shlibpath_var=
3610 shlibpath_overrides_runpath=unknown
3611 version_type=none
3612 dynamic_linker="$host_os ld.so"
3613 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3614 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3616 case $host_os in
3617 aix3*)
3618 version_type=linux
3619 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3620 shlibpath_var=LIBPATH
3622 # AIX has no versioning support, so we append a major version to the name.
3623 soname_spec='${libname}${release}.so$major'
3626 aix4* | aix5*)
3627 version_type=linux
3628 if test "$host_cpu" = ia64; then
3629 # AIX 5 supports IA64
3630 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3631 shlibpath_var=LD_LIBRARY_PATH
3632 else
3633 # With GCC up to 2.95.x, collect2 would create an import file
3634 # for dependence libraries. The import file would start with
3635 # the line `#! .'. This would cause the generated library to
3636 # depend on `.', always an invalid library. This was fixed in
3637 # development snapshots of GCC prior to 3.0.
3638 case $host_os in
3639 aix4 | aix4.[01] | aix4.[01].*)
3640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3641 echo ' yes '
3642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3644 else
3645 can_build_shared=no
3648 esac
3649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3650 # soname into executable. Probably we can add versioning support to
3651 # collect2, so additional links can be useful in future.
3652 if test "$aix_use_runtimelinking" = yes; then
3653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
3654 # lib<name>.a to let people know that these are not typical AIX shared libraries.
3655 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3656 else
3657 # We preserve .a as extension for shared libraries through AIX4.2
3658 # and later when we are not doing run time linking.
3659 library_names_spec='${libname}${release}.a $libname.a'
3660 soname_spec='${libname}${release}.so$major'
3662 shlibpath_var=LIBPATH
3663 deplibs_check_method=pass_all
3667 amigaos*)
3668 library_names_spec='$libname.ixlibrary $libname.a'
3669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3670 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'
3673 beos*)
3674 library_names_spec='${libname}.so'
3675 dynamic_linker="$host_os ld.so"
3676 shlibpath_var=LIBRARY_PATH
3679 bsdi4*)
3680 version_type=linux
3681 need_version=no
3682 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3683 soname_spec='${libname}${release}.so$major'
3684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3685 shlibpath_var=LD_LIBRARY_PATH
3686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3688 export_dynamic_flag_spec=-rdynamic
3689 # the default ld.so.conf also contains /usr/contrib/lib and
3690 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3691 # libtool to hard-code these into programs
3694 cygwin* | mingw* | pw32*)
3695 version_type=windows
3696 need_version=no
3697 need_lib_prefix=no
3698 case $GCC,$host_os in
3699 yes,cygwin*)
3700 library_names_spec='$libname.dll.a'
3701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3702 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3703 dldir=$destdir/`dirname \$dlpath`~
3704 test -d \$dldir || mkdir -p \$dldir~
3705 $install_prog .libs/$dlname \$dldir/$dlname'
3706 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3707 dlpath=$dir/\$dldll~
3708 $rm \$dlpath'
3710 yes,mingw*)
3711 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3714 yes,pw32*)
3715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3718 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3720 esac
3721 dynamic_linker='Win32 ld.exe'
3722 # FIXME: first we should search . and the directory the executable is in
3723 shlibpath_var=PATH
3726 darwin* | rhapsody*)
3727 dynamic_linker="$host_os dyld"
3728 version_type=darwin
3729 need_lib_prefix=no
3730 need_version=no
3731 # FIXME: Relying on posixy $() will cause problems for
3732 # cross-compilation, but unfortunately the echo tests do not
3733 # yet detect zsh echo's removal of \ escapes.
3734 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)'
3735 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3736 shlibpath_overrides_runpath=yes
3737 shlibpath_var=DYLD_LIBRARY_PATH
3740 freebsd1*)
3741 dynamic_linker=no
3744 freebsd*)
3745 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3746 version_type=freebsd-$objformat
3747 case $version_type in
3748 freebsd-elf*)
3749 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3750 need_version=no
3751 need_lib_prefix=no
3753 freebsd-*)
3754 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3755 need_version=yes
3757 esac
3758 shlibpath_var=LD_LIBRARY_PATH
3759 case $host_os in
3760 freebsd2*)
3761 shlibpath_overrides_runpath=yes
3764 shlibpath_overrides_runpath=no
3765 hardcode_into_libs=yes
3767 esac
3770 gnu*)
3771 version_type=linux
3772 need_lib_prefix=no
3773 need_version=no
3774 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3775 soname_spec='${libname}${release}.so$major'
3776 shlibpath_var=LD_LIBRARY_PATH
3777 hardcode_into_libs=yes
3780 hpux9* | hpux10* | hpux11*)
3781 # Give a soname corresponding to the major version so that dld.sl refuses to
3782 # link against other versions.
3783 dynamic_linker="$host_os dld.sl"
3784 version_type=sunos
3785 need_lib_prefix=no
3786 need_version=no
3787 shlibpath_var=SHLIB_PATH
3788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3789 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3790 soname_spec='${libname}${release}.sl$major'
3791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3792 postinstall_cmds='chmod 555 $lib'
3795 irix5* | irix6*)
3796 version_type=irix
3797 need_lib_prefix=no
3798 need_version=no
3799 soname_spec='${libname}${release}.so$major'
3800 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3801 case $host_os in
3802 irix5*)
3803 libsuff= shlibsuff=
3806 case $LD in # libtool.m4 will add one of these switches to LD
3807 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3808 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3809 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3810 *) libsuff= shlibsuff= libmagic=never-match;;
3811 esac
3813 esac
3814 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3815 shlibpath_overrides_runpath=no
3816 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3817 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3820 # No shared lib support for Linux oldld, aout, or coff.
3821 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3822 dynamic_linker=no
3825 # This must be Linux ELF.
3826 linux-gnu*)
3827 version_type=linux
3828 need_lib_prefix=no
3829 need_version=no
3830 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3831 soname_spec='${libname}${release}.so$major'
3832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3833 shlibpath_var=LD_LIBRARY_PATH
3834 shlibpath_overrides_runpath=no
3835 # This implies no fast_install, which is unacceptable.
3836 # Some rework will be needed to allow for fast_install
3837 # before this can be enabled.
3838 hardcode_into_libs=yes
3840 # We used to test for /lib/ld.so.1 and disable shared libraries on
3841 # powerpc, because MkLinux only supported shared libraries with the
3842 # GNU dynamic linker. Since this was broken with cross compilers,
3843 # most powerpc-linux boxes support dynamic linking these days and
3844 # people can always --disable-shared, the test was removed, and we
3845 # assume the GNU/Linux dynamic linker is in use.
3846 dynamic_linker='GNU/Linux ld.so'
3849 netbsd*)
3850 version_type=sunos
3851 need_lib_prefix=no
3852 need_version=no
3853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3854 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3856 dynamic_linker='NetBSD (a.out) ld.so'
3857 else
3858 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3859 soname_spec='${libname}${release}.so$major'
3860 dynamic_linker='NetBSD ld.elf_so'
3862 shlibpath_var=LD_LIBRARY_PATH
3863 shlibpath_overrides_runpath=yes
3864 hardcode_into_libs=yes
3867 newsos6)
3868 version_type=linux
3869 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3870 shlibpath_var=LD_LIBRARY_PATH
3871 shlibpath_overrides_runpath=yes
3874 openbsd*)
3875 version_type=sunos
3876 if test "$with_gnu_ld" = yes; then
3877 need_lib_prefix=no
3878 need_version=no
3880 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3882 shlibpath_var=LD_LIBRARY_PATH
3885 os2*)
3886 libname_spec='$name'
3887 need_lib_prefix=no
3888 library_names_spec='$libname.dll $libname.a'
3889 dynamic_linker='OS/2 ld.exe'
3890 shlibpath_var=LIBPATH
3893 osf3* | osf4* | osf5*)
3894 version_type=osf
3895 need_version=no
3896 soname_spec='${libname}${release}.so'
3897 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3898 shlibpath_var=LD_LIBRARY_PATH
3899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3903 sco3.2v5*)
3904 version_type=osf
3905 soname_spec='${libname}${release}.so$major'
3906 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3907 shlibpath_var=LD_LIBRARY_PATH
3910 solaris*)
3911 version_type=linux
3912 need_lib_prefix=no
3913 need_version=no
3914 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3915 soname_spec='${libname}${release}.so$major'
3916 shlibpath_var=LD_LIBRARY_PATH
3917 shlibpath_overrides_runpath=yes
3918 hardcode_into_libs=yes
3919 # ldd complains unless libraries are executable
3920 postinstall_cmds='chmod +x $lib'
3923 sunos4*)
3924 version_type=sunos
3925 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3927 shlibpath_var=LD_LIBRARY_PATH
3928 shlibpath_overrides_runpath=yes
3929 if test "$with_gnu_ld" = yes; then
3930 need_lib_prefix=no
3932 need_version=yes
3935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3936 version_type=linux
3937 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3938 soname_spec='${libname}${release}.so$major'
3939 shlibpath_var=LD_LIBRARY_PATH
3940 case $host_vendor in
3941 sni)
3942 shlibpath_overrides_runpath=no
3944 motorola)
3945 need_lib_prefix=no
3946 need_version=no
3947 shlibpath_overrides_runpath=no
3948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3950 esac
3953 uts4*)
3954 version_type=linux
3955 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3956 soname_spec='${libname}${release}.so$major'
3957 shlibpath_var=LD_LIBRARY_PATH
3960 dgux*)
3961 version_type=linux
3962 need_lib_prefix=no
3963 need_version=no
3964 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3965 soname_spec='${libname}${release}.so$major'
3966 shlibpath_var=LD_LIBRARY_PATH
3969 sysv4*MP*)
3970 if test -d /usr/nec ;then
3971 version_type=linux
3972 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
3973 soname_spec='$libname.so.$major'
3974 shlibpath_var=LD_LIBRARY_PATH
3979 dynamic_linker=no
3981 esac
3982 echo "$ac_t""$dynamic_linker" 1>&6
3983 test "$dynamic_linker" = no && can_build_shared=no
3985 # Report the final consequences.
3986 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
3987 echo "configure:3988: checking if libtool supports shared libraries" >&5
3988 echo "$ac_t""$can_build_shared" 1>&6
3990 if test "$hardcode_action" = relink; then
3991 # Fast installation is not supported
3992 enable_fast_install=no
3993 elif test "$shlibpath_overrides_runpath" = yes ||
3994 test "$enable_shared" = no; then
3995 # Fast installation is not necessary
3996 enable_fast_install=needless
3999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4000 if test "$GCC" = yes; then
4001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4004 if test "x$enable_dlopen" != xyes; then
4005 enable_dlopen=unknown
4006 enable_dlopen_self=unknown
4007 enable_dlopen_self_static=unknown
4008 else
4009 lt_cv_dlopen=no
4010 lt_cv_dlopen_libs=
4012 case $host_os in
4013 beos*)
4014 lt_cv_dlopen="load_add_on"
4015 lt_cv_dlopen_libs=
4016 lt_cv_dlopen_self=yes
4019 cygwin* | mingw* | pw32*)
4020 lt_cv_dlopen="LoadLibrary"
4021 lt_cv_dlopen_libs=
4025 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4026 echo "configure:4027: checking for dlopen in -ldl" >&5
4027 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031 ac_save_LIBS="$LIBS"
4032 LIBS="-ldl $LIBS"
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4039 char dlopen();
4041 int main() {
4042 dlopen()
4043 ; return 0; }
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046 rm -rf conftest*
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4048 else
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 rm -rf conftest*
4052 eval "ac_cv_lib_$ac_lib_var=no"
4054 rm -f conftest*
4055 LIBS="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4061 else
4062 echo "$ac_t""no" 1>&6
4063 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4064 echo "configure:4065: checking for dlopen" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067 else
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char dlopen(); below. */
4073 #include <assert.h>
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4077 char dlopen();
4079 int main() {
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4085 choke me
4086 #else
4087 dlopen();
4088 #endif
4090 ; return 0; }
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 rm -rf conftest*
4094 eval "ac_cv_func_dlopen=yes"
4095 else
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4098 rm -rf conftest*
4099 eval "ac_cv_func_dlopen=no"
4101 rm -f conftest*
4104 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 lt_cv_dlopen="dlopen"
4107 else
4108 echo "$ac_t""no" 1>&6
4109 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4110 echo "configure:4111: checking for shl_load" >&5
4111 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4113 else
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char shl_load(); below. */
4119 #include <assert.h>
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4123 char shl_load();
4125 int main() {
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4131 choke me
4132 #else
4133 shl_load();
4134 #endif
4136 ; return 0; }
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4139 rm -rf conftest*
4140 eval "ac_cv_func_shl_load=yes"
4141 else
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 rm -rf conftest*
4145 eval "ac_cv_func_shl_load=no"
4147 rm -f conftest*
4150 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="shl_load"
4153 else
4154 echo "$ac_t""no" 1>&6
4155 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4156 echo "configure:4157: checking for dlopen in -lsvld" >&5
4157 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4160 else
4161 ac_save_LIBS="$LIBS"
4162 LIBS="-lsvld $LIBS"
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4169 char dlopen();
4171 int main() {
4172 dlopen()
4173 ; return 0; }
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 rm -rf conftest*
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4178 else
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4181 rm -rf conftest*
4182 eval "ac_cv_lib_$ac_lib_var=no"
4184 rm -f conftest*
4185 LIBS="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4191 else
4192 echo "$ac_t""no" 1>&6
4193 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4194 echo "configure:4195: checking for shl_load in -ldld" >&5
4195 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4198 else
4199 ac_save_LIBS="$LIBS"
4200 LIBS="-ldld $LIBS"
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4207 char shl_load();
4209 int main() {
4210 shl_load()
4211 ; return 0; }
4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4214 rm -rf conftest*
4215 eval "ac_cv_lib_$ac_lib_var=yes"
4216 else
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4219 rm -rf conftest*
4220 eval "ac_cv_lib_$ac_lib_var=no"
4222 rm -f conftest*
4223 LIBS="$ac_save_LIBS"
4226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4229 else
4230 echo "$ac_t""no" 1>&6
4246 esac
4248 if test "x$lt_cv_dlopen" != xno; then
4249 enable_dlopen=yes
4250 else
4251 enable_dlopen=no
4254 case $lt_cv_dlopen in
4255 dlopen)
4256 save_CPPFLAGS="$CPPFLAGS"
4257 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4259 save_LDFLAGS="$LDFLAGS"
4260 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4262 save_LIBS="$LIBS"
4263 LIBS="$lt_cv_dlopen_libs $LIBS"
4265 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4266 echo "configure:4267: checking whether a program can dlopen itself" >&5
4267 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4269 else
4270 if test "$cross_compiling" = yes; then :
4271 lt_cv_dlopen_self=cross
4272 else
4273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4274 lt_status=$lt_dlunknown
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4279 #if HAVE_DLFCN_H
4280 #include <dlfcn.h>
4281 #endif
4283 #include <stdio.h>
4285 #ifdef RTLD_GLOBAL
4286 # define LT_DLGLOBAL RTLD_GLOBAL
4287 #else
4288 # ifdef DL_GLOBAL
4289 # define LT_DLGLOBAL DL_GLOBAL
4290 # else
4291 # define LT_DLGLOBAL 0
4292 # endif
4293 #endif
4295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4296 find out it does not work in some platform. */
4297 #ifndef LT_DLLAZY_OR_NOW
4298 # ifdef RTLD_LAZY
4299 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4300 # else
4301 # ifdef DL_LAZY
4302 # define LT_DLLAZY_OR_NOW DL_LAZY
4303 # else
4304 # ifdef RTLD_NOW
4305 # define LT_DLLAZY_OR_NOW RTLD_NOW
4306 # else
4307 # ifdef DL_NOW
4308 # define LT_DLLAZY_OR_NOW DL_NOW
4309 # else
4310 # define LT_DLLAZY_OR_NOW 0
4311 # endif
4312 # endif
4313 # endif
4314 # endif
4315 #endif
4317 #ifdef __cplusplus
4318 extern "C" void exit (int);
4319 #endif
4321 void fnord() { int i=42;}
4322 int main ()
4324 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4325 int status = $lt_dlunknown;
4327 if (self)
4329 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4330 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4331 /* dlclose (self); */
4334 exit (status);
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4338 (./conftest; exit; ) 2>/dev/null
4339 lt_status=$?
4340 case x$lt_status in
4341 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4342 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4343 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4344 esac
4345 else :
4346 # compilation failed
4347 lt_cv_dlopen_self=no
4350 rm -fr conftest*
4355 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4357 if test "x$lt_cv_dlopen_self" = xyes; then
4358 LDFLAGS="$LDFLAGS $link_static_flag"
4359 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4360 echo "configure:4361: checking whether a statically linked program can dlopen itself" >&5
4361 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4363 else
4364 if test "$cross_compiling" = yes; then :
4365 lt_cv_dlopen_self_static=cross
4366 else
4367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4368 lt_status=$lt_dlunknown
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4373 #if HAVE_DLFCN_H
4374 #include <dlfcn.h>
4375 #endif
4377 #include <stdio.h>
4379 #ifdef RTLD_GLOBAL
4380 # define LT_DLGLOBAL RTLD_GLOBAL
4381 #else
4382 # ifdef DL_GLOBAL
4383 # define LT_DLGLOBAL DL_GLOBAL
4384 # else
4385 # define LT_DLGLOBAL 0
4386 # endif
4387 #endif
4389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4390 find out it does not work in some platform. */
4391 #ifndef LT_DLLAZY_OR_NOW
4392 # ifdef RTLD_LAZY
4393 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4394 # else
4395 # ifdef DL_LAZY
4396 # define LT_DLLAZY_OR_NOW DL_LAZY
4397 # else
4398 # ifdef RTLD_NOW
4399 # define LT_DLLAZY_OR_NOW RTLD_NOW
4400 # else
4401 # ifdef DL_NOW
4402 # define LT_DLLAZY_OR_NOW DL_NOW
4403 # else
4404 # define LT_DLLAZY_OR_NOW 0
4405 # endif
4406 # endif
4407 # endif
4408 # endif
4409 #endif
4411 #ifdef __cplusplus
4412 extern "C" void exit (int);
4413 #endif
4415 void fnord() { int i=42;}
4416 int main ()
4418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4419 int status = $lt_dlunknown;
4421 if (self)
4423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4425 /* dlclose (self); */
4428 exit (status);
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4432 (./conftest; exit; ) 2>/dev/null
4433 lt_status=$?
4434 case x$lt_status in
4435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4437 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4438 esac
4439 else :
4440 # compilation failed
4441 lt_cv_dlopen_self_static=no
4444 rm -fr conftest*
4449 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4452 CPPFLAGS="$save_CPPFLAGS"
4453 LDFLAGS="$save_LDFLAGS"
4454 LIBS="$save_LIBS"
4456 esac
4458 case $lt_cv_dlopen_self in
4459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4460 *) enable_dlopen_self=unknown ;;
4461 esac
4463 case $lt_cv_dlopen_self_static in
4464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4465 *) enable_dlopen_self_static=unknown ;;
4466 esac
4470 if test "$enable_shared" = yes && test "$GCC" = yes; then
4471 case $archive_cmds in
4472 *'~'*)
4473 # FIXME: we may have to deal with multi-command sequences.
4475 '$CC '*)
4476 # Test whether the compiler implicitly links with -lc since on some
4477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4478 # to ld, don't add -lc before -lgcc.
4479 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4480 echo "configure:4481: checking whether -lc should be explicitly linked in" >&5
4481 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4483 else
4484 $rm conftest*
4485 echo 'static int dummy;' > conftest.$ac_ext
4487 if { (eval echo configure:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4488 soname=conftest
4489 lib=conftest
4490 libobjs=conftest.$ac_objext
4491 deplibs=
4492 wl=$lt_cv_prog_cc_wl
4493 compiler_flags=-v
4494 linker_flags=-v
4495 verstring=
4496 output_objdir=.
4497 libname=conftest
4498 save_allow_undefined_flag=$allow_undefined_flag
4499 allow_undefined_flag=
4500 if { (eval echo configure:4501: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4501 then
4502 lt_cv_archive_cmds_need_lc=no
4503 else
4504 lt_cv_archive_cmds_need_lc=yes
4506 allow_undefined_flag=$save_allow_undefined_flag
4507 else
4508 cat conftest.err 1>&5
4512 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4514 esac
4516 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4518 # The second clause should only fire when bootstrapping the
4519 # libtool distribution, otherwise you forgot to ship ltmain.sh
4520 # with your package, and you will get complaints that there are
4521 # no rules to generate ltmain.sh.
4522 if test -f "$ltmain"; then
4524 else
4525 # If there is no Makefile yet, we rely on a make rule to execute
4526 # `config.status --recheck' to rerun these tests and create the
4527 # libtool script then.
4528 test -f Makefile && make "$ltmain"
4531 if test -f "$ltmain"; then
4532 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4533 $rm -f "${ofile}T"
4535 echo creating $ofile
4537 # Now quote all the things that may contain metacharacters while being
4538 # careful not to overquote the AC_SUBSTed values. We take copies of the
4539 # variables and quote the copies for generation of the libtool script.
4540 for var in echo old_CC old_CFLAGS \
4541 AR AR_FLAGS CC LD LN_S NM SHELL \
4542 reload_flag reload_cmds wl \
4543 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4544 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4545 library_names_spec soname_spec \
4546 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4547 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4548 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4549 old_striplib striplib file_magic_cmd export_symbols_cmds \
4550 deplibs_check_method allow_undefined_flag no_undefined_flag \
4551 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4552 hardcode_libdir_flag_spec hardcode_libdir_separator \
4553 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4554 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4556 case $var in
4557 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4558 old_postinstall_cmds | old_postuninstall_cmds | \
4559 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4560 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4561 postinstall_cmds | postuninstall_cmds | \
4562 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4563 # Double-quote double-evaled strings.
4564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4569 esac
4570 done
4572 cat <<__EOF__ > "${ofile}T"
4573 #! $SHELL
4575 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4579 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4580 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4582 # This program is free software; you can redistribute it and/or modify
4583 # it under the terms of the GNU General Public License as published by
4584 # the Free Software Foundation; either version 2 of the License, or
4585 # (at your option) any later version.
4587 # This program is distributed in the hope that it will be useful, but
4588 # WITHOUT ANY WARRANTY; without even the implied warranty of
4589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4590 # General Public License for more details.
4592 # You should have received a copy of the GNU General Public License
4593 # along with this program; if not, write to the Free Software
4594 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4596 # As a special exception to the GNU General Public License, if you
4597 # distribute this file as part of a program that contains a
4598 # configuration script generated by Autoconf, you may include it under
4599 # the same distribution terms that you use for the rest of that program.
4601 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4602 Xsed="sed -e s/^X//"
4604 # The HP-UX ksh and POSIX shell print the target directory to stdout
4605 # if CDPATH is set.
4606 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4608 # ### BEGIN LIBTOOL CONFIG
4610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4612 # Shell to use when invoking shell scripts.
4613 SHELL=$lt_SHELL
4615 # Whether or not to build shared libraries.
4616 build_libtool_libs=$enable_shared
4618 # Whether or not to add -lc for building shared libraries.
4619 build_libtool_need_lc=$need_lc
4621 # Whether or not to build static libraries.
4622 build_old_libs=$enable_static
4624 # Whether or not to optimize for fast installation.
4625 fast_install=$enable_fast_install
4627 # The host system.
4628 host_alias=$host_alias
4629 host=$host
4631 # An echo program that does not interpret backslashes.
4632 echo=$lt_echo
4634 # The archiver.
4635 AR=$lt_AR
4636 AR_FLAGS=$lt_AR_FLAGS
4638 # The default C compiler.
4639 CC=$lt_CC
4641 # Is the compiler the GNU C compiler?
4642 with_gcc=$GCC
4644 # The linker used to build libraries.
4645 LD=$lt_LD
4647 # Whether we need hard or soft links.
4648 LN_S=$lt_LN_S
4650 # A BSD-compatible nm program.
4651 NM=$lt_NM
4653 # A symbol stripping program
4654 STRIP=$STRIP
4656 # Used to examine libraries when file_magic_cmd begins "file"
4657 MAGIC_CMD=$MAGIC_CMD
4659 # Used on cygwin: DLL creation program.
4660 DLLTOOL="$DLLTOOL"
4662 # Used on cygwin: object dumper.
4663 OBJDUMP="$OBJDUMP"
4665 # Used on cygwin: assembler.
4666 AS="$AS"
4668 # The name of the directory that contains temporary libtool files.
4669 objdir=$objdir
4671 # How to create reloadable object files.
4672 reload_flag=$lt_reload_flag
4673 reload_cmds=$lt_reload_cmds
4675 # How to pass a linker flag through the compiler.
4676 wl=$lt_wl
4678 # Object file suffix (normally "o").
4679 objext="$ac_objext"
4681 # Old archive suffix (normally "a").
4682 libext="$libext"
4684 # Executable file suffix (normally "").
4685 exeext="$exeext"
4687 # Additional compiler flags for building library objects.
4688 pic_flag=$lt_pic_flag
4689 pic_mode=$pic_mode
4691 # Does compiler simultaneously support -c and -o options?
4692 compiler_c_o=$lt_compiler_c_o
4694 # Can we write directly to a .lo ?
4695 compiler_o_lo=$lt_compiler_o_lo
4697 # Must we lock files when doing compilation ?
4698 need_locks=$lt_need_locks
4700 # Do we need the lib prefix for modules?
4701 need_lib_prefix=$need_lib_prefix
4703 # Do we need a version for libraries?
4704 need_version=$need_version
4706 # Whether dlopen is supported.
4707 dlopen_support=$enable_dlopen
4709 # Whether dlopen of programs is supported.
4710 dlopen_self=$enable_dlopen_self
4712 # Whether dlopen of statically linked programs is supported.
4713 dlopen_self_static=$enable_dlopen_self_static
4715 # Compiler flag to prevent dynamic linking.
4716 link_static_flag=$lt_link_static_flag
4718 # Compiler flag to turn off builtin functions.
4719 no_builtin_flag=$lt_no_builtin_flag
4721 # Compiler flag to allow reflexive dlopens.
4722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4724 # Compiler flag to generate shared objects directly from archives.
4725 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4727 # Compiler flag to generate thread-safe objects.
4728 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4730 # Library versioning type.
4731 version_type=$version_type
4733 # Format of library name prefix.
4734 libname_spec=$lt_libname_spec
4736 # List of archive names. First name is the real one, the rest are links.
4737 # The last name is the one that the linker finds with -lNAME.
4738 library_names_spec=$lt_library_names_spec
4740 # The coded name of the library, if different from the real name.
4741 soname_spec=$lt_soname_spec
4743 # Commands used to build and install an old-style archive.
4744 RANLIB=$lt_RANLIB
4745 old_archive_cmds=$lt_old_archive_cmds
4746 old_postinstall_cmds=$lt_old_postinstall_cmds
4747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4749 # Create an old-style archive from a shared archive.
4750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4752 # Create a temporary old-style archive to link instead of a shared archive.
4753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4755 # Commands used to build and install a shared archive.
4756 archive_cmds=$lt_archive_cmds
4757 archive_expsym_cmds=$lt_archive_expsym_cmds
4758 postinstall_cmds=$lt_postinstall_cmds
4759 postuninstall_cmds=$lt_postuninstall_cmds
4761 # Commands to strip libraries.
4762 old_striplib=$lt_old_striplib
4763 striplib=$lt_striplib
4765 # Method to check whether dependent libraries are shared objects.
4766 deplibs_check_method=$lt_deplibs_check_method
4768 # Command to use when deplibs_check_method == file_magic.
4769 file_magic_cmd=$lt_file_magic_cmd
4771 # Flag that allows shared libraries with undefined symbols to be built.
4772 allow_undefined_flag=$lt_allow_undefined_flag
4774 # Flag that forces no undefined symbols.
4775 no_undefined_flag=$lt_no_undefined_flag
4777 # Commands used to finish a libtool library installation in a directory.
4778 finish_cmds=$lt_finish_cmds
4780 # Same as above, but a single script fragment to be evaled but not shown.
4781 finish_eval=$lt_finish_eval
4783 # Take the output of nm and produce a listing of raw symbols and C names.
4784 global_symbol_pipe=$lt_global_symbol_pipe
4786 # Transform the output of nm in a proper C declaration
4787 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
4789 # This is the shared library runtime path variable.
4790 runpath_var=$runpath_var
4792 # This is the shared library path variable.
4793 shlibpath_var=$shlibpath_var
4795 # Is shlibpath searched before the hard-coded library search path?
4796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4798 # How to hardcode a shared library path into an executable.
4799 hardcode_action=$hardcode_action
4801 # Whether we should hardcode library paths into libraries.
4802 hardcode_into_libs=$hardcode_into_libs
4804 # Flag to hardcode \$libdir into a binary during linking.
4805 # This must work even if \$libdir does not exist.
4806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
4808 # Whether we need a single -rpath flag with a separated argument.
4809 hardcode_libdir_separator=$lt_hardcode_libdir_separator
4811 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
4812 # resulting binary.
4813 hardcode_direct=$hardcode_direct
4815 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4816 # resulting binary.
4817 hardcode_minus_L=$hardcode_minus_L
4819 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4820 # the resulting binary.
4821 hardcode_shlibpath_var=$hardcode_shlibpath_var
4823 # Variables whose values should be saved in libtool wrapper scripts and
4824 # restored at relink time.
4825 variables_saved_for_relink="$variables_saved_for_relink"
4827 # Whether libtool must link a program against all its dependency libraries.
4828 link_all_deplibs=$link_all_deplibs
4830 # Compile-time system search path for libraries
4831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4833 # Run-time system search path for libraries
4834 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4836 # Fix the shell variable \$srcfile for the compiler.
4837 fix_srcfile_path="$fix_srcfile_path"
4839 # Set to yes if exported symbols are required.
4840 always_export_symbols=$always_export_symbols
4842 # The commands to list exported symbols.
4843 export_symbols_cmds=$lt_export_symbols_cmds
4845 # The commands to extract the exported symbol list from a shared archive.
4846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4848 # Symbols that should not be listed in the preloaded symbols.
4849 exclude_expsyms=$lt_exclude_expsyms
4851 # Symbols that must always be exported.
4852 include_expsyms=$lt_include_expsyms
4854 # ### END LIBTOOL CONFIG
4856 __EOF__
4858 case $host_os in
4859 aix3*)
4860 cat <<\EOF >> "${ofile}T"
4862 # AIX sometimes has problems with the GCC collect2 program. For some
4863 # reason, if we set the COLLECT_NAMES environment variable, the problems
4864 # vanish in a puff of smoke.
4865 if test "X${COLLECT_NAMES+set}" != Xset; then
4866 COLLECT_NAMES=
4867 export COLLECT_NAMES
4871 esac
4873 case $host_os in
4874 cygwin* | mingw* | pw32* | os2*)
4875 cat <<'EOF' >> "${ofile}T"
4876 # This is a source program that is used to create dlls on Windows
4877 # Don't remove nor modify the starting and closing comments
4878 # /* ltdll.c starts here */
4879 # #define WIN32_LEAN_AND_MEAN
4880 # #include <windows.h>
4881 # #undef WIN32_LEAN_AND_MEAN
4882 # #include <stdio.h>
4884 # #ifndef __CYGWIN__
4885 # # ifdef __CYGWIN32__
4886 # # define __CYGWIN__ __CYGWIN32__
4887 # # endif
4888 # #endif
4890 # #ifdef __cplusplus
4891 # extern "C" {
4892 # #endif
4893 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
4894 # #ifdef __cplusplus
4896 # #endif
4898 # #ifdef __CYGWIN__
4899 # #include <cygwin/cygwin_dll.h>
4900 # DECLARE_CYGWIN_DLL( DllMain );
4901 # #endif
4902 # HINSTANCE __hDllInstance_base;
4904 # BOOL APIENTRY
4905 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
4907 # __hDllInstance_base = hInst;
4908 # return TRUE;
4910 # /* ltdll.c ends here */
4911 # This is a source program that is used to create import libraries
4912 # on Windows for dlls which lack them. Don't remove nor modify the
4913 # starting and closing comments
4914 # /* impgen.c starts here */
4915 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
4917 # This file is part of GNU libtool.
4919 # This program is free software; you can redistribute it and/or modify
4920 # it under the terms of the GNU General Public License as published by
4921 # the Free Software Foundation; either version 2 of the License, or
4922 # (at your option) any later version.
4924 # This program is distributed in the hope that it will be useful,
4925 # but WITHOUT ANY WARRANTY; without even the implied warranty of
4926 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4927 # GNU General Public License for more details.
4929 # You should have received a copy of the GNU General Public License
4930 # along with this program; if not, write to the Free Software
4931 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4932 # */
4934 # #include <stdio.h> /* for printf() */
4935 # #include <unistd.h> /* for open(), lseek(), read() */
4936 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
4937 # #include <string.h> /* for strdup() */
4939 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
4940 # #ifndef O_BINARY
4941 # #define O_BINARY 0
4942 # #endif
4944 # static unsigned int
4945 # pe_get16 (fd, offset)
4946 # int fd;
4947 # int offset;
4949 # unsigned char b[2];
4950 # lseek (fd, offset, SEEK_SET);
4951 # read (fd, b, 2);
4952 # return b[0] + (b[1]<<8);
4955 # static unsigned int
4956 # pe_get32 (fd, offset)
4957 # int fd;
4958 # int offset;
4960 # unsigned char b[4];
4961 # lseek (fd, offset, SEEK_SET);
4962 # read (fd, b, 4);
4963 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
4966 # static unsigned int
4967 # pe_as32 (ptr)
4968 # void *ptr;
4970 # unsigned char *b = ptr;
4971 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
4974 # int
4975 # main (argc, argv)
4976 # int argc;
4977 # char *argv[];
4979 # int dll;
4980 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
4981 # unsigned long export_rva, export_size, nsections, secptr, expptr;
4982 # unsigned long name_rvas, nexp;
4983 # unsigned char *expdata, *erva;
4984 # char *filename, *dll_name;
4986 # filename = argv[1];
4988 # dll = open(filename, O_RDONLY|O_BINARY);
4989 # if (dll < 1)
4990 # return 1;
4992 # dll_name = filename;
4994 # for (i=0; filename[i]; i++)
4995 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
4996 # dll_name = filename + i +1;
4998 # pe_header_offset = pe_get32 (dll, 0x3c);
4999 # opthdr_ofs = pe_header_offset + 4 + 20;
5000 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5002 # if (num_entries < 1) /* no exports */
5003 # return 1;
5005 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5006 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5007 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5008 # secptr = (pe_header_offset + 4 + 20 +
5009 # pe_get16 (dll, pe_header_offset + 4 + 16));
5011 # expptr = 0;
5012 # for (i = 0; i < nsections; i++)
5014 # char sname[8];
5015 # unsigned long secptr1 = secptr + 40 * i;
5016 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5017 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5018 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5019 # lseek(dll, secptr1, SEEK_SET);
5020 # read(dll, sname, 8);
5021 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5023 # expptr = fptr + (export_rva - vaddr);
5024 # if (export_rva + export_size > vaddr + vsize)
5025 # export_size = vsize - (export_rva - vaddr);
5026 # break;
5030 # expdata = (unsigned char*)malloc(export_size);
5031 # lseek (dll, expptr, SEEK_SET);
5032 # read (dll, expdata, export_size);
5033 # erva = expdata - export_rva;
5035 # nexp = pe_as32 (expdata+24);
5036 # name_rvas = pe_as32 (expdata+32);
5038 # printf ("EXPORTS\n");
5039 # for (i = 0; i<nexp; i++)
5041 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5042 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5045 # return 0;
5047 # /* impgen.c ends here */
5051 esac
5053 # We use sed instead of cat because bash on DJGPP gets confused if
5054 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5055 # text mode, it properly converts lines to CR/LF. This bash problem
5056 # is reportedly fixed, but why not run on old versions too?
5057 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5059 mv -f "${ofile}T" "$ofile" || \
5060 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5061 chmod +x "$ofile"
5068 # This can be used to rebuild libtool when needed
5069 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5071 # Always use our own libtool.
5072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5074 # Prevent multiple expansion
5080 for ac_hdr in langinfo.h
5082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_hdr" >&5
5085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5087 else
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 #include <$ac_hdr>
5093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5094 { (eval echo configure:5095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5096 if test -z "$ac_err"; then
5097 rm -rf conftest*
5098 eval "ac_cv_header_$ac_safe=yes"
5099 else
5100 echo "$ac_err" >&5
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 rm -rf conftest*
5104 eval "ac_cv_header_$ac_safe=no"
5106 rm -f conftest*
5108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5111 cat >> confdefs.h <<EOF
5112 #define $ac_tr_hdr 1
5115 else
5116 echo "$ac_t""no" 1>&6
5118 done
5120 for ac_func in nl_langinfo
5122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5123 echo "configure:5124: checking for $ac_func" >&5
5124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5126 else
5127 cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5130 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func(); below. */
5132 #include <assert.h>
5133 /* Override any gcc2 internal prototype to avoid an error. */
5134 /* We use char because int might match the return type of a gcc2
5135 builtin and then its argument prototype would still apply. */
5136 char $ac_func();
5138 int main() {
5140 /* The GNU C library defines this for functions which it implements
5141 to always fail with ENOSYS. Some functions are actually named
5142 something starting with __ and the normal name is an alias. */
5143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5144 choke me
5145 #else
5146 $ac_func();
5147 #endif
5149 ; return 0; }
5151 if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 rm -rf conftest*
5153 eval "ac_cv_func_$ac_func=yes"
5154 else
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5157 rm -rf conftest*
5158 eval "ac_cv_func_$ac_func=no"
5160 rm -f conftest*
5163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5166 cat >> confdefs.h <<EOF
5167 #define $ac_tr_func 1
5170 else
5171 echo "$ac_t""no" 1>&6
5173 done
5176 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5177 echo "configure:5178: checking for nl_langinfo and CODESET" >&5
5178 if eval "test \"`echo '$''{'jm_cv_langinfo_codeset'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5180 else
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 #include <langinfo.h>
5185 int main() {
5186 char* cs = nl_langinfo(CODESET);
5187 ; return 0; }
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 rm -rf conftest*
5191 jm_cv_langinfo_codeset=yes
5192 else
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 rm -rf conftest*
5196 jm_cv_langinfo_codeset=no
5198 rm -f conftest*
5202 echo "$ac_t""$jm_cv_langinfo_codeset" 1>&6
5203 if test $jm_cv_langinfo_codeset = yes; then
5204 cat >> confdefs.h <<\EOF
5205 #define HAVE_LANGINFO_CODESET 1
5211 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5212 echo "configure:5213: checking whether we are using the GNU C Library 2.1 or newer" >&5
5213 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5215 else
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5220 #include <features.h>
5221 #ifdef __GNU_LIBRARY__
5222 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5223 Lucky GNU user
5224 #endif
5225 #endif
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229 egrep "Lucky GNU user" >/dev/null 2>&1; then
5230 rm -rf conftest*
5231 ac_cv_gnu_library_2_1=yes
5232 else
5233 rm -rf conftest*
5234 ac_cv_gnu_library_2_1=no
5236 rm -f conftest*
5242 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5244 GLIBC21="$ac_cv_gnu_library_2_1"
5247 for ac_hdr in stddef.h stdlib.h string.h
5249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5251 echo "configure:5252: checking for $ac_hdr" >&5
5252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5254 else
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5258 #include <$ac_hdr>
5260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5261 { (eval echo configure:5262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5263 if test -z "$ac_err"; then
5264 rm -rf conftest*
5265 eval "ac_cv_header_$ac_safe=yes"
5266 else
5267 echo "$ac_err" >&5
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 rm -rf conftest*
5271 eval "ac_cv_header_$ac_safe=no"
5273 rm -f conftest*
5275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5276 echo "$ac_t""yes" 1>&6
5277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5278 cat >> confdefs.h <<EOF
5279 #define $ac_tr_hdr 1
5282 else
5283 echo "$ac_t""no" 1>&6
5285 done
5287 for ac_func in setlocale
5289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5290 echo "configure:5291: checking for $ac_func" >&5
5291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5293 else
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 /* System header to define __stub macros and hopefully few prototypes,
5298 which can conflict with char $ac_func(); below. */
5299 #include <assert.h>
5300 /* Override any gcc2 internal prototype to avoid an error. */
5301 /* We use char because int might match the return type of a gcc2
5302 builtin and then its argument prototype would still apply. */
5303 char $ac_func();
5305 int main() {
5307 /* The GNU C library defines this for functions which it implements
5308 to always fail with ENOSYS. Some functions are actually named
5309 something starting with __ and the normal name is an alias. */
5310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5311 choke me
5312 #else
5313 $ac_func();
5314 #endif
5316 ; return 0; }
5318 if { (eval echo configure:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319 rm -rf conftest*
5320 eval "ac_cv_func_$ac_func=yes"
5321 else
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 rm -rf conftest*
5325 eval "ac_cv_func_$ac_func=no"
5327 rm -f conftest*
5330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5333 cat >> confdefs.h <<EOF
5334 #define $ac_tr_func 1
5337 else
5338 echo "$ac_t""no" 1>&6
5340 done
5343 trap '' 1 2 15
5344 cat > confcache <<\EOF
5345 # This file is a shell script that caches the results of configure
5346 # tests run on this system so they can be shared between configure
5347 # scripts and configure runs. It is not useful on other systems.
5348 # If it contains results you don't want to keep, you may remove or edit it.
5350 # By default, configure uses ./config.cache as the cache file,
5351 # creating it if it does not exist already. You can give configure
5352 # the --cache-file=FILE option to use a different cache file; that is
5353 # what configure does when it calls configure scripts in
5354 # subdirectories, so they share the cache.
5355 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5356 # config.status only pays attention to the cache file if you give it the
5357 # --recheck option to rerun configure.
5360 # The following way of writing the cache mishandles newlines in values,
5361 # but we know of no workaround that is simple, portable, and efficient.
5362 # So, don't put newlines in cache variables' values.
5363 # Ultrix sh set writes to stderr and can't be redirected directly,
5364 # and sets the high bit in the cache file unless we assign to the vars.
5365 (set) 2>&1 |
5366 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5367 *ac_space=\ *)
5368 # `set' does not quote correctly, so add quotes (double-quote substitution
5369 # turns \\\\ into \\, and sed turns \\ into \).
5370 sed -n \
5371 -e "s/'/'\\\\''/g" \
5372 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5375 # `set' quotes correctly as required by POSIX, so do not add quotes.
5376 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5378 esac >> confcache
5379 if cmp -s $cache_file confcache; then
5381 else
5382 if test -w $cache_file; then
5383 echo "updating cache $cache_file"
5384 cat confcache > $cache_file
5385 else
5386 echo "not updating unwritable cache $cache_file"
5389 rm -f confcache
5391 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5394 # Let make expand exec_prefix.
5395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5397 # Any assignment to VPATH causes Sun make to only execute
5398 # the first set of double-colon rules, so remove it if not needed.
5399 # If there is a colon in the path, we need to keep it.
5400 if test "x$srcdir" = x.; then
5401 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5404 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5406 DEFS=-DHAVE_CONFIG_H
5408 # Without the "./", some shells look in PATH for config.status.
5409 : ${CONFIG_STATUS=./config.status}
5411 echo creating $CONFIG_STATUS
5412 rm -f $CONFIG_STATUS
5413 cat > $CONFIG_STATUS <<EOF
5414 #! /bin/sh
5415 # Generated automatically by configure.
5416 # Run this file to recreate the current configuration.
5417 # This directory was configured as follows,
5418 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5420 # $0 $ac_configure_args
5422 # Compiler output produced by configure, useful for debugging
5423 # configure, is in ./config.log if it exists.
5425 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5426 for ac_option
5428 case "\$ac_option" in
5429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5430 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5431 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5432 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5433 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5434 exit 0 ;;
5435 -help | --help | --hel | --he | --h)
5436 echo "\$ac_cs_usage"; exit 0 ;;
5437 *) echo "\$ac_cs_usage"; exit 1 ;;
5438 esac
5439 done
5441 ac_given_srcdir=$srcdir
5442 ac_given_INSTALL="$INSTALL"
5444 trap 'rm -fr `echo "Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5446 cat >> $CONFIG_STATUS <<EOF
5448 # Protect against being on the right side of a sed subst in config.status.
5449 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5450 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5451 $ac_vpsub
5452 $extrasub
5453 s%@SHELL@%$SHELL%g
5454 s%@CFLAGS@%$CFLAGS%g
5455 s%@CPPFLAGS@%$CPPFLAGS%g
5456 s%@CXXFLAGS@%$CXXFLAGS%g
5457 s%@FFLAGS@%$FFLAGS%g
5458 s%@DEFS@%$DEFS%g
5459 s%@LDFLAGS@%$LDFLAGS%g
5460 s%@LIBS@%$LIBS%g
5461 s%@exec_prefix@%$exec_prefix%g
5462 s%@prefix@%$prefix%g
5463 s%@program_transform_name@%$program_transform_name%g
5464 s%@bindir@%$bindir%g
5465 s%@sbindir@%$sbindir%g
5466 s%@libexecdir@%$libexecdir%g
5467 s%@datadir@%$datadir%g
5468 s%@sysconfdir@%$sysconfdir%g
5469 s%@sharedstatedir@%$sharedstatedir%g
5470 s%@localstatedir@%$localstatedir%g
5471 s%@libdir@%$libdir%g
5472 s%@includedir@%$includedir%g
5473 s%@oldincludedir@%$oldincludedir%g
5474 s%@infodir@%$infodir%g
5475 s%@mandir@%$mandir%g
5476 s%@SET_MAKE@%$SET_MAKE%g
5477 s%@PACKAGE@%$PACKAGE%g
5478 s%@VERSION@%$VERSION%g
5479 s%@CC@%$CC%g
5480 s%@CPP@%$CPP%g
5481 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5482 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5483 s%@INSTALL_DATA@%$INSTALL_DATA%g
5484 s%@host@%$host%g
5485 s%@host_alias@%$host_alias%g
5486 s%@host_cpu@%$host_cpu%g
5487 s%@host_vendor@%$host_vendor%g
5488 s%@host_os@%$host_os%g
5489 s%@OBJEXT@%$OBJEXT%g
5490 s%@EXEEXT@%$EXEEXT%g
5491 s%@build@%$build%g
5492 s%@build_alias@%$build_alias%g
5493 s%@build_cpu@%$build_cpu%g
5494 s%@build_vendor@%$build_vendor%g
5495 s%@build_os@%$build_os%g
5496 s%@LN_S@%$LN_S%g
5497 s%@ECHO@%$ECHO%g
5498 s%@RANLIB@%$RANLIB%g
5499 s%@STRIP@%$STRIP%g
5500 s%@LIBTOOL@%$LIBTOOL%g
5501 s%@GLIBC21@%$GLIBC21%g
5503 CEOF
5506 cat >> $CONFIG_STATUS <<\EOF
5508 # Split the substitutions into bite-sized pieces for seds with
5509 # small command number limits, like on Digital OSF/1 and HP-UX.
5510 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5511 ac_file=1 # Number of current file.
5512 ac_beg=1 # First line for current file.
5513 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5514 ac_more_lines=:
5515 ac_sed_cmds=""
5516 while $ac_more_lines; do
5517 if test $ac_beg -gt 1; then
5518 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5519 else
5520 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5522 if test ! -s conftest.s$ac_file; then
5523 ac_more_lines=false
5524 rm -f conftest.s$ac_file
5525 else
5526 if test -z "$ac_sed_cmds"; then
5527 ac_sed_cmds="sed -f conftest.s$ac_file"
5528 else
5529 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5531 ac_file=`expr $ac_file + 1`
5532 ac_beg=$ac_end
5533 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5535 done
5536 if test -z "$ac_sed_cmds"; then
5537 ac_sed_cmds=cat
5541 cat >> $CONFIG_STATUS <<EOF
5543 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile"}
5545 cat >> $CONFIG_STATUS <<\EOF
5546 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5548 case "$ac_file" in
5549 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5550 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5551 *) ac_file_in="${ac_file}.in" ;;
5552 esac
5554 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5556 # Remove last slash and all that follows it. Not all systems have dirname.
5557 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5559 # The file is in a subdirectory.
5560 test ! -d "$ac_dir" && mkdir "$ac_dir"
5561 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5562 # A "../" for each directory in $ac_dir_suffix.
5563 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5564 else
5565 ac_dir_suffix= ac_dots=
5568 case "$ac_given_srcdir" in
5569 .) srcdir=.
5570 if test -z "$ac_dots"; then top_srcdir=.
5571 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5572 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5573 *) # Relative path.
5574 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5575 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5576 esac
5578 case "$ac_given_INSTALL" in
5579 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5580 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5581 esac
5583 echo creating "$ac_file"
5584 rm -f "$ac_file"
5585 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5586 case "$ac_file" in
5587 *Makefile*) ac_comsub="1i\\
5588 # $configure_input" ;;
5589 *) ac_comsub= ;;
5590 esac
5592 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5593 sed -e "$ac_comsub
5594 s%@configure_input@%$configure_input%g
5595 s%@srcdir@%$srcdir%g
5596 s%@top_srcdir@%$top_srcdir%g
5597 s%@INSTALL@%$INSTALL%g
5598 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5599 fi; done
5600 rm -f conftest.s*
5602 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5603 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5605 # ac_d sets the value in "#define NAME VALUE" lines.
5606 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5607 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5608 ac_dC='\3'
5609 ac_dD='%g'
5610 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5611 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5612 ac_uB='\([ ]\)%\1#\2define\3'
5613 ac_uC=' '
5614 ac_uD='\4%g'
5615 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5616 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5617 ac_eB='$%\1#\2define\3'
5618 ac_eC=' '
5619 ac_eD='%g'
5621 if test "${CONFIG_HEADERS+set}" != set; then
5623 cat >> $CONFIG_STATUS <<EOF
5624 CONFIG_HEADERS="config.h"
5626 cat >> $CONFIG_STATUS <<\EOF
5628 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5630 case "$ac_file" in
5631 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5632 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5633 *) ac_file_in="${ac_file}.in" ;;
5634 esac
5636 echo creating $ac_file
5638 rm -f conftest.frag conftest.in conftest.out
5639 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5640 cat $ac_file_inputs > conftest.in
5644 # Transform confdefs.h into a sed script conftest.vals that substitutes
5645 # the proper values into config.h.in to produce config.h. And first:
5646 # Protect against being on the right side of a sed subst in config.status.
5647 # Protect against being in an unquoted here document in config.status.
5648 rm -f conftest.vals
5649 cat > conftest.hdr <<\EOF
5650 s/[\\&%]/\\&/g
5651 s%[\\$`]%\\&%g
5652 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5653 s%ac_d%ac_u%gp
5654 s%ac_u%ac_e%gp
5656 sed -n -f conftest.hdr confdefs.h > conftest.vals
5657 rm -f conftest.hdr
5659 # This sed command replaces #undef with comments. This is necessary, for
5660 # example, in the case of _POSIX_SOURCE, which is predefined and required
5661 # on some systems where configure will not decide to define it.
5662 cat >> conftest.vals <<\EOF
5663 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5666 # Break up conftest.vals because some shells have a limit on
5667 # the size of here documents, and old seds have small limits too.
5669 rm -f conftest.tail
5670 while :
5672 ac_lines=`grep -c . conftest.vals`
5673 # grep -c gives empty output for an empty file on some AIX systems.
5674 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5675 # Write a limited-size here document to conftest.frag.
5676 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5677 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5678 echo 'CEOF
5679 sed -f conftest.frag conftest.in > conftest.out
5680 rm -f conftest.in
5681 mv conftest.out conftest.in
5682 ' >> $CONFIG_STATUS
5683 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5684 rm -f conftest.vals
5685 mv conftest.tail conftest.vals
5686 done
5687 rm -f conftest.vals
5689 cat >> $CONFIG_STATUS <<\EOF
5690 rm -f conftest.frag conftest.h
5691 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5692 cat conftest.in >> conftest.h
5693 rm -f conftest.in
5694 if cmp -s $ac_file conftest.h 2>/dev/null; then
5695 echo "$ac_file is unchanged"
5696 rm -f conftest.h
5697 else
5698 # Remove last slash and all that follows it. Not all systems have dirname.
5699 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5700 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5701 # The file is in a subdirectory.
5702 test ! -d "$ac_dir" && mkdir "$ac_dir"
5704 rm -f $ac_file
5705 mv conftest.h $ac_file
5707 fi; done
5710 cat >> $CONFIG_STATUS <<EOF
5713 cat >> $CONFIG_STATUS <<\EOF
5715 exit 0
5717 chmod +x $CONFIG_STATUS
5718 rm -fr confdefs* $ac_clean_files
5719 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1