blob: 0c81c61748972094654fdbdf8babcb08bbe59095 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
drh71eb93e2001-09-28 01:34:43 +00003# Generated by Autoconf 2.52.
drh75897232000-05-29 14:26:00 +00004#
drh71eb93e2001-09-28 01:34:43 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
drh71eb93e2001-09-28 01:34:43 +000010# Find the correct PATH separator. Usually this is `:', but
11# DJGPP uses `;' like DOS.
12if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) PATH_SEPARATOR=';' ;;
16 *) PATH_SEPARATOR=':' ;;
17 esac
18fi
19
20# Check that we are running under the correct shell.
21SHELL=${CONFIG_SHELL-/bin/sh}
22
23case X$ECHO in
24X*--fallback-echo)
25 # Remove one level of quotation (which was required for Make).
26 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27 ;;
28esac
29
30echo=${ECHO-echo}
31if test "X$1" = X--no-reexec; then
32 # Discard the --no-reexec flag, and continue.
33 shift
34elif test "X$1" = X--fallback-echo; then
35 # Avoid inline document here, it may be left over
36 :
37elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
39 :
40else
41 # Restart under the correct shell.
42 exec $SHELL "$0" --no-reexec ${1+"$@"}
43fi
44
45if test "X$1" = X--fallback-echo; then
46 # used as fallback echo
47 shift
48 cat <<EOF
49$*
50EOF
51 exit 0
52fi
53
54# The HP-UX ksh and POSIX shell print the target directory to stdout
55# if CDPATH is set.
56if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58if test -z "$ECHO"; then
59if test "X${echo_test_string+set}" != Xset; then
60# find a string as large as possible, as long as the shell can cope with it
61 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64 echo_test_string="`eval $cmd`" &&
65 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66 then
67 break
68 fi
69 done
70fi
71
72if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74 test "X$echo_testing_string" = "X$echo_test_string"; then
75 :
76else
77 # The Solaris, AIX, and Digital Unix default echo programs unquote
78 # backslashes. This makes it impossible to quote backslashes using
79 # echo "$something" | sed 's/\\/\\\\/g'
80 #
81 # So, first we look for a working echo in the user's PATH.
82
83 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84 for dir in $PATH /usr/ucb; do
85 IFS="$lt_save_ifs"
86 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
90 echo="$dir/echo"
91 break
92 fi
93 done
94 IFS="$lt_save_ifs"
95
96 if test "X$echo" = Xecho; then
97 # We didn't find a better echo, so look for alternatives.
98 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100 test "X$echo_testing_string" = "X$echo_test_string"; then
101 # This shell has a builtin print -r that does the trick.
102 echo='print -r'
103 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104 test "X$CONFIG_SHELL" != X/bin/ksh; then
105 # If we have ksh, try running configure again with it.
106 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107 export ORIGINAL_CONFIG_SHELL
108 CONFIG_SHELL=/bin/ksh
109 export CONFIG_SHELL
110 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
111 else
112 # Try using printf.
113 echo='printf %s\n'
114 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116 test "X$echo_testing_string" = "X$echo_test_string"; then
117 # Cool, printf works
118 :
119 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124 export CONFIG_SHELL
125 SHELL="$CONFIG_SHELL"
126 export SHELL
127 echo="$CONFIG_SHELL $0 --fallback-echo"
128 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129 test "X$echo_testing_string" = 'X\t' &&
130 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131 test "X$echo_testing_string" = "X$echo_test_string"; then
132 echo="$CONFIG_SHELL $0 --fallback-echo"
133 else
134 # maybe with a smaller string...
135 prev=:
136
137 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
139 then
140 break
141 fi
142 prev="$cmd"
143 done
144
145 if test "$prev" != 'sed 50q "$0"'; then
146 echo_test_string=`eval $prev`
147 export echo_test_string
148 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149 else
150 # Oops. We lost completely, so just stick with echo.
151 echo=echo
152 fi
153 fi
154 fi
155 fi
156fi
157fi
158
159# Copy echo and quote the copy suitably for passing to libtool from
160# the Makefile, instead of quoting the original, which is used later.
161ECHO=$echo
162if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
164fi
165
166# Avoid depending upon Character Ranges.
167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170as_cr_digits='0123456789'
171as_cr_alnum=$as_cr_Letters$as_cr_digits
172
173# Sed expression to map a string onto a valid variable name.
174as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175
176# Sed expression to map a string onto a valid CPP name.
177as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178
179# Be Bourne compatible
180if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181 emulate sh
182 NULLCMD=:
183elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
184 set -o posix
185fi
186
187# Name of the executable.
188as_me=`echo "$0" |sed 's,.*[\\/],,'`
189
190if expr a : '\(a\)' >/dev/null 2>&1; then
191 as_expr=expr
192else
193 as_expr=false
194fi
195
196rm -f conf$$ conf$$.exe conf$$.file
197echo >conf$$.file
198if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
203 as_ln_s='cp -p'
204 else
205 as_ln_s='ln -s'
206 fi
207elif ln conf$$.file conf$$ 2>/dev/null; then
208 as_ln_s=ln
209else
210 as_ln_s='cp -p'
211fi
212rm -f conf$$ conf$$.exe conf$$.file
213
214as_executable_p="test -f"
215
216# Support unset when possible.
217if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
218 as_unset=unset
219else
220 as_unset=false
221fi
222
223# NLS nuisances.
224$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
241
242# Name of the host.
243# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244# so uname gets run too.
245ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246
247exec 6>&1
248
249#
250# Initializations.
251#
drh75897232000-05-29 14:26:00 +0000252ac_default_prefix=/usr/local
drh71eb93e2001-09-28 01:34:43 +0000253cross_compiling=no
254subdirs=
255MFLAGS= MAKEFLAGS=
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258# Maximum number of lines to put in a shell here document.
259# This variable seems obsolete. It should probably be removed, and
260# only ac_max_sed_lines should be used.
261: ${ac_max_here_lines=38}
262
263ac_unique_file="src/sqlite.h.in"
drh75897232000-05-29 14:26:00 +0000264
265# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000266ac_init_help=
267ac_init_version=false
drh75897232000-05-29 14:26:00 +0000268# The variables have the same names as the options, with
269# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000270cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000271exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000272no_create=
drh75897232000-05-29 14:26:00 +0000273no_recursion=
274prefix=NONE
275program_prefix=NONE
276program_suffix=NONE
277program_transform_name=s,x,x,
278silent=
279site=
280srcdir=
drh75897232000-05-29 14:26:00 +0000281verbose=
282x_includes=NONE
283x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000284
285# Installation directory options.
286# These are left unexpanded so users can "make install exec_prefix=/foo"
287# and all the variables that are supposed to be based on exec_prefix
288# by default will actually change.
289# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000290bindir='${exec_prefix}/bin'
291sbindir='${exec_prefix}/sbin'
292libexecdir='${exec_prefix}/libexec'
293datadir='${prefix}/share'
294sysconfdir='${prefix}/etc'
295sharedstatedir='${prefix}/com'
296localstatedir='${prefix}/var'
297libdir='${exec_prefix}/lib'
298includedir='${prefix}/include'
299oldincludedir='/usr/include'
300infodir='${prefix}/info'
301mandir='${prefix}/man'
302
drh71eb93e2001-09-28 01:34:43 +0000303# Identity of this package.
304PACKAGE_NAME=
305PACKAGE_TARNAME=
306PACKAGE_VERSION=
307PACKAGE_STRING=
308PACKAGE_BUGREPORT=
drh75897232000-05-29 14:26:00 +0000309
310ac_prev=
311for ac_option
312do
drh75897232000-05-29 14:26:00 +0000313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
316 ac_prev=
317 continue
318 fi
319
drh71eb93e2001-09-28 01:34:43 +0000320 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000321
322 # Accept the important Cygnus configure options, so we can diagnose typos.
323
drh71eb93e2001-09-28 01:34:43 +0000324 case $ac_option in
drh75897232000-05-29 14:26:00 +0000325
326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
327 ac_prev=bindir ;;
328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000329 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000330
331 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000332 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000334 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000335
336 -cache-file | --cache-file | --cache-fil | --cache-fi \
337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338 ac_prev=cache_file ;;
339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000341 cache_file=$ac_optarg ;;
342
343 --config-cache | -C)
344 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000345
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347 ac_prev=datadir ;;
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000350 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000351
352 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000353 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000354 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000360
361 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000362 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000363 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
368 case $ac_option in
369 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000370 *) ac_optarg=yes ;;
371 esac
drh71eb93e2001-09-28 01:34:43 +0000372 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000373
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000381 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000382
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
385 with_gas=yes ;;
386
drh71eb93e2001-09-28 01:34:43 +0000387 -help | --help | --hel | --he | -h)
388 ac_init_help=long ;;
389 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
390 ac_init_help=recursive ;;
391 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
392 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000393
394 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000395 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000396 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000397 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000398
399 -includedir | --includedir | --includedi | --included | --include \
400 | --includ | --inclu | --incl | --inc)
401 ac_prev=includedir ;;
402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000404 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000405
406 -infodir | --infodir | --infodi | --infod | --info | --inf)
407 ac_prev=infodir ;;
408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000409 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000410
411 -libdir | --libdir | --libdi | --libd)
412 ac_prev=libdir ;;
413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000414 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000415
416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417 | --libexe | --libex | --libe)
418 ac_prev=libexecdir ;;
419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000421 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000422
423 -localstatedir | --localstatedir | --localstatedi | --localstated \
424 | --localstate | --localstat | --localsta | --localst \
425 | --locals | --local | --loca | --loc | --lo)
426 ac_prev=localstatedir ;;
427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000430 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000431
432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
433 ac_prev=mandir ;;
434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000435 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000436
437 -nfp | --nfp | --nf)
438 # Obsolete; use --without-fp.
439 with_fp=no ;;
440
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c)
443 no_create=yes ;;
444
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
447 no_recursion=yes ;;
448
449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451 | --oldin | --oldi | --old | --ol | --o)
452 ac_prev=oldincludedir ;;
453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000456 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000457
458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
459 ac_prev=prefix ;;
460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000461 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000462
463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
464 | --program-pre | --program-pr | --program-p)
465 ac_prev=program_prefix ;;
466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000468 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000469
470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
471 | --program-suf | --program-su | --program-s)
472 ac_prev=program_suffix ;;
473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000475 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000476
477 -program-transform-name | --program-transform-name \
478 | --program-transform-nam | --program-transform-na \
479 | --program-transform-n | --program-transform- \
480 | --program-transform | --program-transfor \
481 | --program-transfo | --program-transf \
482 | --program-trans | --program-tran \
483 | --progr-tra | --program-tr | --program-t)
484 ac_prev=program_transform_name ;;
485 -program-transform-name=* | --program-transform-name=* \
486 | --program-transform-nam=* | --program-transform-na=* \
487 | --program-transform-n=* | --program-transform-=* \
488 | --program-transform=* | --program-transfor=* \
489 | --program-transfo=* | --program-transf=* \
490 | --program-trans=* | --program-tran=* \
491 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000492 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000493
494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495 | -silent | --silent | --silen | --sile | --sil)
496 silent=yes ;;
497
498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
499 ac_prev=sbindir ;;
500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
501 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000502 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000503
504 -sharedstatedir | --sharedstatedir | --sharedstatedi \
505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506 | --sharedst | --shareds | --shared | --share | --shar \
507 | --sha | --sh)
508 ac_prev=sharedstatedir ;;
509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
512 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000513 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000514
515 -site | --site | --sit)
516 ac_prev=site ;;
517 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000518 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000519
520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
521 ac_prev=srcdir ;;
522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000523 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000524
525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526 | --syscon | --sysco | --sysc | --sys | --sy)
527 ac_prev=sysconfdir ;;
528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000530 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000531
532 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000533 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000535 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000536
537 -v | -verbose | --verbose | --verbos | --verbo | --verb)
538 verbose=yes ;;
539
drh71eb93e2001-09-28 01:34:43 +0000540 -version | --version | --versio | --versi | --vers | -V)
541 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000542
543 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000544 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000545 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000549 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000550 case $ac_option in
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000552 *) ac_optarg=yes ;;
553 esac
drh71eb93e2001-09-28 01:34:43 +0000554 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000555
556 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000557 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000558 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000564
565 --x)
566 # Obsolete; use --with-x.
567 with_x=yes ;;
568
569 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570 | --x-incl | --x-inc | --x-in | --x-i)
571 ac_prev=x_includes ;;
572 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000574 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000575
576 -x-libraries | --x-libraries | --x-librarie | --x-librari \
577 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578 ac_prev=x_libraries ;;
579 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000581 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000582
drh71eb93e2001-09-28 01:34:43 +0000583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000586 ;;
587
drh71eb93e2001-09-28 01:34:43 +0000588 *=*)
589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
596 export $ac_envvar ;;
597
drh75897232000-05-29 14:26:00 +0000598 *)
drh71eb93e2001-09-28 01:34:43 +0000599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000604 ;;
605
606 esac
607done
608
609if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000613fi
614
drh71eb93e2001-09-28 01:34:43 +0000615# Be sure to have absolute paths.
616for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000617do
drh71eb93e2001-09-28 01:34:43 +0000618 eval ac_val=$`echo $ac_var`
619 case $ac_val in
620 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000623 esac
624done
625
drh71eb93e2001-09-28 01:34:43 +0000626# Be sure to have absolute paths.
627for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
629do
630 eval ac_val=$`echo $ac_var`
631 case $ac_val in
632 [\\/$]* | ?:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
635 esac
636done
drh75897232000-05-29 14:26:00 +0000637
drh71eb93e2001-09-28 01:34:43 +0000638# There might be people who depend on the old broken behavior: `$host'
639# used to hold the argument of --host etc.
640build=$build_alias
641host=$host_alias
642target=$target_alias
drh75897232000-05-29 14:26:00 +0000643
drh71eb93e2001-09-28 01:34:43 +0000644# FIXME: should be removed in autoconf 3.0.
645if test "x$host_alias" != x; then
646 if test "x$build_alias" = x; then
647 cross_compiling=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
651 cross_compiling=yes
652 fi
653fi
654
655ac_tool_prefix=
656test -n "$host_alias" && ac_tool_prefix=$host_alias-
657
658test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000659
660# Find the source files, if location was not specified.
661if test -z "$srcdir"; then
662 ac_srcdir_defaulted=yes
663 # Try the directory containing this script, then its parent.
664 ac_prog=$0
drh71eb93e2001-09-28 01:34:43 +0000665 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
drh75897232000-05-29 14:26:00 +0000666 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
667 srcdir=$ac_confdir
668 if test ! -r $srcdir/$ac_unique_file; then
669 srcdir=..
670 fi
671else
672 ac_srcdir_defaulted=no
673fi
674if test ! -r $srcdir/$ac_unique_file; then
675 if test "$ac_srcdir_defaulted" = yes; then
drh71eb93e2001-09-28 01:34:43 +0000676 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000678 else
drh71eb93e2001-09-28 01:34:43 +0000679 { echo "$as_me: error: cannot find sources in $srcdir" >&2
680 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000681 fi
682fi
drh71eb93e2001-09-28 01:34:43 +0000683srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684ac_env_build_alias_set=${build_alias+set}
685ac_env_build_alias_value=$build_alias
686ac_cv_env_build_alias_set=${build_alias+set}
687ac_cv_env_build_alias_value=$build_alias
688ac_env_host_alias_set=${host_alias+set}
689ac_env_host_alias_value=$host_alias
690ac_cv_env_host_alias_set=${host_alias+set}
691ac_cv_env_host_alias_value=$host_alias
692ac_env_target_alias_set=${target_alias+set}
693ac_env_target_alias_value=$target_alias
694ac_cv_env_target_alias_set=${target_alias+set}
695ac_cv_env_target_alias_value=$target_alias
696ac_env_CC_set=${CC+set}
697ac_env_CC_value=$CC
698ac_cv_env_CC_set=${CC+set}
699ac_cv_env_CC_value=$CC
700ac_env_CFLAGS_set=${CFLAGS+set}
701ac_env_CFLAGS_value=$CFLAGS
702ac_cv_env_CFLAGS_set=${CFLAGS+set}
703ac_cv_env_CFLAGS_value=$CFLAGS
704ac_env_LDFLAGS_set=${LDFLAGS+set}
705ac_env_LDFLAGS_value=$LDFLAGS
706ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
707ac_cv_env_LDFLAGS_value=$LDFLAGS
708ac_env_CPPFLAGS_set=${CPPFLAGS+set}
709ac_env_CPPFLAGS_value=$CPPFLAGS
710ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
711ac_cv_env_CPPFLAGS_value=$CPPFLAGS
712ac_env_CPP_set=${CPP+set}
713ac_env_CPP_value=$CPP
714ac_cv_env_CPP_set=${CPP+set}
715ac_cv_env_CPP_value=$CPP
716ac_env_CXX_set=${CXX+set}
717ac_env_CXX_value=$CXX
718ac_cv_env_CXX_set=${CXX+set}
719ac_cv_env_CXX_value=$CXX
720ac_env_CXXFLAGS_set=${CXXFLAGS+set}
721ac_env_CXXFLAGS_value=$CXXFLAGS
722ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
723ac_cv_env_CXXFLAGS_value=$CXXFLAGS
724ac_env_CXXCPP_set=${CXXCPP+set}
725ac_env_CXXCPP_value=$CXXCPP
726ac_cv_env_CXXCPP_set=${CXXCPP+set}
727ac_cv_env_CXXCPP_value=$CXXCPP
drh75897232000-05-29 14:26:00 +0000728
drh71eb93e2001-09-28 01:34:43 +0000729#
730# Report the --help message.
731#
732if test "$ac_init_help" = "long"; then
733 # Omit some internal or obsolete options to make the list less imposing.
734 # This message is too long to be a string in the A/UX 3.1 sh.
735 cat <<EOF
736\`configure' configures this package to adapt to many kinds of systems.
737
738Usage: $0 [OPTION]... [VAR=VALUE]...
739
740To assign environment variables (e.g., CC, CFLAGS...), specify them as
741VAR=VALUE. See below for descriptions of some of the useful variables.
742
743Defaults for the options are specified in brackets.
744
745Configuration:
746 -h, --help display this help and exit
747 --help=short display options specific to this package
748 --help=recursive display the short help of all the included packages
749 -V, --version display version information and exit
750 -q, --quiet, --silent do not print \`checking...' messages
751 --cache-file=FILE cache test results in FILE [disabled]
752 -C, --config-cache alias for \`--cache-file=config.cache'
753 -n, --no-create do not create output files
754 --srcdir=DIR find the sources in DIR [configure dir or \`..']
755
756EOF
757
758 cat <<EOF
759Installation directories:
760 --prefix=PREFIX install architecture-independent files in PREFIX
761 [$ac_default_prefix]
762 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
763 [PREFIX]
764
765By default, \`make install' will install all the files in
766\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
767an installation prefix other than \`$ac_default_prefix' using \`--prefix',
768for instance \`--prefix=\$HOME'.
769
770For better control, use the options below.
771
772Fine tuning of the installation directories:
773 --bindir=DIR user executables [EPREFIX/bin]
774 --sbindir=DIR system admin executables [EPREFIX/sbin]
775 --libexecdir=DIR program executables [EPREFIX/libexec]
776 --datadir=DIR read-only architecture-independent data [PREFIX/share]
777 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
778 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
779 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
780 --libdir=DIR object code libraries [EPREFIX/lib]
781 --includedir=DIR C header files [PREFIX/include]
782 --oldincludedir=DIR C header files for non-gcc [/usr/include]
783 --infodir=DIR info documentation [PREFIX/info]
784 --mandir=DIR man documentation [PREFIX/man]
785EOF
786
787 cat <<\EOF
788
789System types:
790 --build=BUILD configure for building on BUILD [guessed]
791 --host=HOST build programs to run on HOST [BUILD]
792EOF
793fi
794
795if test -n "$ac_init_help"; then
796
797 cat <<\EOF
798
799Optional Features:
800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
802 --enable-shared[=PKGS]
803 build shared libraries [default=yes]
804 --enable-static[=PKGS]
805 build static libraries [default=yes]
806 --enable-fast-install[=PKGS]
807 optimize for fast installation [default=yes]
808 --disable-libtool-lock avoid locking (might break parallel builds)
809 --enable-utf8 Use UTF-8 encodings
810
811Optional Packages:
812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
815 --with-pic try to use only PIC/non-PIC objects [default=use
816 both]
817 --with-tags=TAGS include additional configurations [CXX,GCJ]
818 --with-hints=FILE Read configuration options from FILE
819
820Some influential environment variables:
821 CC C compiler command
822 CFLAGS C compiler flags
823 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
824 nonstandard directory <lib dir>
825 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
826 headers in a nonstandard directory <include dir>
827 CPP C preprocessor
828 CXX C++ compiler command
829 CXXFLAGS C++ compiler flags
830 CXXCPP C++ preprocessor
831
832Use these variables to override the choices made by `configure' or to help
833it to find libraries and programs with nonstandard names/locations.
834
835EOF
836fi
837
838if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
840 ac_popdir=`pwd`
841 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
842 cd $ac_subdir
843 # A "../" for each directory in /$ac_subdir.
844 ac_dots=`echo $ac_subdir |
845 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
846
847 case $srcdir in
848 .) # No --srcdir option. We are building in place.
849 ac_sub_srcdir=$srcdir ;;
850 [\\/]* | ?:[\\/]* ) # Absolute path.
851 ac_sub_srcdir=$srcdir/$ac_subdir ;;
852 *) # Relative path.
853 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
854 esac
855
856 # Check for guested configure; otherwise get Cygnus style configure.
857 if test -f $ac_sub_srcdir/configure.gnu; then
858 echo
859 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
860 elif test -f $ac_sub_srcdir/configure; then
861 echo
862 $SHELL $ac_sub_srcdir/configure --help=recursive
863 elif test -f $ac_sub_srcdir/configure.ac ||
864 test -f $ac_sub_srcdir/configure.in; then
865 echo
866 $ac_configure --help
867 else
868 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
869 fi
870 cd $ac_popdir
871 done
872fi
873
874test -n "$ac_init_help" && exit 0
875if $ac_init_version; then
876 cat <<\EOF
877
878Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
879Free Software Foundation, Inc.
880This configure script is free software; the Free Software Foundation
881gives unlimited permission to copy, distribute and modify it.
882EOF
883 exit 0
884fi
885exec 5>config.log
886cat >&5 <<EOF
887This file contains any messages produced by compilers while
888running configure, to aid debugging if configure makes a mistake.
889
890It was created by $as_me, which was
891generated by GNU Autoconf 2.52. Invocation command line was
892
893 $ $0 $@
894
895EOF
896{
897cat <<_ASUNAME
898## ---------- ##
899## Platform. ##
900## ---------- ##
901
902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
903uname -m = `(uname -m) 2>/dev/null || echo unknown`
904uname -r = `(uname -r) 2>/dev/null || echo unknown`
905uname -s = `(uname -s) 2>/dev/null || echo unknown`
906uname -v = `(uname -v) 2>/dev/null || echo unknown`
907
908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
910
911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
914hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
918
919PATH = $PATH
920
921_ASUNAME
922} >&5
923
924cat >&5 <<EOF
925## ------------ ##
926## Core tests. ##
927## ------------ ##
928
929EOF
930
931# Keep a trace of the command line.
932# Strip out --no-create and --no-recursion so they do not pile up.
933# Also quote any args containing shell meta-characters.
934ac_configure_args=
935ac_sep=
936for ac_arg
937do
938 case $ac_arg in
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c) ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
946 ac_sep=" " ;;
947 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
948 ac_sep=" " ;;
949 esac
950 # Get rid of the leading space.
951done
952
953# When interrupted or exit'd, cleanup temporary files, and complete
954# config.log. We remove comments because anyway the quotes in there
955# would cause problems or look ugly.
956trap 'exit_status=$?
957 # Save into config.log some information that might help in debugging.
958 echo >&5
959 echo "## ----------------- ##" >&5
960 echo "## Cache variables. ##" >&5
961 echo "## ----------------- ##" >&5
962 echo >&5
963 # The following way of writing the cache mishandles newlines in values,
964{
965 (set) 2>&1 |
966 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
967 *ac_space=\ *)
968 sed -n \
969 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
971 ;;
972 *)
973 sed -n \
974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
975 ;;
976 esac;
977} >&5
978 sed "/^$/d" confdefs.h >conftest.log
979 if test -s conftest.log; then
980 echo >&5
981 echo "## ------------ ##" >&5
982 echo "## confdefs.h. ##" >&5
983 echo "## ------------ ##" >&5
984 echo >&5
985 cat conftest.log >&5
986 fi
987 (echo; echo) >&5
988 test "$ac_signal" != 0 &&
989 echo "$as_me: caught signal $ac_signal" >&5
990 echo "$as_me: exit $exit_status" >&5
991 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
992 exit $exit_status
993 ' 0
994for ac_signal in 1 2 13 15; do
995 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
996done
997ac_signal=0
998
999# confdefs.h avoids OS command line length limits that DEFS can exceed.
1000rm -rf conftest* confdefs.h
1001# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1002echo >confdefs.h
1003
1004# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001005# Prefer explicitly selected file to automatically selected ones.
1006if test -z "$CONFIG_SITE"; then
1007 if test "x$prefix" != xNONE; then
1008 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1009 else
1010 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1011 fi
1012fi
1013for ac_site_file in $CONFIG_SITE; do
1014 if test -r "$ac_site_file"; then
drh71eb93e2001-09-28 01:34:43 +00001015 { echo "$as_me:1015: loading site script $ac_site_file" >&5
1016echo "$as_me: loading site script $ac_site_file" >&6;}
1017 cat "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001018 . "$ac_site_file"
1019 fi
1020done
1021
1022if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001023 # Some versions of bash will fail to source /dev/null (special
1024 # files actually), so we avoid doing that.
1025 if test -f "$cache_file"; then
1026 { echo "$as_me:1026: loading cache $cache_file" >&5
1027echo "$as_me: loading cache $cache_file" >&6;}
1028 case $cache_file in
1029 [\\/]* | ?:[\\/]* ) . $cache_file;;
1030 *) . ./$cache_file;;
1031 esac
1032 fi
drh75897232000-05-29 14:26:00 +00001033else
drh71eb93e2001-09-28 01:34:43 +00001034 { echo "$as_me:1034: creating cache $cache_file" >&5
1035echo "$as_me: creating cache $cache_file" >&6;}
1036 >$cache_file
1037fi
1038
1039# Check that the precious variables saved in the cache have kept the same
1040# value.
1041ac_cache_corrupted=false
1042for ac_var in `(set) 2>&1 |
1043 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1044 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1045 eval ac_new_set=\$ac_env_${ac_var}_set
1046 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1047 eval ac_new_val="\$ac_env_${ac_var}_value"
1048 case $ac_old_set,$ac_new_set in
1049 set,)
1050 { echo "$as_me:1050: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1051echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1053 ,set)
1054 { echo "$as_me:1054: error: \`$ac_var' was not set in the previous run" >&5
1055echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1056 ac_cache_corrupted=: ;;
1057 ,);;
1058 *)
1059 if test "x$ac_old_val" != "x$ac_new_val"; then
1060 { echo "$as_me:1060: error: \`$ac_var' has changed since the previous run:" >&5
1061echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1062 { echo "$as_me:1062: former value: $ac_old_val" >&5
1063echo "$as_me: former value: $ac_old_val" >&2;}
1064 { echo "$as_me:1064: current value: $ac_new_val" >&5
1065echo "$as_me: current value: $ac_new_val" >&2;}
1066 ac_cache_corrupted=:
1067 fi;;
1068 esac
1069 # Pass precious variables to config.status. It doesn't matter if
1070 # we pass some twice (in addition to the command line arguments).
1071 if test "$ac_new_set" = set; then
1072 case $ac_new_val in
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1075 ac_configure_args="$ac_configure_args '$ac_arg'"
1076 ;;
1077 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1078 ;;
1079 esac
1080 fi
1081done
1082if $ac_cache_corrupted; then
1083 { echo "$as_me:1083: error: changes in the environment can compromise the build" >&5
1084echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1085 { { echo "$as_me:1085: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1086echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1087 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001088fi
1089
1090ac_ext=c
drh75897232000-05-29 14:26:00 +00001091ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1094ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001095
drh71eb93e2001-09-28 01:34:43 +00001096case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1097 *c*,-n*) ECHO_N= ECHO_C='
1098' ECHO_T=' ' ;;
1099 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1100 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1101esac
1102echo "#! $SHELL" >conftest.sh
1103echo "exit 0" >>conftest.sh
1104chmod +x conftest.sh
1105if { (echo "$as_me:1105: PATH=\".;.\"; conftest.sh") >&5
1106 (PATH=".;."; conftest.sh) 2>&5
1107 ac_status=$?
1108 echo "$as_me:1108: \$? = $ac_status" >&5
1109 (exit $ac_status); }; then
1110 ac_path_separator=';'
drh75897232000-05-29 14:26:00 +00001111else
drh71eb93e2001-09-28 01:34:43 +00001112 ac_path_separator=:
drh75897232000-05-29 14:26:00 +00001113fi
drh71eb93e2001-09-28 01:34:43 +00001114PATH_SEPARATOR="$ac_path_separator"
1115rm -f conftest.sh
drh75897232000-05-29 14:26:00 +00001116
1117# The following RCS revision string applies to configure.in
drh71eb93e2001-09-28 01:34:43 +00001118# $Revision: 1.12 $
drh75897232000-05-29 14:26:00 +00001119
1120#########
drh71eb93e2001-09-28 01:34:43 +00001121# Programs needed
drh75897232000-05-29 14:26:00 +00001122#
drh71eb93e2001-09-28 01:34:43 +00001123# Find the correct PATH separator. Usually this is `:', but
1124# DJGPP uses `;' like DOS.
1125if test "X${PATH_SEPARATOR+set}" != Xset; then
1126 UNAME=${UNAME-`uname 2>/dev/null`}
1127 case X$UNAME in
1128 *-DOS) PATH_SEPARATOR=';' ;;
1129 *) PATH_SEPARATOR=':' ;;
1130 esac
drh75897232000-05-29 14:26:00 +00001131fi
1132
drh71eb93e2001-09-28 01:34:43 +00001133# Check whether --enable-shared or --disable-shared was given.
1134if test "${enable_shared+set}" = set; then
1135 enableval="$enable_shared"
1136 p=${PACKAGE-default}
1137 case $enableval in
1138 yes) enable_shared=yes ;;
1139 no) enable_shared=no ;;
1140 *)
1141 enable_shared=no
1142 # Look at the argument we got. We use all the common list separators.
1143 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1144 for pkg in $enableval; do
1145 IFS="$lt_save_ifs"
1146 if test "X$pkg" = "X$p"; then
1147 enable_shared=yes
1148 fi
1149 done
1150 IFS="$lt_save_ifs"
1151 ;;
1152 esac
1153else
1154 enable_shared=yes
1155fi;
1156
1157# Check whether --enable-static or --disable-static was given.
1158if test "${enable_static+set}" = set; then
1159 enableval="$enable_static"
1160 p=${PACKAGE-default}
1161 case $enableval in
1162 yes) enable_static=yes ;;
1163 no) enable_static=no ;;
1164 *)
1165 enable_static=no
1166 # Look at the argument we got. We use all the common list separators.
1167 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1168 for pkg in $enableval; do
1169 IFS="$lt_save_ifs"
1170 if test "X$pkg" = "X$p"; then
1171 enable_static=yes
1172 fi
1173 done
1174 IFS="$lt_save_ifs"
1175 ;;
1176 esac
1177else
1178 enable_static=yes
1179fi;
1180
1181# Check whether --enable-fast-install or --disable-fast-install was given.
1182if test "${enable_fast_install+set}" = set; then
1183 enableval="$enable_fast_install"
1184 p=${PACKAGE-default}
1185 case $enableval in
1186 yes) enable_fast_install=yes ;;
1187 no) enable_fast_install=no ;;
1188 *)
1189 enable_fast_install=no
1190 # Look at the argument we got. We use all the common list separators.
1191 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1192 for pkg in $enableval; do
1193 IFS="$lt_save_ifs"
1194 if test "X$pkg" = "X$p"; then
1195 enable_fast_install=yes
1196 fi
1197 done
1198 IFS="$lt_save_ifs"
1199 ;;
1200 esac
1201else
1202 enable_fast_install=yes
1203fi;
1204
1205ac_aux_dir=
1206for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1207 if test -f $ac_dir/install-sh; then
1208 ac_aux_dir=$ac_dir
1209 ac_install_sh="$ac_aux_dir/install-sh -c"
1210 break
1211 elif test -f $ac_dir/install.sh; then
1212 ac_aux_dir=$ac_dir
1213 ac_install_sh="$ac_aux_dir/install.sh -c"
1214 break
1215 elif test -f $ac_dir/shtool; then
1216 ac_aux_dir=$ac_dir
1217 ac_install_sh="$ac_aux_dir/shtool install -c"
1218 break
1219 fi
1220done
1221if test -z "$ac_aux_dir"; then
1222 { { echo "$as_me:1222: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1223echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1224 { (exit 1); exit 1; }; }
1225fi
1226ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1227ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1228ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1229
1230# Make sure we can run config.sub.
1231$ac_config_sub sun4 >/dev/null 2>&1 ||
1232 { { echo "$as_me:1232: error: cannot run $ac_config_sub" >&5
1233echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1234 { (exit 1); exit 1; }; }
1235
1236echo "$as_me:1236: checking build system type" >&5
1237echo $ECHO_N "checking build system type... $ECHO_C" >&6
1238if test "${ac_cv_build+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1240else
1241 ac_cv_build_alias=$build_alias
1242test -z "$ac_cv_build_alias" &&
1243 ac_cv_build_alias=`$ac_config_guess`
1244test -z "$ac_cv_build_alias" &&
1245 { { echo "$as_me:1245: error: cannot guess build type; you must specify one" >&5
1246echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1247 { (exit 1); exit 1; }; }
1248ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1249 { { echo "$as_me:1249: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1250echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1251 { (exit 1); exit 1; }; }
1252
1253fi
1254echo "$as_me:1254: result: $ac_cv_build" >&5
1255echo "${ECHO_T}$ac_cv_build" >&6
1256build=$ac_cv_build
1257build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1258build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1259build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1260
1261echo "$as_me:1261: checking host system type" >&5
1262echo $ECHO_N "checking host system type... $ECHO_C" >&6
1263if test "${ac_cv_host+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1265else
1266 ac_cv_host_alias=$host_alias
1267test -z "$ac_cv_host_alias" &&
1268 ac_cv_host_alias=$ac_cv_build_alias
1269ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1270 { { echo "$as_me:1270: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1271echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1272 { (exit 1); exit 1; }; }
1273
1274fi
1275echo "$as_me:1275: result: $ac_cv_host" >&5
1276echo "${ECHO_T}$ac_cv_host" >&6
1277host=$ac_cv_host
1278host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1279host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1280host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1281
1282ac_ext=c
1283ac_cpp='$CPP $CPPFLAGS'
1284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287if test -n "$ac_tool_prefix"; then
1288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1289set dummy ${ac_tool_prefix}gcc; ac_word=$2
1290echo "$as_me:1290: checking for $ac_word" >&5
1291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1292if test "${ac_cv_prog_CC+set}" = set; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1294else
1295 if test -n "$CC"; then
1296 ac_cv_prog_CC="$CC" # Let the user override the test.
1297else
1298 ac_save_IFS=$IFS; IFS=$ac_path_separator
1299ac_dummy="$PATH"
1300for ac_dir in $ac_dummy; do
1301 IFS=$ac_save_IFS
1302 test -z "$ac_dir" && ac_dir=.
1303 $as_executable_p "$ac_dir/$ac_word" || continue
1304ac_cv_prog_CC="${ac_tool_prefix}gcc"
1305echo "$as_me:1305: found $ac_dir/$ac_word" >&5
1306break
1307done
1308
1309fi
1310fi
1311CC=$ac_cv_prog_CC
1312if test -n "$CC"; then
1313 echo "$as_me:1313: result: $CC" >&5
1314echo "${ECHO_T}$CC" >&6
1315else
1316 echo "$as_me:1316: result: no" >&5
1317echo "${ECHO_T}no" >&6
1318fi
1319
1320fi
1321if test -z "$ac_cv_prog_CC"; then
1322 ac_ct_CC=$CC
1323 # Extract the first word of "gcc", so it can be a program name with args.
1324set dummy gcc; ac_word=$2
1325echo "$as_me:1325: checking for $ac_word" >&5
1326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330 if test -n "$ac_ct_CC"; then
1331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1332else
1333 ac_save_IFS=$IFS; IFS=$ac_path_separator
1334ac_dummy="$PATH"
1335for ac_dir in $ac_dummy; do
1336 IFS=$ac_save_IFS
1337 test -z "$ac_dir" && ac_dir=.
1338 $as_executable_p "$ac_dir/$ac_word" || continue
1339ac_cv_prog_ac_ct_CC="gcc"
1340echo "$as_me:1340: found $ac_dir/$ac_word" >&5
1341break
1342done
1343
1344fi
1345fi
1346ac_ct_CC=$ac_cv_prog_ac_ct_CC
1347if test -n "$ac_ct_CC"; then
1348 echo "$as_me:1348: result: $ac_ct_CC" >&5
1349echo "${ECHO_T}$ac_ct_CC" >&6
1350else
1351 echo "$as_me:1351: result: no" >&5
1352echo "${ECHO_T}no" >&6
1353fi
1354
1355 CC=$ac_ct_CC
1356else
1357 CC="$ac_cv_prog_CC"
1358fi
1359
1360if test -z "$CC"; then
1361 if test -n "$ac_tool_prefix"; then
1362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1363set dummy ${ac_tool_prefix}cc; ac_word=$2
1364echo "$as_me:1364: checking for $ac_word" >&5
1365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366if test "${ac_cv_prog_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368else
1369 if test -n "$CC"; then
1370 ac_cv_prog_CC="$CC" # Let the user override the test.
1371else
1372 ac_save_IFS=$IFS; IFS=$ac_path_separator
1373ac_dummy="$PATH"
1374for ac_dir in $ac_dummy; do
1375 IFS=$ac_save_IFS
1376 test -z "$ac_dir" && ac_dir=.
1377 $as_executable_p "$ac_dir/$ac_word" || continue
1378ac_cv_prog_CC="${ac_tool_prefix}cc"
1379echo "$as_me:1379: found $ac_dir/$ac_word" >&5
1380break
1381done
1382
1383fi
1384fi
1385CC=$ac_cv_prog_CC
1386if test -n "$CC"; then
1387 echo "$as_me:1387: result: $CC" >&5
1388echo "${ECHO_T}$CC" >&6
1389else
1390 echo "$as_me:1390: result: no" >&5
1391echo "${ECHO_T}no" >&6
1392fi
1393
1394fi
1395if test -z "$ac_cv_prog_CC"; then
1396 ac_ct_CC=$CC
1397 # Extract the first word of "cc", so it can be a program name with args.
1398set dummy cc; ac_word=$2
1399echo "$as_me:1399: checking for $ac_word" >&5
1400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403else
1404 if test -n "$ac_ct_CC"; then
1405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1406else
1407 ac_save_IFS=$IFS; IFS=$ac_path_separator
1408ac_dummy="$PATH"
1409for ac_dir in $ac_dummy; do
1410 IFS=$ac_save_IFS
1411 test -z "$ac_dir" && ac_dir=.
1412 $as_executable_p "$ac_dir/$ac_word" || continue
1413ac_cv_prog_ac_ct_CC="cc"
1414echo "$as_me:1414: found $ac_dir/$ac_word" >&5
1415break
1416done
1417
1418fi
1419fi
1420ac_ct_CC=$ac_cv_prog_ac_ct_CC
1421if test -n "$ac_ct_CC"; then
1422 echo "$as_me:1422: result: $ac_ct_CC" >&5
1423echo "${ECHO_T}$ac_ct_CC" >&6
1424else
1425 echo "$as_me:1425: result: no" >&5
1426echo "${ECHO_T}no" >&6
1427fi
1428
1429 CC=$ac_ct_CC
1430else
1431 CC="$ac_cv_prog_CC"
1432fi
1433
1434fi
1435if test -z "$CC"; then
1436 # Extract the first word of "cc", so it can be a program name with args.
1437set dummy cc; ac_word=$2
1438echo "$as_me:1438: checking for $ac_word" >&5
1439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445else
1446 ac_prog_rejected=no
1447 ac_save_IFS=$IFS; IFS=$ac_path_separator
1448ac_dummy="$PATH"
1449for ac_dir in $ac_dummy; do
1450 IFS=$ac_save_IFS
1451 test -z "$ac_dir" && ac_dir=.
1452 $as_executable_p "$ac_dir/$ac_word" || continue
1453if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1454 ac_prog_rejected=yes
1455 continue
1456fi
1457ac_cv_prog_CC="cc"
1458echo "$as_me:1458: found $ac_dir/$ac_word" >&5
1459break
1460done
1461
1462if test $ac_prog_rejected = yes; then
1463 # We found a bogon in the path, so make sure we never use it.
1464 set dummy $ac_cv_prog_CC
1465 shift
1466 if test $# != 0; then
1467 # We chose a different compiler from the bogus one.
1468 # However, it has the same basename, so the bogon will be chosen
1469 # first if we set CC to just the basename; use the full file name.
1470 shift
1471 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1472 shift
1473 ac_cv_prog_CC="$@"
1474 fi
1475fi
1476fi
1477fi
1478CC=$ac_cv_prog_CC
1479if test -n "$CC"; then
1480 echo "$as_me:1480: result: $CC" >&5
1481echo "${ECHO_T}$CC" >&6
1482else
1483 echo "$as_me:1483: result: no" >&5
1484echo "${ECHO_T}no" >&6
1485fi
1486
1487fi
1488if test -z "$CC"; then
1489 if test -n "$ac_tool_prefix"; then
1490 for ac_prog in cl
1491 do
1492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1494echo "$as_me:1494: checking for $ac_word" >&5
1495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496if test "${ac_cv_prog_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498else
1499 if test -n "$CC"; then
1500 ac_cv_prog_CC="$CC" # Let the user override the test.
1501else
1502 ac_save_IFS=$IFS; IFS=$ac_path_separator
1503ac_dummy="$PATH"
1504for ac_dir in $ac_dummy; do
1505 IFS=$ac_save_IFS
1506 test -z "$ac_dir" && ac_dir=.
1507 $as_executable_p "$ac_dir/$ac_word" || continue
1508ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1509echo "$as_me:1509: found $ac_dir/$ac_word" >&5
1510break
1511done
1512
1513fi
1514fi
1515CC=$ac_cv_prog_CC
1516if test -n "$CC"; then
1517 echo "$as_me:1517: result: $CC" >&5
1518echo "${ECHO_T}$CC" >&6
1519else
1520 echo "$as_me:1520: result: no" >&5
1521echo "${ECHO_T}no" >&6
1522fi
1523
1524 test -n "$CC" && break
1525 done
1526fi
1527if test -z "$CC"; then
1528 ac_ct_CC=$CC
1529 for ac_prog in cl
1530do
1531 # Extract the first word of "$ac_prog", so it can be a program name with args.
1532set dummy $ac_prog; ac_word=$2
1533echo "$as_me:1533: checking for $ac_word" >&5
1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 if test -n "$ac_ct_CC"; then
1539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1540else
1541 ac_save_IFS=$IFS; IFS=$ac_path_separator
1542ac_dummy="$PATH"
1543for ac_dir in $ac_dummy; do
1544 IFS=$ac_save_IFS
1545 test -z "$ac_dir" && ac_dir=.
1546 $as_executable_p "$ac_dir/$ac_word" || continue
1547ac_cv_prog_ac_ct_CC="$ac_prog"
1548echo "$as_me:1548: found $ac_dir/$ac_word" >&5
1549break
1550done
1551
1552fi
1553fi
1554ac_ct_CC=$ac_cv_prog_ac_ct_CC
1555if test -n "$ac_ct_CC"; then
1556 echo "$as_me:1556: result: $ac_ct_CC" >&5
1557echo "${ECHO_T}$ac_ct_CC" >&6
1558else
1559 echo "$as_me:1559: result: no" >&5
1560echo "${ECHO_T}no" >&6
1561fi
1562
1563 test -n "$ac_ct_CC" && break
1564done
1565
1566 CC=$ac_ct_CC
1567fi
1568
1569fi
1570
1571test -z "$CC" && { { echo "$as_me:1571: error: no acceptable cc found in \$PATH" >&5
1572echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575# Provide some information about the compiler.
1576echo "$as_me:1576:" \
1577 "checking for C compiler version" >&5
1578ac_compiler=`set X $ac_compile; echo $2`
1579{ (eval echo "$as_me:1579: \"$ac_compiler --version </dev/null >&5\"") >&5
1580 (eval $ac_compiler --version </dev/null >&5) 2>&5
1581 ac_status=$?
1582 echo "$as_me:1582: \$? = $ac_status" >&5
1583 (exit $ac_status); }
1584{ (eval echo "$as_me:1584: \"$ac_compiler -v </dev/null >&5\"") >&5
1585 (eval $ac_compiler -v </dev/null >&5) 2>&5
1586 ac_status=$?
1587 echo "$as_me:1587: \$? = $ac_status" >&5
1588 (exit $ac_status); }
1589{ (eval echo "$as_me:1589: \"$ac_compiler -V </dev/null >&5\"") >&5
1590 (eval $ac_compiler -V </dev/null >&5) 2>&5
1591 ac_status=$?
1592 echo "$as_me:1592: \$? = $ac_status" >&5
1593 (exit $ac_status); }
1594
1595cat >conftest.$ac_ext <<_ACEOF
1596#line 1596 "configure"
1597#include "confdefs.h"
1598
1599int
1600main ()
1601{
1602
1603 ;
1604 return 0;
1605}
1606_ACEOF
1607ac_clean_files_save=$ac_clean_files
1608ac_clean_files="$ac_clean_files a.out a.exe"
1609# Try to create an executable without -o first, disregard a.out.
1610# It will help us diagnose broken compilers, and finding out an intuition
1611# of exeext.
1612echo "$as_me:1612: checking for C compiler default output" >&5
1613echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1614ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1615if { (eval echo "$as_me:1615: \"$ac_link_default\"") >&5
1616 (eval $ac_link_default) 2>&5
1617 ac_status=$?
1618 echo "$as_me:1618: \$? = $ac_status" >&5
1619 (exit $ac_status); }; then
1620 # Find the output, starting from the most likely. This scheme is
1621# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1622# resort.
1623for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1624 ls a.out conftest 2>/dev/null;
1625 ls a.* conftest.* 2>/dev/null`; do
1626 case $ac_file in
1627 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1628 a.out ) # We found the default executable, but exeext='' is most
1629 # certainly right.
1630 break;;
1631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1632 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1633 export ac_cv_exeext
1634 break;;
1635 * ) break;;
1636 esac
1637done
1638else
1639 echo "$as_me: failed program was:" >&5
1640cat conftest.$ac_ext >&5
1641{ { echo "$as_me:1641: error: C compiler cannot create executables" >&5
1642echo "$as_me: error: C compiler cannot create executables" >&2;}
1643 { (exit 77); exit 77; }; }
1644fi
1645
1646ac_exeext=$ac_cv_exeext
1647echo "$as_me:1647: result: $ac_file" >&5
1648echo "${ECHO_T}$ac_file" >&6
1649
1650# Check the compiler produces executables we can run. If not, either
1651# the compiler is broken, or we cross compile.
1652echo "$as_me:1652: checking whether the C compiler works" >&5
1653echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1654# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1655# If not cross compiling, check that we can run a simple program.
1656if test "$cross_compiling" != yes; then
1657 if { ac_try='./$ac_file'
1658 { (eval echo "$as_me:1658: \"$ac_try\"") >&5
1659 (eval $ac_try) 2>&5
1660 ac_status=$?
1661 echo "$as_me:1661: \$? = $ac_status" >&5
1662 (exit $ac_status); }; }; then
1663 cross_compiling=no
1664 else
1665 if test "$cross_compiling" = maybe; then
1666 cross_compiling=yes
1667 else
1668 { { echo "$as_me:1668: error: cannot run C compiled programs.
1669If you meant to cross compile, use \`--host'." >&5
1670echo "$as_me: error: cannot run C compiled programs.
1671If you meant to cross compile, use \`--host'." >&2;}
1672 { (exit 1); exit 1; }; }
1673 fi
1674 fi
1675fi
1676echo "$as_me:1676: result: yes" >&5
1677echo "${ECHO_T}yes" >&6
1678
1679rm -f a.out a.exe conftest$ac_cv_exeext
1680ac_clean_files=$ac_clean_files_save
1681# Check the compiler produces executables we can run. If not, either
1682# the compiler is broken, or we cross compile.
1683echo "$as_me:1683: checking whether we are cross compiling" >&5
1684echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1685echo "$as_me:1685: result: $cross_compiling" >&5
1686echo "${ECHO_T}$cross_compiling" >&6
1687
1688echo "$as_me:1688: checking for executable suffix" >&5
1689echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1690if { (eval echo "$as_me:1690: \"$ac_link\"") >&5
1691 (eval $ac_link) 2>&5
1692 ac_status=$?
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; then
1695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1696# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1697# work properly (i.e., refer to `conftest.exe'), while it won't with
1698# `rm'.
1699for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1700 case $ac_file in
1701 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 export ac_cv_exeext
1704 break;;
1705 * ) break;;
1706 esac
1707done
1708else
1709 { { echo "$as_me:1709: error: cannot compute EXEEXT: cannot compile and link" >&5
1710echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1711 { (exit 1); exit 1; }; }
1712fi
1713
1714rm -f conftest$ac_cv_exeext
1715echo "$as_me:1715: result: $ac_cv_exeext" >&5
1716echo "${ECHO_T}$ac_cv_exeext" >&6
1717
1718rm -f conftest.$ac_ext
1719EXEEXT=$ac_cv_exeext
1720ac_exeext=$EXEEXT
1721echo "$as_me:1721: checking for object suffix" >&5
1722echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1723if test "${ac_cv_objext+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726 cat >conftest.$ac_ext <<_ACEOF
1727#line 1727 "configure"
1728#include "confdefs.h"
1729
1730int
1731main ()
1732{
1733
1734 ;
1735 return 0;
1736}
1737_ACEOF
1738rm -f conftest.o conftest.obj
1739if { (eval echo "$as_me:1739: \"$ac_compile\"") >&5
1740 (eval $ac_compile) 2>&5
1741 ac_status=$?
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); }; then
1744 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1745 case $ac_file in
1746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1748 break;;
1749 esac
1750done
1751else
1752 echo "$as_me: failed program was:" >&5
1753cat conftest.$ac_ext >&5
1754{ { echo "$as_me:1754: error: cannot compute OBJEXT: cannot compile" >&5
1755echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1756 { (exit 1); exit 1; }; }
1757fi
1758
1759rm -f conftest.$ac_cv_objext conftest.$ac_ext
1760fi
1761echo "$as_me:1761: result: $ac_cv_objext" >&5
1762echo "${ECHO_T}$ac_cv_objext" >&6
1763OBJEXT=$ac_cv_objext
1764ac_objext=$OBJEXT
1765echo "$as_me:1765: checking whether we are using the GNU C compiler" >&5
1766echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1767if test "${ac_cv_c_compiler_gnu+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 cat >conftest.$ac_ext <<_ACEOF
1771#line 1771 "configure"
1772#include "confdefs.h"
1773
1774int
1775main ()
1776{
1777#ifndef __GNUC__
1778 choke me
1779#endif
1780
1781 ;
1782 return 0;
1783}
1784_ACEOF
1785rm -f conftest.$ac_objext
1786if { (eval echo "$as_me:1786: \"$ac_compile\"") >&5
1787 (eval $ac_compile) 2>&5
1788 ac_status=$?
1789 echo "$as_me:1789: \$? = $ac_status" >&5
1790 (exit $ac_status); } &&
1791 { ac_try='test -s conftest.$ac_objext'
1792 { (eval echo "$as_me:1792: \"$ac_try\"") >&5
1793 (eval $ac_try) 2>&5
1794 ac_status=$?
1795 echo "$as_me:1795: \$? = $ac_status" >&5
1796 (exit $ac_status); }; }; then
1797 ac_compiler_gnu=yes
1798else
1799 echo "$as_me: failed program was:" >&5
1800cat conftest.$ac_ext >&5
1801ac_compiler_gnu=no
1802fi
1803rm -f conftest.$ac_objext conftest.$ac_ext
1804ac_cv_c_compiler_gnu=$ac_compiler_gnu
1805
1806fi
1807echo "$as_me:1807: result: $ac_cv_c_compiler_gnu" >&5
1808echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1809GCC=`test $ac_compiler_gnu = yes && echo yes`
1810ac_test_CFLAGS=${CFLAGS+set}
1811ac_save_CFLAGS=$CFLAGS
1812CFLAGS="-g"
1813echo "$as_me:1813: checking whether $CC accepts -g" >&5
1814echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1815if test "${ac_cv_prog_cc_g+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 cat >conftest.$ac_ext <<_ACEOF
1819#line 1819 "configure"
1820#include "confdefs.h"
1821
1822int
1823main ()
1824{
1825
1826 ;
1827 return 0;
1828}
1829_ACEOF
1830rm -f conftest.$ac_objext
1831if { (eval echo "$as_me:1831: \"$ac_compile\"") >&5
1832 (eval $ac_compile) 2>&5
1833 ac_status=$?
1834 echo "$as_me:1834: \$? = $ac_status" >&5
1835 (exit $ac_status); } &&
1836 { ac_try='test -s conftest.$ac_objext'
1837 { (eval echo "$as_me:1837: \"$ac_try\"") >&5
1838 (eval $ac_try) 2>&5
1839 ac_status=$?
1840 echo "$as_me:1840: \$? = $ac_status" >&5
1841 (exit $ac_status); }; }; then
1842 ac_cv_prog_cc_g=yes
1843else
1844 echo "$as_me: failed program was:" >&5
1845cat conftest.$ac_ext >&5
1846ac_cv_prog_cc_g=no
1847fi
1848rm -f conftest.$ac_objext conftest.$ac_ext
1849fi
1850echo "$as_me:1850: result: $ac_cv_prog_cc_g" >&5
1851echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1852if test "$ac_test_CFLAGS" = set; then
1853 CFLAGS=$ac_save_CFLAGS
1854elif test $ac_cv_prog_cc_g = yes; then
1855 if test "$GCC" = yes; then
1856 CFLAGS="-g -O2"
1857 else
1858 CFLAGS="-g"
1859 fi
1860else
1861 if test "$GCC" = yes; then
1862 CFLAGS="-O2"
1863 else
1864 CFLAGS=
1865 fi
1866fi
1867# Some people use a C++ compiler to compile C. Since we use `exit',
1868# in C++ we need to declare it. In case someone uses the same compiler
1869# for both compiling C and C++ we need to have the C++ compiler decide
1870# the declaration of exit, since it's the most demanding environment.
1871cat >conftest.$ac_ext <<_ACEOF
1872#ifndef __cplusplus
1873 choke me
1874#endif
1875_ACEOF
1876rm -f conftest.$ac_objext
1877if { (eval echo "$as_me:1877: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:1880: \$? = $ac_status" >&5
1881 (exit $ac_status); } &&
1882 { ac_try='test -s conftest.$ac_objext'
1883 { (eval echo "$as_me:1883: \"$ac_try\"") >&5
1884 (eval $ac_try) 2>&5
1885 ac_status=$?
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1888 for ac_declaration in \
1889 ''\
1890 '#include <stdlib.h>' \
1891 'extern "C" void std::exit (int) throw (); using std::exit;' \
1892 'extern "C" void std::exit (int); using std::exit;' \
1893 'extern "C" void exit (int) throw ();' \
1894 'extern "C" void exit (int);' \
1895 'void exit (int);'
1896do
1897 cat >conftest.$ac_ext <<_ACEOF
1898#line 1898 "configure"
1899#include "confdefs.h"
1900#include <stdlib.h>
1901$ac_declaration
1902int
1903main ()
1904{
1905exit (42);
1906 ;
1907 return 0;
1908}
1909_ACEOF
1910rm -f conftest.$ac_objext
1911if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1913 ac_status=$?
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1918 (eval $ac_try) 2>&5
1919 ac_status=$?
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1922 :
1923else
1924 echo "$as_me: failed program was:" >&5
1925cat conftest.$ac_ext >&5
1926continue
1927fi
1928rm -f conftest.$ac_objext conftest.$ac_ext
1929 cat >conftest.$ac_ext <<_ACEOF
1930#line 1930 "configure"
1931#include "confdefs.h"
1932$ac_declaration
1933int
1934main ()
1935{
1936exit (42);
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941rm -f conftest.$ac_objext
1942if { (eval echo "$as_me:1942: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1944 ac_status=$?
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:1948: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:1951: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 break
1954else
1955 echo "$as_me: failed program was:" >&5
1956cat conftest.$ac_ext >&5
1957fi
1958rm -f conftest.$ac_objext conftest.$ac_ext
1959done
1960rm -f conftest*
1961if test -n "$ac_declaration"; then
1962 echo '#ifdef __cplusplus' >>confdefs.h
1963 echo $ac_declaration >>confdefs.h
1964 echo '#endif' >>confdefs.h
1965fi
1966
1967else
1968 echo "$as_me: failed program was:" >&5
1969cat conftest.$ac_ext >&5
1970fi
1971rm -f conftest.$ac_objext conftest.$ac_ext
1972ac_ext=c
1973ac_cpp='$CPP $CPPFLAGS'
1974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978# Check whether --with-gnu-ld or --without-gnu-ld was given.
1979if test "${with_gnu_ld+set}" = set; then
1980 withval="$with_gnu_ld"
1981 test "$withval" = no || with_gnu_ld=yes
1982else
1983 with_gnu_ld=no
1984fi;
1985ac_prog=ld
1986if test "$GCC" = yes; then
1987 # Check if gcc -print-prog-name=ld gives a path.
1988 echo "$as_me:1988: checking for ld used by GCC" >&5
1989echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
1990 case $host in
1991 *-*-mingw*)
1992 # gcc leaves a trailing carriage return which upsets mingw
1993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1994 *)
1995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1996 esac
1997 case $ac_prog in
1998 # Accept absolute paths.
1999 [\\/]* | ?:[\\/]*)
2000 re_direlt='/[^/][^/]*/\.\./'
2001 # Canonicalize the path of ld
2002 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2003 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2004 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2005 done
2006 test -z "$LD" && LD="$ac_prog"
2007 ;;
2008 "")
2009 # If it fails, then pretend we aren't using GCC.
2010 ac_prog=ld
2011 ;;
2012 *)
2013 # If it is relative, then search for the first ld in PATH.
2014 with_gnu_ld=unknown
2015 ;;
2016 esac
2017elif test "$with_gnu_ld" = yes; then
2018 echo "$as_me:2018: checking for GNU ld" >&5
2019echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2020else
2021 echo "$as_me:2021: checking for non-GNU ld" >&5
2022echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2023fi
2024if test "${lt_cv_path_LD+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 if test -z "$LD"; then
2028 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2029 for ac_dir in $PATH; do
2030 IFS="$lt_save_ifs"
2031 test -z "$ac_dir" && ac_dir=.
2032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2033 lt_cv_path_LD="$ac_dir/$ac_prog"
2034 # Check to see if the program is GNU ld. I'd rather use --version,
2035 # but apparently some GNU ld's only accept -v.
2036 # Break only if it was the GNU/non-GNU ld that we prefer.
2037 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2038 test "$with_gnu_ld" != no && break
2039 else
2040 test "$with_gnu_ld" != yes && break
2041 fi
2042 fi
2043 done
2044 IFS="$lt_save_ifs"
2045else
2046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2047fi
2048fi
2049
2050LD="$lt_cv_path_LD"
2051if test -n "$LD"; then
2052 echo "$as_me:2052: result: $LD" >&5
2053echo "${ECHO_T}$LD" >&6
2054else
2055 echo "$as_me:2055: result: no" >&5
2056echo "${ECHO_T}no" >&6
2057fi
2058test -z "$LD" && { { echo "$as_me:2058: error: no acceptable ld found in \$PATH" >&5
2059echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2060 { (exit 1); exit 1; }; }
2061echo "$as_me:2061: checking if the linker ($LD) is GNU ld" >&5
2062echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2063if test "${lt_cv_prog_gnu_ld+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2067if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2068 lt_cv_prog_gnu_ld=yes
2069else
2070 lt_cv_prog_gnu_ld=no
2071fi
2072fi
2073echo "$as_me:2073: result: $lt_cv_prog_gnu_ld" >&5
2074echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2075with_gnu_ld=$lt_cv_prog_gnu_ld
2076
2077echo "$as_me:2077: checking for $LD option to reload object files" >&5
2078echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2079if test "${lt_cv_ld_reload_flag+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082 lt_cv_ld_reload_flag='-r'
2083fi
2084echo "$as_me:2084: result: $lt_cv_ld_reload_flag" >&5
2085echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2086reload_flag=$lt_cv_ld_reload_flag
2087case $reload_flag in
2088"" | " "*) ;;
2089*) reload_flag=" $reload_flag" ;;
2090esac
2091reload_cmds='$LD$reload_flag -o $output$reload_objs'
2092
2093echo "$as_me:2093: checking for BSD-compatible nm" >&5
2094echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2095if test "${lt_cv_path_NM+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 if test -n "$NM"; then
2099 # Let the user override the test.
2100 lt_cv_path_NM="$NM"
2101else
2102 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2103 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2104 IFS="$lt_save_ifs"
2105 test -z "$ac_dir" && ac_dir=.
2106 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2107 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2108 # Check to see if the nm accepts a BSD-compat flag.
2109 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2110 # nm: unknown option "B" ignored
2111 # Tru64's nm complains that /dev/null is an invalid object file
2112 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2113 lt_cv_path_NM="$tmp_nm -B"
2114 break
2115 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2116 lt_cv_path_NM="$tmp_nm -p"
2117 break
2118 else
2119 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2120 continue # so that we can try to find one that supports BSD flags
2121 fi
2122 fi
2123 done
2124 IFS="$lt_save_ifs"
2125 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2126fi
2127fi
2128echo "$as_me:2128: result: $lt_cv_path_NM" >&5
2129echo "${ECHO_T}$lt_cv_path_NM" >&6
2130NM="$lt_cv_path_NM"
2131
2132echo "$as_me:2132: checking whether ln -s works" >&5
2133echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2134LN_S=$as_ln_s
2135if test "$LN_S" = "ln -s"; then
2136 echo "$as_me:2136: result: yes" >&5
2137echo "${ECHO_T}yes" >&6
2138else
2139 echo "$as_me:2139: result: no, using $LN_S" >&5
2140echo "${ECHO_T}no, using $LN_S" >&6
2141fi
2142
2143echo "$as_me:2143: checking how to recognise dependant libraries" >&5
2144echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2145if test "${lt_cv_deplibs_check_method+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148 lt_cv_file_magic_cmd='$MAGIC_CMD'
2149lt_cv_file_magic_test_file=
2150lt_cv_deplibs_check_method='unknown'
2151# Need to set the preceding variable on all platforms that support
2152# interlibrary dependencies.
2153# 'none' -- dependencies not supported.
2154# `unknown' -- same as none, but documents that we really don't know.
2155# 'pass_all' -- all dependencies passed with no checks.
2156# 'test_compile' -- check by making test program.
2157# ['file_magic [regex]'] -- check by looking for files in library path
2158# which responds to the $file_magic_cmd with a given egrep regex.
2159# If you have `file' or equivalent on your system and you're not sure
2160# whether `pass_all' will *always* work, you probably want this one.
2161
2162case $host_os in
2163aix4* | aix5*)
2164 lt_cv_deplibs_check_method=pass_all
2165 ;;
2166
2167beos*)
2168 lt_cv_deplibs_check_method=pass_all
2169 ;;
2170
2171bsdi4*)
2172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2173 lt_cv_file_magic_cmd='/usr/bin/file -L'
2174 lt_cv_file_magic_test_file=/shlib/libc.so
2175 ;;
2176
2177cygwin* | mingw* | pw32*)
2178 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2179 lt_cv_file_magic_cmd='$OBJDUMP -f'
2180 ;;
2181
2182darwin* | rhapsody*)
2183 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2184 lt_cv_file_magic_cmd='/usr/bin/file -L'
2185 case "$host_os" in
2186 rhapsody* | darwin1.012)
2187 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2188 ;;
2189 *) # Darwin 1.3 on
2190 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2191 ;;
2192 esac
2193 ;;
2194
2195freebsd*)
2196 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2197 case $host_cpu in
2198 i*86 )
2199 # Not sure whether the presence of OpenBSD here was a mistake.
2200 # Let's accept both of them until this is cleared up.
2201 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2202 lt_cv_file_magic_cmd=/usr/bin/file
2203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2204 ;;
2205 esac
2206 else
2207 lt_cv_deplibs_check_method=pass_all
2208 fi
2209 ;;
2210
2211gnu*)
2212 lt_cv_deplibs_check_method=pass_all
2213 ;;
2214
2215hpux10.20* | hpux11*)
2216 lt_cv_file_magic_cmd=/usr/bin/file
2217 if test "$host_cpu" = ia64; then
2218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2220 else
2221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2222 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2223 fi
2224 ;;
2225
2226irix5* | irix6*)
2227 case $host_os in
2228 irix5*)
2229 # this will be overridden with pass_all, but let us keep it just in case
2230 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2231 ;;
2232 *)
2233 case $LD in
2234 *-32|*"-32 ") libmagic=32-bit;;
2235 *-n32|*"-n32 ") libmagic=N32;;
2236 *-64|*"-64 ") libmagic=64-bit;;
2237 *) libmagic=never-match;;
2238 esac
2239 # this will be overridden with pass_all, but let us keep it just in case
2240 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2241 ;;
2242 esac
2243 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2244 lt_cv_deplibs_check_method=pass_all
2245 ;;
2246
2247# This must be Linux ELF.
2248linux*)
2249 case $host_cpu in
2250 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2251 lt_cv_deplibs_check_method=pass_all ;;
2252 *)
2253 # glibc up to 2.1.1 does not perform some relocations on ARM
2254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2255 esac
2256 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2257 ;;
2258
2259netbsd*)
2260 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2261 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2262 else
2263 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2264 fi
2265 ;;
2266
2267newos6*)
2268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2269 lt_cv_file_magic_cmd=/usr/bin/file
2270 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2271 ;;
2272
2273nto-qnx)
2274 lt_cv_deplibs_check_method=unknown
2275 ;;
2276
2277osf3* | osf4* | osf5*)
2278 # this will be overridden with pass_all, but let us keep it just in case
2279 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2280 lt_cv_file_magic_test_file=/shlib/libc.so
2281 lt_cv_deplibs_check_method=pass_all
2282 ;;
2283
2284sco3.2v5*)
2285 lt_cv_deplibs_check_method=pass_all
2286 ;;
2287
2288solaris*)
2289 lt_cv_deplibs_check_method=pass_all
2290 lt_cv_file_magic_test_file=/lib/libc.so
2291 ;;
2292
2293sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2294 case $host_vendor in
2295 motorola)
2296 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]'
2297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2298 ;;
2299 ncr)
2300 lt_cv_deplibs_check_method=pass_all
2301 ;;
2302 sequent)
2303 lt_cv_file_magic_cmd='/bin/file'
2304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2305 ;;
2306 sni)
2307 lt_cv_file_magic_cmd='/bin/file'
2308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2309 lt_cv_file_magic_test_file=/lib/libc.so
2310 ;;
2311 esac
2312 ;;
2313
2314sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
2315 lt_cv_deplibs_check_method=pass_all
2316 ;;
2317esac
2318
2319fi
2320echo "$as_me:2320: result: $lt_cv_deplibs_check_method" >&5
2321echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2322file_magic_cmd=$lt_cv_file_magic_cmd
2323deplibs_check_method=$lt_cv_deplibs_check_method
2324test -z "$deplibs_check_method" && deplibs_check_method=unknown
2325
2326# If no C compiler was specified, use CC.
2327LTCC=${LTCC-"$CC"}
2328
2329# Allow CC to be a program name with arguments.
2330set dummy $CC
2331compiler="$2"
2332
2333# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2334if test "${enable_libtool_lock+set}" = set; then
2335 enableval="$enable_libtool_lock"
2336
2337fi;
2338test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2339
2340# Some flags need to be propagated to the compiler or linker for good
2341# libtool support.
2342case $host in
2343ia64-*-hpux*)
2344 # Find out which ABI we are using.
2345 echo 'int i;' > conftest.$ac_ext
2346 if { (eval echo "$as_me:2346: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2348 ac_status=$?
2349 echo "$as_me:2349: \$? = $ac_status" >&5
2350 (exit $ac_status); }; then
2351 case `/usr/bin/file conftest.$ac_objext` in
2352 *ELF-32*)
2353 HPUX_IA64_MODE="32"
2354 ;;
2355 *ELF-64*)
2356 HPUX_IA64_MODE="64"
2357 ;;
2358 esac
2359 fi
2360 rm -rf conftest*
2361 ;;
2362*-*-irix6*)
2363 # Find out which ABI we are using.
2364 echo '#line 2364 "configure"' > conftest.$ac_ext
2365 if { (eval echo "$as_me:2365: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2367 ac_status=$?
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 case `/usr/bin/file conftest.$ac_objext` in
2371 *32-bit*)
2372 LD="${LD-ld} -32"
2373 ;;
2374 *N32*)
2375 LD="${LD-ld} -n32"
2376 ;;
2377 *64-bit*)
2378 LD="${LD-ld} -64"
2379 ;;
2380 esac
2381 fi
2382 rm -rf conftest*
2383 ;;
2384
2385*-*-sco3.2v5*)
2386 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2387 SAVE_CFLAGS="$CFLAGS"
2388 CFLAGS="$CFLAGS -belf"
2389 echo "$as_me:2389: checking whether the C compiler needs -belf" >&5
2390echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2391if test "${lt_cv_cc_needs_belf+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394 ac_ext=c
2395ac_cpp='$CPP $CPPFLAGS'
2396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399
2400 cat >conftest.$ac_ext <<_ACEOF
2401#line 2401 "configure"
2402#include "confdefs.h"
2403
2404int
2405main ()
2406{
2407
2408 ;
2409 return 0;
2410}
2411_ACEOF
2412rm -f conftest.$ac_objext conftest$ac_exeext
2413if { (eval echo "$as_me:2413: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>&5
2415 ac_status=$?
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest$ac_exeext'
2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:2422: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 lt_cv_cc_needs_belf=yes
2425else
2426 echo "$as_me: failed program was:" >&5
2427cat conftest.$ac_ext >&5
2428lt_cv_cc_needs_belf=no
2429fi
2430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2431 ac_ext=c
2432ac_cpp='$CPP $CPPFLAGS'
2433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436
2437fi
2438echo "$as_me:2438: result: $lt_cv_cc_needs_belf" >&5
2439echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2440 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2441 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2442 CFLAGS="$SAVE_CFLAGS"
2443 fi
2444 ;;
2445
2446esac
2447
2448need_locks="$enable_libtool_lock"
2449
2450ac_ext=c
2451ac_cpp='$CPP $CPPFLAGS'
2452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455echo "$as_me:2455: checking how to run the C preprocessor" >&5
2456echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2457# On Suns, sometimes $CPP names a directory.
2458if test -n "$CPP" && test -d "$CPP"; then
2459 CPP=
2460fi
2461if test -z "$CPP"; then
2462 if test "${ac_cv_prog_CPP+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 # Double quotes because CPP needs to be expanded
2466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2467 do
2468 ac_preproc_ok=false
2469for ac_c_preproc_warn_flag in '' yes
2470do
2471 # Use a header file that comes with gcc, so configuring glibc
2472 # with a fresh cross-compiler works.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2476#line 2476 "configure"
2477#include "confdefs.h"
2478#include <assert.h>
2479 Syntax error
2480_ACEOF
2481if { (eval echo "$as_me:2481: \"$ac_cpp conftest.$ac_ext\"") >&5
2482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2483 ac_status=$?
2484 egrep -v '^ *\+' conftest.er1 >conftest.err
2485 rm -f conftest.er1
2486 cat conftest.err >&5
2487 echo "$as_me:2487: \$? = $ac_status" >&5
2488 (exit $ac_status); } >/dev/null; then
2489 if test -s conftest.err; then
2490 ac_cpp_err=$ac_c_preproc_warn_flag
2491 else
2492 ac_cpp_err=
2493 fi
2494else
2495 ac_cpp_err=yes
2496fi
2497if test -z "$ac_cpp_err"; then
2498 :
2499else
2500 echo "$as_me: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 # Broken: fails on valid input.
2503continue
2504fi
2505rm -f conftest.err conftest.$ac_ext
2506
2507 # OK, works on sane cases. Now check whether non-existent headers
2508 # can be detected and how.
2509 cat >conftest.$ac_ext <<_ACEOF
2510#line 2510 "configure"
2511#include "confdefs.h"
2512#include <ac_nonexistent.h>
2513_ACEOF
2514if { (eval echo "$as_me:2514: \"$ac_cpp conftest.$ac_ext\"") >&5
2515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2516 ac_status=$?
2517 egrep -v '^ *\+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:2520: \$? = $ac_status" >&5
2521 (exit $ac_status); } >/dev/null; then
2522 if test -s conftest.err; then
2523 ac_cpp_err=$ac_c_preproc_warn_flag
2524 else
2525 ac_cpp_err=
2526 fi
2527else
2528 ac_cpp_err=yes
2529fi
2530if test -z "$ac_cpp_err"; then
2531 # Broken: success on invalid input.
2532continue
2533else
2534 echo "$as_me: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2536 # Passes both tests.
2537ac_preproc_ok=:
2538break
2539fi
2540rm -f conftest.err conftest.$ac_ext
2541
2542done
2543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2544rm -f conftest.err conftest.$ac_ext
2545if $ac_preproc_ok; then
2546 break
2547fi
2548
2549 done
2550 ac_cv_prog_CPP=$CPP
2551
2552fi
2553 CPP=$ac_cv_prog_CPP
2554else
2555 ac_cv_prog_CPP=$CPP
2556fi
2557echo "$as_me:2557: result: $CPP" >&5
2558echo "${ECHO_T}$CPP" >&6
2559ac_preproc_ok=false
2560for ac_c_preproc_warn_flag in '' yes
2561do
2562 # Use a header file that comes with gcc, so configuring glibc
2563 # with a fresh cross-compiler works.
2564 # On the NeXT, cc -E runs the code through the compiler's parser,
2565 # not just through cpp. "Syntax error" is here to catch this case.
2566 cat >conftest.$ac_ext <<_ACEOF
2567#line 2567 "configure"
2568#include "confdefs.h"
2569#include <assert.h>
2570 Syntax error
2571_ACEOF
2572if { (eval echo "$as_me:2572: \"$ac_cpp conftest.$ac_ext\"") >&5
2573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2574 ac_status=$?
2575 egrep -v '^ *\+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:2578: \$? = $ac_status" >&5
2579 (exit $ac_status); } >/dev/null; then
2580 if test -s conftest.err; then
2581 ac_cpp_err=$ac_c_preproc_warn_flag
2582 else
2583 ac_cpp_err=
2584 fi
2585else
2586 ac_cpp_err=yes
2587fi
2588if test -z "$ac_cpp_err"; then
2589 :
2590else
2591 echo "$as_me: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 # Broken: fails on valid input.
2594continue
2595fi
2596rm -f conftest.err conftest.$ac_ext
2597
2598 # OK, works on sane cases. Now check whether non-existent headers
2599 # can be detected and how.
2600 cat >conftest.$ac_ext <<_ACEOF
2601#line 2601 "configure"
2602#include "confdefs.h"
2603#include <ac_nonexistent.h>
2604_ACEOF
2605if { (eval echo "$as_me:2605: \"$ac_cpp conftest.$ac_ext\"") >&5
2606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2607 ac_status=$?
2608 egrep -v '^ *\+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); } >/dev/null; then
2613 if test -s conftest.err; then
2614 ac_cpp_err=$ac_c_preproc_warn_flag
2615 else
2616 ac_cpp_err=
2617 fi
2618else
2619 ac_cpp_err=yes
2620fi
2621if test -z "$ac_cpp_err"; then
2622 # Broken: success on invalid input.
2623continue
2624else
2625 echo "$as_me: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2627 # Passes both tests.
2628ac_preproc_ok=:
2629break
2630fi
2631rm -f conftest.err conftest.$ac_ext
2632
2633done
2634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2635rm -f conftest.err conftest.$ac_ext
2636if $ac_preproc_ok; then
2637 :
2638else
2639 { { echo "$as_me:2639: error: C preprocessor \"$CPP\" fails sanity check" >&5
2640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2641 { (exit 1); exit 1; }; }
2642fi
2643
2644ac_ext=c
2645ac_cpp='$CPP $CPPFLAGS'
2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649
2650for ac_header in dlfcn.h
2651do
2652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2653echo "$as_me:2653: checking for $ac_header" >&5
2654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2655if eval "test \"\${$as_ac_Header+set}\" = set"; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 cat >conftest.$ac_ext <<_ACEOF
2659#line 2659 "configure"
2660#include "confdefs.h"
2661#include <$ac_header>
2662_ACEOF
2663if { (eval echo "$as_me:2663: \"$ac_cpp conftest.$ac_ext\"") >&5
2664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665 ac_status=$?
2666 egrep -v '^ *\+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:2669: \$? = $ac_status" >&5
2670 (exit $ac_status); } >/dev/null; then
2671 if test -s conftest.err; then
2672 ac_cpp_err=$ac_c_preproc_warn_flag
2673 else
2674 ac_cpp_err=
2675 fi
2676else
2677 ac_cpp_err=yes
2678fi
2679if test -z "$ac_cpp_err"; then
2680 eval "$as_ac_Header=yes"
2681else
2682 echo "$as_me: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 eval "$as_ac_Header=no"
2685fi
2686rm -f conftest.err conftest.$ac_ext
2687fi
2688echo "$as_me:2688: result: `eval echo '${'$as_ac_Header'}'`" >&5
2689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2690if test `eval echo '${'$as_ac_Header'}'` = yes; then
2691 cat >>confdefs.h <<EOF
2692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2693EOF
2694
2695fi
2696done
2697
2698ac_ext=cc
2699ac_cpp='$CXXCPP $CPPFLAGS'
2700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2703if test -n "$ac_tool_prefix"; then
2704 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2705 do
2706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2708echo "$as_me:2708: checking for $ac_word" >&5
2709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2710if test "${ac_cv_prog_CXX+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712else
2713 if test -n "$CXX"; then
2714 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2715else
2716 ac_save_IFS=$IFS; IFS=$ac_path_separator
2717ac_dummy="$PATH"
2718for ac_dir in $ac_dummy; do
2719 IFS=$ac_save_IFS
2720 test -z "$ac_dir" && ac_dir=.
2721 $as_executable_p "$ac_dir/$ac_word" || continue
2722ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2723echo "$as_me:2723: found $ac_dir/$ac_word" >&5
2724break
2725done
2726
2727fi
2728fi
2729CXX=$ac_cv_prog_CXX
2730if test -n "$CXX"; then
2731 echo "$as_me:2731: result: $CXX" >&5
2732echo "${ECHO_T}$CXX" >&6
2733else
2734 echo "$as_me:2734: result: no" >&5
2735echo "${ECHO_T}no" >&6
2736fi
2737
2738 test -n "$CXX" && break
2739 done
2740fi
2741if test -z "$CXX"; then
2742 ac_ct_CXX=$CXX
2743 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2744do
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746set dummy $ac_prog; ac_word=$2
2747echo "$as_me:2747: checking for $ac_word" >&5
2748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751else
2752 if test -n "$ac_ct_CXX"; then
2753 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2754else
2755 ac_save_IFS=$IFS; IFS=$ac_path_separator
2756ac_dummy="$PATH"
2757for ac_dir in $ac_dummy; do
2758 IFS=$ac_save_IFS
2759 test -z "$ac_dir" && ac_dir=.
2760 $as_executable_p "$ac_dir/$ac_word" || continue
2761ac_cv_prog_ac_ct_CXX="$ac_prog"
2762echo "$as_me:2762: found $ac_dir/$ac_word" >&5
2763break
2764done
2765
2766fi
2767fi
2768ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2769if test -n "$ac_ct_CXX"; then
2770 echo "$as_me:2770: result: $ac_ct_CXX" >&5
2771echo "${ECHO_T}$ac_ct_CXX" >&6
2772else
2773 echo "$as_me:2773: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775fi
2776
2777 test -n "$ac_ct_CXX" && break
2778done
2779test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2780
2781 CXX=$ac_ct_CXX
2782fi
2783
2784# Provide some information about the compiler.
2785echo "$as_me:2785:" \
2786 "checking for C++ compiler version" >&5
2787ac_compiler=`set X $ac_compile; echo $2`
2788{ (eval echo "$as_me:2788: \"$ac_compiler --version </dev/null >&5\"") >&5
2789 (eval $ac_compiler --version </dev/null >&5) 2>&5
2790 ac_status=$?
2791 echo "$as_me:2791: \$? = $ac_status" >&5
2792 (exit $ac_status); }
2793{ (eval echo "$as_me:2793: \"$ac_compiler -v </dev/null >&5\"") >&5
2794 (eval $ac_compiler -v </dev/null >&5) 2>&5
2795 ac_status=$?
2796 echo "$as_me:2796: \$? = $ac_status" >&5
2797 (exit $ac_status); }
2798{ (eval echo "$as_me:2798: \"$ac_compiler -V </dev/null >&5\"") >&5
2799 (eval $ac_compiler -V </dev/null >&5) 2>&5
2800 ac_status=$?
2801 echo "$as_me:2801: \$? = $ac_status" >&5
2802 (exit $ac_status); }
2803
2804echo "$as_me:2804: checking whether we are using the GNU C++ compiler" >&5
2805echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2806if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 cat >conftest.$ac_ext <<_ACEOF
2810#line 2810 "configure"
2811#include "confdefs.h"
2812
2813int
2814main ()
2815{
2816#ifndef __GNUC__
2817 choke me
2818#endif
2819
2820 ;
2821 return 0;
2822}
2823_ACEOF
2824rm -f conftest.$ac_objext
2825if { (eval echo "$as_me:2825: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>&5
2827 ac_status=$?
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:2831: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:2834: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 ac_compiler_gnu=yes
2837else
2838 echo "$as_me: failed program was:" >&5
2839cat conftest.$ac_ext >&5
2840ac_compiler_gnu=no
2841fi
2842rm -f conftest.$ac_objext conftest.$ac_ext
2843ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2844
2845fi
2846echo "$as_me:2846: result: $ac_cv_cxx_compiler_gnu" >&5
2847echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2848GXX=`test $ac_compiler_gnu = yes && echo yes`
2849ac_test_CXXFLAGS=${CXXFLAGS+set}
2850ac_save_CXXFLAGS=$CXXFLAGS
2851CXXFLAGS="-g"
2852echo "$as_me:2852: checking whether $CXX accepts -g" >&5
2853echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2854if test "${ac_cv_prog_cxx_g+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 cat >conftest.$ac_ext <<_ACEOF
2858#line 2858 "configure"
2859#include "confdefs.h"
2860
2861int
2862main ()
2863{
2864
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (eval echo "$as_me:2870: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>&5
2872 ac_status=$?
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:2876: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 ac_cv_prog_cxx_g=yes
2882else
2883 echo "$as_me: failed program was:" >&5
2884cat conftest.$ac_ext >&5
2885ac_cv_prog_cxx_g=no
2886fi
2887rm -f conftest.$ac_objext conftest.$ac_ext
2888fi
2889echo "$as_me:2889: result: $ac_cv_prog_cxx_g" >&5
2890echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2891if test "$ac_test_CXXFLAGS" = set; then
2892 CXXFLAGS=$ac_save_CXXFLAGS
2893elif test $ac_cv_prog_cxx_g = yes; then
2894 if test "$GXX" = yes; then
2895 CXXFLAGS="-g -O2"
2896 else
2897 CXXFLAGS="-g"
2898 fi
2899else
2900 if test "$GXX" = yes; then
2901 CXXFLAGS="-O2"
2902 else
2903 CXXFLAGS=
2904 fi
2905fi
2906for ac_declaration in \
2907 ''\
2908 '#include <stdlib.h>' \
2909 'extern "C" void std::exit (int) throw (); using std::exit;' \
2910 'extern "C" void std::exit (int); using std::exit;' \
2911 'extern "C" void exit (int) throw ();' \
2912 'extern "C" void exit (int);' \
2913 'void exit (int);'
2914do
2915 cat >conftest.$ac_ext <<_ACEOF
2916#line 2916 "configure"
2917#include "confdefs.h"
2918#include <stdlib.h>
2919$ac_declaration
2920int
2921main ()
2922{
2923exit (42);
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2931 ac_status=$?
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 :
2941else
2942 echo "$as_me: failed program was:" >&5
2943cat conftest.$ac_ext >&5
2944continue
2945fi
2946rm -f conftest.$ac_objext conftest.$ac_ext
2947 cat >conftest.$ac_ext <<_ACEOF
2948#line 2948 "configure"
2949#include "confdefs.h"
2950$ac_declaration
2951int
2952main ()
2953{
2954exit (42);
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959rm -f conftest.$ac_objext
2960if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2962 ac_status=$?
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 break
2972else
2973 echo "$as_me: failed program was:" >&5
2974cat conftest.$ac_ext >&5
2975fi
2976rm -f conftest.$ac_objext conftest.$ac_ext
2977done
2978rm -f conftest*
2979if test -n "$ac_declaration"; then
2980 echo '#ifdef __cplusplus' >>confdefs.h
2981 echo $ac_declaration >>confdefs.h
2982 echo '#endif' >>confdefs.h
2983fi
2984
2985ac_ext=cc
2986ac_cpp='$CXXCPP $CPPFLAGS'
2987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2990
2991ac_ext=cc
2992ac_cpp='$CXXCPP $CPPFLAGS'
2993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2996echo "$as_me:2996: checking how to run the C++ preprocessor" >&5
2997echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2998if test -z "$CXXCPP"; then
2999 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 # Double quotes because CXXCPP needs to be expanded
3003 for CXXCPP in "$CXX -E" "/lib/cpp"
3004 do
3005 ac_preproc_ok=false
3006for ac_cxx_preproc_warn_flag in '' yes
3007do
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.$ac_ext <<_ACEOF
3013#line 3013 "configure"
3014#include "confdefs.h"
3015#include <assert.h>
3016 Syntax error
3017_ACEOF
3018if { (eval echo "$as_me:3018: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 ac_status=$?
3021 egrep -v '^ *\+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:3024: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_cxx_preproc_warn_flag
3028 else
3029 ac_cpp_err=
3030 fi
3031else
3032 ac_cpp_err=yes
3033fi
3034if test -z "$ac_cpp_err"; then
3035 :
3036else
3037 echo "$as_me: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3039 # Broken: fails on valid input.
3040continue
3041fi
3042rm -f conftest.err conftest.$ac_ext
3043
3044 # OK, works on sane cases. Now check whether non-existent headers
3045 # can be detected and how.
3046 cat >conftest.$ac_ext <<_ACEOF
3047#line 3047 "configure"
3048#include "confdefs.h"
3049#include <ac_nonexistent.h>
3050_ACEOF
3051if { (eval echo "$as_me:3051: \"$ac_cpp conftest.$ac_ext\"") >&5
3052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3053 ac_status=$?
3054 egrep -v '^ *\+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:3057: \$? = $ac_status" >&5
3058 (exit $ac_status); } >/dev/null; then
3059 if test -s conftest.err; then
3060 ac_cpp_err=$ac_cxx_preproc_warn_flag
3061 else
3062 ac_cpp_err=
3063 fi
3064else
3065 ac_cpp_err=yes
3066fi
3067if test -z "$ac_cpp_err"; then
3068 # Broken: success on invalid input.
3069continue
3070else
3071 echo "$as_me: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 # Passes both tests.
3074ac_preproc_ok=:
3075break
3076fi
3077rm -f conftest.err conftest.$ac_ext
3078
3079done
3080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3081rm -f conftest.err conftest.$ac_ext
3082if $ac_preproc_ok; then
3083 break
3084fi
3085
3086 done
3087 ac_cv_prog_CXXCPP=$CXXCPP
3088
3089fi
3090 CXXCPP=$ac_cv_prog_CXXCPP
3091else
3092 ac_cv_prog_CXXCPP=$CXXCPP
3093fi
3094echo "$as_me:3094: result: $CXXCPP" >&5
3095echo "${ECHO_T}$CXXCPP" >&6
3096ac_preproc_ok=false
3097for ac_cxx_preproc_warn_flag in '' yes
3098do
3099 # Use a header file that comes with gcc, so configuring glibc
3100 # with a fresh cross-compiler works.
3101 # On the NeXT, cc -E runs the code through the compiler's parser,
3102 # not just through cpp. "Syntax error" is here to catch this case.
3103 cat >conftest.$ac_ext <<_ACEOF
3104#line 3104 "configure"
3105#include "confdefs.h"
3106#include <assert.h>
3107 Syntax error
3108_ACEOF
3109if { (eval echo "$as_me:3109: \"$ac_cpp conftest.$ac_ext\"") >&5
3110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111 ac_status=$?
3112 egrep -v '^ *\+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:3115: \$? = $ac_status" >&5
3116 (exit $ac_status); } >/dev/null; then
3117 if test -s conftest.err; then
3118 ac_cpp_err=$ac_cxx_preproc_warn_flag
3119 else
3120 ac_cpp_err=
3121 fi
3122else
3123 ac_cpp_err=yes
3124fi
3125if test -z "$ac_cpp_err"; then
3126 :
3127else
3128 echo "$as_me: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3130 # Broken: fails on valid input.
3131continue
3132fi
3133rm -f conftest.err conftest.$ac_ext
3134
3135 # OK, works on sane cases. Now check whether non-existent headers
3136 # can be detected and how.
3137 cat >conftest.$ac_ext <<_ACEOF
3138#line 3138 "configure"
3139#include "confdefs.h"
3140#include <ac_nonexistent.h>
3141_ACEOF
3142if { (eval echo "$as_me:3142: \"$ac_cpp conftest.$ac_ext\"") >&5
3143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144 ac_status=$?
3145 egrep -v '^ *\+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:3148: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev/null; then
3150 if test -s conftest.err; then
3151 ac_cpp_err=$ac_cxx_preproc_warn_flag
3152 else
3153 ac_cpp_err=
3154 fi
3155else
3156 ac_cpp_err=yes
3157fi
3158if test -z "$ac_cpp_err"; then
3159 # Broken: success on invalid input.
3160continue
3161else
3162 echo "$as_me: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 # Passes both tests.
3165ac_preproc_ok=:
3166break
3167fi
3168rm -f conftest.err conftest.$ac_ext
3169
3170done
3171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172rm -f conftest.err conftest.$ac_ext
3173if $ac_preproc_ok; then
3174 :
3175else
3176 { { echo "$as_me:3176: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3177echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3178 { (exit 1); exit 1; }; }
3179fi
3180
3181ac_ext=cc
3182ac_cpp='$CXXCPP $CPPFLAGS'
3183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3186
3187# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3188
3189# find the maximum length of command line arguments
3190echo "$as_me:3190: checking the maximum length of command line arguments" >&5
3191echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3192if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194else
3195 i=0
3196 testring="ABCD"
3197
3198 case $host_os in
3199 msdosdjgpp*)
3200 # On DJGPP, this test can blow up pretty badly due to problems in libc
3201 # (any single argument exceeding 2000 bytes causes a buffer overrun
3202 # during glob expansion). Even if it were fixed, the result of this
3203 # check would be larger than it should be.
3204 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3205 ;;
3206
3207 gnu*)
3208 # Under GNU Hurd, this test is not required because there is
3209 # no limit to the length of command line arguments.
3210 # Libtool will interpret -1 as no limit whatsoever
3211 lt_cv_sys_max_cmd_len=-1;
3212 ;;
3213
3214 *)
3215 # If test is not a shell built-in, we'll probably end up computing a
3216 # maximum length that is only half of the actual maximum length, but
3217 # we can't tell.
3218 while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
3219 = "XX$testring" &&
3220 new_result=`expr "X$testring" : ".*" 2>&1` &&
3221 lt_cv_sys_max_cmd_len=$new_result &&
3222 test $i != 17 # 1/2 MB should be enough
3223 do
3224 i=`expr $i + 1`
3225 testring=$testring$testring
3226 done
3227 testring=
3228 # add a significant safety factor because C++ compilers can tack on massive
3229 # amounts of additional arguments before passing them to the linker. 1/4
3230 # should be good.
3231 len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
3233 ;;
3234 esac
3235
3236fi
3237
3238if test -n $lt_cv_sys_max_cmd_len ; then
3239 echo "$as_me:3239: result: $lt_cv_sys_max_cmd_len" >&5
3240echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3241else
3242 echo "$as_me:3242: result: none" >&5
3243echo "${ECHO_T}none" >&6
3244fi
3245
3246# Check for command to grab the raw symbol name followed by C symbol from nm.
3247echo "$as_me:3247: checking command to parse $NM output from $compiler object" >&5
3248echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3249if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251else
3252
3253# These are sane defaults that work on at least a few old systems.
3254# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3255
3256# Character class describing NM global symbol codes.
3257symcode='[BCDEGRST]'
3258
3259# Regexp to match symbols that can be accessed directly from C.
3260sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3261
3262# Transform the above into a raw symbol and a C symbol.
3263symxfrm='\1 \2\3 \3'
3264
3265# Transform an extracted symbol line into a proper C declaration
3266lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
3267
3268# Transform an extracted symbol line into symbol name and symbol address
3269lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3270
3271# Define system-specific variables.
3272case $host_os in
3273aix*)
3274 symcode='[BCDT]'
3275 ;;
3276cygwin* | mingw* | pw32*)
3277 symcode='[ABCDGISTW]'
3278 ;;
3279hpux*) # Its linker distinguishes data from code symbols
3280 if test "$host_cpu" = ia64; then
3281 symcode='[ABCDEGRST]'
3282 fi
3283 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3284 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3285 ;;
3286irix*)
3287 symcode='[BCDEGRST]'
3288 ;;
3289solaris* | sysv5*)
3290 symcode='[BDT]'
3291 ;;
3292sysv4)
3293 symcode='[DFNSTU]'
3294 ;;
3295esac
3296
3297# Handle CRLF in mingw tool chain
3298opt_cr=
3299case $host_os in
3300mingw*)
3301 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3302 ;;
3303esac
3304
3305# If we're using GNU nm, then use its standard symbol codes.
3306if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3307 symcode='[ABCDGISTW]'
3308fi
3309
3310# Try without a prefix undercore, then with it.
3311for ac_symprfx in "" "_"; do
3312
3313 # Write the raw and C identifiers.
3314lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3315
3316 # Check to see that the pipe works correctly.
3317 pipe_works=no
3318
3319 rm -f conftest*
3320 cat > conftest.$ac_ext <<EOF
3321#ifdef __cplusplus
3322extern "C" {
3323#endif
3324char nm_test_var;
3325void nm_test_func(){}
3326#ifdef __cplusplus
3327}
3328#endif
3329int main(){nm_test_var='a';nm_test_func();return(0);}
3330EOF
3331
3332 if { (eval echo "$as_me:3332: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>&5
3334 ac_status=$?
3335 echo "$as_me:3335: \$? = $ac_status" >&5
3336 (exit $ac_status); }; then
3337 # Now try to grab the symbols.
3338 nlist=conftest.nm
3339 if { (eval echo "$as_me:3339: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3340 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3341 ac_status=$?
3342 echo "$as_me:3342: \$? = $ac_status" >&5
3343 (exit $ac_status); } && test -s "$nlist"; then
3344 # Try sorting and uniquifying the output.
3345 if sort "$nlist" | uniq > "$nlist"T; then
3346 mv -f "$nlist"T "$nlist"
3347 else
3348 rm -f "$nlist"T
3349 fi
3350
3351 # Make sure that we snagged all the symbols we need.
3352 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3353 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3354 cat <<EOF > conftest.$ac_ext
3355#ifdef __cplusplus
3356extern "C" {
3357#endif
3358
3359EOF
3360 # Now generate the symbol file.
3361 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3362
3363 cat <<EOF >> conftest.$ac_ext
3364#if defined (__STDC__) && __STDC__
3365# define lt_ptr_t void *
3366#else
3367# define lt_ptr_t char *
3368# define const
3369#endif
3370
3371/* The mapping between symbol names and symbols. */
3372const struct {
3373 const char *name;
3374 lt_ptr_t address;
3375}
3376lt_preloaded_symbols[] =
3377{
3378EOF
3379 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3380 cat <<\EOF >> conftest.$ac_ext
3381 {0, (lt_ptr_t) 0}
3382};
3383
3384#ifdef __cplusplus
3385}
3386#endif
3387EOF
3388 # Now try linking the two files.
3389 mv conftest.$ac_objext conftstm.$ac_objext
3390 lt_save_LIBS="$LIBS"
3391 lt_save_CFLAGS="$CFLAGS"
3392 LIBS="conftstm.$ac_objext"
3393 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3394 if { (eval echo "$as_me:3394: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>&5
3396 ac_status=$?
3397 echo "$as_me:3397: \$? = $ac_status" >&5
3398 (exit $ac_status); } && test -s conftest${ac_exeext}; then
3399 pipe_works=yes
3400 fi
3401 LIBS="$lt_save_LIBS"
3402 CFLAGS="$lt_save_CFLAGS"
3403 else
3404 echo "cannot find nm_test_func in $nlist" >&5
3405 fi
3406 else
3407 echo "cannot find nm_test_var in $nlist" >&5
3408 fi
3409 else
3410 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3411 fi
3412 else
3413 echo "$progname: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3415 fi
3416 rm -f conftest* conftst*
3417
3418 # Do not use the global_symbol_pipe unless it works.
3419 if test "$pipe_works" = yes; then
3420 break
3421 else
3422 lt_cv_sys_global_symbol_pipe=
3423 fi
3424done
3425
3426fi
3427
3428if test -z "$lt_cv_sys_global_symbol_pipe"; then
3429 lt_cv_sys_global_symbol_to_cdecl=
3430fi
3431if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3432 echo "$as_me:3432: result: failed" >&5
3433echo "${ECHO_T}failed" >&6
3434else
3435 echo "$as_me:3435: result: ok" >&5
3436echo "${ECHO_T}ok" >&6
3437fi
3438
3439echo "$as_me:3439: checking for objdir" >&5
3440echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3441if test "${lt_cv_objdir+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 rm -f .libs 2>/dev/null
3445mkdir .libs 2>/dev/null
3446if test -d .libs; then
3447 lt_cv_objdir=.libs
3448else
3449 # MS-DOS does not allow filenames that begin with a dot.
3450 lt_cv_objdir=_libs
3451fi
3452rmdir .libs 2>/dev/null
3453fi
3454echo "$as_me:3454: result: $lt_cv_objdir" >&5
3455echo "${ECHO_T}$lt_cv_objdir" >&6
3456objdir=$lt_cv_objdir
3457
3458case $host_os in
3459aix3*)
3460 # AIX sometimes has problems with the GCC collect2 program. For some
3461 # reason, if we set the COLLECT_NAMES environment variable, the problems
3462 # vanish in a puff of smoke.
3463 if test "X${COLLECT_NAMES+set}" != Xset; then
3464 COLLECT_NAMES=
3465 export COLLECT_NAMES
3466 fi
3467 ;;
3468esac
3469
3470# Sed substitution that helps us do robust quoting. It backslashifies
3471# metacharacters that are still active within double-quoted strings.
3472Xsed='sed -e s/^X//'
3473sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3474
3475# Same as above, but do not quote variable references.
3476double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3477
3478# Sed substitution to delay expansion of an escaped shell variable in a
3479# double_quote_subst'ed string.
3480delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3481
3482# Sed substitution to avoid accidental globbing in evaled expressions
3483no_glob_subst='s/\*/\\\*/g'
3484
3485# Constants:
3486rm="rm -f"
3487
3488# Global variables:
3489default_ofile=libtool
3490can_build_shared=yes
3491
3492# All known linkers require a `.a' archive for static linking (except M$VC,
3493# which needs '.lib').
3494libext=a
3495ltmain="$ac_aux_dir/ltmain.sh"
3496ofile="$default_ofile"
3497with_gnu_ld="$lt_cv_prog_gnu_ld"
3498
3499if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3501set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3502echo "$as_me:3502: checking for $ac_word" >&5
3503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504if test "${ac_cv_prog_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 if test -n "$RANLIB"; then
3508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3509else
3510 ac_save_IFS=$IFS; IFS=$ac_path_separator
3511ac_dummy="$PATH"
3512for ac_dir in $ac_dummy; do
3513 IFS=$ac_save_IFS
3514 test -z "$ac_dir" && ac_dir=.
3515 $as_executable_p "$ac_dir/$ac_word" || continue
3516ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3517echo "$as_me:3517: found $ac_dir/$ac_word" >&5
3518break
3519done
3520
3521fi
3522fi
3523RANLIB=$ac_cv_prog_RANLIB
3524if test -n "$RANLIB"; then
3525 echo "$as_me:3525: result: $RANLIB" >&5
3526echo "${ECHO_T}$RANLIB" >&6
3527else
3528 echo "$as_me:3528: result: no" >&5
3529echo "${ECHO_T}no" >&6
3530fi
3531
3532fi
3533if test -z "$ac_cv_prog_RANLIB"; then
3534 ac_ct_RANLIB=$RANLIB
3535 # Extract the first word of "ranlib", so it can be a program name with args.
3536set dummy ranlib; ac_word=$2
3537echo "$as_me:3537: checking for $ac_word" >&5
3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 if test -n "$ac_ct_RANLIB"; then
3543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3544else
3545 ac_save_IFS=$IFS; IFS=$ac_path_separator
3546ac_dummy="$PATH"
3547for ac_dir in $ac_dummy; do
3548 IFS=$ac_save_IFS
3549 test -z "$ac_dir" && ac_dir=.
3550 $as_executable_p "$ac_dir/$ac_word" || continue
3551ac_cv_prog_ac_ct_RANLIB="ranlib"
3552echo "$as_me:3552: found $ac_dir/$ac_word" >&5
3553break
3554done
3555
3556 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3557fi
3558fi
3559ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3560if test -n "$ac_ct_RANLIB"; then
3561 echo "$as_me:3561: result: $ac_ct_RANLIB" >&5
3562echo "${ECHO_T}$ac_ct_RANLIB" >&6
3563else
3564 echo "$as_me:3564: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566fi
3567
3568 RANLIB=$ac_ct_RANLIB
3569else
3570 RANLIB="$ac_cv_prog_RANLIB"
3571fi
3572
3573if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3575set dummy ${ac_tool_prefix}strip; ac_word=$2
3576echo "$as_me:3576: checking for $ac_word" >&5
3577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578if test "${ac_cv_prog_STRIP+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 if test -n "$STRIP"; then
3582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3583else
3584 ac_save_IFS=$IFS; IFS=$ac_path_separator
3585ac_dummy="$PATH"
3586for ac_dir in $ac_dummy; do
3587 IFS=$ac_save_IFS
3588 test -z "$ac_dir" && ac_dir=.
3589 $as_executable_p "$ac_dir/$ac_word" || continue
3590ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3591echo "$as_me:3591: found $ac_dir/$ac_word" >&5
3592break
3593done
3594
3595fi
3596fi
3597STRIP=$ac_cv_prog_STRIP
3598if test -n "$STRIP"; then
3599 echo "$as_me:3599: result: $STRIP" >&5
3600echo "${ECHO_T}$STRIP" >&6
3601else
3602 echo "$as_me:3602: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604fi
3605
3606fi
3607if test -z "$ac_cv_prog_STRIP"; then
3608 ac_ct_STRIP=$STRIP
3609 # Extract the first word of "strip", so it can be a program name with args.
3610set dummy strip; ac_word=$2
3611echo "$as_me:3611: checking for $ac_word" >&5
3612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 if test -n "$ac_ct_STRIP"; then
3617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3618else
3619 ac_save_IFS=$IFS; IFS=$ac_path_separator
3620ac_dummy="$PATH"
3621for ac_dir in $ac_dummy; do
3622 IFS=$ac_save_IFS
3623 test -z "$ac_dir" && ac_dir=.
3624 $as_executable_p "$ac_dir/$ac_word" || continue
3625ac_cv_prog_ac_ct_STRIP="strip"
3626echo "$as_me:3626: found $ac_dir/$ac_word" >&5
3627break
3628done
3629
3630 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3631fi
3632fi
3633ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3634if test -n "$ac_ct_STRIP"; then
3635 echo "$as_me:3635: result: $ac_ct_STRIP" >&5
3636echo "${ECHO_T}$ac_ct_STRIP" >&6
3637else
3638 echo "$as_me:3638: result: no" >&5
3639echo "${ECHO_T}no" >&6
3640fi
3641
3642 STRIP=$ac_ct_STRIP
3643else
3644 STRIP="$ac_cv_prog_STRIP"
3645fi
3646
3647old_CC="$CC"
3648old_CFLAGS="$CFLAGS"
3649
3650# Set sane defaults for various variables
3651test -z "$AR" && AR=ar
3652test -z "$AR_FLAGS" && AR_FLAGS=cru
3653test -z "$AS" && AS=as
3654test -z "$CC" && CC=cc
3655test -z "$LTCC" && LTCC=$CC
3656test -z "$DLLTOOL" && DLLTOOL=dlltool
3657test -z "$LD" && LD=ld
3658test -z "$LN_S" && LN_S="ln -s"
3659test -z "$MAGIC_CMD" && MAGIC_CMD=file
3660test -z "$NM" && NM=nm
3661test -z "$OBJDUMP" && OBJDUMP=objdump
3662test -z "$RANLIB" && RANLIB=:
3663test -z "$STRIP" && STRIP=:
3664test -z "$ac_objext" && ac_objext=o
3665
3666# Determine commands to create old-style static archives.
3667old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3668old_postinstall_cmds='chmod 644 $oldlib'
3669old_postuninstall_cmds=
3670
3671if test -n "$RANLIB"; then
3672 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3673 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3674fi
3675
3676# Only perform the check for file, if the check method requires it
3677case $deplibs_check_method in
3678file_magic*)
3679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3680 echo "$as_me:3680: checking for ${ac_tool_prefix}file" >&5
3681echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3682if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 case $MAGIC_CMD in
3686\\/* | ?:\\/*)
3687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3688 ;;
3689*)
3690 lt_save_MAGIC_CMD="$MAGIC_CMD"
3691 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
3692 ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
3693 for ac_dir in $ac_dummy; do
3694 IFS="$lt_save_ifs"
3695 test -z "$ac_dir" && ac_dir=.
3696 if test -f $ac_dir/${ac_tool_prefix}file; then
3697 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3698 if test -n "$file_magic_test_file"; then
3699 case $deplibs_check_method in
3700 "file_magic "*)
3701 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3704 egrep "$file_magic_regex" > /dev/null; then
3705 :
3706 else
3707 cat <<EOF 1>&2
3708
3709*** Warning: the command libtool uses to detect shared libraries,
3710*** $file_magic_cmd, produces output that libtool cannot recognize.
3711*** The result is that libtool may fail to recognize shared libraries
3712*** as such. This will affect the creation of libtool libraries that
3713*** depend on shared libraries, but programs linked with such libtool
3714*** libraries will work regardless of this problem. Nevertheless, you
3715*** may want to report the problem to your system manager and/or to
3716*** bug-libtool@gnu.org
3717
3718EOF
3719 fi ;;
3720 esac
3721 fi
3722 break
3723 fi
3724 done
3725 IFS="$lt_save_ifs"
3726 MAGIC_CMD="$lt_save_MAGIC_CMD"
3727 ;;
3728esac
3729fi
3730
3731MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3732if test -n "$MAGIC_CMD"; then
3733 echo "$as_me:3733: result: $MAGIC_CMD" >&5
3734echo "${ECHO_T}$MAGIC_CMD" >&6
3735else
3736 echo "$as_me:3736: result: no" >&5
3737echo "${ECHO_T}no" >&6
3738fi
3739
3740if test -z "$lt_cv_path_MAGIC_CMD"; then
3741 if test -n "$ac_tool_prefix"; then
3742 echo "$as_me:3742: checking for file" >&5
3743echo $ECHO_N "checking for file... $ECHO_C" >&6
3744if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 case $MAGIC_CMD in
3748\\/* | ?:\\/*)
3749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3750 ;;
3751*)
3752 lt_save_MAGIC_CMD="$MAGIC_CMD"
3753 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
3754 ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
3755 for ac_dir in $ac_dummy; do
3756 IFS="$lt_save_ifs"
3757 test -z "$ac_dir" && ac_dir=.
3758 if test -f $ac_dir/file; then
3759 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3760 if test -n "$file_magic_test_file"; then
3761 case $deplibs_check_method in
3762 "file_magic "*)
3763 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3766 egrep "$file_magic_regex" > /dev/null; then
3767 :
3768 else
3769 cat <<EOF 1>&2
3770
3771*** Warning: the command libtool uses to detect shared libraries,
3772*** $file_magic_cmd, produces output that libtool cannot recognize.
3773*** The result is that libtool may fail to recognize shared libraries
3774*** as such. This will affect the creation of libtool libraries that
3775*** depend on shared libraries, but programs linked with such libtool
3776*** libraries will work regardless of this problem. Nevertheless, you
3777*** may want to report the problem to your system manager and/or to
3778*** bug-libtool@gnu.org
3779
3780EOF
3781 fi ;;
3782 esac
3783 fi
3784 break
3785 fi
3786 done
3787 IFS="$lt_save_ifs"
3788 MAGIC_CMD="$lt_save_MAGIC_CMD"
3789 ;;
3790esac
3791fi
3792
3793MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3794if test -n "$MAGIC_CMD"; then
3795 echo "$as_me:3795: result: $MAGIC_CMD" >&5
3796echo "${ECHO_T}$MAGIC_CMD" >&6
3797else
3798 echo "$as_me:3798: result: no" >&5
3799echo "${ECHO_T}no" >&6
3800fi
3801
3802 else
3803 MAGIC_CMD=:
3804 fi
3805fi
3806
3807 fi
3808 ;;
3809esac
3810
3811enable_dlopen=no
3812enable_win32_dll=no
3813
3814# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3815if test "${enable_libtool_lock+set}" = set; then
3816 enableval="$enable_libtool_lock"
3817
3818fi;
3819test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3820
3821# Check whether --with-pic or --without-pic was given.
3822if test "${with_pic+set}" = set; then
3823 withval="$with_pic"
3824 pic_mode="$withval"
3825else
3826 pic_mode=default
3827fi;
3828test -z "$pic_mode" && pic_mode=default
3829
3830# Use C for the default configuration in the libtool script
3831tagname=
3832lt_save_CC="$CC"
3833ac_ext=c
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839# Source file extension for C test sources.
3840ac_ext=c
3841
3842# Object file extension for compiled C test sources.
3843objext=o
3844objext=$objext
3845
3846# Code to be used in simple compile tests
3847lt_simple_compile_test_code="int some_variable = 0;"
3848
3849# Code to be used in simple link tests
3850lt_simple_link_test_code='main(){return(0);}'
3851
3852# If no C compiler was specified, use CC.
3853LTCC=${LTCC-"$CC"}
3854
3855# Allow CC to be a program name with arguments.
3856set dummy $CC
3857compiler="$2"
3858
3859#
3860# Check for any special shared library compilation flags.
3861#
3862lt_prog_cc_shlib=
3863if test "$GCC" = no; then
3864 case $host_os in
3865 sco3.2v5*)
3866 lt_prog_cc_shlib='-belf'
3867 ;;
3868 esac
3869fi
3870if test -n "$lt_prog_cc_shlib"; then
3871 { echo "$as_me:3871: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
3872echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
3873 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
3874 else
3875 { echo "$as_me:3875: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3876echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3877 lt_cv_prog_cc_can_build_shared=no
3878 fi
3879fi
3880
3881#
3882# Check to make sure the static flag actually works.
3883#
3884echo "$as_me:3884: checking if $compiler static flag $lt_prog_compiler_static works" >&5
3885echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
3886if test "${lt_prog_compiler_static_works+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889 lt_prog_compiler_static_works=no
3890 save_LDFLAGS="$LDFLAGS"
3891 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
3892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
3893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3894 # The compiler can only warn and ignore the option if not recognized
3895 # So say no if there are warnings
3896 if test -s conftest.err; then
3897 # Append any errors to the config.log.
3898 cat conftest.err 1>&5
3899 else
3900 lt_prog_compiler_static_works=yes
3901 fi
3902 fi
3903 $rm conftest*
3904 LDFLAGS="$save_LDFLAGS"
3905
3906fi
3907echo "$as_me:3907: result: $lt_prog_compiler_static_works" >&5
3908echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
3909
3910if test x"$lt_prog_compiler_static_works" = xyes; then
3911 :
3912else
3913 lt_prog_compiler_static=
3914fi
3915
3916lt_prog_compiler_no_builtin_flag=
3917
3918if test "$GCC" = yes; then
3919 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
3920
3921 echo "$as_me:3921: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3922echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3923if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 lt_cv_prog_compiler_rtti_exceptions=no
3927 ac_outfile=conftest.$ac_objext
3928 save_CFLAGS="$CFLAGS"
3929 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3931 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
3932 # The compiler can only warn and ignore the option if not recognized
3933 # So say no if there are warnings
3934 if test -s conftest.err; then
3935 # Append any errors to the config.log.
3936 cat conftest.err 1>&5
3937 else
3938 lt_cv_prog_compiler_rtti_exceptions=yes
3939 fi
3940 fi
3941 $rm conftest*
3942 CFLAGS="$save_CFLAGS"
3943
3944fi
3945echo "$as_me:3945: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
3946echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
3947
3948if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
3949 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
3950else
3951 :
3952fi
3953
3954fi
3955
3956lt_prog_compiler_wl=
3957lt_prog_compiler_pic=
3958lt_prog_compiler_static=
3959
3960echo "$as_me:3960: checking for $compiler option to produce PIC" >&5
3961echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3962 if test "$GCC" = yes; then
3963 lt_prog_compiler_wl='-Wl,'
3964 lt_prog_compiler_static='-static'
3965
3966 case $host_os in
3967 aix*)
3968 # All AIX code is PIC.
3969 if test "$host_cpu" = ia64; then
3970 # AIX 5 now supports IA64 processor
3971 lt_prog_compiler_static='-Bstatic'
3972 fi
3973 ;;
3974
3975 amigaos*)
3976 # FIXME: we need at least 68020 code to build shared libraries, but
3977 # adding the `-m68020' flag to GCC prevents building anything better,
3978 # like `-m68040'.
3979 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
3980 ;;
3981
3982 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3983 # PIC is the default for these OSes.
3984 ;;
3985
3986 cygwin* | mingw* | pw32* | os2*)
3987 # This hack is so that the source file can tell whether it is being
3988 # built for inclusion in a dll (and should export symbols for example).
3989 lt_prog_compiler_pic='-DDLL_EXPORT'
3990 ;;
3991
3992 darwin* | rhapsody*)
3993 # PIC is the default on this platform
3994 # Common symbols not allowed in MH_DYLIB files
3995 lt_prog_compiler_pic='-fno-common'
3996 ;;
3997
3998 msdosdjgpp*)
3999 # Just because we use GCC doesn't mean we suddenly get shared libraries
4000 # on systems that don't support them.
4001 lt_prog_compiler_can_build_shared=no
4002 enable_shared=no
4003 ;;
4004
4005 sysv4*MP*)
4006 if test -d /usr/nec; then
4007 lt_prog_compiler_pic=-Kconform_pic
4008 fi
4009 ;;
4010
4011 hpux*)
4012 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
4013 if test "$host_cpu" != ia64; then
4014 lt_prog_compiler_pic='-fPIC'
4015 fi
4016 ;;
4017
4018 *)
4019 lt_prog_compiler_pic='-fPIC'
4020 ;;
4021 esac
4022 else
4023 # PORTME Check for flag to pass linker flags through the system compiler.
4024 case $host_os in
4025 aix*)
4026 lt_prog_compiler_wl='-Wl,'
4027 if test "$host_cpu" = ia64; then
4028 # AIX 5 now supports IA64 processor
4029 lt_prog_compiler_static='-Bstatic'
4030 else
4031 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
4032 fi
4033 ;;
4034
4035 cygwin* | mingw* | pw32* | os2*)
4036 # This hack is so that the source file can tell whether it is being
4037 # built for inclusion in a dll (and should export symbols for example).
4038 lt_prog_compiler_pic='-DDLL_EXPORT'
4039 ;;
4040
4041 hpux9* | hpux10* | hpux11*)
4042 lt_prog_compiler_wl='-Wl,'
4043 if test "$host_cpu" != ia64; then
4044 lt_prog_compiler_pic='+Z'
4045 fi
4046 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4047 lt_prog_compiler_static='${wl}-a ${wl}archive'
4048 ;;
4049
4050 irix5* | irix6*)
4051 lt_prog_compiler_wl='-Wl,'
4052 # PIC (with -KPIC) is the default.
4053 lt_prog_compiler_static='-non_shared'
4054 ;;
4055
4056 newsos6)
4057 lt_prog_compiler_pic='-KPIC'
4058 lt_prog_compiler_static='-Bstatic'
4059 ;;
4060
4061 osf3* | osf4* | osf5*)
4062 lt_prog_compiler_wl='-Wl,'
4063 # All OSF/1 code is PIC.
4064 lt_prog_compiler_static='-non_shared'
4065 ;;
4066
4067 sco3.2v5*)
4068 lt_prog_compiler_pic='-Kpic'
4069 lt_prog_compiler_static='-dn'
4070 ;;
4071
4072 solaris*)
4073 lt_prog_compiler_wl='-Wl,'
4074 lt_prog_compiler_pic='-KPIC'
4075 lt_prog_compiler_static='-Bstatic'
4076 ;;
4077
4078 sunos4*)
4079 lt_prog_compiler_wl='-Qoption ld '
4080 lt_prog_compiler_pic='-PIC'
4081 lt_prog_compiler_static='-Bstatic'
4082 ;;
4083
4084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4085 if test "x$host_vendor" = xsni; then
4086 lt_prog_compiler_wl='-LD'
4087 else
4088 lt_prog_compiler_wl='-Wl,'
4089 fi
4090 lt_prog_compiler_pic='-KPIC'
4091 lt_prog_compiler_static='-Bstatic'
4092 ;;
4093
4094 sysv4*MP*)
4095 if test -d /usr/nec ;then
4096 lt_prog_compiler_pic='-Kconform_pic'
4097 lt_prog_compiler_static='-Bstatic'
4098 fi
4099 ;;
4100
4101 uts4*)
4102 lt_prog_compiler_pic='-pic'
4103 lt_prog_compiler_static='-Bstatic'
4104 ;;
4105
4106 *)
4107 lt_prog_compiler_can_build_shared=no
4108 ;;
4109 esac
4110 fi
4111
4112echo "$as_me:4112: result: $lt_prog_compiler_pic" >&5
4113echo "${ECHO_T}$lt_prog_compiler_pic" >&6
4114
4115#
4116# Check to make sure the PIC flag actually works.
4117#
4118if test -n "$lt_prog_compiler_pic"; then
4119 echo "$as_me:4119: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
4120echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
4121if test "${lt_prog_compiler_pic_works+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 lt_prog_compiler_pic_works=no
4125 ac_outfile=conftest.$ac_objext
4126 save_CFLAGS="$CFLAGS"
4127 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
4128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4129 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
4130 # The compiler can only warn and ignore the option if not recognized
4131 # So say no if there are warnings
4132 if test -s conftest.err; then
4133 # Append any errors to the config.log.
4134 cat conftest.err 1>&5
4135 else
4136 lt_prog_compiler_pic_works=yes
4137 fi
4138 fi
4139 $rm conftest*
4140 CFLAGS="$save_CFLAGS"
4141
4142fi
4143echo "$as_me:4143: result: $lt_prog_compiler_pic_works" >&5
4144echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
4145
4146if test x"$lt_prog_compiler_pic_works" = xyes; then
4147 case $lt_prog_compiler_pic in
4148 "" | " "*) ;;
4149 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
4150 esac
4151else
4152 lt_prog_compiler_pic=
4153 lt_prog_compiler_can_build_shared=no
4154fi
4155
4156fi
4157case "$host_os" in
4158 # For platforms which do not support PIC, -DPIC is meaningless:
4159 *djgpp*)
4160 lt_prog_compiler_pic=
4161 ;;
4162 *)
4163 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
4164 ;;
4165esac
4166
4167echo "$as_me:4167: checking if $compiler supports -c -o file.$ac_objext" >&5
4168echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4169if test "${lt_cv_prog_compiler_c_o+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 lt_cv_prog_compiler_c_o=no
4173 $rm -r conftest 2>/dev/null
4174 mkdir conftest
4175 cd conftest
4176 mkdir out
4177 save_CFLAGS="$CFLAGS"
4178 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4180
4181 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4182 # that will create temporary files in the current directory regardless of
4183 # the output directory. Thus, making CWD read-only will cause this test
4184 # to fail, enabling locking or at least warning the user not to do parallel
4185 # builds.
4186 chmod -w .
4187
4188 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
4189 then
4190 # The compiler can only warn and ignore the option if not recognized
4191 # So say no if there are warnings
4192 if test -s out/conftest.err; then
4193 # Append any errors to the config.log.
4194 cat out/conftest.err 1>&5
4195 else
4196 lt_cv_prog_compiler_c_o=yes
4197 fi
4198 fi
4199 CFLAGS="$save_CFLAGS"
4200 chmod u+w .
4201 $rm conftest* out/*
4202 rmdir out
4203 cd ..
4204 rmdir conftest
4205 $rm conftest*
4206
4207fi
4208echo "$as_me:4208: result: $lt_cv_prog_compiler_c_o" >&5
4209echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
4210
4211hard_links="nottested"
4212if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
4213 # do not overwrite the value of need_locks provided by the user
4214 echo "$as_me:4214: checking if we can lock with hard links" >&5
4215echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4216 hard_links=yes
4217 $rm conftest*
4218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4219 touch conftest.a
4220 ln conftest.a conftest.b 2>&5 || hard_links=no
4221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4222 echo "$as_me:4222: result: $hard_links" >&5
4223echo "${ECHO_T}$hard_links" >&6
4224 if test "$hard_links" = no; then
4225 { echo "$as_me:4225: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4226echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4227 need_locks=warn
4228 fi
4229else
4230 need_locks=no
4231fi
4232
4233echo "$as_me:4233: checking whether the $compiler linker ($LD) supports shared libraries" >&5
4234echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
4235
4236 runpath_var=
4237 allow_undefined_flag=
4238
4239 archive_cmds=
4240 archive_cmds_need_lc=
4241 archive_expsym_cmds=
4242 old_archive_From_new_cmds=
4243 old_archive_from_expsyms_cmds=
4244 export_dynamic_flag_spec=
4245 whole_archive_flag_spec=
4246 thread_safe_flag_spec=
4247 hardcode_libdir_flag_spec=
4248 hardcode_libdir_separator=
4249 hardcode_direct=no
4250 hardcode_minus_L=no
4251 hardcode_shlibpath_var=unsupported
4252 link_all_deplibs=unknown
4253 always_export_symbols=no
4254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4255 # include_expsyms should be a list of space-separated symbols to be *always*
4256 # included in the symbol list
4257 include_expsyms=
4258 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4259 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4260 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4261 # as well as any symbol that contains `d'.
4262 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4263 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4264 # platforms (ab)use it in PIC code, but their linkers get confused if
4265 # the symbol is explicitly referenced. Since portable code cannot
4266 # rely on this symbol name, it's probably fine to never include it in
4267 # preloaded symbol tables.
4268 extract_expsyms_cmds=
4269
4270 case $host_os in
4271 cygwin* | mingw* | pw32*)
4272 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4273 # When not using gcc, we currently assume that we are using
4274 # Microsoft Visual C++.
4275 if test "$GCC" != yes; then
4276 with_gnu_ld=no
4277 fi
4278 ;;
4279 openbsd*)
4280 with_gnu_ld=no
4281 ;;
4282 esac
4283
4284 ld_shlibs=yes
4285 if test "$with_gnu_ld" = yes; then
4286 # If archive_cmds runs LD, not CC, wlarc should be empty
4287 wlarc='${wl}'
4288
4289 # See if GNU ld supports shared libraries.
4290 case $host_os in
4291 aix3* | aix4* | aix5*)
4292 # On AIX/PPC, the GNU linker is very broken
4293 if test "$host_cpu" != ia64; then
4294 ld_shlibs=no
4295 cat <<EOF 1>&2
4296
4297*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4298*** to be unable to reliably create shared libraries on AIX.
4299*** Therefore, libtool is disabling shared libraries support. If you
4300*** really care for shared libraries, you may want to modify your PATH
4301*** so that a non-GNU linker is found, and then restart.
4302
4303EOF
4304 fi
4305 ;;
4306
4307 amigaos*)
4308 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)'
4309 hardcode_libdir_flag_spec='-L$libdir'
4310 hardcode_minus_L=yes
4311
4312 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4313 # that the semantics of dynamic libraries on AmigaOS, at least up
4314 # to version 4, is to share data among multiple programs linked
4315 # with the same dynamic library. Since this doesn't match the
4316 # behavior of shared libraries on other platforms, we can't use
4317 # them.
4318 ld_shlibs=no
4319 ;;
4320
4321 beos*)
4322 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4323 allow_undefined_flag=unsupported
4324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4325 # support --undefined. This deserves some investigation. FIXME
4326 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4327 else
4328 ld_shlibs=no
4329 fi
4330 ;;
4331
4332 cygwin* | mingw* | pw32*)
4333 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
4334 # no search path for DLLs.
4335 hardcode_libdir_flag_spec='-L$libdir'
4336 allow_undefined_flag=unsupported
4337 always_export_symbols=yes
4338
4339 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4340 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4341 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4342 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4343 else $CC -o impgen impgen.c ; fi)~
4344 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4345
4346 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4347
4348 # cygwin and mingw dlls have different entry points and sets of symbols
4349 # to exclude.
4350 # FIXME: what about values for MSVC?
4351 dll_entry=__cygwin_dll_entry@12
4352 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4353 case $host_os in
4354 mingw*)
4355 # mingw values
4356 dll_entry=_DllMainCRTStartup@12
4357 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4358 ;;
4359 esac
4360
4361 # mingw and cygwin differ, and it's simplest to just exclude the union
4362 # of the two symbol sets.
4363 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4364
4365 # recent cygwin and mingw systems supply a stub DllMain which the user
4366 # can override, but on older systems we have to supply one (in ltdll.c)
4367 if test "x$lt_cv_need_dllmain" = "xyes"; then
4368 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4369 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~
4370 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4371 else
4372 ltdll_obj=
4373 ltdll_cmds=
4374 fi
4375
4376 # Extract the symbol export list from an `--export-all' def file,
4377 # then regenerate the def file from the symbol export list, so that
4378 # the compiled dll only exports the symbol export list.
4379 # Be careful not to strip the DATA tag left by newer dlltools.
4380 export_symbols_cmds="$ltdll_cmds"'
4381 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4382 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4383
4384 # If the export-symbols file already is a .def file (1st line
4385 # is EXPORTS), use it as is.
4386 # If DATA tags from a recent dlltool are present, honour them!
4387 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4388 cp $export_symbols $output_objdir/$soname-def;
4389 else
4390 echo EXPORTS > $output_objdir/$soname-def;
4391 _lt_hint=1;
4392 cat $export_symbols | while read symbol; do
4393 set dummy \$symbol;
4394 case \$# in
4395 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4396 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4397 esac;
4398 _lt_hint=`expr 1 + \$_lt_hint`;
4399 done;
4400 fi~
4401 '"$ltdll_cmds"'
4402 $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~
4403 $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~
4404 $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~
4405 $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~
4406 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4407 ;;
4408
4409 darwin* | rhapsody*)
4410 allow_undefined_flag='-undefined suppress'
4411 # FIXME: Relying on posixy $() will cause problems for
4412 # cross-compilation, but unfortunately the echo tests do not
4413 # yet detect zsh echo's removal of \ escapes.
4414 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)'
4415 # We need to add '_' to the symbols in $export_symbols first
4416 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
4417 hardcode_direct=yes
4418 hardcode_shlibpath_var=no
4419 whole_archive_flag_spec='-all_load $convenience'
4420 ;;
4421
4422 netbsd*)
4423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4424 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4425 wlarc=
4426 else
4427 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4428 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4429 fi
4430 ;;
4431
4432 solaris* | sysv5*)
4433 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4434 ld_shlibs=no
4435 cat <<EOF 1>&2
4436
4437*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4438*** create shared libraries on Solaris systems. Therefore, libtool
4439*** is disabling shared libraries support. We urge you to upgrade GNU
4440*** binutils to release 2.9.1 or newer. Another option is to modify
4441*** your PATH or compiler configuration so that the native linker is
4442*** used, and then restart.
4443
4444EOF
4445 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4448 else
4449 ld_shlibs=no
4450 fi
4451 ;;
4452
4453 sunos4*)
4454 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4455 wlarc=
4456 hardcode_direct=yes
4457 hardcode_shlibpath_var=no
4458 ;;
4459
4460 *)
4461 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4464 else
4465 ld_shlibs=no
4466 fi
4467 ;;
4468 esac
4469
4470 if test "$ld_shlibs" = yes; then
4471 runpath_var=LD_RUN_PATH
4472 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4473 export_dynamic_flag_spec='${wl}--export-dynamic'
4474 case $host_os in
4475 cygwin* | mingw* | pw32*)
4476 # dlltool doesn't understand --whole-archive et. al.
4477 whole_archive_flag_spec=
4478 ;;
4479 *)
4480 # ancient GNU ld didn't support --whole-archive et. al.
4481 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4482 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4483 else
4484 whole_archive_flag_spec=
4485 fi
4486 ;;
4487 esac
4488 fi
4489 else
4490 # PORTME fill in a description of your system's linker (not GNU ld)
4491 case $host_os in
4492 aix3*)
4493 allow_undefined_flag=unsupported
4494 always_export_symbols=yes
4495 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'
4496 # Note: this linker hardcodes the directories in LIBPATH if there
4497 # are no directories specified by -L.
4498 hardcode_minus_L=yes
4499 if test "$GCC" = yes && test -z "$link_static_flag"; then
4500 # Neither direct hardcoding nor static linking is supported with a
4501 # broken collect2.
4502 hardcode_direct=unsupported
4503 fi
4504 ;;
4505
4506 aix4* | aix5*)
4507 if test "$host_cpu" = ia64; then
4508 # On IA64, the linker does run time linking by default, so we don't
4509 # have to do anything special.
4510 aix_use_runtimelinking=no
4511 exp_sym_flag='-Bexport'
4512 no_entry_flag=""
4513 else
4514 aix_use_runtimelinking=no
4515
4516 # Test if we are trying to use run time linking or normal
4517 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4518 # need to do runtime linking.
4519 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4520 for ld_flag in $LDFLAGS; do
4521 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4522 aix_use_runtimelinking=yes
4523 break
4524 fi
4525 done
4526 esac
4527
4528 exp_sym_flag='-bexport'
4529 no_entry_flag='-bnoentry'
4530 fi
4531
4532 # When large executables or shared objects are built, AIX ld can
4533 # have problems creating the table of contents. If linking a library
4534 # or program results in "error TOC overflow" add -mminimal-toc to
4535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4537
4538 archive_cmds=''
4539 hardcode_direct=yes
4540 hardcode_libdir_separator=':'
4541 link_all_deplibs=yes
4542
4543 if test "$GCC" = yes; then
4544 case $host_os in aix4.012|aix4.012.*)
4545 # We only want to do this on AIX 4.2 and lower, the check
4546 # below for broken collect2 doesn't work under 4.3+
4547 collect2name=`${CC} -print-prog-name=collect2`
4548 if test -f "$collect2name" && \
4549 strings "$collect2name" | grep resolve_lib_name >/dev/null
4550 then
4551 # We have reworked collect2
4552 hardcode_direct=yes
4553 else
4554 # We have old collect2
4555 hardcode_direct=unsupported
4556 # It fails to find uninstalled libraries when the uninstalled
4557 # path is not listed in the libpath. Setting hardcode_minus_L
4558 # to unsupported forces relinking
4559 hardcode_minus_L=yes
4560 hardcode_libdir_flag_spec='-L$libdir'
4561 hardcode_libdir_separator=
4562 fi
4563 esac
4564 shared_flag='-shared'
4565 else
4566 # not using gcc
4567 if test "$host_cpu" = ia64; then
4568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4569 # chokes on -Wl,-G. The following line is correct:
4570 shared_flag='-G'
4571 else
4572 if test "$aix_use_runtimelinking" = yes; then
4573 shared_flag='${wl}-G'
4574 else
4575 shared_flag='${wl}-bM:SRE'
4576 fi
4577 fi
4578 fi
4579
4580 # It seems that -bexpall does not export symbols beginning with
4581 # underscore (_), so it is better to generate a list of symbols to export.
4582 always_export_symbols=yes
4583 if test "$aix_use_runtimelinking" = yes; then
4584 # Warning - without using the other runtime loading flags (-brtl),
4585 # -berok will link without error, but may produce a broken library.
4586 allow_undefined_flag='-berok'
4587 # Determine the default libpath from the value encoded in an empty executable.
4588 cat >conftest.$ac_ext <<_ACEOF
4589#line 4589 "configure"
4590#include "confdefs.h"
4591
4592int
4593main ()
4594{
4595
4596 ;
4597 return 0;
4598}
4599_ACEOF
4600rm -f conftest.$ac_objext conftest$ac_exeext
4601if { (eval echo "$as_me:4601: \"$ac_link\"") >&5
4602 (eval $ac_link) 2>&5
4603 ac_status=$?
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:4607: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:4610: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612
4613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
4614# Check for a 64-bit object if we didn't find anything.
4615if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
4616else
4617 echo "$as_me: failed program was:" >&5
4618cat conftest.$ac_ext >&5
4619fi
4620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4621if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4622
4623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4624 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4625 else
4626 if test "$host_cpu" = ia64; then
4627 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4628 allow_undefined_flag="-z nodefs"
4629 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4630 else
4631 # Determine the default libpath from the value encoded in an empty executable.
4632 cat >conftest.$ac_ext <<_ACEOF
4633#line 4633 "configure"
4634#include "confdefs.h"
4635
4636int
4637main ()
4638{
4639
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext conftest$ac_exeext
4645if { (eval echo "$as_me:4645: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>&5
4647 ac_status=$?
4648 echo "$as_me:4648: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -s conftest$ac_exeext'
4651 { (eval echo "$as_me:4651: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:4654: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656
4657aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
4658# Check for a 64-bit object if we didn't find anything.
4659if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
4660else
4661 echo "$as_me: failed program was:" >&5
4662cat conftest.$ac_ext >&5
4663fi
4664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4666
4667 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4668 # Warning - without using the other run time loading flags,
4669 # -berok will link without error, but may produce a broken library.
4670 no_undefined_flag=' ${wl}-bernotok'
4671 allow_undefined_flag=' ${wl}-berok'
4672 # -bexpall does not export symbols beginning with underscore (_)
4673 always_export_symbols=yes
4674 # Exported symbols can be pulled into shared objects from archives
4675 whole_archive_flag_spec=' '
4676 archive_cmds_need_lc=yes
4677 # This is similar to how AIX traditionally builds it's shared libraries.
4678 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4679 fi
4680 fi
4681 ;;
4682
4683 amigaos*)
4684 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)'
4685 hardcode_libdir_flag_spec='-L$libdir'
4686 hardcode_minus_L=yes
4687 # see comment about different semantics on the GNU ld section
4688 ld_shlibs=no
4689 ;;
4690
4691 bsdi4*)
4692 export_dynamic_flag_spec=-rdynamic
4693 ;;
4694
4695 cygwin* | mingw* | pw32*)
4696 # When not using gcc, we currently assume that we are using
4697 # Microsoft Visual C++.
4698 # hardcode_libdir_flag_spec is actually meaningless, as there is
4699 # no search path for DLLs.
4700 hardcode_libdir_flag_spec=' '
4701 allow_undefined_flag=unsupported
4702 # Tell ltmain to make .lib files, not .a files.
4703 libext=lib
4704 # FIXME: Setting linknames here is a bad hack.
4705 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4706 # The linker will automatically build a .lib file if we build a DLL.
4707 old_archive_From_new_cmds='true'
4708 # FIXME: Should let the user specify the lib program.
4709 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4710 fix_srcfile_path='`cygpath -w "$srcfile"`'
4711 ;;
4712
4713 dgux*)
4714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4715 hardcode_libdir_flag_spec='-L$libdir'
4716 hardcode_shlibpath_var=no
4717 ;;
4718
4719 freebsd1*)
4720 ld_shlibs=no
4721 ;;
4722
4723 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4724 # support. Future versions do this automatically, but an explicit c++rt0.o
4725 # does not break anything, and helps significantly (at the cost of a little
4726 # extra space).
4727 freebsd2.2*)
4728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4729 hardcode_libdir_flag_spec='-R$libdir'
4730 hardcode_direct=yes
4731 hardcode_shlibpath_var=no
4732 ;;
4733
4734 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4735 freebsd2*)
4736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4737 hardcode_direct=yes
4738 hardcode_minus_L=yes
4739 hardcode_shlibpath_var=no
4740 ;;
4741
4742 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4743 freebsd*)
4744 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4745 hardcode_libdir_flag_spec='-R$libdir'
4746 hardcode_direct=yes
4747 hardcode_shlibpath_var=no
4748 ;;
4749
4750 hpux9* | hpux10* | hpux11*)
4751 if test $GXX = yes; then
4752 case $host_os in
4753 hpux9*)
4754 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4755 ;;
4756 *)
4757 if test "$host_cpu" = ia64; then
4758 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4759 else
4760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4761 fi
4762 ;;
4763 esac
4764 else
4765 case $host_os in
4766 hpux9*)
4767 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'
4768 ;;
4769 *)
4770 if test "$host_cpu" = ia64; then
4771 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
4772 else
4773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4774 fi
4775 ;;
4776 esac
4777 fi
4778 if test "$host_cpu" = ia64; then
4779 hardcode_libdir_flag_spec='-L$libdir'
4780 hardcode_direct=no
4781 hardcode_shlibpath_var=no
4782 else
4783 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4784 hardcode_libdir_separator=:
4785 hardcode_direct=yes
4786 fi
4787 # hardcode_minus_L: Not really in the search PATH,
4788 # but as the default location of the library.
4789 hardcode_minus_L=yes
4790 export_dynamic_flag_spec='${wl}-E'
4791 ;;
4792
4793 irix5* | irix6*)
4794 if test "$GCC" = yes; then
4795 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'
4796 else
4797 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'
4798 fi
4799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4800 hardcode_libdir_separator=:
4801 link_all_deplibs=yes
4802 ;;
4803
4804 netbsd*)
4805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4807 else
4808 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4809 fi
4810 hardcode_libdir_flag_spec='-R$libdir'
4811 hardcode_direct=yes
4812 hardcode_shlibpath_var=no
4813 ;;
4814
4815 newsos6)
4816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4817 hardcode_direct=yes
4818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4819 hardcode_libdir_separator=:
4820 hardcode_shlibpath_var=no
4821 ;;
4822
4823 openbsd*)
4824 hardcode_direct=yes
4825 hardcode_shlibpath_var=no
4826
4827 case "$host_os" in
4828 openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
4829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4830 hardcode_libdir_flag_spec='-R$libdir'
4831 ;;
4832 *)
4833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4835 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
4836 export_dynamic_flag_spec='${wl}-E'
4837 fi
4838 ;;
4839 esac
4840 ;;
4841
4842 os2*)
4843 hardcode_libdir_flag_spec='-L$libdir'
4844 hardcode_minus_L=yes
4845 allow_undefined_flag=unsupported
4846 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'
4847 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4848 ;;
4849
4850 osf3*)
4851 if test "$GCC" = yes; then
4852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4853 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'
4854 else
4855 allow_undefined_flag=' -expect_unresolved \*'
4856 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'
4857 fi
4858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4859 hardcode_libdir_separator=:
4860 ;;
4861
4862 osf4* | osf5*) # as osf3* with the addition of -msym flag
4863 if test "$GCC" = yes; then
4864 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4865 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'
4866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4867 else
4868 allow_undefined_flag=' -expect_unresolved \*'
4869 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'
4870 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4871 $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'
4872
4873 # Both c and cxx compiler support -rpath directly
4874 hardcode_libdir_flag_spec='-rpath $libdir'
4875 fi
4876 hardcode_libdir_separator=:
4877 ;;
4878
4879 sco3.2v5*)
4880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4881 hardcode_shlibpath_var=no
4882 export_dynamic_flag_spec='${wl}-Bexport'
4883 runpath_var=LD_RUN_PATH
4884 hardcode_runpath_var=yes
4885 ;;
4886
4887 solaris*)
4888 no_undefined_flag=' -z defs'
4889 if test "$GXX" = yes; then
4890 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4892 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4893 else
4894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4895 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4897 fi
4898 hardcode_libdir_flag_spec='-R$libdir'
4899 hardcode_shlibpath_var=no
4900 case $host_os in
4901 solaris2.[0-5] | solaris2.[0-5].*) ;;
4902 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4904 esac
4905 link_all_deplibs=yes
4906 ;;
4907
4908 sunos4*)
4909 if test "x$host_vendor" = xsequent; then
4910 # Use $CC to link under sequent, because it throws in some extra .o
4911 # files that make .init and .fini sections work.
4912 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4913 else
4914 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4915 fi
4916 hardcode_libdir_flag_spec='-L$libdir'
4917 hardcode_direct=yes
4918 hardcode_minus_L=yes
4919 hardcode_shlibpath_var=no
4920 ;;
4921
4922 sysv4)
4923 if test "x$host_vendor" = xsni; then
4924 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4925 hardcode_direct=yes # is this really true???
4926 else
4927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4928 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4929 fi
4930 runpath_var='LD_RUN_PATH'
4931 hardcode_shlibpath_var=no
4932 ;;
4933
4934 sysv4.3*)
4935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4936 hardcode_shlibpath_var=no
4937 export_dynamic_flag_spec='-Bexport'
4938 ;;
4939
4940 sysv4*MP*)
4941 if test -d /usr/nec; then
4942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4943 hardcode_shlibpath_var=no
4944 runpath_var=LD_RUN_PATH
4945 hardcode_runpath_var=yes
4946 ld_shlibs=yes
4947 fi
4948 ;;
4949
4950 sysv4.2uw2*)
4951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4952 hardcode_direct=yes
4953 hardcode_minus_L=no
4954 hardcode_shlibpath_var=no
4955 hardcode_runpath_var=yes
4956 runpath_var=LD_RUN_PATH
4957 ;;
4958
4959 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
4960 no_undefined_flag='${wl}-z ${wl}text'
4961 if test "$GCC" = yes; then
4962 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4963 else
4964 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4965 fi
4966 runpath_var='LD_RUN_PATH'
4967 hardcode_shlibpath_var=no
4968 ;;
4969
4970 sysv5*)
4971 no_undefined_flag=' -z text'
4972 # $CC -shared without GNU ld will not create a library from C++
4973 # object files and a static libstdc++, better avoid it by now
4974 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4975 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4976 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4977 hardcode_libdir_flag_spec=
4978 hardcode_shlibpath_var=no
4979 runpath_var='LD_RUN_PATH'
4980 ;;
4981
4982 uts4*)
4983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4984 hardcode_libdir_flag_spec='-L$libdir'
4985 hardcode_shlibpath_var=no
4986 ;;
4987
4988 *)
4989 ld_shlibs=no
4990 ;;
4991 esac
4992 fi
4993
4994echo "$as_me:4994: result: $ld_shlibs" >&5
4995echo "${ECHO_T}$ld_shlibs" >&6
4996test "$ld_shlibs" = no && can_build_shared=no
4997
4998variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4999if test "$GCC" = yes; then
5000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5001fi
5002
5003#
5004# Do we need to explicitly link libc?
5005#
5006archive_cmds_need_lc=yes
5007if test "$enable_shared" = yes && test "$GCC" = yes; then
5008 case $archive_cmds in
5009 *'~'*)
5010 # FIXME: we may have to deal with multi-command sequences.
5011 ;;
5012 '$CC '*)
5013 # Test whether the compiler implicitly links with -lc since on some
5014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5015 # to ld, don't add -lc before -lgcc.
5016 echo "$as_me:5016: checking whether -lc should be explicitly linked in" >&5
5017echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5018 $rm conftest*
5019 echo 'static int dummy;' > conftest.$ac_ext
5020
5021 if { (eval echo "$as_me:5021: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>&5
5023 ac_status=$?
5024 echo "$as_me:5024: \$? = $ac_status" >&5
5025 (exit $ac_status); } 2>conftest.err; then
5026 soname=conftest
5027 lib=conftest
5028 libobjs=conftest.$ac_objext
5029 deplibs=
5030 wl=$lt_prog_compiler_wl
5031 compiler_flags=-v
5032 linker_flags=-v
5033 verstring=
5034 output_objdir=.
5035 libname=conftest
5036 lt_save_allow_undefined_flag=$allow_undefined_flag
5037 allow_undefined_flag=
5038 if { (eval echo "$as_me:5038: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5039 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5040 ac_status=$?
5041 echo "$as_me:5041: \$? = $ac_status" >&5
5042 (exit $ac_status); }
5043 then
5044 archive_cmds_need_lc=no
5045 else
5046 archive_cmds_need_lc=yes
5047 fi
5048 allow_undefined_flag=$lt_save_allow_undefined_flag
5049 else
5050 cat conftest.err 1>&5
5051 fi
5052 $rm conftest*
5053 echo "$as_me:5053: result: $archive_cmds_need_lc" >&5
5054echo "${ECHO_T}$archive_cmds_need_lc" >&6
5055 ;;
5056 esac
5057fi
5058
5059echo "$as_me:5059: checking how to hardcode library paths into programs" >&5
5060echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5061hardcode_action=
5062if test -n "$hardcode_libdir_flag_spec" || \
5063 test -n "$runpath_var "; then
5064
5065 # We can hardcode non-existant directories.
5066 if test "$hardcode_direct" != no &&
5067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5068 # have to relink, otherwise we might link with an installed library
5069 # when we should be linking with a yet-to-be-installed one
5070 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5071 test "$hardcode_minus_L" != no; then
5072 # Linking always hardcodes the temporary library directory.
5073 hardcode_action=relink
5074 else
5075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5076 hardcode_action=immediate
5077 fi
5078else
5079 # We cannot hardcode anything, or else we can only hardcode existing
5080 # directories.
5081 hardcode_action=unsupported
5082fi
5083echo "$as_me:5083: result: $hardcode_action" >&5
5084echo "${ECHO_T}$hardcode_action" >&6
5085
5086if test "$hardcode_action" = relink; then
5087 # Fast installation is not supported
5088 enable_fast_install=no
5089elif test "$shlibpath_overrides_runpath" = yes ||
5090 test "$enable_shared" = no; then
5091 # Fast installation is not necessary
5092 enable_fast_install=needless
5093fi
5094
5095striplib=
5096old_striplib=
5097echo "$as_me:5097: checking whether stripping libraries is possible" >&5
5098echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5099if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5100 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5101 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5102 echo "$as_me:5102: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104else
5105 echo "$as_me:5105: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107fi
5108
5109echo "$as_me:5109: checking dynamic linker characteristics" >&5
5110echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5111library_names_spec=
5112libname_spec='lib$name'
5113soname_spec=
5114postinstall_cmds=
5115postuninstall_cmds=
5116finish_cmds=
5117finish_eval=
5118shlibpath_var=
5119shlibpath_overrides_runpath=unknown
5120version_type=none
5121dynamic_linker="$host_os ld.so"
5122sys_lib_dlsearch_path_spec="/lib /usr/lib"
5123sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5124need_lib_prefix=unknown
5125hardcode_into_libs=no
5126
5127# when you set need_version to no, make sure it does not cause -set_version
5128# flags to be left without arguments
5129need_version=unknown
5130
5131case $host_os in
5132aix3*)
5133 version_type=linux
5134 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5135 shlibpath_var=LIBPATH
5136
5137 # AIX 3 has no versioning support, so we append a major version to the name.
5138 soname_spec='${libname}${release}.so$major'
5139 ;;
5140
5141aix4* | aix5*)
5142 version_type=linux
5143 if test "$host_cpu" = ia64; then
5144 # AIX 5 supports IA64
5145 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5146 shlibpath_var=LD_LIBRARY_PATH
5147 else
5148 # With GCC up to 2.95.x, collect2 would create an import file
5149 # for dependence libraries. The import file would start with
5150 # the line `#! .'. This would cause the generated library to
5151 # depend on `.', always an invalid library. This was fixed in
5152 # development snapshots of GCC prior to 3.0.
5153 case $host_os in
5154 aix4 | aix4.[01] | aix4.[01].*)
5155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5156 echo ' yes '
5157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5158 :
5159 else
5160 can_build_shared=no
5161 fi
5162 ;;
5163 esac
5164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5165 # soname into executable. Probably we can add versioning support to
5166 # collect2, so additional links can be useful in future.
5167 if test "$aix_use_runtimelinking" = yes; then
5168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5169 # instead of lib<name>.a to let people know that these are not
5170 # typical AIX shared libraries.
5171 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5172 else
5173 # We preserve .a as extension for shared libraries through AIX4.2
5174 # and later when we are not doing run time linking.
5175 library_names_spec='${libname}${release}.a $libname.a'
5176 soname_spec='${libname}${release}.so$major'
5177 fi
5178 shlibpath_var=LIBPATH
5179 deplibs_check_method=pass_all
5180 fi
5181 ;;
5182
5183amigaos*)
5184 library_names_spec='$libname.ixlibrary $libname.a'
5185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5186 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'
5187 ;;
5188
5189beos*)
5190 library_names_spec='${libname}.so'
5191 dynamic_linker="$host_os ld.so"
5192 shlibpath_var=LIBRARY_PATH
5193 ;;
5194
5195bsdi4*)
5196 version_type=linux
5197 need_version=no
5198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5199 soname_spec='${libname}${release}.so$major'
5200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5201 shlibpath_var=LD_LIBRARY_PATH
5202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5204 # the default ld.so.conf also contains /usr/contrib/lib and
5205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5206 # libtool to hard-code these into programs
5207 ;;
5208
5209cygwin* | mingw* | pw32*)
5210 version_type=windows
5211 need_version=no
5212 need_lib_prefix=no
5213 case $GCC,$host_os in
5214 yes,cygwin*)
5215 library_names_spec='$libname.dll.a'
5216 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
5217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5218 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5219 dldir=$destdir/`dirname \$dlpath`~
5220 test -d \$dldir || mkdir -p \$dldir~
5221 $install_prog .libs/$dlname \$dldir/$dlname'
5222 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5223 dlpath=$dir/\$dldll~
5224 $rm \$dlpath'
5225 ;;
5226 yes,mingw*)
5227 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
5229 ;;
5230 yes,pw32*)
5231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5232 ;;
5233 *)
5234 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5235 ;;
5236 esac
5237 dynamic_linker='Win32 ld.exe'
5238 # FIXME: first we should search . and the directory the executable is in
5239 shlibpath_var=PATH
5240 ;;
5241
5242darwin* | rhapsody*)
5243 dynamic_linker="$host_os dyld"
5244 version_type=darwin
5245 need_lib_prefix=no
5246 need_version=no
5247 # FIXME: Relying on posixy $() will cause problems for
5248 # cross-compilation, but unfortunately the echo tests do not
5249 # yet detect zsh echo's removal of \ escapes.
5250 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)'
5251 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5252 shlibpath_overrides_runpath=yes
5253 shlibpath_var=DYLD_LIBRARY_PATH
5254 ;;
5255
5256dgux*)
5257 version_type=linux
5258 need_lib_prefix=no
5259 need_version=no
5260 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5261 soname_spec='${libname}${release}.so$major'
5262 shlibpath_var=LD_LIBRARY_PATH
5263 ;;
5264
5265freebsd1*)
5266 dynamic_linker=no
5267 ;;
5268
5269freebsd*)
5270 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5271 version_type=freebsd-$objformat
5272 case $version_type in
5273 freebsd-elf*)
5274 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5275 need_version=no
5276 need_lib_prefix=no
5277 ;;
5278 freebsd-*)
5279 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5280 need_version=yes
5281 ;;
5282 esac
5283 shlibpath_var=LD_LIBRARY_PATH
5284 case $host_os in
5285 freebsd2*)
5286 shlibpath_overrides_runpath=yes
5287 ;;
5288 freebsd3.01* | freebsdelf3.01*)
5289 shlibpath_overrides_runpath=yes
5290 hardcode_into_libs=yes
5291 ;;
5292 *) # from 3.2 on
5293 shlibpath_overrides_runpath=no
5294 hardcode_into_libs=yes
5295 ;;
5296 esac
5297 ;;
5298
5299gnu*)
5300 version_type=linux
5301 need_lib_prefix=no
5302 need_version=no
5303 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5304 soname_spec='${libname}${release}.so$major'
5305 shlibpath_var=LD_LIBRARY_PATH
5306 hardcode_into_libs=yes
5307 ;;
5308
5309hpux9* | hpux10* | hpux11*)
5310 # Give a soname corresponding to the major version so that dld.sl refuses to
5311 # link against other versions.
5312 version_type=sunos
5313 need_lib_prefix=no
5314 need_version=no
5315 if test "$host_cpu" = ia64; then
5316 hardcode_into_libs=yes
5317 dynamic_linker="$host_os dld.so"
5318 shlibpath_var=LD_LIBRARY_PATH
5319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5320 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5321 soname_spec='${libname}${release}.so$major'
5322 if test "X$HPUX_IA64_MODE" = X32; then
5323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5324 else
5325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5326 fi
5327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5328 else
5329 dynamic_linker="$host_os dld.sl"
5330 shlibpath_var=SHLIB_PATH
5331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5332 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5333 soname_spec='${libname}${release}.sl$major'
5334 fi
5335 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5336 postinstall_cmds='chmod 555 $lib'
5337 ;;
5338
5339irix5* | irix6*)
5340 version_type=irix
5341 need_lib_prefix=no
5342 need_version=no
5343 soname_spec='${libname}${release}.so$major'
5344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5345 case $host_os in
5346 irix5*)
5347 libsuff= shlibsuff=
5348 ;;
5349 *)
5350 case $LD in # libtool.m4 will add one of these switches to LD
5351 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5352 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5353 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5354 *) libsuff= shlibsuff= libmagic=never-match;;
5355 esac
5356 ;;
5357 esac
5358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5359 shlibpath_overrides_runpath=no
5360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5362 ;;
5363
5364# No shared lib support for Linux oldld, aout, or coff.
5365linux*oldld* | linux*aout* | linux*coff*)
5366 dynamic_linker=no
5367 ;;
5368
5369# This must be Linux ELF.
5370linux*)
5371 version_type=linux
5372 need_lib_prefix=no
5373 need_version=no
5374 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5375 soname_spec='${libname}${release}.so$major'
5376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5377 shlibpath_var=LD_LIBRARY_PATH
5378 shlibpath_overrides_runpath=no
5379 # This implies no fast_install, which is unacceptable.
5380 # Some rework will be needed to allow for fast_install
5381 # before this can be enabled.
5382 hardcode_into_libs=yes
5383
5384 # We used to test for /lib/ld.so.1 and disable shared libraries on
5385 # powerpc, because MkLinux only supported shared libraries with the
5386 # GNU dynamic linker. Since this was broken with cross compilers,
5387 # most powerpc-linux boxes support dynamic linking these days and
5388 # people can always --disable-shared, the test was removed, and we
5389 # assume the GNU/Linux dynamic linker is in use.
5390 dynamic_linker='GNU/Linux ld.so'
5391 ;;
5392
5393netbsd*)
5394 version_type=sunos
5395 need_lib_prefix=no
5396 need_version=no
5397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5398 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5400 dynamic_linker='NetBSD (a.out) ld.so'
5401 else
5402 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5403 soname_spec='${libname}${release}.so$major'
5404 dynamic_linker='NetBSD ld.elf_so'
5405 fi
5406 shlibpath_var=LD_LIBRARY_PATH
5407 shlibpath_overrides_runpath=yes
5408 hardcode_into_libs=yes
5409 ;;
5410
5411newsos6)
5412 version_type=linux
5413 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5414 shlibpath_var=LD_LIBRARY_PATH
5415 shlibpath_overrides_runpath=yes
5416 ;;
5417
5418nto-qnx)
5419 version_type=linux
5420 need_lib_prefix=no
5421 need_version=no
5422 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5423 soname_spec='${libname}${release}.so$major'
5424 shlibpath_var=LD_LIBRARY_PATH
5425 shlibpath_overrides_runpath=yes
5426 ;;
5427
5428openbsd*)
5429 version_type=sunos
5430 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5432 shlibpath_var=LD_LIBRARY_PATH
5433 file_magic_cmd=/usr/bin/file
5434 file_magic_test_file=`echo /usr/lib/libc.so.*`
5435 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
5436 deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
5437 else
5438 deplibs_check_method='file_magic OpenBSD.* shared library'
5439 fi
5440 ;;
5441
5442os2*)
5443 libname_spec='$name'
5444 need_lib_prefix=no
5445 library_names_spec='$libname.dll $libname.a'
5446 dynamic_linker='OS/2 ld.exe'
5447 shlibpath_var=LIBPATH
5448 ;;
5449
5450osf3* | osf4* | osf5*)
5451 version_type=osf
5452 need_version=no
5453 soname_spec='${libname}${release}.so'
5454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5455 shlibpath_var=LD_LIBRARY_PATH
5456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5458 ;;
5459
5460sco3.2v5*)
5461 version_type=osf
5462 soname_spec='${libname}${release}.so$major'
5463 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5464 shlibpath_var=LD_LIBRARY_PATH
5465 ;;
5466
5467solaris*)
5468 version_type=linux
5469 need_lib_prefix=no
5470 need_version=no
5471 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5472 soname_spec='${libname}${release}.so$major'
5473 shlibpath_var=LD_LIBRARY_PATH
5474 shlibpath_overrides_runpath=yes
5475 hardcode_into_libs=yes
5476 # ldd complains unless libraries are executable
5477 postinstall_cmds='chmod +x $lib'
5478 ;;
5479
5480sunos4*)
5481 version_type=sunos
5482 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5484 shlibpath_var=LD_LIBRARY_PATH
5485 shlibpath_overrides_runpath=yes
5486 if test "$with_gnu_ld" = yes; then
5487 need_lib_prefix=no
5488 fi
5489 need_version=yes
5490 ;;
5491
5492sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5493 version_type=linux
5494 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5495 soname_spec='${libname}${release}.so$major'
5496 shlibpath_var=LD_LIBRARY_PATH
5497 case $host_vendor in
5498 sni)
5499 shlibpath_overrides_runpath=no
5500 ;;
5501 motorola)
5502 need_lib_prefix=no
5503 need_version=no
5504 shlibpath_overrides_runpath=no
5505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5506 ;;
5507 esac
5508 ;;
5509
5510sysv4*MP*)
5511 if test -d /usr/nec ;then
5512 version_type=linux
5513 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5514 soname_spec='$libname.so.$major'
5515 shlibpath_var=LD_LIBRARY_PATH
5516 fi
5517 ;;
5518
5519uts4*)
5520 version_type=linux
5521 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5522 soname_spec='${libname}${release}.so$major'
5523 shlibpath_var=LD_LIBRARY_PATH
5524 ;;
5525
5526*)
5527 dynamic_linker=no
5528 ;;
5529esac
5530echo "$as_me:5530: result: $dynamic_linker" >&5
5531echo "${ECHO_T}$dynamic_linker" >&6
5532test "$dynamic_linker" = no && can_build_shared=no
5533
5534if test "x$enable_dlopen" != xyes; then
5535 enable_dlopen=unknown
5536 enable_dlopen_self=unknown
5537 enable_dlopen_self_static=unknown
5538else
5539 lt_cv_dlopen=no
5540 lt_cv_dlopen_libs=
5541
5542 case $host_os in
5543 beos*)
5544 lt_cv_dlopen="load_add_on"
5545 lt_cv_dlopen_libs=
5546 lt_cv_dlopen_self=yes
5547 ;;
5548
5549 cygwin* | mingw* | pw32*)
5550 lt_cv_dlopen="LoadLibrary"
5551 lt_cv_dlopen_libs=
5552 ;;
5553
5554 *)
5555 echo "$as_me:5555: checking for shl_load" >&5
5556echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5557if test "${ac_cv_func_shl_load+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560 cat >conftest.$ac_ext <<_ACEOF
5561#line 5561 "configure"
5562#include "confdefs.h"
5563/* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char shl_load (); below. */
5565#include <assert.h>
5566/* Override any gcc2 internal prototype to avoid an error. */
5567#ifdef __cplusplus
5568extern "C"
5569#endif
5570/* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5572char shl_load ();
5573char (*f) ();
5574
5575int
5576main ()
5577{
5578/* The GNU C library defines this for functions which it implements
5579 to always fail with ENOSYS. Some functions are actually named
5580 something starting with __ and the normal name is an alias. */
5581#if defined (__stub_shl_load) || defined (__stub___shl_load)
5582choke me
5583#else
5584f = shl_load;
5585#endif
5586
5587 ;
5588 return 0;
5589}
5590_ACEOF
5591rm -f conftest.$ac_objext conftest$ac_exeext
5592if { (eval echo "$as_me:5592: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5594 ac_status=$?
5595 echo "$as_me:5595: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -s conftest$ac_exeext'
5598 { (eval echo "$as_me:5598: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:5601: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_func_shl_load=yes
5604else
5605 echo "$as_me: failed program was:" >&5
5606cat conftest.$ac_ext >&5
5607ac_cv_func_shl_load=no
5608fi
5609rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5610fi
5611echo "$as_me:5611: result: $ac_cv_func_shl_load" >&5
5612echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5613if test $ac_cv_func_shl_load = yes; then
5614 lt_cv_dlopen="shl_load"
5615else
5616 echo "$as_me:5616: checking for shl_load in -ldld" >&5
5617echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5618if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 ac_check_lib_save_LIBS=$LIBS
5622LIBS="-ldld $LIBS"
5623cat >conftest.$ac_ext <<_ACEOF
5624#line 5624 "configure"
5625#include "confdefs.h"
5626
5627/* Override any gcc2 internal prototype to avoid an error. */
5628#ifdef __cplusplus
5629extern "C"
5630#endif
5631/* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5633char shl_load ();
5634int
5635main ()
5636{
5637shl_load ();
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642rm -f conftest.$ac_objext conftest$ac_exeext
5643if { (eval echo "$as_me:5643: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5645 ac_status=$?
5646 echo "$as_me:5646: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest$ac_exeext'
5649 { (eval echo "$as_me:5649: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:5652: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_lib_dld_shl_load=yes
5655else
5656 echo "$as_me: failed program was:" >&5
5657cat conftest.$ac_ext >&5
5658ac_cv_lib_dld_shl_load=no
5659fi
5660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5661LIBS=$ac_check_lib_save_LIBS
5662fi
5663echo "$as_me:5663: result: $ac_cv_lib_dld_shl_load" >&5
5664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5665if test $ac_cv_lib_dld_shl_load = yes; then
5666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5667else
5668 echo "$as_me:5668: checking for dlopen in -ldl" >&5
5669echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5670if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673 ac_check_lib_save_LIBS=$LIBS
5674LIBS="-ldl $LIBS"
5675cat >conftest.$ac_ext <<_ACEOF
5676#line 5676 "configure"
5677#include "confdefs.h"
5678
5679/* Override any gcc2 internal prototype to avoid an error. */
5680#ifdef __cplusplus
5681extern "C"
5682#endif
5683/* We use char because int might match the return type of a gcc2
5684 builtin and then its argument prototype would still apply. */
5685char dlopen ();
5686int
5687main ()
5688{
5689dlopen ();
5690 ;
5691 return 0;
5692}
5693_ACEOF
5694rm -f conftest.$ac_objext conftest$ac_exeext
5695if { (eval echo "$as_me:5695: \"$ac_link\"") >&5
5696 (eval $ac_link) 2>&5
5697 ac_status=$?
5698 echo "$as_me:5698: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -s conftest$ac_exeext'
5701 { (eval echo "$as_me:5701: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:5704: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_lib_dl_dlopen=yes
5707else
5708 echo "$as_me: failed program was:" >&5
5709cat conftest.$ac_ext >&5
5710ac_cv_lib_dl_dlopen=no
5711fi
5712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5713LIBS=$ac_check_lib_save_LIBS
5714fi
5715echo "$as_me:5715: result: $ac_cv_lib_dl_dlopen" >&5
5716echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5717if test $ac_cv_lib_dl_dlopen = yes; then
5718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5719else
5720 echo "$as_me:5720: checking for dlopen" >&5
5721echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5722if test "${ac_cv_func_dlopen+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725 cat >conftest.$ac_ext <<_ACEOF
5726#line 5726 "configure"
5727#include "confdefs.h"
5728/* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char dlopen (); below. */
5730#include <assert.h>
5731/* Override any gcc2 internal prototype to avoid an error. */
5732#ifdef __cplusplus
5733extern "C"
5734#endif
5735/* We use char because int might match the return type of a gcc2
5736 builtin and then its argument prototype would still apply. */
5737char dlopen ();
5738char (*f) ();
5739
5740int
5741main ()
5742{
5743/* The GNU C library defines this for functions which it implements
5744 to always fail with ENOSYS. Some functions are actually named
5745 something starting with __ and the normal name is an alias. */
5746#if defined (__stub_dlopen) || defined (__stub___dlopen)
5747choke me
5748#else
5749f = dlopen;
5750#endif
5751
5752 ;
5753 return 0;
5754}
5755_ACEOF
5756rm -f conftest.$ac_objext conftest$ac_exeext
5757if { (eval echo "$as_me:5757: \"$ac_link\"") >&5
5758 (eval $ac_link) 2>&5
5759 ac_status=$?
5760 echo "$as_me:5760: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -s conftest$ac_exeext'
5763 { (eval echo "$as_me:5763: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:5766: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_func_dlopen=yes
5769else
5770 echo "$as_me: failed program was:" >&5
5771cat conftest.$ac_ext >&5
5772ac_cv_func_dlopen=no
5773fi
5774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5775fi
5776echo "$as_me:5776: result: $ac_cv_func_dlopen" >&5
5777echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5778if test $ac_cv_func_dlopen = yes; then
5779 lt_cv_dlopen="dlopen"
5780else
5781 echo "$as_me:5781: checking for dlopen in -lsvld" >&5
5782echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5783if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786 ac_check_lib_save_LIBS=$LIBS
5787LIBS="-lsvld $LIBS"
5788cat >conftest.$ac_ext <<_ACEOF
5789#line 5789 "configure"
5790#include "confdefs.h"
5791
5792/* Override any gcc2 internal prototype to avoid an error. */
5793#ifdef __cplusplus
5794extern "C"
5795#endif
5796/* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5798char dlopen ();
5799int
5800main ()
5801{
5802dlopen ();
5803 ;
5804 return 0;
5805}
5806_ACEOF
5807rm -f conftest.$ac_objext conftest$ac_exeext
5808if { (eval echo "$as_me:5808: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>&5
5810 ac_status=$?
5811 echo "$as_me:5811: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (eval echo "$as_me:5814: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:5817: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_cv_lib_svld_dlopen=yes
5820else
5821 echo "$as_me: failed program was:" >&5
5822cat conftest.$ac_ext >&5
5823ac_cv_lib_svld_dlopen=no
5824fi
5825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5826LIBS=$ac_check_lib_save_LIBS
5827fi
5828echo "$as_me:5828: result: $ac_cv_lib_svld_dlopen" >&5
5829echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5830if test $ac_cv_lib_svld_dlopen = yes; then
5831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5832fi
5833
5834fi
5835
5836fi
5837
5838fi
5839
5840fi
5841
5842 ;;
5843 esac
5844
5845 if test "x$lt_cv_dlopen" != xno; then
5846 enable_dlopen=yes
5847 else
5848 enable_dlopen=no
5849 fi
5850
5851 case $lt_cv_dlopen in
5852 dlopen)
5853 save_CPPFLAGS="$CPPFLAGS"
5854 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5855
5856 save_LDFLAGS="$LDFLAGS"
5857 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5858
5859 save_LIBS="$LIBS"
5860 LIBS="$lt_cv_dlopen_libs $LIBS"
5861
5862 echo "$as_me:5862: checking whether a program can dlopen itself" >&5
5863echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5864if test "${lt_cv_dlopen_self+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867 if test "$cross_compiling" = yes; then :
5868 lt_cv_dlopen_self=cross
5869else
5870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5871 lt_status=$lt_dlunknown
5872 cat > conftest.$ac_ext <<EOF
5873#line 5873 "configure"
5874#include "confdefs.h"
5875
5876#if HAVE_DLFCN_H
5877#include <dlfcn.h>
5878#endif
5879
5880#include <stdio.h>
5881
5882#ifdef RTLD_GLOBAL
5883# define LT_DLGLOBAL RTLD_GLOBAL
5884#else
5885# ifdef DL_GLOBAL
5886# define LT_DLGLOBAL DL_GLOBAL
5887# else
5888# define LT_DLGLOBAL 0
5889# endif
5890#endif
5891
5892/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5893 find out it does not work in some platform. */
5894#ifndef LT_DLLAZY_OR_NOW
5895# ifdef RTLD_LAZY
5896# define LT_DLLAZY_OR_NOW RTLD_LAZY
5897# else
5898# ifdef DL_LAZY
5899# define LT_DLLAZY_OR_NOW DL_LAZY
5900# else
5901# ifdef RTLD_NOW
5902# define LT_DLLAZY_OR_NOW RTLD_NOW
5903# else
5904# ifdef DL_NOW
5905# define LT_DLLAZY_OR_NOW DL_NOW
5906# else
5907# define LT_DLLAZY_OR_NOW 0
5908# endif
5909# endif
5910# endif
5911# endif
5912#endif
5913
5914#ifdef __cplusplus
5915extern "C" void exit (int);
5916#endif
5917
5918void fnord() { int i=42;}
5919int main ()
5920{
5921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5922 int status = $lt_dlunknown;
5923
5924 if (self)
5925 {
5926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5928 /* dlclose (self); */
5929 }
5930
5931 exit (status);
5932}
5933EOF
5934 if { (eval echo "$as_me:5934: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5936 ac_status=$?
5937 echo "$as_me:5937: \$? = $ac_status" >&5
5938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5939 (./conftest; exit; ) 2>/dev/null
5940 lt_status=$?
5941 case x$lt_status in
5942 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5943 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5944 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5945 esac
5946 else :
5947 # compilation failed
5948 lt_cv_dlopen_self=no
5949 fi
5950fi
5951rm -fr conftest*
5952
5953fi
5954echo "$as_me:5954: result: $lt_cv_dlopen_self" >&5
5955echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5956
5957 if test "x$lt_cv_dlopen_self" = xyes; then
5958 LDFLAGS="$LDFLAGS $link_static_flag"
5959 echo "$as_me:5959: checking whether a statically linked program can dlopen itself" >&5
5960echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5961if test "${lt_cv_dlopen_self_static+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964 if test "$cross_compiling" = yes; then :
5965 lt_cv_dlopen_self_static=cross
5966else
5967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5968 lt_status=$lt_dlunknown
5969 cat > conftest.$ac_ext <<EOF
5970#line 5970 "configure"
5971#include "confdefs.h"
5972
5973#if HAVE_DLFCN_H
5974#include <dlfcn.h>
5975#endif
5976
5977#include <stdio.h>
5978
5979#ifdef RTLD_GLOBAL
5980# define LT_DLGLOBAL RTLD_GLOBAL
5981#else
5982# ifdef DL_GLOBAL
5983# define LT_DLGLOBAL DL_GLOBAL
5984# else
5985# define LT_DLGLOBAL 0
5986# endif
5987#endif
5988
5989/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5990 find out it does not work in some platform. */
5991#ifndef LT_DLLAZY_OR_NOW
5992# ifdef RTLD_LAZY
5993# define LT_DLLAZY_OR_NOW RTLD_LAZY
5994# else
5995# ifdef DL_LAZY
5996# define LT_DLLAZY_OR_NOW DL_LAZY
5997# else
5998# ifdef RTLD_NOW
5999# define LT_DLLAZY_OR_NOW RTLD_NOW
6000# else
6001# ifdef DL_NOW
6002# define LT_DLLAZY_OR_NOW DL_NOW
6003# else
6004# define LT_DLLAZY_OR_NOW 0
6005# endif
6006# endif
6007# endif
6008# endif
6009#endif
6010
6011#ifdef __cplusplus
6012extern "C" void exit (int);
6013#endif
6014
6015void fnord() { int i=42;}
6016int main ()
6017{
6018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6019 int status = $lt_dlunknown;
6020
6021 if (self)
6022 {
6023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6025 /* dlclose (self); */
6026 }
6027
6028 exit (status);
6029}
6030EOF
6031 if { (eval echo "$as_me:6031: \"$ac_link\"") >&5
6032 (eval $ac_link) 2>&5
6033 ac_status=$?
6034 echo "$as_me:6034: \$? = $ac_status" >&5
6035 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6036 (./conftest; exit; ) 2>/dev/null
6037 lt_status=$?
6038 case x$lt_status in
6039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6041 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6042 esac
6043 else :
6044 # compilation failed
6045 lt_cv_dlopen_self_static=no
6046 fi
6047fi
6048rm -fr conftest*
6049
6050fi
6051echo "$as_me:6051: result: $lt_cv_dlopen_self_static" >&5
6052echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6053 fi
6054
6055 CPPFLAGS="$save_CPPFLAGS"
6056 LDFLAGS="$save_LDFLAGS"
6057 LIBS="$save_LIBS"
6058 ;;
6059 esac
6060
6061 case $lt_cv_dlopen_self in
6062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6063 *) enable_dlopen_self=unknown ;;
6064 esac
6065
6066 case $lt_cv_dlopen_self_static in
6067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6068 *) enable_dlopen_self_static=unknown ;;
6069 esac
6070fi
6071
6072# Report which librarie types wil actually be built
6073echo "$as_me:6073: checking if libtool supports shared libraries" >&5
6074echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6075echo "$as_me:6075: result: $can_build_shared" >&5
6076echo "${ECHO_T}$can_build_shared" >&6
6077
6078echo "$as_me:6078: checking whether to build shared libraries" >&5
6079echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6080test "$can_build_shared" = "no" && enable_shared=no
6081
6082# On AIX, shared libraries and static libraries use the same namespace, and
6083# are all built from PIC.
6084case "$host_os" in
6085aix3*)
6086 test "$enable_shared" = yes && enable_static=no
6087 if test -n "$RANLIB"; then
6088 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6089 postinstall_cmds='$RANLIB $lib'
6090 fi
6091 ;;
6092
6093aix4*)
6094 test "$enable_shared" = yes && enable_static=no
6095 ;;
6096esac
6097echo "$as_me:6097: result: $enable_shared" >&5
6098echo "${ECHO_T}$enable_shared" >&6
6099
6100echo "$as_me:6100: checking whether to build static libraries" >&5
6101echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6102# Make sure either enable_shared or enable_static is yes.
6103test "$enable_shared" = yes || enable_static=yes
6104echo "$as_me:6104: result: $enable_static" >&5
6105echo "${ECHO_T}$enable_static" >&6
6106
6107# The else clause should only fire when bootstrapping the
6108# libtool distribution, otherwise you forgot to ship ltmain.sh
6109# with your package, and you will get complaints that there are
6110# no rules to generate ltmain.sh.
6111if test -f "$ltmain"; then
6112 # Now quote all the things that may contain metacharacters while being
6113 # careful not to overquote the AC_SUBSTed values. We take copies of the
6114 # variables and quote the copies for generation of the libtool script.
6115 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
6116 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6117 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6118 deplibs_check_method reload_flag reload_cmds need_locks \
6119 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6120 lt_cv_sys_global_symbol_to_c_name_address \
6121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6122 old_postinstall_cmds old_postuninstall_cmds \
6123 compiler \
6124 CC \
6125 LD \
6126 lt_prog_compiler_wl \
6127 lt_prog_compiler_pic \
6128 lt_prog_compiler_static \
6129 lt_prog_compiler_no_builtin_flag \
6130 export_dynamic_flag_spec \
6131 thread_safe_flag_spec \
6132 whole_archive_flag_spec \
6133 old_archive_cmds \
6134 old_archive_from_new_cmds \
6135 predep_objects \
6136 postdep_objects \
6137 predeps \
6138 postdeps \
6139 compiler_lib_search_path \
6140 archive_cmds \
6141 archive_expsym_cmds \
6142 postinstall_cmds \
6143 postuninstall_cmds \
6144 old_archive_from_expsyms_cmds \
6145 allow_undefined_flag \
6146 no_undefined_flag \
6147 export_symbols_cmds \
6148 hardcode_libdir_flag_spec \
6149 hardcode_libdir_separator \
6150 lt_cv_prog_compiler_c_o \
6151 exclude_expsyms \
6152 include_expsyms; do
6153
6154 case $var in
6155 old_archive_cmds | \
6156 old_archive_from_new_cmds | \
6157 archive_cmds | \
6158 archive_expsym_cmds | \
6159 old_archive_from_expsyms_cmds | \
6160 export_symbols_cmds | \
6161 extract_expsyms_cmds | reload_cmds | finish_cmds | \
6162 postinstall_cmds | postuninstall_cmds | \
6163 old_postinstall_cmds | old_postuninstall_cmds | \
6164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6165 # Double-quote double-evaled strings.
6166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6167 ;;
6168 *)
6169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6170 ;;
6171 esac
6172 done
6173
6174 case $lt_echo in
6175 *'\$0 --fallback-echo"')
6176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
6177 ;;
6178 esac
6179
6180cfgfile="${ofile}T"
6181 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6182 $rm -f "$cfgfile"
6183 { echo "$as_me:6183: creating $ofile" >&5
6184echo "$as_me: creating $ofile" >&6;}
6185
6186 cat <<__EOF__ >> "$cfgfile"
6187#! $SHELL
6188
6189# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6190# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6191# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6192#
6193# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
6194# Free Software Foundation, Inc.
6195#
6196# This file is part of GNU Libtool:
6197# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6198#
6199# This program is free software; you can redistribute it and/or modify
6200# it under the terms of the GNU General Public License as published by
6201# the Free Software Foundation; either version 2 of the License, or
6202# (at your option) any later version.
6203#
6204# This program is distributed in the hope that it will be useful, but
6205# WITHOUT ANY WARRANTY; without even the implied warranty of
6206# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6207# General Public License for more details.
6208#
6209# You should have received a copy of the GNU General Public License
6210# along with this program; if not, write to the Free Software
6211# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6212#
6213# As a special exception to the GNU General Public License, if you
6214# distribute this file as part of a program that contains a
6215# configuration script generated by Autoconf, you may include it under
6216# the same distribution terms that you use for the rest of that program.
6217
6218# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6219Xsed="sed -e s/^X//"
6220
6221# The HP-UX ksh and POSIX shell print the target directory to stdout
6222# if CDPATH is set.
6223if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6224
6225# The names of the tagged configurations supported by this script.
6226available_tags=
6227
6228# ### BEGIN LIBTOOL CONFIG
6229
6230# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6231
6232# Shell to use when invoking shell scripts.
6233SHELL=$lt_SHELL
6234
6235# Whether or not to build shared libraries.
6236build_libtool_libs=$enable_shared
6237
6238# Whether or not to build static libraries.
6239build_old_libs=$enable_static
6240
6241# Whether or not to add -lc for building shared libraries.
6242build_libtool_need_lc=$archive_cmds_need_lc
6243
6244# Whether or not to optimize for fast installation.
6245fast_install=$enable_fast_install
6246
6247# The host system.
6248host_alias=$host_alias
6249host=$host
6250
6251# An echo program that does not interpret backslashes.
6252echo=$lt_echo
6253
6254# The archiver.
6255AR=$lt_AR
6256AR_FLAGS=$lt_AR_FLAGS
6257
6258# A C compiler.
6259LTCC=$LTCC
6260
6261# A language-specific compiler.
6262CC=$lt_compiler
6263
6264# Is the compiler the GNU C compiler?
6265with_gcc=$GCC
6266
6267# The linker used to build libraries.
6268LD=$lt_LD
6269
6270# Whether we need hard or soft links.
6271LN_S=$lt_LN_S
6272
6273# A BSD-compatible nm program.
6274NM=$lt_NM
6275
6276# A symbol stripping program
6277STRIP=$STRIP
6278
6279# Used to examine libraries when file_magic_cmd begins "file"
6280MAGIC_CMD=$MAGIC_CMD
6281
6282# Used on cygwin: DLL creation program.
6283DLLTOOL="$DLLTOOL"
6284
6285# Used on cygwin: object dumper.
6286OBJDUMP="$OBJDUMP"
6287
6288# Used on cygwin: assembler.
6289AS="$AS"
6290
6291# The name of the directory that contains temporary libtool files.
6292objdir=$objdir
6293
6294# How to create reloadable object files.
6295reload_flag=$lt_reload_flag
6296reload_cmds=$lt_reload_cmds
6297
6298# How to pass a linker flag through the compiler.
6299wl=$lt_lt_prog_compiler_wl
6300
6301# Object file suffix (normally "o").
6302objext="$ac_objext"
6303
6304# Old archive suffix (normally "a").
6305libext="$libext"
6306
6307# Executable file suffix (normally "").
6308exeext="$exeext"
6309
6310# Additional compiler flags for building library objects.
6311pic_flag=$lt_lt_prog_compiler_pic
6312pic_mode=$pic_mode
6313
6314# What is the maximum length of a command?
6315max_cmd_len=$lt_cv_sys_max_cmd_len
6316
6317# Does compiler simultaneously support -c and -o options?
6318compiler_c_o=$lt_lt_cv_prog_compiler_c_o
6319
6320# Must we lock files when doing compilation ?
6321need_locks=$lt_need_locks
6322
6323# Do we need the lib prefix for modules?
6324need_lib_prefix=$need_lib_prefix
6325
6326# Do we need a version for libraries?
6327need_version=$need_version
6328
6329# Whether dlopen is supported.
6330dlopen_support=$enable_dlopen
6331
6332# Whether dlopen of programs is supported.
6333dlopen_self=$enable_dlopen_self
6334
6335# Whether dlopen of statically linked programs is supported.
6336dlopen_self_static=$enable_dlopen_self_static
6337
6338# Compiler flag to prevent dynamic linking.
6339link_static_flag=$lt_lt_prog_compiler_static
6340
6341# Compiler flag to turn off builtin functions.
6342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
6343
6344# Compiler flag to allow reflexive dlopens.
6345export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6346
6347# Compiler flag to generate shared objects directly from archives.
6348whole_archive_flag_spec=$lt_whole_archive_flag_spec
6349
6350# Compiler flag to generate thread-safe objects.
6351thread_safe_flag_spec=$lt_thread_safe_flag_spec
6352
6353# Library versioning type.
6354version_type=$version_type
6355
6356# Format of library name prefix.
6357libname_spec=$lt_libname_spec
6358
6359# List of archive names. First name is the real one, the rest are links.
6360# The last name is the one that the linker finds with -lNAME.
6361library_names_spec=$lt_library_names_spec
6362
6363# The coded name of the library, if different from the real name.
6364soname_spec=$lt_soname_spec
6365
6366# Commands used to build and install an old-style archive.
6367RANLIB=$lt_RANLIB
6368old_archive_cmds=$lt_old_archive_cmds
6369old_postinstall_cmds=$lt_old_postinstall_cmds
6370old_postuninstall_cmds=$lt_old_postuninstall_cmds
6371
6372# Create an old-style archive from a shared archive.
6373old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6374
6375# Create a temporary old-style archive to link instead of a shared archive.
6376old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6377
6378# Commands used to build and install a shared archive.
6379archive_cmds=$lt_archive_cmds
6380archive_expsym_cmds=$lt_archive_expsym_cmds
6381postinstall_cmds=$lt_postinstall_cmds
6382postuninstall_cmds=$lt_postuninstall_cmds
6383
6384# Commands to strip libraries.
6385old_striplib=$lt_old_striplib
6386striplib=$lt_striplib
6387
6388# Dependencies to place before the objects being linked to create a
6389# shared library.
6390predep_objects=$lt_predep_objects
6391
6392# Dependencies to place after the objects being linked to create a
6393# shared library.
6394postdep_objects=$lt_postdep_objects
6395
6396# Dependencies to place before the objects being linked to create a
6397# shared library.
6398predeps=$lt_predeps
6399
6400# Dependencies to place after the objects being linked to create a
6401# shared library.
6402postdeps=$lt_postdeps
6403
6404# The library search path used internally by the compiler when linking
6405# a shared library.
6406compiler_lib_search_path=$lt_compiler_lib_search_path
6407
6408# Method to check whether dependent libraries are shared objects.
6409deplibs_check_method=$lt_deplibs_check_method
6410
6411# Command to use when deplibs_check_method == file_magic.
6412file_magic_cmd=$lt_file_magic_cmd
6413
6414# Flag that allows shared libraries with undefined symbols to be built.
6415allow_undefined_flag=$lt_allow_undefined_flag
6416
6417# Flag that forces no undefined symbols.
6418no_undefined_flag=$lt_no_undefined_flag
6419
6420# Commands used to finish a libtool library installation in a directory.
6421finish_cmds=$lt_finish_cmds
6422
6423# Same as above, but a single script fragment to be evaled but not shown.
6424finish_eval=$lt_finish_eval
6425
6426# Take the output of nm and produce a listing of raw symbols and C names.
6427global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6428
6429# Transform the output of nm in a proper C declaration
6430global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6431
6432# Transform the output of nm in a C name address pair
6433global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6434
6435# This is the shared library runtime path variable.
6436runpath_var=$runpath_var
6437
6438# This is the shared library path variable.
6439shlibpath_var=$shlibpath_var
6440
6441# Is shlibpath searched before the hard-coded library search path?
6442shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6443
6444# How to hardcode a shared library path into an executable.
6445hardcode_action=$hardcode_action
6446
6447# Whether we should hardcode library paths into libraries.
6448hardcode_into_libs=$hardcode_into_libs
6449
6450# Flag to hardcode \$libdir into a binary during linking.
6451# This must work even if \$libdir does not exist.
6452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6453
6454# Whether we need a single -rpath flag with a separated argument.
6455hardcode_libdir_separator=$lt_hardcode_libdir_separator
6456
6457# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6458# resulting binary.
6459hardcode_direct=$hardcode_direct
6460
6461# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6462# resulting binary.
6463hardcode_minus_L=$hardcode_minus_L
6464
6465# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6466# the resulting binary.
6467hardcode_shlibpath_var=$hardcode_shlibpath_var
6468
6469# Variables whose values should be saved in libtool wrapper scripts and
6470# restored at relink time.
6471variables_saved_for_relink="$variables_saved_for_relink"
6472
6473# Whether libtool must link a program against all its dependency libraries.
6474link_all_deplibs=$link_all_deplibs
6475
6476# Compile-time system search path for libraries
6477sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6478
6479# Run-time system search path for libraries
6480sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6481
6482# Fix the shell variable \$srcfile for the compiler.
6483fix_srcfile_path="$fix_srcfile_path"
6484
6485# Set to yes if exported symbols are required.
6486always_export_symbols=$always_export_symbols
6487
6488# The commands to list exported symbols.
6489export_symbols_cmds=$lt_export_symbols_cmds
6490
6491# The commands to extract the exported symbol list from a shared archive.
6492extract_expsyms_cmds=$lt_extract_expsyms_cmds
6493
6494# Symbols that should not be listed in the preloaded symbols.
6495exclude_expsyms=$lt_exclude_expsyms
6496
6497# Symbols that must always be exported.
6498include_expsyms=$lt_include_expsyms
6499
6500# ### END LIBTOOL CONFIG
6501
6502__EOF__
6503
6504 case $host_os in
6505 aix3*)
6506 cat <<\EOF >> "$cfgfile"
6507
6508# AIX sometimes has problems with the GCC collect2 program. For some
6509# reason, if we set the COLLECT_NAMES environment variable, the problems
6510# vanish in a puff of smoke.
6511if test "X${COLLECT_NAMES+set}" != Xset; then
6512 COLLECT_NAMES=
6513 export COLLECT_NAMES
6514fi
6515EOF
6516 ;;
6517
6518 cygwin* | mingw* | pw32* | os2*)
6519 cat <<'EOF' >> "$cfgfile"
6520 # This is a source program that is used to create dlls on Windows
6521 # Don't remove nor modify the starting and closing comments
6522 # /* ltdll.c starts here */
6523# #define WIN32_LEAN_AND_MEAN
6524# #include <windows.h>
6525# #undef WIN32_LEAN_AND_MEAN
6526# #include <stdio.h>
6527#
6528# #ifndef __CYGWIN__
6529# # ifdef __CYGWIN32__
6530# # define __CYGWIN__ __CYGWIN32__
6531# # endif
6532# #endif
6533#
6534# #ifdef __cplusplus
6535# extern "C" {
6536# #endif
6537# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6538# #ifdef __cplusplus
6539# }
6540# #endif
6541#
6542# #ifdef __CYGWIN__
6543# #include <cygwin/cygwin_dll.h>
6544# DECLARE_CYGWIN_DLL( DllMain );
6545# #endif
6546# HINSTANCE __hDllInstance_base;
6547#
6548# BOOL APIENTRY
6549# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6550# {
6551# __hDllInstance_base = hInst;
6552# return TRUE;
6553# }
6554# /* ltdll.c ends here */
6555
6556 # This is a source program that is used to create import libraries
6557 # on Windows for dlls which lack them. Don't remove nor modify the
6558 # starting and closing comments
6559 # /* impgen.c starts here */
6560# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
6561#
6562# This file is part of GNU libtool.
6563#
6564# This program is free software; you can redistribute it and/or modify
6565# it under the terms of the GNU General Public License as published by
6566# the Free Software Foundation; either version 2 of the License, or
6567# (at your option) any later version.
6568#
6569# This program is distributed in the hope that it will be useful,
6570# but WITHOUT ANY WARRANTY; without even the implied warranty of
6571# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6572# GNU General Public License for more details.
6573#
6574# You should have received a copy of the GNU General Public License
6575# along with this program; if not, write to the Free Software
6576# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6577# */
6578#
6579# #include <stdio.h> /* for printf() */
6580# #include <unistd.h> /* for open(), lseek(), read() */
6581# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6582# #include <string.h> /* for strdup() */
6583#
6584# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6585# #ifndef O_BINARY
6586# #define O_BINARY 0
6587# #endif
6588#
6589# static unsigned int
6590# pe_get16 (fd, offset)
6591# int fd;
6592# int offset;
6593# {
6594# unsigned char b[2];
6595# lseek (fd, offset, SEEK_SET);
6596# read (fd, b, 2);
6597# return b[0] + (b[1]<<8);
6598# }
6599#
6600# static unsigned int
6601# pe_get32 (fd, offset)
6602# int fd;
6603# int offset;
6604# {
6605# unsigned char b[4];
6606# lseek (fd, offset, SEEK_SET);
6607# read (fd, b, 4);
6608# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6609# }
6610#
6611# static unsigned int
6612# pe_as32 (ptr)
6613# void *ptr;
6614# {
6615# unsigned char *b = ptr;
6616# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6617# }
6618#
6619# int
6620# main (argc, argv)
6621# int argc;
6622# char *argv[];
6623# {
6624# int dll;
6625# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6626# unsigned long export_rva, export_size, nsections, secptr, expptr;
6627# unsigned long name_rvas, nexp;
6628# unsigned char *expdata, *erva;
6629# char *filename, *dll_name;
6630#
6631# filename = argv[1];
6632#
6633# dll = open(filename, O_RDONLY|O_BINARY);
6634# if (dll < 1)
6635# return 1;
6636#
6637# dll_name = filename;
6638#
6639# for (i=0; filename[i]; i++)
6640# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6641# dll_name = filename + i +1;
6642#
6643# pe_header_offset = pe_get32 (dll, 0x3c);
6644# opthdr_ofs = pe_header_offset + 4 + 20;
6645# num_entries = pe_get32 (dll, opthdr_ofs + 92);
6646#
6647# if (num_entries < 1) /* no exports */
6648# return 1;
6649#
6650# export_rva = pe_get32 (dll, opthdr_ofs + 96);
6651# export_size = pe_get32 (dll, opthdr_ofs + 100);
6652# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6653# secptr = (pe_header_offset + 4 + 20 +
6654# pe_get16 (dll, pe_header_offset + 4 + 16));
6655#
6656# expptr = 0;
6657# for (i = 0; i < nsections; i++)
6658# {
6659# char sname[8];
6660# unsigned long secptr1 = secptr + 40 * i;
6661# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6662# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6663# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6664# lseek(dll, secptr1, SEEK_SET);
6665# read(dll, sname, 8);
6666# if (vaddr <= export_rva && vaddr+vsize > export_rva)
6667# {
6668# expptr = fptr + (export_rva - vaddr);
6669# if (export_rva + export_size > vaddr + vsize)
6670# export_size = vsize - (export_rva - vaddr);
6671# break;
6672# }
6673# }
6674#
6675# expdata = (unsigned char*)malloc(export_size);
6676# lseek (dll, expptr, SEEK_SET);
6677# read (dll, expdata, export_size);
6678# erva = expdata - export_rva;
6679#
6680# nexp = pe_as32 (expdata+24);
6681# name_rvas = pe_as32 (expdata+32);
6682#
6683# printf ("EXPORTS\n");
6684# for (i = 0; i<nexp; i++)
6685# {
6686# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6687# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6688# }
6689#
6690# return 0;
6691# }
6692# /* impgen.c ends here */
6693
6694EOF
6695 ;;
6696 esac
6697
6698 # We use sed instead of cat because bash on DJGPP gets confused if
6699 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6700 # text mode, it properly converts lines to CR/LF. This bash problem
6701 # is reportedly fixed, but why not run on old versions too?
6702 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6703
6704 mv -f "$cfgfile" "$ofile" || \
6705 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6706 chmod +x "$ofile"
6707
6708else
6709 # If there is no Makefile yet, we rely on a make rule to execute
6710 # `config.status --recheck' to rerun these tests and create the
6711 # libtool script then.
6712 test -f Makefile && make "$ltmain"
6713fi
6714
6715ac_ext=c
6716ac_cpp='$CPP $CPPFLAGS'
6717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719ac_compiler_gnu=$ac_cv_c_compiler_gnu
6720
6721CC="$lt_save_CC"
6722
6723# Check whether --with-tags or --without-tags was given.
6724if test "${with_tags+set}" = set; then
6725 withval="$with_tags"
6726 tagnames="$withval"
6727else
6728 tagnames="CXX,GCJ"
6729fi;
6730
6731if test -f "$ltmain" && test -n "$tagnames"; then
6732 if test ! -f "${ofile}"; then
6733 { echo "$as_me:6733: WARNING: output file \`$ofile' does not exist" >&5
6734echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
6735 fi
6736
6737 if test -z "$LTCC"; then
6738 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
6739 if test -z "$LTCC"; then
6740 { echo "$as_me:6740: WARNING: output file \`$ofile' does not look like a libtool script" >&5
6741echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
6742 else
6743 { echo "$as_me:6743: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
6744echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
6745 fi
6746 fi
6747
6748 # Extract list of available tagged configurations in $ofile.
6749 # Note that this assumes the entire list is on one line.
6750 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
6751
6752 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
6753 for tagname in $tagnames; do
6754 IFS="$lt_save_ifs"
6755 # Check whether tagname contains only valid characters
6756 case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
6757 "") ;;
6758 *) { { echo "$as_me:6758: error: invalid tag name: $tagname" >&5
6759echo "$as_me: error: invalid tag name: $tagname" >&2;}
6760 { (exit 1); exit 1; }; }
6761 ;;
6762 esac
6763
6764 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
6765 then
6766 { { echo "$as_me:6766: error: tag name $tagname already exists" >&5
6767echo "$as_me: error: tag name $tagname already exists" >&2;}
6768 { (exit 1); exit 1; }; }
6769 fi
6770
6771 # Update the list of available tags.
6772 if test -n "$tagname"; then
6773 echo appending configuration tag \"$tagname\" to $ofile
6774
6775 case $tagname in
6776 CXX)
6777 ac_ext=cc
6778ac_cpp='$CXXCPP $CPPFLAGS'
6779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6782
6783archive_cmds_need_lc_CXX=no
6784allow_undefined_flag_CXX=
6785always_export_symbols_CXX=no
6786archive_expsym_cmds_CXX=
6787export_dynamic_flag_spec_CXX=
6788hardcode_direct_CXX=no
6789hardcode_libdir_flag_spec_CXX=
6790hardcode_libdir_separator_CXX=
6791hardcode_minus_L_CXX=no
6792link_all_deplibs_CXX=unknown
6793old_archive_cmds_CXX=$old_archive_cmds
6794no_undefined_flag_CXX=
6795whole_archive_flag_spec_CXX=
6796
6797# Dependencies to place before and after the object being linked:
6798predep_objects_CXX=
6799postdep_objects_CXX=
6800predeps_CXX=
6801postdeps_CXX=
6802compiler_lib_search_path_CXX=
6803
6804# Source file extension for C test sources.
6805ac_ext=cc
6806
6807# Object file extension for compiled C test sources.
6808objext=o
6809objext_CXX=$objext
6810
6811# Code to be used in simple compile tests
6812lt_simple_compile_test_code="int some_variable = 0;"
6813
6814# Code to be used in simple link tests
6815lt_simple_link_test_code='int main(int char *) { return(0); }'
6816
6817# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6818
6819# If no C compiler was specified, use CC.
6820LTCC=${LTCC-"$CC"}
6821
6822# Allow CC to be a program name with arguments.
6823set dummy $CC
6824compiler="$2"
6825
6826# Allow CC to be a program name with arguments.
6827lt_save_CC="$CC"
6828CC=${CXX-"c++"}
6829set dummy $CC
6830compiler="$2"
6831compiler_CXX=$CC
6832cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6833
6834# We don't want -fno-exception wen compiling C++ code, so set the
6835# no_builtin_flag separately
6836if test "$GXX" = yes; then
6837 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
6838else
6839 lt_prog_compiler_no_builtin_flag_CXX=
6840fi
6841
6842if test "$GXX" = yes; then
6843 # Set up default GNU C++ configuration
6844
6845 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6846 # archiving commands below assume that GNU ld is being used.
6847 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
6848 egrep 'GNU ld' > /dev/null; then
6849 with_gnu_ld=yes
6850
6851 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6853
6854 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
6855 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
6856
6857 # If archive_cmds runs LD, not CC, wlarc should be empty
6858 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6859 # investigate it a little bit more. (MM)
6860 wlarc='${wl}'
6861
6862 # ancient GNU ld didn't support --whole-archive et. al.
6863 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
6864 egrep 'no-whole-archive' > /dev/null; then
6865 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6866 else
6867 whole_archive_flag_spec_CXX=
6868 fi
6869 else
6870 with_gnu_ld=no
6871 wlarc=
6872
6873 # A generic and very simple default shared library creation
6874 # command for GNU C++ for the case where it uses the native
6875 # linker, instead of GNU ld. If possible, this setting should
6876 # overridden to take advantage of the native linker features on
6877 # the platform it is being used on.
6878 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6879 fi
6880
6881 # Commands to make compiler produce verbose output that lists
6882 # what "hidden" libraries, object files and flags are used when
6883 # linking a shared library.
6884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
6885
6886else
6887 GXX=no
6888 with_gnu_ld=no
6889 wlarc=
6890fi
6891
6892# PORTME: fill in a description of your system's C++ link characteristics
6893echo "$as_me:6893: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6895ld_shlibs_CXX=yes
6896case $host_os in
6897 aix3*)
6898 # FIXME: insert proper C++ library support
6899 ld_shlibs_CXX=no
6900 ;;
6901 aix4* | aix5*)
6902 if test "$host_cpu" = ia64; then
6903 # On IA64, the linker does run time linking by default, so we don't
6904 # have to do anything special.
6905 aix_use_runtimelinking=no
6906 exp_sym_flag='-Bexport'
6907 no_entry_flag=""
6908 else
6909 aix_use_runtimelinking=no
6910
6911 # Test if we are trying to use run time linking or normal
6912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6913 # need to do runtime linking.
6914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6915 for ld_flag in $LDFLAGS; do
6916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6917 aix_use_runtimelinking=yes
6918 break
6919 fi
6920 done
6921 esac
6922
6923 exp_sym_flag='-bexport'
6924 no_entry_flag='-bnoentry'
6925 fi
6926
6927 # When large executables or shared objects are built, AIX ld can
6928 # have problems creating the table of contents. If linking a library
6929 # or program results in "error TOC overflow" add -mminimal-toc to
6930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6932
6933 archive_cmds_CXX=''
6934 hardcode_direct_CXX=yes
6935 hardcode_libdir_separator_CXX=':'
6936 link_all_deplibs_CXX=yes
6937
6938 if test "$GXX" = yes; then
6939 case $host_os in aix4.012|aix4.012.*)
6940 # We only want to do this on AIX 4.2 and lower, the check
6941 # below for broken collect2 doesn't work under 4.3+
6942 collect2name=`${CC} -print-prog-name=collect2`
6943 if test -f "$collect2name" && \
6944 strings "$collect2name" | grep resolve_lib_name >/dev/null
6945 then
6946 # We have reworked collect2
6947 hardcode_direct_CXX=yes
6948 else
6949 # We have old collect2
6950 hardcode_direct_CXX=unsupported
6951 # It fails to find uninstalled libraries when the uninstalled
6952 # path is not listed in the libpath. Setting hardcode_minus_L
6953 # to unsupported forces relinking
6954 hardcode_minus_L_CXX=yes
6955 hardcode_libdir_flag_spec_CXX='-L$libdir'
6956 hardcode_libdir_separator_CXX=
6957 fi
6958 esac
6959 shared_flag='-shared'
6960 else
6961 # not using gcc
6962 if test "$host_cpu" = ia64; then
6963 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6964 # chokes on -Wl,-G. The following line is correct:
6965 shared_flag='-G'
6966 else
6967 if test "$aix_use_runtimelinking" = yes; then
6968 shared_flag='${wl}-G'
6969 else
6970 shared_flag='${wl}-bM:SRE'
6971 fi
6972 fi
6973 fi
6974
6975 # It seems that -bexpall does not export symbols beginning with
6976 # underscore (_), so it is better to generate a list of symbols to export.
6977 always_export_symbols_CXX=yes
6978 if test "$aix_use_runtimelinking" = yes; then
6979 # Warning - without using the other runtime loading flags (-brtl),
6980 # -berok will link without error, but may produce a broken library.
6981 allow_undefined_flag_CXX='-berok'
6982 # Determine the default libpath from the value encoded in an empty executable.
6983 cat >conftest.$ac_ext <<_ACEOF
6984#line 6984 "configure"
6985#include "confdefs.h"
6986
6987int
6988main ()
6989{
6990
6991 ;
6992 return 0;
6993}
6994_ACEOF
6995rm -f conftest.$ac_objext conftest$ac_exeext
6996if { (eval echo "$as_me:6996: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>&5
6998 ac_status=$?
6999 echo "$as_me:6999: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try='test -s conftest$ac_exeext'
7002 { (eval echo "$as_me:7002: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:7005: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007
7008aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
7009# Check for a 64-bit object if we didn't find anything.
7010if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
7011else
7012 echo "$as_me: failed program was:" >&5
7013cat conftest.$ac_ext >&5
7014fi
7015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7017
7018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
7019
7020 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7021 else
7022 if test "$host_cpu" = ia64; then
7023 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
7024 allow_undefined_flag_CXX="-z nodefs"
7025 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7026 else
7027 # Determine the default libpath from the value encoded in an empty executable.
7028 cat >conftest.$ac_ext <<_ACEOF
7029#line 7029 "configure"
7030#include "confdefs.h"
7031
7032int
7033main ()
7034{
7035
7036 ;
7037 return 0;
7038}
7039_ACEOF
7040rm -f conftest.$ac_objext conftest$ac_exeext
7041if { (eval echo "$as_me:7041: \"$ac_link\"") >&5
7042 (eval $ac_link) 2>&5
7043 ac_status=$?
7044 echo "$as_me:7044: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -s conftest$ac_exeext'
7047 { (eval echo "$as_me:7047: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:7050: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052
7053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
7054# Check for a 64-bit object if we didn't find anything.
7055if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
7056else
7057 echo "$as_me: failed program was:" >&5
7058cat conftest.$ac_ext >&5
7059fi
7060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7062
7063 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
7064 # Warning - without using the other run time loading flags,
7065 # -berok will link without error, but may produce a broken library.
7066 no_undefined_flag_CXX=' ${wl}-bernotok'
7067 allow_undefined_flag_CXX=' ${wl}-berok'
7068 # -bexpall does not export symbols beginning with underscore (_)
7069 always_export_symbols_CXX=yes
7070 # Exported symbols can be pulled into shared objects from archives
7071 whole_archive_flag_spec_CXX=' '
7072 archive_cmds_need_lc_CXX=yes
7073 # This is similar to how AIX traditionally builds it's shared libraries.
7074 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7075 fi
7076 fi
7077 ;;
7078 chorus*)
7079 case $cc_basename in
7080 *)
7081 # FIXME: insert proper C++ library support
7082 ld_shlibs_CXX=no
7083 ;;
7084 esac
7085 ;;
7086 dgux*)
7087 case $cc_basename in
7088 ec++)
7089 # FIXME: insert proper C++ library support
7090 ld_shlibs_CXX=no
7091 ;;
7092 ghcx)
7093 # Green Hills C++ Compiler
7094 # FIXME: insert proper C++ library support
7095 ld_shlibs_CXX=no
7096 ;;
7097 *)
7098 # FIXME: insert proper C++ library support
7099 ld_shlibs_CXX=no
7100 ;;
7101 esac
7102 ;;
7103 freebsd12*)
7104 # C++ shared libraries reported to be fairly broken before switch to ELF
7105 ld_shlibs_CXX=no
7106 ;;
7107 freebsd-elf*)
7108 archive_cmds_need_lc_CXX=no
7109 ;;
7110 freebsd*)
7111 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7112 # conventions
7113 ld_shlibs_CXX=yes
7114 ;;
7115 gnu*)
7116 ;;
7117 hpux*)
7118 if test $with_gnu_ld = no; then
7119 if test "$host_cpu" = ia64; then
7120 hardcode_libdir_flag_spec_CXX='-L$libdir'
7121 else
7122 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
7123 hardcode_libdir_separator_CXX=:
7124 export_dynamic_flag_spec_CXX='${wl}-E'
7125 fi
7126 fi
7127 if test "$host_cpu" = ia64; then
7128 hardcode_direct_CXX=no
7129 hardcode_shlibpath_var_CXX=no
7130 else
7131 hardcode_direct_CXX=yes
7132 fi
7133 hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default
7134 # location of the library.
7135
7136 case $cc_basename in
7137 CC)
7138 # FIXME: insert proper C++ library support
7139 ld_shlibs_CXX=no
7140 ;;
7141 aCC)
7142 case $host_os in
7143 hpux9*)
7144 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7145 ;;
7146 *)
7147 if test "$host_cpu" = ia64; then
7148 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7149 else
7150 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7151 fi
7152 ;;
7153 esac
7154 # Commands to make compiler produce verbose output that lists
7155 # what "hidden" libraries, object files and flags are used when
7156 # linking a shared library.
7157 #
7158 # There doesn't appear to be a way to prevent this compiler from
7159 # explicitly linking system object files so we need to strip them
7160 # from the output so that they don't get included in the library
7161 # dependencies.
7162 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7163 ;;
7164 *)
7165 if test $GXX = yes; then
7166 if test $with_gnu_ld = no; then
7167 case "$host_os" in
7168 hpux9*)
7169 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7170 ;;
7171 *)
7172 if test "$host_cpu" = ia64; then
7173 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7174 else
7175 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7176 fi
7177 ;;
7178 esac
7179 fi
7180 else
7181 # FIXME: insert proper C++ library support
7182 ld_shlibs_CXX=no
7183 fi
7184 ;;
7185 esac
7186 ;;
7187 irix5* | irix6*)
7188 case $cc_basename in
7189 CC)
7190 # SGI C++
7191 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
7192
7193 # Archives containing C++ object files must be created using
7194 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
7195 # necessary to make sure instantiated templates are included
7196 # in the archive.
7197 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
7198 ;;
7199 *)
7200 if test "$GXX" = yes; then
7201 if test "$with_gnu_ld" = no; then
7202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
7203 else
7204 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
7205 fi
7206 fi
7207 link_all_deplibs_CXX=yes
7208 ;;
7209 esac
7210 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7211 hardcode_libdir_separator_CXX=:
7212 ;;
7213 linux*)
7214 case $cc_basename in
7215 KCC)
7216 # Kuck and Associates, Inc. (KAI) C++ Compiler
7217
7218 # KCC will only create a shared library if the output file
7219 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7220 # to its proper name (with version) after linking.
7221 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7222 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
7223
7224 # Commands to make compiler produce verbose output that lists
7225 # what "hidden" libraries, object files and flags are used when
7226 # linking a shared library.
7227 #
7228 # There doesn't appear to be a way to prevent this compiler from
7229 # explicitly linking system object files so we need to strip them
7230 # from the output so that they don't get included in the library
7231 # dependencies.
7232 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7233
7234 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
7235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
7236
7237 # Archives containing C++ object files must be created using
7238 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7239 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
7240 ;;
7241 cxx)
7242 # Compaq C++
7243 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7244 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7245
7246 runpath_var=LD_RUN_PATH
7247 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
7248 hardcode_libdir_separator_CXX=:
7249
7250 # Commands to make compiler produce verbose output that lists
7251 # what "hidden" libraries, object files and flags are used when
7252 # linking a shared library.
7253 #
7254 # There doesn't appear to be a way to prevent this compiler from
7255 # explicitly linking system object files so we need to strip them
7256 # from the output so that they don't get included in the library
7257 # dependencies.
7258 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7259 ;;
7260 esac
7261 ;;
7262 lynxos*)
7263 # FIXME: insert proper C++ library support
7264 ld_shlibs_CXX=no
7265 ;;
7266 m88k*)
7267 # FIXME: insert proper C++ library support
7268 ld_shlibs_CXX=no
7269 ;;
7270 mvs*)
7271 case $cc_basename in
7272 cxx)
7273 # FIXME: insert proper C++ library support
7274 ld_shlibs_CXX=no
7275 ;;
7276 *)
7277 # FIXME: insert proper C++ library support
7278 ld_shlibs_CXX=no
7279 ;;
7280 esac
7281 ;;
7282 netbsd*)
7283 # NetBSD uses g++ - do we need to do anything?
7284 ;;
7285 osf3*)
7286 case $cc_basename in
7287 KCC)
7288 # Kuck and Associates, Inc. (KAI) C++ Compiler
7289
7290 # KCC will only create a shared library if the output file
7291 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7292 # to its proper name (with version) after linking.
7293 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7294
7295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
7296 hardcode_libdir_separator_CXX=:
7297
7298 # Archives containing C++ object files must be created using
7299 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7300 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
7301
7302 ;;
7303 RCC)
7304 # Rational C++ 2.4.1
7305 # FIXME: insert proper C++ library support
7306 ld_shlibs_CXX=no
7307 ;;
7308 cxx)
7309 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7310 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
7311
7312 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7313 hardcode_libdir_separator_CXX=:
7314
7315 # Commands to make compiler produce verbose output that lists
7316 # what "hidden" libraries, object files and flags are used when
7317 # linking a shared library.
7318 #
7319 # There doesn't appear to be a way to prevent this compiler from
7320 # explicitly linking system object files so we need to strip them
7321 # from the output so that they don't get included in the library
7322 # dependencies.
7323 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7324 ;;
7325 *)
7326 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7327 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7328 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
7329
7330 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7331 hardcode_libdir_separator_CXX=:
7332
7333 # Commands to make compiler produce verbose output that lists
7334 # what "hidden" libraries, object files and flags are used when
7335 # linking a shared library.
7336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
7337
7338 else
7339 # FIXME: insert proper C++ library support
7340 ld_shlibs_CXX=no
7341 fi
7342 ;;
7343 esac
7344 ;;
7345 osf4* | osf5*)
7346 case $cc_basename in
7347 KCC)
7348 # Kuck and Associates, Inc. (KAI) C++ Compiler
7349
7350 # KCC will only create a shared library if the output file
7351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7352 # to its proper name (with version) after linking.
7353 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7354
7355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
7356 hardcode_libdir_separator_CXX=:
7357
7358 # Archives containing C++ object files must be created using
7359 # the KAI C++ compiler.
7360 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
7361 ;;
7362 RCC)
7363 # Rational C++ 2.4.1
7364 # FIXME: insert proper C++ library support
7365 ld_shlibs_CXX=no
7366 ;;
7367 cxx)
7368 allow_undefined_flag_CXX=' -expect_unresolved \*'
7369 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
7370 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
7371 echo "-hidden">> $lib.exp~
7372 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
7373 $rm $lib.exp'
7374
7375 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
7376 hardcode_libdir_separator_CXX=:
7377
7378 # Commands to make compiler produce verbose output that lists
7379 # what "hidden" libraries, object files and flags are used when
7380 # linking a shared library.
7381 #
7382 # There doesn't appear to be a way to prevent this compiler from
7383 # explicitly linking system object files so we need to strip them
7384 # from the output so that they don't get included in the library
7385 # dependencies.
7386 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7387 ;;
7388 *)
7389 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7390 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7391 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
7392
7393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7394 hardcode_libdir_separator_CXX=:
7395
7396 # Commands to make compiler produce verbose output that lists
7397 # what "hidden" libraries, object files and flags are used when
7398 # linking a shared library.
7399 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
7400
7401 else
7402 # FIXME: insert proper C++ library support
7403 ld_shlibs_CXX=no
7404 fi
7405 ;;
7406 esac
7407 ;;
7408 psos*)
7409 # FIXME: insert proper C++ library support
7410 ld_shlibs_CXX=no
7411 ;;
7412 sco*)
7413 case $cc_basename in
7414 CC)
7415 # FIXME: insert proper C++ library support
7416 ld_shlibs_CXX=no
7417 ;;
7418 *)
7419 # FIXME: insert proper C++ library support
7420 ld_shlibs_CXX=no
7421 ;;
7422 esac
7423 ;;
7424 sunos4*)
7425 case $cc_basename in
7426 CC)
7427 # Sun C++ 4.x
7428 # FIXME: insert proper C++ library support
7429 ld_shlibs_CXX=no
7430 ;;
7431 lcc)
7432 # Lucid
7433 # FIXME: insert proper C++ library support
7434 ld_shlibs_CXX=no
7435 ;;
7436 *)
7437 # FIXME: insert proper C++ library support
7438 ld_shlibs_CXX=no
7439 ;;
7440 esac
7441 ;;
7442 solaris*)
7443 case $cc_basename in
7444 CC)
7445 # Sun C++ 4.2, 5.x and Centerline C++
7446 no_undefined_flag_CXX=' -zdefs'
7447 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7448 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7449 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7450
7451 hardcode_libdir_flag_spec_CXX='-R$libdir'
7452 hardcode_shlibpath_var_CXX=no
7453 case $host_os in
7454 solaris2.0-5 | solaris2.0-5.*) ;;
7455 *)
7456 # The C++ compiler is used as linker so we must use $wl
7457 # flag to pass the commands to the underlying system
7458 # linker.
7459 # Supported since Solaris 2.6 (maybe 2.5.1?)
7460 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7461 ;;
7462 esac
7463 link_all_deplibs_CXX=yes
7464
7465 # Commands to make compiler produce verbose output that lists
7466 # what "hidden" libraries, object files and flags are used when
7467 # linking a shared library.
7468 #
7469 # There doesn't appear to be a way to prevent this compiler from
7470 # explicitly linking system object files so we need to strip them
7471 # from the output so that they don't get included in the library
7472 # dependencies.
7473 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7474
7475 # Archives containing C++ object files must be created using
7476 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7477 # necessary to make sure instantiated templates are included
7478 # in the archive.
7479 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
7480 ;;
7481 gcx)
7482 # Green Hills C++ Compiler
7483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7484
7485 # The C++ compiler must be used to create the archive.
7486 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7487 ;;
7488 *)
7489 # GNU C++ compiler with Solaris linker
7490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7491 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
7492 if $CC --version | egrep -v '^2\.7' > /dev/null; then
7493 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
7494 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7495 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
7496
7497 # Commands to make compiler produce verbose output that lists
7498 # what "hidden" libraries, object files and flags are used when
7499 # linking a shared library.
7500 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
7501 else
7502 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7503 # platform.
7504 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
7505 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7506 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
7507
7508 # Commands to make compiler produce verbose output that lists
7509 # what "hidden" libraries, object files and flags are used when
7510 # linking a shared library.
7511 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
7512 fi
7513
7514 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
7515 fi
7516 ;;
7517 esac
7518 ;;
7519 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7520 archive_cmds_need_lc=no
7521 ;;
7522 tandem*)
7523 case $cc_basename in
7524 NCC)
7525 # NonStop-UX NCC 3.20
7526 # FIXME: insert proper C++ library support
7527 ld_shlibs_CXX=no
7528 ;;
7529 *)
7530 # FIXME: insert proper C++ library support
7531 ld_shlibs_CXX=no
7532 ;;
7533 esac
7534 ;;
7535 vxworks*)
7536 # FIXME: insert proper C++ library support
7537 ld_shlibs_CXX=no
7538 ;;
7539 *)
7540 # FIXME: insert proper C++ library support
7541 ld_shlibs_CXX=no
7542 ;;
7543esac
7544echo "$as_me:7544: result: $ld_shlibs_CXX" >&5
7545echo "${ECHO_T}$ld_shlibs_CXX" >&6
7546test "$ld_shlibs_CXX" = no && can_build_shared=no
7547
7548# Figure out "hidden" C++ library dependencies from verbose
7549# compiler output whening linking a shared library.
7550cat > conftest.$ac_ext <<EOF
7551class Foo
7552{
7553public:
7554 Foo (void) { a = 0; }
7555private:
7556 int a;
7557};
7558EOF
7559
7560if { (eval echo "$as_me:7560: \"$ac_compile\"") >&5
7561 (eval $ac_compile) 2>&5
7562 ac_status=$?
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 (exit $ac_status); }; then
7565 # Parse the compiler output and extract the necessary
7566 # objects, libraries and library flags.
7567
7568 # Sentinel used to keep track of whether or not we are before
7569 # the conftest object file.
7570 pre_test_object_deps_done=no
7571
7572 # The `*' in the case matches for architectures that use `case' in
7573 # $output_verbose_cmd can trigger glob expansion during the loop
7574 # eval without this substitution.
7575 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
7576
7577 for p in `eval $output_verbose_link_cmd`; do
7578 case $p in
7579
7580 -L* | -R* | -l*)
7581 # Some compilers place space between "-{L,R}" and the path.
7582 # Remove the space.
7583 if test $p = "-L" \
7584 || test $p = "-R"; then
7585 prev=$p
7586 continue
7587 else
7588 prev=
7589 fi
7590
7591 if test "$pre_test_object_deps_done" = no; then
7592 case $p in
7593 -L* | -R*)
7594 # Internal compiler library paths should come after those
7595 # provided the user. The postdeps already come after the
7596 # user supplied libs so there is no need to process them.
7597 if test -z "$compiler_lib_search_path_CXX"; then
7598 compiler_lib_search_path_CXX="${prev}${p}"
7599 else
7600 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
7601 fi
7602 ;;
7603 # The "-l" case would never come before the object being
7604 # linked, so don't bother handling this case.
7605 esac
7606 else
7607 if test -z "$postdeps_CXX"; then
7608 postdeps_CXX="${prev}${p}"
7609 else
7610 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
7611 fi
7612 fi
7613 ;;
7614
7615 *.$objext)
7616 # This assumes that the test object file only shows up
7617 # once in the compiler output.
7618 if test "$p" = "conftest.$objext"; then
7619 pre_test_object_deps_done=yes
7620 continue
7621 fi
7622
7623 if test "$pre_test_object_deps_done" = no; then
7624 if test -z "$predep_objects_CXX"; then
7625 predep_objects_CXX="$p"
7626 else
7627 predep_objects_CXX="$predep_objects_CXX $p"
7628 fi
7629 else
7630 if test -z "$postdep_objects_CXX"; then
7631 postdep_objects_CXX="$p"
7632 else
7633 postdep_objects_CXX="$postdep_objects_CXX $p"
7634 fi
7635 fi
7636 ;;
7637
7638 *) ;; # Ignore the rest.
7639
7640 esac
7641 done
7642
7643 # Clean up.
7644 rm -f a.out
7645else
7646 echo "ltcf-cxx.sh: error: problem compiling test program"
7647fi
7648
7649$rm -f confest.$objext
7650
7651case " $postdeps_CXX " in
7652*" -lc "*) archive_cmds_need_lc_CXX=no ;;
7653*) archive_cmds_need_lc_CXX=yes ;;
7654esac
7655
7656GCC_CXX="$GXX"
7657LD_CXX="$LD"
7658
7659lt_prog_compiler_wl_CXX=
7660lt_prog_compiler_pic_CXX=
7661lt_prog_compiler_static_CXX=
7662
7663 # C++ specific cases for pic, static, wl, etc.
7664 if test "$GXX" = yes; then
7665 lt_prog_compiler_wl_CXX='-Wl,'
7666 lt_prog_compiler_static_CXX='-static'
7667
7668 case $host_os in
7669 aix*)
7670 # All AIX code is PIC.
7671 if test "$host_cpu" = ia64; then
7672 # AIX 5 now supports IA64 processor
7673 lt_prog_compiler_static_CXX='-Bstatic'
7674 fi
7675 ;;
7676 amigaos*)
7677 # FIXME: we need at least 68020 code to build shared libraries, but
7678 # adding the `-m68020' flag to GCC prevents building anything better,
7679 # like `-m68040'.
7680 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
7681 ;;
7682 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
7683 # PIC is the default for these OSes.
7684 ;;
7685 cygwin* | mingw* | os2*)
7686 # This hack is so that the source file can tell whether it is being
7687 # built for inclusion in a dll (and should export symbols for example).
7688 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
7689 ;;
7690 darwin* | rhapsody*)
7691 # PIC is the default on this platform
7692 # Common symbols not allowed in MH_DYLIB files
7693 lt_prog_compiler_pic_CXX='-fno-common'
7694 ;;
7695 *djgpp*)
7696 # DJGPP does not support shared libraries at all
7697 lt_prog_compiler_pic_CXX=
7698 ;;
7699 sysv4*MP*)
7700 if test -d /usr/nec; then
7701 lt_prog_compiler_pic_CXX=-Kconform_pic
7702 fi
7703 ;;
7704 hpux*)
7705 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
7706 if test "$host_cpu" != ia64; then
7707 lt_prog_compiler_pic_CXX='-fPIC'
7708 fi
7709 ;;
7710 *)
7711 lt_prog_compiler_pic_CXX='-fPIC'
7712 ;;
7713 esac
7714 else
7715 case $host_os in
7716 aix4* | aix5*)
7717 # All AIX code is PIC.
7718 if test "$host_cpu" = ia64; then
7719 # AIX 5 now supports IA64 processor
7720 lt_prog_compiler_static_CXX='-Bstatic'
7721 else
7722 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
7723 fi
7724 ;;
7725 chorus*)
7726 case $cc_basename in
7727 cxch68)
7728 # Green Hills C++ Compiler
7729 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
7730 ;;
7731 esac
7732 ;;
7733 dgux*)
7734 case $cc_basename in
7735 ec++)
7736 lt_prog_compiler_pic_CXX='-KPIC'
7737 ;;
7738 ghcx)
7739 # Green Hills C++ Compiler
7740 lt_prog_compiler_pic_CXX='-pic'
7741 ;;
7742 *)
7743 ;;
7744 esac
7745 ;;
7746 freebsd*)
7747 # FreeBSD uses GNU C++
7748 ;;
7749 hpux9* | hpux10* | hpux11*)
7750 case $cc_basename in
7751 CC)
7752 lt_prog_compiler_wl_CXX='-Wl,'
7753 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7754 if test "$host_cpu" != ia64; then
7755 lt_prog_compiler_pic_CXX='+Z'
7756 fi
7757 ;;
7758 aCC)
7759 lt_prog_compiler_wl_CXX='-Wl,'
7760 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7761 if test "$host_cpu" != ia64; then
7762 lt_prog_compiler_pic_CXX='+Z'
7763 fi
7764 ;;
7765 *)
7766 ;;
7767 esac
7768 ;;
7769 irix5* | irix6*)
7770 case $cc_basename in
7771 CC)
7772 lt_prog_compiler_wl_CXX='-Wl,'
7773 lt_prog_compiler_static_CXX='-non_shared'
7774 # CC pic flag -KPIC is the default.
7775 ;;
7776 *)
7777 ;;
7778 esac
7779 ;;
7780 linux*)
7781 case $cc_basename in
7782 KCC)
7783 # KAI C++ Compiler
7784 lt_prog_compiler_wl_CXX='--backend -Wl,'
7785 lt_prog_compiler_pic_CXX='-fPIC'
7786 ;;
7787 cxx)
7788 # Compaq C++
7789 # Make sure the PIC flag is empty. It appears that all Alpha
7790 # Linux and Compaq Tru64 Unix objects are PIC.
7791 lt_prog_compiler_pic_CXX=
7792 lt_prog_compiler_static_CXX='-non_shared'
7793 ;;
7794 *)
7795 ;;
7796 esac
7797 ;;
7798 lynxos*)
7799 ;;
7800 m88k*)
7801 ;;
7802 mvs*)
7803 case $cc_basename in
7804 cxx)
7805 lt_prog_compiler_pic_CXX='-W c,exportall'
7806 ;;
7807 *)
7808 ;;
7809 esac
7810 ;;
7811 netbsd*)
7812 ;;
7813 osf3* | osf4* | osf5*)
7814 case $cc_basename in
7815 KCC)
7816 lt_prog_compiler_wl_CXX='--backend -Wl,'
7817 ;;
7818 RCC)
7819 # Rational C++ 2.4.1
7820 lt_prog_compiler_pic_CXX='-pic'
7821 ;;
7822 cxx)
7823 # Digital/Compaq C++
7824 lt_prog_compiler_wl_CXX='-Wl,'
7825 # Make sure the PIC flag is empty. It appears that all Alpha
7826 # Linux and Compaq Tru64 Unix objects are PIC.
7827 lt_prog_compiler_pic_CXX=
7828 lt_prog_compiler_static_CXX='-non_shared'
7829 ;;
7830 *)
7831 ;;
7832 esac
7833 ;;
7834 psos*)
7835 ;;
7836 sco*)
7837 case $cc_basename in
7838 CC)
7839 lt_prog_compiler_pic_CXX='-fPIC'
7840 ;;
7841 *)
7842 ;;
7843 esac
7844 ;;
7845 solaris*)
7846 case $cc_basename in
7847 CC)
7848 # Sun C++ 4.2, 5.x and Centerline C++
7849 lt_prog_compiler_pic_CXX='-KPIC'
7850 lt_prog_compiler_static_CXX='-Bstatic'
7851 lt_prog_compiler_wl_CXX='-Qoption ld '
7852 ;;
7853 gcx)
7854 # Green Hills C++ Compiler
7855 lt_prog_compiler_pic_CXX='-PIC'
7856 ;;
7857 *)
7858 ;;
7859 esac
7860 ;;
7861 sunos4*)
7862 case $cc_basename in
7863 CC)
7864 # Sun C++ 4.x
7865 lt_prog_compiler_pic_CXX='-pic'
7866 lt_prog_compiler_static_CXX='-Bstatic'
7867 ;;
7868 lcc)
7869 # Lucid
7870 lt_prog_compiler_pic_CXX='-pic'
7871 ;;
7872 *)
7873 ;;
7874 esac
7875 ;;
7876 tandem*)
7877 case $cc_basename in
7878 NCC)
7879 # NonStop-UX NCC 3.20
7880 lt_prog_compiler_pic_CXX='-KPIC'
7881 ;;
7882 *)
7883 ;;
7884 esac
7885 ;;
7886 unixware*)
7887 ;;
7888 vxworks*)
7889 ;;
7890 *)
7891 lt_prog_compiler_can_build_shared_CXX=no
7892 ;;
7893 esac
7894 fi
7895
7896echo "$as_me:7896: result: $lt_prog_compiler_pic_CXX" >&5
7897echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
7898
7899#
7900# Check to make sure the PIC flag actually works.
7901#
7902if test -n "$lt_prog_compiler_pic_CXX"; then
7903 echo "$as_me:7903: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
7904echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
7905if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908 lt_prog_compiler_pic_works_CXX=no
7909 ac_outfile=conftest.$ac_objext
7910 save_CFLAGS="$CFLAGS"
7911 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
7912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7913 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
7914 # The compiler can only warn and ignore the option if not recognized
7915 # So say no if there are warnings
7916 if test -s conftest.err; then
7917 # Append any errors to the config.log.
7918 cat conftest.err 1>&5
7919 else
7920 lt_prog_compiler_pic_works_CXX=yes
7921 fi
7922 fi
7923 $rm conftest*
7924 CFLAGS="$save_CFLAGS"
7925
7926fi
7927echo "$as_me:7927: result: $lt_prog_compiler_pic_works_CXX" >&5
7928echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
7929
7930if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
7931 case $lt_prog_compiler_pic_CXX in
7932 "" | " "*) ;;
7933 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
7934 esac
7935else
7936 lt_prog_compiler_pic_CXX=
7937 lt_prog_compiler_can_build_shared_CXX=no
7938fi
7939
7940fi
7941case "$host_os" in
7942 # For platforms which do not support PIC, -DPIC is meaningless:
7943 *djgpp*)
7944 lt_prog_compiler_pic_CXX=
7945 ;;
7946 *)
7947 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
7948 ;;
7949esac
7950
7951echo "$as_me:7951: checking if $compiler supports -c -o file.$ac_objext" >&5
7952echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7953if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 lt_cv_prog_compiler_c_o_CXX=no
7957 $rm -r conftest 2>/dev/null
7958 mkdir conftest
7959 cd conftest
7960 mkdir out
7961 save_CXXFLAGS="$CXXFLAGS"
7962 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964
7965 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7966 # that will create temporary files in the current directory regardless of
7967 # the output directory. Thus, making CWD read-only will cause this test
7968 # to fail, enabling locking or at least warning the user not to do parallel
7969 # builds.
7970 chmod -w .
7971
7972 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
7973 then
7974 # The compiler can only warn and ignore the option if not recognized
7975 # So say no if there are warnings
7976 if test -s out/conftest.err; then
7977 # Append any errors to the config.log.
7978 cat out/conftest.err 1>&5
7979 else
7980 lt_cv_prog_compiler_c_o_CXX=yes
7981 fi
7982 fi
7983 CXXFLAGS="$save_CXXFLAGS"
7984 chmod u+w .
7985 $rm conftest* out/*
7986 rmdir out
7987 cd ..
7988 rmdir conftest
7989 $rm conftest*
7990
7991fi
7992echo "$as_me:7992: result: $lt_cv_prog_compiler_c_o_CXX" >&5
7993echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
7994
7995hard_links="nottested"
7996if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
7997 # do not overwrite the value of need_locks provided by the user
7998 echo "$as_me:7998: checking if we can lock with hard links" >&5
7999echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8000 hard_links=yes
8001 $rm conftest*
8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8003 touch conftest.a
8004 ln conftest.a conftest.b 2>&5 || hard_links=no
8005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8006 echo "$as_me:8006: result: $hard_links" >&5
8007echo "${ECHO_T}$hard_links" >&6
8008 if test "$hard_links" = no; then
8009 { echo "$as_me:8009: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8010echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8011 need_locks=warn
8012 fi
8013else
8014 need_locks=no
8015fi
8016
8017echo "$as_me:8017: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8018echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8019
8020echo "$as_me:8020: result: $ld_shlibs_CXX" >&5
8021echo "${ECHO_T}$ld_shlibs_CXX" >&6
8022test "$ld_shlibs_CXX" = no && can_build_shared=no
8023
8024variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8025if test "$GCC" = yes; then
8026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8027fi
8028
8029#
8030# Do we need to explicitly link libc?
8031#
8032archive_cmds_need_lc_CXX=yes
8033if test "$enable_shared" = yes && test "$GCC" = yes; then
8034 case $archive_cmds_CXX in
8035 *'~'*)
8036 # FIXME: we may have to deal with multi-command sequences.
8037 ;;
8038 '$CC '*)
8039 # Test whether the compiler implicitly links with -lc since on some
8040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8041 # to ld, don't add -lc before -lgcc.
8042 echo "$as_me:8042: checking whether -lc should be explicitly linked in" >&5
8043echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8044 $rm conftest*
8045 echo 'static int dummy;' > conftest.$ac_ext
8046
8047 if { (eval echo "$as_me:8047: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>&5
8049 ac_status=$?
8050 echo "$as_me:8050: \$? = $ac_status" >&5
8051 (exit $ac_status); } 2>conftest.err; then
8052 soname=conftest
8053 lib=conftest
8054 libobjs=conftest.$ac_objext
8055 deplibs=
8056 wl=$lt_prog_compiler_wl_CXX
8057 compiler_flags=-v
8058 linker_flags=-v
8059 verstring=
8060 output_objdir=.
8061 libname=conftest
8062 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
8063 allow_undefined_flag_CXX=
8064 if { (eval echo "$as_me:8064: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8065 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8066 ac_status=$?
8067 echo "$as_me:8067: \$? = $ac_status" >&5
8068 (exit $ac_status); }
8069 then
8070 archive_cmds_need_lc_CXX=no
8071 else
8072 archive_cmds_need_lc_CXX=yes
8073 fi
8074 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
8075 else
8076 cat conftest.err 1>&5
8077 fi
8078 $rm conftest*
8079 echo "$as_me:8079: result: $archive_cmds_need_lc_CXX" >&5
8080echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
8081 ;;
8082 esac
8083fi
8084
8085echo "$as_me:8085: checking how to hardcode library paths into programs" >&5
8086echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8087hardcode_action_CXX=
8088if test -n "$hardcode_libdir_flag_spec_CXX" || \
8089 test -n "$runpath_var CXX"; then
8090
8091 # We can hardcode non-existant directories.
8092 if test "$hardcode_direct_CXX" != no &&
8093 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8094 # have to relink, otherwise we might link with an installed library
8095 # when we should be linking with a yet-to-be-installed one
8096 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
8097 test "$hardcode_minus_L_CXX" != no; then
8098 # Linking always hardcodes the temporary library directory.
8099 hardcode_action_CXX=relink
8100 else
8101 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8102 hardcode_action_CXX=immediate
8103 fi
8104else
8105 # We cannot hardcode anything, or else we can only hardcode existing
8106 # directories.
8107 hardcode_action_CXX=unsupported
8108fi
8109echo "$as_me:8109: result: $hardcode_action_CXX" >&5
8110echo "${ECHO_T}$hardcode_action_CXX" >&6
8111
8112if test "$hardcode_action_CXX" = relink; then
8113 # Fast installation is not supported
8114 enable_fast_install=no
8115elif test "$shlibpath_overrides_runpath" = yes ||
8116 test "$enable_shared" = no; then
8117 # Fast installation is not necessary
8118 enable_fast_install=needless
8119fi
8120
8121striplib=
8122old_striplib=
8123echo "$as_me:8123: checking whether stripping libraries is possible" >&5
8124echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8125if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8126 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8127 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8128 echo "$as_me:8128: result: yes" >&5
8129echo "${ECHO_T}yes" >&6
8130else
8131 echo "$as_me:8131: result: no" >&5
8132echo "${ECHO_T}no" >&6
8133fi
8134
8135echo "$as_me:8135: checking dynamic linker characteristics" >&5
8136echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8137library_names_spec=
8138libname_spec='lib$name'
8139soname_spec=
8140postinstall_cmds=
8141postuninstall_cmds=
8142finish_cmds=
8143finish_eval=
8144shlibpath_var=
8145shlibpath_overrides_runpath=unknown
8146version_type=none
8147dynamic_linker="$host_os ld.so"
8148sys_lib_dlsearch_path_spec="/lib /usr/lib"
8149sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8150need_lib_prefix=unknown
8151hardcode_into_libs=no
8152
8153# when you set need_version to no, make sure it does not cause -set_version
8154# flags to be left without arguments
8155need_version=unknown
8156
8157case $host_os in
8158aix3*)
8159 version_type=linux
8160 library_names_spec='${libname}${release}.so$versuffix $libname.a'
8161 shlibpath_var=LIBPATH
8162
8163 # AIX 3 has no versioning support, so we append a major version to the name.
8164 soname_spec='${libname}${release}.so$major'
8165 ;;
8166
8167aix4* | aix5*)
8168 version_type=linux
8169 if test "$host_cpu" = ia64; then
8170 # AIX 5 supports IA64
8171 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 else
8174 # With GCC up to 2.95.x, collect2 would create an import file
8175 # for dependence libraries. The import file would start with
8176 # the line `#! .'. This would cause the generated library to
8177 # depend on `.', always an invalid library. This was fixed in
8178 # development snapshots of GCC prior to 3.0.
8179 case $host_os in
8180 aix4 | aix4.[01] | aix4.[01].*)
8181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8182 echo ' yes '
8183 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8184 :
8185 else
8186 can_build_shared=no
8187 fi
8188 ;;
8189 esac
8190 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8191 # soname into executable. Probably we can add versioning support to
8192 # collect2, so additional links can be useful in future.
8193 if test "$aix_use_runtimelinking" = yes; then
8194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8195 # instead of lib<name>.a to let people know that these are not
8196 # typical AIX shared libraries.
8197 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8198 else
8199 # We preserve .a as extension for shared libraries through AIX4.2
8200 # and later when we are not doing run time linking.
8201 library_names_spec='${libname}${release}.a $libname.a'
8202 soname_spec='${libname}${release}.so$major'
8203 fi
8204 shlibpath_var=LIBPATH
8205 deplibs_check_method=pass_all
8206 fi
8207 ;;
8208
8209amigaos*)
8210 library_names_spec='$libname.ixlibrary $libname.a'
8211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8212 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'
8213 ;;
8214
8215beos*)
8216 library_names_spec='${libname}.so'
8217 dynamic_linker="$host_os ld.so"
8218 shlibpath_var=LIBRARY_PATH
8219 ;;
8220
8221bsdi4*)
8222 version_type=linux
8223 need_version=no
8224 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8225 soname_spec='${libname}${release}.so$major'
8226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8227 shlibpath_var=LD_LIBRARY_PATH
8228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8230 # the default ld.so.conf also contains /usr/contrib/lib and
8231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8232 # libtool to hard-code these into programs
8233 ;;
8234
8235cygwin* | mingw* | pw32*)
8236 version_type=windows
8237 need_version=no
8238 need_lib_prefix=no
8239 case $GCC,$host_os in
8240 yes,cygwin*)
8241 library_names_spec='$libname.dll.a'
8242 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8244 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
8245 dldir=$destdir/`dirname \$dlpath`~
8246 test -d \$dldir || mkdir -p \$dldir~
8247 $install_prog .libs/$dlname \$dldir/$dlname'
8248 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
8249 dlpath=$dir/\$dldll~
8250 $rm \$dlpath'
8251 ;;
8252 yes,mingw*)
8253 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
8255 ;;
8256 yes,pw32*)
8257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
8258 ;;
8259 *)
8260 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
8261 ;;
8262 esac
8263 dynamic_linker='Win32 ld.exe'
8264 # FIXME: first we should search . and the directory the executable is in
8265 shlibpath_var=PATH
8266 ;;
8267
8268darwin* | rhapsody*)
8269 dynamic_linker="$host_os dyld"
8270 version_type=darwin
8271 need_lib_prefix=no
8272 need_version=no
8273 # FIXME: Relying on posixy $() will cause problems for
8274 # cross-compilation, but unfortunately the echo tests do not
8275 # yet detect zsh echo's removal of \ escapes.
8276 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)'
8277 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
8278 shlibpath_overrides_runpath=yes
8279 shlibpath_var=DYLD_LIBRARY_PATH
8280 ;;
8281
8282dgux*)
8283 version_type=linux
8284 need_lib_prefix=no
8285 need_version=no
8286 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8287 soname_spec='${libname}${release}.so$major'
8288 shlibpath_var=LD_LIBRARY_PATH
8289 ;;
8290
8291freebsd1*)
8292 dynamic_linker=no
8293 ;;
8294
8295freebsd*)
8296 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8297 version_type=freebsd-$objformat
8298 case $version_type in
8299 freebsd-elf*)
8300 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8301 need_version=no
8302 need_lib_prefix=no
8303 ;;
8304 freebsd-*)
8305 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
8306 need_version=yes
8307 ;;
8308 esac
8309 shlibpath_var=LD_LIBRARY_PATH
8310 case $host_os in
8311 freebsd2*)
8312 shlibpath_overrides_runpath=yes
8313 ;;
8314 freebsd3.01* | freebsdelf3.01*)
8315 shlibpath_overrides_runpath=yes
8316 hardcode_into_libs=yes
8317 ;;
8318 *) # from 3.2 on
8319 shlibpath_overrides_runpath=no
8320 hardcode_into_libs=yes
8321 ;;
8322 esac
8323 ;;
8324
8325gnu*)
8326 version_type=linux
8327 need_lib_prefix=no
8328 need_version=no
8329 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
8330 soname_spec='${libname}${release}.so$major'
8331 shlibpath_var=LD_LIBRARY_PATH
8332 hardcode_into_libs=yes
8333 ;;
8334
8335hpux9* | hpux10* | hpux11*)
8336 # Give a soname corresponding to the major version so that dld.sl refuses to
8337 # link against other versions.
8338 version_type=sunos
8339 need_lib_prefix=no
8340 need_version=no
8341 if test "$host_cpu" = ia64; then
8342 hardcode_into_libs=yes
8343 dynamic_linker="$host_os dld.so"
8344 shlibpath_var=LD_LIBRARY_PATH
8345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8346 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8347 soname_spec='${libname}${release}.so$major'
8348 if test "X$HPUX_IA64_MODE" = X32; then
8349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8350 else
8351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8352 fi
8353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8354 else
8355 dynamic_linker="$host_os dld.sl"
8356 shlibpath_var=SHLIB_PATH
8357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8358 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
8359 soname_spec='${libname}${release}.sl$major'
8360 fi
8361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8362 postinstall_cmds='chmod 555 $lib'
8363 ;;
8364
8365irix5* | irix6*)
8366 version_type=irix
8367 need_lib_prefix=no
8368 need_version=no
8369 soname_spec='${libname}${release}.so$major'
8370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
8371 case $host_os in
8372 irix5*)
8373 libsuff= shlibsuff=
8374 ;;
8375 *)
8376 case $LD in # libtool.m4 will add one of these switches to LD
8377 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
8378 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
8379 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
8380 *) libsuff= shlibsuff= libmagic=never-match;;
8381 esac
8382 ;;
8383 esac
8384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8385 shlibpath_overrides_runpath=no
8386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8388 ;;
8389
8390# No shared lib support for Linux oldld, aout, or coff.
8391linux*oldld* | linux*aout* | linux*coff*)
8392 dynamic_linker=no
8393 ;;
8394
8395# This must be Linux ELF.
8396linux*)
8397 version_type=linux
8398 need_lib_prefix=no
8399 need_version=no
8400 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8401 soname_spec='${libname}${release}.so$major'
8402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8403 shlibpath_var=LD_LIBRARY_PATH
8404 shlibpath_overrides_runpath=no
8405 # This implies no fast_install, which is unacceptable.
8406 # Some rework will be needed to allow for fast_install
8407 # before this can be enabled.
8408 hardcode_into_libs=yes
8409
8410 # We used to test for /lib/ld.so.1 and disable shared libraries on
8411 # powerpc, because MkLinux only supported shared libraries with the
8412 # GNU dynamic linker. Since this was broken with cross compilers,
8413 # most powerpc-linux boxes support dynamic linking these days and
8414 # people can always --disable-shared, the test was removed, and we
8415 # assume the GNU/Linux dynamic linker is in use.
8416 dynamic_linker='GNU/Linux ld.so'
8417 ;;
8418
8419netbsd*)
8420 version_type=sunos
8421 need_lib_prefix=no
8422 need_version=no
8423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8424 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8426 dynamic_linker='NetBSD (a.out) ld.so'
8427 else
8428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
8429 soname_spec='${libname}${release}.so$major'
8430 dynamic_linker='NetBSD ld.elf_so'
8431 fi
8432 shlibpath_var=LD_LIBRARY_PATH
8433 shlibpath_overrides_runpath=yes
8434 hardcode_into_libs=yes
8435 ;;
8436
8437newsos6)
8438 version_type=linux
8439 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8440 shlibpath_var=LD_LIBRARY_PATH
8441 shlibpath_overrides_runpath=yes
8442 ;;
8443
8444nto-qnx)
8445 version_type=linux
8446 need_lib_prefix=no
8447 need_version=no
8448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8449 soname_spec='${libname}${release}.so$major'
8450 shlibpath_var=LD_LIBRARY_PATH
8451 shlibpath_overrides_runpath=yes
8452 ;;
8453
8454openbsd*)
8455 version_type=sunos
8456 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8458 shlibpath_var=LD_LIBRARY_PATH
8459 file_magic_cmd=/usr/bin/file
8460 file_magic_test_file=`echo /usr/lib/libc.so.*`
8461 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
8462 deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
8463 else
8464 deplibs_check_method='file_magic OpenBSD.* shared library'
8465 fi
8466 ;;
8467
8468os2*)
8469 libname_spec='$name'
8470 need_lib_prefix=no
8471 library_names_spec='$libname.dll $libname.a'
8472 dynamic_linker='OS/2 ld.exe'
8473 shlibpath_var=LIBPATH
8474 ;;
8475
8476osf3* | osf4* | osf5*)
8477 version_type=osf
8478 need_version=no
8479 soname_spec='${libname}${release}.so'
8480 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8483 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8484 ;;
8485
8486sco3.2v5*)
8487 version_type=osf
8488 soname_spec='${libname}${release}.so$major'
8489 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8490 shlibpath_var=LD_LIBRARY_PATH
8491 ;;
8492
8493solaris*)
8494 version_type=linux
8495 need_lib_prefix=no
8496 need_version=no
8497 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8498 soname_spec='${libname}${release}.so$major'
8499 shlibpath_var=LD_LIBRARY_PATH
8500 shlibpath_overrides_runpath=yes
8501 hardcode_into_libs=yes
8502 # ldd complains unless libraries are executable
8503 postinstall_cmds='chmod +x $lib'
8504 ;;
8505
8506sunos4*)
8507 version_type=sunos
8508 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8510 shlibpath_var=LD_LIBRARY_PATH
8511 shlibpath_overrides_runpath=yes
8512 if test "$with_gnu_ld" = yes; then
8513 need_lib_prefix=no
8514 fi
8515 need_version=yes
8516 ;;
8517
8518sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8519 version_type=linux
8520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8521 soname_spec='${libname}${release}.so$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8523 case $host_vendor in
8524 sni)
8525 shlibpath_overrides_runpath=no
8526 ;;
8527 motorola)
8528 need_lib_prefix=no
8529 need_version=no
8530 shlibpath_overrides_runpath=no
8531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8532 ;;
8533 esac
8534 ;;
8535
8536sysv4*MP*)
8537 if test -d /usr/nec ;then
8538 version_type=linux
8539 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
8540 soname_spec='$libname.so.$major'
8541 shlibpath_var=LD_LIBRARY_PATH
8542 fi
8543 ;;
8544
8545uts4*)
8546 version_type=linux
8547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8548 soname_spec='${libname}${release}.so$major'
8549 shlibpath_var=LD_LIBRARY_PATH
8550 ;;
8551
8552*)
8553 dynamic_linker=no
8554 ;;
8555esac
8556echo "$as_me:8556: result: $dynamic_linker" >&5
8557echo "${ECHO_T}$dynamic_linker" >&6
8558test "$dynamic_linker" = no && can_build_shared=no
8559
8560if test "x$enable_dlopen" != xyes; then
8561 enable_dlopen=unknown
8562 enable_dlopen_self=unknown
8563 enable_dlopen_self_static=unknown
8564else
8565 lt_cv_dlopen=no
8566 lt_cv_dlopen_libs=
8567
8568 case $host_os in
8569 beos*)
8570 lt_cv_dlopen="load_add_on"
8571 lt_cv_dlopen_libs=
8572 lt_cv_dlopen_self=yes
8573 ;;
8574
8575 cygwin* | mingw* | pw32*)
8576 lt_cv_dlopen="LoadLibrary"
8577 lt_cv_dlopen_libs=
8578 ;;
8579
8580 *)
8581 echo "$as_me:8581: checking for shl_load" >&5
8582echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8583if test "${ac_cv_func_shl_load+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586 cat >conftest.$ac_ext <<_ACEOF
8587#line 8587 "configure"
8588#include "confdefs.h"
8589/* System header to define __stub macros and hopefully few prototypes,
8590 which can conflict with char shl_load (); below. */
8591#include <assert.h>
8592/* Override any gcc2 internal prototype to avoid an error. */
8593#ifdef __cplusplus
8594extern "C"
8595#endif
8596/* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8598char shl_load ();
8599char (*f) ();
8600
8601int
8602main ()
8603{
8604/* The GNU C library defines this for functions which it implements
8605 to always fail with ENOSYS. Some functions are actually named
8606 something starting with __ and the normal name is an alias. */
8607#if defined (__stub_shl_load) || defined (__stub___shl_load)
8608choke me
8609#else
8610f = shl_load;
8611#endif
8612
8613 ;
8614 return 0;
8615}
8616_ACEOF
8617rm -f conftest.$ac_objext conftest$ac_exeext
8618if { (eval echo "$as_me:8618: \"$ac_link\"") >&5
8619 (eval $ac_link) 2>&5
8620 ac_status=$?
8621 echo "$as_me:8621: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:8624: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:8627: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_func_shl_load=yes
8630else
8631 echo "$as_me: failed program was:" >&5
8632cat conftest.$ac_ext >&5
8633ac_cv_func_shl_load=no
8634fi
8635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8636fi
8637echo "$as_me:8637: result: $ac_cv_func_shl_load" >&5
8638echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8639if test $ac_cv_func_shl_load = yes; then
8640 lt_cv_dlopen="shl_load"
8641else
8642 echo "$as_me:8642: checking for shl_load in -ldld" >&5
8643echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8644if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647 ac_check_lib_save_LIBS=$LIBS
8648LIBS="-ldld $LIBS"
8649cat >conftest.$ac_ext <<_ACEOF
8650#line 8650 "configure"
8651#include "confdefs.h"
8652
8653/* Override any gcc2 internal prototype to avoid an error. */
8654#ifdef __cplusplus
8655extern "C"
8656#endif
8657/* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8659char shl_load ();
8660int
8661main ()
8662{
8663shl_load ();
8664 ;
8665 return 0;
8666}
8667_ACEOF
8668rm -f conftest.$ac_objext conftest$ac_exeext
8669if { (eval echo "$as_me:8669: \"$ac_link\"") >&5
8670 (eval $ac_link) 2>&5
8671 ac_status=$?
8672 echo "$as_me:8672: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:8675: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:8678: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_lib_dld_shl_load=yes
8681else
8682 echo "$as_me: failed program was:" >&5
8683cat conftest.$ac_ext >&5
8684ac_cv_lib_dld_shl_load=no
8685fi
8686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8687LIBS=$ac_check_lib_save_LIBS
8688fi
8689echo "$as_me:8689: result: $ac_cv_lib_dld_shl_load" >&5
8690echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8691if test $ac_cv_lib_dld_shl_load = yes; then
8692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8693else
8694 echo "$as_me:8694: checking for dlopen in -ldl" >&5
8695echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8696if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699 ac_check_lib_save_LIBS=$LIBS
8700LIBS="-ldl $LIBS"
8701cat >conftest.$ac_ext <<_ACEOF
8702#line 8702 "configure"
8703#include "confdefs.h"
8704
8705/* Override any gcc2 internal prototype to avoid an error. */
8706#ifdef __cplusplus
8707extern "C"
8708#endif
8709/* We use char because int might match the return type of a gcc2
8710 builtin and then its argument prototype would still apply. */
8711char dlopen ();
8712int
8713main ()
8714{
8715dlopen ();
8716 ;
8717 return 0;
8718}
8719_ACEOF
8720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (eval echo "$as_me:8721: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>&5
8723 ac_status=$?
8724 echo "$as_me:8724: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:8727: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:8730: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_lib_dl_dlopen=yes
8733else
8734 echo "$as_me: failed program was:" >&5
8735cat conftest.$ac_ext >&5
8736ac_cv_lib_dl_dlopen=no
8737fi
8738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8739LIBS=$ac_check_lib_save_LIBS
8740fi
8741echo "$as_me:8741: result: $ac_cv_lib_dl_dlopen" >&5
8742echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8743if test $ac_cv_lib_dl_dlopen = yes; then
8744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8745else
8746 echo "$as_me:8746: checking for dlopen" >&5
8747echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8748if test "${ac_cv_func_dlopen+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751 cat >conftest.$ac_ext <<_ACEOF
8752#line 8752 "configure"
8753#include "confdefs.h"
8754/* System header to define __stub macros and hopefully few prototypes,
8755 which can conflict with char dlopen (); below. */
8756#include <assert.h>
8757/* Override any gcc2 internal prototype to avoid an error. */
8758#ifdef __cplusplus
8759extern "C"
8760#endif
8761/* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8763char dlopen ();
8764char (*f) ();
8765
8766int
8767main ()
8768{
8769/* The GNU C library defines this for functions which it implements
8770 to always fail with ENOSYS. Some functions are actually named
8771 something starting with __ and the normal name is an alias. */
8772#if defined (__stub_dlopen) || defined (__stub___dlopen)
8773choke me
8774#else
8775f = dlopen;
8776#endif
8777
8778 ;
8779 return 0;
8780}
8781_ACEOF
8782rm -f conftest.$ac_objext conftest$ac_exeext
8783if { (eval echo "$as_me:8783: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>&5
8785 ac_status=$?
8786 echo "$as_me:8786: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (eval echo "$as_me:8789: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:8792: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 ac_cv_func_dlopen=yes
8795else
8796 echo "$as_me: failed program was:" >&5
8797cat conftest.$ac_ext >&5
8798ac_cv_func_dlopen=no
8799fi
8800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8801fi
8802echo "$as_me:8802: result: $ac_cv_func_dlopen" >&5
8803echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8804if test $ac_cv_func_dlopen = yes; then
8805 lt_cv_dlopen="dlopen"
8806else
8807 echo "$as_me:8807: checking for dlopen in -lsvld" >&5
8808echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8809if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8811else
8812 ac_check_lib_save_LIBS=$LIBS
8813LIBS="-lsvld $LIBS"
8814cat >conftest.$ac_ext <<_ACEOF
8815#line 8815 "configure"
8816#include "confdefs.h"
8817
8818/* Override any gcc2 internal prototype to avoid an error. */
8819#ifdef __cplusplus
8820extern "C"
8821#endif
8822/* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824char dlopen ();
8825int
8826main ()
8827{
8828dlopen ();
8829 ;
8830 return 0;
8831}
8832_ACEOF
8833rm -f conftest.$ac_objext conftest$ac_exeext
8834if { (eval echo "$as_me:8834: \"$ac_link\"") >&5
8835 (eval $ac_link) 2>&5
8836 ac_status=$?
8837 echo "$as_me:8837: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:8840: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:8843: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_svld_dlopen=yes
8846else
8847 echo "$as_me: failed program was:" >&5
8848cat conftest.$ac_ext >&5
8849ac_cv_lib_svld_dlopen=no
8850fi
8851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8852LIBS=$ac_check_lib_save_LIBS
8853fi
8854echo "$as_me:8854: result: $ac_cv_lib_svld_dlopen" >&5
8855echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8856if test $ac_cv_lib_svld_dlopen = yes; then
8857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8858fi
8859
8860fi
8861
8862fi
8863
8864fi
8865
8866fi
8867
8868 ;;
8869 esac
8870
8871 if test "x$lt_cv_dlopen" != xno; then
8872 enable_dlopen=yes
8873 else
8874 enable_dlopen=no
8875 fi
8876
8877 case $lt_cv_dlopen in
8878 dlopen)
8879 save_CPPFLAGS="$CPPFLAGS"
8880 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8881
8882 save_LDFLAGS="$LDFLAGS"
8883 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8884
8885 save_LIBS="$LIBS"
8886 LIBS="$lt_cv_dlopen_libs $LIBS"
8887
8888 echo "$as_me:8888: checking whether a program can dlopen itself" >&5
8889echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8890if test "${lt_cv_dlopen_self+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892else
8893 if test "$cross_compiling" = yes; then :
8894 lt_cv_dlopen_self=cross
8895else
8896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8897 lt_status=$lt_dlunknown
8898 cat > conftest.$ac_ext <<EOF
8899#line 8899 "configure"
8900#include "confdefs.h"
8901
8902#if HAVE_DLFCN_H
8903#include <dlfcn.h>
8904#endif
8905
8906#include <stdio.h>
8907
8908#ifdef RTLD_GLOBAL
8909# define LT_DLGLOBAL RTLD_GLOBAL
8910#else
8911# ifdef DL_GLOBAL
8912# define LT_DLGLOBAL DL_GLOBAL
8913# else
8914# define LT_DLGLOBAL 0
8915# endif
8916#endif
8917
8918/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8919 find out it does not work in some platform. */
8920#ifndef LT_DLLAZY_OR_NOW
8921# ifdef RTLD_LAZY
8922# define LT_DLLAZY_OR_NOW RTLD_LAZY
8923# else
8924# ifdef DL_LAZY
8925# define LT_DLLAZY_OR_NOW DL_LAZY
8926# else
8927# ifdef RTLD_NOW
8928# define LT_DLLAZY_OR_NOW RTLD_NOW
8929# else
8930# ifdef DL_NOW
8931# define LT_DLLAZY_OR_NOW DL_NOW
8932# else
8933# define LT_DLLAZY_OR_NOW 0
8934# endif
8935# endif
8936# endif
8937# endif
8938#endif
8939
8940#ifdef __cplusplus
8941extern "C" void exit (int);
8942#endif
8943
8944void fnord() { int i=42;}
8945int main ()
8946{
8947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8948 int status = $lt_dlunknown;
8949
8950 if (self)
8951 {
8952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8954 /* dlclose (self); */
8955 }
8956
8957 exit (status);
8958}
8959EOF
8960 if { (eval echo "$as_me:8960: \"$ac_link\"") >&5
8961 (eval $ac_link) 2>&5
8962 ac_status=$?
8963 echo "$as_me:8963: \$? = $ac_status" >&5
8964 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8965 (./conftest; exit; ) 2>/dev/null
8966 lt_status=$?
8967 case x$lt_status in
8968 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8969 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8970 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8971 esac
8972 else :
8973 # compilation failed
8974 lt_cv_dlopen_self=no
8975 fi
8976fi
8977rm -fr conftest*
8978
8979fi
8980echo "$as_me:8980: result: $lt_cv_dlopen_self" >&5
8981echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8982
8983 if test "x$lt_cv_dlopen_self" = xyes; then
8984 LDFLAGS="$LDFLAGS $link_static_flag"
8985 echo "$as_me:8985: checking whether a statically linked program can dlopen itself" >&5
8986echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8987if test "${lt_cv_dlopen_self_static+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989else
8990 if test "$cross_compiling" = yes; then :
8991 lt_cv_dlopen_self_static=cross
8992else
8993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8994 lt_status=$lt_dlunknown
8995 cat > conftest.$ac_ext <<EOF
8996#line 8996 "configure"
8997#include "confdefs.h"
8998
8999#if HAVE_DLFCN_H
9000#include <dlfcn.h>
9001#endif
9002
9003#include <stdio.h>
9004
9005#ifdef RTLD_GLOBAL
9006# define LT_DLGLOBAL RTLD_GLOBAL
9007#else
9008# ifdef DL_GLOBAL
9009# define LT_DLGLOBAL DL_GLOBAL
9010# else
9011# define LT_DLGLOBAL 0
9012# endif
9013#endif
9014
9015/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9016 find out it does not work in some platform. */
9017#ifndef LT_DLLAZY_OR_NOW
9018# ifdef RTLD_LAZY
9019# define LT_DLLAZY_OR_NOW RTLD_LAZY
9020# else
9021# ifdef DL_LAZY
9022# define LT_DLLAZY_OR_NOW DL_LAZY
9023# else
9024# ifdef RTLD_NOW
9025# define LT_DLLAZY_OR_NOW RTLD_NOW
9026# else
9027# ifdef DL_NOW
9028# define LT_DLLAZY_OR_NOW DL_NOW
9029# else
9030# define LT_DLLAZY_OR_NOW 0
9031# endif
9032# endif
9033# endif
9034# endif
9035#endif
9036
9037#ifdef __cplusplus
9038extern "C" void exit (int);
9039#endif
9040
9041void fnord() { int i=42;}
9042int main ()
9043{
9044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9045 int status = $lt_dlunknown;
9046
9047 if (self)
9048 {
9049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9050 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9051 /* dlclose (self); */
9052 }
9053
9054 exit (status);
9055}
9056EOF
9057 if { (eval echo "$as_me:9057: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9059 ac_status=$?
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9062 (./conftest; exit; ) 2>/dev/null
9063 lt_status=$?
9064 case x$lt_status in
9065 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9066 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9067 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9068 esac
9069 else :
9070 # compilation failed
9071 lt_cv_dlopen_self_static=no
9072 fi
9073fi
9074rm -fr conftest*
9075
9076fi
9077echo "$as_me:9077: result: $lt_cv_dlopen_self_static" >&5
9078echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9079 fi
9080
9081 CPPFLAGS="$save_CPPFLAGS"
9082 LDFLAGS="$save_LDFLAGS"
9083 LIBS="$save_LIBS"
9084 ;;
9085 esac
9086
9087 case $lt_cv_dlopen_self in
9088 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9089 *) enable_dlopen_self=unknown ;;
9090 esac
9091
9092 case $lt_cv_dlopen_self_static in
9093 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9094 *) enable_dlopen_self_static=unknown ;;
9095 esac
9096fi
9097
9098# The else clause should only fire when bootstrapping the
9099# libtool distribution, otherwise you forgot to ship ltmain.sh
9100# with your package, and you will get complaints that there are
9101# no rules to generate ltmain.sh.
9102if test -f "$ltmain"; then
9103 # Now quote all the things that may contain metacharacters while being
9104 # careful not to overquote the AC_SUBSTed values. We take copies of the
9105 # variables and quote the copies for generation of the libtool script.
9106 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
9107 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9108 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9109 deplibs_check_method reload_flag reload_cmds need_locks \
9110 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9111 lt_cv_sys_global_symbol_to_c_name_address \
9112 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9113 old_postinstall_cmds old_postuninstall_cmds \
9114 compiler_CXX \
9115 CC_CXX \
9116 LD_CXX \
9117 lt_prog_compiler_wl_CXX \
9118 lt_prog_compiler_pic_CXX \
9119 lt_prog_compiler_static_CXX \
9120 lt_prog_compiler_no_builtin_flag_CXX \
9121 export_dynamic_flag_spec_CXX \
9122 thread_safe_flag_spec_CXX \
9123 whole_archive_flag_spec_CXX \
9124 old_archive_cmds_CXX \
9125 old_archive_from_new_cmds_CXX \
9126 predep_objects_CXX \
9127 postdep_objects_CXX \
9128 predeps_CXX \
9129 postdeps_CXX \
9130 compiler_lib_search_path_CXX \
9131 archive_cmds_CXX \
9132 archive_expsym_cmds_CXX \
9133 postinstall_cmds_CXX \
9134 postuninstall_cmds_CXX \
9135 old_archive_from_expsyms_cmds_CXX \
9136 allow_undefined_flag_CXX \
9137 no_undefined_flag_CXX \
9138 export_symbols_cmds_CXX \
9139 hardcode_libdir_flag_spec_CXX \
9140 hardcode_libdir_separator_CXX \
9141 lt_cv_prog_compiler_c_o_CXX \
9142 exclude_expsyms_CXX \
9143 include_expsyms_CXX; do
9144
9145 case $var in
9146 old_archive_cmds_CXX | \
9147 old_archive_from_new_cmds_CXX | \
9148 archive_cmds_CXX | \
9149 archive_expsym_cmds_CXX | \
9150 old_archive_from_expsyms_cmds_CXX | \
9151 export_symbols_cmds_CXX | \
9152 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9153 postinstall_cmds | postuninstall_cmds | \
9154 old_postinstall_cmds | old_postuninstall_cmds | \
9155 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9156 # Double-quote double-evaled strings.
9157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9158 ;;
9159 *)
9160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9161 ;;
9162 esac
9163 done
9164
9165 case $lt_echo in
9166 *'\$0 --fallback-echo"')
9167 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9168 ;;
9169 esac
9170
9171cfgfile="$ofile"
9172
9173 cat <<__EOF__ >> "$cfgfile"
9174# ### BEGIN LIBTOOL TAG CONFIG: $tagname
9175
9176# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9177
9178# Shell to use when invoking shell scripts.
9179SHELL=$lt_SHELL
9180
9181# Whether or not to build shared libraries.
9182build_libtool_libs=$enable_shared
9183
9184# Whether or not to build static libraries.
9185build_old_libs=$enable_static
9186
9187# Whether or not to add -lc for building shared libraries.
9188build_libtool_need_lc=$archive_cmds_need_lc_CXX
9189
9190# Whether or not to optimize for fast installation.
9191fast_install=$enable_fast_install
9192
9193# The host system.
9194host_alias=$host_alias
9195host=$host
9196
9197# An echo program that does not interpret backslashes.
9198echo=$lt_echo
9199
9200# The archiver.
9201AR=$lt_AR
9202AR_FLAGS=$lt_AR_FLAGS
9203
9204# A C compiler.
9205LTCC=$LTCC
9206
9207# A language-specific compiler.
9208CC=$lt_compiler_CXX
9209
9210# Is the compiler the GNU C compiler?
9211with_gcc=$GCC_CXX
9212
9213# The linker used to build libraries.
9214LD=$lt_LD_CXX
9215
9216# Whether we need hard or soft links.
9217LN_S=$lt_LN_S
9218
9219# A BSD-compatible nm program.
9220NM=$lt_NM
9221
9222# A symbol stripping program
9223STRIP=$STRIP
9224
9225# Used to examine libraries when file_magic_cmd begins "file"
9226MAGIC_CMD=$MAGIC_CMD
9227
9228# Used on cygwin: DLL creation program.
9229DLLTOOL="$DLLTOOL"
9230
9231# Used on cygwin: object dumper.
9232OBJDUMP="$OBJDUMP"
9233
9234# Used on cygwin: assembler.
9235AS="$AS"
9236
9237# The name of the directory that contains temporary libtool files.
9238objdir=$objdir
9239
9240# How to create reloadable object files.
9241reload_flag=$lt_reload_flag
9242reload_cmds=$lt_reload_cmds
9243
9244# How to pass a linker flag through the compiler.
9245wl=$lt_lt_prog_compiler_wl_CXX
9246
9247# Object file suffix (normally "o").
9248objext="$ac_objext"
9249
9250# Old archive suffix (normally "a").
9251libext="$libext"
9252
9253# Executable file suffix (normally "").
9254exeext="$exeext"
9255
9256# Additional compiler flags for building library objects.
9257pic_flag=$lt_lt_prog_compiler_pic_CXX
9258pic_mode=$pic_mode
9259
9260# What is the maximum length of a command?
9261max_cmd_len=$lt_cv_sys_max_cmd_len
9262
9263# Does compiler simultaneously support -c and -o options?
9264compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
9265
9266# Must we lock files when doing compilation ?
9267need_locks=$lt_need_locks
9268
9269# Do we need the lib prefix for modules?
9270need_lib_prefix=$need_lib_prefix
9271
9272# Do we need a version for libraries?
9273need_version=$need_version
9274
9275# Whether dlopen is supported.
9276dlopen_support=$enable_dlopen
9277
9278# Whether dlopen of programs is supported.
9279dlopen_self=$enable_dlopen_self
9280
9281# Whether dlopen of statically linked programs is supported.
9282dlopen_self_static=$enable_dlopen_self_static
9283
9284# Compiler flag to prevent dynamic linking.
9285link_static_flag=$lt_lt_prog_compiler_static_CXX
9286
9287# Compiler flag to turn off builtin functions.
9288no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
9289
9290# Compiler flag to allow reflexive dlopens.
9291export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
9292
9293# Compiler flag to generate shared objects directly from archives.
9294whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
9295
9296# Compiler flag to generate thread-safe objects.
9297thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
9298
9299# Library versioning type.
9300version_type=$version_type
9301
9302# Format of library name prefix.
9303libname_spec=$lt_libname_spec
9304
9305# List of archive names. First name is the real one, the rest are links.
9306# The last name is the one that the linker finds with -lNAME.
9307library_names_spec=$lt_library_names_spec
9308
9309# The coded name of the library, if different from the real name.
9310soname_spec=$lt_soname_spec
9311
9312# Commands used to build and install an old-style archive.
9313RANLIB=$lt_RANLIB
9314old_archive_cmds=$lt_old_archive_cmds_CXX
9315old_postinstall_cmds=$lt_old_postinstall_cmds
9316old_postuninstall_cmds=$lt_old_postuninstall_cmds
9317
9318# Create an old-style archive from a shared archive.
9319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
9320
9321# Create a temporary old-style archive to link instead of a shared archive.
9322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
9323
9324# Commands used to build and install a shared archive.
9325archive_cmds=$lt_archive_cmds_CXX
9326archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
9327postinstall_cmds=$lt_postinstall_cmds
9328postuninstall_cmds=$lt_postuninstall_cmds
9329
9330# Commands to strip libraries.
9331old_striplib=$lt_old_striplib
9332striplib=$lt_striplib
9333
9334# Dependencies to place before the objects being linked to create a
9335# shared library.
9336predep_objects=$lt_predep_objects_CXX
9337
9338# Dependencies to place after the objects being linked to create a
9339# shared library.
9340postdep_objects=$lt_postdep_objects_CXX
9341
9342# Dependencies to place before the objects being linked to create a
9343# shared library.
9344predeps=$lt_predeps_CXX
9345
9346# Dependencies to place after the objects being linked to create a
9347# shared library.
9348postdeps=$lt_postdeps_CXX
9349
9350# The library search path used internally by the compiler when linking
9351# a shared library.
9352compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
9353
9354# Method to check whether dependent libraries are shared objects.
9355deplibs_check_method=$lt_deplibs_check_method
9356
9357# Command to use when deplibs_check_method == file_magic.
9358file_magic_cmd=$lt_file_magic_cmd
9359
9360# Flag that allows shared libraries with undefined symbols to be built.
9361allow_undefined_flag=$lt_allow_undefined_flag_CXX
9362
9363# Flag that forces no undefined symbols.
9364no_undefined_flag=$lt_no_undefined_flag_CXX
9365
9366# Commands used to finish a libtool library installation in a directory.
9367finish_cmds=$lt_finish_cmds
9368
9369# Same as above, but a single script fragment to be evaled but not shown.
9370finish_eval=$lt_finish_eval
9371
9372# Take the output of nm and produce a listing of raw symbols and C names.
9373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9374
9375# Transform the output of nm in a proper C declaration
9376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9377
9378# Transform the output of nm in a C name address pair
9379global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9380
9381# This is the shared library runtime path variable.
9382runpath_var=$runpath_var
9383
9384# This is the shared library path variable.
9385shlibpath_var=$shlibpath_var
9386
9387# Is shlibpath searched before the hard-coded library search path?
9388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9389
9390# How to hardcode a shared library path into an executable.
9391hardcode_action=$hardcode_action_CXX
9392
9393# Whether we should hardcode library paths into libraries.
9394hardcode_into_libs=$hardcode_into_libs
9395
9396# Flag to hardcode \$libdir into a binary during linking.
9397# This must work even if \$libdir does not exist.
9398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
9399
9400# Whether we need a single -rpath flag with a separated argument.
9401hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
9402
9403# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9404# resulting binary.
9405hardcode_direct=$hardcode_direct_CXX
9406
9407# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9408# resulting binary.
9409hardcode_minus_L=$hardcode_minus_L_CXX
9410
9411# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9412# the resulting binary.
9413hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
9414
9415# Variables whose values should be saved in libtool wrapper scripts and
9416# restored at relink time.
9417variables_saved_for_relink="$variables_saved_for_relink"
9418
9419# Whether libtool must link a program against all its dependency libraries.
9420link_all_deplibs=$link_all_deplibs_CXX
9421
9422# Compile-time system search path for libraries
9423sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9424
9425# Run-time system search path for libraries
9426sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9427
9428# Fix the shell variable \$srcfile for the compiler.
9429fix_srcfile_path="$fix_srcfile_path_CXX"
9430
9431# Set to yes if exported symbols are required.
9432always_export_symbols=$always_export_symbols_CXX
9433
9434# The commands to list exported symbols.
9435export_symbols_cmds=$lt_export_symbols_cmds_CXX
9436
9437# The commands to extract the exported symbol list from a shared archive.
9438extract_expsyms_cmds=$lt_extract_expsyms_cmds
9439
9440# Symbols that should not be listed in the preloaded symbols.
9441exclude_expsyms=$lt_exclude_expsyms_CXX
9442
9443# Symbols that must always be exported.
9444include_expsyms=$lt_include_expsyms_CXX
9445
9446# ### END LIBTOOL TAG CONFIG: $tagname
9447
9448__EOF__
9449
9450else
9451 # If there is no Makefile yet, we rely on a make rule to execute
9452 # `config.status --recheck' to rerun these tests and create the
9453 # libtool script then.
9454 test -f Makefile && make "$ltmain"
9455fi
9456
9457ac_ext=c
9458ac_cpp='$CPP $CPPFLAGS'
9459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461ac_compiler_gnu=$ac_cv_c_compiler_gnu
9462
9463CC="$lt_save_CC"
9464
9465 ;;
9466
9467 GCJ)
9468
9469# Source file extension for C test sources.
9470ac_ext=java
9471
9472# Object file extension for compiled C test sources.
9473objext=o
9474objext_GCJ=$objext
9475
9476# Code to be used in simple compile tests
9477lt_simple_compile_test_code="class foo {}"
9478
9479# Code to be used in simple link tests
9480lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
9481
9482# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9483
9484# If no C compiler was specified, use CC.
9485LTCC=${LTCC-"$CC"}
9486
9487# Allow CC to be a program name with arguments.
9488set dummy $CC
9489compiler="$2"
9490
9491# Allow CC to be a program name with arguments.
9492lt_save_CC="$CC"
9493CC=${GCJ-"gcj"}
9494set dummy $CC
9495compiler="$2"
9496compiler_GCJ=$CC
9497
9498# GCJ did not exist at the time GCC didn't implicitly link libc in.
9499archive_cmds_need_lc_GCJ=no
9500
9501lt_prog_compiler_no_builtin_flag_GCJ=
9502
9503if test "$GCC" = yes; then
9504 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
9505
9506 echo "$as_me:9506: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9507echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9508if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511 lt_cv_prog_compiler_rtti_exceptions=no
9512 ac_outfile=conftest.$ac_objext
9513 save_CFLAGS="$CFLAGS"
9514 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
9515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9517 # The compiler can only warn and ignore the option if not recognized
9518 # So say no if there are warnings
9519 if test -s conftest.err; then
9520 # Append any errors to the config.log.
9521 cat conftest.err 1>&5
9522 else
9523 lt_cv_prog_compiler_rtti_exceptions=yes
9524 fi
9525 fi
9526 $rm conftest*
9527 CFLAGS="$save_CFLAGS"
9528
9529fi
9530echo "$as_me:9530: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9531echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9532
9533if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9534 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
9535else
9536 :
9537fi
9538
9539fi
9540
9541lt_prog_compiler_wl_GCJ=
9542lt_prog_compiler_pic_GCJ=
9543lt_prog_compiler_static_GCJ=
9544
9545echo "$as_me:9545: checking for $compiler option to produce PIC" >&5
9546echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9547 if test "$GCC" = yes; then
9548 lt_prog_compiler_wl_GCJ='-Wl,'
9549 lt_prog_compiler_static_GCJ='-static'
9550
9551 case $host_os in
9552 aix*)
9553 # All AIX code is PIC.
9554 if test "$host_cpu" = ia64; then
9555 # AIX 5 now supports IA64 processor
9556 lt_prog_compiler_static_GCJ='-Bstatic'
9557 fi
9558 ;;
9559
9560 amigaos*)
9561 # FIXME: we need at least 68020 code to build shared libraries, but
9562 # adding the `-m68020' flag to GCC prevents building anything better,
9563 # like `-m68040'.
9564 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
9565 ;;
9566
9567 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
9568 # PIC is the default for these OSes.
9569 ;;
9570
9571 cygwin* | mingw* | pw32* | os2*)
9572 # This hack is so that the source file can tell whether it is being
9573 # built for inclusion in a dll (and should export symbols for example).
9574 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
9575 ;;
9576
9577 darwin* | rhapsody*)
9578 # PIC is the default on this platform
9579 # Common symbols not allowed in MH_DYLIB files
9580 lt_prog_compiler_pic_GCJ='-fno-common'
9581 ;;
9582
9583 msdosdjgpp*)
9584 # Just because we use GCC doesn't mean we suddenly get shared libraries
9585 # on systems that don't support them.
9586 lt_prog_compiler_can_build_shared_GCJ=no
9587 enable_shared=no
9588 ;;
9589
9590 sysv4*MP*)
9591 if test -d /usr/nec; then
9592 lt_prog_compiler_pic_GCJ=-Kconform_pic
9593 fi
9594 ;;
9595
9596 hpux*)
9597 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9598 if test "$host_cpu" != ia64; then
9599 lt_prog_compiler_pic_GCJ='-fPIC'
9600 fi
9601 ;;
9602
9603 *)
9604 lt_prog_compiler_pic_GCJ='-fPIC'
9605 ;;
9606 esac
9607 else
9608 # PORTME Check for flag to pass linker flags through the system compiler.
9609 case $host_os in
9610 aix*)
9611 lt_prog_compiler_wl_GCJ='-Wl,'
9612 if test "$host_cpu" = ia64; then
9613 # AIX 5 now supports IA64 processor
9614 lt_prog_compiler_static_GCJ='-Bstatic'
9615 else
9616 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
9617 fi
9618 ;;
9619
9620 cygwin* | mingw* | pw32* | os2*)
9621 # This hack is so that the source file can tell whether it is being
9622 # built for inclusion in a dll (and should export symbols for example).
9623 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
9624 ;;
9625
9626 hpux9* | hpux10* | hpux11*)
9627 lt_prog_compiler_wl_GCJ='-Wl,'
9628 if test "$host_cpu" != ia64; then
9629 lt_prog_compiler_pic_GCJ='+Z'
9630 fi
9631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9632 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
9633 ;;
9634
9635 irix5* | irix6*)
9636 lt_prog_compiler_wl_GCJ='-Wl,'
9637 # PIC (with -KPIC) is the default.
9638 lt_prog_compiler_static_GCJ='-non_shared'
9639 ;;
9640
9641 newsos6)
9642 lt_prog_compiler_pic_GCJ='-KPIC'
9643 lt_prog_compiler_static_GCJ='-Bstatic'
9644 ;;
9645
9646 osf3* | osf4* | osf5*)
9647 lt_prog_compiler_wl_GCJ='-Wl,'
9648 # All OSF/1 code is PIC.
9649 lt_prog_compiler_static_GCJ='-non_shared'
9650 ;;
9651
9652 sco3.2v5*)
9653 lt_prog_compiler_pic_GCJ='-Kpic'
9654 lt_prog_compiler_static_GCJ='-dn'
9655 ;;
9656
9657 solaris*)
9658 lt_prog_compiler_wl_GCJ='-Wl,'
9659 lt_prog_compiler_pic_GCJ='-KPIC'
9660 lt_prog_compiler_static_GCJ='-Bstatic'
9661 ;;
9662
9663 sunos4*)
9664 lt_prog_compiler_wl_GCJ='-Qoption ld '
9665 lt_prog_compiler_pic_GCJ='-PIC'
9666 lt_prog_compiler_static_GCJ='-Bstatic'
9667 ;;
9668
9669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9670 if test "x$host_vendor" = xsni; then
9671 lt_prog_compiler_wl_GCJ='-LD'
9672 else
9673 lt_prog_compiler_wl_GCJ='-Wl,'
9674 fi
9675 lt_prog_compiler_pic_GCJ='-KPIC'
9676 lt_prog_compiler_static_GCJ='-Bstatic'
9677 ;;
9678
9679 sysv4*MP*)
9680 if test -d /usr/nec ;then
9681 lt_prog_compiler_pic_GCJ='-Kconform_pic'
9682 lt_prog_compiler_static_GCJ='-Bstatic'
9683 fi
9684 ;;
9685
9686 uts4*)
9687 lt_prog_compiler_pic_GCJ='-pic'
9688 lt_prog_compiler_static_GCJ='-Bstatic'
9689 ;;
9690
9691 *)
9692 lt_prog_compiler_can_build_shared_GCJ=no
9693 ;;
9694 esac
9695 fi
9696
9697echo "$as_me:9697: result: $lt_prog_compiler_pic_GCJ" >&5
9698echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
9699
9700#
9701# Check to make sure the PIC flag actually works.
9702#
9703if test -n "$lt_prog_compiler_pic_GCJ"; then
9704 echo "$as_me:9704: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
9705echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
9706if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708else
9709 lt_prog_compiler_pic_works_GCJ=no
9710 ac_outfile=conftest.$ac_objext
9711 save_CFLAGS="$CFLAGS"
9712 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
9713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9714 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 if test -s conftest.err; then
9718 # Append any errors to the config.log.
9719 cat conftest.err 1>&5
9720 else
9721 lt_prog_compiler_pic_works_GCJ=yes
9722 fi
9723 fi
9724 $rm conftest*
9725 CFLAGS="$save_CFLAGS"
9726
9727fi
9728echo "$as_me:9728: result: $lt_prog_compiler_pic_works_GCJ" >&5
9729echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
9730
9731if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
9732 case $lt_prog_compiler_pic_GCJ in
9733 "" | " "*) ;;
9734 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
9735 esac
9736else
9737 lt_prog_compiler_pic_GCJ=
9738 lt_prog_compiler_can_build_shared_GCJ=no
9739fi
9740
9741fi
9742case "$host_os" in
9743 # For platforms which do not support PIC, -DPIC is meaningless:
9744 *djgpp*)
9745 lt_prog_compiler_pic_GCJ=
9746 ;;
9747 *)
9748 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
9749 ;;
9750esac
9751
9752echo "$as_me:9752: checking if $compiler supports -c -o file.$ac_objext" >&5
9753echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9754if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756else
9757 lt_cv_prog_compiler_c_o_GCJ=no
9758 $rm -r conftest 2>/dev/null
9759 mkdir conftest
9760 cd conftest
9761 mkdir out
9762 save_GCJFLAGS="$GCJFLAGS"
9763 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765
9766 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9767 # that will create temporary files in the current directory regardless of
9768 # the output directory. Thus, making CWD read-only will cause this test
9769 # to fail, enabling locking or at least warning the user not to do parallel
9770 # builds.
9771 chmod -w .
9772
9773 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
9774 then
9775 # The compiler can only warn and ignore the option if not recognized
9776 # So say no if there are warnings
9777 if test -s out/conftest.err; then
9778 # Append any errors to the config.log.
9779 cat out/conftest.err 1>&5
9780 else
9781 lt_cv_prog_compiler_c_o_GCJ=yes
9782 fi
9783 fi
9784 GCJFLAGS="$save_GCJFLAGS"
9785 chmod u+w .
9786 $rm conftest* out/*
9787 rmdir out
9788 cd ..
9789 rmdir conftest
9790 $rm conftest*
9791
9792fi
9793echo "$as_me:9793: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
9794echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
9795
9796hard_links="nottested"
9797if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
9798 # do not overwrite the value of need_locks provided by the user
9799 echo "$as_me:9799: checking if we can lock with hard links" >&5
9800echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9801 hard_links=yes
9802 $rm conftest*
9803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804 touch conftest.a
9805 ln conftest.a conftest.b 2>&5 || hard_links=no
9806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807 echo "$as_me:9807: result: $hard_links" >&5
9808echo "${ECHO_T}$hard_links" >&6
9809 if test "$hard_links" = no; then
9810 { echo "$as_me:9810: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9811echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9812 need_locks=warn
9813 fi
9814else
9815 need_locks=no
9816fi
9817
9818echo "$as_me:9818: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9819echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9820
9821 runpath_var=
9822 allow_undefined_flag_GCJ=
9823
9824 archive_cmds_GCJ=
9825 archive_cmds_need_lc_GCJ=
9826 archive_expsym_cmds_GCJ=
9827 old_archive_From_new_cmds_GCJ=
9828 old_archive_from_expsyms_cmds_GCJ=
9829 export_dynamic_flag_spec_GCJ=
9830 whole_archive_flag_spec_GCJ=
9831 thread_safe_flag_spec_GCJ=
9832 hardcode_libdir_flag_spec_GCJ=
9833 hardcode_libdir_separator_GCJ=
9834 hardcode_direct_GCJ=no
9835 hardcode_minus_L_GCJ=no
9836 hardcode_shlibpath_var_GCJ=unsupported
9837 link_all_deplibs_GCJ=unknown
9838 always_export_symbols_GCJ=no
9839 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
9840 # include_expsyms should be a list of space-separated symbols to be *always*
9841 # included in the symbol list
9842 include_expsyms_GCJ=
9843 # exclude_expsyms can be an egrep regular expression of symbols to exclude
9844 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9845 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9846 # as well as any symbol that contains `d'.
9847 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
9848 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9849 # platforms (ab)use it in PIC code, but their linkers get confused if
9850 # the symbol is explicitly referenced. Since portable code cannot
9851 # rely on this symbol name, it's probably fine to never include it in
9852 # preloaded symbol tables.
9853 extract_expsyms_cmds=
9854
9855 case $host_os in
9856 cygwin* | mingw* | pw32*)
9857 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9858 # When not using gcc, we currently assume that we are using
9859 # Microsoft Visual C++.
9860 if test "$GCC" != yes; then
9861 with_gnu_ld=no
9862 fi
9863 ;;
9864 openbsd*)
9865 with_gnu_ld=no
9866 ;;
9867 esac
9868
9869 ld_shlibs_GCJ=yes
9870 if test "$with_gnu_ld" = yes; then
9871 # If archive_cmds runs LD, not CC, wlarc should be empty
9872 wlarc='${wl}'
9873
9874 # See if GNU ld supports shared libraries.
9875 case $host_os in
9876 aix3* | aix4* | aix5*)
9877 # On AIX/PPC, the GNU linker is very broken
9878 if test "$host_cpu" != ia64; then
9879 ld_shlibs_GCJ=no
9880 cat <<EOF 1>&2
9881
9882*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9883*** to be unable to reliably create shared libraries on AIX.
9884*** Therefore, libtool is disabling shared libraries support. If you
9885*** really care for shared libraries, you may want to modify your PATH
9886*** so that a non-GNU linker is found, and then restart.
9887
9888EOF
9889 fi
9890 ;;
9891
9892 amigaos*)
9893 archive_cmds_GCJ='$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)'
9894 hardcode_libdir_flag_spec_GCJ='-L$libdir'
9895 hardcode_minus_L_GCJ=yes
9896
9897 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9898 # that the semantics of dynamic libraries on AmigaOS, at least up
9899 # to version 4, is to share data among multiple programs linked
9900 # with the same dynamic library. Since this doesn't match the
9901 # behavior of shared libraries on other platforms, we can't use
9902 # them.
9903 ld_shlibs_GCJ=no
9904 ;;
9905
9906 beos*)
9907 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
9908 allow_undefined_flag_GCJ=unsupported
9909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9910 # support --undefined. This deserves some investigation. FIXME
9911 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9912 else
9913 ld_shlibs_GCJ=no
9914 fi
9915 ;;
9916
9917 cygwin* | mingw* | pw32*)
9918 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
9919 # no search path for DLLs.
9920 hardcode_libdir_flag_spec_GCJ='-L$libdir'
9921 allow_undefined_flag_GCJ=unsupported
9922 always_export_symbols_GCJ=yes
9923
9924 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
9925 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
9926 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
9927 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
9928 else $CC -o impgen impgen.c ; fi)~
9929 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
9930
9931 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
9932
9933 # cygwin and mingw dlls have different entry points and sets of symbols
9934 # to exclude.
9935 # FIXME: what about values for MSVC?
9936 dll_entry=__cygwin_dll_entry@12
9937 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
9938 case $host_os in
9939 mingw*)
9940 # mingw values
9941 dll_entry=_DllMainCRTStartup@12
9942 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
9943 ;;
9944 esac
9945
9946 # mingw and cygwin differ, and it's simplest to just exclude the union
9947 # of the two symbol sets.
9948 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
9949
9950 # recent cygwin and mingw systems supply a stub DllMain which the user
9951 # can override, but on older systems we have to supply one (in ltdll.c)
9952 if test "x$lt_cv_need_dllmain" = "xyes"; then
9953 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
9954 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~
9955 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
9956 else
9957 ltdll_obj=
9958 ltdll_cmds=
9959 fi
9960
9961 # Extract the symbol export list from an `--export-all' def file,
9962 # then regenerate the def file from the symbol export list, so that
9963 # the compiled dll only exports the symbol export list.
9964 # Be careful not to strip the DATA tag left by newer dlltools.
9965 export_symbols_cmds_GCJ="$ltdll_cmds"'
9966 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
9967 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
9968
9969 # If the export-symbols file already is a .def file (1st line
9970 # is EXPORTS), use it as is.
9971 # If DATA tags from a recent dlltool are present, honour them!
9972 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
9973 cp $export_symbols $output_objdir/$soname-def;
9974 else
9975 echo EXPORTS > $output_objdir/$soname-def;
9976 _lt_hint=1;
9977 cat $export_symbols | while read symbol; do
9978 set dummy \$symbol;
9979 case \$# in
9980 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
9981 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
9982 esac;
9983 _lt_hint=`expr 1 + \$_lt_hint`;
9984 done;
9985 fi~
9986 '"$ltdll_cmds"'
9987 $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~
9988 $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~
9989 $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~
9990 $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~
9991 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
9992 ;;
9993
9994 darwin* | rhapsody*)
9995 allow_undefined_flag_GCJ='-undefined suppress'
9996 # FIXME: Relying on posixy $() will cause problems for
9997 # cross-compilation, but unfortunately the echo tests do not
9998 # yet detect zsh echo's removal of \ escapes.
9999 archive_cmds_GCJ='$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)'
10000 # We need to add '_' to the symbols in $export_symbols first
10001 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
10002 hardcode_direct_GCJ=yes
10003 hardcode_shlibpath_var_GCJ=no
10004 whole_archive_flag_spec_GCJ='-all_load $convenience'
10005 ;;
10006
10007 netbsd*)
10008 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10009 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10010 wlarc=
10011 else
10012 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10014 fi
10015 ;;
10016
10017 solaris* | sysv5*)
10018 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
10019 ld_shlibs_GCJ=no
10020 cat <<EOF 1>&2
10021
10022*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10023*** create shared libraries on Solaris systems. Therefore, libtool
10024*** is disabling shared libraries support. We urge you to upgrade GNU
10025*** binutils to release 2.9.1 or newer. Another option is to modify
10026*** your PATH or compiler configuration so that the native linker is
10027*** used, and then restart.
10028
10029EOF
10030 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10033 else
10034 ld_shlibs_GCJ=no
10035 fi
10036 ;;
10037
10038 sunos4*)
10039 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10040 wlarc=
10041 hardcode_direct_GCJ=yes
10042 hardcode_shlibpath_var_GCJ=no
10043 ;;
10044
10045 *)
10046 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10049 else
10050 ld_shlibs_GCJ=no
10051 fi
10052 ;;
10053 esac
10054
10055 if test "$ld_shlibs_GCJ" = yes; then
10056 runpath_var=LD_RUN_PATH
10057 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
10058 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
10059 case $host_os in
10060 cygwin* | mingw* | pw32*)
10061 # dlltool doesn't understand --whole-archive et. al.
10062 whole_archive_flag_spec_GCJ=
10063 ;;
10064 *)
10065 # ancient GNU ld didn't support --whole-archive et. al.
10066 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
10067 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10068 else
10069 whole_archive_flag_spec_GCJ=
10070 fi
10071 ;;
10072 esac
10073 fi
10074 else
10075 # PORTME fill in a description of your system's linker (not GNU ld)
10076 case $host_os in
10077 aix3*)
10078 allow_undefined_flag_GCJ=unsupported
10079 always_export_symbols_GCJ=yes
10080 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10081 # Note: this linker hardcodes the directories in LIBPATH if there
10082 # are no directories specified by -L.
10083 hardcode_minus_L_GCJ=yes
10084 if test "$GCC" = yes && test -z "$link_static_flag"; then
10085 # Neither direct hardcoding nor static linking is supported with a
10086 # broken collect2.
10087 hardcode_direct_GCJ=unsupported
10088 fi
10089 ;;
10090
10091 aix4* | aix5*)
10092 if test "$host_cpu" = ia64; then
10093 # On IA64, the linker does run time linking by default, so we don't
10094 # have to do anything special.
10095 aix_use_runtimelinking=no
10096 exp_sym_flag='-Bexport'
10097 no_entry_flag=""
10098 else
10099 aix_use_runtimelinking=no
10100
10101 # Test if we are trying to use run time linking or normal
10102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10103 # need to do runtime linking.
10104 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10105 for ld_flag in $LDFLAGS; do
10106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10107 aix_use_runtimelinking=yes
10108 break
10109 fi
10110 done
10111 esac
10112
10113 exp_sym_flag='-bexport'
10114 no_entry_flag='-bnoentry'
10115 fi
10116
10117 # When large executables or shared objects are built, AIX ld can
10118 # have problems creating the table of contents. If linking a library
10119 # or program results in "error TOC overflow" add -mminimal-toc to
10120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10122
10123 archive_cmds_GCJ=''
10124 hardcode_direct_GCJ=yes
10125 hardcode_libdir_separator_GCJ=':'
10126 link_all_deplibs_GCJ=yes
10127
10128 if test "$GCC" = yes; then
10129 case $host_os in aix4.012|aix4.012.*)
10130 # We only want to do this on AIX 4.2 and lower, the check
10131 # below for broken collect2 doesn't work under 4.3+
10132 collect2name=`${CC} -print-prog-name=collect2`
10133 if test -f "$collect2name" && \
10134 strings "$collect2name" | grep resolve_lib_name >/dev/null
10135 then
10136 # We have reworked collect2
10137 hardcode_direct_GCJ=yes
10138 else
10139 # We have old collect2
10140 hardcode_direct_GCJ=unsupported
10141 # It fails to find uninstalled libraries when the uninstalled
10142 # path is not listed in the libpath. Setting hardcode_minus_L
10143 # to unsupported forces relinking
10144 hardcode_minus_L_GCJ=yes
10145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10146 hardcode_libdir_separator_GCJ=
10147 fi
10148 esac
10149 shared_flag='-shared'
10150 else
10151 # not using gcc
10152 if test "$host_cpu" = ia64; then
10153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10154 # chokes on -Wl,-G. The following line is correct:
10155 shared_flag='-G'
10156 else
10157 if test "$aix_use_runtimelinking" = yes; then
10158 shared_flag='${wl}-G'
10159 else
10160 shared_flag='${wl}-bM:SRE'
10161 fi
10162 fi
10163 fi
10164
10165 # It seems that -bexpall does not export symbols beginning with
10166 # underscore (_), so it is better to generate a list of symbols to export.
10167 always_export_symbols_GCJ=yes
10168 if test "$aix_use_runtimelinking" = yes; then
10169 # Warning - without using the other runtime loading flags (-brtl),
10170 # -berok will link without error, but may produce a broken library.
10171 allow_undefined_flag_GCJ='-berok'
10172 # Determine the default libpath from the value encoded in an empty executable.
10173 cat >conftest.$ac_ext <<_ACEOF
10174#line 10174 "configure"
10175#include "confdefs.h"
10176
10177int
10178main ()
10179{
10180
10181 ;
10182 return 0;
10183}
10184_ACEOF
10185rm -f conftest.$ac_objext conftest$ac_exeext
10186if { (eval echo "$as_me:10186: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>&5
10188 ac_status=$?
10189 echo "$as_me:10189: \$? = $ac_status" >&5
10190 (exit $ac_status); } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:10192: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:10195: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197
10198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10199# Check for a 64-bit object if we didn't find anything.
10200if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10201else
10202 echo "$as_me: failed program was:" >&5
10203cat conftest.$ac_ext >&5
10204fi
10205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10207
10208 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10209 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10210 else
10211 if test "$host_cpu" = ia64; then
10212 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
10213 allow_undefined_flag_GCJ="-z nodefs"
10214 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10215 else
10216 # Determine the default libpath from the value encoded in an empty executable.
10217 cat >conftest.$ac_ext <<_ACEOF
10218#line 10218 "configure"
10219#include "confdefs.h"
10220
10221int
10222main ()
10223{
10224
10225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (eval echo "$as_me:10230: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:10233: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (eval echo "$as_me:10236: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:10239: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241
10242aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10243# Check for a 64-bit object if we didn't find anything.
10244if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10245else
10246 echo "$as_me: failed program was:" >&5
10247cat conftest.$ac_ext >&5
10248fi
10249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10250if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10251
10252 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10253 # Warning - without using the other run time loading flags,
10254 # -berok will link without error, but may produce a broken library.
10255 no_undefined_flag_GCJ=' ${wl}-bernotok'
10256 allow_undefined_flag_GCJ=' ${wl}-berok'
10257 # -bexpall does not export symbols beginning with underscore (_)
10258 always_export_symbols_GCJ=yes
10259 # Exported symbols can be pulled into shared objects from archives
10260 whole_archive_flag_spec_GCJ=' '
10261 archive_cmds_need_lc_GCJ=yes
10262 # This is similar to how AIX traditionally builds it's shared libraries.
10263 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10264 fi
10265 fi
10266 ;;
10267
10268 amigaos*)
10269 archive_cmds_GCJ='$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)'
10270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10271 hardcode_minus_L_GCJ=yes
10272 # see comment about different semantics on the GNU ld section
10273 ld_shlibs_GCJ=no
10274 ;;
10275
10276 bsdi4*)
10277 export_dynamic_flag_spec_GCJ=-rdynamic
10278 ;;
10279
10280 cygwin* | mingw* | pw32*)
10281 # When not using gcc, we currently assume that we are using
10282 # Microsoft Visual C++.
10283 # hardcode_libdir_flag_spec is actually meaningless, as there is
10284 # no search path for DLLs.
10285 hardcode_libdir_flag_spec_GCJ=' '
10286 allow_undefined_flag_GCJ=unsupported
10287 # Tell ltmain to make .lib files, not .a files.
10288 libext=lib
10289 # FIXME: Setting linknames here is a bad hack.
10290 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10291 # The linker will automatically build a .lib file if we build a DLL.
10292 old_archive_From_new_cmds_GCJ='true'
10293 # FIXME: Should let the user specify the lib program.
10294 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
10295 fix_srcfile_path='`cygpath -w "$srcfile"`'
10296 ;;
10297
10298 dgux*)
10299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10301 hardcode_shlibpath_var_GCJ=no
10302 ;;
10303
10304 freebsd1*)
10305 ld_shlibs_GCJ=no
10306 ;;
10307
10308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10309 # support. Future versions do this automatically, but an explicit c++rt0.o
10310 # does not break anything, and helps significantly (at the cost of a little
10311 # extra space).
10312 freebsd2.2*)
10313 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10314 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10315 hardcode_direct_GCJ=yes
10316 hardcode_shlibpath_var_GCJ=no
10317 ;;
10318
10319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10320 freebsd2*)
10321 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10322 hardcode_direct_GCJ=yes
10323 hardcode_minus_L_GCJ=yes
10324 hardcode_shlibpath_var_GCJ=no
10325 ;;
10326
10327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10328 freebsd*)
10329 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10330 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10331 hardcode_direct_GCJ=yes
10332 hardcode_shlibpath_var_GCJ=no
10333 ;;
10334
10335 hpux9* | hpux10* | hpux11*)
10336 if test $GXX = yes; then
10337 case $host_os in
10338 hpux9*)
10339 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10340 ;;
10341 *)
10342 if test "$host_cpu" = ia64; then
10343 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 else
10345 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10346 fi
10347 ;;
10348 esac
10349 else
10350 case $host_os in
10351 hpux9*)
10352 archive_cmds_GCJ='$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'
10353 ;;
10354 *)
10355 if test "$host_cpu" = ia64; then
10356 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10357 else
10358 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10359 fi
10360 ;;
10361 esac
10362 fi
10363 if test "$host_cpu" = ia64; then
10364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10365 hardcode_direct_GCJ=no
10366 hardcode_shlibpath_var_GCJ=no
10367 else
10368 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
10369 hardcode_libdir_separator_GCJ=:
10370 hardcode_direct_GCJ=yes
10371 fi
10372 # hardcode_minus_L: Not really in the search PATH,
10373 # but as the default location of the library.
10374 hardcode_minus_L_GCJ=yes
10375 export_dynamic_flag_spec_GCJ='${wl}-E'
10376 ;;
10377
10378 irix5* | irix6*)
10379 if test "$GCC" = yes; then
10380 archive_cmds_GCJ='$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'
10381 else
10382 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10383 fi
10384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10385 hardcode_libdir_separator_GCJ=:
10386 link_all_deplibs_GCJ=yes
10387 ;;
10388
10389 netbsd*)
10390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10392 else
10393 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10394 fi
10395 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10396 hardcode_direct_GCJ=yes
10397 hardcode_shlibpath_var_GCJ=no
10398 ;;
10399
10400 newsos6)
10401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
10402 hardcode_direct_GCJ=yes
10403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10404 hardcode_libdir_separator_GCJ=:
10405 hardcode_shlibpath_var_GCJ=no
10406 ;;
10407
10408 openbsd*)
10409 hardcode_direct_GCJ=yes
10410 hardcode_shlibpath_var_GCJ=no
10411
10412 case "$host_os" in
10413 openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
10414 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10415 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10416 ;;
10417 *)
10418 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
10419 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
10420 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
10421 export_dynamic_flag_spec_GCJ='${wl}-E'
10422 fi
10423 ;;
10424 esac
10425 ;;
10426
10427 os2*)
10428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10429 hardcode_minus_L_GCJ=yes
10430 allow_undefined_flag_GCJ=unsupported
10431 archive_cmds_GCJ='$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'
10432 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10433 ;;
10434
10435 osf3*)
10436 if test "$GCC" = yes; then
10437 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10438 archive_cmds_GCJ='$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'
10439 else
10440 allow_undefined_flag_GCJ=' -expect_unresolved \*'
10441 archive_cmds_GCJ='$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'
10442 fi
10443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10444 hardcode_libdir_separator_GCJ=:
10445 ;;
10446
10447 osf4* | osf5*) # as osf3* with the addition of -msym flag
10448 if test "$GCC" = yes; then
10449 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10450 archive_cmds_GCJ='$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'
10451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10452 else
10453 allow_undefined_flag_GCJ=' -expect_unresolved \*'
10454 archive_cmds_GCJ='$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'
10455 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10456 $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'
10457
10458 # Both c and cxx compiler support -rpath directly
10459 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
10460 fi
10461 hardcode_libdir_separator_GCJ=:
10462 ;;
10463
10464 sco3.2v5*)
10465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_shlibpath_var_GCJ=no
10467 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
10468 runpath_var=LD_RUN_PATH
10469 hardcode_runpath_var=yes
10470 ;;
10471
10472 solaris*)
10473 no_undefined_flag_GCJ=' -z defs'
10474 if test "$GXX" = yes; then
10475 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10476 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10477 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10478 else
10479 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10481 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10482 fi
10483 hardcode_libdir_flag_spec_GCJ='-R$libdir'
10484 hardcode_shlibpath_var_GCJ=no
10485 case $host_os in
10486 solaris2.[0-5] | solaris2.[0-5].*) ;;
10487 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10488 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
10489 esac
10490 link_all_deplibs_GCJ=yes
10491 ;;
10492
10493 sunos4*)
10494 if test "x$host_vendor" = xsequent; then
10495 # Use $CC to link under sequent, because it throws in some extra .o
10496 # files that make .init and .fini sections work.
10497 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10498 else
10499 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10500 fi
10501 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10502 hardcode_direct_GCJ=yes
10503 hardcode_minus_L_GCJ=yes
10504 hardcode_shlibpath_var_GCJ=no
10505 ;;
10506
10507 sysv4)
10508 if test "x$host_vendor" = xsni; then
10509 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
10510 hardcode_direct_GCJ=yes # is this really true???
10511 else
10512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
10514 fi
10515 runpath_var='LD_RUN_PATH'
10516 hardcode_shlibpath_var_GCJ=no
10517 ;;
10518
10519 sysv4.3*)
10520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521 hardcode_shlibpath_var_GCJ=no
10522 export_dynamic_flag_spec_GCJ='-Bexport'
10523 ;;
10524
10525 sysv4*MP*)
10526 if test -d /usr/nec; then
10527 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528 hardcode_shlibpath_var_GCJ=no
10529 runpath_var=LD_RUN_PATH
10530 hardcode_runpath_var=yes
10531 ld_shlibs_GCJ=yes
10532 fi
10533 ;;
10534
10535 sysv4.2uw2*)
10536 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct_GCJ=yes
10538 hardcode_minus_L_GCJ=no
10539 hardcode_shlibpath_var_GCJ=no
10540 hardcode_runpath_var=yes
10541 runpath_var=LD_RUN_PATH
10542 ;;
10543
10544 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10545 no_undefined_flag_GCJ='${wl}-z ${wl}text'
10546 if test "$GCC" = yes; then
10547 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10548 else
10549 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10550 fi
10551 runpath_var='LD_RUN_PATH'
10552 hardcode_shlibpath_var_GCJ=no
10553 ;;
10554
10555 sysv5*)
10556 no_undefined_flag_GCJ=' -z text'
10557 # $CC -shared without GNU ld will not create a library from C++
10558 # object files and a static libstdc++, better avoid it by now
10559 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10560 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10562 hardcode_libdir_flag_spec_GCJ=
10563 hardcode_shlibpath_var_GCJ=no
10564 runpath_var='LD_RUN_PATH'
10565 ;;
10566
10567 uts4*)
10568 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_libdir_flag_spec_GCJ='-L$libdir'
10570 hardcode_shlibpath_var_GCJ=no
10571 ;;
10572
10573 *)
10574 ld_shlibs_GCJ=no
10575 ;;
10576 esac
10577 fi
10578
10579echo "$as_me:10579: result: $ld_shlibs_GCJ" >&5
10580echo "${ECHO_T}$ld_shlibs_GCJ" >&6
10581test "$ld_shlibs_GCJ" = no && can_build_shared=no
10582
10583variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10584if test "$GCC" = yes; then
10585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10586fi
10587
10588#
10589# Do we need to explicitly link libc?
10590#
10591archive_cmds_need_lc_GCJ=yes
10592if test "$enable_shared" = yes && test "$GCC" = yes; then
10593 case $archive_cmds_GCJ in
10594 *'~'*)
10595 # FIXME: we may have to deal with multi-command sequences.
10596 ;;
10597 '$CC '*)
10598 # Test whether the compiler implicitly links with -lc since on some
10599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10600 # to ld, don't add -lc before -lgcc.
10601 echo "$as_me:10601: checking whether -lc should be explicitly linked in" >&5
10602echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10603 $rm conftest*
10604 echo 'static int dummy;' > conftest.$ac_ext
10605
10606 if { (eval echo "$as_me:10606: \"$ac_compile\"") >&5
10607 (eval $ac_compile) 2>&5
10608 ac_status=$?
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } 2>conftest.err; then
10611 soname=conftest
10612 lib=conftest
10613 libobjs=conftest.$ac_objext
10614 deplibs=
10615 wl=$lt_prog_compiler_wl_GCJ
10616 compiler_flags=-v
10617 linker_flags=-v
10618 verstring=
10619 output_objdir=.
10620 libname=conftest
10621 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
10622 allow_undefined_flag_GCJ=
10623 if { (eval echo "$as_me:10623: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10624 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10625 ac_status=$?
10626 echo "$as_me:10626: \$? = $ac_status" >&5
10627 (exit $ac_status); }
10628 then
10629 archive_cmds_need_lc_GCJ=no
10630 else
10631 archive_cmds_need_lc_GCJ=yes
10632 fi
10633 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
10634 else
10635 cat conftest.err 1>&5
10636 fi
10637 $rm conftest*
10638 echo "$as_me:10638: result: $archive_cmds_need_lc_GCJ" >&5
10639echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
10640 ;;
10641 esac
10642fi
10643
10644echo "$as_me:10644: checking how to hardcode library paths into programs" >&5
10645echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10646hardcode_action_GCJ=
10647if test -n "$hardcode_libdir_flag_spec_GCJ" || \
10648 test -n "$runpath_var GCJ"; then
10649
10650 # We can hardcode non-existant directories.
10651 if test "$hardcode_direct_GCJ" != no &&
10652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10653 # have to relink, otherwise we might link with an installed library
10654 # when we should be linking with a yet-to-be-installed one
10655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
10656 test "$hardcode_minus_L_GCJ" != no; then
10657 # Linking always hardcodes the temporary library directory.
10658 hardcode_action_GCJ=relink
10659 else
10660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10661 hardcode_action_GCJ=immediate
10662 fi
10663else
10664 # We cannot hardcode anything, or else we can only hardcode existing
10665 # directories.
10666 hardcode_action_GCJ=unsupported
10667fi
10668echo "$as_me:10668: result: $hardcode_action_GCJ" >&5
10669echo "${ECHO_T}$hardcode_action_GCJ" >&6
10670
10671if test "$hardcode_action_GCJ" = relink; then
10672 # Fast installation is not supported
10673 enable_fast_install=no
10674elif test "$shlibpath_overrides_runpath" = yes ||
10675 test "$enable_shared" = no; then
10676 # Fast installation is not necessary
10677 enable_fast_install=needless
10678fi
10679
10680striplib=
10681old_striplib=
10682echo "$as_me:10682: checking whether stripping libraries is possible" >&5
10683echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10684if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10686 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10687 echo "$as_me:10687: result: yes" >&5
10688echo "${ECHO_T}yes" >&6
10689else
10690 echo "$as_me:10690: result: no" >&5
10691echo "${ECHO_T}no" >&6
10692fi
10693
10694echo "$as_me:10694: checking dynamic linker characteristics" >&5
10695echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10696library_names_spec=
10697libname_spec='lib$name'
10698soname_spec=
10699postinstall_cmds=
10700postuninstall_cmds=
10701finish_cmds=
10702finish_eval=
10703shlibpath_var=
10704shlibpath_overrides_runpath=unknown
10705version_type=none
10706dynamic_linker="$host_os ld.so"
10707sys_lib_dlsearch_path_spec="/lib /usr/lib"
10708sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10709need_lib_prefix=unknown
10710hardcode_into_libs=no
10711
10712# when you set need_version to no, make sure it does not cause -set_version
10713# flags to be left without arguments
10714need_version=unknown
10715
10716case $host_os in
10717aix3*)
10718 version_type=linux
10719 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10720 shlibpath_var=LIBPATH
10721
10722 # AIX 3 has no versioning support, so we append a major version to the name.
10723 soname_spec='${libname}${release}.so$major'
10724 ;;
10725
10726aix4* | aix5*)
10727 version_type=linux
10728 if test "$host_cpu" = ia64; then
10729 # AIX 5 supports IA64
10730 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 else
10733 # With GCC up to 2.95.x, collect2 would create an import file
10734 # for dependence libraries. The import file would start with
10735 # the line `#! .'. This would cause the generated library to
10736 # depend on `.', always an invalid library. This was fixed in
10737 # development snapshots of GCC prior to 3.0.
10738 case $host_os in
10739 aix4 | aix4.[01] | aix4.[01].*)
10740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10741 echo ' yes '
10742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10743 :
10744 else
10745 can_build_shared=no
10746 fi
10747 ;;
10748 esac
10749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10750 # soname into executable. Probably we can add versioning support to
10751 # collect2, so additional links can be useful in future.
10752 if test "$aix_use_runtimelinking" = yes; then
10753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10754 # instead of lib<name>.a to let people know that these are not
10755 # typical AIX shared libraries.
10756 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10757 else
10758 # We preserve .a as extension for shared libraries through AIX4.2
10759 # and later when we are not doing run time linking.
10760 library_names_spec='${libname}${release}.a $libname.a'
10761 soname_spec='${libname}${release}.so$major'
10762 fi
10763 shlibpath_var=LIBPATH
10764 deplibs_check_method=pass_all
10765 fi
10766 ;;
10767
10768amigaos*)
10769 library_names_spec='$libname.ixlibrary $libname.a'
10770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10771 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'
10772 ;;
10773
10774beos*)
10775 library_names_spec='${libname}.so'
10776 dynamic_linker="$host_os ld.so"
10777 shlibpath_var=LIBRARY_PATH
10778 ;;
10779
10780bsdi4*)
10781 version_type=linux
10782 need_version=no
10783 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10784 soname_spec='${libname}${release}.so$major'
10785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10789 # the default ld.so.conf also contains /usr/contrib/lib and
10790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10791 # libtool to hard-code these into programs
10792 ;;
10793
10794cygwin* | mingw* | pw32*)
10795 version_type=windows
10796 need_version=no
10797 need_lib_prefix=no
10798 case $GCC,$host_os in
10799 yes,cygwin*)
10800 library_names_spec='$libname.dll.a'
10801 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10802 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10803 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10804 dldir=$destdir/`dirname \$dlpath`~
10805 test -d \$dldir || mkdir -p \$dldir~
10806 $install_prog .libs/$dlname \$dldir/$dlname'
10807 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10808 dlpath=$dir/\$dldll~
10809 $rm \$dlpath'
10810 ;;
10811 yes,mingw*)
10812 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
10814 ;;
10815 yes,pw32*)
10816 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10817 ;;
10818 *)
10819 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10820 ;;
10821 esac
10822 dynamic_linker='Win32 ld.exe'
10823 # FIXME: first we should search . and the directory the executable is in
10824 shlibpath_var=PATH
10825 ;;
10826
10827darwin* | rhapsody*)
10828 dynamic_linker="$host_os dyld"
10829 version_type=darwin
10830 need_lib_prefix=no
10831 need_version=no
10832 # FIXME: Relying on posixy $() will cause problems for
10833 # cross-compilation, but unfortunately the echo tests do not
10834 # yet detect zsh echo's removal of \ escapes.
10835 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)'
10836 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10837 shlibpath_overrides_runpath=yes
10838 shlibpath_var=DYLD_LIBRARY_PATH
10839 ;;
10840
10841dgux*)
10842 version_type=linux
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10846 soname_spec='${libname}${release}.so$major'
10847 shlibpath_var=LD_LIBRARY_PATH
10848 ;;
10849
10850freebsd1*)
10851 dynamic_linker=no
10852 ;;
10853
10854freebsd*)
10855 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10856 version_type=freebsd-$objformat
10857 case $version_type in
10858 freebsd-elf*)
10859 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10860 need_version=no
10861 need_lib_prefix=no
10862 ;;
10863 freebsd-*)
10864 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10865 need_version=yes
10866 ;;
10867 esac
10868 shlibpath_var=LD_LIBRARY_PATH
10869 case $host_os in
10870 freebsd2*)
10871 shlibpath_overrides_runpath=yes
10872 ;;
10873 freebsd3.01* | freebsdelf3.01*)
10874 shlibpath_overrides_runpath=yes
10875 hardcode_into_libs=yes
10876 ;;
10877 *) # from 3.2 on
10878 shlibpath_overrides_runpath=no
10879 hardcode_into_libs=yes
10880 ;;
10881 esac
10882 ;;
10883
10884gnu*)
10885 version_type=linux
10886 need_lib_prefix=no
10887 need_version=no
10888 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10889 soname_spec='${libname}${release}.so$major'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 hardcode_into_libs=yes
10892 ;;
10893
10894hpux9* | hpux10* | hpux11*)
10895 # Give a soname corresponding to the major version so that dld.sl refuses to
10896 # link against other versions.
10897 version_type=sunos
10898 need_lib_prefix=no
10899 need_version=no
10900 if test "$host_cpu" = ia64; then
10901 hardcode_into_libs=yes
10902 dynamic_linker="$host_os dld.so"
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10905 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10906 soname_spec='${libname}${release}.so$major'
10907 if test "X$HPUX_IA64_MODE" = X32; then
10908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10909 else
10910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10911 fi
10912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10913 else
10914 dynamic_linker="$host_os dld.sl"
10915 shlibpath_var=SHLIB_PATH
10916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10917 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10918 soname_spec='${libname}${release}.sl$major'
10919 fi
10920 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10921 postinstall_cmds='chmod 555 $lib'
10922 ;;
10923
10924irix5* | irix6*)
10925 version_type=irix
10926 need_lib_prefix=no
10927 need_version=no
10928 soname_spec='${libname}${release}.so$major'
10929 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10930 case $host_os in
10931 irix5*)
10932 libsuff= shlibsuff=
10933 ;;
10934 *)
10935 case $LD in # libtool.m4 will add one of these switches to LD
10936 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10937 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10938 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10939 *) libsuff= shlibsuff= libmagic=never-match;;
10940 esac
10941 ;;
10942 esac
10943 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10944 shlibpath_overrides_runpath=no
10945 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10946 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10947 ;;
10948
10949# No shared lib support for Linux oldld, aout, or coff.
10950linux*oldld* | linux*aout* | linux*coff*)
10951 dynamic_linker=no
10952 ;;
10953
10954# This must be Linux ELF.
10955linux*)
10956 version_type=linux
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10960 soname_spec='${libname}${release}.so$major'
10961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=no
10964 # This implies no fast_install, which is unacceptable.
10965 # Some rework will be needed to allow for fast_install
10966 # before this can be enabled.
10967 hardcode_into_libs=yes
10968
10969 # We used to test for /lib/ld.so.1 and disable shared libraries on
10970 # powerpc, because MkLinux only supported shared libraries with the
10971 # GNU dynamic linker. Since this was broken with cross compilers,
10972 # most powerpc-linux boxes support dynamic linking these days and
10973 # people can always --disable-shared, the test was removed, and we
10974 # assume the GNU/Linux dynamic linker is in use.
10975 dynamic_linker='GNU/Linux ld.so'
10976 ;;
10977
10978netbsd*)
10979 version_type=sunos
10980 need_lib_prefix=no
10981 need_version=no
10982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10983 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10985 dynamic_linker='NetBSD (a.out) ld.so'
10986 else
10987 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10988 soname_spec='${libname}${release}.so$major'
10989 dynamic_linker='NetBSD ld.elf_so'
10990 fi
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 hardcode_into_libs=yes
10994 ;;
10995
10996newsos6)
10997 version_type=linux
10998 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes
11001 ;;
11002
11003nto-qnx)
11004 version_type=linux
11005 need_lib_prefix=no
11006 need_version=no
11007 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11008 soname_spec='${libname}${release}.so$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath=yes
11011 ;;
11012
11013openbsd*)
11014 version_type=sunos
11015 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 file_magic_cmd=/usr/bin/file
11019 file_magic_test_file=`echo /usr/lib/libc.so.*`
11020 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
11021 deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
11022 else
11023 deplibs_check_method='file_magic OpenBSD.* shared library'
11024 fi
11025 ;;
11026
11027os2*)
11028 libname_spec='$name'
11029 need_lib_prefix=no
11030 library_names_spec='$libname.dll $libname.a'
11031 dynamic_linker='OS/2 ld.exe'
11032 shlibpath_var=LIBPATH
11033 ;;
11034
11035osf3* | osf4* | osf5*)
11036 version_type=osf
11037 need_version=no
11038 soname_spec='${libname}${release}.so'
11039 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11043 ;;
11044
11045sco3.2v5*)
11046 version_type=osf
11047 soname_spec='${libname}${release}.so$major'
11048 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 ;;
11051
11052solaris*)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11057 soname_spec='${libname}${release}.so$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11061 # ldd complains unless libraries are executable
11062 postinstall_cmds='chmod +x $lib'
11063 ;;
11064
11065sunos4*)
11066 version_type=sunos
11067 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 if test "$with_gnu_ld" = yes; then
11072 need_lib_prefix=no
11073 fi
11074 need_version=yes
11075 ;;
11076
11077sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11078 version_type=linux
11079 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11080 soname_spec='${libname}${release}.so$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 case $host_vendor in
11083 sni)
11084 shlibpath_overrides_runpath=no
11085 ;;
11086 motorola)
11087 need_lib_prefix=no
11088 need_version=no
11089 shlibpath_overrides_runpath=no
11090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11091 ;;
11092 esac
11093 ;;
11094
11095sysv4*MP*)
11096 if test -d /usr/nec ;then
11097 version_type=linux
11098 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
11099 soname_spec='$libname.so.$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 fi
11102 ;;
11103
11104uts4*)
11105 version_type=linux
11106 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11107 soname_spec='${libname}${release}.so$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 ;;
11110
11111*)
11112 dynamic_linker=no
11113 ;;
11114esac
11115echo "$as_me:11115: result: $dynamic_linker" >&5
11116echo "${ECHO_T}$dynamic_linker" >&6
11117test "$dynamic_linker" = no && can_build_shared=no
11118
11119if test "x$enable_dlopen" != xyes; then
11120 enable_dlopen=unknown
11121 enable_dlopen_self=unknown
11122 enable_dlopen_self_static=unknown
11123else
11124 lt_cv_dlopen=no
11125 lt_cv_dlopen_libs=
11126
11127 case $host_os in
11128 beos*)
11129 lt_cv_dlopen="load_add_on"
11130 lt_cv_dlopen_libs=
11131 lt_cv_dlopen_self=yes
11132 ;;
11133
11134 cygwin* | mingw* | pw32*)
11135 lt_cv_dlopen="LoadLibrary"
11136 lt_cv_dlopen_libs=
11137 ;;
11138
11139 *)
11140 echo "$as_me:11140: checking for shl_load" >&5
11141echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11142if test "${ac_cv_func_shl_load+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144else
11145 cat >conftest.$ac_ext <<_ACEOF
11146#line 11146 "configure"
11147#include "confdefs.h"
11148/* System header to define __stub macros and hopefully few prototypes,
11149 which can conflict with char shl_load (); below. */
11150#include <assert.h>
11151/* Override any gcc2 internal prototype to avoid an error. */
11152#ifdef __cplusplus
11153extern "C"
11154#endif
11155/* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11157char shl_load ();
11158char (*f) ();
11159
11160int
11161main ()
11162{
11163/* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166#if defined (__stub_shl_load) || defined (__stub___shl_load)
11167choke me
11168#else
11169f = shl_load;
11170#endif
11171
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext conftest$ac_exeext
11177if { (eval echo "$as_me:11177: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>&5
11179 ac_status=$?
11180 echo "$as_me:11180: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -s conftest$ac_exeext'
11183 { (eval echo "$as_me:11183: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:11186: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 ac_cv_func_shl_load=yes
11189else
11190 echo "$as_me: failed program was:" >&5
11191cat conftest.$ac_ext >&5
11192ac_cv_func_shl_load=no
11193fi
11194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11195fi
11196echo "$as_me:11196: result: $ac_cv_func_shl_load" >&5
11197echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11198if test $ac_cv_func_shl_load = yes; then
11199 lt_cv_dlopen="shl_load"
11200else
11201 echo "$as_me:11201: checking for shl_load in -ldld" >&5
11202echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11203if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205else
11206 ac_check_lib_save_LIBS=$LIBS
11207LIBS="-ldld $LIBS"
11208cat >conftest.$ac_ext <<_ACEOF
11209#line 11209 "configure"
11210#include "confdefs.h"
11211
11212/* Override any gcc2 internal prototype to avoid an error. */
11213#ifdef __cplusplus
11214extern "C"
11215#endif
11216/* We use char because int might match the return type of a gcc2
11217 builtin and then its argument prototype would still apply. */
11218char shl_load ();
11219int
11220main ()
11221{
11222shl_load ();
11223 ;
11224 return 0;
11225}
11226_ACEOF
11227rm -f conftest.$ac_objext conftest$ac_exeext
11228if { (eval echo "$as_me:11228: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>&5
11230 ac_status=$?
11231 echo "$as_me:11231: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -s conftest$ac_exeext'
11234 { (eval echo "$as_me:11234: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:11237: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_lib_dld_shl_load=yes
11240else
11241 echo "$as_me: failed program was:" >&5
11242cat conftest.$ac_ext >&5
11243ac_cv_lib_dld_shl_load=no
11244fi
11245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11246LIBS=$ac_check_lib_save_LIBS
11247fi
11248echo "$as_me:11248: result: $ac_cv_lib_dld_shl_load" >&5
11249echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11250if test $ac_cv_lib_dld_shl_load = yes; then
11251 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11252else
11253 echo "$as_me:11253: checking for dlopen in -ldl" >&5
11254echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11255if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257else
11258 ac_check_lib_save_LIBS=$LIBS
11259LIBS="-ldl $LIBS"
11260cat >conftest.$ac_ext <<_ACEOF
11261#line 11261 "configure"
11262#include "confdefs.h"
11263
11264/* Override any gcc2 internal prototype to avoid an error. */
11265#ifdef __cplusplus
11266extern "C"
11267#endif
11268/* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11270char dlopen ();
11271int
11272main ()
11273{
11274dlopen ();
11275 ;
11276 return 0;
11277}
11278_ACEOF
11279rm -f conftest.$ac_objext conftest$ac_exeext
11280if { (eval echo "$as_me:11280: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11282 ac_status=$?
11283 echo "$as_me:11283: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:11286: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:11289: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_lib_dl_dlopen=yes
11292else
11293 echo "$as_me: failed program was:" >&5
11294cat conftest.$ac_ext >&5
11295ac_cv_lib_dl_dlopen=no
11296fi
11297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11298LIBS=$ac_check_lib_save_LIBS
11299fi
11300echo "$as_me:11300: result: $ac_cv_lib_dl_dlopen" >&5
11301echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11302if test $ac_cv_lib_dl_dlopen = yes; then
11303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11304else
11305 echo "$as_me:11305: checking for dlopen" >&5
11306echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11307if test "${ac_cv_func_dlopen+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309else
11310 cat >conftest.$ac_ext <<_ACEOF
11311#line 11311 "configure"
11312#include "confdefs.h"
11313/* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char dlopen (); below. */
11315#include <assert.h>
11316/* Override any gcc2 internal prototype to avoid an error. */
11317#ifdef __cplusplus
11318extern "C"
11319#endif
11320/* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11322char dlopen ();
11323char (*f) ();
11324
11325int
11326main ()
11327{
11328/* The GNU C library defines this for functions which it implements
11329 to always fail with ENOSYS. Some functions are actually named
11330 something starting with __ and the normal name is an alias. */
11331#if defined (__stub_dlopen) || defined (__stub___dlopen)
11332choke me
11333#else
11334f = dlopen;
11335#endif
11336
11337 ;
11338 return 0;
11339}
11340_ACEOF
11341rm -f conftest.$ac_objext conftest$ac_exeext
11342if { (eval echo "$as_me:11342: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>&5
11344 ac_status=$?
11345 echo "$as_me:11345: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try='test -s conftest$ac_exeext'
11348 { (eval echo "$as_me:11348: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:11351: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_cv_func_dlopen=yes
11354else
11355 echo "$as_me: failed program was:" >&5
11356cat conftest.$ac_ext >&5
11357ac_cv_func_dlopen=no
11358fi
11359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11360fi
11361echo "$as_me:11361: result: $ac_cv_func_dlopen" >&5
11362echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11363if test $ac_cv_func_dlopen = yes; then
11364 lt_cv_dlopen="dlopen"
11365else
11366 echo "$as_me:11366: checking for dlopen in -lsvld" >&5
11367echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11368if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 ac_check_lib_save_LIBS=$LIBS
11372LIBS="-lsvld $LIBS"
11373cat >conftest.$ac_ext <<_ACEOF
11374#line 11374 "configure"
11375#include "confdefs.h"
11376
11377/* Override any gcc2 internal prototype to avoid an error. */
11378#ifdef __cplusplus
11379extern "C"
11380#endif
11381/* We use char because int might match the return type of a gcc2
11382 builtin and then its argument prototype would still apply. */
11383char dlopen ();
11384int
11385main ()
11386{
11387dlopen ();
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext conftest$ac_exeext
11393if { (eval echo "$as_me:11393: \"$ac_link\"") >&5
11394 (eval $ac_link) 2>&5
11395 ac_status=$?
11396 echo "$as_me:11396: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -s conftest$ac_exeext'
11399 { (eval echo "$as_me:11399: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:11402: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_cv_lib_svld_dlopen=yes
11405else
11406 echo "$as_me: failed program was:" >&5
11407cat conftest.$ac_ext >&5
11408ac_cv_lib_svld_dlopen=no
11409fi
11410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11411LIBS=$ac_check_lib_save_LIBS
11412fi
11413echo "$as_me:11413: result: $ac_cv_lib_svld_dlopen" >&5
11414echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11415if test $ac_cv_lib_svld_dlopen = yes; then
11416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11417fi
11418
11419fi
11420
11421fi
11422
11423fi
11424
11425fi
11426
11427 ;;
11428 esac
11429
11430 if test "x$lt_cv_dlopen" != xno; then
11431 enable_dlopen=yes
11432 else
11433 enable_dlopen=no
11434 fi
11435
11436 case $lt_cv_dlopen in
11437 dlopen)
11438 save_CPPFLAGS="$CPPFLAGS"
11439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11440
11441 save_LDFLAGS="$LDFLAGS"
11442 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11443
11444 save_LIBS="$LIBS"
11445 LIBS="$lt_cv_dlopen_libs $LIBS"
11446
11447 echo "$as_me:11447: checking whether a program can dlopen itself" >&5
11448echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11449if test "${lt_cv_dlopen_self+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451else
11452 if test "$cross_compiling" = yes; then :
11453 lt_cv_dlopen_self=cross
11454else
11455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11456 lt_status=$lt_dlunknown
11457 cat > conftest.$ac_ext <<EOF
11458#line 11458 "configure"
11459#include "confdefs.h"
11460
11461#if HAVE_DLFCN_H
11462#include <dlfcn.h>
11463#endif
11464
11465#include <stdio.h>
11466
11467#ifdef RTLD_GLOBAL
11468# define LT_DLGLOBAL RTLD_GLOBAL
11469#else
11470# ifdef DL_GLOBAL
11471# define LT_DLGLOBAL DL_GLOBAL
11472# else
11473# define LT_DLGLOBAL 0
11474# endif
11475#endif
11476
11477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11478 find out it does not work in some platform. */
11479#ifndef LT_DLLAZY_OR_NOW
11480# ifdef RTLD_LAZY
11481# define LT_DLLAZY_OR_NOW RTLD_LAZY
11482# else
11483# ifdef DL_LAZY
11484# define LT_DLLAZY_OR_NOW DL_LAZY
11485# else
11486# ifdef RTLD_NOW
11487# define LT_DLLAZY_OR_NOW RTLD_NOW
11488# else
11489# ifdef DL_NOW
11490# define LT_DLLAZY_OR_NOW DL_NOW
11491# else
11492# define LT_DLLAZY_OR_NOW 0
11493# endif
11494# endif
11495# endif
11496# endif
11497#endif
11498
11499#ifdef __cplusplus
11500extern "C" void exit (int);
11501#endif
11502
11503void fnord() { int i=42;}
11504int main ()
11505{
11506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11507 int status = $lt_dlunknown;
11508
11509 if (self)
11510 {
11511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11512 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11513 /* dlclose (self); */
11514 }
11515
11516 exit (status);
11517}
11518EOF
11519 if { (eval echo "$as_me:11519: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11521 ac_status=$?
11522 echo "$as_me:11522: \$? = $ac_status" >&5
11523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11524 (./conftest; exit; ) 2>/dev/null
11525 lt_status=$?
11526 case x$lt_status in
11527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11529 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11530 esac
11531 else :
11532 # compilation failed
11533 lt_cv_dlopen_self=no
11534 fi
11535fi
11536rm -fr conftest*
11537
11538fi
11539echo "$as_me:11539: result: $lt_cv_dlopen_self" >&5
11540echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11541
11542 if test "x$lt_cv_dlopen_self" = xyes; then
11543 LDFLAGS="$LDFLAGS $link_static_flag"
11544 echo "$as_me:11544: checking whether a statically linked program can dlopen itself" >&5
11545echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11546if test "${lt_cv_dlopen_self_static+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548else
11549 if test "$cross_compiling" = yes; then :
11550 lt_cv_dlopen_self_static=cross
11551else
11552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11553 lt_status=$lt_dlunknown
11554 cat > conftest.$ac_ext <<EOF
11555#line 11555 "configure"
11556#include "confdefs.h"
11557
11558#if HAVE_DLFCN_H
11559#include <dlfcn.h>
11560#endif
11561
11562#include <stdio.h>
11563
11564#ifdef RTLD_GLOBAL
11565# define LT_DLGLOBAL RTLD_GLOBAL
11566#else
11567# ifdef DL_GLOBAL
11568# define LT_DLGLOBAL DL_GLOBAL
11569# else
11570# define LT_DLGLOBAL 0
11571# endif
11572#endif
11573
11574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11575 find out it does not work in some platform. */
11576#ifndef LT_DLLAZY_OR_NOW
11577# ifdef RTLD_LAZY
11578# define LT_DLLAZY_OR_NOW RTLD_LAZY
11579# else
11580# ifdef DL_LAZY
11581# define LT_DLLAZY_OR_NOW DL_LAZY
11582# else
11583# ifdef RTLD_NOW
11584# define LT_DLLAZY_OR_NOW RTLD_NOW
11585# else
11586# ifdef DL_NOW
11587# define LT_DLLAZY_OR_NOW DL_NOW
11588# else
11589# define LT_DLLAZY_OR_NOW 0
11590# endif
11591# endif
11592# endif
11593# endif
11594#endif
11595
11596#ifdef __cplusplus
11597extern "C" void exit (int);
11598#endif
11599
11600void fnord() { int i=42;}
11601int main ()
11602{
11603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11604 int status = $lt_dlunknown;
11605
11606 if (self)
11607 {
11608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11610 /* dlclose (self); */
11611 }
11612
11613 exit (status);
11614}
11615EOF
11616 if { (eval echo "$as_me:11616: \"$ac_link\"") >&5
11617 (eval $ac_link) 2>&5
11618 ac_status=$?
11619 echo "$as_me:11619: \$? = $ac_status" >&5
11620 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11621 (./conftest; exit; ) 2>/dev/null
11622 lt_status=$?
11623 case x$lt_status in
11624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11626 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11627 esac
11628 else :
11629 # compilation failed
11630 lt_cv_dlopen_self_static=no
11631 fi
11632fi
11633rm -fr conftest*
11634
11635fi
11636echo "$as_me:11636: result: $lt_cv_dlopen_self_static" >&5
11637echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11638 fi
11639
11640 CPPFLAGS="$save_CPPFLAGS"
11641 LDFLAGS="$save_LDFLAGS"
11642 LIBS="$save_LIBS"
11643 ;;
11644 esac
11645
11646 case $lt_cv_dlopen_self in
11647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11648 *) enable_dlopen_self=unknown ;;
11649 esac
11650
11651 case $lt_cv_dlopen_self_static in
11652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11653 *) enable_dlopen_self_static=unknown ;;
11654 esac
11655fi
11656
11657# The else clause should only fire when bootstrapping the
11658# libtool distribution, otherwise you forgot to ship ltmain.sh
11659# with your package, and you will get complaints that there are
11660# no rules to generate ltmain.sh.
11661if test -f "$ltmain"; then
11662 # Now quote all the things that may contain metacharacters while being
11663 # careful not to overquote the AC_SUBSTed values. We take copies of the
11664 # variables and quote the copies for generation of the libtool script.
11665 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
11666 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11667 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11668 deplibs_check_method reload_flag reload_cmds need_locks \
11669 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11670 lt_cv_sys_global_symbol_to_c_name_address \
11671 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11672 old_postinstall_cmds old_postuninstall_cmds \
11673 compiler_GCJ \
11674 CC_GCJ \
11675 LD_GCJ \
11676 lt_prog_compiler_wl_GCJ \
11677 lt_prog_compiler_pic_GCJ \
11678 lt_prog_compiler_static_GCJ \
11679 lt_prog_compiler_no_builtin_flag_GCJ \
11680 export_dynamic_flag_spec_GCJ \
11681 thread_safe_flag_spec_GCJ \
11682 whole_archive_flag_spec_GCJ \
11683 old_archive_cmds_GCJ \
11684 old_archive_from_new_cmds_GCJ \
11685 predep_objects_GCJ \
11686 postdep_objects_GCJ \
11687 predeps_GCJ \
11688 postdeps_GCJ \
11689 compiler_lib_search_path_GCJ \
11690 archive_cmds_GCJ \
11691 archive_expsym_cmds_GCJ \
11692 postinstall_cmds_GCJ \
11693 postuninstall_cmds_GCJ \
11694 old_archive_from_expsyms_cmds_GCJ \
11695 allow_undefined_flag_GCJ \
11696 no_undefined_flag_GCJ \
11697 export_symbols_cmds_GCJ \
11698 hardcode_libdir_flag_spec_GCJ \
11699 hardcode_libdir_separator_GCJ \
11700 lt_cv_prog_compiler_c_o_GCJ \
11701 exclude_expsyms_GCJ \
11702 include_expsyms_GCJ; do
11703
11704 case $var in
11705 old_archive_cmds_GCJ | \
11706 old_archive_from_new_cmds_GCJ | \
11707 archive_cmds_GCJ | \
11708 archive_expsym_cmds_GCJ | \
11709 old_archive_from_expsyms_cmds_GCJ | \
11710 export_symbols_cmds_GCJ | \
11711 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11712 postinstall_cmds | postuninstall_cmds | \
11713 old_postinstall_cmds | old_postuninstall_cmds | \
11714 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11715 # Double-quote double-evaled strings.
11716 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11717 ;;
11718 *)
11719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11720 ;;
11721 esac
11722 done
11723
11724 case $lt_echo in
11725 *'\$0 --fallback-echo"')
11726 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11727 ;;
11728 esac
11729
11730cfgfile="$ofile"
11731
11732 cat <<__EOF__ >> "$cfgfile"
11733# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11734
11735# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11736
11737# Shell to use when invoking shell scripts.
11738SHELL=$lt_SHELL
11739
11740# Whether or not to build shared libraries.
11741build_libtool_libs=$enable_shared
11742
11743# Whether or not to build static libraries.
11744build_old_libs=$enable_static
11745
11746# Whether or not to add -lc for building shared libraries.
11747build_libtool_need_lc=$archive_cmds_need_lc_GCJ
11748
11749# Whether or not to optimize for fast installation.
11750fast_install=$enable_fast_install
11751
11752# The host system.
11753host_alias=$host_alias
11754host=$host
11755
11756# An echo program that does not interpret backslashes.
11757echo=$lt_echo
11758
11759# The archiver.
11760AR=$lt_AR
11761AR_FLAGS=$lt_AR_FLAGS
11762
11763# A C compiler.
11764LTCC=$LTCC
11765
11766# A language-specific compiler.
11767CC=$lt_compiler_GCJ
11768
11769# Is the compiler the GNU C compiler?
11770with_gcc=$GCC_GCJ
11771
11772# The linker used to build libraries.
11773LD=$lt_LD_GCJ
11774
11775# Whether we need hard or soft links.
11776LN_S=$lt_LN_S
11777
11778# A BSD-compatible nm program.
11779NM=$lt_NM
11780
11781# A symbol stripping program
11782STRIP=$STRIP
11783
11784# Used to examine libraries when file_magic_cmd begins "file"
11785MAGIC_CMD=$MAGIC_CMD
11786
11787# Used on cygwin: DLL creation program.
11788DLLTOOL="$DLLTOOL"
11789
11790# Used on cygwin: object dumper.
11791OBJDUMP="$OBJDUMP"
11792
11793# Used on cygwin: assembler.
11794AS="$AS"
11795
11796# The name of the directory that contains temporary libtool files.
11797objdir=$objdir
11798
11799# How to create reloadable object files.
11800reload_flag=$lt_reload_flag
11801reload_cmds=$lt_reload_cmds
11802
11803# How to pass a linker flag through the compiler.
11804wl=$lt_lt_prog_compiler_wl_GCJ
11805
11806# Object file suffix (normally "o").
11807objext="$ac_objext"
11808
11809# Old archive suffix (normally "a").
11810libext="$libext"
11811
11812# Executable file suffix (normally "").
11813exeext="$exeext"
11814
11815# Additional compiler flags for building library objects.
11816pic_flag=$lt_lt_prog_compiler_pic_GCJ
11817pic_mode=$pic_mode
11818
11819# What is the maximum length of a command?
11820max_cmd_len=$lt_cv_sys_max_cmd_len
11821
11822# Does compiler simultaneously support -c and -o options?
11823compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
11824
11825# Must we lock files when doing compilation ?
11826need_locks=$lt_need_locks
11827
11828# Do we need the lib prefix for modules?
11829need_lib_prefix=$need_lib_prefix
11830
11831# Do we need a version for libraries?
11832need_version=$need_version
11833
11834# Whether dlopen is supported.
11835dlopen_support=$enable_dlopen
11836
11837# Whether dlopen of programs is supported.
11838dlopen_self=$enable_dlopen_self
11839
11840# Whether dlopen of statically linked programs is supported.
11841dlopen_self_static=$enable_dlopen_self_static
11842
11843# Compiler flag to prevent dynamic linking.
11844link_static_flag=$lt_lt_prog_compiler_static_GCJ
11845
11846# Compiler flag to turn off builtin functions.
11847no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
11848
11849# Compiler flag to allow reflexive dlopens.
11850export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
11851
11852# Compiler flag to generate shared objects directly from archives.
11853whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
11854
11855# Compiler flag to generate thread-safe objects.
11856thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
11857
11858# Library versioning type.
11859version_type=$version_type
11860
11861# Format of library name prefix.
11862libname_spec=$lt_libname_spec
11863
11864# List of archive names. First name is the real one, the rest are links.
11865# The last name is the one that the linker finds with -lNAME.
11866library_names_spec=$lt_library_names_spec
11867
11868# The coded name of the library, if different from the real name.
11869soname_spec=$lt_soname_spec
11870
11871# Commands used to build and install an old-style archive.
11872RANLIB=$lt_RANLIB
11873old_archive_cmds=$lt_old_archive_cmds_GCJ
11874old_postinstall_cmds=$lt_old_postinstall_cmds
11875old_postuninstall_cmds=$lt_old_postuninstall_cmds
11876
11877# Create an old-style archive from a shared archive.
11878old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
11879
11880# Create a temporary old-style archive to link instead of a shared archive.
11881old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
11882
11883# Commands used to build and install a shared archive.
11884archive_cmds=$lt_archive_cmds_GCJ
11885archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
11886postinstall_cmds=$lt_postinstall_cmds
11887postuninstall_cmds=$lt_postuninstall_cmds
11888
11889# Commands to strip libraries.
11890old_striplib=$lt_old_striplib
11891striplib=$lt_striplib
11892
11893# Dependencies to place before the objects being linked to create a
11894# shared library.
11895predep_objects=$lt_predep_objects_GCJ
11896
11897# Dependencies to place after the objects being linked to create a
11898# shared library.
11899postdep_objects=$lt_postdep_objects_GCJ
11900
11901# Dependencies to place before the objects being linked to create a
11902# shared library.
11903predeps=$lt_predeps_GCJ
11904
11905# Dependencies to place after the objects being linked to create a
11906# shared library.
11907postdeps=$lt_postdeps_GCJ
11908
11909# The library search path used internally by the compiler when linking
11910# a shared library.
11911compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
11912
11913# Method to check whether dependent libraries are shared objects.
11914deplibs_check_method=$lt_deplibs_check_method
11915
11916# Command to use when deplibs_check_method == file_magic.
11917file_magic_cmd=$lt_file_magic_cmd
11918
11919# Flag that allows shared libraries with undefined symbols to be built.
11920allow_undefined_flag=$lt_allow_undefined_flag_GCJ
11921
11922# Flag that forces no undefined symbols.
11923no_undefined_flag=$lt_no_undefined_flag_GCJ
11924
11925# Commands used to finish a libtool library installation in a directory.
11926finish_cmds=$lt_finish_cmds
11927
11928# Same as above, but a single script fragment to be evaled but not shown.
11929finish_eval=$lt_finish_eval
11930
11931# Take the output of nm and produce a listing of raw symbols and C names.
11932global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11933
11934# Transform the output of nm in a proper C declaration
11935global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11936
11937# Transform the output of nm in a C name address pair
11938global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11939
11940# This is the shared library runtime path variable.
11941runpath_var=$runpath_var
11942
11943# This is the shared library path variable.
11944shlibpath_var=$shlibpath_var
11945
11946# Is shlibpath searched before the hard-coded library search path?
11947shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11948
11949# How to hardcode a shared library path into an executable.
11950hardcode_action=$hardcode_action_GCJ
11951
11952# Whether we should hardcode library paths into libraries.
11953hardcode_into_libs=$hardcode_into_libs
11954
11955# Flag to hardcode \$libdir into a binary during linking.
11956# This must work even if \$libdir does not exist.
11957hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
11958
11959# Whether we need a single -rpath flag with a separated argument.
11960hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
11961
11962# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11963# resulting binary.
11964hardcode_direct=$hardcode_direct_GCJ
11965
11966# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11967# resulting binary.
11968hardcode_minus_L=$hardcode_minus_L_GCJ
11969
11970# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11971# the resulting binary.
11972hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
11973
11974# Variables whose values should be saved in libtool wrapper scripts and
11975# restored at relink time.
11976variables_saved_for_relink="$variables_saved_for_relink"
11977
11978# Whether libtool must link a program against all its dependency libraries.
11979link_all_deplibs=$link_all_deplibs_GCJ
11980
11981# Compile-time system search path for libraries
11982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11983
11984# Run-time system search path for libraries
11985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11986
11987# Fix the shell variable \$srcfile for the compiler.
11988fix_srcfile_path="$fix_srcfile_path_GCJ"
11989
11990# Set to yes if exported symbols are required.
11991always_export_symbols=$always_export_symbols_GCJ
11992
11993# The commands to list exported symbols.
11994export_symbols_cmds=$lt_export_symbols_cmds_GCJ
11995
11996# The commands to extract the exported symbol list from a shared archive.
11997extract_expsyms_cmds=$lt_extract_expsyms_cmds
11998
11999# Symbols that should not be listed in the preloaded symbols.
12000exclude_expsyms=$lt_exclude_expsyms_GCJ
12001
12002# Symbols that must always be exported.
12003include_expsyms=$lt_include_expsyms_GCJ
12004
12005# ### END LIBTOOL TAG CONFIG: $tagname
12006
12007__EOF__
12008
12009else
12010 # If there is no Makefile yet, we rely on a make rule to execute
12011 # `config.status --recheck' to rerun these tests and create the
12012 # libtool script then.
12013 test -f Makefile && make "$ltmain"
12014fi
12015
12016ac_ext=c
12017ac_cpp='$CPP $CPPFLAGS'
12018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020ac_compiler_gnu=$ac_cv_c_compiler_gnu
12021
12022CC="$lt_save_CC"
12023
12024 ;;
12025
12026 *)
12027 { { echo "$as_me:12027: error: Unsupported tag name: $tagname" >&5
12028echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12029 { (exit 1); exit 1; }; }
12030 ;;
12031 esac
12032
12033 # Append the new tag name to the list of available tags.
12034 available_tags="$available_tags $tagname"
12035 fi
12036 done
12037 IFS="$lt_save_ifs"
12038
12039 # Now substitute the updated list of available tags.
12040 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12041 mv "${ofile}T" "$ofile"
12042 chmod +x "$ofile"
12043 else
12044 rm -f "${ofile}T"
12045 { { echo "$as_me:12045: error: unable to update list of available tagged configurations." >&5
12046echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12047 { (exit 1); exit 1; }; }
12048 fi
12049fi
12050
12051# This can be used to rebuild libtool when needed
12052LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12053
12054# Always use our own libtool.
12055LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12056
12057# Prevent multiple expansion
12058
12059# Find a good install program. We prefer a C program (faster),
12060# so one script is as good as another. But avoid the broken or
12061# incompatible versions:
12062# SysV /etc/install, /usr/sbin/install
12063# SunOS /usr/etc/install
12064# IRIX /sbin/install
12065# AIX /bin/install
12066# AmigaOS /C/install, which installs bootblocks on floppy discs
12067# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12068# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12069# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12070# ./install, which can be erroneously created by make from ./install.sh.
12071echo "$as_me:12071: checking for a BSD compatible install" >&5
12072echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
12073if test -z "$INSTALL"; then
12074if test "${ac_cv_path_install+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 ac_save_IFS=$IFS; IFS=$ac_path_separator
12078 for ac_dir in $PATH; do
12079 IFS=$ac_save_IFS
12080 # Account for people who put trailing slashes in PATH elements.
12081 case $ac_dir/ in
12082 / | ./ | .// | /cC/* \
12083 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
12084 | /usr/ucb/* ) ;;
12085 *)
12086 # OSF1 and SCO ODT 3.0 have their own names for install.
12087 # Don't use installbsd from OSF since it installs stuff as root
12088 # by default.
12089 for ac_prog in ginstall scoinst install; do
12090 if $as_executable_p "$ac_dir/$ac_prog"; then
12091 if test $ac_prog = install &&
12092 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12093 # AIX install. It has an incompatible calling convention.
12094 :
12095 elif test $ac_prog = install &&
12096 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12097 # program-specific install script used by HP pwplus--don't use.
12098 :
12099 else
12100 ac_cv_path_install="$ac_dir/$ac_prog -c"
12101 break 2
12102 fi
12103 fi
12104 done
12105 ;;
12106 esac
12107 done
12108
12109fi
12110 if test "${ac_cv_path_install+set}" = set; then
12111 INSTALL=$ac_cv_path_install
12112 else
12113 # As a last resort, use the slow shell script. We don't cache a
12114 # path for INSTALL within a source directory, because that will
12115 # break other packages using the cache if that directory is
12116 # removed, or if the path is relative.
12117 INSTALL=$ac_install_sh
12118 fi
12119fi
12120echo "$as_me:12120: result: $INSTALL" >&5
12121echo "${ECHO_T}$INSTALL" >&6
12122
12123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12124# It thinks the first close brace ends the variable substitution.
12125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12126
12127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12128
12129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12130
drh75897232000-05-29 14:26:00 +000012131#########
12132# Set up an appropriate program prefix
12133#
12134if test "$program_prefix" = "NONE"; then
12135 program_prefix=""
12136fi
12137
drh75897232000-05-29 14:26:00 +000012138#########
12139# Check to see if the --with-hints=FILE option is used. If there is none,
12140# then check for a files named "$host.hints" and ../$hosts.hints where
12141# $host is the hostname of the build system. If still no hints are
12142# found, try looking in $system.hints and ../$system.hints where
12143# $system is the result of uname -s.
12144#
drh71eb93e2001-09-28 01:34:43 +000012145
drh75897232000-05-29 14:26:00 +000012146# Check whether --with-hints or --without-hints was given.
12147if test "${with_hints+set}" = set; then
12148 withval="$with_hints"
12149 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000012150fi;
drh75897232000-05-29 14:26:00 +000012151if test "$hints" = ""; then
12152 host=`hostname | sed 's/\..*//'`
12153 if test -r $host.hints; then
12154 hints=$host.hints
12155 else
12156 if test -r ../$host.hints; then
12157 hints=../$host.hints
12158 fi
12159 fi
12160fi
12161if test "$hints" = ""; then
12162 sys=`uname -s`
12163 if test -r $sys.hints; then
12164 hints=$sys.hints
12165 else
12166 if test -r ../$sys.hints; then
12167 hints=../$sys.hints
12168 fi
12169 fi
12170fi
12171if test "$hints" != ""; then
drh71eb93e2001-09-28 01:34:43 +000012172 echo "$as_me:12172: result: reading hints from $hints" >&5
12173echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000012174 . $hints
12175fi
12176
12177#########
12178# Locate a compiler for the build machine. This compiler should
12179# generate command-line programs that run on the build machine.
12180#
12181default_build_cflags="-g"
12182if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000012183 ac_ext=c
12184ac_cpp='$CPP $CPPFLAGS'
12185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187ac_compiler_gnu=$ac_cv_c_compiler_gnu
12188if test -n "$ac_tool_prefix"; then
12189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12190set dummy ${ac_tool_prefix}gcc; ac_word=$2
12191echo "$as_me:12191: checking for $ac_word" >&5
12192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12193if test "${ac_cv_prog_CC+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012195else
12196 if test -n "$CC"; then
12197 ac_cv_prog_CC="$CC" # Let the user override the test.
12198else
drh71eb93e2001-09-28 01:34:43 +000012199 ac_save_IFS=$IFS; IFS=$ac_path_separator
12200ac_dummy="$PATH"
12201for ac_dir in $ac_dummy; do
12202 IFS=$ac_save_IFS
12203 test -z "$ac_dir" && ac_dir=.
12204 $as_executable_p "$ac_dir/$ac_word" || continue
12205ac_cv_prog_CC="${ac_tool_prefix}gcc"
12206echo "$as_me:12206: found $ac_dir/$ac_word" >&5
12207break
12208done
12209
drh75897232000-05-29 14:26:00 +000012210fi
12211fi
drh71eb93e2001-09-28 01:34:43 +000012212CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000012213if test -n "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000012214 echo "$as_me:12214: result: $CC" >&5
12215echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000012216else
drh71eb93e2001-09-28 01:34:43 +000012217 echo "$as_me:12217: result: no" >&5
12218echo "${ECHO_T}no" >&6
12219fi
12220
12221fi
12222if test -z "$ac_cv_prog_CC"; then
12223 ac_ct_CC=$CC
12224 # Extract the first word of "gcc", so it can be a program name with args.
12225set dummy gcc; ac_word=$2
12226echo "$as_me:12226: checking for $ac_word" >&5
12227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 if test -n "$ac_ct_CC"; then
12232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12233else
12234 ac_save_IFS=$IFS; IFS=$ac_path_separator
12235ac_dummy="$PATH"
12236for ac_dir in $ac_dummy; do
12237 IFS=$ac_save_IFS
12238 test -z "$ac_dir" && ac_dir=.
12239 $as_executable_p "$ac_dir/$ac_word" || continue
12240ac_cv_prog_ac_ct_CC="gcc"
12241echo "$as_me:12241: found $ac_dir/$ac_word" >&5
12242break
12243done
12244
12245fi
12246fi
12247ac_ct_CC=$ac_cv_prog_ac_ct_CC
12248if test -n "$ac_ct_CC"; then
12249 echo "$as_me:12249: result: $ac_ct_CC" >&5
12250echo "${ECHO_T}$ac_ct_CC" >&6
12251else
12252 echo "$as_me:12252: result: no" >&5
12253echo "${ECHO_T}no" >&6
12254fi
12255
12256 CC=$ac_ct_CC
12257else
12258 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000012259fi
12260
12261if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000012262 if test -n "$ac_tool_prefix"; then
12263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12264set dummy ${ac_tool_prefix}cc; ac_word=$2
12265echo "$as_me:12265: checking for $ac_word" >&5
12266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12267if test "${ac_cv_prog_CC+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012269else
12270 if test -n "$CC"; then
12271 ac_cv_prog_CC="$CC" # Let the user override the test.
12272else
drh71eb93e2001-09-28 01:34:43 +000012273 ac_save_IFS=$IFS; IFS=$ac_path_separator
12274ac_dummy="$PATH"
12275for ac_dir in $ac_dummy; do
12276 IFS=$ac_save_IFS
12277 test -z "$ac_dir" && ac_dir=.
12278 $as_executable_p "$ac_dir/$ac_word" || continue
12279ac_cv_prog_CC="${ac_tool_prefix}cc"
12280echo "$as_me:12280: found $ac_dir/$ac_word" >&5
12281break
12282done
12283
12284fi
12285fi
12286CC=$ac_cv_prog_CC
12287if test -n "$CC"; then
12288 echo "$as_me:12288: result: $CC" >&5
12289echo "${ECHO_T}$CC" >&6
12290else
12291 echo "$as_me:12291: result: no" >&5
12292echo "${ECHO_T}no" >&6
12293fi
12294
12295fi
12296if test -z "$ac_cv_prog_CC"; then
12297 ac_ct_CC=$CC
12298 # Extract the first word of "cc", so it can be a program name with args.
12299set dummy cc; ac_word=$2
12300echo "$as_me:12300: checking for $ac_word" >&5
12301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12302if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304else
12305 if test -n "$ac_ct_CC"; then
12306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12307else
12308 ac_save_IFS=$IFS; IFS=$ac_path_separator
12309ac_dummy="$PATH"
12310for ac_dir in $ac_dummy; do
12311 IFS=$ac_save_IFS
12312 test -z "$ac_dir" && ac_dir=.
12313 $as_executable_p "$ac_dir/$ac_word" || continue
12314ac_cv_prog_ac_ct_CC="cc"
12315echo "$as_me:12315: found $ac_dir/$ac_word" >&5
12316break
12317done
12318
12319fi
12320fi
12321ac_ct_CC=$ac_cv_prog_ac_ct_CC
12322if test -n "$ac_ct_CC"; then
12323 echo "$as_me:12323: result: $ac_ct_CC" >&5
12324echo "${ECHO_T}$ac_ct_CC" >&6
12325else
12326 echo "$as_me:12326: result: no" >&5
12327echo "${ECHO_T}no" >&6
12328fi
12329
12330 CC=$ac_ct_CC
12331else
12332 CC="$ac_cv_prog_CC"
12333fi
12334
12335fi
12336if test -z "$CC"; then
12337 # Extract the first word of "cc", so it can be a program name with args.
12338set dummy cc; ac_word=$2
12339echo "$as_me:12339: checking for $ac_word" >&5
12340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12341if test "${ac_cv_prog_CC+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12343else
12344 if test -n "$CC"; then
12345 ac_cv_prog_CC="$CC" # Let the user override the test.
12346else
drh75897232000-05-29 14:26:00 +000012347 ac_prog_rejected=no
drh71eb93e2001-09-28 01:34:43 +000012348 ac_save_IFS=$IFS; IFS=$ac_path_separator
12349ac_dummy="$PATH"
12350for ac_dir in $ac_dummy; do
12351 IFS=$ac_save_IFS
12352 test -z "$ac_dir" && ac_dir=.
12353 $as_executable_p "$ac_dir/$ac_word" || continue
12354if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
12355 ac_prog_rejected=yes
12356 continue
12357fi
12358ac_cv_prog_CC="cc"
12359echo "$as_me:12359: found $ac_dir/$ac_word" >&5
12360break
12361done
12362
drh75897232000-05-29 14:26:00 +000012363if test $ac_prog_rejected = yes; then
12364 # We found a bogon in the path, so make sure we never use it.
12365 set dummy $ac_cv_prog_CC
12366 shift
drh71eb93e2001-09-28 01:34:43 +000012367 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000012368 # We chose a different compiler from the bogus one.
12369 # However, it has the same basename, so the bogon will be chosen
12370 # first if we set CC to just the basename; use the full file name.
12371 shift
drh71eb93e2001-09-28 01:34:43 +000012372 set dummy "$ac_dir/$ac_word" ${1+"$@"}
drh75897232000-05-29 14:26:00 +000012373 shift
12374 ac_cv_prog_CC="$@"
12375 fi
12376fi
12377fi
12378fi
drh71eb93e2001-09-28 01:34:43 +000012379CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000012380if test -n "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000012381 echo "$as_me:12381: result: $CC" >&5
12382echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000012383else
drh71eb93e2001-09-28 01:34:43 +000012384 echo "$as_me:12384: result: no" >&5
12385echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000012386fi
12387
drh71eb93e2001-09-28 01:34:43 +000012388fi
12389if test -z "$CC"; then
12390 if test -n "$ac_tool_prefix"; then
12391 for ac_prog in cl
12392 do
12393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12395echo "$as_me:12395: checking for $ac_word" >&5
12396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12397if test "${ac_cv_prog_CC+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012399else
12400 if test -n "$CC"; then
12401 ac_cv_prog_CC="$CC" # Let the user override the test.
12402else
drh71eb93e2001-09-28 01:34:43 +000012403 ac_save_IFS=$IFS; IFS=$ac_path_separator
12404ac_dummy="$PATH"
12405for ac_dir in $ac_dummy; do
12406 IFS=$ac_save_IFS
12407 test -z "$ac_dir" && ac_dir=.
12408 $as_executable_p "$ac_dir/$ac_word" || continue
12409ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12410echo "$as_me:12410: found $ac_dir/$ac_word" >&5
12411break
12412done
12413
drh75897232000-05-29 14:26:00 +000012414fi
12415fi
drh71eb93e2001-09-28 01:34:43 +000012416CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000012417if test -n "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000012418 echo "$as_me:12418: result: $CC" >&5
12419echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000012420else
drh71eb93e2001-09-28 01:34:43 +000012421 echo "$as_me:12421: result: no" >&5
12422echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000012423fi
12424
drh71eb93e2001-09-28 01:34:43 +000012425 test -n "$CC" && break
12426 done
12427fi
12428if test -z "$CC"; then
12429 ac_ct_CC=$CC
12430 for ac_prog in cl
12431do
12432 # Extract the first word of "$ac_prog", so it can be a program name with args.
12433set dummy $ac_prog; ac_word=$2
12434echo "$as_me:12434: checking for $ac_word" >&5
12435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438else
12439 if test -n "$ac_ct_CC"; then
12440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12441else
12442 ac_save_IFS=$IFS; IFS=$ac_path_separator
12443ac_dummy="$PATH"
12444for ac_dir in $ac_dummy; do
12445 IFS=$ac_save_IFS
12446 test -z "$ac_dir" && ac_dir=.
12447 $as_executable_p "$ac_dir/$ac_word" || continue
12448ac_cv_prog_ac_ct_CC="$ac_prog"
12449echo "$as_me:12449: found $ac_dir/$ac_word" >&5
12450break
12451done
drh75897232000-05-29 14:26:00 +000012452
drh71eb93e2001-09-28 01:34:43 +000012453fi
12454fi
12455ac_ct_CC=$ac_cv_prog_ac_ct_CC
12456if test -n "$ac_ct_CC"; then
12457 echo "$as_me:12457: result: $ac_ct_CC" >&5
12458echo "${ECHO_T}$ac_ct_CC" >&6
12459else
12460 echo "$as_me:12460: result: no" >&5
12461echo "${ECHO_T}no" >&6
12462fi
drh75897232000-05-29 14:26:00 +000012463
drh71eb93e2001-09-28 01:34:43 +000012464 test -n "$ac_ct_CC" && break
12465done
drh75897232000-05-29 14:26:00 +000012466
drh71eb93e2001-09-28 01:34:43 +000012467 CC=$ac_ct_CC
12468fi
12469
12470fi
12471
12472test -z "$CC" && { { echo "$as_me:12472: error: no acceptable cc found in \$PATH" >&5
12473echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
12474 { (exit 1); exit 1; }; }
12475
12476# Provide some information about the compiler.
12477echo "$as_me:12477:" \
12478 "checking for C compiler version" >&5
12479ac_compiler=`set X $ac_compile; echo $2`
12480{ (eval echo "$as_me:12480: \"$ac_compiler --version </dev/null >&5\"") >&5
12481 (eval $ac_compiler --version </dev/null >&5) 2>&5
12482 ac_status=$?
12483 echo "$as_me:12483: \$? = $ac_status" >&5
12484 (exit $ac_status); }
12485{ (eval echo "$as_me:12485: \"$ac_compiler -v </dev/null >&5\"") >&5
12486 (eval $ac_compiler -v </dev/null >&5) 2>&5
12487 ac_status=$?
12488 echo "$as_me:12488: \$? = $ac_status" >&5
12489 (exit $ac_status); }
12490{ (eval echo "$as_me:12490: \"$ac_compiler -V </dev/null >&5\"") >&5
12491 (eval $ac_compiler -V </dev/null >&5) 2>&5
12492 ac_status=$?
12493 echo "$as_me:12493: \$? = $ac_status" >&5
12494 (exit $ac_status); }
12495
12496echo "$as_me:12496: checking whether we are using the GNU C compiler" >&5
12497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12498if test "${ac_cv_c_compiler_gnu+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 cat >conftest.$ac_ext <<_ACEOF
12502#line 12502 "configure"
drh75897232000-05-29 14:26:00 +000012503#include "confdefs.h"
12504
drh71eb93e2001-09-28 01:34:43 +000012505int
12506main ()
12507{
12508#ifndef __GNUC__
12509 choke me
drh75897232000-05-29 14:26:00 +000012510#endif
drh75897232000-05-29 14:26:00 +000012511
drh71eb93e2001-09-28 01:34:43 +000012512 ;
12513 return 0;
12514}
12515_ACEOF
12516rm -f conftest.$ac_objext
12517if { (eval echo "$as_me:12517: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>&5
12519 ac_status=$?
12520 echo "$as_me:12520: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:12523: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:12526: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000012529else
drh71eb93e2001-09-28 01:34:43 +000012530 echo "$as_me: failed program was:" >&5
12531cat conftest.$ac_ext >&5
12532ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000012533fi
drh71eb93e2001-09-28 01:34:43 +000012534rm -f conftest.$ac_objext conftest.$ac_ext
12535ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000012536
drh71eb93e2001-09-28 01:34:43 +000012537fi
12538echo "$as_me:12538: result: $ac_cv_c_compiler_gnu" >&5
12539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12540GCC=`test $ac_compiler_gnu = yes && echo yes`
12541ac_test_CFLAGS=${CFLAGS+set}
12542ac_save_CFLAGS=$CFLAGS
12543CFLAGS="-g"
12544echo "$as_me:12544: checking whether $CC accepts -g" >&5
12545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12546if test "${ac_cv_prog_cc_g+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012548else
drh71eb93e2001-09-28 01:34:43 +000012549 cat >conftest.$ac_ext <<_ACEOF
12550#line 12550 "configure"
12551#include "confdefs.h"
12552
12553int
12554main ()
12555{
12556
12557 ;
12558 return 0;
12559}
12560_ACEOF
12561rm -f conftest.$ac_objext
12562if { (eval echo "$as_me:12562: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>&5
12564 ac_status=$?
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:12568: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:12571: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000012573 ac_cv_prog_cc_g=yes
12574else
drh71eb93e2001-09-28 01:34:43 +000012575 echo "$as_me: failed program was:" >&5
12576cat conftest.$ac_ext >&5
12577ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000012578fi
drh71eb93e2001-09-28 01:34:43 +000012579rm -f conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000012580fi
drh71eb93e2001-09-28 01:34:43 +000012581echo "$as_me:12581: result: $ac_cv_prog_cc_g" >&5
12582echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000012583if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000012584 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000012585elif test $ac_cv_prog_cc_g = yes; then
12586 if test "$GCC" = yes; then
12587 CFLAGS="-g -O2"
12588 else
12589 CFLAGS="-g"
12590 fi
12591else
12592 if test "$GCC" = yes; then
12593 CFLAGS="-O2"
12594 else
12595 CFLAGS=
12596 fi
12597fi
drh71eb93e2001-09-28 01:34:43 +000012598# Some people use a C++ compiler to compile C. Since we use `exit',
12599# in C++ we need to declare it. In case someone uses the same compiler
12600# for both compiling C and C++ we need to have the C++ compiler decide
12601# the declaration of exit, since it's the most demanding environment.
12602cat >conftest.$ac_ext <<_ACEOF
12603#ifndef __cplusplus
12604 choke me
12605#endif
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:12608: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>&5
12610 ac_status=$?
12611 echo "$as_me:12611: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:12614: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:12617: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 for ac_declaration in \
12620 ''\
12621 '#include <stdlib.h>' \
12622 'extern "C" void std::exit (int) throw (); using std::exit;' \
12623 'extern "C" void std::exit (int); using std::exit;' \
12624 'extern "C" void exit (int) throw ();' \
12625 'extern "C" void exit (int);' \
12626 'void exit (int);'
12627do
12628 cat >conftest.$ac_ext <<_ACEOF
12629#line 12629 "configure"
12630#include "confdefs.h"
12631#include <stdlib.h>
12632$ac_declaration
12633int
12634main ()
12635{
12636exit (42);
12637 ;
12638 return 0;
12639}
12640_ACEOF
12641rm -f conftest.$ac_objext
12642if { (eval echo "$as_me:12642: \"$ac_compile\"") >&5
12643 (eval $ac_compile) 2>&5
12644 ac_status=$?
12645 echo "$as_me:12645: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -s conftest.$ac_objext'
12648 { (eval echo "$as_me:12648: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:12651: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 :
12654else
12655 echo "$as_me: failed program was:" >&5
12656cat conftest.$ac_ext >&5
12657continue
12658fi
12659rm -f conftest.$ac_objext conftest.$ac_ext
12660 cat >conftest.$ac_ext <<_ACEOF
12661#line 12661 "configure"
12662#include "confdefs.h"
12663$ac_declaration
12664int
12665main ()
12666{
12667exit (42);
12668 ;
12669 return 0;
12670}
12671_ACEOF
12672rm -f conftest.$ac_objext
12673if { (eval echo "$as_me:12673: \"$ac_compile\"") >&5
12674 (eval $ac_compile) 2>&5
12675 ac_status=$?
12676 echo "$as_me:12676: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (eval echo "$as_me:12679: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:12682: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 break
12685else
12686 echo "$as_me: failed program was:" >&5
12687cat conftest.$ac_ext >&5
12688fi
12689rm -f conftest.$ac_objext conftest.$ac_ext
12690done
12691rm -f conftest*
12692if test -n "$ac_declaration"; then
12693 echo '#ifdef __cplusplus' >>confdefs.h
12694 echo $ac_declaration >>confdefs.h
12695 echo '#endif' >>confdefs.h
12696fi
12697
12698else
12699 echo "$as_me: failed program was:" >&5
12700cat conftest.$ac_ext >&5
12701fi
12702rm -f conftest.$ac_objext conftest.$ac_ext
12703ac_ext=c
12704ac_cpp='$CPP $CPPFLAGS'
12705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000012708
12709 if test "$cross_compiling" = "yes"; then
drh71eb93e2001-09-28 01:34:43 +000012710 { { echo "$as_me:12710: error: unable to find a compiler for building build tools" >&5
12711echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
12712 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +000012713 fi
12714 BUILD_CC=$CC
12715 default_build_cflags=$CFLAGS
12716else
12717 BUILD_CC=$config_BUILD_CC
drh71eb93e2001-09-28 01:34:43 +000012718 echo "$as_me:12718: checking host compiler" >&5
12719echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012720 CC=$BUILD_CC
drh71eb93e2001-09-28 01:34:43 +000012721 echo "$as_me:12721: result: $BUILD_CC" >&5
12722echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000012723fi
drh71eb93e2001-09-28 01:34:43 +000012724echo "$as_me:12724: checking switches for the host compiler" >&5
12725echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012726if test "$config_BUILD_CFLAGS" != ""; then
12727 CFLAGS=$config_BUILD_CFLAGS
12728 BUILD_CFLAGS=$config_BUILD_CFLAGS
12729else
12730 BUILD_CFLAGS=$default_build_cflags
12731fi
drh71eb93e2001-09-28 01:34:43 +000012732echo "$as_me:12732: result: $BUILD_CFLAGS" >&5
12733echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000012734if test "$config_BUILD_LIBS" != ""; then
12735 BUILD_LIBS=$config_BUILD_LIBS
12736fi
12737
drh75897232000-05-29 14:26:00 +000012738##########
12739# Locate a compiler that converts C code into *.o files that run on
12740# the target machine.
12741#
drh71eb93e2001-09-28 01:34:43 +000012742echo "$as_me:12742: checking target compiler" >&5
12743echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012744if test "$config_TARGET_CC" != ""; then
12745 TARGET_CC=$config_TARGET_CC
12746else
12747 TARGET_CC=$BUILD_CC
12748fi
drh71eb93e2001-09-28 01:34:43 +000012749echo "$as_me:12749: result: $TARGET_CC" >&5
12750echo "${ECHO_T}$TARGET_CC" >&6
12751echo "$as_me:12751: checking switches on the target compiler" >&5
12752echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012753if test "$config_TARGET_CFLAGS" != ""; then
12754 TARGET_CFLAGS=$config_TARGET_CFLAGS
12755else
12756 TARGET_CFLAGS=$BUILD_CFLAGS
12757fi
drh71eb93e2001-09-28 01:34:43 +000012758echo "$as_me:12758: result: $TARGET_CFLAGS" >&5
12759echo "${ECHO_T}$TARGET_CFLAGS" >&6
12760echo "$as_me:12760: checking target linker" >&5
12761echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012762if test "$config_TARGET_LINK" = ""; then
12763 TARGET_LINK=$TARGET_CC
12764else
12765 TARGET_LINK=$config_TARGET_LINK
12766fi
drh71eb93e2001-09-28 01:34:43 +000012767echo "$as_me:12767: result: $TARGET_LINK" >&5
12768echo "${ECHO_T}$TARGET_LINK" >&6
12769echo "$as_me:12769: checking switches on the target compiler" >&5
12770echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012771if test "$config_TARGET_TFLAGS" != ""; then
12772 TARGET_TFLAGS=$config_TARGET_TFLAGS
12773else
12774 TARGET_TFLAGS=$BUILD_CFLAGS
12775fi
12776if test "$config_TARGET_RANLIB" != ""; then
12777 TARGET_RANLIB=$config_TARGET_RANLIB
12778else
drh71eb93e2001-09-28 01:34:43 +000012779 if test -n "$ac_tool_prefix"; then
12780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12782echo "$as_me:12782: checking for $ac_word" >&5
12783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12784if test "${ac_cv_prog_RANLIB+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012786else
12787 if test -n "$RANLIB"; then
12788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12789else
drh71eb93e2001-09-28 01:34:43 +000012790 ac_save_IFS=$IFS; IFS=$ac_path_separator
12791ac_dummy="$PATH"
12792for ac_dir in $ac_dummy; do
12793 IFS=$ac_save_IFS
12794 test -z "$ac_dir" && ac_dir=.
12795 $as_executable_p "$ac_dir/$ac_word" || continue
12796ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12797echo "$as_me:12797: found $ac_dir/$ac_word" >&5
12798break
12799done
12800
drh75897232000-05-29 14:26:00 +000012801fi
12802fi
drh71eb93e2001-09-28 01:34:43 +000012803RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000012804if test -n "$RANLIB"; then
drh71eb93e2001-09-28 01:34:43 +000012805 echo "$as_me:12805: result: $RANLIB" >&5
12806echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000012807else
drh71eb93e2001-09-28 01:34:43 +000012808 echo "$as_me:12808: result: no" >&5
12809echo "${ECHO_T}no" >&6
12810fi
12811
12812fi
12813if test -z "$ac_cv_prog_RANLIB"; then
12814 ac_ct_RANLIB=$RANLIB
12815 # Extract the first word of "ranlib", so it can be a program name with args.
12816set dummy ranlib; ac_word=$2
12817echo "$as_me:12817: checking for $ac_word" >&5
12818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12819if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821else
12822 if test -n "$ac_ct_RANLIB"; then
12823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12824else
12825 ac_save_IFS=$IFS; IFS=$ac_path_separator
12826ac_dummy="$PATH"
12827for ac_dir in $ac_dummy; do
12828 IFS=$ac_save_IFS
12829 test -z "$ac_dir" && ac_dir=.
12830 $as_executable_p "$ac_dir/$ac_word" || continue
12831ac_cv_prog_ac_ct_RANLIB="ranlib"
12832echo "$as_me:12832: found $ac_dir/$ac_word" >&5
12833break
12834done
12835
12836 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12837fi
12838fi
12839ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12840if test -n "$ac_ct_RANLIB"; then
12841 echo "$as_me:12841: result: $ac_ct_RANLIB" >&5
12842echo "${ECHO_T}$ac_ct_RANLIB" >&6
12843else
12844 echo "$as_me:12844: result: no" >&5
12845echo "${ECHO_T}no" >&6
12846fi
12847
12848 RANLIB=$ac_ct_RANLIB
12849else
12850 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000012851fi
12852
12853 TARGET_RANLIB=$RANLIB
12854fi
12855if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000012856 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000012857else
12858 TARGET_AR='ar cr'
12859fi
drh71eb93e2001-09-28 01:34:43 +000012860echo "$as_me:12860: result: $TARGET_TFLAGS" >&5
12861echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000012862
12863# Set the $cross variable if we are cross-compiling. Make
12864# it 0 if we are not.
12865#
drh71eb93e2001-09-28 01:34:43 +000012866echo "$as_me:12866: checking if host and target compilers are the same" >&5
12867echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012868if test "$BUILD_CC" = "$TARGET_CC"; then
12869 cross=0
drh71eb93e2001-09-28 01:34:43 +000012870 echo "$as_me:12870: result: yes" >&5
12871echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000012872else
12873 cross=1
drh71eb93e2001-09-28 01:34:43 +000012874 echo "$as_me:12874: result: no" >&5
12875echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000012876fi
12877
drh297ecf12001-04-05 15:57:13 +000012878##########
12879# Are we using UTF-8 or iso8859 encodings?
12880#
12881# Check whether --enable-utf8 or --disable-utf8 was given.
12882if test "${enable_utf8+set}" = set; then
12883 enableval="$enable_utf8"
drh71eb93e2001-09-28 01:34:43 +000012884
drh297ecf12001-04-05 15:57:13 +000012885else
12886 enable_utf8=no
drh71eb93e2001-09-28 01:34:43 +000012887fi;
12888echo "$as_me:12888: checking character encoding" >&5
12889echo $ECHO_N "checking character encoding... $ECHO_C" >&6
drh297ecf12001-04-05 15:57:13 +000012890if test "$enable_utf8" = "no"; then
12891 ENCODING=ISO8859
drh71eb93e2001-09-28 01:34:43 +000012892 echo "$as_me:12892: result: iso8859" >&5
12893echo "${ECHO_T}iso8859" >&6
drh297ecf12001-04-05 15:57:13 +000012894else
12895 ENCODING=UTF8
drh71eb93e2001-09-28 01:34:43 +000012896 echo "$as_me:12896: result: UTF-8" >&5
12897echo "${ECHO_T}UTF-8" >&6
drh297ecf12001-04-05 15:57:13 +000012898fi
12899
drh75897232000-05-29 14:26:00 +000012900###########
12901# Lots of things are different if we are compiling for Windows using
12902# the CYGWIN environment. So check for that special case and handle
12903# things accordingly.
12904#
drh71eb93e2001-09-28 01:34:43 +000012905echo "$as_me:12905: checking if executables have the .exe suffix" >&5
12906echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012907if test "$config_BUILD_EXEEXT" = ".exe"; then
12908 CYGWIN=yes
drh71eb93e2001-09-28 01:34:43 +000012909 echo "$as_me:12909: result: yes" >&5
12910echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000012911else
drh71eb93e2001-09-28 01:34:43 +000012912 echo "$as_me:12912: result: unknown" >&5
12913echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000012914fi
12915if test "$CYGWIN" != "yes"; then
drh71eb93e2001-09-28 01:34:43 +000012916 case $host_os in
12917 *cygwin* ) CYGWIN=yes;;
12918 * ) CYGWIN=no;;
12919esac
drh75897232000-05-29 14:26:00 +000012920
drh75897232000-05-29 14:26:00 +000012921fi
12922if test "$CYGWIN" = "yes"; then
12923 BUILD_EXEEXT=.exe
12924else
12925 BUILD_EXEEXT=""
12926fi
12927if test "$cross" = "0"; then
12928 TARGET_EXEEXT=$BUILD_EXEEXT
12929else
12930 TARGET_EXEEXT=$config_TARGET_EXEEXT
12931fi
12932if test "$TARGET_EXEEXT" = ".exe"; then
12933 OS_UNIX=0
12934 OS_WIN=1
12935 tclsubdir=win
12936else
12937 OS_UNIX=1
12938 OS_WIN=0
12939 tclsubdir=unix
12940fi
12941TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN"
12942
drh75897232000-05-29 14:26:00 +000012943##########
12944# Extract generic linker options from the environment.
12945#
12946if test "$config_TARGET_LIBS" != ""; then
12947 TARGET_LIBS=$config_TARGET_LIBS
12948else
12949 TARGET_LIBS=""
12950fi
12951
drh75897232000-05-29 14:26:00 +000012952##########
12953# Figure out what C libraries are required to compile Tcl programs.
12954#
12955if test "$config_TARGET_TCL_LIBS" != ""; then
12956 TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
12957else
12958 if test "$with_tcl" != ""; then
12959 extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
12960 fi
12961 CC=$TARGET_CC
drh71eb93e2001-09-28 01:34:43 +000012962 echo "$as_me:12962: checking for sin" >&5
12963echo $ECHO_N "checking for sin... $ECHO_C" >&6
12964if test "${ac_cv_func_sin+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000012966else
drh71eb93e2001-09-28 01:34:43 +000012967 cat >conftest.$ac_ext <<_ACEOF
12968#line 12968 "configure"
drh75897232000-05-29 14:26:00 +000012969#include "confdefs.h"
12970/* System header to define __stub macros and hopefully few prototypes,
drh71eb93e2001-09-28 01:34:43 +000012971 which can conflict with char sin (); below. */
drh75897232000-05-29 14:26:00 +000012972#include <assert.h>
12973/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000012974#ifdef __cplusplus
12975extern "C"
12976#endif
drh75897232000-05-29 14:26:00 +000012977/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000012978 builtin and then its argument prototype would still apply. */
12979char sin ();
12980char (*f) ();
drh75897232000-05-29 14:26:00 +000012981
drh71eb93e2001-09-28 01:34:43 +000012982int
12983main ()
12984{
drh75897232000-05-29 14:26:00 +000012985/* The GNU C library defines this for functions which it implements
12986 to always fail with ENOSYS. Some functions are actually named
12987 something starting with __ and the normal name is an alias. */
12988#if defined (__stub_sin) || defined (__stub___sin)
12989choke me
12990#else
drh71eb93e2001-09-28 01:34:43 +000012991f = sin;
drh75897232000-05-29 14:26:00 +000012992#endif
12993
drh71eb93e2001-09-28 01:34:43 +000012994 ;
12995 return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext conftest$ac_exeext
12999if { (eval echo "$as_me:12999: \"$ac_link\"") >&5
13000 (eval $ac_link) 2>&5
13001 ac_status=$?
13002 echo "$as_me:13002: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (eval echo "$as_me:13005: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:13008: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_func_sin=yes
drh75897232000-05-29 14:26:00 +000013011else
drh71eb93e2001-09-28 01:34:43 +000013012 echo "$as_me: failed program was:" >&5
13013cat conftest.$ac_ext >&5
13014ac_cv_func_sin=no
drh75897232000-05-29 14:26:00 +000013015fi
drh71eb93e2001-09-28 01:34:43 +000013016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000013017fi
drh71eb93e2001-09-28 01:34:43 +000013018echo "$as_me:13018: result: $ac_cv_func_sin" >&5
13019echo "${ECHO_T}$ac_cv_func_sin" >&6
13020if test $ac_cv_func_sin = yes; then
drh75897232000-05-29 14:26:00 +000013021 LIBS=""
13022else
drh71eb93e2001-09-28 01:34:43 +000013023 LIBS="-lm"
drh75897232000-05-29 14:26:00 +000013024fi
13025
drh71eb93e2001-09-28 01:34:43 +000013026echo "$as_me:13026: checking for dlopen in -ldl" >&5
13027echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13028if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013030else
drh71eb93e2001-09-28 01:34:43 +000013031 ac_check_lib_save_LIBS=$LIBS
drh75897232000-05-29 14:26:00 +000013032LIBS="-ldl $LIBS"
drh71eb93e2001-09-28 01:34:43 +000013033cat >conftest.$ac_ext <<_ACEOF
13034#line 13034 "configure"
drh75897232000-05-29 14:26:00 +000013035#include "confdefs.h"
drh71eb93e2001-09-28 01:34:43 +000013036
drh75897232000-05-29 14:26:00 +000013037/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000013038#ifdef __cplusplus
13039extern "C"
13040#endif
drh75897232000-05-29 14:26:00 +000013041/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000013042 builtin and then its argument prototype would still apply. */
13043char dlopen ();
13044int
13045main ()
13046{
13047dlopen ();
13048 ;
13049 return 0;
13050}
13051_ACEOF
13052rm -f conftest.$ac_objext conftest$ac_exeext
13053if { (eval echo "$as_me:13053: \"$ac_link\"") >&5
13054 (eval $ac_link) 2>&5
13055 ac_status=$?
13056 echo "$as_me:13056: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:13059: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:13062: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 ac_cv_lib_dl_dlopen=yes
drh75897232000-05-29 14:26:00 +000013065else
drh71eb93e2001-09-28 01:34:43 +000013066 echo "$as_me: failed program was:" >&5
13067cat conftest.$ac_ext >&5
13068ac_cv_lib_dl_dlopen=no
drh75897232000-05-29 14:26:00 +000013069fi
drh71eb93e2001-09-28 01:34:43 +000013070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13071LIBS=$ac_check_lib_save_LIBS
drh75897232000-05-29 14:26:00 +000013072fi
drh71eb93e2001-09-28 01:34:43 +000013073echo "$as_me:13073: result: $ac_cv_lib_dl_dlopen" >&5
13074echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13075if test $ac_cv_lib_dl_dlopen = yes; then
13076 cat >>confdefs.h <<EOF
13077#define HAVE_LIBDL 1
drh75897232000-05-29 14:26:00 +000013078EOF
13079
13080 LIBS="-ldl $LIBS"
13081
drh75897232000-05-29 14:26:00 +000013082fi
13083
13084 otherlibs=$LIBS
13085 if test "$extra" != ""; then
13086 LIBS=$extra
drh71eb93e2001-09-28 01:34:43 +000013087 else
drh75897232000-05-29 14:26:00 +000013088 LIBS=""
drh71eb93e2001-09-28 01:34:43 +000013089 echo "$as_me:13089: checking for library containing Tcl_Init" >&5
13090echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6
13091if test "${ac_cv_search_Tcl_Init+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013093else
drh71eb93e2001-09-28 01:34:43 +000013094 ac_func_search_save_LIBS=$LIBS
13095ac_cv_search_Tcl_Init=no
13096cat >conftest.$ac_ext <<_ACEOF
13097#line 13097 "configure"
drh75897232000-05-29 14:26:00 +000013098#include "confdefs.h"
drh75897232000-05-29 14:26:00 +000013099
drh71eb93e2001-09-28 01:34:43 +000013100/* Override any gcc2 internal prototype to avoid an error. */
13101#ifdef __cplusplus
13102extern "C"
13103#endif
13104/* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106char Tcl_Init ();
13107int
13108main ()
13109{
13110Tcl_Init ();
13111 ;
13112 return 0;
13113}
13114_ACEOF
13115rm -f conftest.$ac_objext conftest$ac_exeext
13116if { (eval echo "$as_me:13116: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>&5
13118 ac_status=$?
13119 echo "$as_me:13119: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:13122: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:13125: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000013127 ac_cv_search_Tcl_Init="none required"
13128else
drh71eb93e2001-09-28 01:34:43 +000013129 echo "$as_me: failed program was:" >&5
13130cat conftest.$ac_ext >&5
drh75897232000-05-29 14:26:00 +000013131fi
drh71eb93e2001-09-28 01:34:43 +000013132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13133if test "$ac_cv_search_Tcl_Init" = no; then
13134 for ac_lib in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do
13135 LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS"
13136 cat >conftest.$ac_ext <<_ACEOF
13137#line 13137 "configure"
drh75897232000-05-29 14:26:00 +000013138#include "confdefs.h"
drh75897232000-05-29 14:26:00 +000013139
drh71eb93e2001-09-28 01:34:43 +000013140/* Override any gcc2 internal prototype to avoid an error. */
13141#ifdef __cplusplus
13142extern "C"
13143#endif
13144/* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13146char Tcl_Init ();
13147int
13148main ()
13149{
13150Tcl_Init ();
13151 ;
13152 return 0;
13153}
13154_ACEOF
13155rm -f conftest.$ac_objext conftest$ac_exeext
13156if { (eval echo "$as_me:13156: \"$ac_link\"") >&5
13157 (eval $ac_link) 2>&5
13158 ac_status=$?
13159 echo "$as_me:13159: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -s conftest$ac_exeext'
13162 { (eval echo "$as_me:13162: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:13165: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_search_Tcl_Init="-l$ac_lib"
drh75897232000-05-29 14:26:00 +000013168break
13169else
drh71eb93e2001-09-28 01:34:43 +000013170 echo "$as_me: failed program was:" >&5
13171cat conftest.$ac_ext >&5
drh75897232000-05-29 14:26:00 +000013172fi
drh71eb93e2001-09-28 01:34:43 +000013173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13174 done
13175fi
13176LIBS=$ac_func_search_save_LIBS
13177fi
13178echo "$as_me:13178: result: $ac_cv_search_Tcl_Init" >&5
13179echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6
13180if test "$ac_cv_search_Tcl_Init" != no; then
13181 test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
13182
drh75897232000-05-29 14:26:00 +000013183fi
13184
drh75897232000-05-29 14:26:00 +000013185 fi
13186 TARGET_TCL_LIBS="$LIBS $otherlibs"
13187fi
13188
drh75897232000-05-29 14:26:00 +000013189##########
13190# Figure out where to get the TCL header files.
13191#
drh71eb93e2001-09-28 01:34:43 +000013192echo "$as_me:13192: checking TCL header files" >&5
13193echo $ECHO_N "checking TCL header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013194found=no
13195if test "$config_TARGET_TCL_INC" != ""; then
13196 TARGET_TCL_INC=$config_TARGET_TCL_INC
13197 found=yes
13198else
13199 if test "$with_tcl" != ""; then
13200 TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
13201 found=yes
13202 else
13203 TARGET_TCL_INC=""
13204 found=no
13205 fi
13206fi
13207if test "$found" = "yes"; then
drh71eb93e2001-09-28 01:34:43 +000013208 echo "$as_me:13208: result: $TARGET_TCL_INC" >&5
13209echo "${ECHO_T}$TARGET_TCL_INC" >&6
drh75897232000-05-29 14:26:00 +000013210else
drh71eb93e2001-09-28 01:34:43 +000013211 echo "$as_me:13211: result: not specified: still searching..." >&5
13212echo "${ECHO_T}not specified: still searching..." >&6
13213 echo "$as_me:13213: checking for tcl.h" >&5
13214echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
13215if test "${ac_cv_header_tcl_h+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013217else
drh71eb93e2001-09-28 01:34:43 +000013218 cat >conftest.$ac_ext <<_ACEOF
13219#line 13219 "configure"
drh75897232000-05-29 14:26:00 +000013220#include "confdefs.h"
13221#include <tcl.h>
drh71eb93e2001-09-28 01:34:43 +000013222_ACEOF
13223if { (eval echo "$as_me:13223: \"$ac_cpp conftest.$ac_ext\"") >&5
13224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13225 ac_status=$?
13226 egrep -v '^ *\+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:13229: \$? = $ac_status" >&5
13230 (exit $ac_status); } >/dev/null; then
13231 if test -s conftest.err; then
13232 ac_cpp_err=$ac_c_preproc_warn_flag
13233 else
13234 ac_cpp_err=
13235 fi
drh75897232000-05-29 14:26:00 +000013236else
drh71eb93e2001-09-28 01:34:43 +000013237 ac_cpp_err=yes
13238fi
13239if test -z "$ac_cpp_err"; then
13240 ac_cv_header_tcl_h=yes
13241else
13242 echo "$as_me: failed program was:" >&5
drh75897232000-05-29 14:26:00 +000013243 cat conftest.$ac_ext >&5
drh71eb93e2001-09-28 01:34:43 +000013244 ac_cv_header_tcl_h=no
drh75897232000-05-29 14:26:00 +000013245fi
drh71eb93e2001-09-28 01:34:43 +000013246rm -f conftest.err conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000013247fi
drh71eb93e2001-09-28 01:34:43 +000013248echo "$as_me:13248: result: $ac_cv_header_tcl_h" >&5
13249echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
13250if test $ac_cv_header_tcl_h = yes; then
drh75897232000-05-29 14:26:00 +000013251 found=yes
drh75897232000-05-29 14:26:00 +000013252fi
13253
13254fi
13255if test "$found" = "no"; then
drhfdc99e92000-09-29 15:15:51 +000013256 for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
drh71eb93e2001-09-28 01:34:43 +000013257 as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh`
13258echo "$as_me:13258: checking for $dir/include/tcl.h" >&5
13259echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6
13260if eval "test \"\${$as_ac_File+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013262else
drh71eb93e2001-09-28 01:34:43 +000013263 test "$cross_compiling" = yes &&
13264 { { echo "$as_me:13264: error: cannot check for file existence when cross compiling" >&5
13265echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13266 { (exit 1); exit 1; }; }
13267if test -r "$dir/include/tcl.h"; then
13268 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013269else
drh71eb93e2001-09-28 01:34:43 +000013270 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013271fi
13272fi
drh71eb93e2001-09-28 01:34:43 +000013273echo "$as_me:13273: result: `eval echo '${'$as_ac_File'}'`" >&5
13274echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
13275if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000013276 found=yes
drh75897232000-05-29 14:26:00 +000013277fi
13278
13279 if test "$found" = "yes"; then
13280 TARGET_TCL_INC="-I$dir/include"
13281 break
13282 fi
13283 done
13284fi
drh6d313162000-09-21 13:01:35 +000013285if test "$found" = "no"; then
13286 TARGET_TCL_INC="-DNO_TCL=1"
13287fi
drh75897232000-05-29 14:26:00 +000013288
drh75897232000-05-29 14:26:00 +000013289##########
13290# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000013291# that use "readline()" library.
13292#
13293if test "$config_TARGET_READLINE_LIBS" != ""; then
13294 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
13295else
13296 CC=$TARGET_CC
13297 LIBS=""
drh71eb93e2001-09-28 01:34:43 +000013298 echo "$as_me:13298: checking for library containing readline" >&5
13299echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6
13300if test "${ac_cv_search_readline+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013302else
drh71eb93e2001-09-28 01:34:43 +000013303 ac_func_search_save_LIBS=$LIBS
13304ac_cv_search_readline=no
13305cat >conftest.$ac_ext <<_ACEOF
13306#line 13306 "configure"
drh75897232000-05-29 14:26:00 +000013307#include "confdefs.h"
drh75897232000-05-29 14:26:00 +000013308
drh71eb93e2001-09-28 01:34:43 +000013309/* Override any gcc2 internal prototype to avoid an error. */
13310#ifdef __cplusplus
13311extern "C"
13312#endif
13313/* We use char because int might match the return type of a gcc2
13314 builtin and then its argument prototype would still apply. */
13315char readline ();
13316int
13317main ()
13318{
13319readline ();
13320 ;
13321 return 0;
13322}
13323_ACEOF
13324rm -f conftest.$ac_objext conftest$ac_exeext
13325if { (eval echo "$as_me:13325: \"$ac_link\"") >&5
13326 (eval $ac_link) 2>&5
13327 ac_status=$?
13328 echo "$as_me:13328: \$? = $ac_status" >&5
13329 (exit $ac_status); } &&
13330 { ac_try='test -s conftest$ac_exeext'
13331 { (eval echo "$as_me:13331: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:13334: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000013336 ac_cv_search_readline="none required"
13337else
drh71eb93e2001-09-28 01:34:43 +000013338 echo "$as_me: failed program was:" >&5
13339cat conftest.$ac_ext >&5
drh75897232000-05-29 14:26:00 +000013340fi
drh71eb93e2001-09-28 01:34:43 +000013341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13342if test "$ac_cv_search_readline" = no; then
13343 for ac_lib in readline; do
13344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13345 cat >conftest.$ac_ext <<_ACEOF
13346#line 13346 "configure"
drh75897232000-05-29 14:26:00 +000013347#include "confdefs.h"
drh75897232000-05-29 14:26:00 +000013348
drh71eb93e2001-09-28 01:34:43 +000013349/* Override any gcc2 internal prototype to avoid an error. */
13350#ifdef __cplusplus
13351extern "C"
13352#endif
13353/* We use char because int might match the return type of a gcc2
13354 builtin and then its argument prototype would still apply. */
13355char readline ();
13356int
13357main ()
13358{
13359readline ();
13360 ;
13361 return 0;
13362}
13363_ACEOF
13364rm -f conftest.$ac_objext conftest$ac_exeext
13365if { (eval echo "$as_me:13365: \"$ac_link\"") >&5
13366 (eval $ac_link) 2>&5
13367 ac_status=$?
13368 echo "$as_me:13368: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -s conftest$ac_exeext'
13371 { (eval echo "$as_me:13371: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:13374: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_cv_search_readline="-l$ac_lib"
drh75897232000-05-29 14:26:00 +000013377break
13378else
drh71eb93e2001-09-28 01:34:43 +000013379 echo "$as_me: failed program was:" >&5
13380cat conftest.$ac_ext >&5
drh75897232000-05-29 14:26:00 +000013381fi
drh71eb93e2001-09-28 01:34:43 +000013382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13383 done
13384fi
13385LIBS=$ac_func_search_save_LIBS
13386fi
13387echo "$as_me:13387: result: $ac_cv_search_readline" >&5
13388echo "${ECHO_T}$ac_cv_search_readline" >&6
13389if test "$ac_cv_search_readline" != no; then
13390 test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS"
13391
drh75897232000-05-29 14:26:00 +000013392fi
13393
drh75897232000-05-29 14:26:00 +000013394 TARGET_READLINE_LIBS="$LIBS"
13395fi
13396
drh75897232000-05-29 14:26:00 +000013397##########
13398# Figure out where to get the READLINE header files.
13399#
drh71eb93e2001-09-28 01:34:43 +000013400echo "$as_me:13400: checking readline header files" >&5
13401echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013402found=no
13403if test "$config_TARGET_READLINE_INC" != ""; then
13404 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
13405 found=yes
13406fi
13407if test "$found" = "yes"; then
drh71eb93e2001-09-28 01:34:43 +000013408 echo "$as_me:13408: result: $TARGET_READLINE_INC" >&5
13409echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000013410else
drh71eb93e2001-09-28 01:34:43 +000013411 echo "$as_me:13411: result: not specified: still searching..." >&5
13412echo "${ECHO_T}not specified: still searching..." >&6
13413 echo "$as_me:13413: checking for readline.h" >&5
13414echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
13415if test "${ac_cv_header_readline_h+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013417else
drh71eb93e2001-09-28 01:34:43 +000013418 cat >conftest.$ac_ext <<_ACEOF
13419#line 13419 "configure"
drh75897232000-05-29 14:26:00 +000013420#include "confdefs.h"
13421#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000013422_ACEOF
13423if { (eval echo "$as_me:13423: \"$ac_cpp conftest.$ac_ext\"") >&5
13424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13425 ac_status=$?
13426 egrep -v '^ *\+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:13429: \$? = $ac_status" >&5
13430 (exit $ac_status); } >/dev/null; then
13431 if test -s conftest.err; then
13432 ac_cpp_err=$ac_c_preproc_warn_flag
13433 else
13434 ac_cpp_err=
13435 fi
drh75897232000-05-29 14:26:00 +000013436else
drh71eb93e2001-09-28 01:34:43 +000013437 ac_cpp_err=yes
13438fi
13439if test -z "$ac_cpp_err"; then
13440 ac_cv_header_readline_h=yes
13441else
13442 echo "$as_me: failed program was:" >&5
drh75897232000-05-29 14:26:00 +000013443 cat conftest.$ac_ext >&5
drh71eb93e2001-09-28 01:34:43 +000013444 ac_cv_header_readline_h=no
drh75897232000-05-29 14:26:00 +000013445fi
drh71eb93e2001-09-28 01:34:43 +000013446rm -f conftest.err conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000013447fi
drh71eb93e2001-09-28 01:34:43 +000013448echo "$as_me:13448: result: $ac_cv_header_readline_h" >&5
13449echo "${ECHO_T}$ac_cv_header_readline_h" >&6
13450if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000013451 found=yes
drh75897232000-05-29 14:26:00 +000013452fi
13453
13454fi
13455if test "$found" = "no"; then
13456 for dir in /usr /usr/local /usr/local/readline /usr/contrib; do
drh71eb93e2001-09-28 01:34:43 +000013457 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
13458echo "$as_me:13458: checking for $dir/include/readline.h" >&5
13459echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
13460if eval "test \"\${$as_ac_File+set}\" = set"; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013462else
drh71eb93e2001-09-28 01:34:43 +000013463 test "$cross_compiling" = yes &&
13464 { { echo "$as_me:13464: error: cannot check for file existence when cross compiling" >&5
13465echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13466 { (exit 1); exit 1; }; }
13467if test -r "$dir/include/readline.h"; then
13468 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013469else
drh71eb93e2001-09-28 01:34:43 +000013470 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013471fi
13472fi
drh71eb93e2001-09-28 01:34:43 +000013473echo "$as_me:13473: result: `eval echo '${'$as_ac_File'}'`" >&5
13474echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
13475if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000013476 found=yes
drh75897232000-05-29 14:26:00 +000013477fi
13478
13479 if test "$found" = "yes"; then
13480 TARGET_READLINE_INC="-I$dir/include"
13481 break
13482 fi
drh71eb93e2001-09-28 01:34:43 +000013483 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
13484echo "$as_me:13484: checking for $dir/include/readline/readline.h" >&5
13485echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
13486if eval "test \"\${$as_ac_File+set}\" = set"; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000013488else
drh71eb93e2001-09-28 01:34:43 +000013489 test "$cross_compiling" = yes &&
13490 { { echo "$as_me:13490: error: cannot check for file existence when cross compiling" >&5
13491echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13492 { (exit 1); exit 1; }; }
13493if test -r "$dir/include/readline/readline.h"; then
13494 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013495else
drh71eb93e2001-09-28 01:34:43 +000013496 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013497fi
13498fi
drh71eb93e2001-09-28 01:34:43 +000013499echo "$as_me:13499: result: `eval echo '${'$as_ac_File'}'`" >&5
13500echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
13501if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000013502 found=yes
drh75897232000-05-29 14:26:00 +000013503fi
13504
13505 if test "$found" = "yes"; then
13506 TARGET_READLINE_INC="-I$dir/include/readline"
13507 break
13508 fi
13509 done
13510fi
13511if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000013512 if test "$TARGET_READLINE_LIBS" = ""; then
13513 TARGET_HAVE_READLINE=0
13514 else
13515 TARGET_HAVE_READLINE=1
13516 fi
drh75897232000-05-29 14:26:00 +000013517else
13518 TARGET_HAVE_READLINE=0
13519fi
13520
drh75897232000-05-29 14:26:00 +000013521#########
drh2dfbbca2000-07-28 14:32:48 +000013522# Figure out whether or not we have a "usleep()" function.
13523#
drh71eb93e2001-09-28 01:34:43 +000013524echo "$as_me:13524: checking for usleep" >&5
13525echo $ECHO_N "checking for usleep... $ECHO_C" >&6
13526if test "${ac_cv_func_usleep+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000013528else
drh71eb93e2001-09-28 01:34:43 +000013529 cat >conftest.$ac_ext <<_ACEOF
13530#line 13530 "configure"
drh2dfbbca2000-07-28 14:32:48 +000013531#include "confdefs.h"
13532/* System header to define __stub macros and hopefully few prototypes,
drh71eb93e2001-09-28 01:34:43 +000013533 which can conflict with char usleep (); below. */
drh2dfbbca2000-07-28 14:32:48 +000013534#include <assert.h>
13535/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000013536#ifdef __cplusplus
13537extern "C"
13538#endif
drh2dfbbca2000-07-28 14:32:48 +000013539/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000013540 builtin and then its argument prototype would still apply. */
13541char usleep ();
13542char (*f) ();
drh2dfbbca2000-07-28 14:32:48 +000013543
drh71eb93e2001-09-28 01:34:43 +000013544int
13545main ()
13546{
drh2dfbbca2000-07-28 14:32:48 +000013547/* The GNU C library defines this for functions which it implements
13548 to always fail with ENOSYS. Some functions are actually named
13549 something starting with __ and the normal name is an alias. */
13550#if defined (__stub_usleep) || defined (__stub___usleep)
13551choke me
13552#else
drh71eb93e2001-09-28 01:34:43 +000013553f = usleep;
drh2dfbbca2000-07-28 14:32:48 +000013554#endif
13555
drh71eb93e2001-09-28 01:34:43 +000013556 ;
13557 return 0;
13558}
13559_ACEOF
13560rm -f conftest.$ac_objext conftest$ac_exeext
13561if { (eval echo "$as_me:13561: \"$ac_link\"") >&5
13562 (eval $ac_link) 2>&5
13563 ac_status=$?
13564 echo "$as_me:13564: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (eval echo "$as_me:13567: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:13570: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000013573else
drh71eb93e2001-09-28 01:34:43 +000013574 echo "$as_me: failed program was:" >&5
13575cat conftest.$ac_ext >&5
13576ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000013577fi
drh71eb93e2001-09-28 01:34:43 +000013578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000013579fi
drh71eb93e2001-09-28 01:34:43 +000013580echo "$as_me:13580: result: $ac_cv_func_usleep" >&5
13581echo "${ECHO_T}$ac_cv_func_usleep" >&6
13582if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000013583 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000013584fi
13585
drh2dfbbca2000-07-28 14:32:48 +000013586#########
drh75897232000-05-29 14:26:00 +000013587# Generate the output files.
13588#
drh71eb93e2001-09-28 01:34:43 +000013589ac_config_files="$ac_config_files Makefile"
13590cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013591# This file is a shell script that caches the results of configure
13592# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013593# scripts and configure runs, see configure's option --config-cache.
13594# It is not useful on other systems. If it contains results you don't
13595# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013596#
drh71eb93e2001-09-28 01:34:43 +000013597# config.status only pays attention to the cache file if you give it
13598# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013599#
drh71eb93e2001-09-28 01:34:43 +000013600# `ac_cv_env_foo' variables (set or unset) will be overriden when
13601# loading this file, other *unset* `ac_cv_foo' will be assigned the
13602# following values.
13603
13604_ACEOF
13605
drh75897232000-05-29 14:26:00 +000013606# The following way of writing the cache mishandles newlines in values,
13607# but we know of no workaround that is simple, portable, and efficient.
13608# So, don't put newlines in cache variables' values.
13609# Ultrix sh set writes to stderr and can't be redirected directly,
13610# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000013611{
13612 (set) 2>&1 |
13613 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13614 *ac_space=\ *)
13615 # `set' does not quote correctly, so add quotes (double-quote
13616 # substitution turns \\\\ into \\, and sed turns \\ into \).
13617 sed -n \
13618 "s/'/'\\\\''/g;
13619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13620 ;;
13621 *)
13622 # `set' quotes correctly as required by POSIX, so do not add quotes.
13623 sed -n \
13624 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13625 ;;
13626 esac;
13627} |
13628 sed '
13629 t clear
13630 : clear
13631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13632 t end
13633 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13634 : end' >>confcache
13635if cmp -s $cache_file confcache; then :; else
drh75897232000-05-29 14:26:00 +000013636 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000013637 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13638 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013639 else
13640 echo "not updating unwritable cache $cache_file"
13641 fi
13642fi
13643rm -f confcache
13644
drh75897232000-05-29 14:26:00 +000013645test "x$prefix" = xNONE && prefix=$ac_default_prefix
13646# Let make expand exec_prefix.
13647test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13648
drh71eb93e2001-09-28 01:34:43 +000013649# VPATH may cause trouble with some makes, so we remove $(srcdir),
13650# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13651# trailing colons and then remove the whole line if VPATH becomes empty
13652# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000013653if test "x$srcdir" = x.; then
drh71eb93e2001-09-28 01:34:43 +000013654 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13655s/:*\$(srcdir):*/:/;
13656s/:*\${srcdir}:*/:/;
13657s/:*@srcdir@:*/:/;
13658s/^\([^=]*=[ ]*\):*/\1/;
13659s/:*$//;
13660s/^[^=]*=[ ]*$//;
13661}'
drh75897232000-05-29 14:26:00 +000013662fi
13663
drh75897232000-05-29 14:26:00 +000013664# Transform confdefs.h into DEFS.
13665# Protect against shell expansion while executing Makefile rules.
13666# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000013667#
13668# If the first sed substitution is executed (which looks for macros that
13669# take arguments), then we branch to the quote section. Otherwise,
13670# look for a macro that doesn't take arguments.
13671cat >confdef2opt.sed <<\EOF
13672t clear
13673: clear
13674s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
13675t quote
13676s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
13677t quote
13678d
13679: quote
13680s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13681s,\[,\\&,g
13682s,\],\\&,g
13683s,\$,$$,g
13684p
drh75897232000-05-29 14:26:00 +000013685EOF
drh71eb93e2001-09-28 01:34:43 +000013686# We use echo to avoid assuming a particular line-breaking character.
13687# The extra dot is to prevent the shell from consuming trailing
13688# line-breaks from the sub-command output. A line-break within
13689# single-quotes doesn't work because, if this script is created in a
13690# platform that uses two characters for line-breaks (e.g., DOS), tr
13691# would break.
13692ac_LF_and_DOT=`echo; echo .`
13693DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13694rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000013695
drh75897232000-05-29 14:26:00 +000013696: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000013697ac_clean_files_save=$ac_clean_files
13698ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13699{ echo "$as_me:13699: creating $CONFIG_STATUS" >&5
13700echo "$as_me: creating $CONFIG_STATUS" >&6;}
13701cat >$CONFIG_STATUS <<_ACEOF
13702#! $SHELL
drh75897232000-05-29 14:26:00 +000013703# Generated automatically by configure.
13704# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013705# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013706# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013707
drh71eb93e2001-09-28 01:34:43 +000013708debug=false
13709SHELL=\${CONFIG_SHELL-$SHELL}
13710ac_cs_invocation="\$0 \$@"
drh75897232000-05-29 14:26:00 +000013711
drh71eb93e2001-09-28 01:34:43 +000013712_ACEOF
drh75897232000-05-29 14:26:00 +000013713
drh71eb93e2001-09-28 01:34:43 +000013714cat >>$CONFIG_STATUS <<\_ACEOF
13715# Be Bourne compatible
13716if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13717 emulate sh
13718 NULLCMD=:
13719elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13720 set -o posix
drh75897232000-05-29 14:26:00 +000013721fi
drh71eb93e2001-09-28 01:34:43 +000013722
13723# Name of the executable.
13724as_me=`echo "$0" |sed 's,.*[\\/],,'`
13725
13726if expr a : '\(a\)' >/dev/null 2>&1; then
13727 as_expr=expr
13728else
13729 as_expr=false
13730fi
13731
13732rm -f conf$$ conf$$.exe conf$$.file
13733echo >conf$$.file
13734if ln -s conf$$.file conf$$ 2>/dev/null; then
13735 # We could just check for DJGPP; but this test a) works b) is more generic
13736 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13737 if test -f conf$$.exe; then
13738 # Don't use ln at all; we don't have any links
13739 as_ln_s='cp -p'
13740 else
13741 as_ln_s='ln -s'
13742 fi
13743elif ln conf$$.file conf$$ 2>/dev/null; then
13744 as_ln_s=ln
13745else
13746 as_ln_s='cp -p'
13747fi
13748rm -f conf$$ conf$$.exe conf$$.file
13749
13750as_executable_p="test -f"
13751
13752# Support unset when possible.
13753if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13754 as_unset=unset
13755else
13756 as_unset=false
13757fi
13758
13759# NLS nuisances.
13760$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
13761$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
13762$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
13763$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
13764$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
13765$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
13766$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
13767$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
13768
13769# IFS
13770# We need space, tab and new line, in precisely that order.
13771as_nl='
13772'
13773IFS=" $as_nl"
13774
13775# CDPATH.
13776$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
13777
13778exec 6>&1
13779
13780_ACEOF
13781
13782# Files that config.status was made for.
13783if test -n "$ac_config_files"; then
13784 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13785fi
13786
13787if test -n "$ac_config_headers"; then
13788 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13789fi
13790
13791if test -n "$ac_config_links"; then
13792 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13793fi
13794
13795if test -n "$ac_config_commands"; then
13796 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13797fi
13798
13799cat >>$CONFIG_STATUS <<\EOF
13800
13801ac_cs_usage="\
13802\`$as_me' instantiates files from templates according to the
13803current configuration.
13804
13805Usage: $0 [OPTIONS] [FILE]...
13806
13807 -h, --help print this help, then exit
13808 -V, --version print version number, then exit
13809 -d, --debug don't remove temporary files
13810 --recheck update $as_me by reconfiguring in the same conditions
13811 --file=FILE[:TEMPLATE]
13812 instantiate the configuration file FILE
13813
13814Configuration files:
13815$config_files
13816
13817Report bugs to <bug-autoconf@gnu.org>."
drh75897232000-05-29 14:26:00 +000013818EOF
13819
drh71eb93e2001-09-28 01:34:43 +000013820cat >>$CONFIG_STATUS <<EOF
13821ac_cs_version="\\
13822config.status
13823configured by $0, generated by GNU Autoconf 2.52,
13824 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000013825
drh71eb93e2001-09-28 01:34:43 +000013826Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13827Free Software Foundation, Inc.
13828This config.status script is free software; the Free Software Foundation
13829gives unlimited permission to copy, distribute and modify it."
13830srcdir=$srcdir
13831INSTALL="$INSTALL"
drh75897232000-05-29 14:26:00 +000013832EOF
drh71eb93e2001-09-28 01:34:43 +000013833
13834cat >>$CONFIG_STATUS <<\EOF
13835# If no file are specified by the user, then we need to provide default
13836# value. By we need to know if files were specified by the user.
13837ac_need_defaults=:
13838while test $# != 0
13839do
13840 case $1 in
13841 --*=*)
13842 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13843 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13844 shift
13845 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13846 shift
13847 ;;
13848 -*);;
13849 *) # This is not an option, so the user has probably given explicit
13850 # arguments.
13851 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000013852 esac
13853
drh71eb93e2001-09-28 01:34:43 +000013854 case $1 in
13855 # Handling of the options.
13856EOF
13857cat >>$CONFIG_STATUS <<EOF
13858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13859 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13860 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13861EOF
13862cat >>$CONFIG_STATUS <<\EOF
13863 --version | --vers* | -V )
13864 echo "$ac_cs_version"; exit 0 ;;
13865 --he | --h)
13866 # Conflict between --help and --header
13867 { { echo "$as_me:13867: error: ambiguous option: $1
13868Try \`$0 --help' for more information." >&5
13869echo "$as_me: error: ambiguous option: $1
13870Try \`$0 --help' for more information." >&2;}
13871 { (exit 1); exit 1; }; };;
13872 --help | --hel | -h )
13873 echo "$ac_cs_usage"; exit 0 ;;
13874 --debug | --d* | -d )
13875 debug=: ;;
13876 --file | --fil | --fi | --f )
13877 shift
13878 CONFIG_FILES="$CONFIG_FILES $1"
13879 ac_need_defaults=false;;
13880 --header | --heade | --head | --hea )
13881 shift
13882 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13883 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000013884
drh71eb93e2001-09-28 01:34:43 +000013885 # This is an error.
13886 -*) { { echo "$as_me:13886: error: unrecognized option: $1
13887Try \`$0 --help' for more information." >&5
13888echo "$as_me: error: unrecognized option: $1
13889Try \`$0 --help' for more information." >&2;}
13890 { (exit 1); exit 1; }; } ;;
13891
13892 *) ac_config_targets="$ac_config_targets $1" ;;
13893
13894 esac
13895 shift
13896done
13897
13898exec 5>>config.log
13899cat >&5 << _ACEOF
13900
13901## ----------------------- ##
13902## Running config.status. ##
13903## ----------------------- ##
13904
13905This file was extended by $as_me 2.52, executed with
13906 CONFIG_FILES = $CONFIG_FILES
13907 CONFIG_HEADERS = $CONFIG_HEADERS
13908 CONFIG_LINKS = $CONFIG_LINKS
13909 CONFIG_COMMANDS = $CONFIG_COMMANDS
13910 > $ac_cs_invocation
13911on `(hostname || uname -n) 2>/dev/null | sed 1q`
13912
13913_ACEOF
13914EOF
13915
13916cat >>$CONFIG_STATUS <<\EOF
13917for ac_config_target in $ac_config_targets
13918do
13919 case "$ac_config_target" in
13920 # Handling of arguments.
13921 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13922 *) { { echo "$as_me:13922: error: invalid argument: $ac_config_target" >&5
13923echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13924 { (exit 1); exit 1; }; };;
13925 esac
13926done
13927
13928# If the user did not use the arguments to specify the items to instantiate,
13929# then the envvar interface is used. Set only those that are not.
13930# We use the long form for the default assignment because of an extremely
13931# bizarre bug on SunOS 4.1.3.
13932if $ac_need_defaults; then
13933 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13934fi
13935
13936# Create a temporary directory, and hook for its removal unless debugging.
13937$debug ||
13938{
13939 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13940 trap '{ (exit 1); exit 1; }' 1 2 13 15
13941}
13942
13943# Create a (secure) tmp directory for tmp files.
13944: ${TMPDIR=/tmp}
13945{
13946 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13947 test -n "$tmp" && test -d "$tmp"
13948} ||
13949{
13950 tmp=$TMPDIR/cs$$-$RANDOM
13951 (umask 077 && mkdir $tmp)
13952} ||
13953{
13954 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13955 { (exit 1); exit 1; }
13956}
13957
13958EOF
13959
13960cat >>$CONFIG_STATUS <<EOF
13961
13962#
13963# CONFIG_FILES section.
13964#
13965
13966# No need to generate the scripts if there are no CONFIG_FILES.
13967# This happens for instance when ./config.status config.h
13968if test -n "\$CONFIG_FILES"; then
13969 # Protect against being on the right side of a sed subst in config.status.
13970 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13971 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13972s,@SHELL@,$SHELL,;t t
13973s,@exec_prefix@,$exec_prefix,;t t
13974s,@prefix@,$prefix,;t t
13975s,@program_transform_name@,$program_transform_name,;t t
13976s,@bindir@,$bindir,;t t
13977s,@sbindir@,$sbindir,;t t
13978s,@libexecdir@,$libexecdir,;t t
13979s,@datadir@,$datadir,;t t
13980s,@sysconfdir@,$sysconfdir,;t t
13981s,@sharedstatedir@,$sharedstatedir,;t t
13982s,@localstatedir@,$localstatedir,;t t
13983s,@libdir@,$libdir,;t t
13984s,@includedir@,$includedir,;t t
13985s,@oldincludedir@,$oldincludedir,;t t
13986s,@infodir@,$infodir,;t t
13987s,@mandir@,$mandir,;t t
13988s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13989s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13990s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13991s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13992s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13993s,@build_alias@,$build_alias,;t t
13994s,@host_alias@,$host_alias,;t t
13995s,@target_alias@,$target_alias,;t t
13996s,@ECHO_C@,$ECHO_C,;t t
13997s,@ECHO_N@,$ECHO_N,;t t
13998s,@ECHO_T@,$ECHO_T,;t t
13999s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14000s,@DEFS@,$DEFS,;t t
14001s,@LIBS@,$LIBS,;t t
14002s,@build@,$build,;t t
14003s,@build_cpu@,$build_cpu,;t t
14004s,@build_vendor@,$build_vendor,;t t
14005s,@build_os@,$build_os,;t t
14006s,@host@,$host,;t t
14007s,@host_cpu@,$host_cpu,;t t
14008s,@host_vendor@,$host_vendor,;t t
14009s,@host_os@,$host_os,;t t
14010s,@CC@,$CC,;t t
14011s,@CFLAGS@,$CFLAGS,;t t
14012s,@LDFLAGS@,$LDFLAGS,;t t
14013s,@CPPFLAGS@,$CPPFLAGS,;t t
14014s,@ac_ct_CC@,$ac_ct_CC,;t t
14015s,@EXEEXT@,$EXEEXT,;t t
14016s,@OBJEXT@,$OBJEXT,;t t
14017s,@LN_S@,$LN_S,;t t
14018s,@ECHO@,$ECHO,;t t
14019s,@RANLIB@,$RANLIB,;t t
14020s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14021s,@STRIP@,$STRIP,;t t
14022s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14023s,@CPP@,$CPP,;t t
14024s,@CXX@,$CXX,;t t
14025s,@CXXFLAGS@,$CXXFLAGS,;t t
14026s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14027s,@CXXCPP@,$CXXCPP,;t t
14028s,@LIBTOOL@,$LIBTOOL,;t t
14029s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14030s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14031s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14032s,@program_prefix@,$program_prefix,;t t
14033s,@BUILD_CC@,$BUILD_CC,;t t
14034s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
14035s,@BUILD_LIBS@,$BUILD_LIBS,;t t
14036s,@TARGET_CC@,$TARGET_CC,;t t
14037s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
14038s,@TARGET_LINK@,$TARGET_LINK,;t t
14039s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
14040s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
14041s,@TARGET_AR@,$TARGET_AR,;t t
14042s,@ENCODING@,$ENCODING,;t t
14043s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
14044s,@OS_UNIX@,$OS_UNIX,;t t
14045s,@OS_WIN@,$OS_WIN,;t t
14046s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
14047s,@TARGET_LIBS@,$TARGET_LIBS,;t t
14048s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t
14049s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t
14050s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
14051s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
14052s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
14053CEOF
14054
14055EOF
14056
14057 cat >>$CONFIG_STATUS <<\EOF
14058 # Split the substitutions into bite-sized pieces for seds with
14059 # small command number limits, like on Digital OSF/1 and HP-UX.
14060 ac_max_sed_lines=48
14061 ac_sed_frag=1 # Number of current file.
14062 ac_beg=1 # First line for current file.
14063 ac_end=$ac_max_sed_lines # Line after last line for current file.
14064 ac_more_lines=:
14065 ac_sed_cmds=
14066 while $ac_more_lines; do
14067 if test $ac_beg -gt 1; then
14068 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14069 else
14070 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14071 fi
14072 if test ! -s $tmp/subs.frag; then
14073 ac_more_lines=false
14074 else
14075 # The purpose of the label and of the branching condition is to
14076 # speed up the sed processing (if there are no `@' at all, there
14077 # is no need to browse any of the substitutions).
14078 # These are the two extra sed commands mentioned above.
14079 (echo ':t
14080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14081 if test -z "$ac_sed_cmds"; then
14082 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14083 else
14084 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14085 fi
14086 ac_sed_frag=`expr $ac_sed_frag + 1`
14087 ac_beg=$ac_end
14088 ac_end=`expr $ac_end + $ac_max_sed_lines`
14089 fi
14090 done
14091 if test -z "$ac_sed_cmds"; then
14092 ac_sed_cmds=cat
14093 fi
14094fi # test -n "$CONFIG_FILES"
14095
14096EOF
14097cat >>$CONFIG_STATUS <<\EOF
14098for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14100 case $ac_file in
14101 - | *:- | *:-:* ) # input from stdin
14102 cat >$tmp/stdin
14103 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14105 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14107 * ) ac_file_in=$ac_file.in ;;
14108 esac
14109
14110 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14111 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14112 X"$ac_file" : 'X\(//\)[^/]' \| \
14113 X"$ac_file" : 'X\(//\)$' \| \
14114 X"$ac_file" : 'X\(/\)' \| \
14115 . : '\(.\)' 2>/dev/null ||
14116echo X"$ac_file" |
14117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14119 /^X\(\/\/\)$/{ s//\1/; q; }
14120 /^X\(\/\).*/{ s//\1/; q; }
14121 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +000014122 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
drh71eb93e2001-09-28 01:34:43 +000014123 { case "$ac_dir" in
14124 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14125 *) as_incr_dir=.;;
14126esac
14127as_dummy="$ac_dir"
14128for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14129 case $as_mkdir_dir in
14130 # Skip DOS drivespec
14131 ?:) as_incr_dir=$as_mkdir_dir ;;
14132 *)
14133 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14134 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14135 ;;
14136 esac
14137done; }
14138
14139 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
drh75897232000-05-29 14:26:00 +000014140 # A "../" for each directory in $ac_dir_suffix.
drh71eb93e2001-09-28 01:34:43 +000014141 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
drh75897232000-05-29 14:26:00 +000014142 else
14143 ac_dir_suffix= ac_dots=
14144 fi
14145
drh71eb93e2001-09-28 01:34:43 +000014146 case $srcdir in
14147 .) ac_srcdir=.
14148 if test -z "$ac_dots"; then
14149 ac_top_srcdir=.
14150 else
14151 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
14152 fi ;;
14153 [\\/]* | ?:[\\/]* )
14154 ac_srcdir=$srcdir$ac_dir_suffix;
14155 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000014156 *) # Relative path.
drh71eb93e2001-09-28 01:34:43 +000014157 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
14158 ac_top_srcdir=$ac_dots$srcdir ;;
drh75897232000-05-29 14:26:00 +000014159 esac
14160
drh71eb93e2001-09-28 01:34:43 +000014161 case $INSTALL in
14162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14163 *) ac_INSTALL=$ac_dots$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014164 esac
14165
drh71eb93e2001-09-28 01:34:43 +000014166 if test x"$ac_file" != x-; then
14167 { echo "$as_me:14167: creating $ac_file" >&5
14168echo "$as_me: creating $ac_file" >&6;}
14169 rm -f "$ac_file"
14170 fi
14171 # Let's still pretend it is `configure' which instantiates (i.e., don't
14172 # use $as_me), people would be surprised to read:
14173 # /* config.h. Generated automatically by config.status. */
14174 configure_input="Generated automatically from `echo $ac_file_in |
14175 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000014176
drh71eb93e2001-09-28 01:34:43 +000014177 # First look for the input files in the build tree, otherwise in the
14178 # src tree.
14179 ac_file_inputs=`IFS=:
14180 for f in $ac_file_in; do
14181 case $f in
14182 -) echo $tmp/stdin ;;
14183 [\\/$]*)
14184 # Absolute (can't be DOS-style, as IFS=:)
14185 test -f "$f" || { { echo "$as_me:14185: error: cannot find input file: $f" >&5
14186echo "$as_me: error: cannot find input file: $f" >&2;}
14187 { (exit 1); exit 1; }; }
14188 echo $f;;
14189 *) # Relative
14190 if test -f "$f"; then
14191 # Build tree
14192 echo $f
14193 elif test -f "$srcdir/$f"; then
14194 # Source tree
14195 echo $srcdir/$f
14196 else
14197 # /dev/null tree
14198 { { echo "$as_me:14198: error: cannot find input file: $f" >&5
14199echo "$as_me: error: cannot find input file: $f" >&2;}
14200 { (exit 1); exit 1; }; }
14201 fi;;
14202 esac
14203 done` || { (exit 1); exit 1; }
drh75897232000-05-29 14:26:00 +000014204EOF
drh71eb93e2001-09-28 01:34:43 +000014205cat >>$CONFIG_STATUS <<EOF
14206 sed "$ac_vpsub
14207$extrasub
drh75897232000-05-29 14:26:00 +000014208EOF
drh71eb93e2001-09-28 01:34:43 +000014209cat >>$CONFIG_STATUS <<\EOF
14210:t
14211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14212s,@configure_input@,$configure_input,;t t
14213s,@srcdir@,$ac_srcdir,;t t
14214s,@top_srcdir@,$ac_top_srcdir,;t t
14215s,@INSTALL@,$ac_INSTALL,;t t
14216" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14217 rm -f $tmp/stdin
14218 if test x"$ac_file" != x-; then
14219 mv $tmp/out $ac_file
14220 else
14221 cat $tmp/out
14222 rm -f $tmp/out
14223 fi
drh75897232000-05-29 14:26:00 +000014224
drh71eb93e2001-09-28 01:34:43 +000014225done
14226EOF
14227
14228cat >>$CONFIG_STATUS <<\EOF
14229
14230{ (exit 0); exit 0; }
drh75897232000-05-29 14:26:00 +000014231EOF
14232chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000014233ac_clean_files=$ac_clean_files_save
14234
14235# configure is writing to config.log, and then calls config.status.
14236# config.status does its own redirection, appending to config.log.
14237# Unfortunately, on DOS this fails, as config.log is still kept open
14238# by configure, so config.status won't be able to write to it; its
14239# output is simply discarded. So we exec the FD to /dev/null,
14240# effectively closing config.log, so it can be properly (re)opened and
14241# appended to by config.status. When coming back to configure, we
14242# need to make the FD available again.
14243if test "$no_create" != yes; then
14244 ac_cs_success=:
14245 exec 5>/dev/null
14246 $SHELL $CONFIG_STATUS || ac_cs_success=false
14247 exec 5>>config.log
14248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14249 # would make configure fail if this is the last instruction.
14250 $ac_cs_success || { (exit 1); exit 1; }
14251fi
drh75897232000-05-29 14:26:00 +000014252