]> cygwin.com Git - cygwin-apps/setup.git/blame - configure
2002-04-27 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / configure
CommitLineData
739457f4 1#! /bin/sh
8bb9dad9 2# From configure.in Revision: 2.5 .
739457f4 3# Guess values for system-dependent variables and create Makefiles.
db04fc41 4# Generated by GNU Autoconf 2.53.
739457f4 5#
db04fc41
RC
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# Free Software Foundation, Inc.
739457f4
CF
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10
6908b7d7
RC
11
12# Check that we are running under the correct shell.
13SHELL=${CONFIG_SHELL-/bin/sh}
14
15case X$ECHO in
16X*--fallback-echo)
17 # Remove one level of quotation (which was required for Make).
18 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
19 ;;
20esac
21
22echo=${ECHO-echo}
23if test "X$1" = X--no-reexec; then
24 # Discard the --no-reexec flag, and continue.
25 shift
26elif test "X$1" = X--fallback-echo; then
27 # Avoid inline document here, it may be left over
28 :
29elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
30 # Yippee, $echo works!
31 :
32else
33 # Restart under the correct shell.
34 exec $SHELL "$0" --no-reexec ${1+"$@"}
35fi
36
37if test "X$1" = X--fallback-echo; then
38 # used as fallback echo
39 shift
40 cat <<EOF
41$*
42EOF
43 exit 0
44fi
45
46# The HP-UX ksh and POSIX shell print the target directory to stdout
47# if CDPATH is set.
48if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
49
50if test -z "$ECHO"; then
51if test "X${echo_test_string+set}" != Xset; then
52# find a string as large as possible, as long as the shell can cope with it
53 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
54 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
55 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
56 echo_test_string="`eval $cmd`" &&
57 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
58 then
59 break
60 fi
61 done
62fi
63
64if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
65 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
66 test "X$echo_testing_string" = "X$echo_test_string"; then
67 :
68else
69 # The Solaris, AIX, and Digital Unix default echo programs unquote
70 # backslashes. This makes it impossible to quote backslashes using
71 # echo "$something" | sed 's/\\/\\\\/g'
72 #
73 # So, first we look for a working echo in the user's PATH.
74
75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
76 for dir in $PATH /usr/ucb; do
77 IFS="$lt_save_ifs"
78 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
79 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
80 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
81 test "X$echo_testing_string" = "X$echo_test_string"; then
82 echo="$dir/echo"
83 break
84 fi
85 done
86 IFS="$lt_save_ifs"
87
88 if test "X$echo" = Xecho; then
89 # We didn't find a better echo, so look for alternatives.
90 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
93 # This shell has a builtin print -r that does the trick.
94 echo='print -r'
95 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
96 test "X$CONFIG_SHELL" != X/bin/ksh; then
97 # If we have ksh, try running configure again with it.
98 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
99 export ORIGINAL_CONFIG_SHELL
100 CONFIG_SHELL=/bin/ksh
101 export CONFIG_SHELL
102 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
103 else
104 # Try using printf.
105 echo='printf %s\n'
106 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
107 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
108 test "X$echo_testing_string" = "X$echo_test_string"; then
109 # Cool, printf works
110 :
111 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
112 test "X$echo_testing_string" = 'X\t' &&
113 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
114 test "X$echo_testing_string" = "X$echo_test_string"; then
115 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
116 export CONFIG_SHELL
117 SHELL="$CONFIG_SHELL"
118 export SHELL
119 echo="$CONFIG_SHELL $0 --fallback-echo"
120 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 echo="$CONFIG_SHELL $0 --fallback-echo"
125 else
126 # maybe with a smaller string...
127 prev=:
128
129 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
130 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
131 then
132 break
133 fi
134 prev="$cmd"
135 done
136
137 if test "$prev" != 'sed 50q "$0"'; then
138 echo_test_string=`eval $prev`
139 export echo_test_string
140 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
141 else
142 # Oops. We lost completely, so just stick with echo.
143 echo=echo
144 fi
145 fi
146 fi
147 fi
148fi
149fi
150
151# Copy echo and quote the copy suitably for passing to libtool from
152# the Makefile, instead of quoting the original, which is used later.
153ECHO=$echo
154if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
155 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
156fi
157
158
159
db04fc41
RC
160if expr a : '\(a\)' >/dev/null 2>&1; then
161 as_expr=expr
162else
163 as_expr=false
164fi
165
166
167## --------------------- ##
168## M4sh Initialization. ##
169## --------------------- ##
170
171# Be Bourne compatible
172if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
173 emulate sh
174 NULLCMD=:
175elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
176 set -o posix
177fi
178
179# NLS nuisances.
180# Support unset when possible.
181if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
182 as_unset=unset
183else
184 as_unset=false
185fi
186
187(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
188 { $as_unset LANG || test "${LANG+set}" != set; } ||
189 { LANG=C; export LANG; }
190(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
191 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
192 { LC_ALL=C; export LC_ALL; }
193(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
194 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
195 { LC_TIME=C; export LC_TIME; }
196(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
197 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
198 { LC_CTYPE=C; export LC_CTYPE; }
199(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
200 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
201 { LANGUAGE=C; export LANGUAGE; }
202(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
203 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
204 { LC_COLLATE=C; export LC_COLLATE; }
205(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
206 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
207 { LC_NUMERIC=C; export LC_NUMERIC; }
208(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
209 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
210 { LC_MESSAGES=C; export LC_MESSAGES; }
211
212
213# Name of the executable.
214as_me=`(basename "$0") 2>/dev/null ||
215$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
216 X"$0" : 'X\(//\)$' \| \
217 X"$0" : 'X\(/\)$' \| \
218 . : '\(.\)' 2>/dev/null ||
219echo X/"$0" |
220 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
221 /^X\/\(\/\/\)$/{ s//\1/; q; }
222 /^X\/\(\/\).*/{ s//\1/; q; }
223 s/.*/./; q'`
224
225# PATH needs CR, and LINENO needs CR and PATH.
226# Avoid depending upon Character Ranges.
227as_cr_letters='abcdefghijklmnopqrstuvwxyz'
228as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
229as_cr_Letters=$as_cr_letters$as_cr_LETTERS
230as_cr_digits='0123456789'
231as_cr_alnum=$as_cr_Letters$as_cr_digits
232
233# The user is always right.
234if test "${PATH_SEPARATOR+set}" != set; then
235 echo "#! /bin/sh" >conftest.sh
236 echo "exit 0" >>conftest.sh
237 chmod +x conftest.sh
238 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
239 PATH_SEPARATOR=';'
240 else
241 PATH_SEPARATOR=:
242 fi
243 rm -f conftest.sh
244fi
245
246
247 as_lineno_1=$LINENO
248 as_lineno_2=$LINENO
249 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
250 test "x$as_lineno_1" != "x$as_lineno_2" &&
251 test "x$as_lineno_3" = "x$as_lineno_2" || {
252 # Find who we are. Look in the path if we contain no path at all
253 # relative or not.
254 case $0 in
255 *[\\/]* ) as_myself=$0 ;;
256 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
257for as_dir in $PATH
258do
259 IFS=$as_save_IFS
260 test -z "$as_dir" && as_dir=.
261 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
262done
263
264 ;;
265 esac
266 # We did not find ourselves, most probably we were run as `sh COMMAND'
267 # in which case we are not to be found in the path.
268 if test "x$as_myself" = x; then
269 as_myself=$0
270 fi
271 if test ! -f "$as_myself"; then
272 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
273 { (exit 1); exit 1; }; }
274 fi
275 case $CONFIG_SHELL in
276 '')
277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
278for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
279do
280 IFS=$as_save_IFS
281 test -z "$as_dir" && as_dir=.
282 for as_base in sh bash ksh sh5; do
283 case $as_dir in
284 /*)
285 if ("$as_dir/$as_base" -c '
286 as_lineno_1=$LINENO
287 as_lineno_2=$LINENO
288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
291 CONFIG_SHELL=$as_dir/$as_base
292 export CONFIG_SHELL
293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
294 fi;;
295 esac
296 done
297done
298;;
299 esac
300
301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
302 # uniformly replaced by the line number. The first 'sed' inserts a
303 # line-number line before each line; the second 'sed' does the real
304 # work. The second script uses 'N' to pair each line-number line
305 # with the numbered line, and appends trailing '-' during
306 # substitution so that $LINENO is not a special case at line end.
307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
309 sed '=' <$as_myself |
310 sed '
311 N
312 s,$,-,
313 : loop
314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
315 t loop
316 s,-$,,
317 s,^['$as_cr_digits']*\n,,
318 ' >$as_me.lineno &&
319 chmod +x $as_me.lineno ||
320 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
321 { (exit 1); exit 1; }; }
322
323 # Don't try to exec as it changes $[0], causing all sort of problems
324 # (the dirname of $[0] is not the place where we might find the
325 # original and so on. Autoconf is especially sensible to this).
326 . ./$as_me.lineno
327 # Exit status is that of the last command.
328 exit
329}
330
331
332case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
333 *c*,-n*) ECHO_N= ECHO_C='
334' ECHO_T=' ' ;;
335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
337esac
338
339if expr a : '\(a\)' >/dev/null 2>&1; then
340 as_expr=expr
341else
342 as_expr=false
343fi
344
345rm -f conf$$ conf$$.exe conf$$.file
346echo >conf$$.file
347if ln -s conf$$.file conf$$ 2>/dev/null; then
348 # We could just check for DJGPP; but this test a) works b) is more generic
349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
350 if test -f conf$$.exe; then
351 # Don't use ln at all; we don't have any links
352 as_ln_s='cp -p'
353 else
354 as_ln_s='ln -s'
355 fi
356elif ln conf$$.file conf$$ 2>/dev/null; then
357 as_ln_s=ln
358else
359 as_ln_s='cp -p'
360fi
361rm -f conf$$ conf$$.exe conf$$.file
362
363as_executable_p="test -f"
364
365# Sed expression to map a string onto a valid CPP name.
366as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
367
368# Sed expression to map a string onto a valid variable name.
369as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
370
371
372# IFS
373# We need space, tab and new line, in precisely that order.
374as_nl='
375'
376IFS=" $as_nl"
377
378# CDPATH.
379$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
380
381
382# Name of the host.
383# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
384# so uname gets run too.
385ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
386
387exec 6>&1
388
389#
390# Initializations.
391#
739457f4 392ac_default_prefix=/usr/local
db04fc41
RC
393cross_compiling=no
394subdirs=
395MFLAGS=
396MAKEFLAGS=
397SHELL=${CONFIG_SHELL-/bin/sh}
398
399# Maximum number of lines to put in a shell here document.
400# This variable seems obsolete. It should probably be removed, and
401# only ac_max_sed_lines should be used.
402: ${ac_max_here_lines=38}
403
404# Identity of this package.
405PACKAGE_NAME=
406PACKAGE_TARNAME=
407PACKAGE_VERSION=
408PACKAGE_STRING=
409PACKAGE_BUGREPORT=
410
411ac_unique_file="Makefile.in"
6908b7d7
RC
412# Factoring default headers for most tests.
413ac_includes_default="\
414#include <stdio.h>
415#if HAVE_SYS_TYPES_H
416# include <sys/types.h>
417#endif
418#if HAVE_SYS_STAT_H
419# include <sys/stat.h>
420#endif
421#if STDC_HEADERS
422# include <stdlib.h>
423# include <stddef.h>
424#else
425# if HAVE_STDLIB_H
426# include <stdlib.h>
427# endif
428#endif
429#if HAVE_STRING_H
430# if !STDC_HEADERS && HAVE_MEMORY_H
431# include <memory.h>
432# endif
433# include <string.h>
434#endif
435#if HAVE_STRINGS_H
436# include <strings.h>
437#endif
438#if HAVE_INTTYPES_H
439# include <inttypes.h>
440#else
441# if HAVE_STDINT_H
442# include <stdint.h>
443# endif
444#endif
445#if HAVE_UNISTD_H
446# include <unistd.h>
447#endif"
448
db04fc41
RC
449ac_subdirs_all="$ac_subdirs_all zlib"
450ac_subdirs_all="$ac_subdirs_all bz2lib"
6908b7d7 451ac_subdirs_all="$ac_subdirs_all libgetopt++"
739457f4
CF
452
453# Initialize some variables set by options.
db04fc41
RC
454ac_init_help=
455ac_init_version=false
739457f4
CF
456# The variables have the same names as the options, with
457# dashes changed to underlines.
db04fc41 458cache_file=/dev/null
739457f4 459exec_prefix=NONE
739457f4 460no_create=
739457f4
CF
461no_recursion=
462prefix=NONE
463program_prefix=NONE
464program_suffix=NONE
465program_transform_name=s,x,x,
466silent=
467site=
739457f4 468srcdir=
739457f4
CF
469verbose=
470x_includes=NONE
471x_libraries=NONE
db04fc41
RC
472
473# Installation directory options.
474# These are left unexpanded so users can "make install exec_prefix=/foo"
475# and all the variables that are supposed to be based on exec_prefix
476# by default will actually change.
477# Use braces instead of parens because sh, perl, etc. also accept them.
739457f4
CF
478bindir='${exec_prefix}/bin'
479sbindir='${exec_prefix}/sbin'
480libexecdir='${exec_prefix}/libexec'
481datadir='${prefix}/share'
482sysconfdir='${prefix}/etc'
483sharedstatedir='${prefix}/com'
484localstatedir='${prefix}/var'
485libdir='${exec_prefix}/lib'
486includedir='${prefix}/include'
487oldincludedir='/usr/include'
488infodir='${prefix}/info'
489mandir='${prefix}/man'
490
739457f4
CF
491ac_prev=
492for ac_option
493do
739457f4
CF
494 # If the previous option needs an argument, assign it.
495 if test -n "$ac_prev"; then
496 eval "$ac_prev=\$ac_option"
497 ac_prev=
498 continue
499 fi
500
db04fc41 501 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
739457f4
CF
502
503 # Accept the important Cygnus configure options, so we can diagnose typos.
504
db04fc41 505 case $ac_option in
739457f4
CF
506
507 -bindir | --bindir | --bindi | --bind | --bin | --bi)
508 ac_prev=bindir ;;
509 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
db04fc41 510 bindir=$ac_optarg ;;
739457f4
CF
511
512 -build | --build | --buil | --bui | --bu)
db04fc41 513 ac_prev=build_alias ;;
739457f4 514 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
db04fc41 515 build_alias=$ac_optarg ;;
739457f4
CF
516
517 -cache-file | --cache-file | --cache-fil | --cache-fi \
518 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
519 ac_prev=cache_file ;;
520 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
521 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
db04fc41
RC
522 cache_file=$ac_optarg ;;
523
524 --config-cache | -C)
525 cache_file=config.cache ;;
739457f4
CF
526
527 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
528 ac_prev=datadir ;;
529 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
530 | --da=*)
db04fc41 531 datadir=$ac_optarg ;;
739457f4
CF
532
533 -disable-* | --disable-*)
db04fc41 534 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
739457f4 535 # Reject names that are not valid shell variable names.
db04fc41
RC
536 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
537 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
538 { (exit 1); exit 1; }; }
539 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
540 eval "enable_$ac_feature=no" ;;
739457f4
CF
541
542 -enable-* | --enable-*)
db04fc41 543 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
739457f4 544 # Reject names that are not valid shell variable names.
db04fc41
RC
545 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
547 { (exit 1); exit 1; }; }
548 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
549 case $ac_option in
550 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739457f4
CF
551 *) ac_optarg=yes ;;
552 esac
db04fc41 553 eval "enable_$ac_feature='$ac_optarg'" ;;
739457f4
CF
554
555 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
556 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
557 | --exec | --exe | --ex)
558 ac_prev=exec_prefix ;;
559 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
560 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
561 | --exec=* | --exe=* | --ex=*)
db04fc41 562 exec_prefix=$ac_optarg ;;
739457f4
CF
563
564 -gas | --gas | --ga | --g)
565 # Obsolete; use --with-gas.
566 with_gas=yes ;;
567
db04fc41
RC
568 -help | --help | --hel | --he | -h)
569 ac_init_help=long ;;
570 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
571 ac_init_help=recursive ;;
572 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
573 ac_init_help=short ;;
739457f4
CF
574
575 -host | --host | --hos | --ho)
db04fc41 576 ac_prev=host_alias ;;
739457f4 577 -host=* | --host=* | --hos=* | --ho=*)
db04fc41 578 host_alias=$ac_optarg ;;
739457f4
CF
579
580 -includedir | --includedir | --includedi | --included | --include \
581 | --includ | --inclu | --incl | --inc)
582 ac_prev=includedir ;;
583 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
584 | --includ=* | --inclu=* | --incl=* | --inc=*)
db04fc41 585 includedir=$ac_optarg ;;
739457f4
CF
586
587 -infodir | --infodir | --infodi | --infod | --info | --inf)
588 ac_prev=infodir ;;
589 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
db04fc41 590 infodir=$ac_optarg ;;
739457f4
CF
591
592 -libdir | --libdir | --libdi | --libd)
593 ac_prev=libdir ;;
594 -libdir=* | --libdir=* | --libdi=* | --libd=*)
db04fc41 595 libdir=$ac_optarg ;;
739457f4
CF
596
597 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
598 | --libexe | --libex | --libe)
599 ac_prev=libexecdir ;;
600 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
601 | --libexe=* | --libex=* | --libe=*)
db04fc41 602 libexecdir=$ac_optarg ;;
739457f4
CF
603
604 -localstatedir | --localstatedir | --localstatedi | --localstated \
605 | --localstate | --localstat | --localsta | --localst \
606 | --locals | --local | --loca | --loc | --lo)
607 ac_prev=localstatedir ;;
608 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
609 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
610 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
db04fc41 611 localstatedir=$ac_optarg ;;
739457f4
CF
612
613 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
614 ac_prev=mandir ;;
615 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
db04fc41 616 mandir=$ac_optarg ;;
739457f4
CF
617
618 -nfp | --nfp | --nf)
619 # Obsolete; use --without-fp.
620 with_fp=no ;;
621
622 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
db04fc41 623 | --no-cr | --no-c | -n)
739457f4
CF
624 no_create=yes ;;
625
626 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
627 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
628 no_recursion=yes ;;
629
630 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
631 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
632 | --oldin | --oldi | --old | --ol | --o)
633 ac_prev=oldincludedir ;;
634 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
635 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
636 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
db04fc41 637 oldincludedir=$ac_optarg ;;
739457f4
CF
638
639 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
640 ac_prev=prefix ;;
641 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
db04fc41 642 prefix=$ac_optarg ;;
739457f4
CF
643
644 -program-prefix | --program-prefix | --program-prefi | --program-pref \
645 | --program-pre | --program-pr | --program-p)
646 ac_prev=program_prefix ;;
647 -program-prefix=* | --program-prefix=* | --program-prefi=* \
648 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
db04fc41 649 program_prefix=$ac_optarg ;;
739457f4
CF
650
651 -program-suffix | --program-suffix | --program-suffi | --program-suff \
652 | --program-suf | --program-su | --program-s)
653 ac_prev=program_suffix ;;
654 -program-suffix=* | --program-suffix=* | --program-suffi=* \
655 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
db04fc41 656 program_suffix=$ac_optarg ;;
739457f4
CF
657
658 -program-transform-name | --program-transform-name \
659 | --program-transform-nam | --program-transform-na \
660 | --program-transform-n | --program-transform- \
661 | --program-transform | --program-transfor \
662 | --program-transfo | --program-transf \
663 | --program-trans | --program-tran \
664 | --progr-tra | --program-tr | --program-t)
665 ac_prev=program_transform_name ;;
666 -program-transform-name=* | --program-transform-name=* \
667 | --program-transform-nam=* | --program-transform-na=* \
668 | --program-transform-n=* | --program-transform-=* \
669 | --program-transform=* | --program-transfor=* \
670 | --program-transfo=* | --program-transf=* \
671 | --program-trans=* | --program-tran=* \
672 | --progr-tra=* | --program-tr=* | --program-t=*)
db04fc41 673 program_transform_name=$ac_optarg ;;
739457f4
CF
674
675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
676 | -silent | --silent | --silen | --sile | --sil)
677 silent=yes ;;
678
679 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
680 ac_prev=sbindir ;;
681 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
682 | --sbi=* | --sb=*)
db04fc41 683 sbindir=$ac_optarg ;;
739457f4
CF
684
685 -sharedstatedir | --sharedstatedir | --sharedstatedi \
686 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
687 | --sharedst | --shareds | --shared | --share | --shar \
688 | --sha | --sh)
689 ac_prev=sharedstatedir ;;
690 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
691 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
692 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
693 | --sha=* | --sh=*)
db04fc41 694 sharedstatedir=$ac_optarg ;;
739457f4
CF
695
696 -site | --site | --sit)
697 ac_prev=site ;;
698 -site=* | --site=* | --sit=*)
db04fc41 699 site=$ac_optarg ;;
739457f4 700
739457f4
CF
701 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
702 ac_prev=srcdir ;;
703 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
db04fc41 704 srcdir=$ac_optarg ;;
739457f4
CF
705
706 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
707 | --syscon | --sysco | --sysc | --sys | --sy)
708 ac_prev=sysconfdir ;;
709 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
710 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
db04fc41 711 sysconfdir=$ac_optarg ;;
739457f4
CF
712
713 -target | --target | --targe | --targ | --tar | --ta | --t)
db04fc41 714 ac_prev=target_alias ;;
739457f4 715 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
db04fc41 716 target_alias=$ac_optarg ;;
739457f4
CF
717
718 -v | -verbose | --verbose | --verbos | --verbo | --verb)
719 verbose=yes ;;
720
db04fc41
RC
721 -version | --version | --versio | --versi | --vers | -V)
722 ac_init_version=: ;;
739457f4
CF
723
724 -with-* | --with-*)
db04fc41 725 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739457f4 726 # Reject names that are not valid shell variable names.
db04fc41
RC
727 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
728 { echo "$as_me: error: invalid package name: $ac_package" >&2
729 { (exit 1); exit 1; }; }
739457f4 730 ac_package=`echo $ac_package| sed 's/-/_/g'`
db04fc41
RC
731 case $ac_option in
732 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739457f4
CF
733 *) ac_optarg=yes ;;
734 esac
db04fc41 735 eval "with_$ac_package='$ac_optarg'" ;;
739457f4
CF
736
737 -without-* | --without-*)
db04fc41 738 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
739457f4 739 # Reject names that are not valid shell variable names.
db04fc41
RC
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package=`echo $ac_package | sed 's/-/_/g'`
744 eval "with_$ac_package=no" ;;
739457f4
CF
745
746 --x)
747 # Obsolete; use --with-x.
748 with_x=yes ;;
749
750 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
751 | --x-incl | --x-inc | --x-in | --x-i)
752 ac_prev=x_includes ;;
753 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
754 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
db04fc41 755 x_includes=$ac_optarg ;;
739457f4
CF
756
757 -x-libraries | --x-libraries | --x-librarie | --x-librari \
758 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
759 ac_prev=x_libraries ;;
760 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
761 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
db04fc41 762 x_libraries=$ac_optarg ;;
739457f4 763
db04fc41
RC
764 -*) { echo "$as_me: error: unrecognized option: $ac_option
765Try \`$0 --help' for more information." >&2
766 { (exit 1); exit 1; }; }
739457f4
CF
767 ;;
768
db04fc41
RC
769 *=*)
770 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
771 # Reject names that are not valid shell variable names.
772 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
773 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
774 { (exit 1); exit 1; }; }
775 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
776 eval "$ac_envvar='$ac_optarg'"
777 export $ac_envvar ;;
778
739457f4 779 *)
db04fc41
RC
780 # FIXME: should be removed in autoconf 3.0.
781 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
782 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
783 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
784 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
739457f4
CF
785 ;;
786
787 esac
788done
789
790if test -n "$ac_prev"; then
db04fc41
RC
791 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
792 { echo "$as_me: error: missing argument to $ac_option" >&2
793 { (exit 1); exit 1; }; }
739457f4 794fi
739457f4 795
db04fc41
RC
796# Be sure to have absolute paths.
797for ac_var in exec_prefix prefix
798do
799 eval ac_val=$`echo $ac_var`
800 case $ac_val in
801 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
802 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
803 { (exit 1); exit 1; }; };;
804 esac
805done
739457f4 806
db04fc41
RC
807# Be sure to have absolute paths.
808for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
809 localstatedir libdir includedir oldincludedir infodir mandir
739457f4 810do
db04fc41
RC
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
739457f4
CF
816 esac
817done
818
db04fc41
RC
819# There might be people who depend on the old broken behavior: `$host'
820# used to hold the argument of --host etc.
821# FIXME: To remove some day.
822build=$build_alias
823host=$host_alias
824target=$target_alias
825
826# FIXME: To remove some day.
827if test "x$host_alias" != x; then
828 if test "x$build_alias" = x; then
829 cross_compiling=maybe
830 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
831 If a cross compiler is detected then cross compile mode will be used." >&2
832 elif test "x$build_alias" != "x$host_alias"; then
833 cross_compiling=yes
834 fi
835fi
739457f4 836
db04fc41
RC
837ac_tool_prefix=
838test -n "$host_alias" && ac_tool_prefix=$host_alias-
839
840test "$silent" = yes && exec 6>/dev/null
739457f4 841
739457f4
CF
842
843# Find the source files, if location was not specified.
844if test -z "$srcdir"; then
845 ac_srcdir_defaulted=yes
846 # Try the directory containing this script, then its parent.
db04fc41
RC
847 ac_confdir=`(dirname "$0") 2>/dev/null ||
848$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
849 X"$0" : 'X\(//\)[^/]' \| \
850 X"$0" : 'X\(//\)$' \| \
851 X"$0" : 'X\(/\)' \| \
852 . : '\(.\)' 2>/dev/null ||
853echo X"$0" |
854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
856 /^X\(\/\/\)$/{ s//\1/; q; }
857 /^X\(\/\).*/{ s//\1/; q; }
858 s/.*/./; q'`
739457f4
CF
859 srcdir=$ac_confdir
860 if test ! -r $srcdir/$ac_unique_file; then
861 srcdir=..
862 fi
863else
864 ac_srcdir_defaulted=no
865fi
866if test ! -r $srcdir/$ac_unique_file; then
867 if test "$ac_srcdir_defaulted" = yes; then
db04fc41
RC
868 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
869 { (exit 1); exit 1; }; }
739457f4 870 else
db04fc41
RC
871 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
872 { (exit 1); exit 1; }; }
739457f4
CF
873 fi
874fi
db04fc41
RC
875srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
876ac_env_build_alias_set=${build_alias+set}
877ac_env_build_alias_value=$build_alias
878ac_cv_env_build_alias_set=${build_alias+set}
879ac_cv_env_build_alias_value=$build_alias
880ac_env_host_alias_set=${host_alias+set}
881ac_env_host_alias_value=$host_alias
882ac_cv_env_host_alias_set=${host_alias+set}
883ac_cv_env_host_alias_value=$host_alias
884ac_env_target_alias_set=${target_alias+set}
885ac_env_target_alias_value=$target_alias
886ac_cv_env_target_alias_set=${target_alias+set}
887ac_cv_env_target_alias_value=$target_alias
888ac_env_CXX_set=${CXX+set}
889ac_env_CXX_value=$CXX
890ac_cv_env_CXX_set=${CXX+set}
891ac_cv_env_CXX_value=$CXX
892ac_env_CXXFLAGS_set=${CXXFLAGS+set}
893ac_env_CXXFLAGS_value=$CXXFLAGS
894ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
895ac_cv_env_CXXFLAGS_value=$CXXFLAGS
896ac_env_LDFLAGS_set=${LDFLAGS+set}
897ac_env_LDFLAGS_value=$LDFLAGS
898ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
899ac_cv_env_LDFLAGS_value=$LDFLAGS
900ac_env_CPPFLAGS_set=${CPPFLAGS+set}
901ac_env_CPPFLAGS_value=$CPPFLAGS
902ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
903ac_cv_env_CPPFLAGS_value=$CPPFLAGS
904ac_env_CC_set=${CC+set}
905ac_env_CC_value=$CC
906ac_cv_env_CC_set=${CC+set}
907ac_cv_env_CC_value=$CC
908ac_env_CFLAGS_set=${CFLAGS+set}
909ac_env_CFLAGS_value=$CFLAGS
910ac_cv_env_CFLAGS_set=${CFLAGS+set}
911ac_cv_env_CFLAGS_value=$CFLAGS
6908b7d7
RC
912ac_env_CPP_set=${CPP+set}
913ac_env_CPP_value=$CPP
914ac_cv_env_CPP_set=${CPP+set}
915ac_cv_env_CPP_value=$CPP
916ac_env_CXXCPP_set=${CXXCPP+set}
917ac_env_CXXCPP_value=$CXXCPP
918ac_cv_env_CXXCPP_set=${CXXCPP+set}
919ac_cv_env_CXXCPP_value=$CXXCPP
db04fc41
RC
920
921#
922# Report the --help message.
923#
924if test "$ac_init_help" = "long"; then
925 # Omit some internal or obsolete options to make the list less imposing.
926 # This message is too long to be a string in the A/UX 3.1 sh.
927 cat <<_ACEOF
928\`configure' configures this package to adapt to many kinds of systems.
929
930Usage: $0 [OPTION]... [VAR=VALUE]...
931
932To assign environment variables (e.g., CC, CFLAGS...), specify them as
933VAR=VALUE. See below for descriptions of some of the useful variables.
934
935Defaults for the options are specified in brackets.
936
937Configuration:
938 -h, --help display this help and exit
939 --help=short display options specific to this package
940 --help=recursive display the short help of all the included packages
941 -V, --version display version information and exit
942 -q, --quiet, --silent do not print \`checking...' messages
943 --cache-file=FILE cache test results in FILE [disabled]
944 -C, --config-cache alias for \`--cache-file=config.cache'
945 -n, --no-create do not create output files
946 --srcdir=DIR find the sources in DIR [configure dir or \`..']
947
948_ACEOF
949
950 cat <<_ACEOF
951Installation directories:
952 --prefix=PREFIX install architecture-independent files in PREFIX
953 [$ac_default_prefix]
954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
955 [PREFIX]
956
957By default, \`make install' will install all the files in
958\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
959an installation prefix other than \`$ac_default_prefix' using \`--prefix',
960for instance \`--prefix=\$HOME'.
961
962For better control, use the options below.
963
964Fine tuning of the installation directories:
965 --bindir=DIR user executables [EPREFIX/bin]
966 --sbindir=DIR system admin executables [EPREFIX/sbin]
967 --libexecdir=DIR program executables [EPREFIX/libexec]
968 --datadir=DIR read-only architecture-independent data [PREFIX/share]
969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
972 --libdir=DIR object code libraries [EPREFIX/lib]
973 --includedir=DIR C header files [PREFIX/include]
974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
975 --infodir=DIR info documentation [PREFIX/info]
976 --mandir=DIR man documentation [PREFIX/man]
977_ACEOF
978
979 cat <<\_ACEOF
980
f6100b6f
RC
981Program names:
982 --program-prefix=PREFIX prepend PREFIX to installed program names
983 --program-suffix=SUFFIX append SUFFIX to installed program names
984 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
985
db04fc41
RC
986System types:
987 --build=BUILD configure for building on BUILD [guessed]
988 --host=HOST cross-compile to build programs to run on HOST [BUILD]
989_ACEOF
990fi
991
992if test -n "$ac_init_help"; then
993
994 cat <<\_ACEOF
995
f6100b6f
RC
996Optional Features:
997 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
998 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
999 --enable-maintainer-mode enable make rules and dependencies not useful
1000 (and sometimes confusing) to the casual installer
1001 --disable-dependency-tracking Speeds up one-time builds
1002 --enable-dependency-tracking Do not reject slow dependency extractors
6908b7d7
RC
1003 --enable-shared[=PKGS]
1004 build shared libraries [default=yes]
1005 --enable-static[=PKGS]
1006 build static libraries [default=yes]
1007 --enable-fast-install[=PKGS]
1008 optimize for fast installation [default=yes]
1009 --disable-libtool-lock avoid locking (might break parallel builds)
1010
1011Optional Packages:
1012 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1013 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1014 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1015 --with-pic try to use only PIC/non-PIC objects [default=use
1016 both]
1017 --with-tags=TAGS include additional configurations [CXX,GCJ]
f6100b6f 1018
db04fc41
RC
1019Some influential environment variables:
1020 CXX C++ compiler command
1021 CXXFLAGS C++ compiler flags
1022 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1023 nonstandard directory <lib dir>
1024 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1025 headers in a nonstandard directory <include dir>
1026 CC C compiler command
1027 CFLAGS C compiler flags
6908b7d7
RC
1028 CPP C preprocessor
1029 CXXCPP C++ preprocessor
db04fc41
RC
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1068# absolute.
1069ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1070ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1071ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1072ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1073
1074 cd $ac_dir
1075 # Check for guested configure; otherwise get Cygnus style configure.
1076 if test -f $ac_srcdir/configure.gnu; then
1077 echo
1078 $SHELL $ac_srcdir/configure.gnu --help=recursive
1079 elif test -f $ac_srcdir/configure; then
1080 echo
1081 $SHELL $ac_srcdir/configure --help=recursive
1082 elif test -f $ac_srcdir/configure.ac ||
1083 test -f $ac_srcdir/configure.in; then
1084 echo
1085 $ac_configure --help
1086 else
1087 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1088 fi
1089 cd $ac_popdir
1090 done
1091fi
1092
1093test -n "$ac_init_help" && exit 0
1094if $ac_init_version; then
1095 cat <<\_ACEOF
1096
1097Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1098Free Software Foundation, Inc.
1099This configure script is free software; the Free Software Foundation
1100gives unlimited permission to copy, distribute and modify it.
1101_ACEOF
1102 exit 0
1103fi
1104exec 5>config.log
1105cat >&5 <<_ACEOF
1106This file contains any messages produced by compilers while
1107running configure, to aid debugging if configure makes a mistake.
1108
1109It was created by $as_me, which was
1110generated by GNU Autoconf 2.53. Invocation command line was
1111
1112 $ $0 $@
1113
1114_ACEOF
1115{
1116cat <<_ASUNAME
1117## --------- ##
1118## Platform. ##
1119## --------- ##
1120
1121hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1122uname -m = `(uname -m) 2>/dev/null || echo unknown`
1123uname -r = `(uname -r) 2>/dev/null || echo unknown`
1124uname -s = `(uname -s) 2>/dev/null || echo unknown`
1125uname -v = `(uname -v) 2>/dev/null || echo unknown`
1126
1127/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1128/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1129
1130/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1131/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1132/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1133hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1134/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1135/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1136/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1137
1138_ASUNAME
1139
1140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1141for as_dir in $PATH
1142do
1143 IFS=$as_save_IFS
1144 test -z "$as_dir" && as_dir=.
1145 echo "PATH: $as_dir"
1146done
1147
1148} >&5
1149
1150cat >&5 <<_ACEOF
1151
1152
1153## ----------- ##
1154## Core tests. ##
1155## ----------- ##
1156
1157_ACEOF
1158
1159
1160# Keep a trace of the command line.
1161# Strip out --no-create and --no-recursion so they do not pile up.
1162# Also quote any args containing shell meta-characters.
1163ac_configure_args=
1164ac_sep=
1165for ac_arg
1166do
1167 case $ac_arg in
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n ) continue ;;
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 continue ;;
1173 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1174 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1175 esac
1176 case " $ac_configure_args " in
1177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1178 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1179 ac_sep=" " ;;
1180 esac
1181 # Get rid of the leading space.
1182done
1183
1184# When interrupted or exit'd, cleanup temporary files, and complete
1185# config.log. We remove comments because anyway the quotes in there
1186# would cause problems or look ugly.
1187# WARNING: Be sure not to use single quotes in there, as some shells,
1188# such as our DU 5.0 friend, will then `close' the trap.
1189trap 'exit_status=$?
1190 # Save into config.log some information that might help in debugging.
1191 {
1192 echo
1193 cat <<\_ASBOX
1194## ---------------- ##
1195## Cache variables. ##
1196## ---------------- ##
1197_ASBOX
1198 echo
1199 # The following way of writing the cache mishandles newlines in values,
1200{
1201 (set) 2>&1 |
1202 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1203 *ac_space=\ *)
1204 sed -n \
1205 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1207 ;;
1208 *)
1209 sed -n \
1210 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1211 ;;
1212 esac;
1213}
1214 echo
1215 if test -s confdefs.h; then
1216 cat <<\_ASBOX
1217## ----------- ##
1218## confdefs.h. ##
1219## ----------- ##
1220_ASBOX
1221 echo
1222 sed "/^$/d" confdefs.h
1223 echo
1224 fi
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1228 } >&5
1229 rm -f core core.* *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231 exit $exit_status
1232 ' 0
1233for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235done
1236ac_signal=0
1237
1238# confdefs.h avoids OS command line length limits that DEFS can exceed.
1239rm -rf conftest* confdefs.h
1240# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241echo >confdefs.h
1242
1243# Predefined preprocessor variables.
1244
1245cat >>confdefs.h <<_ACEOF
1246#define PACKAGE_NAME "$PACKAGE_NAME"
1247_ACEOF
1248
739457f4 1249
db04fc41
RC
1250cat >>confdefs.h <<_ACEOF
1251#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252_ACEOF
1253
1254
1255cat >>confdefs.h <<_ACEOF
1256#define PACKAGE_VERSION "$PACKAGE_VERSION"
1257_ACEOF
1258
1259
1260cat >>confdefs.h <<_ACEOF
1261#define PACKAGE_STRING "$PACKAGE_STRING"
1262_ACEOF
1263
1264
1265cat >>confdefs.h <<_ACEOF
1266#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267_ACEOF
1268
1269
1270# Let the site file select an alternate cache file if it wants to.
739457f4 1271# Prefer explicitly selected file to automatically selected ones.
cef493d7
CF
1272if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 else
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
739457f4 1277 fi
739457f4
CF
1278fi
1279for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
db04fc41
RC
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
739457f4
CF
1284 . "$ac_site_file"
1285 fi
1286done
1287
1288if test -r "$cache_file"; then
db04fc41
RC
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293echo "$as_me: loading cache $cache_file" >&6;}
1294 case $cache_file in
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1297 esac
1298 fi
739457f4 1299else
db04fc41
RC
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301echo "$as_me: creating cache $cache_file" >&6;}
1302 >$cache_file
1303fi
1304
1305# Check that the precious variables saved in the cache have kept the same
1306# value.
1307ac_cache_corrupted=false
1308for ac_var in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1315 set,)
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1319 ,set)
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1323 ,);;
1324 *)
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1333 fi;;
1334 esac
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1337 case $ac_new_val in
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1341 esac
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345 esac
1346 fi
1347done
1348if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
739457f4
CF
1354fi
1355
1356ac_ext=c
739457f4 1357ac_cpp='$CPP $CPPFLAGS'
db04fc41
RC
1358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360ac_compiler_gnu=$ac_cv_c_compiler_gnu
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
739457f4
CF
1372
1373
1374
1375
1376
1377
72826a5b
CF
1378
1379
1380ac_aux_dir=
db04fc41 1381for ac_dir in cfgaux $srcdir/cfgaux; do
72826a5b
CF
1382 if test -f $ac_dir/install-sh; then
1383 ac_aux_dir=$ac_dir
1384 ac_install_sh="$ac_aux_dir/install-sh -c"
1385 break
1386 elif test -f $ac_dir/install.sh; then
1387 ac_aux_dir=$ac_dir
1388 ac_install_sh="$ac_aux_dir/install.sh -c"
1389 break
db04fc41
RC
1390 elif test -f $ac_dir/shtool; then
1391 ac_aux_dir=$ac_dir
1392 ac_install_sh="$ac_aux_dir/shtool install -c"
1393 break
72826a5b
CF
1394 fi
1395done
1396if test -z "$ac_aux_dir"; then
db04fc41
RC
1397 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1398echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1399 { (exit 1); exit 1; }; }
72826a5b 1400fi
db04fc41
RC
1401ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
72826a5b 1404
f6100b6f
RC
1405am__api_version="1.6"
1406# Find a good install program. We prefer a C program (faster),
1407# so one script is as good as another. But avoid the broken or
1408# incompatible versions:
1409# SysV /etc/install, /usr/sbin/install
1410# SunOS /usr/etc/install
1411# IRIX /sbin/install
1412# AIX /bin/install
1413# AmigaOS /C/install, which installs bootblocks on floppy discs
1414# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1415# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1416# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1417# ./install, which can be erroneously created by make from ./install.sh.
1418echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1419echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1420if test -z "$INSTALL"; then
1421if test "${ac_cv_path_install+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423else
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 # Account for people who put trailing slashes in PATH elements.
1430case $as_dir/ in
1431 ./ | .// | /cC/* | \
1432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1433 /usr/ucb/* ) ;;
1434 *)
1435 # OSF1 and SCO ODT 3.0 have their own names for install.
1436 # Don't use installbsd from OSF since it installs stuff as root
1437 # by default.
1438 for ac_prog in ginstall scoinst install; do
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1441 if test $ac_prog = install &&
1442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1443 # AIX install. It has an incompatible calling convention.
1444 :
1445 elif test $ac_prog = install &&
1446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1447 # program-specific install script used by HP pwplus--don't use.
1448 :
1449 else
1450 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1451 break 3
1452 fi
1453 fi
1454 done
1455 done
1456 ;;
1457esac
1458done
1459
1460
1461fi
1462 if test "${ac_cv_path_install+set}" = set; then
1463 INSTALL=$ac_cv_path_install
1464 else
1465 # As a last resort, use the slow shell script. We don't cache a
1466 # path for INSTALL within a source directory, because that will
1467 # break other packages using the cache if that directory is
1468 # removed, or if the path is relative.
1469 INSTALL=$ac_install_sh
1470 fi
1471fi
1472echo "$as_me:$LINENO: result: $INSTALL" >&5
1473echo "${ECHO_T}$INSTALL" >&6
1474
1475# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1476# It thinks the first close brace ends the variable substitution.
1477test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1478
1479test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1480
1481test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1482
1483echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1484echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1485# Just in case
1486sleep 1
1487echo timestamp > conftest.file
1488# Do `set' in a subshell so we don't clobber the current shell's
1489# arguments. Must try -L first in case configure is actually a
1490# symlink; some systems play weird games with the mod time of symlinks
1491# (eg FreeBSD returns the mod time of the symlink's containing
1492# directory).
1493if (
1494 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1495 if test "$*" = "X"; then
1496 # -L didn't work.
1497 set X `ls -t $srcdir/configure conftest.file`
1498 fi
1499 rm -f conftest.file
1500 if test "$*" != "X $srcdir/configure conftest.file" \
1501 && test "$*" != "X conftest.file $srcdir/configure"; then
1502
1503 # If neither matched, then we have a broken ls. This can happen
1504 # if, for instance, CONFIG_SHELL is bash and it inherits a
1505 # broken ls alias from the environment. This has actually
1506 # happened. Such a system could not be considered "sane".
1507 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1508alias in your environment" >&5
1509echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1510alias in your environment" >&2;}
1511 { (exit 1); exit 1; }; }
1512 fi
1513
1514 test "$2" = conftest.file
1515 )
1516then
1517 # Ok.
1518 :
1519else
1520 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1521Check your system clock" >&5
1522echo "$as_me: error: newly created file is older than distributed files!
1523Check your system clock" >&2;}
1524 { (exit 1); exit 1; }; }
1525fi
1526echo "$as_me:$LINENO: result: yes" >&5
1527echo "${ECHO_T}yes" >&6
1528test "$program_prefix" != NONE &&
1529 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1530# Use a double $ so make ignores it.
1531test "$program_suffix" != NONE &&
1532 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1533# Double any \ or $. echo might interpret backslashes.
1534# By default was `s,x,x', remove it if useless.
1535cat <<\_ACEOF >conftest.sed
1536s/[\\$]/&&/g;s/;s,x,x,$//
1537_ACEOF
1538program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1539rm conftest.sed
1540
1541
1542# expand $ac_aux_dir to an absolute path
1543am_aux_dir=`cd $ac_aux_dir && pwd`
1544
1545test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1546# Use eval to expand $SHELL
1547if eval "$MISSING --run true"; then
1548 am_missing_run="$MISSING --run "
1549else
1550 am_missing_run=
1551 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1552echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1553fi
1554
1555for ac_prog in gawk mawk nawk awk
1556do
1557 # Extract the first word of "$ac_prog", so it can be a program name with args.
1558set dummy $ac_prog; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_AWK+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$AWK"; then
1565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_AWK="$ac_prog"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581fi
1582fi
1583AWK=$ac_cv_prog_AWK
1584if test -n "$AWK"; then
1585 echo "$as_me:$LINENO: result: $AWK" >&5
1586echo "${ECHO_T}$AWK" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 test -n "$AWK" && break
1593done
1594
1595echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1596echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1597set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1598if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 cat >conftest.make <<\_ACEOF
1602all:
1603 @echo 'ac_maketemp="${MAKE}"'
1604_ACEOF
1605# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1606eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1607if test -n "$ac_maketemp"; then
1608 eval ac_cv_prog_make_${ac_make}_set=yes
1609else
1610 eval ac_cv_prog_make_${ac_make}_set=no
1611fi
1612rm -f conftest.make
1613fi
1614if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1615 echo "$as_me:$LINENO: result: yes" >&5
1616echo "${ECHO_T}yes" >&6
1617 SET_MAKE=
1618else
1619 echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621 SET_MAKE="MAKE=${MAKE-make}"
1622fi
1623
1624 # test to see if srcdir already configured
1625if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1630fi
1631
1632# Define the identity of the package.
1633 PACKAGE=setup
1634 VERSION=0
1635
1636
1637cat >>confdefs.h <<_ACEOF
1638#define PACKAGE "$PACKAGE"
1639_ACEOF
1640
1641
1642cat >>confdefs.h <<_ACEOF
1643#define VERSION "$VERSION"
1644_ACEOF
1645
1646# Some tools Automake needs.
1647
1648ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1649
1650
1651AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1652
1653
1654AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1655
1656
1657AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1658
1659
1660MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1661
1662
1663AMTAR=${AMTAR-"${am_missing_run}tar"}
1664
1665install_sh=${install_sh-"$am_aux_dir/install-sh"}
1666
1667# Installed binaries are usually stripped using `strip' when the user
1668# run `make install-strip'. However `strip' might not be the right
1669# tool to use in cross-compilation environments, therefore Automake
1670# will honor the `STRIP' environment variable to overrule this program.
1671if test "$cross_compiling" != no; then
1672 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1674set dummy ${ac_tool_prefix}strip; ac_word=$2
1675echo "$as_me:$LINENO: checking for $ac_word" >&5
1676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677if test "${ac_cv_prog_STRIP+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679else
1680 if test -n "$STRIP"; then
1681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1682else
1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684for as_dir in $PATH
1685do
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1693 fi
1694done
1695done
1696
1697fi
1698fi
1699STRIP=$ac_cv_prog_STRIP
1700if test -n "$STRIP"; then
1701 echo "$as_me:$LINENO: result: $STRIP" >&5
1702echo "${ECHO_T}$STRIP" >&6
1703else
1704 echo "$as_me:$LINENO: result: no" >&5
1705echo "${ECHO_T}no" >&6
1706fi
1707
1708fi
1709if test -z "$ac_cv_prog_STRIP"; then
1710 ac_ct_STRIP=$STRIP
1711 # Extract the first word of "strip", so it can be a program name with args.
1712set dummy strip; ac_word=$2
1713echo "$as_me:$LINENO: checking for $ac_word" >&5
1714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718 if test -n "$ac_ct_STRIP"; then
1719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1720else
1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722for as_dir in $PATH
1723do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_ac_ct_STRIP="strip"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 break 2
1731 fi
1732done
1733done
1734
1735 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1736fi
1737fi
1738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1739if test -n "$ac_ct_STRIP"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1741echo "${ECHO_T}$ac_ct_STRIP" >&6
1742else
1743 echo "$as_me:$LINENO: result: no" >&5
1744echo "${ECHO_T}no" >&6
1745fi
1746
1747 STRIP=$ac_ct_STRIP
1748else
1749 STRIP="$ac_cv_prog_STRIP"
1750fi
1751
1752fi
1753INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1754
1755# We need awk for the "check" target. The system "awk" is bad on
1756# some platforms.
1757
1758
1759
1760echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1761echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1762 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1763if test "${enable_maintainer_mode+set}" = set; then
1764 enableval="$enable_maintainer_mode"
1765 USE_MAINTAINER_MODE=$enableval
1766else
1767 USE_MAINTAINER_MODE=no
1768fi;
1769 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1770echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1771
72826a5b 1772
f6100b6f
RC
1773if test $USE_MAINTAINER_MODE = yes; then
1774 MAINTAINER_MODE_TRUE=
1775 MAINTAINER_MODE_FALSE='#'
1776else
1777 MAINTAINER_MODE_TRUE='#'
1778 MAINTAINER_MODE_FALSE=
1779fi
1780
1781 MAINT=$MAINTAINER_MODE_TRUE
1782
1783
1784
1785
1786ac_ext=cc
1787ac_cpp='$CXXCPP $CPPFLAGS'
1788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72826a5b 1791
db04fc41
RC
1792ac_ext=cc
1793ac_cpp='$CXXCPP $CPPFLAGS'
1794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1797if test -n "$ac_tool_prefix"; then
1798 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1799 do
1800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1802echo "$as_me:$LINENO: checking for $ac_word" >&5
1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804if test "${ac_cv_prog_CXX+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 1806else
db04fc41
RC
1807 if test -n "$CXX"; then
1808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
739457f4 1809else
db04fc41
RC
1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1820 fi
1821done
1822done
1823
739457f4
CF
1824fi
1825fi
db04fc41
RC
1826CXX=$ac_cv_prog_CXX
1827if test -n "$CXX"; then
1828 echo "$as_me:$LINENO: result: $CXX" >&5
1829echo "${ECHO_T}$CXX" >&6
739457f4 1830else
db04fc41
RC
1831 echo "$as_me:$LINENO: result: no" >&5
1832echo "${ECHO_T}no" >&6
739457f4
CF
1833fi
1834
db04fc41 1835 test -n "$CXX" && break
739457f4 1836 done
739457f4 1837fi
db04fc41
RC
1838if test -z "$CXX"; then
1839 ac_ct_CXX=$CXX
1840 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1841do
1842 # Extract the first word of "$ac_prog", so it can be a program name with args.
1843set dummy $ac_prog; ac_word=$2
1844echo "$as_me:$LINENO: checking for $ac_word" >&5
1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849 if test -n "$ac_ct_CXX"; then
1850 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_ac_ct_CXX="$ac_prog"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1862 fi
1863done
1864done
1865
739457f4
CF
1866fi
1867fi
db04fc41
RC
1868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1869if test -n "$ac_ct_CXX"; then
1870 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1871echo "${ECHO_T}$ac_ct_CXX" >&6
739457f4 1872else
db04fc41
RC
1873 echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6
739457f4
CF
1875fi
1876
db04fc41
RC
1877 test -n "$ac_ct_CXX" && break
1878done
1879test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1880
1881 CXX=$ac_ct_CXX
1882fi
1883
1884
1885# Provide some information about the compiler.
1886echo "$as_me:$LINENO:" \
1887 "checking for C++ compiler version" >&5
1888ac_compiler=`set X $ac_compile; echo $2`
1889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1890 (eval $ac_compiler --version </dev/null >&5) 2>&5
1891 ac_status=$?
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }
1894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1895 (eval $ac_compiler -v </dev/null >&5) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1900 (eval $ac_compiler -V </dev/null >&5) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1904
1905cat >conftest.$ac_ext <<_ACEOF
1906#line $LINENO "configure"
1907#include "confdefs.h"
1908
1909#ifdef F77_DUMMY_MAIN
1910# ifdef __cplusplus
1911 extern "C"
1912# endif
1913 int F77_DUMMY_MAIN() { return 1; }
739457f4 1914#endif
db04fc41
RC
1915int
1916main ()
1917{
1918
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923ac_clean_files_save=$ac_clean_files
1924ac_clean_files="$ac_clean_files a.out a.exe"
1925# Try to create an executable without -o first, disregard a.out.
1926# It will help us diagnose broken compilers, and finding out an intuition
1927# of exeext.
1928echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1929echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1930ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1931if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1932 (eval $ac_link_default) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; then
1936 # Find the output, starting from the most likely. This scheme is
1937# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1938# resort.
1939
1940# Be careful to initialize this variable, since it used to be cached.
1941# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1942ac_cv_exeext=
1943for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1944 ls a.out conftest 2>/dev/null;
1945 ls a.* conftest.* 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1948 a.out ) # We found the default executable, but exeext='' is most
1949 # certainly right.
1950 break;;
1951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1952 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1953 export ac_cv_exeext
1954 break;;
1955 * ) break;;
1956 esac
1957done
739457f4 1958else
db04fc41
RC
1959 echo "$as_me: failed program was:" >&5
1960cat conftest.$ac_ext >&5
1961{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1962echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1963 { (exit 77); exit 77; }; }
1964fi
1965
1966ac_exeext=$ac_cv_exeext
1967echo "$as_me:$LINENO: result: $ac_file" >&5
1968echo "${ECHO_T}$ac_file" >&6
1969
1970# Check the compiler produces executables we can run. If not, either
1971# the compiler is broken, or we cross compile.
1972echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1973echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1974# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1975# If not cross compiling, check that we can run a simple program.
1976if test "$cross_compiling" != yes; then
1977 if { ac_try='./$ac_file'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1983 cross_compiling=no
1984 else
1985 if test "$cross_compiling" = maybe; then
1986 cross_compiling=yes
1987 else
1988 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1989If you meant to cross compile, use \`--host'." >&5
1990echo "$as_me: error: cannot run C++ compiled programs.
1991If you meant to cross compile, use \`--host'." >&2;}
1992 { (exit 1); exit 1; }; }
1993 fi
1994 fi
739457f4 1995fi
db04fc41
RC
1996echo "$as_me:$LINENO: result: yes" >&5
1997echo "${ECHO_T}yes" >&6
1998
1999rm -f a.out a.exe conftest$ac_cv_exeext
2000ac_clean_files=$ac_clean_files_save
2001# Check the compiler produces executables we can run. If not, either
2002# the compiler is broken, or we cross compile.
2003echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2004echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2005echo "$as_me:$LINENO: result: $cross_compiling" >&5
2006echo "${ECHO_T}$cross_compiling" >&6
2007
2008echo "$as_me:$LINENO: checking for suffix of executables" >&5
2009echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2011 (eval $ac_link) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; then
2015 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2016# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2017# work properly (i.e., refer to `conftest.exe'), while it won't with
2018# `rm'.
2019for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2020 case $ac_file in
2021 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2023 export ac_cv_exeext
2024 break;;
2025 * ) break;;
2026 esac
2027done
2028else
2029 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2030echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2031 { (exit 1); exit 1; }; }
739457f4
CF
2032fi
2033
db04fc41
RC
2034rm -f conftest$ac_cv_exeext
2035echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2036echo "${ECHO_T}$ac_cv_exeext" >&6
739457f4 2037
db04fc41
RC
2038rm -f conftest.$ac_ext
2039EXEEXT=$ac_cv_exeext
2040ac_exeext=$EXEEXT
2041echo "$as_me:$LINENO: checking for suffix of object files" >&5
2042echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2043if test "${ac_cv_objext+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 2045else
db04fc41
RC
2046 cat >conftest.$ac_ext <<_ACEOF
2047#line $LINENO "configure"
2048#include "confdefs.h"
2049
2050#ifdef F77_DUMMY_MAIN
2051# ifdef __cplusplus
2052 extern "C"
2053# endif
2054 int F77_DUMMY_MAIN() { return 1; }
2055#endif
2056int
2057main ()
2058{
2059
2060 ;
2061 return 0;
2062}
2063_ACEOF
2064rm -f conftest.o conftest.obj
2065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; then
2070 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2071 case $ac_file in
2072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2073 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2074 break;;
2075 esac
2076done
739457f4 2077else
db04fc41
RC
2078 echo "$as_me: failed program was:" >&5
2079cat conftest.$ac_ext >&5
2080{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2081echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2082 { (exit 1); exit 1; }; }
739457f4 2083fi
739457f4 2084
db04fc41 2085rm -f conftest.$ac_cv_objext conftest.$ac_ext
739457f4 2086fi
db04fc41
RC
2087echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2088echo "${ECHO_T}$ac_cv_objext" >&6
2089OBJEXT=$ac_cv_objext
2090ac_objext=$OBJEXT
2091echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2092echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2093if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096 cat >conftest.$ac_ext <<_ACEOF
2097#line $LINENO "configure"
2098#include "confdefs.h"
739457f4 2099
db04fc41
RC
2100#ifdef F77_DUMMY_MAIN
2101# ifdef __cplusplus
2102 extern "C"
2103# endif
2104 int F77_DUMMY_MAIN() { return 1; }
2105#endif
2106int
2107main ()
2108{
2109#ifndef __GNUC__
2110 choke me
2111#endif
2112
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117rm -f conftest.$ac_objext
2118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 ac_compiler_gnu=yes
2130else
2131 echo "$as_me: failed program was:" >&5
2132cat conftest.$ac_ext >&5
2133ac_compiler_gnu=no
2134fi
2135rm -f conftest.$ac_objext conftest.$ac_ext
2136ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2137
2138fi
2139echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2140echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2141GXX=`test $ac_compiler_gnu = yes && echo yes`
2142ac_test_CXXFLAGS=${CXXFLAGS+set}
2143ac_save_CXXFLAGS=$CXXFLAGS
2144CXXFLAGS="-g"
2145echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2146echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2147if test "${ac_cv_prog_cxx_g+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150 cat >conftest.$ac_ext <<_ACEOF
2151#line $LINENO "configure"
2152#include "confdefs.h"
2153
2154#ifdef F77_DUMMY_MAIN
2155# ifdef __cplusplus
2156 extern "C"
2157# endif
2158 int F77_DUMMY_MAIN() { return 1; }
2159#endif
2160int
2161main ()
2162{
2163
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 ac_cv_prog_cxx_g=yes
2181else
2182 echo "$as_me: failed program was:" >&5
2183cat conftest.$ac_ext >&5
2184ac_cv_prog_cxx_g=no
2185fi
2186rm -f conftest.$ac_objext conftest.$ac_ext
2187fi
2188echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2189echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2190if test "$ac_test_CXXFLAGS" = set; then
2191 CXXFLAGS=$ac_save_CXXFLAGS
2192elif test $ac_cv_prog_cxx_g = yes; then
2193 if test "$GXX" = yes; then
2194 CXXFLAGS="-g -O2"
739457f4 2195 else
db04fc41 2196 CXXFLAGS="-g"
739457f4
CF
2197 fi
2198else
db04fc41
RC
2199 if test "$GXX" = yes; then
2200 CXXFLAGS="-O2"
2201 else
2202 CXXFLAGS=
2203 fi
2204fi
2205for ac_declaration in \
2206 ''\
2207 '#include <stdlib.h>' \
2208 'extern "C" void std::exit (int) throw (); using std::exit;' \
2209 'extern "C" void std::exit (int); using std::exit;' \
2210 'extern "C" void exit (int) throw ();' \
2211 'extern "C" void exit (int);' \
2212 'void exit (int);'
2213do
2214 cat >conftest.$ac_ext <<_ACEOF
2215#line $LINENO "configure"
2216#include "confdefs.h"
2217#include <stdlib.h>
2218$ac_declaration
2219#ifdef F77_DUMMY_MAIN
2220# ifdef __cplusplus
2221 extern "C"
2222# endif
2223 int F77_DUMMY_MAIN() { return 1; }
2224#endif
2225int
2226main ()
2227{
2228exit (42);
2229 ;
2230 return 0;
2231}
2232_ACEOF
2233rm -f conftest.$ac_objext
2234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 :
2246else
2247 echo "$as_me: failed program was:" >&5
2248cat conftest.$ac_ext >&5
2249continue
2250fi
2251rm -f conftest.$ac_objext conftest.$ac_ext
2252 cat >conftest.$ac_ext <<_ACEOF
2253#line $LINENO "configure"
2254#include "confdefs.h"
2255$ac_declaration
2256#ifdef F77_DUMMY_MAIN
2257# ifdef __cplusplus
2258 extern "C"
2259# endif
2260 int F77_DUMMY_MAIN() { return 1; }
2261#endif
2262int
2263main ()
2264{
2265exit (42);
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 break
2283else
2284 echo "$as_me: failed program was:" >&5
2285cat conftest.$ac_ext >&5
2286fi
2287rm -f conftest.$ac_objext conftest.$ac_ext
2288done
2289rm -f conftest*
2290if test -n "$ac_declaration"; then
2291 echo '#ifdef __cplusplus' >>confdefs.h
2292 echo $ac_declaration >>confdefs.h
2293 echo '#endif' >>confdefs.h
739457f4
CF
2294fi
2295
f6100b6f
RC
2296ac_ext=cc
2297ac_cpp='$CXXCPP $CPPFLAGS'
2298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2301rm -f .deps 2>/dev/null
2302mkdir .deps 2>/dev/null
2303if test -d .deps; then
2304 DEPDIR=.deps
2305else
2306 # MS-DOS does not allow filenames that begin with a dot.
2307 DEPDIR=_deps
2308fi
2309rmdir .deps 2>/dev/null
2310
2311
2312ac_config_commands="$ac_config_commands depfiles"
2313
2314
2315am_make=${MAKE-make}
2316cat > confinc << 'END'
2317doit:
2318 @echo done
2319END
2320# If we don't find an include directive, just comment out the code.
2321echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2322echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2323am__include="#"
2324am__quote=
2325_am_result=none
2326# First try GNU make style include.
2327echo "include confinc" > confmf
2328# We grep out `Entering directory' and `Leaving directory'
2329# messages which can occur if `w' ends up in MAKEFLAGS.
2330# In particular we don't look at `^make:' because GNU make might
2331# be invoked under some other name (usually "gmake"), in which
2332# case it prints its new name instead of `make'.
2333if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2334 am__include=include
2335 am__quote=
2336 _am_result=GNU
2337fi
2338# Now try BSD make style include.
2339if test "$am__include" = "#"; then
2340 echo '.include "confinc"' > confmf
2341 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2342 am__include=.include
2343 am__quote="\""
2344 _am_result=BSD
2345 fi
2346fi
2347
2348
2349echo "$as_me:$LINENO: result: $_am_result" >&5
2350echo "${ECHO_T}$_am_result" >&6
2351rm -f confinc confmf
2352
2353# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2354if test "${enable_dependency_tracking+set}" = set; then
2355 enableval="$enable_dependency_tracking"
2356
2357fi;
2358if test "x$enable_dependency_tracking" != xno; then
2359 am_depcomp="$ac_aux_dir/depcomp"
2360 AMDEPBACKSLASH='\'
2361fi
2362
2363
2364if test "x$enable_dependency_tracking" != xno; then
2365 AMDEP_TRUE=
2366 AMDEP_FALSE='#'
2367else
2368 AMDEP_TRUE='#'
2369 AMDEP_FALSE=
2370fi
db04fc41 2371
f6100b6f
RC
2372
2373
2374
2375depcc="$CXX" am_compiler_list=
2376
2377echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2378echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2379if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2383 # We make a subdir and do the tests there. Otherwise we can end up
2384 # making bogus files that we don't know about and never remove. For
2385 # instance it was reported that on HP-UX the gcc test will end up
2386 # making a dummy file named `D' -- because `-MD' means `put the output
2387 # in D'.
2388 mkdir conftest.dir
2389 # Copy depcomp to subdir because otherwise we won't find it if we're
2390 # using a relative directory.
2391 cp "$am_depcomp" conftest.dir
2392 cd conftest.dir
2393
2394 am_cv_CXX_dependencies_compiler_type=none
2395 if test "$am_compiler_list" = ""; then
2396 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2397 fi
2398 for depmode in $am_compiler_list; do
2399 # We need to recreate these files for each test, as the compiler may
2400 # overwrite some of them when testing with obscure command lines.
2401 # This happens at least with the AIX C compiler.
2402 echo '#include "conftest.h"' > conftest.c
2403 echo 'int i;' > conftest.h
2404 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2405
2406 case $depmode in
2407 nosideeffect)
2408 # after this tag, mechanisms are not by side-effect, so they'll
2409 # only be used when explicitly requested
2410 if test "x$enable_dependency_tracking" = xyes; then
2411 continue
2412 else
2413 break
2414 fi
2415 ;;
2416 none) break ;;
2417 esac
2418 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2419 # mode. It turns out that the SunPro C++ compiler does not properly
2420 # handle `-M -o', and we need to detect this.
2421 if depmode=$depmode \
2422 source=conftest.c object=conftest.o \
2423 depfile=conftest.Po tmpdepfile=conftest.TPo \
2424 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2425 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2426 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2427 am_cv_CXX_dependencies_compiler_type=$depmode
2428 break
2429 fi
2430 done
2431
2432 cd ..
2433 rm -rf conftest.dir
2434else
2435 am_cv_CXX_dependencies_compiler_type=none
2436fi
2437
2438fi
2439echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2440echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2441CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2442
2443
2444ac_ext=c
2445ac_cpp='$CPP $CPPFLAGS'
2446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
db04fc41
RC
2451set dummy ${ac_tool_prefix}gcc; ac_word=$2
2452echo "$as_me:$LINENO: checking for $ac_word" >&5
2453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
72826a5b 2459else
db04fc41
RC
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471done
2472done
2473
2474fi
2475fi
2476CC=$ac_cv_prog_CC
2477if test -n "$CC"; then
2478 echo "$as_me:$LINENO: result: $CC" >&5
2479echo "${ECHO_T}$CC" >&6
2480else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
739457f4 2483fi
739457f4 2484
db04fc41
RC
2485fi
2486if test -z "$ac_cv_prog_CC"; then
2487 ac_ct_CC=$CC
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489set dummy gcc; ac_word=$2
2490echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
72826a5b 2494else
db04fc41
RC
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
72826a5b 2497else
db04fc41
RC
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_ac_ct_CC="gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
2511
72826a5b
CF
2512fi
2513fi
db04fc41
RC
2514ac_ct_CC=$ac_cv_prog_ac_ct_CC
2515if test -n "$ac_ct_CC"; then
2516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2517echo "${ECHO_T}$ac_ct_CC" >&6
72826a5b 2518else
db04fc41
RC
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
739457f4
CF
2521fi
2522
db04fc41
RC
2523 CC=$ac_ct_CC
2524else
2525 CC="$ac_cv_prog_CC"
2526fi
739457f4 2527
db04fc41
RC
2528if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2531set dummy ${ac_tool_prefix}cc; ac_word=$2
2532echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
72826a5b 2536else
db04fc41
RC
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
72826a5b 2539else
db04fc41
RC
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_CC="${ac_tool_prefix}cc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551done
2552done
2553
72826a5b
CF
2554fi
2555fi
db04fc41
RC
2556CC=$ac_cv_prog_CC
2557if test -n "$CC"; then
2558 echo "$as_me:$LINENO: result: $CC" >&5
2559echo "${ECHO_T}$CC" >&6
72826a5b 2560else
db04fc41
RC
2561 echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6
72826a5b 2563fi
739457f4 2564
db04fc41
RC
2565fi
2566if test -z "$ac_cv_prog_CC"; then
2567 ac_ct_CC=$CC
2568 # Extract the first word of "cc", so it can be a program name with args.
2569set dummy cc; ac_word=$2
2570echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
72826a5b 2577else
db04fc41
RC
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_ac_ct_CC="cc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589done
2590done
2591
72826a5b 2592fi
db04fc41
RC
2593fi
2594ac_ct_CC=$ac_cv_prog_ac_ct_CC
2595if test -n "$ac_ct_CC"; then
2596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2597echo "${ECHO_T}$ac_ct_CC" >&6
2598else
2599 echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6
72826a5b 2601fi
739457f4 2602
db04fc41 2603 CC=$ac_ct_CC
72826a5b 2604else
db04fc41
RC
2605 CC="$ac_cv_prog_CC"
2606fi
2607
2608fi
2609if test -z "$CC"; then
2610 # Extract the first word of "cc", so it can be a program name with args.
2611set dummy cc; ac_word=$2
2612echo "$as_me:$LINENO: checking for $ac_word" >&5
2613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614if test "${ac_cv_prog_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
72826a5b 2616else
db04fc41
RC
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2619else
2620 ac_prog_rejected=no
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2629 ac_prog_rejected=yes
2630 continue
2631 fi
2632 ac_cv_prog_CC="cc"
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2635 fi
2636done
2637done
2638
2639if test $ac_prog_rejected = yes; then
2640 # We found a bogon in the path, so make sure we never use it.
2641 set dummy $ac_cv_prog_CC
2642 shift
2643 if test $# != 0; then
2644 # We chose a different compiler from the bogus one.
2645 # However, it has the same basename, so the bogon will be chosen
2646 # first if we set CC to just the basename; use the full file name.
2647 shift
2648 set dummy "$as_dir/$ac_word" ${1+"$@"}
2649 shift
2650 ac_cv_prog_CC="$@"
2651 fi
72826a5b
CF
2652fi
2653fi
db04fc41
RC
2654fi
2655CC=$ac_cv_prog_CC
2656if test -n "$CC"; then
2657 echo "$as_me:$LINENO: result: $CC" >&5
2658echo "${ECHO_T}$CC" >&6
72826a5b 2659else
db04fc41
RC
2660 echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
72826a5b 2662fi
739457f4 2663
72826a5b 2664fi
db04fc41
RC
2665if test -z "$CC"; then
2666 if test -n "$ac_tool_prefix"; then
2667 for ac_prog in cl
2668 do
2669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2671echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673if test "${ac_cv_prog_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691done
739457f4 2692
db04fc41
RC
2693fi
2694fi
2695CC=$ac_cv_prog_CC
2696if test -n "$CC"; then
2697 echo "$as_me:$LINENO: result: $CC" >&5
2698echo "${ECHO_T}$CC" >&6
2699else
2700 echo "$as_me:$LINENO: result: no" >&5
2701echo "${ECHO_T}no" >&6
2702fi
739457f4 2703
db04fc41
RC
2704 test -n "$CC" && break
2705 done
2706fi
2707if test -z "$CC"; then
2708 ac_ct_CC=$CC
2709 for ac_prog in cl
2710do
2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
2712set dummy $ac_prog; ac_word=$2
2713echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_CC="$ac_prog"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733done
739457f4 2734
db04fc41
RC
2735fi
2736fi
2737ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738if test -n "$ac_ct_CC"; then
2739 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2740echo "${ECHO_T}$ac_ct_CC" >&6
739457f4 2741else
db04fc41
RC
2742 echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6
2744fi
2745
2746 test -n "$ac_ct_CC" && break
2747done
2748
2749 CC=$ac_ct_CC
739457f4 2750fi
739457f4 2751
db04fc41
RC
2752fi
2753
2754
2755test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2756echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2757 { (exit 1); exit 1; }; }
739457f4 2758
db04fc41
RC
2759# Provide some information about the compiler.
2760echo "$as_me:$LINENO:" \
2761 "checking for C compiler version" >&5
2762ac_compiler=`set X $ac_compile; echo $2`
2763{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764 (eval $ac_compiler --version </dev/null >&5) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769 (eval $ac_compiler -v </dev/null >&5) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774 (eval $ac_compiler -V </dev/null >&5) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
739457f4 2778
db04fc41
RC
2779echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2780echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2781if test "${ac_cv_c_compiler_gnu+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 cat >conftest.$ac_ext <<_ACEOF
2785#line $LINENO "configure"
2786#include "confdefs.h"
2787
2788#ifdef F77_DUMMY_MAIN
2789# ifdef __cplusplus
2790 extern "C"
2791# endif
2792 int F77_DUMMY_MAIN() { return 1; }
2793#endif
2794int
2795main ()
2796{
2797#ifndef __GNUC__
2798 choke me
2799#endif
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805rm -f conftest.$ac_objext
2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_compiler_gnu=yes
2818else
2819 echo "$as_me: failed program was:" >&5
2820cat conftest.$ac_ext >&5
2821ac_compiler_gnu=no
2822fi
2823rm -f conftest.$ac_objext conftest.$ac_ext
2824ac_cv_c_compiler_gnu=$ac_compiler_gnu
2825
2826fi
2827echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2828echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2829GCC=`test $ac_compiler_gnu = yes && echo yes`
2830ac_test_CFLAGS=${CFLAGS+set}
2831ac_save_CFLAGS=$CFLAGS
2832CFLAGS="-g"
2833echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2834echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2835if test "${ac_cv_prog_cc_g+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838 cat >conftest.$ac_ext <<_ACEOF
2839#line $LINENO "configure"
2840#include "confdefs.h"
2841
2842#ifdef F77_DUMMY_MAIN
2843# ifdef __cplusplus
2844 extern "C"
2845# endif
2846 int F77_DUMMY_MAIN() { return 1; }
2847#endif
2848int
2849main ()
2850{
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_cv_prog_cc_g=yes
2869else
2870 echo "$as_me: failed program was:" >&5
2871cat conftest.$ac_ext >&5
2872ac_cv_prog_cc_g=no
2873fi
2874rm -f conftest.$ac_objext conftest.$ac_ext
2875fi
2876echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2877echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2878if test "$ac_test_CFLAGS" = set; then
2879 CFLAGS=$ac_save_CFLAGS
2880elif test $ac_cv_prog_cc_g = yes; then
2881 if test "$GCC" = yes; then
2882 CFLAGS="-g -O2"
2883 else
2884 CFLAGS="-g"
739457f4 2885 fi
db04fc41
RC
2886else
2887 if test "$GCC" = yes; then
2888 CFLAGS="-O2"
739457f4 2889 else
db04fc41
RC
2890 CFLAGS=
2891 fi
2892fi
2893# Some people use a C++ compiler to compile C. Since we use `exit',
2894# in C++ we need to declare it. In case someone uses the same compiler
2895# for both compiling C and C++ we need to have the C++ compiler decide
2896# the declaration of exit, since it's the most demanding environment.
2897cat >conftest.$ac_ext <<_ACEOF
2898#ifndef __cplusplus
2899 choke me
2900#endif
2901_ACEOF
2902rm -f conftest.$ac_objext
2903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904 (eval $ac_compile) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 for ac_declaration in \
2915 ''\
2916 '#include <stdlib.h>' \
2917 'extern "C" void std::exit (int) throw (); using std::exit;' \
2918 'extern "C" void std::exit (int); using std::exit;' \
2919 'extern "C" void exit (int) throw ();' \
2920 'extern "C" void exit (int);' \
2921 'void exit (int);'
2922do
2923 cat >conftest.$ac_ext <<_ACEOF
2924#line $LINENO "configure"
2925#include "confdefs.h"
2926#include <stdlib.h>
2927$ac_declaration
2928#ifdef F77_DUMMY_MAIN
2929# ifdef __cplusplus
2930 extern "C"
2931# endif
2932 int F77_DUMMY_MAIN() { return 1; }
2933#endif
2934int
2935main ()
2936{
2937exit (42);
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 :
2955else
2956 echo "$as_me: failed program was:" >&5
2957cat conftest.$ac_ext >&5
2958continue
2959fi
2960rm -f conftest.$ac_objext conftest.$ac_ext
2961 cat >conftest.$ac_ext <<_ACEOF
2962#line $LINENO "configure"
2963#include "confdefs.h"
2964$ac_declaration
2965#ifdef F77_DUMMY_MAIN
2966# ifdef __cplusplus
2967 extern "C"
2968# endif
2969 int F77_DUMMY_MAIN() { return 1; }
2970#endif
2971int
2972main ()
2973{
2974exit (42);
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext
2980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -s conftest.$ac_objext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2991 break
2992else
2993 echo "$as_me: failed program was:" >&5
2994cat conftest.$ac_ext >&5
2995fi
2996rm -f conftest.$ac_objext conftest.$ac_ext
2997done
2998rm -f conftest*
2999if test -n "$ac_declaration"; then
3000 echo '#ifdef __cplusplus' >>confdefs.h
3001 echo $ac_declaration >>confdefs.h
3002 echo '#endif' >>confdefs.h
3003fi
3004
3005else
3006 echo "$as_me: failed program was:" >&5
3007cat conftest.$ac_ext >&5
3008fi
3009rm -f conftest.$ac_objext conftest.$ac_ext
f6100b6f
RC
3010ac_ext=cc
3011ac_cpp='$CXXCPP $CPPFLAGS'
3012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3015
3016depcc="$CC" am_compiler_list=
3017
3018echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3019echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3020if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3024 # We make a subdir and do the tests there. Otherwise we can end up
3025 # making bogus files that we don't know about and never remove. For
3026 # instance it was reported that on HP-UX the gcc test will end up
3027 # making a dummy file named `D' -- because `-MD' means `put the output
3028 # in D'.
3029 mkdir conftest.dir
3030 # Copy depcomp to subdir because otherwise we won't find it if we're
3031 # using a relative directory.
3032 cp "$am_depcomp" conftest.dir
3033 cd conftest.dir
3034
3035 am_cv_CC_dependencies_compiler_type=none
3036 if test "$am_compiler_list" = ""; then
3037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3038 fi
3039 for depmode in $am_compiler_list; do
3040 # We need to recreate these files for each test, as the compiler may
3041 # overwrite some of them when testing with obscure command lines.
3042 # This happens at least with the AIX C compiler.
3043 echo '#include "conftest.h"' > conftest.c
3044 echo 'int i;' > conftest.h
3045 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3046
3047 case $depmode in
3048 nosideeffect)
3049 # after this tag, mechanisms are not by side-effect, so they'll
3050 # only be used when explicitly requested
3051 if test "x$enable_dependency_tracking" = xyes; then
3052 continue
3053 else
3054 break
3055 fi
3056 ;;
3057 none) break ;;
3058 esac
3059 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3060 # mode. It turns out that the SunPro C++ compiler does not properly
3061 # handle `-M -o', and we need to detect this.
3062 if depmode=$depmode \
3063 source=conftest.c object=conftest.o \
3064 depfile=conftest.Po tmpdepfile=conftest.TPo \
3065 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3066 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3067 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3068 am_cv_CC_dependencies_compiler_type=$depmode
3069 break
3070 fi
3071 done
3072
3073 cd ..
3074 rm -rf conftest.dir
3075else
3076 am_cv_CC_dependencies_compiler_type=none
3077fi
3078
3079fi
3080echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3081echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3082CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3083
db04fc41
RC
3084
3085if test "x$CC" != xcc; then
3086 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3087echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3088else
3089 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3090echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3091fi
3092set dummy $CC; ac_cc=`echo $2 |
3093 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3094if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096else
3097 cat >conftest.$ac_ext <<_ACEOF
3098#line $LINENO "configure"
3099#include "confdefs.h"
3100
3101#ifdef F77_DUMMY_MAIN
3102# ifdef __cplusplus
3103 extern "C"
3104# endif
3105 int F77_DUMMY_MAIN() { return 1; }
3106#endif
3107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115# Make sure it works both with $CC and with simple cc.
3116# We do the test twice because some compilers refuse to overwrite an
3117# existing .o file with -o, though they will create one.
3118ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3119if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); };
3129then
3130 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3131 if test "x$CC" != xcc; then
3132 # Test first that cc exists at all.
3133 if { ac_try='cc -c conftest.$ac_ext >&5'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3140 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); };
3150 then
3151 # cc works too.
3152 :
3153 else
3154 # cc exists but doesn't like -o.
3155 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3156 fi
3157 fi
739457f4 3158 fi
db04fc41
RC
3159else
3160 eval ac_cv_prog_cc_${ac_cc}_c_o=no
739457f4 3161fi
db04fc41
RC
3162rm -f conftest*
3163
3164fi
3165if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171
3172cat >>confdefs.h <<\_ACEOF
3173#define NO_MINUS_C_MINUS_O 1
3174_ACEOF
3175
3176fi
3177
f6100b6f
RC
3178# FIXME: we rely on the cache variable name because
3179# there is no other way.
3180set dummy $CC
3181ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3182if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3183 # Losing compiler, so override with the script.
3184 # FIXME: It is wrong to rewrite CC.
3185 # But if we don't then we get into trouble of one sort or another.
3186 # A longer-term fix would be to have automake use am__CC in this case,
3187 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3188 CC="$am_aux_dir/compile $CC"
db04fc41 3189fi
db04fc41
RC
3190
3191
f6100b6f 3192for ac_prog in flex lex
db04fc41 3193do
f6100b6f
RC
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195set dummy $ac_prog; ac_word=$2
db04fc41
RC
3196echo "$as_me:$LINENO: checking for $ac_word" >&5
3197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f6100b6f 3198if test "${ac_cv_prog_LEX+set}" = set; then
db04fc41 3199 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3200else
f6100b6f
RC
3201 if test -n "$LEX"; then
3202 ac_cv_prog_LEX="$LEX" # Let the user override the test.
739457f4 3203else
db04fc41
RC
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f6100b6f 3211 ac_cv_prog_LEX="$ac_prog"
db04fc41
RC
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215done
3216done
3217
739457f4
CF
3218fi
3219fi
f6100b6f
RC
3220LEX=$ac_cv_prog_LEX
3221if test -n "$LEX"; then
3222 echo "$as_me:$LINENO: result: $LEX" >&5
3223echo "${ECHO_T}$LEX" >&6
739457f4 3224else
db04fc41
RC
3225 echo "$as_me:$LINENO: result: no" >&5
3226echo "${ECHO_T}no" >&6
739457f4
CF
3227fi
3228
f6100b6f 3229 test -n "$LEX" && break
db04fc41 3230done
f6100b6f 3231test -n "$LEX" || LEX=":"
db04fc41 3232
f6100b6f
RC
3233if test -z "$LEXLIB"
3234then
3235 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3236echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3237if test "${ac_cv_lib_fl_yywrap+set}" = set; then
db04fc41 3238 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3239else
f6100b6f
RC
3240 ac_check_lib_save_LIBS=$LIBS
3241LIBS="-lfl $LIBS"
3242cat >conftest.$ac_ext <<_ACEOF
3243#line $LINENO "configure"
3244#include "confdefs.h"
db04fc41 3245
f6100b6f
RC
3246/* Override any gcc2 internal prototype to avoid an error. */
3247#ifdef __cplusplus
3248extern "C"
3249#endif
3250/* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3252char yywrap ();
3253#ifdef F77_DUMMY_MAIN
3254# ifdef __cplusplus
3255 extern "C"
3256# endif
3257 int F77_DUMMY_MAIN() { return 1; }
3258#endif
3259int
3260main ()
3261{
3262yywrap ();
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest$ac_exeext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_lib_fl_yywrap=yes
739457f4 3280else
f6100b6f
RC
3281 echo "$as_me: failed program was:" >&5
3282cat conftest.$ac_ext >&5
3283ac_cv_lib_fl_yywrap=no
739457f4 3284fi
f6100b6f
RC
3285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3286LIBS=$ac_check_lib_save_LIBS
db04fc41 3287fi
f6100b6f
RC
3288echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3289echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3290if test $ac_cv_lib_fl_yywrap = yes; then
3291 LEXLIB="-lfl"
739457f4 3292else
f6100b6f
RC
3293 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3294echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3295if test "${ac_cv_lib_l_yywrap+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3297else
f6100b6f
RC
3298 ac_check_lib_save_LIBS=$LIBS
3299LIBS="-ll $LIBS"
3300cat >conftest.$ac_ext <<_ACEOF
3301#line $LINENO "configure"
3302#include "confdefs.h"
db04fc41 3303
f6100b6f
RC
3304/* Override any gcc2 internal prototype to avoid an error. */
3305#ifdef __cplusplus
3306extern "C"
3307#endif
3308/* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3310char yywrap ();
3311#ifdef F77_DUMMY_MAIN
3312# ifdef __cplusplus
3313 extern "C"
3314# endif
3315 int F77_DUMMY_MAIN() { return 1; }
3316#endif
3317int
3318main ()
3319{
3320yywrap ();
3321 ;
3322 return 0;
3323}
3324_ACEOF
3325rm -f conftest.$ac_objext conftest$ac_exeext
3326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3327 (eval $ac_link) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -s conftest$ac_exeext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_lib_l_yywrap=yes
3338else
3339 echo "$as_me: failed program was:" >&5
3340cat conftest.$ac_ext >&5
3341ac_cv_lib_l_yywrap=no
739457f4 3342fi
f6100b6f
RC
3343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3344LIBS=$ac_check_lib_save_LIBS
739457f4 3345fi
f6100b6f
RC
3346echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3347echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3348if test $ac_cv_lib_l_yywrap = yes; then
3349 LEXLIB="-ll"
739457f4
CF
3350fi
3351
739457f4
CF
3352fi
3353
739457f4
CF
3354fi
3355
f6100b6f
RC
3356if test "x$LEX" != "x:"; then
3357 echo "$as_me:$LINENO: checking lex output file root" >&5
3358echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3359if test "${ac_cv_prog_lex_root+set}" = set; then
db04fc41 3360 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3361else
f6100b6f
RC
3362 # The minimal lex program is just a single line: %%. But some broken lexes
3363# (Solaris, I think it was) want two %% lines, so accommodate them.
3364cat >conftest.l <<_ACEOF
3365%%
3366%%
3367_ACEOF
3368{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3369 (eval $LEX conftest.l) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3373if test -f lex.yy.c; then
3374 ac_cv_prog_lex_root=lex.yy
3375elif test -f lexyy.c; then
3376 ac_cv_prog_lex_root=lexyy
739457f4 3377else
f6100b6f
RC
3378 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3379echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3380 { (exit 1); exit 1; }; }
739457f4 3381fi
739457f4 3382fi
f6100b6f
RC
3383echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3384echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3385rm -f conftest.l
3386LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
739457f4 3387
f6100b6f
RC
3388echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3389echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3390if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
db04fc41 3391 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3392else
f6100b6f
RC
3393 # POSIX says lex can declare yytext either as a pointer or an array; the
3394# default is implementation-dependent. Figure out which it is, since
3395# not all implementations provide the %pointer and %array declarations.
3396ac_cv_prog_lex_yytext_pointer=no
3397echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3398ac_save_LIBS=$LIBS
3399LIBS="$LIBS $LEXLIB"
3400cat >conftest.$ac_ext <<_ACEOF
3401`cat $LEX_OUTPUT_ROOT.c`
3402_ACEOF
3403rm -f conftest.$ac_objext conftest$ac_exeext
3404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3405 (eval $ac_link) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -s conftest$ac_exeext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 ac_cv_prog_lex_yytext_pointer=yes
3416else
3417 echo "$as_me: failed program was:" >&5
3418cat conftest.$ac_ext >&5
739457f4 3419fi
f6100b6f
RC
3420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3421LIBS=$ac_save_LIBS
3422rm -f "${LEX_OUTPUT_ROOT}.c"
3423
739457f4 3424fi
f6100b6f
RC
3425echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3426echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3427if test $ac_cv_prog_lex_yytext_pointer = yes; then
3428
3429cat >>confdefs.h <<\_ACEOF
3430#define YYTEXT_POINTER 1
3431_ACEOF
3432
739457f4
CF
3433fi
3434
db04fc41 3435fi
f6100b6f
RC
3436if test "$LEX" = :; then
3437 LEX=${am_missing_run}flex
3438fi
3439for ac_prog in 'bison -y' byacc
3440do
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442set dummy $ac_prog; ac_word=$2
db04fc41
RC
3443echo "$as_me:$LINENO: checking for $ac_word" >&5
3444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f6100b6f 3445if test "${ac_cv_prog_YACC+set}" = set; then
db04fc41 3446 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3447else
f6100b6f
RC
3448 if test -n "$YACC"; then
3449 ac_cv_prog_YACC="$YACC" # Let the user override the test.
739457f4 3450else
db04fc41
RC
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f6100b6f 3458 ac_cv_prog_YACC="$ac_prog"
db04fc41
RC
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463done
3464
739457f4
CF
3465fi
3466fi
f6100b6f
RC
3467YACC=$ac_cv_prog_YACC
3468if test -n "$YACC"; then
3469 echo "$as_me:$LINENO: result: $YACC" >&5
3470echo "${ECHO_T}$YACC" >&6
739457f4 3471else
db04fc41
RC
3472 echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
739457f4
CF
3474fi
3475
f6100b6f
RC
3476 test -n "$YACC" && break
3477done
3478test -n "$YACC" || YACC="yacc"
739457f4 3479
f6100b6f
RC
3480# Make sure we can run config.sub.
3481$ac_config_sub sun4 >/dev/null 2>&1 ||
3482 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3483echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3484 { (exit 1); exit 1; }; }
739457f4 3485
f6100b6f
RC
3486echo "$as_me:$LINENO: checking build system type" >&5
3487echo $ECHO_N "checking build system type... $ECHO_C" >&6
3488if test "${ac_cv_build+set}" = set; then
db04fc41 3489 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3490else
f6100b6f
RC
3491 ac_cv_build_alias=$build_alias
3492test -z "$ac_cv_build_alias" &&
3493 ac_cv_build_alias=`$ac_config_guess`
3494test -z "$ac_cv_build_alias" &&
3495 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3496echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3497 { (exit 1); exit 1; }; }
3498ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3500echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3501 { (exit 1); exit 1; }; }
db04fc41 3502
739457f4 3503fi
f6100b6f
RC
3504echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3505echo "${ECHO_T}$ac_cv_build" >&6
3506build=$ac_cv_build
3507build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3508build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3509build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739457f4 3510
f6100b6f
RC
3511
3512echo "$as_me:$LINENO: checking host system type" >&5
3513echo $ECHO_N "checking host system type... $ECHO_C" >&6
3514if test "${ac_cv_host+set}" = set; then
db04fc41 3515 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3516else
f6100b6f
RC
3517 ac_cv_host_alias=$host_alias
3518test -z "$ac_cv_host_alias" &&
3519 ac_cv_host_alias=$ac_cv_build_alias
3520ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3522echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3523 { (exit 1); exit 1; }; }
db04fc41 3524
739457f4 3525fi
f6100b6f
RC
3526echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3527echo "${ECHO_T}$ac_cv_host" >&6
3528host=$ac_cv_host
3529host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3530host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3531host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739457f4 3532
739457f4 3533
6908b7d7
RC
3534# Check whether --enable-shared or --disable-shared was given.
3535if test "${enable_shared+set}" = set; then
3536 enableval="$enable_shared"
3537 p=${PACKAGE-default}
3538 case $enableval in
3539 yes) enable_shared=yes ;;
3540 no) enable_shared=no ;;
3541 *)
3542 enable_shared=no
3543 # Look at the argument we got. We use all the common list separators.
3544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3545 for pkg in $enableval; do
3546 IFS="$lt_save_ifs"
3547 if test "X$pkg" = "X$p"; then
3548 enable_shared=yes
3549 fi
3550 done
3551 IFS="$lt_save_ifs"
3552 ;;
3553 esac
3554else
3555 enable_shared=yes
3556fi;
739457f4 3557
6908b7d7
RC
3558# Check whether --enable-static or --disable-static was given.
3559if test "${enable_static+set}" = set; then
3560 enableval="$enable_static"
3561 p=${PACKAGE-default}
3562 case $enableval in
3563 yes) enable_static=yes ;;
3564 no) enable_static=no ;;
3565 *)
3566 enable_static=no
3567 # Look at the argument we got. We use all the common list separators.
3568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3569 for pkg in $enableval; do
3570 IFS="$lt_save_ifs"
3571 if test "X$pkg" = "X$p"; then
3572 enable_static=yes
3573 fi
3574 done
3575 IFS="$lt_save_ifs"
3576 ;;
3577 esac
739457f4 3578else
6908b7d7
RC
3579 enable_static=yes
3580fi;
3581
3582# Check whether --enable-fast-install or --disable-fast-install was given.
3583if test "${enable_fast_install+set}" = set; then
3584 enableval="$enable_fast_install"
3585 p=${PACKAGE-default}
3586 case $enableval in
3587 yes) enable_fast_install=yes ;;
3588 no) enable_fast_install=no ;;
3589 *)
3590 enable_fast_install=no
3591 # Look at the argument we got. We use all the common list separators.
3592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3593 for pkg in $enableval; do
3594 IFS="$lt_save_ifs"
3595 if test "X$pkg" = "X$p"; then
3596 enable_fast_install=yes
3597 fi
3598 done
3599 IFS="$lt_save_ifs"
3600 ;;
3601 esac
739457f4 3602else
6908b7d7
RC
3603 enable_fast_install=yes
3604fi;
db04fc41 3605
6908b7d7
RC
3606
3607# Check whether --with-gnu-ld or --without-gnu-ld was given.
3608if test "${with_gnu_ld+set}" = set; then
3609 withval="$with_gnu_ld"
3610 test "$withval" = no || with_gnu_ld=yes
3611else
3612 with_gnu_ld=no
3613fi;
3614ac_prog=ld
3615if test "$GCC" = yes; then
3616 # Check if gcc -print-prog-name=ld gives a path.
3617 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3618echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3619 case $host in
3620 *-*-mingw*)
3621 # gcc leaves a trailing carriage return which upsets mingw
3622 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3623 *)
3624 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3625 esac
3626 case $ac_prog in
3627 # Accept absolute paths.
3628 [\\/]* | ?:[\\/]*)
3629 re_direlt='/[^/][^/]*/\.\./'
3630 # Canonicalize the path of ld
3631 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3632 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3633 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3634 done
3635 test -z "$LD" && LD="$ac_prog"
3636 ;;
3637 "")
3638 # If it fails, then pretend we aren't using GCC.
3639 ac_prog=ld
3640 ;;
3641 *)
3642 # If it is relative, then search for the first ld in PATH.
3643 with_gnu_ld=unknown
3644 ;;
3645 esac
3646elif test "$with_gnu_ld" = yes; then
3647 echo "$as_me:$LINENO: checking for GNU ld" >&5
3648echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3649else
3650 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3651echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
739457f4 3652fi
6908b7d7
RC
3653if test "${lt_cv_path_LD+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656 if test -z "$LD"; then
3657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3658 for ac_dir in $PATH; do
3659 IFS="$lt_save_ifs"
3660 test -z "$ac_dir" && ac_dir=.
3661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3662 lt_cv_path_LD="$ac_dir/$ac_prog"
3663 # Check to see if the program is GNU ld. I'd rather use --version,
3664 # but apparently some GNU ld's only accept -v.
3665 # Break only if it was the GNU/non-GNU ld that we prefer.
3666 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3667 test "$with_gnu_ld" != no && break
3668 else
3669 test "$with_gnu_ld" != yes && break
3670 fi
3671 fi
3672 done
3673 IFS="$lt_save_ifs"
3674else
3675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
739457f4 3676fi
6908b7d7
RC
3677fi
3678
3679LD="$lt_cv_path_LD"
3680if test -n "$LD"; then
3681 echo "$as_me:$LINENO: result: $LD" >&5
3682echo "${ECHO_T}$LD" >&6
739457f4 3683else
db04fc41
RC
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
739457f4 3686fi
6908b7d7
RC
3687test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3688echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3689 { (exit 1); exit 1; }; }
3690echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3691echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3692if test "${lt_cv_prog_gnu_ld+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3696if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3697 lt_cv_prog_gnu_ld=yes
3698else
3699 lt_cv_prog_gnu_ld=no
db04fc41 3700fi
6908b7d7
RC
3701fi
3702echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3703echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3704with_gnu_ld=$lt_cv_prog_gnu_ld
3705
3706
3707echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3708echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3709if test "${lt_cv_ld_reload_flag+set}" = set; then
db04fc41 3710 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3711else
6908b7d7
RC
3712 lt_cv_ld_reload_flag='-r'
3713fi
3714echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3715echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3716reload_flag=$lt_cv_ld_reload_flag
3717case $reload_flag in
3718"" | " "*) ;;
3719*) reload_flag=" $reload_flag" ;;
3720esac
3721reload_cmds='$LD$reload_flag -o $output$reload_objs'
3722
3723echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3724echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3725if test "${lt_cv_path_NM+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728 if test -n "$NM"; then
3729 # Let the user override the test.
3730 lt_cv_path_NM="$NM"
3731else
3732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3733 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3734 IFS="$lt_save_ifs"
3735 test -z "$ac_dir" && ac_dir=.
3736 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3737 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3738 # Check to see if the nm accepts a BSD-compat flag.
3739 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3740 # nm: unknown option "B" ignored
3741 # Tru64's nm complains that /dev/null is an invalid object file
3742 if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3743 lt_cv_path_NM="$tmp_nm -B"
3744 break
3745 elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3746 lt_cv_path_NM="$tmp_nm -p"
3747 break
3748 else
3749 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3750 continue # so that we can try to find one that supports BSD flags
3751 fi
3752 fi
3753 done
3754 IFS="$lt_save_ifs"
3755 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3756fi
3757fi
3758echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3759echo "${ECHO_T}$lt_cv_path_NM" >&6
3760NM="$lt_cv_path_NM"
3761
3762echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3763echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3764if test "${lt_cv_path_SED+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3766else
6908b7d7
RC
3767 # Loop through the user's path and test for sed and gsed.
3768# Then use that list of sed's as ones to test for truncation.
db04fc41
RC
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
6908b7d7
RC
3774 for ac_prog in sed gsed; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3777 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3778 fi
3779 done
3780 done
db04fc41
RC
3781done
3782
6908b7d7
RC
3783 # Create a temporary directory, and hook for its removal unless debugging.
3784$debug ||
3785{
3786 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3787 trap '{ (exit 1); exit 1; }' 1 2 13 15
3788}
3789
3790# Create a (secure) tmp directory for tmp files.
3791: ${TMPDIR=/tmp}
3792{
3793 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3794 test -n "$tmp" && test -d "$tmp"
3795} ||
3796{
3797 tmp=$TMPDIR/sed$$-$RANDOM
3798 (umask 077 && mkdir $tmp)
3799} ||
3800{
3801 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3802 { (exit 1); exit 1; }
3803}
3804 _max=0
3805 _count=0
3806 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3807 # along with /bin/sed that truncates output.
3808 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3809 test ! -f ${_sed} && break
3810 cat /dev/null > "$tmp/sed.in"
3811 _count=0
3812 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
3813 # Check for GNU sed and select it if it is found.
3814 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3815 lt_cv_path_SED=${_sed}
3816 break;
3817 fi
3818 while true; do
3819 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3820 mv "$tmp/sed.tmp" "$tmp/sed.in"
3821 cp "$tmp/sed.in" "$tmp/sed.nl"
3822 echo >>"$tmp/sed.nl"
3823 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3824 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3825 # 10000 chars as input seems more than enough
3826 test $_count -gt 10 && break
3827 _count=`expr $_count + 1`
3828 if test $_count -gt $_max; then
3829 _max=$_count
3830 lt_cv_path_SED=$_sed
3831 fi
3832 done
3833 done
3834 rm -rf "$tmp"
3835
739457f4 3836fi
6908b7d7
RC
3837
3838echo "$as_me:$LINENO: result: $SED" >&5
3839echo "${ECHO_T}$SED" >&6
3840
3841echo "$as_me:$LINENO: checking whether ln -s works" >&5
3842echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3843LN_S=$as_ln_s
3844if test "$LN_S" = "ln -s"; then
3845 echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6
739457f4 3847else
6908b7d7
RC
3848 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3849echo "${ECHO_T}no, using $LN_S" >&6
739457f4
CF
3850fi
3851
6908b7d7
RC
3852echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3853echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3854if test "${lt_cv_deplibs_check_method+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
739457f4 3856else
6908b7d7
RC
3857 lt_cv_file_magic_cmd='$MAGIC_CMD'
3858lt_cv_file_magic_test_file=
3859lt_cv_deplibs_check_method='unknown'
3860# Need to set the preceding variable on all platforms that support
3861# interlibrary dependencies.
3862# 'none' -- dependencies not supported.
3863# `unknown' -- same as none, but documents that we really don't know.
3864# 'pass_all' -- all dependencies passed with no checks.
3865# 'test_compile' -- check by making test program.
3866# 'file_magic [[regex]]' -- check by looking for files in library path
3867# which responds to the $file_magic_cmd with a given egrep regex.
3868# If you have `file' or equivalent on your system and you're not sure
3869# whether `pass_all' will *always* work, you probably want this one.
3870
3871case $host_os in
3872aix4* | aix5*)
3873 lt_cv_deplibs_check_method=pass_all
3874 ;;
3875
3876beos*)
3877 lt_cv_deplibs_check_method=pass_all
3878 ;;
3879
3880bsdi4*)
3881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3882 lt_cv_file_magic_cmd='/usr/bin/file -L'
3883 lt_cv_file_magic_test_file=/shlib/libc.so
3884 ;;
3885
3886cygwin* | mingw* | pw32*)
3887 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3888 lt_cv_file_magic_cmd='$OBJDUMP -f'
3889 ;;
3890
3891darwin* | rhapsody*)
3892 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3893 lt_cv_file_magic_cmd='/usr/bin/file -L'
3894 case "$host_os" in
3895 rhapsody* | darwin1.[012])
3896 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3897 ;;
3898 *) # Darwin 1.3 on
3899 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3900 ;;
3901 esac
3902 ;;
3903
3904freebsd*)
3905 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3906 case $host_cpu in
3907 i*86 )
3908 # Not sure whether the presence of OpenBSD here was a mistake.
3909 # Let's accept both of them until this is cleared up.
3910 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3911 lt_cv_file_magic_cmd=/usr/bin/file
3912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3913 ;;
3914 esac
3915 else
3916 lt_cv_deplibs_check_method=pass_all
3917 fi
3918 ;;
3919
3920gnu*)
3921 lt_cv_deplibs_check_method=pass_all
3922 ;;
3923
3924hpux10.20* | hpux11*)
3925 lt_cv_file_magic_cmd=/usr/bin/file
3926 if test "$host_cpu" = ia64; then
3927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3928 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3929 else
3930 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3931 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3932 fi
3933 ;;
3934
3935irix5* | irix6* | nonstopux*)
3936 case $host_os in
3937 irix5* | nonstopux*)
3938 # this will be overridden with pass_all, but let us keep it just in case
3939 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3940 ;;
3941 *)
3942 case $LD in
3943 *-32|*"-32 ") libmagic=32-bit;;
3944 *-n32|*"-n32 ") libmagic=N32;;
3945 *-64|*"-64 ") libmagic=64-bit;;
3946 *) libmagic=never-match;;
3947 esac
3948 # this will be overridden with pass_all, but let us keep it just in case
3949 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3950 ;;
3951 esac
3952 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3953 lt_cv_deplibs_check_method=pass_all
3954 ;;
3955
3956# This must be Linux ELF.
3957linux*)
3958 case $host_cpu in
3959 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3960 lt_cv_deplibs_check_method=pass_all ;;
3961 *)
3962 # glibc up to 2.1.1 does not perform some relocations on ARM
3963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3964 esac
3965 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3966 ;;
3967
3968netbsd*)
3969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3971 else
3972 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3973 fi
3974 ;;
3975
3976newos6*)
3977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3978 lt_cv_file_magic_cmd=/usr/bin/file
3979 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3980 ;;
3981
3982nto-qnx)
3983 lt_cv_deplibs_check_method=unknown
3984 ;;
3985
3986openbsd*)
3987 lt_cv_file_magic_cmd=/usr/bin/file
3988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3991 else
3992 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3993 fi
3994 ;;
3995
3996osf3* | osf4* | osf5*)
3997 # this will be overridden with pass_all, but let us keep it just in case
3998 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3999 lt_cv_file_magic_test_file=/shlib/libc.so
4000 lt_cv_deplibs_check_method=pass_all
4001 ;;
4002
4003sco3.2v5*)
4004 lt_cv_deplibs_check_method=pass_all
4005 ;;
4006
4007solaris*)
4008 lt_cv_deplibs_check_method=pass_all
4009 lt_cv_file_magic_test_file=/lib/libc.so
4010 ;;
4011
4012sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4013 case $host_vendor in
4014 motorola)
4015 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]'
4016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4017 ;;
4018 ncr)
4019 lt_cv_deplibs_check_method=pass_all
4020 ;;
4021 sequent)
4022 lt_cv_file_magic_cmd='/bin/file'
4023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4024 ;;
4025 sni)
4026 lt_cv_file_magic_cmd='/bin/file'
4027 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4028 lt_cv_file_magic_test_file=/lib/libc.so
4029 ;;
4030 esac
4031 ;;
4032
4033sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4034 lt_cv_deplibs_check_method=pass_all
4035 ;;
4036esac
4037
739457f4 4038fi
6908b7d7
RC
4039echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4040echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4041file_magic_cmd=$lt_cv_file_magic_cmd
4042deplibs_check_method=$lt_cv_deplibs_check_method
4043test -z "$deplibs_check_method" && deplibs_check_method=unknown
739457f4
CF
4044
4045
4046
739457f4 4047
6908b7d7
RC
4048# If no C compiler was specified, use CC.
4049LTCC=${LTCC-"$CC"}
739457f4 4050
6908b7d7
RC
4051# Allow CC to be a program name with arguments.
4052set dummy $CC
4053compiler="$2"
db04fc41
RC
4054
4055
6908b7d7
RC
4056# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4057if test "${enable_libtool_lock+set}" = set; then
4058 enableval="$enable_libtool_lock"
db04fc41 4059
6908b7d7
RC
4060fi;
4061test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4062
4063# Some flags need to be propagated to the compiler or linker for good
4064# libtool support.
4065case $host in
4066ia64-*-hpux*)
4067 # Find out which ABI we are using.
4068 echo 'int i;' > conftest.$ac_ext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; then
4074 case `/usr/bin/file conftest.$ac_objext` in
4075 *ELF-32*)
4076 HPUX_IA64_MODE="32"
4077 ;;
4078 *ELF-64*)
4079 HPUX_IA64_MODE="64"
4080 ;;
4081 esac
4082 fi
4083 rm -rf conftest*
4084 ;;
4085*-*-irix6*)
4086 # Find out which ABI we are using.
4087 echo '#line 4087 "configure"' > conftest.$ac_ext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; then
4093 case `/usr/bin/file conftest.$ac_objext` in
4094 *32-bit*)
4095 LD="${LD-ld} -32"
4096 ;;
4097 *N32*)
4098 LD="${LD-ld} -n32"
4099 ;;
4100 *64-bit*)
4101 LD="${LD-ld} -64"
4102 ;;
4103 esac
4104 fi
4105 rm -rf conftest*
4106 ;;
4107
4108*-*-sco3.2v5*)
4109 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4110 SAVE_CFLAGS="$CFLAGS"
4111 CFLAGS="$CFLAGS -belf"
4112 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4113echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4114if test "${lt_cv_cc_needs_belf+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116else
4117 ac_ext=c
4118ac_cpp='$CPP $CPPFLAGS'
4119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122
4123 cat >conftest.$ac_ext <<_ACEOF
4124#line $LINENO "configure"
4125#include "confdefs.h"
4126
4127#ifdef F77_DUMMY_MAIN
4128# ifdef __cplusplus
4129 extern "C"
4130# endif
4131 int F77_DUMMY_MAIN() { return 1; }
4132#endif
4133int
4134main ()
4135{
4136
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext conftest$ac_exeext
4142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4143 (eval $ac_link) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -s conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 lt_cv_cc_needs_belf=yes
4154else
4155 echo "$as_me: failed program was:" >&5
4156cat conftest.$ac_ext >&5
4157lt_cv_cc_needs_belf=no
4158fi
4159rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4160 ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166fi
4167echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4168echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4169 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4170 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4171 CFLAGS="$SAVE_CFLAGS"
4172 fi
4173 ;;
4174
4175esac
4176
4177need_locks="$enable_libtool_lock"
4178
4179
4180ac_ext=c
4181ac_cpp='$CPP $CPPFLAGS'
4182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4186echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4187# On Suns, sometimes $CPP names a directory.
4188if test -n "$CPP" && test -d "$CPP"; then
4189 CPP=
4190fi
4191if test -z "$CPP"; then
4192 if test "${ac_cv_prog_CPP+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 # Double quotes because CPP needs to be expanded
4196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4197 do
4198 ac_preproc_ok=false
4199for ac_c_preproc_warn_flag in '' yes
4200do
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # On the NeXT, cc -E runs the code through the compiler's parser,
4204 # not just through cpp. "Syntax error" is here to catch this case.
4205 cat >conftest.$ac_ext <<_ACEOF
4206#line $LINENO "configure"
4207#include "confdefs.h"
4208#include <assert.h>
4209 Syntax error
4210_ACEOF
4211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4213 ac_status=$?
4214 egrep -v '^ *\+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null; then
4219 if test -s conftest.err; then
4220 ac_cpp_err=$ac_c_preproc_warn_flag
4221 else
4222 ac_cpp_err=
4223 fi
4224else
4225 ac_cpp_err=yes
4226fi
4227if test -z "$ac_cpp_err"; then
4228 :
4229else
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 # Broken: fails on valid input.
4233continue
4234fi
4235rm -f conftest.err conftest.$ac_ext
4236
4237 # OK, works on sane cases. Now check whether non-existent headers
4238 # can be detected and how.
4239 cat >conftest.$ac_ext <<_ACEOF
4240#line $LINENO "configure"
4241#include "confdefs.h"
4242#include <ac_nonexistent.h>
4243_ACEOF
4244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 ac_status=$?
4247 egrep -v '^ *\+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 else
4255 ac_cpp_err=
4256 fi
4257else
4258 ac_cpp_err=yes
4259fi
4260if test -z "$ac_cpp_err"; then
4261 # Broken: success on invalid input.
4262continue
4263else
4264 echo "$as_me: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4266 # Passes both tests.
4267ac_preproc_ok=:
4268break
4269fi
4270rm -f conftest.err conftest.$ac_ext
4271
4272done
4273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274rm -f conftest.err conftest.$ac_ext
4275if $ac_preproc_ok; then
4276 break
4277fi
4278
4279 done
4280 ac_cv_prog_CPP=$CPP
4281
4282fi
4283 CPP=$ac_cv_prog_CPP
4284else
4285 ac_cv_prog_CPP=$CPP
4286fi
4287echo "$as_me:$LINENO: result: $CPP" >&5
4288echo "${ECHO_T}$CPP" >&6
4289ac_preproc_ok=false
4290for ac_c_preproc_warn_flag in '' yes
4291do
4292 # Use a header file that comes with gcc, so configuring glibc
4293 # with a fresh cross-compiler works.
4294 # On the NeXT, cc -E runs the code through the compiler's parser,
4295 # not just through cpp. "Syntax error" is here to catch this case.
4296 cat >conftest.$ac_ext <<_ACEOF
4297#line $LINENO "configure"
4298#include "confdefs.h"
4299#include <assert.h>
4300 Syntax error
4301_ACEOF
4302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4304 ac_status=$?
4305 egrep -v '^ *\+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev/null; then
4310 if test -s conftest.err; then
4311 ac_cpp_err=$ac_c_preproc_warn_flag
4312 else
4313 ac_cpp_err=
4314 fi
4315else
4316 ac_cpp_err=yes
4317fi
4318if test -z "$ac_cpp_err"; then
4319 :
4320else
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4323 # Broken: fails on valid input.
4324continue
4325fi
4326rm -f conftest.err conftest.$ac_ext
4327
4328 # OK, works on sane cases. Now check whether non-existent headers
4329 # can be detected and how.
4330 cat >conftest.$ac_ext <<_ACEOF
4331#line $LINENO "configure"
4332#include "confdefs.h"
4333#include <ac_nonexistent.h>
4334_ACEOF
4335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4337 ac_status=$?
4338 egrep -v '^ *\+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } >/dev/null; then
4343 if test -s conftest.err; then
4344 ac_cpp_err=$ac_c_preproc_warn_flag
4345 else
4346 ac_cpp_err=
4347 fi
4348else
4349 ac_cpp_err=yes
4350fi
4351if test -z "$ac_cpp_err"; then
4352 # Broken: success on invalid input.
4353continue
4354else
4355 echo "$as_me: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4357 # Passes both tests.
4358ac_preproc_ok=:
4359break
4360fi
4361rm -f conftest.err conftest.$ac_ext
4362
4363done
4364# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4365rm -f conftest.err conftest.$ac_ext
4366if $ac_preproc_ok; then
4367 :
4368else
4369 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4370echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4371 { (exit 1); exit 1; }; }
4372fi
4373
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
4380
4381echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4382echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4383if test "${ac_cv_header_stdc+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386 cat >conftest.$ac_ext <<_ACEOF
4387#line $LINENO "configure"
4388#include "confdefs.h"
4389#include <stdlib.h>
4390#include <stdarg.h>
4391#include <string.h>
4392#include <float.h>
4393
4394_ACEOF
4395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4397 ac_status=$?
4398 egrep -v '^ *\+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } >/dev/null; then
4403 if test -s conftest.err; then
4404 ac_cpp_err=$ac_c_preproc_warn_flag
4405 else
4406 ac_cpp_err=
4407 fi
4408else
4409 ac_cpp_err=yes
4410fi
4411if test -z "$ac_cpp_err"; then
4412 ac_cv_header_stdc=yes
4413else
4414 echo "$as_me: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4416 ac_cv_header_stdc=no
4417fi
4418rm -f conftest.err conftest.$ac_ext
4419
4420if test $ac_cv_header_stdc = yes; then
4421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4422 cat >conftest.$ac_ext <<_ACEOF
4423#line $LINENO "configure"
4424#include "confdefs.h"
4425#include <string.h>
4426
4427_ACEOF
4428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 egrep "memchr" >/dev/null 2>&1; then
4430 :
4431else
4432 ac_cv_header_stdc=no
4433fi
4434rm -f conftest*
4435
4436fi
4437
4438if test $ac_cv_header_stdc = yes; then
4439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4440 cat >conftest.$ac_ext <<_ACEOF
4441#line $LINENO "configure"
4442#include "confdefs.h"
4443#include <stdlib.h>
4444
4445_ACEOF
4446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4447 egrep "free" >/dev/null 2>&1; then
4448 :
4449else
4450 ac_cv_header_stdc=no
4451fi
4452rm -f conftest*
4453
4454fi
4455
4456if test $ac_cv_header_stdc = yes; then
4457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4458 if test "$cross_compiling" = yes; then
4459 :
4460else
4461 cat >conftest.$ac_ext <<_ACEOF
4462#line $LINENO "configure"
4463#include "confdefs.h"
4464#include <ctype.h>
4465#if ((' ' & 0x0FF) == 0x020)
4466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4468#else
4469# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4470 || ('j' <= (c) && (c) <= 'r') \
4471 || ('s' <= (c) && (c) <= 'z'))
4472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4473#endif
4474
4475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4476int
4477main ()
4478{
4479 int i;
4480 for (i = 0; i < 256; i++)
4481 if (XOR (islower (i), ISLOWER (i))
4482 || toupper (i) != TOUPPER (i))
4483 exit(2);
4484 exit (0);
4485}
4486_ACEOF
4487rm -f conftest$ac_exeext
4488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 :
4499else
4500 echo "$as_me: program exited with status $ac_status" >&5
4501echo "$as_me: failed program was:" >&5
4502cat conftest.$ac_ext >&5
4503( exit $ac_status )
4504ac_cv_header_stdc=no
4505fi
4506rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4507fi
4508fi
4509fi
4510echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4511echo "${ECHO_T}$ac_cv_header_stdc" >&6
4512if test $ac_cv_header_stdc = yes; then
4513
4514cat >>confdefs.h <<\_ACEOF
4515#define STDC_HEADERS 1
4516_ACEOF
4517
4518fi
4519
4520# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4531 inttypes.h stdint.h unistd.h
4532do
4533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4534echo "$as_me:$LINENO: checking for $ac_header" >&5
4535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4536if eval "test \"\${$as_ac_Header+set}\" = set"; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539 cat >conftest.$ac_ext <<_ACEOF
4540#line $LINENO "configure"
4541#include "confdefs.h"
4542$ac_includes_default
4543
4544#include <$ac_header>
4545_ACEOF
4546rm -f conftest.$ac_objext
4547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_Header=yes"
4559else
4560 echo "$as_me: failed program was:" >&5
4561cat conftest.$ac_ext >&5
4562eval "$as_ac_Header=no"
4563fi
4564rm -f conftest.$ac_objext conftest.$ac_ext
4565fi
4566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<_ACEOF
4570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571_ACEOF
4572
4573fi
4574
4575done
4576
4577
4578
4579for ac_header in dlfcn.h
4580do
4581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583 echo "$as_me:$LINENO: checking for $ac_header" >&5
4584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4585if eval "test \"\${$as_ac_Header+set}\" = set"; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587fi
4588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590else
4591 # Is the header compilable?
4592echo "$as_me:$LINENO: checking $ac_header usability" >&5
4593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4594cat >conftest.$ac_ext <<_ACEOF
4595#line $LINENO "configure"
4596#include "confdefs.h"
4597$ac_includes_default
4598#include <$ac_header>
4599_ACEOF
4600rm -f conftest.$ac_objext
4601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_header_compiler=yes
4613else
4614 echo "$as_me: failed program was:" >&5
4615cat conftest.$ac_ext >&5
4616ac_header_compiler=no
4617fi
4618rm -f conftest.$ac_objext conftest.$ac_ext
4619echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4620echo "${ECHO_T}$ac_header_compiler" >&6
4621
4622# Is the header present?
4623echo "$as_me:$LINENO: checking $ac_header presence" >&5
4624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4625cat >conftest.$ac_ext <<_ACEOF
4626#line $LINENO "configure"
4627#include "confdefs.h"
4628#include <$ac_header>
4629_ACEOF
4630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4632 ac_status=$?
4633 egrep -v '^ *\+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null; then
4638 if test -s conftest.err; then
4639 ac_cpp_err=$ac_c_preproc_warn_flag
4640 else
4641 ac_cpp_err=
4642 fi
4643else
4644 ac_cpp_err=yes
4645fi
4646if test -z "$ac_cpp_err"; then
4647 ac_header_preproc=yes
4648else
4649 echo "$as_me: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 ac_header_preproc=no
4652fi
4653rm -f conftest.err conftest.$ac_ext
4654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4655echo "${ECHO_T}$ac_header_preproc" >&6
4656
4657# So? What about this header?
4658case $ac_header_compiler:$ac_header_preproc in
4659 yes:no )
4660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4664 no:yes )
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4671esac
4672echo "$as_me:$LINENO: checking for $ac_header" >&5
4673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4674if eval "test \"\${$as_ac_Header+set}\" = set"; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 eval "$as_ac_Header=$ac_header_preproc"
4678fi
4679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4681
4682fi
4683if test `eval echo '${'$as_ac_Header'}'` = yes; then
4684 cat >>confdefs.h <<_ACEOF
4685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4686_ACEOF
4687
4688fi
4689
4690done
4691
4692ac_ext=cc
4693ac_cpp='$CXXCPP $CPPFLAGS'
4694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4697echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4698echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4699if test -z "$CXXCPP"; then
4700 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
4703 # Double quotes because CXXCPP needs to be expanded
4704 for CXXCPP in "$CXX -E" "/lib/cpp"
4705 do
4706 ac_preproc_ok=false
4707for ac_cxx_preproc_warn_flag in '' yes
4708do
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.$ac_ext <<_ACEOF
4714#line $LINENO "configure"
4715#include "confdefs.h"
4716#include <assert.h>
4717 Syntax error
4718_ACEOF
4719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4721 ac_status=$?
4722 egrep -v '^ *\+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null; then
4727 if test -s conftest.err; then
4728 ac_cpp_err=$ac_cxx_preproc_warn_flag
4729 else
4730 ac_cpp_err=
4731 fi
4732else
4733 ac_cpp_err=yes
4734fi
4735if test -z "$ac_cpp_err"; then
4736 :
4737else
4738 echo "$as_me: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4740 # Broken: fails on valid input.
4741continue
4742fi
4743rm -f conftest.err conftest.$ac_ext
4744
4745 # OK, works on sane cases. Now check whether non-existent headers
4746 # can be detected and how.
4747 cat >conftest.$ac_ext <<_ACEOF
4748#line $LINENO "configure"
4749#include "confdefs.h"
4750#include <ac_nonexistent.h>
4751_ACEOF
4752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754 ac_status=$?
4755 egrep -v '^ *\+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null; then
4760 if test -s conftest.err; then
4761 ac_cpp_err=$ac_cxx_preproc_warn_flag
4762 else
4763 ac_cpp_err=
4764 fi
4765else
4766 ac_cpp_err=yes
4767fi
4768if test -z "$ac_cpp_err"; then
4769 # Broken: success on invalid input.
4770continue
4771else
4772 echo "$as_me: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4774 # Passes both tests.
4775ac_preproc_ok=:
4776break
4777fi
4778rm -f conftest.err conftest.$ac_ext
4779
4780done
4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782rm -f conftest.err conftest.$ac_ext
4783if $ac_preproc_ok; then
4784 break
4785fi
4786
4787 done
4788 ac_cv_prog_CXXCPP=$CXXCPP
4789
4790fi
4791 CXXCPP=$ac_cv_prog_CXXCPP
4792else
4793 ac_cv_prog_CXXCPP=$CXXCPP
4794fi
4795echo "$as_me:$LINENO: result: $CXXCPP" >&5
4796echo "${ECHO_T}$CXXCPP" >&6
4797ac_preproc_ok=false
4798for ac_cxx_preproc_warn_flag in '' yes
4799do
4800 # Use a header file that comes with gcc, so configuring glibc
4801 # with a fresh cross-compiler works.
4802 # On the NeXT, cc -E runs the code through the compiler's parser,
4803 # not just through cpp. "Syntax error" is here to catch this case.
4804 cat >conftest.$ac_ext <<_ACEOF
4805#line $LINENO "configure"
4806#include "confdefs.h"
4807#include <assert.h>
4808 Syntax error
4809_ACEOF
4810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812 ac_status=$?
4813 egrep -v '^ *\+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } >/dev/null; then
4818 if test -s conftest.err; then
4819 ac_cpp_err=$ac_cxx_preproc_warn_flag
4820 else
4821 ac_cpp_err=
4822 fi
4823else
4824 ac_cpp_err=yes
4825fi
4826if test -z "$ac_cpp_err"; then
4827 :
4828else
4829 echo "$as_me: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4831 # Broken: fails on valid input.
4832continue
4833fi
4834rm -f conftest.err conftest.$ac_ext
4835
4836 # OK, works on sane cases. Now check whether non-existent headers
4837 # can be detected and how.
4838 cat >conftest.$ac_ext <<_ACEOF
4839#line $LINENO "configure"
4840#include "confdefs.h"
4841#include <ac_nonexistent.h>
4842_ACEOF
4843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 ac_status=$?
4846 egrep -v '^ *\+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_cxx_preproc_warn_flag
4853 else
4854 ac_cpp_err=
4855 fi
4856else
4857 ac_cpp_err=yes
4858fi
4859if test -z "$ac_cpp_err"; then
4860 # Broken: success on invalid input.
4861continue
4862else
4863 echo "$as_me: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 # Passes both tests.
4866ac_preproc_ok=:
4867break
4868fi
4869rm -f conftest.err conftest.$ac_ext
4870
4871done
4872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873rm -f conftest.err conftest.$ac_ext
4874if $ac_preproc_ok; then
4875 :
4876else
4877 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4878echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4879 { (exit 1); exit 1; }; }
4880fi
4881
4882ac_ext=cc
4883ac_cpp='$CXXCPP $CPPFLAGS'
4884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4887
4888
4889# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4890
4891# find the maximum length of command line arguments
4892echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4893echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4894if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897 i=0
4898 testring="ABCD"
4899
4900 case $host_os in
4901 msdosdjgpp*)
4902 # On DJGPP, this test can blow up pretty badly due to problems in libc
4903 # (any single argument exceeding 2000 bytes causes a buffer overrun
4904 # during glob expansion). Even if it were fixed, the result of this
4905 # check would be larger than it should be.
4906 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4907 ;;
4908
4909 gnu*)
4910 # Under GNU Hurd, this test is not required because there is
4911 # no limit to the length of command line arguments.
4912 # Libtool will interpret -1 as no limit whatsoever
4913 lt_cv_sys_max_cmd_len=-1;
4914 ;;
4915
4916 *)
4917 # If test is not a shell built-in, we'll probably end up computing a
4918 # maximum length that is only half of the actual maximum length, but
4919 # we can't tell.
4920 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4921 = "XX$testring") >/dev/null 2>&1 &&
4922 new_result=`expr "X$testring" : ".*" 2>&1` &&
4923 lt_cv_sys_max_cmd_len=$new_result &&
4924 test $i != 17 # 1/2 MB should be enough
4925 do
4926 i=`expr $i + 1`
4927 testring=$testring$testring
4928 done
4929 testring=
4930 # Add a significant safety factor because C++ compilers can tack on massive
4931 # amounts of additional arguments before passing them to the linker.
4932 # It appears as though 1/2 is a usable value.
4933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4934 ;;
4935 esac
4936
4937fi
4938
4939if test -n $lt_cv_sys_max_cmd_len ; then
4940 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4941echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4942else
4943 echo "$as_me:$LINENO: result: none" >&5
4944echo "${ECHO_T}none" >&6
4945fi
4946
4947
4948
4949
4950# Check for command to grab the raw symbol name followed by C symbol from nm.
4951echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4952echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4953if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956
4957# These are sane defaults that work on at least a few old systems.
4958# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4959
4960# Character class describing NM global symbol codes.
4961symcode='[BCDEGRST]'
4962
4963# Regexp to match symbols that can be accessed directly from C.
4964sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4965
4966# Transform the above into a raw symbol and a C symbol.
4967symxfrm='\1 \2\3 \3'
4968
4969# Transform an extracted symbol line into a proper C declaration
4970lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4971
4972# Transform an extracted symbol line into symbol name and symbol address
4973lt_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'"
4974
4975# Define system-specific variables.
4976case $host_os in
4977aix*)
4978 symcode='[BCDT]'
4979 ;;
4980cygwin* | mingw* | pw32*)
4981 symcode='[ABCDGISTW]'
4982 ;;
4983hpux*) # Its linker distinguishes data from code symbols
4984 if test "$host_cpu" = ia64; then
4985 symcode='[ABCDEGRST]'
4986 fi
4987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4988 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'"
4989 ;;
4990irix* | nonstopux*)
4991 symcode='[BCDEGRST]'
4992 ;;
4993solaris* | sysv5*)
4994 symcode='[BDT]'
4995 ;;
4996sysv4)
4997 symcode='[DFNSTU]'
4998 ;;
4999esac
5000
5001# Handle CRLF in mingw tool chain
5002opt_cr=
5003case $host_os in
5004mingw*)
5005 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5006 ;;
5007esac
5008
5009# If we're using GNU nm, then use its standard symbol codes.
5010if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5011 symcode='[ABCDGISTW]'
5012fi
5013
5014# Try without a prefix undercore, then with it.
5015for ac_symprfx in "" "_"; do
5016
5017 # Write the raw and C identifiers.
5018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5019
5020 # Check to see that the pipe works correctly.
5021 pipe_works=no
5022
5023 rm -f conftest*
5024 cat > conftest.$ac_ext <<EOF
5025#ifdef __cplusplus
5026extern "C" {
5027#endif
5028char nm_test_var;
5029void nm_test_func(){}
5030#ifdef __cplusplus
5031}
5032#endif
5033int main(){nm_test_var='a';nm_test_func();return(0);}
5034EOF
5035
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 # Now try to grab the symbols.
5042 nlist=conftest.nm
5043 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5044 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && test -s "$nlist"; then
5048 # Try sorting and uniquifying the output.
5049 if sort "$nlist" | uniq > "$nlist"T; then
5050 mv -f "$nlist"T "$nlist"
5051 else
5052 rm -f "$nlist"T
5053 fi
5054
5055 # Make sure that we snagged all the symbols we need.
5056 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5057 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5058 cat <<EOF > conftest.$ac_ext
5059#ifdef __cplusplus
5060extern "C" {
5061#endif
5062
5063EOF
5064 # Now generate the symbol file.
5065 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5066
5067 cat <<EOF >> conftest.$ac_ext
5068#if defined (__STDC__) && __STDC__
5069# define lt_ptr_t void *
5070#else
5071# define lt_ptr_t char *
5072# define const
5073#endif
5074
5075/* The mapping between symbol names and symbols. */
5076const struct {
5077 const char *name;
5078 lt_ptr_t address;
5079}
5080lt_preloaded_symbols[] =
5081{
5082EOF
5083 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5084 cat <<\EOF >> conftest.$ac_ext
5085 {0, (lt_ptr_t) 0}
5086};
5087
5088#ifdef __cplusplus
5089}
5090#endif
5091EOF
5092 # Now try linking the two files.
5093 mv conftest.$ac_objext conftstm.$ac_objext
5094 lt_save_LIBS="$LIBS"
5095 lt_save_CFLAGS="$CFLAGS"
5096 LIBS="conftstm.$ac_objext"
5097 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5103 pipe_works=yes
5104 fi
5105 LIBS="$lt_save_LIBS"
5106 CFLAGS="$lt_save_CFLAGS"
5107 else
5108 echo "cannot find nm_test_func in $nlist" >&5
5109 fi
5110 else
5111 echo "cannot find nm_test_var in $nlist" >&5
5112 fi
5113 else
5114 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5115 fi
5116 else
5117 echo "$progname: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5119 fi
5120 rm -f conftest* conftst*
5121
5122 # Do not use the global_symbol_pipe unless it works.
5123 if test "$pipe_works" = yes; then
5124 break
5125 else
5126 lt_cv_sys_global_symbol_pipe=
5127 fi
5128done
5129
5130fi
5131
5132if test -z "$lt_cv_sys_global_symbol_pipe"; then
5133 lt_cv_sys_global_symbol_to_cdecl=
5134fi
5135if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5136 echo "$as_me:$LINENO: result: failed" >&5
5137echo "${ECHO_T}failed" >&6
5138else
5139 echo "$as_me:$LINENO: result: ok" >&5
5140echo "${ECHO_T}ok" >&6
5141fi
5142
5143echo "$as_me:$LINENO: checking for objdir" >&5
5144echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5145if test "${lt_cv_objdir+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 rm -f .libs 2>/dev/null
5149mkdir .libs 2>/dev/null
5150if test -d .libs; then
5151 lt_cv_objdir=.libs
5152else
5153 # MS-DOS does not allow filenames that begin with a dot.
5154 lt_cv_objdir=_libs
5155fi
5156rmdir .libs 2>/dev/null
5157fi
5158echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5159echo "${ECHO_T}$lt_cv_objdir" >&6
5160objdir=$lt_cv_objdir
5161
5162
5163
5164
5165
5166case $host_os in
5167aix3*)
5168 # AIX sometimes has problems with the GCC collect2 program. For some
5169 # reason, if we set the COLLECT_NAMES environment variable, the problems
5170 # vanish in a puff of smoke.
5171 if test "X${COLLECT_NAMES+set}" != Xset; then
5172 COLLECT_NAMES=
5173 export COLLECT_NAMES
5174 fi
5175 ;;
5176esac
5177
5178# Sed substitution that helps us do robust quoting. It backslashifies
5179# metacharacters that are still active within double-quoted strings.
5180Xsed='sed -e s/^X//'
5181sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5182
5183# Same as above, but do not quote variable references.
5184double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5185
5186# Sed substitution to delay expansion of an escaped shell variable in a
5187# double_quote_subst'ed string.
5188delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5189
5190# Sed substitution to avoid accidental globbing in evaled expressions
5191no_glob_subst='s/\*/\\\*/g'
5192
5193# Constants:
5194rm="rm -f"
5195
5196# Global variables:
5197default_ofile=libtool
5198can_build_shared=yes
5199
5200# All known linkers require a `.a' archive for static linking (except M$VC,
5201# which needs '.lib').
5202libext=a
5203ltmain="$ac_aux_dir/ltmain.sh"
5204ofile="$default_ofile"
5205with_gnu_ld="$lt_cv_prog_gnu_ld"
5206
5207if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5209set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5210echo "$as_me:$LINENO: checking for $ac_word" >&5
5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212if test "${ac_cv_prog_RANLIB+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215 if test -n "$RANLIB"; then
5216 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231
5232fi
5233fi
5234RANLIB=$ac_cv_prog_RANLIB
5235if test -n "$RANLIB"; then
5236 echo "$as_me:$LINENO: result: $RANLIB" >&5
5237echo "${ECHO_T}$RANLIB" >&6
5238else
5239 echo "$as_me:$LINENO: result: no" >&5
5240echo "${ECHO_T}no" >&6
5241fi
5242
5243fi
5244if test -z "$ac_cv_prog_RANLIB"; then
5245 ac_ct_RANLIB=$RANLIB
5246 # Extract the first word of "ranlib", so it can be a program name with args.
5247set dummy ranlib; ac_word=$2
5248echo "$as_me:$LINENO: checking for $ac_word" >&5
5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253 if test -n "$ac_ct_RANLIB"; then
5254 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_RANLIB="ranlib"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267done
5268done
5269
5270 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5271fi
5272fi
5273ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5274if test -n "$ac_ct_RANLIB"; then
5275 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5276echo "${ECHO_T}$ac_ct_RANLIB" >&6
5277else
5278 echo "$as_me:$LINENO: result: no" >&5
5279echo "${ECHO_T}no" >&6
5280fi
5281
5282 RANLIB=$ac_ct_RANLIB
5283else
5284 RANLIB="$ac_cv_prog_RANLIB"
5285fi
5286
5287if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5289set dummy ${ac_tool_prefix}strip; ac_word=$2
5290echo "$as_me:$LINENO: checking for $ac_word" >&5
5291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292if test "${ac_cv_prog_STRIP+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295 if test -n "$STRIP"; then
5296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5297else
5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309done
5310done
5311
5312fi
5313fi
5314STRIP=$ac_cv_prog_STRIP
5315if test -n "$STRIP"; then
5316 echo "$as_me:$LINENO: result: $STRIP" >&5
5317echo "${ECHO_T}$STRIP" >&6
5318else
5319 echo "$as_me:$LINENO: result: no" >&5
5320echo "${ECHO_T}no" >&6
5321fi
5322
5323fi
5324if test -z "$ac_cv_prog_STRIP"; then
5325 ac_ct_STRIP=$STRIP
5326 # Extract the first word of "strip", so it can be a program name with args.
5327set dummy strip; ac_word=$2
5328echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 if test -n "$ac_ct_STRIP"; then
5334 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_ac_ct_STRIP="strip"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347done
5348done
5349
5350 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5351fi
5352fi
5353ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5354if test -n "$ac_ct_STRIP"; then
5355 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5356echo "${ECHO_T}$ac_ct_STRIP" >&6
5357else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360fi
5361
5362 STRIP=$ac_ct_STRIP
5363else
5364 STRIP="$ac_cv_prog_STRIP"
5365fi
5366
5367
5368old_CC="$CC"
5369old_CFLAGS="$CFLAGS"
5370
5371# Set sane defaults for various variables
5372test -z "$AR" && AR=ar
5373test -z "$AR_FLAGS" && AR_FLAGS=cru
5374test -z "$AS" && AS=as
5375test -z "$CC" && CC=cc
5376test -z "$LTCC" && LTCC=$CC
5377test -z "$DLLTOOL" && DLLTOOL=dlltool
5378test -z "$LD" && LD=ld
5379test -z "$LN_S" && LN_S="ln -s"
5380test -z "$MAGIC_CMD" && MAGIC_CMD=file
5381test -z "$NM" && NM=nm
5382test -z "$SED" && SED=sed
5383test -z "$OBJDUMP" && OBJDUMP=objdump
5384test -z "$RANLIB" && RANLIB=:
5385test -z "$STRIP" && STRIP=:
5386test -z "$ac_objext" && ac_objext=o
5387
5388# Determine commands to create old-style static archives.
5389old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5390old_postinstall_cmds='chmod 644 $oldlib'
5391old_postuninstall_cmds=
5392
5393if test -n "$RANLIB"; then
5394 case $host_os in
5395 openbsd*)
5396 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5397 ;;
5398 *)
5399 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5400 ;;
5401 esac
5402 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5403fi
5404
5405# Only perform the check for file, if the check method requires it
5406case $deplibs_check_method in
5407file_magic*)
5408 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5409 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5410echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5411if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 case $MAGIC_CMD in
5415[\\/*] | ?:[\\/]*)
5416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5417 ;;
5418*)
5419 lt_save_MAGIC_CMD="$MAGIC_CMD"
5420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5422 for ac_dir in $ac_dummy; do
5423 IFS="$lt_save_ifs"
5424 test -z "$ac_dir" && ac_dir=.
5425 if test -f $ac_dir/${ac_tool_prefix}file; then
5426 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5427 if test -n "$file_magic_test_file"; then
5428 case $deplibs_check_method in
5429 "file_magic "*)
5430 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5433 egrep "$file_magic_regex" > /dev/null; then
5434 :
5435 else
5436 cat <<EOF 1>&2
5437
5438*** Warning: the command libtool uses to detect shared libraries,
5439*** $file_magic_cmd, produces output that libtool cannot recognize.
5440*** The result is that libtool may fail to recognize shared libraries
5441*** as such. This will affect the creation of libtool libraries that
5442*** depend on shared libraries, but programs linked with such libtool
5443*** libraries will work regardless of this problem. Nevertheless, you
5444*** may want to report the problem to your system manager and/or to
5445*** bug-libtool@gnu.org
5446
5447EOF
5448 fi ;;
5449 esac
5450 fi
5451 break
5452 fi
5453 done
5454 IFS="$lt_save_ifs"
5455 MAGIC_CMD="$lt_save_MAGIC_CMD"
5456 ;;
5457esac
5458fi
5459
5460MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5461if test -n "$MAGIC_CMD"; then
5462 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5463echo "${ECHO_T}$MAGIC_CMD" >&6
5464else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467fi
5468
5469if test -z "$lt_cv_path_MAGIC_CMD"; then
5470 if test -n "$ac_tool_prefix"; then
5471 echo "$as_me:$LINENO: checking for file" >&5
5472echo $ECHO_N "checking for file... $ECHO_C" >&6
5473if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475else
5476 case $MAGIC_CMD in
5477[\\/*] | ?:[\\/]*)
5478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5479 ;;
5480*)
5481 lt_save_MAGIC_CMD="$MAGIC_CMD"
5482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5484 for ac_dir in $ac_dummy; do
5485 IFS="$lt_save_ifs"
5486 test -z "$ac_dir" && ac_dir=.
5487 if test -f $ac_dir/file; then
5488 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5489 if test -n "$file_magic_test_file"; then
5490 case $deplibs_check_method in
5491 "file_magic "*)
5492 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5495 egrep "$file_magic_regex" > /dev/null; then
5496 :
5497 else
5498 cat <<EOF 1>&2
5499
5500*** Warning: the command libtool uses to detect shared libraries,
5501*** $file_magic_cmd, produces output that libtool cannot recognize.
5502*** The result is that libtool may fail to recognize shared libraries
5503*** as such. This will affect the creation of libtool libraries that
5504*** depend on shared libraries, but programs linked with such libtool
5505*** libraries will work regardless of this problem. Nevertheless, you
5506*** may want to report the problem to your system manager and/or to
5507*** bug-libtool@gnu.org
5508
5509EOF
5510 fi ;;
5511 esac
5512 fi
5513 break
5514 fi
5515 done
5516 IFS="$lt_save_ifs"
5517 MAGIC_CMD="$lt_save_MAGIC_CMD"
5518 ;;
5519esac
5520fi
5521
5522MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5523if test -n "$MAGIC_CMD"; then
5524 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5525echo "${ECHO_T}$MAGIC_CMD" >&6
5526else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529fi
5530
5531 else
5532 MAGIC_CMD=:
5533 fi
5534fi
5535
5536 fi
5537 ;;
5538esac
5539
5540enable_dlopen=no
5541enable_win32_dll=no
5542
5543# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5544if test "${enable_libtool_lock+set}" = set; then
5545 enableval="$enable_libtool_lock"
5546
5547fi;
5548test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5549
5550
5551# Check whether --with-pic or --without-pic was given.
5552if test "${with_pic+set}" = set; then
5553 withval="$with_pic"
5554 pic_mode="$withval"
5555else
5556 pic_mode=default
5557fi;
5558test -z "$pic_mode" && pic_mode=default
5559
5560# Use C for the default configuration in the libtool script
5561tagname=
5562lt_save_CC="$CC"
5563ac_ext=c
5564ac_cpp='$CPP $CPPFLAGS'
5565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568
5569
5570# Source file extension for C test sources.
5571ac_ext=c
5572
5573# Object file extension for compiled C test sources.
5574objext=o
5575objext=$objext
5576
5577# Code to be used in simple compile tests
5578lt_simple_compile_test_code="int some_variable = 0;"
5579
5580# Code to be used in simple link tests
5581lt_simple_link_test_code='main(){return(0);}'
5582
5583
5584# If no C compiler was specified, use CC.
5585LTCC=${LTCC-"$CC"}
5586
5587# Allow CC to be a program name with arguments.
5588set dummy $CC
5589compiler="$2"
5590
5591
5592#
5593# Check for any special shared library compilation flags.
5594#
5595lt_prog_cc_shlib=
5596if test "$GCC" = no; then
5597 case $host_os in
5598 sco3.2v5*)
5599 lt_prog_cc_shlib='-belf'
5600 ;;
5601 esac
5602fi
5603if test -n "$lt_prog_cc_shlib"; then
5604 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5605echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5606 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5607 else
5608 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5609echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5610 lt_cv_prog_cc_can_build_shared=no
5611 fi
5612fi
5613
5614
5615#
5616# Check to make sure the static flag actually works.
5617#
5618echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5619echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5620if test "${lt_prog_compiler_static_works+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623 lt_prog_compiler_static_works=no
5624 save_LDFLAGS="$LDFLAGS"
5625 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5626 echo "$lt_simple_link_test_code" > conftest.$ac_ext
5627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5628 # The compiler can only warn and ignore the option if not recognized
5629 # So say no if there are warnings
5630 if test -s conftest.err; then
5631 # Append any errors to the config.log.
5632 cat conftest.err 1>&5
5633 else
5634 lt_prog_compiler_static_works=yes
5635 fi
5636 fi
5637 $rm conftest*
5638 LDFLAGS="$save_LDFLAGS"
5639
5640fi
5641echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5642echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5643
5644if test x"$lt_prog_compiler_static_works" = xyes; then
5645 :
5646else
5647 lt_prog_compiler_static=
5648fi
5649
5650
5651
5652
5653lt_prog_compiler_no_builtin_flag=
5654
5655if test "$GCC" = yes; then
5656 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5657
5658 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5659echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5660if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663 lt_cv_prog_compiler_rtti_exceptions=no
5664 ac_outfile=conftest.$ac_objext
5665 save_CFLAGS="$CFLAGS"
5666 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5668 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5669 # The compiler can only warn and ignore the option if not recognized
5670 # So say no if there are warnings
5671 if test -s conftest.err; then
5672 # Append any errors to the config.log.
5673 cat conftest.err 1>&5
5674 else
5675 lt_cv_prog_compiler_rtti_exceptions=yes
5676 fi
5677 fi
5678 $rm conftest*
5679 CFLAGS="$save_CFLAGS"
5680
5681fi
5682echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5683echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5684
5685if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5687else
5688 :
5689fi
5690
5691fi
5692
5693lt_prog_compiler_wl=
5694lt_prog_compiler_pic=
5695lt_prog_compiler_static=
5696
5697echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5698echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5699
5700 if test "$GCC" = yes; then
5701 lt_prog_compiler_wl='-Wl,'
5702 lt_prog_compiler_static='-static'
5703
5704 case $host_os in
5705 aix*)
5706 # All AIX code is PIC.
5707 if test "$host_cpu" = ia64; then
5708 # AIX 5 now supports IA64 processor
5709 lt_prog_compiler_static='-Bstatic'
5710 fi
5711 ;;
5712
5713 amigaos*)
5714 # FIXME: we need at least 68020 code to build shared libraries, but
5715 # adding the `-m68020' flag to GCC prevents building anything better,
5716 # like `-m68040'.
5717 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5718 ;;
5719
5720 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5721 # PIC is the default for these OSes.
5722 ;;
5723
5724 mingw* | pw32* | os2*)
5725 # This hack is so that the source file can tell whether it is being
5726 # built for inclusion in a dll (and should export symbols for example).
5727 lt_prog_compiler_pic='-DDLL_EXPORT'
5728 ;;
5729
5730 darwin* | rhapsody*)
5731 # PIC is the default on this platform
5732 # Common symbols not allowed in MH_DYLIB files
5733 lt_prog_compiler_pic='-fno-common'
5734 ;;
5735
5736 msdosdjgpp*)
5737 # Just because we use GCC doesn't mean we suddenly get shared libraries
5738 # on systems that don't support them.
5739 lt_prog_compiler_can_build_shared=no
5740 enable_shared=no
5741 ;;
5742
5743 sysv4*MP*)
5744 if test -d /usr/nec; then
5745 lt_prog_compiler_pic=-Kconform_pic
5746 fi
5747 ;;
5748
5749 hpux*)
5750 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5751 if test "$host_cpu" != ia64; then
5752 lt_prog_compiler_pic='-fPIC'
5753 fi
5754 ;;
5755
5756 *)
5757 lt_prog_compiler_pic='-fPIC'
5758 ;;
5759 esac
5760 else
5761 # PORTME Check for flag to pass linker flags through the system compiler.
5762 case $host_os in
5763 aix*)
5764 lt_prog_compiler_wl='-Wl,'
5765 if test "$host_cpu" = ia64; then
5766 # AIX 5 now supports IA64 processor
5767 lt_prog_compiler_static='-Bstatic'
5768 else
5769 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5770 fi
5771 ;;
5772
5773 mingw* | pw32* | os2*)
5774 # This hack is so that the source file can tell whether it is being
5775 # built for inclusion in a dll (and should export symbols for example).
5776 lt_prog_compiler_pic='-DDLL_EXPORT'
5777 ;;
5778
5779 hpux9* | hpux10* | hpux11*)
5780 lt_prog_compiler_wl='-Wl,'
5781 if test "$host_cpu" != ia64; then
5782 lt_prog_compiler_pic='+Z'
5783 fi
5784 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5785 lt_prog_compiler_static='${wl}-a ${wl}archive'
5786 ;;
5787
5788 irix5* | irix6* | nonstopux*)
5789 lt_prog_compiler_wl='-Wl,'
5790 # PIC (with -KPIC) is the default.
5791 lt_prog_compiler_static='-non_shared'
5792 ;;
5793
5794 newsos6)
5795 lt_prog_compiler_pic='-KPIC'
5796 lt_prog_compiler_static='-Bstatic'
5797 ;;
5798
5799 osf3* | osf4* | osf5*)
5800 lt_prog_compiler_wl='-Wl,'
5801 # All OSF/1 code is PIC.
5802 lt_prog_compiler_static='-non_shared'
5803 ;;
5804
5805 sco3.2v5*)
5806 lt_prog_compiler_pic='-Kpic'
5807 lt_prog_compiler_static='-dn'
5808 ;;
5809
5810 solaris*)
5811 lt_prog_compiler_wl='-Wl,'
5812 lt_prog_compiler_pic='-KPIC'
5813 lt_prog_compiler_static='-Bstatic'
5814 ;;
5815
5816 sunos4*)
5817 lt_prog_compiler_wl='-Qoption ld '
5818 lt_prog_compiler_pic='-PIC'
5819 lt_prog_compiler_static='-Bstatic'
5820 ;;
5821
5822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5823 if test "x$host_vendor" = xsni; then
5824 lt_prog_compiler_wl='-LD'
5825 else
5826 lt_prog_compiler_wl='-Wl,'
5827 fi
5828 lt_prog_compiler_pic='-KPIC'
5829 lt_prog_compiler_static='-Bstatic'
5830 ;;
5831
5832 sysv4*MP*)
5833 if test -d /usr/nec ;then
5834 lt_prog_compiler_pic='-Kconform_pic'
5835 lt_prog_compiler_static='-Bstatic'
5836 fi
5837 ;;
5838
5839 uts4*)
5840 lt_prog_compiler_pic='-pic'
5841 lt_prog_compiler_static='-Bstatic'
5842 ;;
5843
5844 *)
5845 lt_prog_compiler_can_build_shared=no
5846 ;;
5847 esac
5848 fi
5849
5850echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5851echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5852
5853#
5854# Check to make sure the PIC flag actually works.
5855#
5856if test -n "$lt_prog_compiler_pic"; then
5857 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5858echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5859if test "${lt_prog_compiler_pic_works+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862 lt_prog_compiler_pic_works=no
5863 ac_outfile=conftest.$ac_objext
5864 save_CFLAGS="$CFLAGS"
5865 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
5866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5867 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5868 # The compiler can only warn and ignore the option if not recognized
5869 # So say no if there are warnings
5870 if test -s conftest.err; then
5871 # Append any errors to the config.log.
5872 cat conftest.err 1>&5
5873 else
5874 lt_prog_compiler_pic_works=yes
5875 fi
5876 fi
5877 $rm conftest*
5878 CFLAGS="$save_CFLAGS"
5879
5880fi
5881echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5882echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5883
5884if test x"$lt_prog_compiler_pic_works" = xyes; then
5885 case $lt_prog_compiler_pic in
5886 "" | " "*) ;;
5887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5888 esac
5889else
5890 lt_prog_compiler_pic=
5891 lt_prog_compiler_can_build_shared=no
5892fi
5893
5894fi
5895case "$host_os" in
5896 # For platforms which do not support PIC, -DPIC is meaningless:
5897 *djgpp*)
5898 lt_prog_compiler_pic=
5899 ;;
5900 *)
5901 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5902 ;;
5903esac
5904
5905echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5906echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5907if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910 lt_cv_prog_compiler_c_o=no
5911 $rm -r conftest 2>/dev/null
5912 mkdir conftest
5913 cd conftest
5914 mkdir out
5915 save_CFLAGS="$CFLAGS"
5916 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5918
5919 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5920 # that will create temporary files in the current directory regardless of
5921 # the output directory. Thus, making CWD read-only will cause this test
5922 # to fail, enabling locking or at least warning the user not to do parallel
5923 # builds.
5924 chmod -w .
5925
5926 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
5927 then
5928 # The compiler can only warn and ignore the option if not recognized
5929 # So say no if there are warnings
5930 if test -s out/conftest.err; then
5931 # Append any errors to the config.log.
5932 cat out/conftest.err 1>&5
5933 else
5934 lt_cv_prog_compiler_c_o=yes
5935 fi
5936 fi
5937 CFLAGS="$save_CFLAGS"
5938 chmod u+w .
5939 $rm conftest* out/*
5940 rmdir out
5941 cd ..
5942 rmdir conftest
5943 $rm conftest*
5944
5945fi
5946echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5947echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5948
5949
5950hard_links="nottested"
5951if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5952 # do not overwrite the value of need_locks provided by the user
5953 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5954echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5955 hard_links=yes
5956 $rm conftest*
5957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5958 touch conftest.a
5959 ln conftest.a conftest.b 2>&5 || hard_links=no
5960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5961 echo "$as_me:$LINENO: result: $hard_links" >&5
5962echo "${ECHO_T}$hard_links" >&6
5963 if test "$hard_links" = no; then
5964 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5965echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5966 need_locks=warn
5967 fi
5968else
5969 need_locks=no
5970fi
5971
5972echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5973echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5974
5975 runpath_var=
5976 allow_undefined_flag=
5977
5978 archive_cmds=
5979 archive_cmds_need_lc=
5980 archive_expsym_cmds=
5981 old_archive_From_new_cmds=
5982 old_archive_from_expsyms_cmds=
5983 export_dynamic_flag_spec=
5984 whole_archive_flag_spec=
5985 thread_safe_flag_spec=
5986 hardcode_libdir_flag_spec=
5987 hardcode_libdir_separator=
5988 hardcode_direct=no
5989 hardcode_minus_L=no
5990 hardcode_shlibpath_var=unsupported
5991 link_all_deplibs=unknown
5992 always_export_symbols=no
5993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5994 # include_expsyms should be a list of space-separated symbols to be *always*
5995 # included in the symbol list
5996 include_expsyms=
5997 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5998 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5999 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6000 # as well as any symbol that contains `d'.
6001 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6002 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6003 # platforms (ab)use it in PIC code, but their linkers get confused if
6004 # the symbol is explicitly referenced. Since portable code cannot
6005 # rely on this symbol name, it's probably fine to never include it in
6006 # preloaded symbol tables.
6007 extract_expsyms_cmds=
6008
6009 case $host_os in
6010 cygwin* | mingw* | pw32*)
6011 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6012 # When not using gcc, we currently assume that we are using
6013 # Microsoft Visual C++.
6014 if test "$GCC" != yes; then
6015 with_gnu_ld=no
6016 fi
6017 ;;
6018 openbsd*)
6019 with_gnu_ld=no
6020 ;;
6021 esac
6022
6023 ld_shlibs=yes
6024 if test "$with_gnu_ld" = yes; then
6025 # If archive_cmds runs LD, not CC, wlarc should be empty
6026 wlarc='${wl}'
6027
6028 # See if GNU ld supports shared libraries.
6029 case $host_os in
6030 aix3* | aix4* | aix5*)
6031 # On AIX/PPC, the GNU linker is very broken
6032 if test "$host_cpu" != ia64; then
6033 ld_shlibs=no
6034 cat <<EOF 1>&2
6035
6036*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6037*** to be unable to reliably create shared libraries on AIX.
6038*** Therefore, libtool is disabling shared libraries support. If you
6039*** really care for shared libraries, you may want to modify your PATH
6040*** so that a non-GNU linker is found, and then restart.
6041
6042EOF
6043 fi
6044 ;;
6045
6046 amigaos*)
6047 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)'
6048 hardcode_libdir_flag_spec='-L$libdir'
6049 hardcode_minus_L=yes
6050
6051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6052 # that the semantics of dynamic libraries on AmigaOS, at least up
6053 # to version 4, is to share data among multiple programs linked
6054 # with the same dynamic library. Since this doesn't match the
6055 # behavior of shared libraries on other platforms, we can't use
6056 # them.
6057 ld_shlibs=no
6058 ;;
6059
6060 beos*)
6061 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6062 allow_undefined_flag=unsupported
6063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6064 # support --undefined. This deserves some investigation. FIXME
6065 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6066 else
6067 ld_shlibs=no
6068 fi
6069 ;;
6070
6071 cygwin*)
6072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6073 # as there is no search path for DLLs.
6074 hardcode_libdir_flag_spec='-L$libdir'
6075 allow_undefined_flag=
6076 always_export_symbols=yes
6077
6078 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
6079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
6081 else
6082 ld_shlibs=no
6083 fi
6084 ;;
6085
6086 mingw* | pw32*)
6087 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6088 # no search path for DLLs.
6089 hardcode_libdir_flag_spec='-L$libdir'
6090 allow_undefined_flag=unsupported
6091 always_export_symbols=yes
6092
6093 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6094 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6095 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6096 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6097 else $CC -o impgen impgen.c ; fi)~
6098 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6099
6100 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6101
6102 # FIXME: what about values for MSVC?
6103 dll_entry=__cygwin_dll_entry@12
6104 case $host_os in
6105 mingw*)
6106 # mingw values
6107 dll_entry=_DllMainCRTStartup@12
6108 ;;
6109 esac
6110
6111 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6112
6113 # recent cygwin and mingw systems supply a stub DllMain which the user
6114 # can override, but on older systems we have to supply one (in ltdll.c)
6115 if test "x$lt_cv_need_dllmain" = "xyes"; then
6116 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6117 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~
6118 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6119 else
6120 ltdll_obj=
6121 ltdll_cmds=
6122 fi
6123
6124 # Extract the symbol export list from an `--export-all' def file,
6125 # then regenerate the def file from the symbol export list, so that
6126 # the compiled dll only exports the symbol export list.
6127 # Be careful not to strip the DATA tag left by newer dlltools.
6128 export_symbols_cmds="$ltdll_cmds"'
6129 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6130 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6131
6132 # If the export-symbols file already is a .def file (1st line
6133 # is EXPORTS), use it as is.
6134 # If DATA tags from a recent dlltool are present, honour them!
6135 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6136 cp $export_symbols $output_objdir/$soname-def;
6137 else
6138 echo EXPORTS > $output_objdir/$soname-def;
6139 _lt_hint=1;
6140 cat $export_symbols | while read symbol; do
6141 set dummy \$symbol;
6142 case \$# in
6143 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6144 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6145 esac;
6146 _lt_hint=`expr 1 + \$_lt_hint`;
6147 done;
6148 fi~
6149 '"$ltdll_cmds"'
6150 $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~
6151 $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~
6152 $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~
6153 $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~
6154 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6155 ;;
6156
6157 netbsd*)
6158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6159 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6160 wlarc=
6161 else
6162 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6163 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6164 fi
6165 ;;
6166
6167 solaris* | sysv5*)
6168 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6169 ld_shlibs=no
6170 cat <<EOF 1>&2
6171
6172*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6173*** create shared libraries on Solaris systems. Therefore, libtool
6174*** is disabling shared libraries support. We urge you to upgrade GNU
6175*** binutils to release 2.9.1 or newer. Another option is to modify
6176*** your PATH or compiler configuration so that the native linker is
6177*** used, and then restart.
6178
6179EOF
6180 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6183 else
6184 ld_shlibs=no
6185 fi
6186 ;;
6187
6188 sunos4*)
6189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6190 wlarc=
6191 hardcode_direct=yes
6192 hardcode_shlibpath_var=no
6193 ;;
6194
6195 *)
6196 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6199 else
6200 ld_shlibs=no
6201 fi
6202 ;;
6203 esac
6204
6205 if test "$ld_shlibs" = yes; then
6206 runpath_var=LD_RUN_PATH
6207 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6208 export_dynamic_flag_spec='${wl}--export-dynamic'
6209 case $host_os in
6210 cygwin* | mingw* | pw32*)
6211 # dlltool doesn't understand --whole-archive et. al.
6212 whole_archive_flag_spec=
6213 ;;
6214 *)
6215 # ancient GNU ld didn't support --whole-archive et. al.
6216 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6217 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6218 else
6219 whole_archive_flag_spec=
6220 fi
6221 ;;
6222 esac
6223 fi
6224 else
6225 # PORTME fill in a description of your system's linker (not GNU ld)
6226 case $host_os in
6227 aix3*)
6228 allow_undefined_flag=unsupported
6229 always_export_symbols=yes
6230 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'
6231 # Note: this linker hardcodes the directories in LIBPATH if there
6232 # are no directories specified by -L.
6233 hardcode_minus_L=yes
6234 if test "$GCC" = yes && test -z "$link_static_flag"; then
6235 # Neither direct hardcoding nor static linking is supported with a
6236 # broken collect2.
6237 hardcode_direct=unsupported
6238 fi
6239 ;;
6240
6241 aix4* | aix5*)
6242 if test "$host_cpu" = ia64; then
6243 # On IA64, the linker does run time linking by default, so we don't
6244 # have to do anything special.
6245 aix_use_runtimelinking=no
6246 exp_sym_flag='-Bexport'
6247 no_entry_flag=""
6248 else
6249 # If we're using GNU nm, then we don't want the "-C" option.
6250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6251 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
6252 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6253 else
6254 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6255 fi
6256 aix_use_runtimelinking=no
6257
6258 # Test if we are trying to use run time linking or normal
6259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6260 # need to do runtime linking.
6261 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6262 for ld_flag in $LDFLAGS; do
6263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6264 aix_use_runtimelinking=yes
6265 break
6266 fi
6267 done
6268 esac
6269
6270 exp_sym_flag='-bexport'
6271 no_entry_flag='-bnoentry'
6272 fi
6273
6274 # When large executables or shared objects are built, AIX ld can
6275 # have problems creating the table of contents. If linking a library
6276 # or program results in "error TOC overflow" add -mminimal-toc to
6277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6279
6280 archive_cmds=''
6281 hardcode_direct=yes
6282 hardcode_libdir_separator=':'
6283 link_all_deplibs=yes
6284
6285 if test "$GCC" = yes; then
6286 case $host_os in aix4.012|aix4.012.*)
6287 # We only want to do this on AIX 4.2 and lower, the check
6288 # below for broken collect2 doesn't work under 4.3+
6289 collect2name=`${CC} -print-prog-name=collect2`
6290 if test -f "$collect2name" && \
6291 strings "$collect2name" | grep resolve_lib_name >/dev/null
6292 then
6293 # We have reworked collect2
6294 hardcode_direct=yes
6295 else
6296 # We have old collect2
6297 hardcode_direct=unsupported
6298 # It fails to find uninstalled libraries when the uninstalled
6299 # path is not listed in the libpath. Setting hardcode_minus_L
6300 # to unsupported forces relinking
6301 hardcode_minus_L=yes
6302 hardcode_libdir_flag_spec='-L$libdir'
6303 hardcode_libdir_separator=
6304 fi
6305 esac
6306 shared_flag='-shared'
6307 else
6308 # not using gcc
6309 if test "$host_cpu" = ia64; then
6310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6311 # chokes on -Wl,-G. The following line is correct:
6312 shared_flag='-G'
6313 else
6314 if test "$aix_use_runtimelinking" = yes; then
6315 shared_flag='${wl}-G'
6316 else
6317 shared_flag='${wl}-bM:SRE'
6318 fi
6319 fi
6320 fi
6321
6322 # It seems that -bexpall does not export symbols beginning with
6323 # underscore (_), so it is better to generate a list of symbols to export.
6324 always_export_symbols=yes
6325 if test "$aix_use_runtimelinking" = yes; then
6326 # Warning - without using the other runtime loading flags (-brtl),
6327 # -berok will link without error, but may produce a broken library.
6328 allow_undefined_flag='-berok'
6329 # Determine the default libpath from the value encoded in an empty executable.
6330 cat >conftest.$ac_ext <<_ACEOF
6331#line $LINENO "configure"
6332#include "confdefs.h"
6333
6334#ifdef F77_DUMMY_MAIN
6335# ifdef __cplusplus
6336 extern "C"
6337# endif
6338 int F77_DUMMY_MAIN() { return 1; }
6339#endif
6340int
6341main ()
6342{
6343
6344 ;
6345 return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext conftest$ac_exeext
6349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6350 (eval $ac_link) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360
6361aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6362}'`
6363# Check for a 64-bit object if we didn't find anything.
6364if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6365}'`; fi
6366else
6367 echo "$as_me: failed program was:" >&5
6368cat conftest.$ac_ext >&5
6369fi
6370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6372
6373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6374 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"
6375 else
6376 if test "$host_cpu" = ia64; then
6377 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6378 allow_undefined_flag="-z nodefs"
6379 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"
6380 else
6381 # Determine the default libpath from the value encoded in an empty executable.
6382 cat >conftest.$ac_ext <<_ACEOF
6383#line $LINENO "configure"
6384#include "confdefs.h"
6385
6386#ifdef F77_DUMMY_MAIN
6387# ifdef __cplusplus
6388 extern "C"
6389# endif
6390 int F77_DUMMY_MAIN() { return 1; }
6391#endif
6392int
6393main ()
6394{
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
6400rm -f conftest.$ac_objext conftest$ac_exeext
6401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6402 (eval $ac_link) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -s conftest$ac_exeext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412
6413aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6414}'`
6415# Check for a 64-bit object if we didn't find anything.
6416if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6417}'`; fi
6418else
6419 echo "$as_me: failed program was:" >&5
6420cat conftest.$ac_ext >&5
6421fi
6422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6423if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6424
6425 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6426 # Warning - without using the other run time loading flags,
6427 # -berok will link without error, but may produce a broken library.
6428 no_undefined_flag=' ${wl}-bernotok'
6429 allow_undefined_flag=' ${wl}-berok'
6430 # -bexpall does not export symbols beginning with underscore (_)
6431 always_export_symbols=yes
6432 # Exported symbols can be pulled into shared objects from archives
6433 whole_archive_flag_spec=' '
6434 archive_cmds_need_lc=yes
6435 # This is similar to how AIX traditionally builds it's shared libraries.
6436 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'
6437 fi
6438 fi
6439 ;;
6440
6441 amigaos*)
6442 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)'
6443 hardcode_libdir_flag_spec='-L$libdir'
6444 hardcode_minus_L=yes
6445 # see comment about different semantics on the GNU ld section
6446 ld_shlibs=no
6447 ;;
6448
6449 bsdi4*)
6450 export_dynamic_flag_spec=-rdynamic
6451 ;;
6452
6453 cygwin* | mingw* | pw32*)
6454 # When not using gcc, we currently assume that we are using
6455 # Microsoft Visual C++.
6456 # hardcode_libdir_flag_spec is actually meaningless, as there is
6457 # no search path for DLLs.
6458 hardcode_libdir_flag_spec=' '
6459 allow_undefined_flag=unsupported
6460 # Tell ltmain to make .lib files, not .a files.
6461 libext=lib
6462 # FIXME: Setting linknames here is a bad hack.
6463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6464 # The linker will automatically build a .lib file if we build a DLL.
6465 old_archive_From_new_cmds='true'
6466 # FIXME: Should let the user specify the lib program.
6467 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6468 fix_srcfile_path='`cygpath -w "$srcfile"`'
6469 ;;
6470
6471 darwin* | rhapsody*)
6472 case "$host_os" in
6473 rhapsody* | darwin1.[012])
6474 allow_undefined_flag='-undefined suppress'
6475 ;;
6476 *) # Darwin 1.3 on
6477 allow_undefined_flag='-flat_namespace -undefined suppress'
6478 ;;
6479 esac
6480
6481 # FIXME: Relying on posixy $() will cause problems for
6482 # cross-compilation, but unfortunately the echo tests do not
6483 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6484 # `"' quotes if we put them in here... so don't!
6485 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6486 # We need to add '_' to the symbols in $export_symbols first
6487 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6488 hardcode_direct=yes
6489 hardcode_shlibpath_var=no
6490 whole_archive_flag_spec='-all_load $convenience'
6491 ;;
6492
6493 dgux*)
6494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6495 hardcode_libdir_flag_spec='-L$libdir'
6496 hardcode_shlibpath_var=no
6497 ;;
6498
6499 freebsd1*)
6500 ld_shlibs=no
6501 ;;
6502
6503 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6504 # support. Future versions do this automatically, but an explicit c++rt0.o
6505 # does not break anything, and helps significantly (at the cost of a little
6506 # extra space).
6507 freebsd2.2*)
6508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6509 hardcode_libdir_flag_spec='-R$libdir'
6510 hardcode_direct=yes
6511 hardcode_shlibpath_var=no
6512 ;;
6513
6514 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6515 freebsd2*)
6516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6517 hardcode_direct=yes
6518 hardcode_minus_L=yes
6519 hardcode_shlibpath_var=no
6520 ;;
6521
6522 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6523 freebsd*)
6524 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6525 hardcode_libdir_flag_spec='-R$libdir'
6526 hardcode_direct=yes
6527 hardcode_shlibpath_var=no
6528 ;;
6529
6530 hpux9* | hpux10* | hpux11*)
6531 if test "$GCC" = yes; then
6532 case $host_os in
6533 hpux9*)
6534 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'
6535 ;;
6536 *)
6537 if test "$host_cpu" = ia64; then
6538 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6539 else
6540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6541 fi
6542 ;;
6543 esac
6544 else
6545 case $host_os in
6546 hpux9*)
6547 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'
6548 ;;
6549 *)
6550 if test "$host_cpu" = ia64; then
6551 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6552 else
6553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6554 fi
6555 ;;
6556 esac
6557 fi
6558 if test "$host_cpu" = ia64; then
6559 hardcode_libdir_flag_spec='-L$libdir'
6560 hardcode_direct=no
6561 hardcode_shlibpath_var=no
6562 else
6563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6564 hardcode_libdir_separator=:
6565 hardcode_direct=yes
6566 fi
6567 # hardcode_minus_L: Not really in the search PATH,
6568 # but as the default location of the library.
6569 hardcode_minus_L=yes
6570 export_dynamic_flag_spec='${wl}-E'
6571 ;;
6572
6573 irix5* | irix6* | nonstopux*)
6574 if test "$GCC" = yes; then
6575 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'
6576 else
6577 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'
6578 fi
6579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6580 hardcode_libdir_separator=:
6581 link_all_deplibs=yes
6582 ;;
6583
6584 netbsd*)
6585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6587 else
6588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6589 fi
6590 hardcode_libdir_flag_spec='-R$libdir'
6591 hardcode_direct=yes
6592 hardcode_shlibpath_var=no
6593 ;;
6594
6595 newsos6)
6596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6597 hardcode_direct=yes
6598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6599 hardcode_libdir_separator=:
6600 hardcode_shlibpath_var=no
6601 ;;
6602
6603 openbsd*)
6604 hardcode_direct=yes
6605 hardcode_shlibpath_var=no
6606
6607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6610 export_dynamic_flag_spec='${wl}-E'
6611 else
6612 case $host_os in
6613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6615 hardcode_libdir_flag_spec='-R$libdir'
6616 ;;
6617 *)
6618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6620 ;;
6621 esac
6622 fi
6623 ;;
6624
6625 os2*)
6626 hardcode_libdir_flag_spec='-L$libdir'
6627 hardcode_minus_L=yes
6628 allow_undefined_flag=unsupported
6629 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'
6630 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6631 ;;
6632
6633 osf3*)
6634 if test "$GCC" = yes; then
6635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6636 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'
6637 else
6638 allow_undefined_flag=' -expect_unresolved \*'
6639 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'
6640 fi
6641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6642 hardcode_libdir_separator=:
6643 ;;
6644
6645 osf4* | osf5*) # as osf3* with the addition of -msym flag
6646 if test "$GCC" = yes; then
6647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6648 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'
6649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6650 else
6651 allow_undefined_flag=' -expect_unresolved \*'
6652 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'
6653 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6654 $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'
6655
6656 # Both c and cxx compiler support -rpath directly
6657 hardcode_libdir_flag_spec='-rpath $libdir'
6658 fi
6659 hardcode_libdir_separator=:
6660 ;;
6661
6662 sco3.2v5*)
6663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6664 hardcode_shlibpath_var=no
6665 export_dynamic_flag_spec='${wl}-Bexport'
6666 runpath_var=LD_RUN_PATH
6667 hardcode_runpath_var=yes
6668 ;;
6669
6670 solaris*)
6671 no_undefined_flag=' -z text'
6672 if test "$GCC" = yes; then
6673 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6674 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6675 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6676 else
6677 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6680 fi
6681 hardcode_libdir_flag_spec='-R$libdir'
6682 hardcode_shlibpath_var=no
6683 case $host_os in
6684 solaris2.[0-5] | solaris2.[0-5].*) ;;
6685 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6686 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6687 esac
6688 link_all_deplibs=yes
6689 ;;
6690
6691 sunos4*)
6692 if test "x$host_vendor" = xsequent; then
6693 # Use $CC to link under sequent, because it throws in some extra .o
6694 # files that make .init and .fini sections work.
6695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6696 else
6697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6698 fi
6699 hardcode_libdir_flag_spec='-L$libdir'
6700 hardcode_direct=yes
6701 hardcode_minus_L=yes
6702 hardcode_shlibpath_var=no
6703 ;;
6704
6705 sysv4)
6706 if test "x$host_vendor" = xsni; then
6707 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6708 hardcode_direct=yes # is this really true???
6709 else
6710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6711 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6712 fi
6713 runpath_var='LD_RUN_PATH'
6714 hardcode_shlibpath_var=no
6715 ;;
6716
6717 sysv4.3*)
6718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6719 hardcode_shlibpath_var=no
6720 export_dynamic_flag_spec='-Bexport'
6721 ;;
6722
6723 sysv4*MP*)
6724 if test -d /usr/nec; then
6725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6726 hardcode_shlibpath_var=no
6727 runpath_var=LD_RUN_PATH
6728 hardcode_runpath_var=yes
6729 ld_shlibs=yes
6730 fi
6731 ;;
6732
6733 sysv4.2uw2*)
6734 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6735 hardcode_direct=yes
6736 hardcode_minus_L=no
6737 hardcode_shlibpath_var=no
6738 hardcode_runpath_var=yes
6739 runpath_var=LD_RUN_PATH
6740 ;;
6741
6742 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6743 no_undefined_flag='${wl}-z ${wl}text'
6744 if test "$GCC" = yes; then
6745 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6746 else
6747 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6748 fi
6749 runpath_var='LD_RUN_PATH'
6750 hardcode_shlibpath_var=no
6751 ;;
6752
6753 sysv5*)
6754 no_undefined_flag=' -z text'
6755 # $CC -shared without GNU ld will not create a library from C++
6756 # object files and a static libstdc++, better avoid it by now
6757 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6758 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6760 hardcode_libdir_flag_spec=
6761 hardcode_shlibpath_var=no
6762 runpath_var='LD_RUN_PATH'
6763 ;;
6764
6765 uts4*)
6766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6767 hardcode_libdir_flag_spec='-L$libdir'
6768 hardcode_shlibpath_var=no
6769 ;;
6770
6771 *)
6772 ld_shlibs=no
6773 ;;
6774 esac
6775 fi
6776
6777echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6778echo "${ECHO_T}$ld_shlibs" >&6
6779test "$ld_shlibs" = no && can_build_shared=no
6780
6781variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6782if test "$GCC" = yes; then
6783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6784fi
6785
6786#
6787# Do we need to explicitly link libc?
6788#
6789archive_cmds_need_lc=yes
6790if test "$enable_shared" = yes && test "$GCC" = yes; then
6791 case $archive_cmds in
6792 *'~'*)
6793 # FIXME: we may have to deal with multi-command sequences.
6794 ;;
6795 '$CC '*)
6796 # Test whether the compiler implicitly links with -lc since on some
6797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6798 # to ld, don't add -lc before -lgcc.
6799 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6800echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6801 $rm conftest*
6802 echo 'static int dummy;' > conftest.$ac_ext
6803
6804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6805 (eval $ac_compile) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } 2>conftest.err; then
6809 soname=conftest
6810 lib=conftest
6811 libobjs=conftest.$ac_objext
6812 deplibs=
6813 wl=$lt_prog_compiler_wl
6814 compiler_flags=-v
6815 linker_flags=-v
6816 verstring=
6817 output_objdir=.
6818 libname=conftest
6819 lt_save_allow_undefined_flag=$allow_undefined_flag
6820 allow_undefined_flag=
6821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6822 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }
6826 then
6827 archive_cmds_need_lc=no
6828 else
6829 archive_cmds_need_lc=yes
6830 fi
6831 allow_undefined_flag=$lt_save_allow_undefined_flag
6832 else
6833 cat conftest.err 1>&5
6834 fi
6835 $rm conftest*
6836 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6837echo "${ECHO_T}$archive_cmds_need_lc" >&6
6838 ;;
6839 esac
6840fi
6841
6842echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6843echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6844hardcode_action=
6845if test -n "$hardcode_libdir_flag_spec" || \
6846 test -n "$runpath_var "; then
6847
6848 # We can hardcode non-existant directories.
6849 if test "$hardcode_direct" != no &&
6850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6851 # have to relink, otherwise we might link with an installed library
6852 # when we should be linking with a yet-to-be-installed one
6853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6854 test "$hardcode_minus_L" != no; then
6855 # Linking always hardcodes the temporary library directory.
6856 hardcode_action=relink
6857 else
6858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6859 hardcode_action=immediate
6860 fi
6861else
6862 # We cannot hardcode anything, or else we can only hardcode existing
6863 # directories.
6864 hardcode_action=unsupported
6865fi
6866echo "$as_me:$LINENO: result: $hardcode_action" >&5
6867echo "${ECHO_T}$hardcode_action" >&6
6868
6869if test "$hardcode_action" = relink; then
6870 # Fast installation is not supported
6871 enable_fast_install=no
6872elif test "$shlibpath_overrides_runpath" = yes ||
6873 test "$enable_shared" = no; then
6874 # Fast installation is not necessary
6875 enable_fast_install=needless
6876fi
6877
6878striplib=
6879old_striplib=
6880echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6881echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6882if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6885 echo "$as_me:$LINENO: result: yes" >&5
6886echo "${ECHO_T}yes" >&6
6887else
6888 echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6
6890fi
6891
6892echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6893echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6894library_names_spec=
6895libname_spec='lib$name'
6896soname_spec=
6897postinstall_cmds=
6898postuninstall_cmds=
6899finish_cmds=
6900finish_eval=
6901shlibpath_var=
6902shlibpath_overrides_runpath=unknown
6903version_type=none
6904dynamic_linker="$host_os ld.so"
6905sys_lib_dlsearch_path_spec="/lib /usr/lib"
6906if test "$GCC" = yes; then
6907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
6908 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
6909 # if the path contains ";" then we assume it to be the separator
6910 # otherwise default to the standard path separator (i.e. ":") - it is
6911 # assumed that no part of a normal pathname contains ";" but that should
6912 # okay in the real world where ";" in dirpaths is itself problematic.
6913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6914 else
6915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6916 fi
6917else
6918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6919fi
6920need_lib_prefix=unknown
6921hardcode_into_libs=no
6922
6923# when you set need_version to no, make sure it does not cause -set_version
6924# flags to be left without arguments
6925need_version=unknown
6926
6927case $host_os in
6928aix3*)
6929 version_type=linux
6930 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6931 shlibpath_var=LIBPATH
6932
6933 # AIX 3 has no versioning support, so we append a major version to the name.
6934 soname_spec='${libname}${release}.so$major'
6935 ;;
6936
6937aix4* | aix5*)
6938 version_type=linux
6939 if test "$host_cpu" = ia64; then
6940 # AIX 5 supports IA64
6941 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6942 shlibpath_var=LD_LIBRARY_PATH
6943 else
6944 # With GCC up to 2.95.x, collect2 would create an import file
6945 # for dependence libraries. The import file would start with
6946 # the line `#! .'. This would cause the generated library to
6947 # depend on `.', always an invalid library. This was fixed in
6948 # development snapshots of GCC prior to 3.0.
6949 case $host_os in
6950 aix4 | aix4.[01] | aix4.[01].*)
6951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6952 echo ' yes '
6953 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6954 :
6955 else
6956 can_build_shared=no
6957 fi
6958 ;;
6959 esac
6960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6961 # soname into executable. Probably we can add versioning support to
6962 # collect2, so additional links can be useful in future.
6963 if test "$aix_use_runtimelinking" = yes; then
6964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6965 # instead of lib<name>.a to let people know that these are not
6966 # typical AIX shared libraries.
6967 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6968 else
6969 # We preserve .a as extension for shared libraries through AIX4.2
6970 # and later when we are not doing run time linking.
6971 library_names_spec='${libname}${release}.a $libname.a'
6972 soname_spec='${libname}${release}.so$major'
6973 fi
6974 shlibpath_var=LIBPATH
6975 fi
6976 ;;
6977
6978amigaos*)
6979 library_names_spec='$libname.ixlibrary $libname.a'
6980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6981 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'
6982 ;;
6983
6984beos*)
6985 library_names_spec='${libname}.so'
6986 dynamic_linker="$host_os ld.so"
6987 shlibpath_var=LIBRARY_PATH
6988 ;;
6989
6990bsdi4*)
6991 version_type=linux
6992 need_version=no
6993 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6994 soname_spec='${libname}${release}.so$major'
6995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6996 shlibpath_var=LD_LIBRARY_PATH
6997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6999 # the default ld.so.conf also contains /usr/contrib/lib and
7000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7001 # libtool to hard-code these into programs
7002 ;;
7003
7004cygwin* | mingw* | pw32*)
7005 version_type=windows
7006 need_version=no
7007 need_lib_prefix=no
7008 case $GCC,$host_os in
7009 yes,cygwin*)
7010 library_names_spec='$libname.dll.a'
7011 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7012 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7013 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7014 dldir=$destdir/`dirname \$dlpath`~
7015 test -d \$dldir || mkdir -p \$dldir~
7016 $install_prog .libs/$dlname \$dldir/$dlname'
7017 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7018 dlpath=$dir/\$dldll~
7019 $rm \$dlpath'
7020 shlibpath_overrides_runpath=yes
7021 ;;
7022 yes,mingw*)
7023 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7025 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
7026 # It is most probably a Windows format PATH printed by
7027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7028 # path with ; separators, and with drive letters. We can handle the
7029 # drive letters (cygwin fileutils understands them), so leave them,
7030 # especially as we might pass files found there to a mingw objdump,
7031 # which wouldn't understand a cygwinified path. Ahh.
7032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7033 else
7034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7035 fi
7036 ;;
7037 yes,pw32*)
7038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7039 ;;
7040 *)
7041 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7042 ;;
7043 esac
7044 dynamic_linker='Win32 ld.exe'
7045 # FIXME: first we should search . and the directory the executable is in
7046 shlibpath_var=PATH
7047 ;;
7048
7049darwin* | rhapsody*)
7050 dynamic_linker="$host_os dyld"
7051 version_type=darwin
7052 need_lib_prefix=no
7053 need_version=no
7054 # FIXME: Relying on posixy $() will cause problems for
7055 # cross-compilation, but unfortunately the echo tests do not
7056 # yet detect zsh echo's removal of \ escapes.
7057 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)'
7058 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7059 shlibpath_overrides_runpath=yes
7060 shlibpath_var=DYLD_LIBRARY_PATH
7061 ;;
7062
7063dgux*)
7064 version_type=linux
7065 need_lib_prefix=no
7066 need_version=no
7067 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7068 soname_spec='${libname}${release}.so$major'
7069 shlibpath_var=LD_LIBRARY_PATH
7070 ;;
7071
7072freebsd1*)
7073 dynamic_linker=no
7074 ;;
7075
7076freebsd*)
7077 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7078 version_type=freebsd-$objformat
7079 case $version_type in
7080 freebsd-elf*)
7081 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7082 need_version=no
7083 need_lib_prefix=no
7084 ;;
7085 freebsd-*)
7086 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7087 need_version=yes
7088 ;;
7089 esac
7090 shlibpath_var=LD_LIBRARY_PATH
7091 case $host_os in
7092 freebsd2*)
7093 shlibpath_overrides_runpath=yes
7094 ;;
7095 freebsd3.01* | freebsdelf3.01*)
7096 shlibpath_overrides_runpath=yes
7097 hardcode_into_libs=yes
7098 ;;
7099 *) # from 3.2 on
7100 shlibpath_overrides_runpath=no
7101 hardcode_into_libs=yes
7102 ;;
7103 esac
7104 ;;
7105
7106gnu*)
7107 version_type=linux
7108 need_lib_prefix=no
7109 need_version=no
7110 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7111 soname_spec='${libname}${release}.so$major'
7112 shlibpath_var=LD_LIBRARY_PATH
7113 hardcode_into_libs=yes
7114 ;;
7115
7116hpux9* | hpux10* | hpux11*)
7117 # Give a soname corresponding to the major version so that dld.sl refuses to
7118 # link against other versions.
7119 version_type=sunos
7120 need_lib_prefix=no
7121 need_version=no
7122 if test "$host_cpu" = ia64; then
7123 hardcode_into_libs=yes
7124 dynamic_linker="$host_os dld.so"
7125 shlibpath_var=LD_LIBRARY_PATH
7126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7127 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7128 soname_spec='${libname}${release}.so$major'
7129 if test "X$HPUX_IA64_MODE" = X32; then
7130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7131 else
7132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7133 fi
7134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7135 else
7136 dynamic_linker="$host_os dld.sl"
7137 shlibpath_var=SHLIB_PATH
7138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7139 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7140 soname_spec='${libname}${release}.sl$major'
7141 fi
7142 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7143 postinstall_cmds='chmod 555 $lib'
7144 ;;
7145
7146irix5* | irix6* | nonstopux*)
7147 case $host_os in
7148 nonstopux*) version_type=nonstopux ;;
7149 *) version_type=irix ;;
7150 esac
7151 need_lib_prefix=no
7152 need_version=no
7153 soname_spec='${libname}${release}.so$major'
7154 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7155 case $host_os in
7156 irix5* | nonstopux*)
7157 libsuff= shlibsuff=
7158 ;;
7159 *)
7160 case $LD in # libtool.m4 will add one of these switches to LD
7161 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7162 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7163 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7164 *) libsuff= shlibsuff= libmagic=never-match;;
7165 esac
7166 ;;
7167 esac
7168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7169 shlibpath_overrides_runpath=no
7170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7172 ;;
7173
7174# No shared lib support for Linux oldld, aout, or coff.
7175linux*oldld* | linux*aout* | linux*coff*)
7176 dynamic_linker=no
7177 ;;
7178
7179# This must be Linux ELF.
7180linux*)
7181 version_type=linux
7182 need_lib_prefix=no
7183 need_version=no
7184 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7185 soname_spec='${libname}${release}.so$major'
7186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7187 shlibpath_var=LD_LIBRARY_PATH
7188 shlibpath_overrides_runpath=no
7189 # This implies no fast_install, which is unacceptable.
7190 # Some rework will be needed to allow for fast_install
7191 # before this can be enabled.
7192 hardcode_into_libs=yes
7193
7194 # We used to test for /lib/ld.so.1 and disable shared libraries on
7195 # powerpc, because MkLinux only supported shared libraries with the
7196 # GNU dynamic linker. Since this was broken with cross compilers,
7197 # most powerpc-linux boxes support dynamic linking these days and
7198 # people can always --disable-shared, the test was removed, and we
7199 # assume the GNU/Linux dynamic linker is in use.
7200 dynamic_linker='GNU/Linux ld.so'
7201 ;;
7202
7203netbsd*)
7204 version_type=sunos
7205 need_lib_prefix=no
7206 need_version=no
7207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7208 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7210 dynamic_linker='NetBSD (a.out) ld.so'
7211 else
7212 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7213 soname_spec='${libname}${release}.so$major'
7214 dynamic_linker='NetBSD ld.elf_so'
7215 fi
7216 shlibpath_var=LD_LIBRARY_PATH
7217 shlibpath_overrides_runpath=yes
7218 hardcode_into_libs=yes
7219 ;;
7220
7221newsos6)
7222 version_type=linux
7223 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 shlibpath_overrides_runpath=yes
7226 ;;
7227
7228nto-qnx)
7229 version_type=linux
7230 need_lib_prefix=no
7231 need_version=no
7232 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7233 soname_spec='${libname}${release}.so$major'
7234 shlibpath_var=LD_LIBRARY_PATH
7235 shlibpath_overrides_runpath=yes
7236 ;;
7237
7238openbsd*)
7239 version_type=sunos
7240 need_lib_prefix=no
7241 need_version=no
7242 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7244 shlibpath_var=LD_LIBRARY_PATH
7245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7246 case $host_os in
7247 openbsd2.[89] | openbsd2.[89].*)
7248 shlibpath_overrides_runpath=no
7249 ;;
7250 *)
7251 shlibpath_overrides_runpath=yes
7252 ;;
7253 esac
7254 else
7255 shlibpath_overrides_runpath=yes
7256 fi
7257 ;;
7258
7259os2*)
7260 libname_spec='$name'
7261 need_lib_prefix=no
7262 library_names_spec='$libname.dll $libname.a'
7263 dynamic_linker='OS/2 ld.exe'
7264 shlibpath_var=LIBPATH
7265 ;;
7266
7267osf3* | osf4* | osf5*)
7268 version_type=osf
7269 need_lib_prefix=no
7270 need_version=no
7271 soname_spec='${libname}${release}.so'
7272 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7273 shlibpath_var=LD_LIBRARY_PATH
7274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7276 ;;
7277
7278sco3.2v5*)
7279 version_type=osf
7280 soname_spec='${libname}${release}.so$major'
7281 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7282 shlibpath_var=LD_LIBRARY_PATH
7283 ;;
7284
7285solaris*)
7286 version_type=linux
7287 need_lib_prefix=no
7288 need_version=no
7289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7290 soname_spec='${libname}${release}.so$major'
7291 shlibpath_var=LD_LIBRARY_PATH
7292 shlibpath_overrides_runpath=yes
7293 hardcode_into_libs=yes
7294 # ldd complains unless libraries are executable
7295 postinstall_cmds='chmod +x $lib'
7296 ;;
7297
7298sunos4*)
7299 version_type=sunos
7300 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7302 shlibpath_var=LD_LIBRARY_PATH
7303 shlibpath_overrides_runpath=yes
7304 if test "$with_gnu_ld" = yes; then
7305 need_lib_prefix=no
7306 fi
7307 need_version=yes
7308 ;;
7309
7310sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7311 version_type=linux
7312 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7313 soname_spec='${libname}${release}.so$major'
7314 shlibpath_var=LD_LIBRARY_PATH
7315 case $host_vendor in
7316 sni)
7317 shlibpath_overrides_runpath=no
7318 ;;
7319 motorola)
7320 need_lib_prefix=no
7321 need_version=no
7322 shlibpath_overrides_runpath=no
7323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7324 ;;
7325 esac
7326 ;;
7327
7328sysv4*MP*)
7329 if test -d /usr/nec ;then
7330 version_type=linux
7331 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7332 soname_spec='$libname.so.$major'
7333 shlibpath_var=LD_LIBRARY_PATH
7334 fi
7335 ;;
7336
7337uts4*)
7338 version_type=linux
7339 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7340 soname_spec='${libname}${release}.so$major'
7341 shlibpath_var=LD_LIBRARY_PATH
7342 ;;
7343
7344*)
7345 dynamic_linker=no
7346 ;;
7347esac
7348echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7349echo "${ECHO_T}$dynamic_linker" >&6
7350test "$dynamic_linker" = no && can_build_shared=no
7351
7352if test "x$enable_dlopen" != xyes; then
7353 enable_dlopen=unknown
7354 enable_dlopen_self=unknown
7355 enable_dlopen_self_static=unknown
7356else
7357 lt_cv_dlopen=no
7358 lt_cv_dlopen_libs=
7359
7360 case $host_os in
7361 beos*)
7362 lt_cv_dlopen="load_add_on"
7363 lt_cv_dlopen_libs=
7364 lt_cv_dlopen_self=yes
7365 ;;
7366
7367 cygwin* | mingw* | pw32*)
7368 lt_cv_dlopen="LoadLibrary"
7369 lt_cv_dlopen_libs=
7370 ;;
7371
7372 *)
7373 echo "$as_me:$LINENO: checking for shl_load" >&5
7374echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7375if test "${ac_cv_func_shl_load+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378 cat >conftest.$ac_ext <<_ACEOF
7379#line $LINENO "configure"
7380#include "confdefs.h"
7381/* System header to define __stub macros and hopefully few prototypes,
7382 which can conflict with char shl_load (); below. */
7383#include <assert.h>
7384/* Override any gcc2 internal prototype to avoid an error. */
7385#ifdef __cplusplus
7386extern "C"
7387#endif
7388/* We use char because int might match the return type of a gcc2
7389 builtin and then its argument prototype would still apply. */
7390char shl_load ();
7391char (*f) ();
7392
7393#ifdef F77_DUMMY_MAIN
7394# ifdef __cplusplus
7395 extern "C"
7396# endif
7397 int F77_DUMMY_MAIN() { return 1; }
7398#endif
7399int
7400main ()
7401{
7402/* The GNU C library defines this for functions which it implements
7403 to always fail with ENOSYS. Some functions are actually named
7404 something starting with __ and the normal name is an alias. */
7405#if defined (__stub_shl_load) || defined (__stub___shl_load)
7406choke me
7407#else
7408f = shl_load;
7409#endif
7410
7411 ;
7412 return 0;
7413}
7414_ACEOF
7415rm -f conftest.$ac_objext conftest$ac_exeext
7416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7417 (eval $ac_link) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } &&
7421 { ac_try='test -s conftest$ac_exeext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_cv_func_shl_load=yes
7428else
7429 echo "$as_me: failed program was:" >&5
7430cat conftest.$ac_ext >&5
7431ac_cv_func_shl_load=no
7432fi
7433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7434fi
7435echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7436echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7437if test $ac_cv_func_shl_load = yes; then
7438 lt_cv_dlopen="shl_load"
7439else
7440 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7441echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7442if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445 ac_check_lib_save_LIBS=$LIBS
7446LIBS="-ldld $LIBS"
7447cat >conftest.$ac_ext <<_ACEOF
7448#line $LINENO "configure"
7449#include "confdefs.h"
7450
7451/* Override any gcc2 internal prototype to avoid an error. */
7452#ifdef __cplusplus
7453extern "C"
7454#endif
7455/* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7457char shl_load ();
7458#ifdef F77_DUMMY_MAIN
7459# ifdef __cplusplus
7460 extern "C"
7461# endif
7462 int F77_DUMMY_MAIN() { return 1; }
7463#endif
7464int
7465main ()
7466{
7467shl_load ();
7468 ;
7469 return 0;
7470}
7471_ACEOF
7472rm -f conftest.$ac_objext conftest$ac_exeext
7473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7474 (eval $ac_link) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } &&
7478 { ac_try='test -s conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_cv_lib_dld_shl_load=yes
7485else
7486 echo "$as_me: failed program was:" >&5
7487cat conftest.$ac_ext >&5
7488ac_cv_lib_dld_shl_load=no
7489fi
7490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7491LIBS=$ac_check_lib_save_LIBS
7492fi
7493echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7494echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7495if test $ac_cv_lib_dld_shl_load = yes; then
7496 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7497else
7498 echo "$as_me:$LINENO: checking for dlopen" >&5
7499echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7500if test "${ac_cv_func_dlopen+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502else
7503 cat >conftest.$ac_ext <<_ACEOF
7504#line $LINENO "configure"
7505#include "confdefs.h"
7506/* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char dlopen (); below. */
7508#include <assert.h>
7509/* Override any gcc2 internal prototype to avoid an error. */
7510#ifdef __cplusplus
7511extern "C"
7512#endif
7513/* We use char because int might match the return type of a gcc2
7514 builtin and then its argument prototype would still apply. */
7515char dlopen ();
7516char (*f) ();
7517
7518#ifdef F77_DUMMY_MAIN
7519# ifdef __cplusplus
7520 extern "C"
7521# endif
7522 int F77_DUMMY_MAIN() { return 1; }
7523#endif
7524int
7525main ()
7526{
7527/* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530#if defined (__stub_dlopen) || defined (__stub___dlopen)
7531choke me
7532#else
7533f = dlopen;
7534#endif
7535
7536 ;
7537 return 0;
7538}
7539_ACEOF
7540rm -f conftest.$ac_objext conftest$ac_exeext
7541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542 (eval $ac_link) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -s conftest$ac_exeext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_func_dlopen=yes
7553else
7554 echo "$as_me: failed program was:" >&5
7555cat conftest.$ac_ext >&5
7556ac_cv_func_dlopen=no
7557fi
7558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7559fi
7560echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7561echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7562if test $ac_cv_func_dlopen = yes; then
7563 lt_cv_dlopen="dlopen"
7564else
7565 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7566echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7567if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 ac_check_lib_save_LIBS=$LIBS
7571LIBS="-ldl $LIBS"
7572cat >conftest.$ac_ext <<_ACEOF
7573#line $LINENO "configure"
7574#include "confdefs.h"
7575
7576/* Override any gcc2 internal prototype to avoid an error. */
7577#ifdef __cplusplus
7578extern "C"
7579#endif
7580/* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582char dlopen ();
7583#ifdef F77_DUMMY_MAIN
7584# ifdef __cplusplus
7585 extern "C"
7586# endif
7587 int F77_DUMMY_MAIN() { return 1; }
7588#endif
7589int
7590main ()
7591{
7592dlopen ();
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597rm -f conftest.$ac_objext conftest$ac_exeext
7598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599 (eval $ac_link) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_dl_dlopen=yes
7610else
7611 echo "$as_me: failed program was:" >&5
7612cat conftest.$ac_ext >&5
7613ac_cv_lib_dl_dlopen=no
7614fi
7615rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7616LIBS=$ac_check_lib_save_LIBS
7617fi
7618echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7619echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7620if test $ac_cv_lib_dl_dlopen = yes; then
7621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7622else
7623 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7624echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7625if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 ac_check_lib_save_LIBS=$LIBS
7629LIBS="-lsvld $LIBS"
7630cat >conftest.$ac_ext <<_ACEOF
7631#line $LINENO "configure"
7632#include "confdefs.h"
7633
7634/* Override any gcc2 internal prototype to avoid an error. */
7635#ifdef __cplusplus
7636extern "C"
7637#endif
7638/* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7640char dlopen ();
7641#ifdef F77_DUMMY_MAIN
7642# ifdef __cplusplus
7643 extern "C"
7644# endif
7645 int F77_DUMMY_MAIN() { return 1; }
7646#endif
7647int
7648main ()
7649{
7650dlopen ();
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
7656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7657 (eval $ac_link) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -s conftest$ac_exeext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_cv_lib_svld_dlopen=yes
7668else
7669 echo "$as_me: failed program was:" >&5
7670cat conftest.$ac_ext >&5
7671ac_cv_lib_svld_dlopen=no
7672fi
7673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7674LIBS=$ac_check_lib_save_LIBS
7675fi
7676echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7677echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7678if test $ac_cv_lib_svld_dlopen = yes; then
7679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7680else
7681 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7682echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7683if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686 ac_check_lib_save_LIBS=$LIBS
7687LIBS="-ldld $LIBS"
7688cat >conftest.$ac_ext <<_ACEOF
7689#line $LINENO "configure"
7690#include "confdefs.h"
7691
7692/* Override any gcc2 internal prototype to avoid an error. */
7693#ifdef __cplusplus
7694extern "C"
7695#endif
7696/* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698char dld_link ();
7699#ifdef F77_DUMMY_MAIN
7700# ifdef __cplusplus
7701 extern "C"
7702# endif
7703 int F77_DUMMY_MAIN() { return 1; }
7704#endif
7705int
7706main ()
7707{
7708dld_link ();
7709 ;
7710 return 0;
7711}
7712_ACEOF
7713rm -f conftest.$ac_objext conftest$ac_exeext
7714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715 (eval $ac_link) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -s conftest$ac_exeext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_cv_lib_dld_dld_link=yes
7726else
7727 echo "$as_me: failed program was:" >&5
7728cat conftest.$ac_ext >&5
7729ac_cv_lib_dld_dld_link=no
7730fi
7731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7732LIBS=$ac_check_lib_save_LIBS
7733fi
7734echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7735echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7736if test $ac_cv_lib_dld_dld_link = yes; then
7737 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7738fi
7739
7740
7741fi
7742
7743
7744fi
7745
7746
7747fi
7748
7749
7750fi
7751
7752
7753fi
7754
7755 ;;
7756 esac
7757
7758 if test "x$lt_cv_dlopen" != xno; then
7759 enable_dlopen=yes
7760 else
7761 enable_dlopen=no
7762 fi
7763
7764 case $lt_cv_dlopen in
7765 dlopen)
7766 save_CPPFLAGS="$CPPFLAGS"
7767 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7768
7769 save_LDFLAGS="$LDFLAGS"
7770 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7771
7772 save_LIBS="$LIBS"
7773 LIBS="$lt_cv_dlopen_libs $LIBS"
7774
7775 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7776echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7777if test "${lt_cv_dlopen_self+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780 if test "$cross_compiling" = yes; then :
7781 lt_cv_dlopen_self=cross
7782else
7783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7784 lt_status=$lt_dlunknown
7785 cat > conftest.$ac_ext <<EOF
7786#line 7786 "configure"
7787#include "confdefs.h"
7788
7789#if HAVE_DLFCN_H
7790#include <dlfcn.h>
7791#endif
7792
7793#include <stdio.h>
7794
7795#ifdef RTLD_GLOBAL
7796# define LT_DLGLOBAL RTLD_GLOBAL
7797#else
7798# ifdef DL_GLOBAL
7799# define LT_DLGLOBAL DL_GLOBAL
7800# else
7801# define LT_DLGLOBAL 0
7802# endif
7803#endif
7804
7805/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7806 find out it does not work in some platform. */
7807#ifndef LT_DLLAZY_OR_NOW
7808# ifdef RTLD_LAZY
7809# define LT_DLLAZY_OR_NOW RTLD_LAZY
7810# else
7811# ifdef DL_LAZY
7812# define LT_DLLAZY_OR_NOW DL_LAZY
7813# else
7814# ifdef RTLD_NOW
7815# define LT_DLLAZY_OR_NOW RTLD_NOW
7816# else
7817# ifdef DL_NOW
7818# define LT_DLLAZY_OR_NOW DL_NOW
7819# else
7820# define LT_DLLAZY_OR_NOW 0
7821# endif
7822# endif
7823# endif
7824# endif
7825#endif
7826
7827#ifdef __cplusplus
7828extern "C" void exit (int);
7829#endif
7830
7831void fnord() { int i=42;}
7832int main ()
7833{
7834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7835 int status = $lt_dlunknown;
7836
7837 if (self)
7838 {
7839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7841 /* dlclose (self); */
7842 }
7843
7844 exit (status);
7845}
7846EOF
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7852 (./conftest; exit; ) 2>/dev/null
7853 lt_status=$?
7854 case x$lt_status in
7855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7857 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7858 esac
7859 else :
7860 # compilation failed
7861 lt_cv_dlopen_self=no
7862 fi
7863fi
7864rm -fr conftest*
7865
7866
7867fi
7868echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7869echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7870
7871 if test "x$lt_cv_dlopen_self" = xyes; then
7872 LDFLAGS="$LDFLAGS $link_static_flag"
7873 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7874echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7875if test "${lt_cv_dlopen_self_static+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878 if test "$cross_compiling" = yes; then :
7879 lt_cv_dlopen_self_static=cross
7880else
7881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7882 lt_status=$lt_dlunknown
7883 cat > conftest.$ac_ext <<EOF
7884#line 7884 "configure"
7885#include "confdefs.h"
7886
7887#if HAVE_DLFCN_H
7888#include <dlfcn.h>
7889#endif
7890
7891#include <stdio.h>
7892
7893#ifdef RTLD_GLOBAL
7894# define LT_DLGLOBAL RTLD_GLOBAL
7895#else
7896# ifdef DL_GLOBAL
7897# define LT_DLGLOBAL DL_GLOBAL
7898# else
7899# define LT_DLGLOBAL 0
7900# endif
7901#endif
7902
7903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7904 find out it does not work in some platform. */
7905#ifndef LT_DLLAZY_OR_NOW
7906# ifdef RTLD_LAZY
7907# define LT_DLLAZY_OR_NOW RTLD_LAZY
7908# else
7909# ifdef DL_LAZY
7910# define LT_DLLAZY_OR_NOW DL_LAZY
7911# else
7912# ifdef RTLD_NOW
7913# define LT_DLLAZY_OR_NOW RTLD_NOW
7914# else
7915# ifdef DL_NOW
7916# define LT_DLLAZY_OR_NOW DL_NOW
7917# else
7918# define LT_DLLAZY_OR_NOW 0
7919# endif
7920# endif
7921# endif
7922# endif
7923#endif
7924
7925#ifdef __cplusplus
7926extern "C" void exit (int);
7927#endif
7928
7929void fnord() { int i=42;}
7930int main ()
7931{
7932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7933 int status = $lt_dlunknown;
7934
7935 if (self)
7936 {
7937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7939 /* dlclose (self); */
7940 }
7941
7942 exit (status);
7943}
7944EOF
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7950 (./conftest; exit; ) 2>/dev/null
7951 lt_status=$?
7952 case x$lt_status in
7953 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7954 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7955 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7956 esac
7957 else :
7958 # compilation failed
7959 lt_cv_dlopen_self_static=no
7960 fi
7961fi
7962rm -fr conftest*
7963
7964
7965fi
7966echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7967echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7968 fi
7969
7970 CPPFLAGS="$save_CPPFLAGS"
7971 LDFLAGS="$save_LDFLAGS"
7972 LIBS="$save_LIBS"
7973 ;;
7974 esac
7975
7976 case $lt_cv_dlopen_self in
7977 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7978 *) enable_dlopen_self=unknown ;;
7979 esac
7980
7981 case $lt_cv_dlopen_self_static in
7982 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7983 *) enable_dlopen_self_static=unknown ;;
7984 esac
7985fi
7986
7987
7988# Report which librarie types wil actually be built
7989echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7990echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7991echo "$as_me:$LINENO: result: $can_build_shared" >&5
7992echo "${ECHO_T}$can_build_shared" >&6
7993
7994echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7995echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7996test "$can_build_shared" = "no" && enable_shared=no
7997
7998# On AIX, shared libraries and static libraries use the same namespace, and
7999# are all built from PIC.
8000case "$host_os" in
8001aix3*)
8002 test "$enable_shared" = yes && enable_static=no
8003 if test -n "$RANLIB"; then
8004 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8005 postinstall_cmds='$RANLIB $lib'
8006 fi
8007 ;;
8008
8009aix4*)
8010 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8011 test "$enable_shared" = yes && enable_static=no
8012 fi
8013 ;;
8014esac
8015echo "$as_me:$LINENO: result: $enable_shared" >&5
8016echo "${ECHO_T}$enable_shared" >&6
8017
8018echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8019echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8020# Make sure either enable_shared or enable_static is yes.
8021test "$enable_shared" = yes || enable_static=yes
8022echo "$as_me:$LINENO: result: $enable_static" >&5
8023echo "${ECHO_T}$enable_static" >&6
8024
8025# The else clause should only fire when bootstrapping the
8026# libtool distribution, otherwise you forgot to ship ltmain.sh
8027# with your package, and you will get complaints that there are
8028# no rules to generate ltmain.sh.
8029if test -f "$ltmain"; then
8030 # Now quote all the things that may contain metacharacters while being
8031 # careful not to overquote the AC_SUBSTed values. We take copies of the
8032 # variables and quote the copies for generation of the libtool script.
8033 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8036 deplibs_check_method reload_flag reload_cmds need_locks \
8037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8038 lt_cv_sys_global_symbol_to_c_name_address \
8039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8040 old_postinstall_cmds old_postuninstall_cmds \
8041 compiler \
8042 CC \
8043 LD \
8044 lt_prog_compiler_wl \
8045 lt_prog_compiler_pic \
8046 lt_prog_compiler_static \
8047 lt_prog_compiler_no_builtin_flag \
8048 export_dynamic_flag_spec \
8049 thread_safe_flag_spec \
8050 whole_archive_flag_spec \
8051 old_archive_cmds \
8052 old_archive_from_new_cmds \
8053 predep_objects \
8054 postdep_objects \
8055 predeps \
8056 postdeps \
8057 compiler_lib_search_path \
8058 archive_cmds \
8059 archive_expsym_cmds \
8060 postinstall_cmds \
8061 postuninstall_cmds \
8062 old_archive_from_expsyms_cmds \
8063 allow_undefined_flag \
8064 no_undefined_flag \
8065 export_symbols_cmds \
8066 hardcode_libdir_flag_spec \
8067 hardcode_libdir_separator \
8068 lt_cv_prog_compiler_c_o \
8069 exclude_expsyms \
8070 include_expsyms; do
8071
8072 case $var in
8073 old_archive_cmds | \
8074 old_archive_from_new_cmds | \
8075 archive_cmds | \
8076 archive_expsym_cmds | \
8077 old_archive_from_expsyms_cmds | \
8078 export_symbols_cmds | \
8079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8080 postinstall_cmds | postuninstall_cmds | \
8081 old_postinstall_cmds | old_postuninstall_cmds | \
8082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8083 # Double-quote double-evaled strings.
8084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8085 ;;
8086 *)
8087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8088 ;;
8089 esac
8090 done
8091
8092 case $lt_echo in
8093 *'\$0 --fallback-echo"')
8094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8095 ;;
8096 esac
8097
8098cfgfile="${ofile}T"
8099 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8100 $rm -f "$cfgfile"
8101 { echo "$as_me:$LINENO: creating $ofile" >&5
8102echo "$as_me: creating $ofile" >&6;}
8103
8104 cat <<__EOF__ >> "$cfgfile"
8105#! $SHELL
8106
8107# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8108# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8109# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8110#
8111# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8112# Free Software Foundation, Inc.
8113#
8114# This file is part of GNU Libtool:
8115# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8116#
8117# This program is free software; you can redistribute it and/or modify
8118# it under the terms of the GNU General Public License as published by
8119# the Free Software Foundation; either version 2 of the License, or
8120# (at your option) any later version.
8121#
8122# This program is distributed in the hope that it will be useful, but
8123# WITHOUT ANY WARRANTY; without even the implied warranty of
8124# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8125# General Public License for more details.
8126#
8127# You should have received a copy of the GNU General Public License
8128# along with this program; if not, write to the Free Software
8129# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8130#
8131# As a special exception to the GNU General Public License, if you
8132# distribute this file as part of a program that contains a
8133# configuration script generated by Autoconf, you may include it under
8134# the same distribution terms that you use for the rest of that program.
8135
8136# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8137Xsed="sed -e s/^X//"
8138
8139# The HP-UX ksh and POSIX shell print the target directory to stdout
8140# if CDPATH is set.
8141if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8142
8143# The names of the tagged configurations supported by this script.
8144available_tags=
8145
8146# ### BEGIN LIBTOOL CONFIG
8147
8148# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8149
8150# Shell to use when invoking shell scripts.
8151SHELL=$lt_SHELL
8152
8153# Whether or not to build shared libraries.
8154build_libtool_libs=$enable_shared
8155
8156# Whether or not to build static libraries.
8157build_old_libs=$enable_static
8158
8159# Whether or not to add -lc for building shared libraries.
8160build_libtool_need_lc=$archive_cmds_need_lc
8161
8162# Whether or not to optimize for fast installation.
8163fast_install=$enable_fast_install
8164
8165# The host system.
8166host_alias=$host_alias
8167host=$host
8168
8169# An echo program that does not interpret backslashes.
8170echo=$lt_echo
8171
8172# The archiver.
8173AR=$lt_AR
8174AR_FLAGS=$lt_AR_FLAGS
8175
8176# A C compiler.
8177LTCC=$lt_LTCC
8178
8179# A language-specific compiler.
8180CC=$lt_compiler
8181
8182# Is the compiler the GNU C compiler?
8183with_gcc=$GCC
8184
8185# The linker used to build libraries.
8186LD=$lt_LD
8187
8188# Whether we need hard or soft links.
8189LN_S=$lt_LN_S
8190
8191# A BSD-compatible nm program.
8192NM=$lt_NM
8193
8194# A sed program that does not truncate output.
8195SED=$lt_SED
8196
8197# A symbol stripping program
8198STRIP=$STRIP
8199
8200# Used to examine libraries when file_magic_cmd begins "file"
8201MAGIC_CMD=$MAGIC_CMD
8202
8203# Used on cygwin: DLL creation program.
8204DLLTOOL="$DLLTOOL"
8205
8206# Used on cygwin: object dumper.
8207OBJDUMP="$OBJDUMP"
8208
8209# Used on cygwin: assembler.
8210AS="$AS"
8211
8212# The name of the directory that contains temporary libtool files.
8213objdir=$objdir
8214
8215# How to create reloadable object files.
8216reload_flag=$lt_reload_flag
8217reload_cmds=$lt_reload_cmds
8218
8219# How to pass a linker flag through the compiler.
8220wl=$lt_lt_prog_compiler_wl
8221
8222# Object file suffix (normally "o").
8223objext="$ac_objext"
8224
8225# Old archive suffix (normally "a").
8226libext="$libext"
8227
8228# Executable file suffix (normally "").
8229exeext="$exeext"
8230
8231# Additional compiler flags for building library objects.
8232pic_flag=$lt_lt_prog_compiler_pic
8233pic_mode=$pic_mode
8234
8235# What is the maximum length of a command?
8236max_cmd_len=$lt_cv_sys_max_cmd_len
8237
8238# Does compiler simultaneously support -c and -o options?
8239compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8240
8241# Must we lock files when doing compilation ?
8242need_locks=$lt_need_locks
8243
8244# Do we need the lib prefix for modules?
8245need_lib_prefix=$need_lib_prefix
8246
8247# Do we need a version for libraries?
8248need_version=$need_version
8249
8250# Whether dlopen is supported.
8251dlopen_support=$enable_dlopen
8252
8253# Whether dlopen of programs is supported.
8254dlopen_self=$enable_dlopen_self
8255
8256# Whether dlopen of statically linked programs is supported.
8257dlopen_self_static=$enable_dlopen_self_static
8258
8259# Compiler flag to prevent dynamic linking.
8260link_static_flag=$lt_lt_prog_compiler_static
8261
8262# Compiler flag to turn off builtin functions.
8263no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8264
8265# Compiler flag to allow reflexive dlopens.
8266export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8267
8268# Compiler flag to generate shared objects directly from archives.
8269whole_archive_flag_spec=$lt_whole_archive_flag_spec
8270
8271# Compiler flag to generate thread-safe objects.
8272thread_safe_flag_spec=$lt_thread_safe_flag_spec
8273
8274# Library versioning type.
8275version_type=$version_type
8276
8277# Format of library name prefix.
8278libname_spec=$lt_libname_spec
8279
8280# List of archive names. First name is the real one, the rest are links.
8281# The last name is the one that the linker finds with -lNAME.
8282library_names_spec=$lt_library_names_spec
8283
8284# The coded name of the library, if different from the real name.
8285soname_spec=$lt_soname_spec
8286
8287# Commands used to build and install an old-style archive.
8288RANLIB=$lt_RANLIB
8289old_archive_cmds=$lt_old_archive_cmds
8290old_postinstall_cmds=$lt_old_postinstall_cmds
8291old_postuninstall_cmds=$lt_old_postuninstall_cmds
8292
8293# Create an old-style archive from a shared archive.
8294old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8295
8296# Create a temporary old-style archive to link instead of a shared archive.
8297old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8298
8299# Commands used to build and install a shared archive.
8300archive_cmds=$lt_archive_cmds
8301archive_expsym_cmds=$lt_archive_expsym_cmds
8302postinstall_cmds=$lt_postinstall_cmds
8303postuninstall_cmds=$lt_postuninstall_cmds
8304
8305# Commands to strip libraries.
8306old_striplib=$lt_old_striplib
8307striplib=$lt_striplib
8308
8309# Dependencies to place before the objects being linked to create a
8310# shared library.
8311predep_objects=$lt_predep_objects
8312
8313# Dependencies to place after the objects being linked to create a
8314# shared library.
8315postdep_objects=$lt_postdep_objects
8316
8317# Dependencies to place before the objects being linked to create a
8318# shared library.
8319predeps=$lt_predeps
8320
8321# Dependencies to place after the objects being linked to create a
8322# shared library.
8323postdeps=$lt_postdeps
8324
8325# The library search path used internally by the compiler when linking
8326# a shared library.
8327compiler_lib_search_path=$lt_compiler_lib_search_path
8328
8329# Method to check whether dependent libraries are shared objects.
8330deplibs_check_method=$lt_deplibs_check_method
8331
8332# Command to use when deplibs_check_method == file_magic.
8333file_magic_cmd=$lt_file_magic_cmd
8334
8335# Flag that allows shared libraries with undefined symbols to be built.
8336allow_undefined_flag=$lt_allow_undefined_flag
8337
8338# Flag that forces no undefined symbols.
8339no_undefined_flag=$lt_no_undefined_flag
8340
8341# Commands used to finish a libtool library installation in a directory.
8342finish_cmds=$lt_finish_cmds
8343
8344# Same as above, but a single script fragment to be evaled but not shown.
8345finish_eval=$lt_finish_eval
8346
8347# Take the output of nm and produce a listing of raw symbols and C names.
8348global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8349
8350# Transform the output of nm in a proper C declaration
8351global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8352
8353# Transform the output of nm in a C name address pair
8354global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8355
8356# This is the shared library runtime path variable.
8357runpath_var=$runpath_var
8358
8359# This is the shared library path variable.
8360shlibpath_var=$shlibpath_var
8361
8362# Is shlibpath searched before the hard-coded library search path?
8363shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8364
8365# How to hardcode a shared library path into an executable.
8366hardcode_action=$hardcode_action
8367
8368# Whether we should hardcode library paths into libraries.
8369hardcode_into_libs=$hardcode_into_libs
8370
8371# Flag to hardcode \$libdir into a binary during linking.
8372# This must work even if \$libdir does not exist.
8373hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8374
8375# Whether we need a single -rpath flag with a separated argument.
8376hardcode_libdir_separator=$lt_hardcode_libdir_separator
8377
8378# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8379# resulting binary.
8380hardcode_direct=$hardcode_direct
8381
8382# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8383# resulting binary.
8384hardcode_minus_L=$hardcode_minus_L
8385
8386# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8387# the resulting binary.
8388hardcode_shlibpath_var=$hardcode_shlibpath_var
8389
8390# Variables whose values should be saved in libtool wrapper scripts and
8391# restored at relink time.
8392variables_saved_for_relink="$variables_saved_for_relink"
8393
8394# Whether libtool must link a program against all its dependency libraries.
8395link_all_deplibs=$link_all_deplibs
8396
8397# Compile-time system search path for libraries
8398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8399
8400# Run-time system search path for libraries
8401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8402
8403# Fix the shell variable \$srcfile for the compiler.
8404fix_srcfile_path="$fix_srcfile_path"
8405
8406# Set to yes if exported symbols are required.
8407always_export_symbols=$always_export_symbols
8408
8409# The commands to list exported symbols.
8410export_symbols_cmds=$lt_export_symbols_cmds
8411
8412# The commands to extract the exported symbol list from a shared archive.
8413extract_expsyms_cmds=$lt_extract_expsyms_cmds
8414
8415# Symbols that should not be listed in the preloaded symbols.
8416exclude_expsyms=$lt_exclude_expsyms
8417
8418# Symbols that must always be exported.
8419include_expsyms=$lt_include_expsyms
8420
8421# ### END LIBTOOL CONFIG
8422
8423__EOF__
8424
8425
8426 case $host_os in
8427 aix3*)
8428 cat <<\EOF >> "$cfgfile"
8429
8430# AIX sometimes has problems with the GCC collect2 program. For some
8431# reason, if we set the COLLECT_NAMES environment variable, the problems
8432# vanish in a puff of smoke.
8433if test "X${COLLECT_NAMES+set}" != Xset; then
8434 COLLECT_NAMES=
8435 export COLLECT_NAMES
8436fi
8437EOF
8438 ;;
8439
8440 cygwin* | mingw* | pw32* | os2*)
8441 cat <<'EOF' >> "$cfgfile"
8442 # This is a source program that is used to create dlls on Windows
8443 # Don't remove nor modify the starting and closing comments
8444
8445# /* ltdll.c starts here */
8446# #define WIN32_LEAN_AND_MEAN
8447# #include <windows.h>
8448# #undef WIN32_LEAN_AND_MEAN
8449# #include <stdio.h>
8450#
8451# #ifndef __CYGWIN__
8452# # ifdef __CYGWIN32__
8453# # define __CYGWIN__ __CYGWIN32__
8454# # endif
8455# #endif
8456#
8457# #ifdef __cplusplus
8458# extern "C" {
8459# #endif
8460# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8461# #ifdef __cplusplus
8462# }
8463# #endif
8464#
8465# #ifdef __CYGWIN__
8466# #include <cygwin/cygwin_dll.h>
8467# DECLARE_CYGWIN_DLL( DllMain );
8468# #endif
8469# HINSTANCE __hDllInstance_base;
8470#
8471# BOOL APIENTRY
8472# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8473# {
8474# __hDllInstance_base = hInst;
8475# return TRUE;
8476# }
8477# /* ltdll.c ends here */
8478
8479 # This is a source program that is used to create import libraries
8480 # on Windows for dlls which lack them. Don't remove nor modify the
8481 # starting and closing comments
8482
8483# /* impgen.c starts here */
8484# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8485#
8486# This file is part of GNU libtool.
8487#
8488# This program is free software; you can redistribute it and/or modify
8489# it under the terms of the GNU General Public License as published by
8490# the Free Software Foundation; either version 2 of the License, or
8491# (at your option) any later version.
8492#
8493# This program is distributed in the hope that it will be useful,
8494# but WITHOUT ANY WARRANTY; without even the implied warranty of
8495# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8496# GNU General Public License for more details.
8497#
8498# You should have received a copy of the GNU General Public License
8499# along with this program; if not, write to the Free Software
8500# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8501# */
8502#
8503# #include <stdio.h> /* for printf() */
8504# #include <unistd.h> /* for open(), lseek(), read() */
8505# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8506# #include <string.h> /* for strdup() */
8507#
8508# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8509# #ifndef O_BINARY
8510# #define O_BINARY 0
8511# #endif
8512#
8513# static unsigned int
8514# pe_get16 (fd, offset)
8515# int fd;
8516# int offset;
8517# {
8518# unsigned char b[2];
8519# lseek (fd, offset, SEEK_SET);
8520# read (fd, b, 2);
8521# return b[0] + (b[1]<<8);
8522# }
8523#
8524# static unsigned int
8525# pe_get32 (fd, offset)
8526# int fd;
8527# int offset;
8528# {
8529# unsigned char b[4];
8530# lseek (fd, offset, SEEK_SET);
8531# read (fd, b, 4);
8532# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8533# }
8534#
8535# static unsigned int
8536# pe_as32 (ptr)
8537# void *ptr;
8538# {
8539# unsigned char *b = ptr;
8540# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8541# }
8542#
8543# int
8544# main (argc, argv)
8545# int argc;
8546# char *argv[];
8547# {
8548# int dll;
8549# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8550# unsigned long export_rva, export_size, nsections, secptr, expptr;
8551# unsigned long name_rvas, nexp;
8552# unsigned char *expdata, *erva;
8553# char *filename, *dll_name;
8554#
8555# filename = argv[1];
8556#
8557# dll = open(filename, O_RDONLY|O_BINARY);
8558# if (dll < 1)
8559# return 1;
8560#
8561# dll_name = filename;
8562#
8563# for (i=0; filename[i]; i++)
8564# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8565# dll_name = filename + i +1;
8566#
8567# pe_header_offset = pe_get32 (dll, 0x3c);
8568# opthdr_ofs = pe_header_offset + 4 + 20;
8569# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8570#
8571# if (num_entries < 1) /* no exports */
8572# return 1;
8573#
8574# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8575# export_size = pe_get32 (dll, opthdr_ofs + 100);
8576# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8577# secptr = (pe_header_offset + 4 + 20 +
8578# pe_get16 (dll, pe_header_offset + 4 + 16));
8579#
8580# expptr = 0;
8581# for (i = 0; i < nsections; i++)
8582# {
8583# char sname[8];
8584# unsigned long secptr1 = secptr + 40 * i;
8585# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8586# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8587# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8588# lseek(dll, secptr1, SEEK_SET);
8589# read(dll, sname, 8);
8590# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8591# {
8592# expptr = fptr + (export_rva - vaddr);
8593# if (export_rva + export_size > vaddr + vsize)
8594# export_size = vsize - (export_rva - vaddr);
8595# break;
8596# }
8597# }
8598#
8599# expdata = (unsigned char*)malloc(export_size);
8600# lseek (dll, expptr, SEEK_SET);
8601# read (dll, expdata, export_size);
8602# erva = expdata - export_rva;
8603#
8604# nexp = pe_as32 (expdata+24);
8605# name_rvas = pe_as32 (expdata+32);
8606#
8607# printf ("EXPORTS\n");
8608# for (i = 0; i<nexp; i++)
8609# {
8610# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8611# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8612# }
8613#
8614# return 0;
8615# }
8616# /* impgen.c ends here */
8617
8618EOF
8619 ;;
8620 esac
8621
8622 # We use sed instead of cat because bash on DJGPP gets confused if
8623 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8624 # text mode, it properly converts lines to CR/LF. This bash problem
8625 # is reportedly fixed, but why not run on old versions too?
8626 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8627
8628 mv -f "$cfgfile" "$ofile" || \
8629 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8630 chmod +x "$ofile"
8631
8632else
8633 # If there is no Makefile yet, we rely on a make rule to execute
8634 # `config.status --recheck' to rerun these tests and create the
8635 # libtool script then.
8636 test -f Makefile && make "$ltmain"
8637fi
8638
8639
8640ac_ext=cc
8641ac_cpp='$CXXCPP $CPPFLAGS'
8642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8645
8646CC="$lt_save_CC"
8647
8648
8649# Check whether --with-tags or --without-tags was given.
8650if test "${with_tags+set}" = set; then
8651 withval="$with_tags"
8652 tagnames="$withval"
8653else
8654 tagnames="CXX,GCJ"
8655 case $host_os in
8656 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
8657 esac
8658fi;
8659
8660if test -f "$ltmain" && test -n "$tagnames"; then
8661 if test ! -f "${ofile}"; then
8662 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8663echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8664 fi
8665
8666 if test -z "$LTCC"; then
8667 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8668 if test -z "$LTCC"; then
8669 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8670echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8671 else
8672 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8673echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8674 fi
8675 fi
8676
8677 # Extract list of available tagged configurations in $ofile.
8678 # Note that this assumes the entire list is on one line.
8679 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8680
8681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8682 for tagname in $tagnames; do
8683 IFS="$lt_save_ifs"
8684 # Check whether tagname contains only valid characters
8685 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8686 "") ;;
8687 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8688echo "$as_me: error: invalid tag name: $tagname" >&2;}
8689 { (exit 1); exit 1; }; }
8690 ;;
8691 esac
8692
8693 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8694 then
8695 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8696echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8697 { (exit 1); exit 1; }; }
8698 fi
8699
8700 # Update the list of available tags.
8701 if test -n "$tagname"; then
8702 echo appending configuration tag \"$tagname\" to $ofile
8703
8704 case $tagname in
8705 CXX)
8706 ac_ext=cc
8707ac_cpp='$CXXCPP $CPPFLAGS'
8708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8711
8712
8713
8714
8715archive_cmds_need_lc_CXX=no
8716allow_undefined_flag_CXX=
8717always_export_symbols_CXX=no
8718archive_expsym_cmds_CXX=
8719export_dynamic_flag_spec_CXX=
8720hardcode_direct_CXX=no
8721hardcode_libdir_flag_spec_CXX=
8722hardcode_libdir_separator_CXX=
8723hardcode_minus_L_CXX=no
8724link_all_deplibs_CXX=unknown
8725old_archive_cmds_CXX=$old_archive_cmds
8726no_undefined_flag_CXX=
8727whole_archive_flag_spec_CXX=
8728
8729# Dependencies to place before and after the object being linked:
8730predep_objects_CXX=
8731postdep_objects_CXX=
8732predeps_CXX=
8733postdeps_CXX=
8734compiler_lib_search_path_CXX=
8735
8736# Source file extension for C test sources.
8737ac_ext=cc
8738
8739# Object file extension for compiled C test sources.
8740objext=o
8741objext_CXX=$objext
8742
8743# Code to be used in simple compile tests
8744lt_simple_compile_test_code="int some_variable = 0;"
8745
8746# Code to be used in simple link tests
8747lt_simple_link_test_code='int main(int char *) { return(0); }'
8748
8749# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8750
8751# If no C compiler was specified, use CC.
8752LTCC=${LTCC-"$CC"}
8753
8754# Allow CC to be a program name with arguments.
8755set dummy $CC
8756compiler="$2"
8757
8758
8759# Allow CC to be a program name with arguments.
8760lt_save_CC="$CC"
8761CC=${CXX-"c++"}
8762set dummy $CC
8763compiler="$2"
8764compiler_CXX=$CC
8765cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8766
8767# We don't want -fno-exception wen compiling C++ code, so set the
8768# no_builtin_flag separately
8769if test "$GXX" = yes; then
8770 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8771else
8772 lt_prog_compiler_no_builtin_flag_CXX=
8773fi
8774
8775if test "$GXX" = yes; then
8776 # Set up default GNU C++ configuration
8777
8778 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8779 # archiving commands below assume that GNU ld is being used.
8780 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8781 egrep 'GNU ld' > /dev/null; then
8782 with_gnu_ld=yes
8783
8784 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785 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'
8786
8787 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8789
8790 # If archive_cmds runs LD, not CC, wlarc should be empty
8791 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8792 # investigate it a little bit more. (MM)
8793 wlarc='${wl}'
8794
8795 # ancient GNU ld didn't support --whole-archive et. al.
8796 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8797 egrep 'no-whole-archive' > /dev/null; then
8798 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8799 else
8800 whole_archive_flag_spec_CXX=
8801 fi
8802 else
8803 with_gnu_ld=no
8804 wlarc=
8805
8806 # A generic and very simple default shared library creation
8807 # command for GNU C++ for the case where it uses the native
8808 # linker, instead of GNU ld. If possible, this setting should
8809 # overridden to take advantage of the native linker features on
8810 # the platform it is being used on.
8811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8812 fi
8813
8814 # Commands to make compiler produce verbose output that lists
8815 # what "hidden" libraries, object files and flags are used when
8816 # linking a shared library.
8817 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8818
8819else
8820 GXX=no
8821 with_gnu_ld=no
8822 wlarc=
8823fi
8824
8825# PORTME: fill in a description of your system's C++ link characteristics
8826echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8827echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8828ld_shlibs_CXX=yes
8829case $host_os in
8830 aix3*)
8831 # FIXME: insert proper C++ library support
8832 ld_shlibs_CXX=no
8833 ;;
8834 aix4* | aix5*)
8835 if test "$host_cpu" = ia64; then
8836 # On IA64, the linker does run time linking by default, so we don't
8837 # have to do anything special.
8838 aix_use_runtimelinking=no
8839 exp_sym_flag='-Bexport'
8840 no_entry_flag=""
8841 else
8842 aix_use_runtimelinking=no
8843
8844 # Test if we are trying to use run time linking or normal
8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8846 # need to do runtime linking.
8847 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8848 for ld_flag in $LDFLAGS; do
8849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8850 aix_use_runtimelinking=yes
8851 break
8852 fi
8853 done
8854 esac
8855
8856 exp_sym_flag='-bexport'
8857 no_entry_flag='-bnoentry'
8858 fi
8859
8860 # When large executables or shared objects are built, AIX ld can
8861 # have problems creating the table of contents. If linking a library
8862 # or program results in "error TOC overflow" add -mminimal-toc to
8863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8865
8866 archive_cmds_CXX=''
8867 hardcode_direct_CXX=yes
8868 hardcode_libdir_separator_CXX=':'
8869 link_all_deplibs_CXX=yes
8870
8871 if test "$GXX" = yes; then
8872 case $host_os in aix4.012|aix4.012.*)
8873 # We only want to do this on AIX 4.2 and lower, the check
8874 # below for broken collect2 doesn't work under 4.3+
8875 collect2name=`${CC} -print-prog-name=collect2`
8876 if test -f "$collect2name" && \
8877 strings "$collect2name" | grep resolve_lib_name >/dev/null
8878 then
8879 # We have reworked collect2
8880 hardcode_direct_CXX=yes
8881 else
8882 # We have old collect2
8883 hardcode_direct_CXX=unsupported
8884 # It fails to find uninstalled libraries when the uninstalled
8885 # path is not listed in the libpath. Setting hardcode_minus_L
8886 # to unsupported forces relinking
8887 hardcode_minus_L_CXX=yes
8888 hardcode_libdir_flag_spec_CXX='-L$libdir'
8889 hardcode_libdir_separator_CXX=
8890 fi
8891 esac
8892 shared_flag='-shared'
8893 else
8894 # not using gcc
8895 if test "$host_cpu" = ia64; then
8896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8897 # chokes on -Wl,-G. The following line is correct:
8898 shared_flag='-G'
8899 else
8900 if test "$aix_use_runtimelinking" = yes; then
8901 shared_flag='${wl}-G'
8902 else
8903 shared_flag='${wl}-bM:SRE'
8904 fi
8905 fi
8906 fi
8907
8908 # It seems that -bexpall does not export symbols beginning with
8909 # underscore (_), so it is better to generate a list of symbols to export.
8910 always_export_symbols_CXX=yes
8911 if test "$aix_use_runtimelinking" = yes; then
8912 # Warning - without using the other runtime loading flags (-brtl),
8913 # -berok will link without error, but may produce a broken library.
8914 allow_undefined_flag_CXX='-berok'
8915 # Determine the default libpath from the value encoded in an empty executable.
8916 cat >conftest.$ac_ext <<_ACEOF
8917#line $LINENO "configure"
8918#include "confdefs.h"
8919
8920#ifdef F77_DUMMY_MAIN
8921# ifdef __cplusplus
8922 extern "C"
8923# endif
8924 int F77_DUMMY_MAIN() { return 1; }
8925#endif
8926int
8927main ()
8928{
8929
8930 ;
8931 return 0;
8932}
8933_ACEOF
8934rm -f conftest.$ac_objext conftest$ac_exeext
8935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8936 (eval $ac_link) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946
8947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8948}'`
8949# Check for a 64-bit object if we didn't find anything.
8950if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8951}'`; fi
8952else
8953 echo "$as_me: failed program was:" >&5
8954cat conftest.$ac_ext >&5
8955fi
8956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8958
8959 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8960
8961 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"
8962 else
8963 if test "$host_cpu" = ia64; then
8964 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
8965 allow_undefined_flag_CXX="-z nodefs"
8966 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"
8967 else
8968 # Determine the default libpath from the value encoded in an empty executable.
8969 cat >conftest.$ac_ext <<_ACEOF
8970#line $LINENO "configure"
8971#include "confdefs.h"
8972
8973#ifdef F77_DUMMY_MAIN
8974# ifdef __cplusplus
8975 extern "C"
8976# endif
8977 int F77_DUMMY_MAIN() { return 1; }
8978#endif
8979int
8980main ()
8981{
8982
8983 ;
8984 return 0;
8985}
8986_ACEOF
8987rm -f conftest.$ac_objext conftest$ac_exeext
8988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999
9000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9001}'`
9002# Check for a 64-bit object if we didn't find anything.
9003if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9004}'`; fi
9005else
9006 echo "$as_me: failed program was:" >&5
9007cat conftest.$ac_ext >&5
9008fi
9009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9011
9012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9013 # Warning - without using the other run time loading flags,
9014 # -berok will link without error, but may produce a broken library.
9015 no_undefined_flag_CXX=' ${wl}-bernotok'
9016 allow_undefined_flag_CXX=' ${wl}-berok'
9017 # -bexpall does not export symbols beginning with underscore (_)
9018 always_export_symbols_CXX=yes
9019 # Exported symbols can be pulled into shared objects from archives
9020 whole_archive_flag_spec_CXX=' '
9021 archive_cmds_need_lc_CXX=yes
9022 # This is similar to how AIX traditionally builds it's shared libraries.
9023 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'
9024 fi
9025 fi
9026 ;;
9027 chorus*)
9028 case $cc_basename in
9029 *)
9030 # FIXME: insert proper C++ library support
9031 ld_shlibs_CXX=no
9032 ;;
9033 esac
9034 ;;
9035
9036 cygwin*)
9037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9038 # as there is no search path for DLLs.
9039 hardcode_libdir_flag_spec_CXX='-L$libdir'
9040 allow_undefined_flag_CXX=
9041 always_export_symbols_CXX=yes
9042
9043 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
9044 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9045 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
9046 else
9047 ld_shlibs_CXX=no
9048 fi
9049 ;;
9050
9051 mingw* | pw32*)
9052 # FIXME: insert proper C++ library support
9053 ld_shlibs_CXX=no
9054 ;;
9055
9056 dgux*)
9057 case $cc_basename in
9058 ec++)
9059 # FIXME: insert proper C++ library support
9060 ld_shlibs_CXX=no
9061 ;;
9062 ghcx)
9063 # Green Hills C++ Compiler
9064 # FIXME: insert proper C++ library support
9065 ld_shlibs_CXX=no
9066 ;;
9067 *)
9068 # FIXME: insert proper C++ library support
9069 ld_shlibs_CXX=no
9070 ;;
9071 esac
9072 ;;
9073 freebsd12*)
9074 # C++ shared libraries reported to be fairly broken before switch to ELF
9075 ld_shlibs_CXX=no
9076 ;;
9077 freebsd-elf*)
9078 archive_cmds_need_lc_CXX=no
9079 ;;
9080 freebsd*)
9081 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9082 # conventions
9083 ld_shlibs_CXX=yes
9084 ;;
9085 gnu*)
9086 ;;
9087 hpux*)
9088 if test $with_gnu_ld = no; then
9089 if test "$host_cpu" = ia64; then
9090 hardcode_libdir_flag_spec_CXX='-L$libdir'
9091 else
9092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_separator_CXX=:
9094 export_dynamic_flag_spec_CXX='${wl}-E'
9095 fi
9096 fi
9097 if test "$host_cpu" = ia64; then
9098 hardcode_direct_CXX=no
9099 hardcode_shlibpath_var_CXX=no
9100 else
9101 hardcode_direct_CXX=yes
9102 fi
9103 hardcode_minus_L_CXX=yes # Not in the search PATH,
9104 # but as the default
9105 # location of the library.
9106
9107 case $cc_basename in
9108 CC)
9109 # FIXME: insert proper C++ library support
9110 ld_shlibs_CXX=no
9111 ;;
9112 aCC)
9113 case $host_os in
9114 hpux9*)
9115 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'
9116 ;;
9117 *)
9118 if test "$host_cpu" = ia64; then
9119 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9120 else
9121 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9122 fi
9123 ;;
9124 esac
9125 # Commands to make compiler produce verbose output that lists
9126 # what "hidden" libraries, object files and flags are used when
9127 # linking a shared library.
9128 #
9129 # There doesn't appear to be a way to prevent this compiler from
9130 # explicitly linking system object files so we need to strip them
9131 # from the output so that they don't get included in the library
9132 # dependencies.
9133 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'
9134 ;;
9135 *)
9136 if test "$GXX" = yes; then
9137 if test $with_gnu_ld = no; then
9138 case $host_os in
9139 hpux9*)
9140 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'
9141 ;;
9142 *)
9143 if test "$host_cpu" = ia64; then
9144 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9145 else
9146 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'
9147 fi
9148 ;;
9149 esac
9150 fi
9151 else
9152 # FIXME: insert proper C++ library support
9153 ld_shlibs_CXX=no
9154 fi
9155 ;;
9156 esac
9157 ;;
9158 irix5* | irix6*)
9159 case $cc_basename in
9160 CC)
9161 # SGI C++
9162 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'
9163
9164 # Archives containing C++ object files must be created using
9165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9166 # necessary to make sure instantiated templates are included
9167 # in the archive.
9168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9169 ;;
9170 *)
9171 if test "$GXX" = yes; then
9172 if test "$with_gnu_ld" = no; then
9173 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'
9174 else
9175 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'
9176 fi
9177 fi
9178 link_all_deplibs_CXX=yes
9179 ;;
9180 esac
9181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9182 hardcode_libdir_separator_CXX=:
9183 ;;
9184 linux*)
9185 case $cc_basename in
9186 KCC)
9187 # Kuck and Associates, Inc. (KAI) C++ Compiler
9188
9189 # KCC will only create a shared library if the output file
9190 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9191 # to its proper name (with version) after linking.
9192 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'
9193 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'
9194
9195 # Commands to make compiler produce verbose output that lists
9196 # what "hidden" libraries, object files and flags are used when
9197 # linking a shared library.
9198 #
9199 # There doesn't appear to be a way to prevent this compiler from
9200 # explicitly linking system object files so we need to strip them
9201 # from the output so that they don't get included in the library
9202 # dependencies.
9203 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'
9204
9205 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9207
9208 # Archives containing C++ object files must be created using
9209 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9210 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9211 ;;
9212 cxx)
9213 # Compaq C++
9214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215 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'
9216
9217 runpath_var=LD_RUN_PATH
9218 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9219 hardcode_libdir_separator_CXX=:
9220
9221 # Commands to make compiler produce verbose output that lists
9222 # what "hidden" libraries, object files and flags are used when
9223 # linking a shared library.
9224 #
9225 # There doesn't appear to be a way to prevent this compiler from
9226 # explicitly linking system object files so we need to strip them
9227 # from the output so that they don't get included in the library
9228 # dependencies.
9229 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'
9230 ;;
9231 esac
9232 ;;
9233 lynxos*)
9234 # FIXME: insert proper C++ library support
9235 ld_shlibs_CXX=no
9236 ;;
9237 m88k*)
9238 # FIXME: insert proper C++ library support
9239 ld_shlibs_CXX=no
9240 ;;
9241 mvs*)
9242 case $cc_basename in
9243 cxx)
9244 # FIXME: insert proper C++ library support
9245 ld_shlibs_CXX=no
9246 ;;
9247 *)
9248 # FIXME: insert proper C++ library support
9249 ld_shlibs_CXX=no
9250 ;;
9251 esac
9252 ;;
9253 netbsd*)
9254 # NetBSD uses g++ - do we need to do anything?
9255 ;;
9256 osf3*)
9257 case $cc_basename in
9258 KCC)
9259 # Kuck and Associates, Inc. (KAI) C++ Compiler
9260
9261 # KCC will only create a shared library if the output file
9262 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9263 # to its proper name (with version) after linking.
9264 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'
9265
9266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9267 hardcode_libdir_separator_CXX=:
9268
9269 # Archives containing C++ object files must be created using
9270 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9271 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9272
9273 ;;
9274 RCC)
9275 # Rational C++ 2.4.1
9276 # FIXME: insert proper C++ library support
9277 ld_shlibs_CXX=no
9278 ;;
9279 cxx)
9280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9281 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'
9282
9283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9284 hardcode_libdir_separator_CXX=:
9285
9286 # Commands to make compiler produce verbose output that lists
9287 # what "hidden" libraries, object files and flags are used when
9288 # linking a shared library.
9289 #
9290 # There doesn't appear to be a way to prevent this compiler from
9291 # explicitly linking system object files so we need to strip them
9292 # from the output so that they don't get included in the library
9293 # dependencies.
9294 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'
9295 ;;
9296 *)
9297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9299 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'
9300
9301 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9302 hardcode_libdir_separator_CXX=:
9303
9304 # Commands to make compiler produce verbose output that lists
9305 # what "hidden" libraries, object files and flags are used when
9306 # linking a shared library.
9307 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9308
9309 else
9310 # FIXME: insert proper C++ library support
9311 ld_shlibs_CXX=no
9312 fi
9313 ;;
9314 esac
9315 ;;
9316 osf4* | osf5*)
9317 case $cc_basename in
9318 KCC)
9319 # Kuck and Associates, Inc. (KAI) C++ Compiler
9320
9321 # KCC will only create a shared library if the output file
9322 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9323 # to its proper name (with version) after linking.
9324 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'
9325
9326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9327 hardcode_libdir_separator_CXX=:
9328
9329 # Archives containing C++ object files must be created using
9330 # the KAI C++ compiler.
9331 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9332 ;;
9333 RCC)
9334 # Rational C++ 2.4.1
9335 # FIXME: insert proper C++ library support
9336 ld_shlibs_CXX=no
9337 ;;
9338 cxx)
9339 allow_undefined_flag_CXX=' -expect_unresolved \*'
9340 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'
9341 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9342 echo "-hidden">> $lib.exp~
9343 $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~
9344 $rm $lib.exp'
9345
9346 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9347 hardcode_libdir_separator_CXX=:
9348
9349 # Commands to make compiler produce verbose output that lists
9350 # what "hidden" libraries, object files and flags are used when
9351 # linking a shared library.
9352 #
9353 # There doesn't appear to be a way to prevent this compiler from
9354 # explicitly linking system object files so we need to strip them
9355 # from the output so that they don't get included in the library
9356 # dependencies.
9357 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'
9358 ;;
9359 *)
9360 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9361 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9362 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'
9363
9364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9365 hardcode_libdir_separator_CXX=:
9366
9367 # Commands to make compiler produce verbose output that lists
9368 # what "hidden" libraries, object files and flags are used when
9369 # linking a shared library.
9370 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9371
9372 else
9373 # FIXME: insert proper C++ library support
9374 ld_shlibs_CXX=no
9375 fi
9376 ;;
9377 esac
9378 ;;
9379 psos*)
9380 # FIXME: insert proper C++ library support
9381 ld_shlibs_CXX=no
9382 ;;
9383 sco*)
9384 archive_cmds_need_lc_CXX=no
9385 case $cc_basename in
9386 CC)
9387 # FIXME: insert proper C++ library support
9388 ld_shlibs_CXX=no
9389 ;;
9390 *)
9391 # FIXME: insert proper C++ library support
9392 ld_shlibs_CXX=no
9393 ;;
9394 esac
9395 ;;
9396 sunos4*)
9397 case $cc_basename in
9398 CC)
9399 # Sun C++ 4.x
9400 # FIXME: insert proper C++ library support
9401 ld_shlibs_CXX=no
9402 ;;
9403 lcc)
9404 # Lucid
9405 # FIXME: insert proper C++ library support
9406 ld_shlibs_CXX=no
9407 ;;
9408 *)
9409 # FIXME: insert proper C++ library support
9410 ld_shlibs_CXX=no
9411 ;;
9412 esac
9413 ;;
9414 solaris*)
9415 case $cc_basename in
9416 CC)
9417 # Sun C++ 4.2, 5.x and Centerline C++
9418 no_undefined_flag_CXX=' -zdefs'
9419 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9420 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9421 $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'
9422
9423 hardcode_libdir_flag_spec_CXX='-R$libdir'
9424 hardcode_shlibpath_var_CXX=no
9425 case $host_os in
9426 solaris2.0-5 | solaris2.0-5.*) ;;
9427 *)
9428 # The C++ compiler is used as linker so we must use $wl
9429 # flag to pass the commands to the underlying system
9430 # linker.
9431 # Supported since Solaris 2.6 (maybe 2.5.1?)
9432 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9433 ;;
9434 esac
9435 link_all_deplibs_CXX=yes
9436
9437 # Commands to make compiler produce verbose output that lists
9438 # what "hidden" libraries, object files and flags are used when
9439 # linking a shared library.
9440 #
9441 # There doesn't appear to be a way to prevent this compiler from
9442 # explicitly linking system object files so we need to strip them
9443 # from the output so that they don't get included in the library
9444 # dependencies.
9445 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'
9446
9447 # Archives containing C++ object files must be created using
9448 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9449 # necessary to make sure instantiated templates are included
9450 # in the archive.
9451 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9452 ;;
9453 gcx)
9454 # Green Hills C++ Compiler
9455 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9456
9457 # The C++ compiler must be used to create the archive.
9458 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9459 ;;
9460 *)
9461 # GNU C++ compiler with Solaris linker
9462 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9463 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9464 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9465 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9466 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9467 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9468
9469 # Commands to make compiler produce verbose output that lists
9470 # what "hidden" libraries, object files and flags are used when
9471 # linking a shared library.
9472 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9473 else
9474 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9475 # platform.
9476 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9477 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9478 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9479
9480 # Commands to make compiler produce verbose output that lists
9481 # what "hidden" libraries, object files and flags are used when
9482 # linking a shared library.
9483 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9484 fi
9485
9486 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9487 fi
9488 ;;
9489 esac
9490 ;;
9491 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9492 archive_cmds_need_lc_CXX=no
9493 ;;
9494 tandem*)
9495 case $cc_basename in
9496 NCC)
9497 # NonStop-UX NCC 3.20
9498 # FIXME: insert proper C++ library support
9499 ld_shlibs_CXX=no
9500 ;;
9501 *)
9502 # FIXME: insert proper C++ library support
9503 ld_shlibs_CXX=no
9504 ;;
9505 esac
9506 ;;
9507 vxworks*)
9508 # FIXME: insert proper C++ library support
9509 ld_shlibs_CXX=no
9510 ;;
9511 *)
9512 # FIXME: insert proper C++ library support
9513 ld_shlibs_CXX=no
9514 ;;
9515esac
9516echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9517echo "${ECHO_T}$ld_shlibs_CXX" >&6
9518test "$ld_shlibs_CXX" = no && can_build_shared=no
9519
9520# Figure out "hidden" C++ library dependencies from verbose
9521# compiler output whening linking a shared library.
9522cat > conftest.$ac_ext <<EOF
9523class Foo
9524{
9525public:
9526 Foo (void) { a = 0; }
9527private:
9528 int a;
9529};
9530EOF
9531
9532
9533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; then
9538 # Parse the compiler output and extract the necessary
9539 # objects, libraries and library flags.
9540
9541 # Sentinel used to keep track of whether or not we are before
9542 # the conftest object file.
9543 pre_test_object_deps_done=no
9544
9545 # The `*' in the case matches for architectures that use `case' in
9546 # $output_verbose_cmd can trigger glob expansion during the loop
9547 # eval without this substitution.
9548 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9549
9550 for p in `eval $output_verbose_link_cmd`; do
9551 case $p in
9552
9553 -L* | -R* | -l*)
9554 # Some compilers place space between "-{L,R}" and the path.
9555 # Remove the space.
9556 if test $p = "-L" \
9557 || test $p = "-R"; then
9558 prev=$p
9559 continue
9560 else
9561 prev=
9562 fi
9563
9564 if test "$pre_test_object_deps_done" = no; then
9565 case $p in
9566 -L* | -R*)
9567 # Internal compiler library paths should come after those
9568 # provided the user. The postdeps already come after the
9569 # user supplied libs so there is no need to process them.
9570 if test -z "$compiler_lib_search_path_CXX"; then
9571 compiler_lib_search_path_CXX="${prev}${p}"
9572 else
9573 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9574 fi
9575 ;;
9576 # The "-l" case would never come before the object being
9577 # linked, so don't bother handling this case.
9578 esac
9579 else
9580 if test -z "$postdeps_CXX"; then
9581 postdeps_CXX="${prev}${p}"
9582 else
9583 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9584 fi
9585 fi
9586 ;;
9587
9588 *.$objext)
9589 # This assumes that the test object file only shows up
9590 # once in the compiler output.
9591 if test "$p" = "conftest.$objext"; then
9592 pre_test_object_deps_done=yes
9593 continue
9594 fi
9595
9596 if test "$pre_test_object_deps_done" = no; then
9597 if test -z "$predep_objects_CXX"; then
9598 predep_objects_CXX="$p"
9599 else
9600 predep_objects_CXX="$predep_objects_CXX $p"
9601 fi
9602 else
9603 if test -z "$postdep_objects_CXX"; then
9604 postdep_objects_CXX="$p"
9605 else
9606 postdep_objects_CXX="$postdep_objects_CXX $p"
9607 fi
9608 fi
9609 ;;
9610
9611 *) ;; # Ignore the rest.
9612
9613 esac
9614 done
9615
9616 # Clean up.
9617 rm -f a.out
9618else
9619 echo "libtool.m4: error: problem compiling C++ test program"
9620fi
9621
9622$rm -f confest.$objext
9623
9624case " $postdeps_CXX " in
9625*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9626*) archive_cmds_need_lc_CXX=yes ;;
9627esac
9628
9629GCC_CXX="$GXX"
9630LD_CXX="$LD"
9631
9632lt_prog_compiler_wl_CXX=
9633lt_prog_compiler_pic_CXX=
9634lt_prog_compiler_static_CXX=
9635
9636echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9637echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9638
9639 # C++ specific cases for pic, static, wl, etc.
9640 if test "$GXX" = yes; then
9641 lt_prog_compiler_wl_CXX='-Wl,'
9642 lt_prog_compiler_static_CXX='-static'
9643
9644 case $host_os in
9645 aix*)
9646 # All AIX code is PIC.
9647 if test "$host_cpu" = ia64; then
9648 # AIX 5 now supports IA64 processor
9649 lt_prog_compiler_static_CXX='-Bstatic'
9650 fi
9651 ;;
9652 amigaos*)
9653 # FIXME: we need at least 68020 code to build shared libraries, but
9654 # adding the `-m68020' flag to GCC prevents building anything better,
9655 # like `-m68040'.
9656 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9657 ;;
9658 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9659 # PIC is the default for these OSes.
9660 ;;
9661 mingw* | os2*)
9662 # This hack is so that the source file can tell whether it is being
9663 # built for inclusion in a dll (and should export symbols for example).
9664 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9665 ;;
9666 darwin* | rhapsody*)
9667 # PIC is the default on this platform
9668 # Common symbols not allowed in MH_DYLIB files
9669 lt_prog_compiler_pic_CXX='-fno-common'
9670 ;;
9671 *djgpp*)
9672 # DJGPP does not support shared libraries at all
9673 lt_prog_compiler_pic_CXX=
9674 ;;
9675 sysv4*MP*)
9676 if test -d /usr/nec; then
9677 lt_prog_compiler_pic_CXX=-Kconform_pic
9678 fi
9679 ;;
9680 hpux*)
9681 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9682 if test "$host_cpu" != ia64; then
9683 lt_prog_compiler_pic_CXX='-fPIC'
9684 fi
9685 ;;
9686 *)
9687 lt_prog_compiler_pic_CXX='-fPIC'
9688 ;;
9689 esac
9690 else
9691 case $host_os in
9692 aix4* | aix5*)
9693 # All AIX code is PIC.
9694 if test "$host_cpu" = ia64; then
9695 # AIX 5 now supports IA64 processor
9696 lt_prog_compiler_static_CXX='-Bstatic'
9697 else
9698 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9699 fi
9700 ;;
9701 chorus*)
9702 case $cc_basename in
9703 cxch68)
9704 # Green Hills C++ Compiler
9705 # _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"
9706 ;;
9707 esac
9708 ;;
9709 dgux*)
9710 case $cc_basename in
9711 ec++)
9712 lt_prog_compiler_pic_CXX='-KPIC'
9713 ;;
9714 ghcx)
9715 # Green Hills C++ Compiler
9716 lt_prog_compiler_pic_CXX='-pic'
9717 ;;
9718 *)
9719 ;;
9720 esac
9721 ;;
9722 freebsd*)
9723 # FreeBSD uses GNU C++
9724 ;;
9725 hpux9* | hpux10* | hpux11*)
9726 case $cc_basename in
9727 CC)
9728 lt_prog_compiler_wl_CXX='-Wl,'
9729 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9730 if test "$host_cpu" != ia64; then
9731 lt_prog_compiler_pic_CXX='+Z'
9732 fi
9733 ;;
9734 aCC)
9735 lt_prog_compiler_wl_CXX='-Wl,'
9736 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9737 if test "$host_cpu" != ia64; then
9738 lt_prog_compiler_pic_CXX='+Z'
9739 fi
9740 ;;
9741 *)
9742 ;;
9743 esac
9744 ;;
9745 irix5* | irix6* | nonstopux*)
9746 case $cc_basename in
9747 CC)
9748 lt_prog_compiler_wl_CXX='-Wl,'
9749 lt_prog_compiler_static_CXX='-non_shared'
9750 # CC pic flag -KPIC is the default.
9751 ;;
9752 *)
9753 ;;
9754 esac
9755 ;;
9756 linux*)
9757 case $cc_basename in
9758 KCC)
9759 # KAI C++ Compiler
9760 lt_prog_compiler_wl_CXX='--backend -Wl,'
9761 lt_prog_compiler_pic_CXX='-fPIC'
9762 ;;
9763 cxx)
9764 # Compaq C++
9765 # Make sure the PIC flag is empty. It appears that all Alpha
9766 # Linux and Compaq Tru64 Unix objects are PIC.
9767 lt_prog_compiler_pic_CXX=
9768 lt_prog_compiler_static_CXX='-non_shared'
9769 ;;
9770 *)
9771 ;;
9772 esac
9773 ;;
9774 lynxos*)
9775 ;;
9776 m88k*)
9777 ;;
9778 mvs*)
9779 case $cc_basename in
9780 cxx)
9781 lt_prog_compiler_pic_CXX='-W c,exportall'
9782 ;;
9783 *)
9784 ;;
9785 esac
9786 ;;
9787 netbsd*)
9788 ;;
9789 osf3* | osf4* | osf5*)
9790 case $cc_basename in
9791 KCC)
9792 lt_prog_compiler_wl_CXX='--backend -Wl,'
9793 ;;
9794 RCC)
9795 # Rational C++ 2.4.1
9796 lt_prog_compiler_pic_CXX='-pic'
9797 ;;
9798 cxx)
9799 # Digital/Compaq C++
9800 lt_prog_compiler_wl_CXX='-Wl,'
9801 # Make sure the PIC flag is empty. It appears that all Alpha
9802 # Linux and Compaq Tru64 Unix objects are PIC.
9803 lt_prog_compiler_pic_CXX=
9804 lt_prog_compiler_static_CXX='-non_shared'
9805 ;;
9806 *)
9807 ;;
9808 esac
9809 ;;
9810 psos*)
9811 ;;
9812 sco*)
9813 case $cc_basename in
9814 CC)
9815 lt_prog_compiler_pic_CXX='-fPIC'
9816 ;;
9817 *)
9818 ;;
9819 esac
9820 ;;
9821 solaris*)
9822 case $cc_basename in
9823 CC)
9824 # Sun C++ 4.2, 5.x and Centerline C++
9825 lt_prog_compiler_pic_CXX='-KPIC'
9826 lt_prog_compiler_static_CXX='-Bstatic'
9827 lt_prog_compiler_wl_CXX='-Qoption ld '
9828 ;;
9829 gcx)
9830 # Green Hills C++ Compiler
9831 lt_prog_compiler_pic_CXX='-PIC'
9832 ;;
9833 *)
9834 ;;
9835 esac
9836 ;;
9837 sunos4*)
9838 case $cc_basename in
9839 CC)
9840 # Sun C++ 4.x
9841 lt_prog_compiler_pic_CXX='-pic'
9842 lt_prog_compiler_static_CXX='-Bstatic'
9843 ;;
9844 lcc)
9845 # Lucid
9846 lt_prog_compiler_pic_CXX='-pic'
9847 ;;
9848 *)
9849 ;;
9850 esac
9851 ;;
9852 tandem*)
9853 case $cc_basename in
9854 NCC)
9855 # NonStop-UX NCC 3.20
9856 lt_prog_compiler_pic_CXX='-KPIC'
9857 ;;
9858 *)
9859 ;;
9860 esac
9861 ;;
9862 unixware*)
9863 ;;
9864 vxworks*)
9865 ;;
9866 *)
9867 lt_prog_compiler_can_build_shared_CXX=no
9868 ;;
9869 esac
9870 fi
9871
9872echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
9873echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9874
9875#
9876# Check to make sure the PIC flag actually works.
9877#
9878if test -n "$lt_prog_compiler_pic_CXX"; then
9879 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9880echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9881if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883else
9884 lt_prog_compiler_pic_works_CXX=no
9885 ac_outfile=conftest.$ac_objext
9886 save_CFLAGS="$CFLAGS"
9887 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
9888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9889 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9890 # The compiler can only warn and ignore the option if not recognized
9891 # So say no if there are warnings
9892 if test -s conftest.err; then
9893 # Append any errors to the config.log.
9894 cat conftest.err 1>&5
9895 else
9896 lt_prog_compiler_pic_works_CXX=yes
9897 fi
9898 fi
9899 $rm conftest*
9900 CFLAGS="$save_CFLAGS"
9901
9902fi
9903echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
9904echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9905
9906if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9907 case $lt_prog_compiler_pic_CXX in
9908 "" | " "*) ;;
9909 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9910 esac
9911else
9912 lt_prog_compiler_pic_CXX=
9913 lt_prog_compiler_can_build_shared_CXX=no
9914fi
9915
9916fi
9917case "$host_os" in
9918 # For platforms which do not support PIC, -DPIC is meaningless:
9919 *djgpp*)
9920 lt_prog_compiler_pic_CXX=
9921 ;;
9922 *)
9923 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9924 ;;
9925esac
9926
9927echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9928echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9929if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932 lt_cv_prog_compiler_c_o_CXX=no
9933 $rm -r conftest 2>/dev/null
9934 mkdir conftest
9935 cd conftest
9936 mkdir out
9937 save_CXXFLAGS="$CXXFLAGS"
9938 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
9939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9940
9941 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9942 # that will create temporary files in the current directory regardless of
9943 # the output directory. Thus, making CWD read-only will cause this test
9944 # to fail, enabling locking or at least warning the user not to do parallel
9945 # builds.
9946 chmod -w .
9947
9948 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
9949 then
9950 # The compiler can only warn and ignore the option if not recognized
9951 # So say no if there are warnings
9952 if test -s out/conftest.err; then
9953 # Append any errors to the config.log.
9954 cat out/conftest.err 1>&5
9955 else
9956 lt_cv_prog_compiler_c_o_CXX=yes
9957 fi
9958 fi
9959 CXXFLAGS="$save_CXXFLAGS"
9960 chmod u+w .
9961 $rm conftest* out/*
9962 rmdir out
9963 cd ..
9964 rmdir conftest
9965 $rm conftest*
9966
9967fi
9968echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
9969echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
9970
9971
9972hard_links="nottested"
9973if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
9974 # do not overwrite the value of need_locks provided by the user
9975 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9976echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9977 hard_links=yes
9978 $rm conftest*
9979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9980 touch conftest.a
9981 ln conftest.a conftest.b 2>&5 || hard_links=no
9982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9983 echo "$as_me:$LINENO: result: $hard_links" >&5
9984echo "${ECHO_T}$hard_links" >&6
9985 if test "$hard_links" = no; then
9986 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9987echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9988 need_locks=warn
9989 fi
9990else
9991 need_locks=no
9992fi
9993
9994echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9995echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9996
9997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
9998 case $host_os in
9999 aix4* | aix5*)
10000 # If we're using GNU nm, then we don't want the "-C" option.
10001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10002 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10003 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10004 else
10005 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10006 fi
10007 ;;
10008 cygwin*)
10009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10010 ;;
10011 mingw* | pw32*)
10012 export_symbols_cmds_CXX="$ltdll_cmds"
10013 ;;
10014 *)
10015 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10016 ;;
10017 esac
10018
10019echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10020echo "${ECHO_T}$ld_shlibs_CXX" >&6
10021test "$ld_shlibs_CXX" = no && can_build_shared=no
10022
10023variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10024if test "$GCC" = yes; then
10025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10026fi
10027
10028#
10029# Do we need to explicitly link libc?
10030#
10031archive_cmds_need_lc_CXX=yes
10032if test "$enable_shared" = yes && test "$GCC" = yes; then
10033 case $archive_cmds_CXX in
10034 *'~'*)
10035 # FIXME: we may have to deal with multi-command sequences.
10036 ;;
10037 '$CC '*)
10038 # Test whether the compiler implicitly links with -lc since on some
10039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10040 # to ld, don't add -lc before -lgcc.
10041 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10042echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10043 $rm conftest*
10044 echo 'static int dummy;' > conftest.$ac_ext
10045
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } 2>conftest.err; then
10051 soname=conftest
10052 lib=conftest
10053 libobjs=conftest.$ac_objext
10054 deplibs=
10055 wl=$lt_prog_compiler_wl_CXX
10056 compiler_flags=-v
10057 linker_flags=-v
10058 verstring=
10059 output_objdir=.
10060 libname=conftest
10061 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10062 allow_undefined_flag_CXX=
10063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10064 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }
10068 then
10069 archive_cmds_need_lc_CXX=no
10070 else
10071 archive_cmds_need_lc_CXX=yes
10072 fi
10073 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10074 else
10075 cat conftest.err 1>&5
10076 fi
10077 $rm conftest*
10078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10079echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10080 ;;
10081 esac
10082fi
10083
10084echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10085echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10086hardcode_action_CXX=
10087if test -n "$hardcode_libdir_flag_spec_CXX" || \
10088 test -n "$runpath_var CXX"; then
10089
10090 # We can hardcode non-existant directories.
10091 if test "$hardcode_direct_CXX" != no &&
10092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10093 # have to relink, otherwise we might link with an installed library
10094 # when we should be linking with a yet-to-be-installed one
10095 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10096 test "$hardcode_minus_L_CXX" != no; then
10097 # Linking always hardcodes the temporary library directory.
10098 hardcode_action_CXX=relink
10099 else
10100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10101 hardcode_action_CXX=immediate
10102 fi
10103else
10104 # We cannot hardcode anything, or else we can only hardcode existing
10105 # directories.
10106 hardcode_action_CXX=unsupported
10107fi
10108echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10109echo "${ECHO_T}$hardcode_action_CXX" >&6
10110
10111if test "$hardcode_action_CXX" = relink; then
10112 # Fast installation is not supported
10113 enable_fast_install=no
10114elif test "$shlibpath_overrides_runpath" = yes ||
10115 test "$enable_shared" = no; then
10116 # Fast installation is not necessary
10117 enable_fast_install=needless
10118fi
10119
10120striplib=
10121old_striplib=
10122echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10123echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10124if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10125 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10126 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132fi
10133
10134echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10135echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10136library_names_spec=
10137libname_spec='lib$name'
10138soname_spec=
10139postinstall_cmds=
10140postuninstall_cmds=
10141finish_cmds=
10142finish_eval=
10143shlibpath_var=
10144shlibpath_overrides_runpath=unknown
10145version_type=none
10146dynamic_linker="$host_os ld.so"
10147sys_lib_dlsearch_path_spec="/lib /usr/lib"
10148if test "$GCC" = yes; then
10149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10150 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
10151 # if the path contains ";" then we assume it to be the separator
10152 # otherwise default to the standard path separator (i.e. ":") - it is
10153 # assumed that no part of a normal pathname contains ";" but that should
10154 # okay in the real world where ";" in dirpaths is itself problematic.
10155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10156 else
10157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10158 fi
10159else
10160 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10161fi
10162need_lib_prefix=unknown
10163hardcode_into_libs=no
10164
10165# when you set need_version to no, make sure it does not cause -set_version
10166# flags to be left without arguments
10167need_version=unknown
10168
10169case $host_os in
10170aix3*)
10171 version_type=linux
10172 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10173 shlibpath_var=LIBPATH
10174
10175 # AIX 3 has no versioning support, so we append a major version to the name.
10176 soname_spec='${libname}${release}.so$major'
10177 ;;
10178
10179aix4* | aix5*)
10180 version_type=linux
10181 if test "$host_cpu" = ia64; then
10182 # AIX 5 supports IA64
10183 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 else
10186 # With GCC up to 2.95.x, collect2 would create an import file
10187 # for dependence libraries. The import file would start with
10188 # the line `#! .'. This would cause the generated library to
10189 # depend on `.', always an invalid library. This was fixed in
10190 # development snapshots of GCC prior to 3.0.
10191 case $host_os in
10192 aix4 | aix4.[01] | aix4.[01].*)
10193 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10194 echo ' yes '
10195 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10196 :
10197 else
10198 can_build_shared=no
10199 fi
10200 ;;
10201 esac
10202 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10203 # soname into executable. Probably we can add versioning support to
10204 # collect2, so additional links can be useful in future.
10205 if test "$aix_use_runtimelinking" = yes; then
10206 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10207 # instead of lib<name>.a to let people know that these are not
10208 # typical AIX shared libraries.
10209 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10210 else
10211 # We preserve .a as extension for shared libraries through AIX4.2
10212 # and later when we are not doing run time linking.
10213 library_names_spec='${libname}${release}.a $libname.a'
10214 soname_spec='${libname}${release}.so$major'
10215 fi
10216 shlibpath_var=LIBPATH
10217 fi
10218 ;;
10219
10220amigaos*)
10221 library_names_spec='$libname.ixlibrary $libname.a'
10222 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10223 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'
10224 ;;
10225
10226beos*)
10227 library_names_spec='${libname}.so'
10228 dynamic_linker="$host_os ld.so"
10229 shlibpath_var=LIBRARY_PATH
10230 ;;
10231
10232bsdi4*)
10233 version_type=linux
10234 need_version=no
10235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10236 soname_spec='${libname}${release}.so$major'
10237 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10240 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10241 # the default ld.so.conf also contains /usr/contrib/lib and
10242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10243 # libtool to hard-code these into programs
10244 ;;
10245
10246cygwin* | mingw* | pw32*)
10247 version_type=windows
10248 need_version=no
10249 need_lib_prefix=no
10250 case $GCC,$host_os in
10251 yes,cygwin*)
10252 library_names_spec='$libname.dll.a'
10253 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10255 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10256 dldir=$destdir/`dirname \$dlpath`~
10257 test -d \$dldir || mkdir -p \$dldir~
10258 $install_prog .libs/$dlname \$dldir/$dlname'
10259 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10260 dlpath=$dir/\$dldll~
10261 $rm \$dlpath'
10262 shlibpath_overrides_runpath=yes
10263 ;;
10264 yes,mingw*)
10265 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10267 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10268 # It is most probably a Windows format PATH printed by
10269 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10270 # path with ; separators, and with drive letters. We can handle the
10271 # drive letters (cygwin fileutils understands them), so leave them,
10272 # especially as we might pass files found there to a mingw objdump,
10273 # which wouldn't understand a cygwinified path. Ahh.
10274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10275 else
10276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10277 fi
10278 ;;
10279 yes,pw32*)
10280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10281 ;;
10282 *)
10283 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10284 ;;
10285 esac
10286 dynamic_linker='Win32 ld.exe'
10287 # FIXME: first we should search . and the directory the executable is in
10288 shlibpath_var=PATH
10289 ;;
10290
10291darwin* | rhapsody*)
10292 dynamic_linker="$host_os dyld"
10293 version_type=darwin
10294 need_lib_prefix=no
10295 need_version=no
10296 # FIXME: Relying on posixy $() will cause problems for
10297 # cross-compilation, but unfortunately the echo tests do not
10298 # yet detect zsh echo's removal of \ escapes.
10299 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)'
10300 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10301 shlibpath_overrides_runpath=yes
10302 shlibpath_var=DYLD_LIBRARY_PATH
10303 ;;
10304
10305dgux*)
10306 version_type=linux
10307 need_lib_prefix=no
10308 need_version=no
10309 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10310 soname_spec='${libname}${release}.so$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 ;;
10313
10314freebsd1*)
10315 dynamic_linker=no
10316 ;;
10317
10318freebsd*)
10319 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10320 version_type=freebsd-$objformat
10321 case $version_type in
10322 freebsd-elf*)
10323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10324 need_version=no
10325 need_lib_prefix=no
10326 ;;
10327 freebsd-*)
10328 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10329 need_version=yes
10330 ;;
10331 esac
10332 shlibpath_var=LD_LIBRARY_PATH
10333 case $host_os in
10334 freebsd2*)
10335 shlibpath_overrides_runpath=yes
10336 ;;
10337 freebsd3.01* | freebsdelf3.01*)
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10340 ;;
10341 *) # from 3.2 on
10342 shlibpath_overrides_runpath=no
10343 hardcode_into_libs=yes
10344 ;;
10345 esac
10346 ;;
10347
10348gnu*)
10349 version_type=linux
10350 need_lib_prefix=no
10351 need_version=no
10352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10353 soname_spec='${libname}${release}.so$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 hardcode_into_libs=yes
10356 ;;
10357
10358hpux9* | hpux10* | hpux11*)
10359 # Give a soname corresponding to the major version so that dld.sl refuses to
10360 # link against other versions.
10361 version_type=sunos
10362 need_lib_prefix=no
10363 need_version=no
10364 if test "$host_cpu" = ia64; then
10365 hardcode_into_libs=yes
10366 dynamic_linker="$host_os dld.so"
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10370 soname_spec='${libname}${release}.so$major'
10371 if test "X$HPUX_IA64_MODE" = X32; then
10372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373 else
10374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375 fi
10376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377 else
10378 dynamic_linker="$host_os dld.sl"
10379 shlibpath_var=SHLIB_PATH
10380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10381 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10382 soname_spec='${libname}${release}.sl$major'
10383 fi
10384 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10385 postinstall_cmds='chmod 555 $lib'
10386 ;;
10387
10388irix5* | irix6* | nonstopux*)
10389 case $host_os in
10390 nonstopux*) version_type=nonstopux ;;
10391 *) version_type=irix ;;
10392 esac
10393 need_lib_prefix=no
10394 need_version=no
10395 soname_spec='${libname}${release}.so$major'
10396 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10397 case $host_os in
10398 irix5* | nonstopux*)
10399 libsuff= shlibsuff=
10400 ;;
10401 *)
10402 case $LD in # libtool.m4 will add one of these switches to LD
10403 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10404 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10405 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10406 *) libsuff= shlibsuff= libmagic=never-match;;
10407 esac
10408 ;;
10409 esac
10410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10411 shlibpath_overrides_runpath=no
10412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10414 ;;
10415
10416# No shared lib support for Linux oldld, aout, or coff.
10417linux*oldld* | linux*aout* | linux*coff*)
10418 dynamic_linker=no
10419 ;;
10420
10421# This must be Linux ELF.
10422linux*)
10423 version_type=linux
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10427 soname_spec='${libname}${release}.so$major'
10428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10431 # This implies no fast_install, which is unacceptable.
10432 # Some rework will be needed to allow for fast_install
10433 # before this can be enabled.
10434 hardcode_into_libs=yes
10435
10436 # We used to test for /lib/ld.so.1 and disable shared libraries on
10437 # powerpc, because MkLinux only supported shared libraries with the
10438 # GNU dynamic linker. Since this was broken with cross compilers,
10439 # most powerpc-linux boxes support dynamic linking these days and
10440 # people can always --disable-shared, the test was removed, and we
10441 # assume the GNU/Linux dynamic linker is in use.
10442 dynamic_linker='GNU/Linux ld.so'
10443 ;;
10444
10445netbsd*)
10446 version_type=sunos
10447 need_lib_prefix=no
10448 need_version=no
10449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10450 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10452 dynamic_linker='NetBSD (a.out) ld.so'
10453 else
10454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10455 soname_spec='${libname}${release}.so$major'
10456 dynamic_linker='NetBSD ld.elf_so'
10457 fi
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes
10460 hardcode_into_libs=yes
10461 ;;
10462
10463newsos6)
10464 version_type=linux
10465 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10468 ;;
10469
10470nto-qnx)
10471 version_type=linux
10472 need_lib_prefix=no
10473 need_version=no
10474 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10475 soname_spec='${libname}${release}.so$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=yes
10478 ;;
10479
10480openbsd*)
10481 version_type=sunos
10482 need_lib_prefix=no
10483 need_version=no
10484 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10488 case $host_os in
10489 openbsd2.[89] | openbsd2.[89].*)
10490 shlibpath_overrides_runpath=no
10491 ;;
10492 *)
10493 shlibpath_overrides_runpath=yes
10494 ;;
10495 esac
10496 else
10497 shlibpath_overrides_runpath=yes
10498 fi
10499 ;;
10500
10501os2*)
10502 libname_spec='$name'
10503 need_lib_prefix=no
10504 library_names_spec='$libname.dll $libname.a'
10505 dynamic_linker='OS/2 ld.exe'
10506 shlibpath_var=LIBPATH
10507 ;;
10508
10509osf3* | osf4* | osf5*)
10510 version_type=osf
10511 need_lib_prefix=no
10512 need_version=no
10513 soname_spec='${libname}${release}.so'
10514 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10518 ;;
10519
10520sco3.2v5*)
10521 version_type=osf
10522 soname_spec='${libname}${release}.so$major'
10523 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 ;;
10526
10527solaris*)
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10532 soname_spec='${libname}${release}.so$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10536 # ldd complains unless libraries are executable
10537 postinstall_cmds='chmod +x $lib'
10538 ;;
10539
10540sunos4*)
10541 version_type=sunos
10542 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=yes
10546 if test "$with_gnu_ld" = yes; then
10547 need_lib_prefix=no
10548 fi
10549 need_version=yes
10550 ;;
10551
10552sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10553 version_type=linux
10554 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10555 soname_spec='${libname}${release}.so$major'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 case $host_vendor in
10558 sni)
10559 shlibpath_overrides_runpath=no
10560 ;;
10561 motorola)
10562 need_lib_prefix=no
10563 need_version=no
10564 shlibpath_overrides_runpath=no
10565 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10566 ;;
10567 esac
10568 ;;
10569
10570sysv4*MP*)
10571 if test -d /usr/nec ;then
10572 version_type=linux
10573 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10574 soname_spec='$libname.so.$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 fi
10577 ;;
10578
10579uts4*)
10580 version_type=linux
10581 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10582 soname_spec='${libname}${release}.so$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 ;;
10585
10586*)
10587 dynamic_linker=no
10588 ;;
10589esac
10590echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10591echo "${ECHO_T}$dynamic_linker" >&6
10592test "$dynamic_linker" = no && can_build_shared=no
10593
10594if test "x$enable_dlopen" != xyes; then
10595 enable_dlopen=unknown
10596 enable_dlopen_self=unknown
10597 enable_dlopen_self_static=unknown
10598else
10599 lt_cv_dlopen=no
10600 lt_cv_dlopen_libs=
10601
10602 case $host_os in
10603 beos*)
10604 lt_cv_dlopen="load_add_on"
10605 lt_cv_dlopen_libs=
10606 lt_cv_dlopen_self=yes
10607 ;;
10608
10609 cygwin* | mingw* | pw32*)
10610 lt_cv_dlopen="LoadLibrary"
10611 lt_cv_dlopen_libs=
10612 ;;
10613
10614 *)
10615 echo "$as_me:$LINENO: checking for shl_load" >&5
10616echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10617if test "${ac_cv_func_shl_load+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620 cat >conftest.$ac_ext <<_ACEOF
10621#line $LINENO "configure"
10622#include "confdefs.h"
10623/* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char shl_load (); below. */
10625#include <assert.h>
10626/* Override any gcc2 internal prototype to avoid an error. */
10627#ifdef __cplusplus
10628extern "C"
10629#endif
10630/* We use char because int might match the return type of a gcc2
10631 builtin and then its argument prototype would still apply. */
10632char shl_load ();
10633char (*f) ();
10634
10635#ifdef F77_DUMMY_MAIN
10636# ifdef __cplusplus
10637 extern "C"
10638# endif
10639 int F77_DUMMY_MAIN() { return 1; }
10640#endif
10641int
10642main ()
10643{
10644/* The GNU C library defines this for functions which it implements
10645 to always fail with ENOSYS. Some functions are actually named
10646 something starting with __ and the normal name is an alias. */
10647#if defined (__stub_shl_load) || defined (__stub___shl_load)
10648choke me
10649#else
10650f = shl_load;
10651#endif
10652
10653 ;
10654 return 0;
10655}
10656_ACEOF
10657rm -f conftest.$ac_objext conftest$ac_exeext
10658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659 (eval $ac_link) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_func_shl_load=yes
10670else
10671 echo "$as_me: failed program was:" >&5
10672cat conftest.$ac_ext >&5
10673ac_cv_func_shl_load=no
10674fi
10675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10676fi
10677echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10678echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10679if test $ac_cv_func_shl_load = yes; then
10680 lt_cv_dlopen="shl_load"
10681else
10682 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10683echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10684if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686else
10687 ac_check_lib_save_LIBS=$LIBS
10688LIBS="-ldld $LIBS"
10689cat >conftest.$ac_ext <<_ACEOF
10690#line $LINENO "configure"
10691#include "confdefs.h"
10692
10693/* Override any gcc2 internal prototype to avoid an error. */
10694#ifdef __cplusplus
10695extern "C"
10696#endif
10697/* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */
10699char shl_load ();
10700#ifdef F77_DUMMY_MAIN
10701# ifdef __cplusplus
10702 extern "C"
10703# endif
10704 int F77_DUMMY_MAIN() { return 1; }
10705#endif
10706int
10707main ()
10708{
10709shl_load ();
10710 ;
10711 return 0;
10712}
10713_ACEOF
10714rm -f conftest.$ac_objext conftest$ac_exeext
10715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716 (eval $ac_link) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 ac_cv_lib_dld_shl_load=yes
10727else
10728 echo "$as_me: failed program was:" >&5
10729cat conftest.$ac_ext >&5
10730ac_cv_lib_dld_shl_load=no
10731fi
10732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10733LIBS=$ac_check_lib_save_LIBS
10734fi
10735echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10736echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10737if test $ac_cv_lib_dld_shl_load = yes; then
10738 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10739else
10740 echo "$as_me:$LINENO: checking for dlopen" >&5
10741echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10742if test "${ac_cv_func_dlopen+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744else
10745 cat >conftest.$ac_ext <<_ACEOF
10746#line $LINENO "configure"
10747#include "confdefs.h"
10748/* System header to define __stub macros and hopefully few prototypes,
10749 which can conflict with char dlopen (); below. */
10750#include <assert.h>
10751/* Override any gcc2 internal prototype to avoid an error. */
10752#ifdef __cplusplus
10753extern "C"
10754#endif
10755/* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10757char dlopen ();
10758char (*f) ();
10759
10760#ifdef F77_DUMMY_MAIN
10761# ifdef __cplusplus
10762 extern "C"
10763# endif
10764 int F77_DUMMY_MAIN() { return 1; }
10765#endif
10766int
10767main ()
10768{
10769/* The GNU C library defines this for functions which it implements
10770 to always fail with ENOSYS. Some functions are actually named
10771 something starting with __ and the normal name is an alias. */
10772#if defined (__stub_dlopen) || defined (__stub___dlopen)
10773choke me
10774#else
10775f = dlopen;
10776#endif
10777
10778 ;
10779 return 0;
10780}
10781_ACEOF
10782rm -f conftest.$ac_objext conftest$ac_exeext
10783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784 (eval $ac_link) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -s conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_func_dlopen=yes
10795else
10796 echo "$as_me: failed program was:" >&5
10797cat conftest.$ac_ext >&5
10798ac_cv_func_dlopen=no
10799fi
10800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10801fi
10802echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10803echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10804if test $ac_cv_func_dlopen = yes; then
10805 lt_cv_dlopen="dlopen"
10806else
10807 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10808echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10809if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811else
10812 ac_check_lib_save_LIBS=$LIBS
10813LIBS="-ldl $LIBS"
10814cat >conftest.$ac_ext <<_ACEOF
10815#line $LINENO "configure"
10816#include "confdefs.h"
10817
10818/* Override any gcc2 internal prototype to avoid an error. */
10819#ifdef __cplusplus
10820extern "C"
10821#endif
10822/* We use char because int might match the return type of a gcc2
10823 builtin and then its argument prototype would still apply. */
10824char dlopen ();
10825#ifdef F77_DUMMY_MAIN
10826# ifdef __cplusplus
10827 extern "C"
10828# endif
10829 int F77_DUMMY_MAIN() { return 1; }
10830#endif
10831int
10832main ()
10833{
10834dlopen ();
10835 ;
10836 return 0;
10837}
10838_ACEOF
10839rm -f conftest.$ac_objext conftest$ac_exeext
10840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10841 (eval $ac_link) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -s conftest$ac_exeext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_lib_dl_dlopen=yes
10852else
10853 echo "$as_me: failed program was:" >&5
10854cat conftest.$ac_ext >&5
10855ac_cv_lib_dl_dlopen=no
10856fi
10857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10858LIBS=$ac_check_lib_save_LIBS
10859fi
10860echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10861echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10862if test $ac_cv_lib_dl_dlopen = yes; then
10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10864else
10865 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10866echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10867if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 ac_check_lib_save_LIBS=$LIBS
10871LIBS="-lsvld $LIBS"
10872cat >conftest.$ac_ext <<_ACEOF
10873#line $LINENO "configure"
10874#include "confdefs.h"
10875
10876/* Override any gcc2 internal prototype to avoid an error. */
10877#ifdef __cplusplus
10878extern "C"
10879#endif
10880/* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10882char dlopen ();
10883#ifdef F77_DUMMY_MAIN
10884# ifdef __cplusplus
10885 extern "C"
10886# endif
10887 int F77_DUMMY_MAIN() { return 1; }
10888#endif
10889int
10890main ()
10891{
10892dlopen ();
10893 ;
10894 return 0;
10895}
10896_ACEOF
10897rm -f conftest.$ac_objext conftest$ac_exeext
10898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_lib_svld_dlopen=yes
10910else
10911 echo "$as_me: failed program was:" >&5
10912cat conftest.$ac_ext >&5
10913ac_cv_lib_svld_dlopen=no
10914fi
10915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10916LIBS=$ac_check_lib_save_LIBS
10917fi
10918echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10919echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10920if test $ac_cv_lib_svld_dlopen = yes; then
10921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10922else
10923 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10924echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10925if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 ac_check_lib_save_LIBS=$LIBS
10929LIBS="-ldld $LIBS"
10930cat >conftest.$ac_ext <<_ACEOF
10931#line $LINENO "configure"
10932#include "confdefs.h"
10933
10934/* Override any gcc2 internal prototype to avoid an error. */
10935#ifdef __cplusplus
10936extern "C"
10937#endif
10938/* We use char because int might match the return type of a gcc2
10939 builtin and then its argument prototype would still apply. */
10940char dld_link ();
10941#ifdef F77_DUMMY_MAIN
10942# ifdef __cplusplus
10943 extern "C"
10944# endif
10945 int F77_DUMMY_MAIN() { return 1; }
10946#endif
10947int
10948main ()
10949{
10950dld_link ();
10951 ;
10952 return 0;
10953}
10954_ACEOF
10955rm -f conftest.$ac_objext conftest$ac_exeext
10956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957 (eval $ac_link) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_lib_dld_dld_link=yes
10968else
10969 echo "$as_me: failed program was:" >&5
10970cat conftest.$ac_ext >&5
10971ac_cv_lib_dld_dld_link=no
10972fi
10973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10974LIBS=$ac_check_lib_save_LIBS
10975fi
10976echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10977echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10978if test $ac_cv_lib_dld_dld_link = yes; then
10979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10980fi
10981
10982
10983fi
10984
10985
10986fi
10987
10988
10989fi
10990
10991
10992fi
10993
10994
10995fi
10996
10997 ;;
10998 esac
10999
11000 if test "x$lt_cv_dlopen" != xno; then
11001 enable_dlopen=yes
11002 else
11003 enable_dlopen=no
11004 fi
11005
11006 case $lt_cv_dlopen in
11007 dlopen)
11008 save_CPPFLAGS="$CPPFLAGS"
11009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11010
11011 save_LDFLAGS="$LDFLAGS"
11012 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11013
11014 save_LIBS="$LIBS"
11015 LIBS="$lt_cv_dlopen_libs $LIBS"
11016
11017 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11018echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11019if test "${lt_cv_dlopen_self+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022 if test "$cross_compiling" = yes; then :
11023 lt_cv_dlopen_self=cross
11024else
11025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11026 lt_status=$lt_dlunknown
11027 cat > conftest.$ac_ext <<EOF
11028#line 11028 "configure"
11029#include "confdefs.h"
11030
11031#if HAVE_DLFCN_H
11032#include <dlfcn.h>
11033#endif
11034
11035#include <stdio.h>
11036
11037#ifdef RTLD_GLOBAL
11038# define LT_DLGLOBAL RTLD_GLOBAL
11039#else
11040# ifdef DL_GLOBAL
11041# define LT_DLGLOBAL DL_GLOBAL
11042# else
11043# define LT_DLGLOBAL 0
11044# endif
11045#endif
11046
11047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11048 find out it does not work in some platform. */
11049#ifndef LT_DLLAZY_OR_NOW
11050# ifdef RTLD_LAZY
11051# define LT_DLLAZY_OR_NOW RTLD_LAZY
11052# else
11053# ifdef DL_LAZY
11054# define LT_DLLAZY_OR_NOW DL_LAZY
11055# else
11056# ifdef RTLD_NOW
11057# define LT_DLLAZY_OR_NOW RTLD_NOW
11058# else
11059# ifdef DL_NOW
11060# define LT_DLLAZY_OR_NOW DL_NOW
11061# else
11062# define LT_DLLAZY_OR_NOW 0
11063# endif
11064# endif
11065# endif
11066# endif
11067#endif
11068
11069#ifdef __cplusplus
11070extern "C" void exit (int);
11071#endif
11072
11073void fnord() { int i=42;}
11074int main ()
11075{
11076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11077 int status = $lt_dlunknown;
11078
11079 if (self)
11080 {
11081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11083 /* dlclose (self); */
11084 }
11085
11086 exit (status);
11087}
11088EOF
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11094 (./conftest; exit; ) 2>/dev/null
11095 lt_status=$?
11096 case x$lt_status in
11097 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11098 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11099 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11100 esac
11101 else :
11102 # compilation failed
11103 lt_cv_dlopen_self=no
11104 fi
11105fi
11106rm -fr conftest*
11107
11108
11109fi
11110echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11111echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11112
11113 if test "x$lt_cv_dlopen_self" = xyes; then
11114 LDFLAGS="$LDFLAGS $link_static_flag"
11115 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11116echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11117if test "${lt_cv_dlopen_self_static+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120 if test "$cross_compiling" = yes; then :
11121 lt_cv_dlopen_self_static=cross
11122else
11123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11124 lt_status=$lt_dlunknown
11125 cat > conftest.$ac_ext <<EOF
11126#line 11126 "configure"
11127#include "confdefs.h"
11128
11129#if HAVE_DLFCN_H
11130#include <dlfcn.h>
11131#endif
11132
11133#include <stdio.h>
11134
11135#ifdef RTLD_GLOBAL
11136# define LT_DLGLOBAL RTLD_GLOBAL
11137#else
11138# ifdef DL_GLOBAL
11139# define LT_DLGLOBAL DL_GLOBAL
11140# else
11141# define LT_DLGLOBAL 0
11142# endif
11143#endif
11144
11145/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11146 find out it does not work in some platform. */
11147#ifndef LT_DLLAZY_OR_NOW
11148# ifdef RTLD_LAZY
11149# define LT_DLLAZY_OR_NOW RTLD_LAZY
11150# else
11151# ifdef DL_LAZY
11152# define LT_DLLAZY_OR_NOW DL_LAZY
11153# else
11154# ifdef RTLD_NOW
11155# define LT_DLLAZY_OR_NOW RTLD_NOW
11156# else
11157# ifdef DL_NOW
11158# define LT_DLLAZY_OR_NOW DL_NOW
11159# else
11160# define LT_DLLAZY_OR_NOW 0
11161# endif
11162# endif
11163# endif
11164# endif
11165#endif
11166
11167#ifdef __cplusplus
11168extern "C" void exit (int);
11169#endif
11170
11171void fnord() { int i=42;}
11172int main ()
11173{
11174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175 int status = $lt_dlunknown;
11176
11177 if (self)
11178 {
11179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11181 /* dlclose (self); */
11182 }
11183
11184 exit (status);
11185}
11186EOF
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11192 (./conftest; exit; ) 2>/dev/null
11193 lt_status=$?
11194 case x$lt_status in
11195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11197 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11198 esac
11199 else :
11200 # compilation failed
11201 lt_cv_dlopen_self_static=no
11202 fi
11203fi
11204rm -fr conftest*
11205
11206
11207fi
11208echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11209echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11210 fi
11211
11212 CPPFLAGS="$save_CPPFLAGS"
11213 LDFLAGS="$save_LDFLAGS"
11214 LIBS="$save_LIBS"
11215 ;;
11216 esac
11217
11218 case $lt_cv_dlopen_self in
11219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11220 *) enable_dlopen_self=unknown ;;
11221 esac
11222
11223 case $lt_cv_dlopen_self_static in
11224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11225 *) enable_dlopen_self_static=unknown ;;
11226 esac
11227fi
11228
11229
11230# The else clause should only fire when bootstrapping the
11231# libtool distribution, otherwise you forgot to ship ltmain.sh
11232# with your package, and you will get complaints that there are
11233# no rules to generate ltmain.sh.
11234if test -f "$ltmain"; then
11235 # Now quote all the things that may contain metacharacters while being
11236 # careful not to overquote the AC_SUBSTed values. We take copies of the
11237 # variables and quote the copies for generation of the libtool script.
11238 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11241 deplibs_check_method reload_flag reload_cmds need_locks \
11242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11243 lt_cv_sys_global_symbol_to_c_name_address \
11244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11245 old_postinstall_cmds old_postuninstall_cmds \
11246 compiler_CXX \
11247 CC_CXX \
11248 LD_CXX \
11249 lt_prog_compiler_wl_CXX \
11250 lt_prog_compiler_pic_CXX \
11251 lt_prog_compiler_static_CXX \
11252 lt_prog_compiler_no_builtin_flag_CXX \
11253 export_dynamic_flag_spec_CXX \
11254 thread_safe_flag_spec_CXX \
11255 whole_archive_flag_spec_CXX \
11256 old_archive_cmds_CXX \
11257 old_archive_from_new_cmds_CXX \
11258 predep_objects_CXX \
11259 postdep_objects_CXX \
11260 predeps_CXX \
11261 postdeps_CXX \
11262 compiler_lib_search_path_CXX \
11263 archive_cmds_CXX \
11264 archive_expsym_cmds_CXX \
11265 postinstall_cmds_CXX \
11266 postuninstall_cmds_CXX \
11267 old_archive_from_expsyms_cmds_CXX \
11268 allow_undefined_flag_CXX \
11269 no_undefined_flag_CXX \
11270 export_symbols_cmds_CXX \
11271 hardcode_libdir_flag_spec_CXX \
11272 hardcode_libdir_separator_CXX \
11273 lt_cv_prog_compiler_c_o_CXX \
11274 exclude_expsyms_CXX \
11275 include_expsyms_CXX; do
11276
11277 case $var in
11278 old_archive_cmds_CXX | \
11279 old_archive_from_new_cmds_CXX | \
11280 archive_cmds_CXX | \
11281 archive_expsym_cmds_CXX | \
11282 old_archive_from_expsyms_cmds_CXX | \
11283 export_symbols_cmds_CXX | \
11284 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11285 postinstall_cmds | postuninstall_cmds | \
11286 old_postinstall_cmds | old_postuninstall_cmds | \
11287 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11288 # Double-quote double-evaled strings.
11289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11290 ;;
11291 *)
11292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11293 ;;
11294 esac
11295 done
11296
11297 case $lt_echo in
11298 *'\$0 --fallback-echo"')
11299 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11300 ;;
11301 esac
11302
11303cfgfile="$ofile"
11304
11305 cat <<__EOF__ >> "$cfgfile"
11306# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11307
11308# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11309
11310# Shell to use when invoking shell scripts.
11311SHELL=$lt_SHELL
11312
11313# Whether or not to build shared libraries.
11314build_libtool_libs=$enable_shared
11315
11316# Whether or not to build static libraries.
11317build_old_libs=$enable_static
11318
11319# Whether or not to add -lc for building shared libraries.
11320build_libtool_need_lc=$archive_cmds_need_lc_CXX
11321
11322# Whether or not to optimize for fast installation.
11323fast_install=$enable_fast_install
11324
11325# The host system.
11326host_alias=$host_alias
11327host=$host
11328
11329# An echo program that does not interpret backslashes.
11330echo=$lt_echo
11331
11332# The archiver.
11333AR=$lt_AR
11334AR_FLAGS=$lt_AR_FLAGS
11335
11336# A C compiler.
11337LTCC=$lt_LTCC
11338
11339# A language-specific compiler.
11340CC=$lt_compiler_CXX
11341
11342# Is the compiler the GNU C compiler?
11343with_gcc=$GCC_CXX
11344
11345# The linker used to build libraries.
11346LD=$lt_LD_CXX
11347
11348# Whether we need hard or soft links.
11349LN_S=$lt_LN_S
11350
11351# A BSD-compatible nm program.
11352NM=$lt_NM
11353
11354# A sed program that does not truncate output.
11355SED=$lt_SED
11356
11357# A symbol stripping program
11358STRIP=$STRIP
11359
11360# Used to examine libraries when file_magic_cmd begins "file"
11361MAGIC_CMD=$MAGIC_CMD
11362
11363# Used on cygwin: DLL creation program.
11364DLLTOOL="$DLLTOOL"
11365
11366# Used on cygwin: object dumper.
11367OBJDUMP="$OBJDUMP"
11368
11369# Used on cygwin: assembler.
11370AS="$AS"
11371
11372# The name of the directory that contains temporary libtool files.
11373objdir=$objdir
11374
11375# How to create reloadable object files.
11376reload_flag=$lt_reload_flag
11377reload_cmds=$lt_reload_cmds
11378
11379# How to pass a linker flag through the compiler.
11380wl=$lt_lt_prog_compiler_wl_CXX
11381
11382# Object file suffix (normally "o").
11383objext="$ac_objext"
11384
11385# Old archive suffix (normally "a").
11386libext="$libext"
11387
11388# Executable file suffix (normally "").
11389exeext="$exeext"
11390
11391# Additional compiler flags for building library objects.
11392pic_flag=$lt_lt_prog_compiler_pic_CXX
11393pic_mode=$pic_mode
11394
11395# What is the maximum length of a command?
11396max_cmd_len=$lt_cv_sys_max_cmd_len
11397
11398# Does compiler simultaneously support -c and -o options?
11399compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11400
11401# Must we lock files when doing compilation ?
11402need_locks=$lt_need_locks
11403
11404# Do we need the lib prefix for modules?
11405need_lib_prefix=$need_lib_prefix
11406
11407# Do we need a version for libraries?
11408need_version=$need_version
11409
11410# Whether dlopen is supported.
11411dlopen_support=$enable_dlopen
11412
11413# Whether dlopen of programs is supported.
11414dlopen_self=$enable_dlopen_self
11415
11416# Whether dlopen of statically linked programs is supported.
11417dlopen_self_static=$enable_dlopen_self_static
11418
11419# Compiler flag to prevent dynamic linking.
11420link_static_flag=$lt_lt_prog_compiler_static_CXX
11421
11422# Compiler flag to turn off builtin functions.
11423no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11424
11425# Compiler flag to allow reflexive dlopens.
11426export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11427
11428# Compiler flag to generate shared objects directly from archives.
11429whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11430
11431# Compiler flag to generate thread-safe objects.
11432thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11433
11434# Library versioning type.
11435version_type=$version_type
11436
11437# Format of library name prefix.
11438libname_spec=$lt_libname_spec
11439
11440# List of archive names. First name is the real one, the rest are links.
11441# The last name is the one that the linker finds with -lNAME.
11442library_names_spec=$lt_library_names_spec
11443
11444# The coded name of the library, if different from the real name.
11445soname_spec=$lt_soname_spec
11446
11447# Commands used to build and install an old-style archive.
11448RANLIB=$lt_RANLIB
11449old_archive_cmds=$lt_old_archive_cmds_CXX
11450old_postinstall_cmds=$lt_old_postinstall_cmds
11451old_postuninstall_cmds=$lt_old_postuninstall_cmds
11452
11453# Create an old-style archive from a shared archive.
11454old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11455
11456# Create a temporary old-style archive to link instead of a shared archive.
11457old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11458
11459# Commands used to build and install a shared archive.
11460archive_cmds=$lt_archive_cmds_CXX
11461archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11462postinstall_cmds=$lt_postinstall_cmds
11463postuninstall_cmds=$lt_postuninstall_cmds
11464
11465# Commands to strip libraries.
11466old_striplib=$lt_old_striplib
11467striplib=$lt_striplib
11468
11469# Dependencies to place before the objects being linked to create a
11470# shared library.
11471predep_objects=$lt_predep_objects_CXX
11472
11473# Dependencies to place after the objects being linked to create a
11474# shared library.
11475postdep_objects=$lt_postdep_objects_CXX
11476
11477# Dependencies to place before the objects being linked to create a
11478# shared library.
11479predeps=$lt_predeps_CXX
11480
11481# Dependencies to place after the objects being linked to create a
11482# shared library.
11483postdeps=$lt_postdeps_CXX
11484
11485# The library search path used internally by the compiler when linking
11486# a shared library.
11487compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11488
11489# Method to check whether dependent libraries are shared objects.
11490deplibs_check_method=$lt_deplibs_check_method
11491
11492# Command to use when deplibs_check_method == file_magic.
11493file_magic_cmd=$lt_file_magic_cmd
11494
11495# Flag that allows shared libraries with undefined symbols to be built.
11496allow_undefined_flag=$lt_allow_undefined_flag_CXX
11497
11498# Flag that forces no undefined symbols.
11499no_undefined_flag=$lt_no_undefined_flag_CXX
11500
11501# Commands used to finish a libtool library installation in a directory.
11502finish_cmds=$lt_finish_cmds
11503
11504# Same as above, but a single script fragment to be evaled but not shown.
11505finish_eval=$lt_finish_eval
11506
11507# Take the output of nm and produce a listing of raw symbols and C names.
11508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11509
11510# Transform the output of nm in a proper C declaration
11511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11512
11513# Transform the output of nm in a C name address pair
11514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11515
11516# This is the shared library runtime path variable.
11517runpath_var=$runpath_var
11518
11519# This is the shared library path variable.
11520shlibpath_var=$shlibpath_var
11521
11522# Is shlibpath searched before the hard-coded library search path?
11523shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11524
11525# How to hardcode a shared library path into an executable.
11526hardcode_action=$hardcode_action_CXX
11527
11528# Whether we should hardcode library paths into libraries.
11529hardcode_into_libs=$hardcode_into_libs
11530
11531# Flag to hardcode \$libdir into a binary during linking.
11532# This must work even if \$libdir does not exist.
11533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11534
11535# Whether we need a single -rpath flag with a separated argument.
11536hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11537
11538# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11539# resulting binary.
11540hardcode_direct=$hardcode_direct_CXX
11541
11542# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11543# resulting binary.
11544hardcode_minus_L=$hardcode_minus_L_CXX
11545
11546# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11547# the resulting binary.
11548hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11549
11550# Variables whose values should be saved in libtool wrapper scripts and
11551# restored at relink time.
11552variables_saved_for_relink="$variables_saved_for_relink"
11553
11554# Whether libtool must link a program against all its dependency libraries.
11555link_all_deplibs=$link_all_deplibs_CXX
11556
11557# Compile-time system search path for libraries
11558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11559
11560# Run-time system search path for libraries
11561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11562
11563# Fix the shell variable \$srcfile for the compiler.
11564fix_srcfile_path="$fix_srcfile_path_CXX"
11565
11566# Set to yes if exported symbols are required.
11567always_export_symbols=$always_export_symbols_CXX
11568
11569# The commands to list exported symbols.
11570export_symbols_cmds=$lt_export_symbols_cmds_CXX
11571
11572# The commands to extract the exported symbol list from a shared archive.
11573extract_expsyms_cmds=$lt_extract_expsyms_cmds
11574
11575# Symbols that should not be listed in the preloaded symbols.
11576exclude_expsyms=$lt_exclude_expsyms_CXX
11577
11578# Symbols that must always be exported.
11579include_expsyms=$lt_include_expsyms_CXX
11580
11581# ### END LIBTOOL TAG CONFIG: $tagname
11582
11583__EOF__
11584
11585
11586else
11587 # If there is no Makefile yet, we rely on a make rule to execute
11588 # `config.status --recheck' to rerun these tests and create the
11589 # libtool script then.
11590 test -f Makefile && make "$ltmain"
11591fi
11592
11593
11594ac_ext=cc
11595ac_cpp='$CXXCPP $CPPFLAGS'
11596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11599
11600CC="$lt_save_CC"
11601
11602 ;;
11603
11604 GCJ)
11605
11606
11607
11608# Source file extension for C test sources.
11609ac_ext=java
11610
11611# Object file extension for compiled C test sources.
11612objext=o
11613objext_GCJ=$objext
11614
11615# Code to be used in simple compile tests
11616lt_simple_compile_test_code="class foo {};"
11617
11618# Code to be used in simple link tests
11619lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
11620
11621# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11622
11623# If no C compiler was specified, use CC.
11624LTCC=${LTCC-"$CC"}
11625
11626# Allow CC to be a program name with arguments.
11627set dummy $CC
11628compiler="$2"
11629
11630
11631# Allow CC to be a program name with arguments.
11632lt_save_CC="$CC"
11633CC=${GCJ-"gcj"}
11634set dummy $CC
11635compiler="$2"
11636compiler_GCJ=$CC
11637
11638# GCJ did not exist at the time GCC didn't implicitly link libc in.
11639archive_cmds_need_lc_GCJ=no
11640
11641
11642lt_prog_compiler_no_builtin_flag_GCJ=
11643
11644if test "$GCC" = yes; then
11645 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
11646
11647 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11648echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11649if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651else
11652 lt_cv_prog_compiler_rtti_exceptions=no
11653 ac_outfile=conftest.$ac_objext
11654 save_CFLAGS="$CFLAGS"
11655 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11657 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11658 # The compiler can only warn and ignore the option if not recognized
11659 # So say no if there are warnings
11660 if test -s conftest.err; then
11661 # Append any errors to the config.log.
11662 cat conftest.err 1>&5
11663 else
11664 lt_cv_prog_compiler_rtti_exceptions=yes
11665 fi
11666 fi
11667 $rm conftest*
11668 CFLAGS="$save_CFLAGS"
11669
11670fi
11671echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11672echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11673
11674if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11675 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11676else
11677 :
11678fi
11679
11680fi
11681
11682lt_prog_compiler_wl_GCJ=
11683lt_prog_compiler_pic_GCJ=
11684lt_prog_compiler_static_GCJ=
11685
11686echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11687echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11688
11689 if test "$GCC" = yes; then
11690 lt_prog_compiler_wl_GCJ='-Wl,'
11691 lt_prog_compiler_static_GCJ='-static'
11692
11693 case $host_os in
11694 aix*)
11695 # All AIX code is PIC.
11696 if test "$host_cpu" = ia64; then
11697 # AIX 5 now supports IA64 processor
11698 lt_prog_compiler_static_GCJ='-Bstatic'
11699 fi
11700 ;;
11701
11702 amigaos*)
11703 # FIXME: we need at least 68020 code to build shared libraries, but
11704 # adding the `-m68020' flag to GCC prevents building anything better,
11705 # like `-m68040'.
11706 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
11707 ;;
11708
11709 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11710 # PIC is the default for these OSes.
11711 ;;
11712
11713 mingw* | pw32* | os2*)
11714 # This hack is so that the source file can tell whether it is being
11715 # built for inclusion in a dll (and should export symbols for example).
11716 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11717 ;;
11718
11719 darwin* | rhapsody*)
11720 # PIC is the default on this platform
11721 # Common symbols not allowed in MH_DYLIB files
11722 lt_prog_compiler_pic_GCJ='-fno-common'
11723 ;;
11724
11725 msdosdjgpp*)
11726 # Just because we use GCC doesn't mean we suddenly get shared libraries
11727 # on systems that don't support them.
11728 lt_prog_compiler_can_build_shared_GCJ=no
11729 enable_shared=no
11730 ;;
11731
11732 sysv4*MP*)
11733 if test -d /usr/nec; then
11734 lt_prog_compiler_pic_GCJ=-Kconform_pic
11735 fi
11736 ;;
11737
11738 hpux*)
11739 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11740 if test "$host_cpu" != ia64; then
11741 lt_prog_compiler_pic_GCJ='-fPIC'
11742 fi
11743 ;;
11744
11745 *)
11746 lt_prog_compiler_pic_GCJ='-fPIC'
11747 ;;
11748 esac
11749 else
11750 # PORTME Check for flag to pass linker flags through the system compiler.
11751 case $host_os in
11752 aix*)
11753 lt_prog_compiler_wl_GCJ='-Wl,'
11754 if test "$host_cpu" = ia64; then
11755 # AIX 5 now supports IA64 processor
11756 lt_prog_compiler_static_GCJ='-Bstatic'
11757 else
11758 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
11759 fi
11760 ;;
11761
11762 mingw* | pw32* | os2*)
11763 # This hack is so that the source file can tell whether it is being
11764 # built for inclusion in a dll (and should export symbols for example).
11765 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11766 ;;
11767
11768 hpux9* | hpux10* | hpux11*)
11769 lt_prog_compiler_wl_GCJ='-Wl,'
11770 if test "$host_cpu" != ia64; then
11771 lt_prog_compiler_pic_GCJ='+Z'
11772 fi
11773 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11774 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
11775 ;;
11776
11777 irix5* | irix6* | nonstopux*)
11778 lt_prog_compiler_wl_GCJ='-Wl,'
11779 # PIC (with -KPIC) is the default.
11780 lt_prog_compiler_static_GCJ='-non_shared'
11781 ;;
11782
11783 newsos6)
11784 lt_prog_compiler_pic_GCJ='-KPIC'
11785 lt_prog_compiler_static_GCJ='-Bstatic'
11786 ;;
11787
11788 osf3* | osf4* | osf5*)
11789 lt_prog_compiler_wl_GCJ='-Wl,'
11790 # All OSF/1 code is PIC.
11791 lt_prog_compiler_static_GCJ='-non_shared'
11792 ;;
11793
11794 sco3.2v5*)
11795 lt_prog_compiler_pic_GCJ='-Kpic'
11796 lt_prog_compiler_static_GCJ='-dn'
11797 ;;
11798
11799 solaris*)
11800 lt_prog_compiler_wl_GCJ='-Wl,'
11801 lt_prog_compiler_pic_GCJ='-KPIC'
11802 lt_prog_compiler_static_GCJ='-Bstatic'
11803 ;;
11804
11805 sunos4*)
11806 lt_prog_compiler_wl_GCJ='-Qoption ld '
11807 lt_prog_compiler_pic_GCJ='-PIC'
11808 lt_prog_compiler_static_GCJ='-Bstatic'
11809 ;;
11810
11811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11812 if test "x$host_vendor" = xsni; then
11813 lt_prog_compiler_wl_GCJ='-LD'
11814 else
11815 lt_prog_compiler_wl_GCJ='-Wl,'
11816 fi
11817 lt_prog_compiler_pic_GCJ='-KPIC'
11818 lt_prog_compiler_static_GCJ='-Bstatic'
11819 ;;
11820
11821 sysv4*MP*)
11822 if test -d /usr/nec ;then
11823 lt_prog_compiler_pic_GCJ='-Kconform_pic'
11824 lt_prog_compiler_static_GCJ='-Bstatic'
11825 fi
11826 ;;
11827
11828 uts4*)
11829 lt_prog_compiler_pic_GCJ='-pic'
11830 lt_prog_compiler_static_GCJ='-Bstatic'
11831 ;;
11832
11833 *)
11834 lt_prog_compiler_can_build_shared_GCJ=no
11835 ;;
11836 esac
11837 fi
11838
11839echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
11840echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
11841
11842#
11843# Check to make sure the PIC flag actually works.
11844#
11845if test -n "$lt_prog_compiler_pic_GCJ"; then
11846 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
11847echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
11848if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850else
11851 lt_prog_compiler_pic_works_GCJ=no
11852 ac_outfile=conftest.$ac_objext
11853 save_CFLAGS="$CFLAGS"
11854 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ"
11855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11856 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11857 # The compiler can only warn and ignore the option if not recognized
11858 # So say no if there are warnings
11859 if test -s conftest.err; then
11860 # Append any errors to the config.log.
11861 cat conftest.err 1>&5
11862 else
11863 lt_prog_compiler_pic_works_GCJ=yes
11864 fi
11865 fi
11866 $rm conftest*
11867 CFLAGS="$save_CFLAGS"
11868
11869fi
11870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
11871echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
11872
11873if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
11874 case $lt_prog_compiler_pic_GCJ in
11875 "" | " "*) ;;
11876 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
11877 esac
11878else
11879 lt_prog_compiler_pic_GCJ=
11880 lt_prog_compiler_can_build_shared_GCJ=no
11881fi
11882
11883fi
11884case "$host_os" in
11885 # For platforms which do not support PIC, -DPIC is meaningless:
11886 *djgpp*)
11887 lt_prog_compiler_pic_GCJ=
11888 ;;
11889 *)
11890 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
11891 ;;
11892esac
11893
11894echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11895echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11896if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 lt_cv_prog_compiler_c_o_GCJ=no
11900 $rm -r conftest 2>/dev/null
11901 mkdir conftest
11902 cd conftest
11903 mkdir out
11904 save_GCJFLAGS="$CFLAGS"
11905 CFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
11906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11907
11908 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11909 # that will create temporary files in the current directory regardless of
11910 # the output directory. Thus, making CWD read-only will cause this test
11911 # to fail, enabling locking or at least warning the user not to do parallel
11912 # builds.
11913 chmod -w .
11914
11915 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
11916 then
11917 # The compiler can only warn and ignore the option if not recognized
11918 # So say no if there are warnings
11919 if test -s out/conftest.err; then
11920 # Append any errors to the config.log.
11921 cat out/conftest.err 1>&5
11922 else
11923 lt_cv_prog_compiler_c_o_GCJ=yes
11924 fi
11925 fi
11926 CFLAGS="$save_CFLAGS"
11927 chmod u+w .
11928 $rm conftest* out/*
11929 rmdir out
11930 cd ..
11931 rmdir conftest
11932 $rm conftest*
11933
11934fi
11935echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
11936echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
11937
11938
11939hard_links="nottested"
11940if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
11941 # do not overwrite the value of need_locks provided by the user
11942 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11943echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11944 hard_links=yes
11945 $rm conftest*
11946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11947 touch conftest.a
11948 ln conftest.a conftest.b 2>&5 || hard_links=no
11949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11950 echo "$as_me:$LINENO: result: $hard_links" >&5
11951echo "${ECHO_T}$hard_links" >&6
11952 if test "$hard_links" = no; then
11953 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11954echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11955 need_locks=warn
11956 fi
11957else
11958 need_locks=no
11959fi
11960
11961echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11962echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11963
11964 runpath_var=
11965 allow_undefined_flag_GCJ=
11966
11967 archive_cmds_GCJ=
11968 archive_cmds_need_lc_GCJ=
11969 archive_expsym_cmds_GCJ=
11970 old_archive_From_new_cmds_GCJ=
11971 old_archive_from_expsyms_cmds_GCJ=
11972 export_dynamic_flag_spec_GCJ=
11973 whole_archive_flag_spec_GCJ=
11974 thread_safe_flag_spec_GCJ=
11975 hardcode_libdir_flag_spec_GCJ=
11976 hardcode_libdir_separator_GCJ=
11977 hardcode_direct_GCJ=no
11978 hardcode_minus_L_GCJ=no
11979 hardcode_shlibpath_var_GCJ=unsupported
11980 link_all_deplibs_GCJ=unknown
11981 always_export_symbols_GCJ=no
11982 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
11983 # include_expsyms should be a list of space-separated symbols to be *always*
11984 # included in the symbol list
11985 include_expsyms_GCJ=
11986 # exclude_expsyms can be an egrep regular expression of symbols to exclude
11987 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11989 # as well as any symbol that contains `d'.
11990 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
11991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11992 # platforms (ab)use it in PIC code, but their linkers get confused if
11993 # the symbol is explicitly referenced. Since portable code cannot
11994 # rely on this symbol name, it's probably fine to never include it in
11995 # preloaded symbol tables.
11996 extract_expsyms_cmds=
11997
11998 case $host_os in
11999 cygwin* | mingw* | pw32*)
12000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12001 # When not using gcc, we currently assume that we are using
12002 # Microsoft Visual C++.
12003 if test "$GCC" != yes; then
12004 with_gnu_ld=no
12005 fi
12006 ;;
12007 openbsd*)
12008 with_gnu_ld=no
12009 ;;
12010 esac
12011
12012 ld_shlibs_GCJ=yes
12013 if test "$with_gnu_ld" = yes; then
12014 # If archive_cmds runs LD, not CC, wlarc should be empty
12015 wlarc='${wl}'
12016
12017 # See if GNU ld supports shared libraries.
12018 case $host_os in
12019 aix3* | aix4* | aix5*)
12020 # On AIX/PPC, the GNU linker is very broken
12021 if test "$host_cpu" != ia64; then
12022 ld_shlibs_GCJ=no
12023 cat <<EOF 1>&2
12024
12025*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12026*** to be unable to reliably create shared libraries on AIX.
12027*** Therefore, libtool is disabling shared libraries support. If you
12028*** really care for shared libraries, you may want to modify your PATH
12029*** so that a non-GNU linker is found, and then restart.
12030
12031EOF
12032 fi
12033 ;;
12034
12035 amigaos*)
12036 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)'
12037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12038 hardcode_minus_L_GCJ=yes
12039
12040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12041 # that the semantics of dynamic libraries on AmigaOS, at least up
12042 # to version 4, is to share data among multiple programs linked
12043 # with the same dynamic library. Since this doesn't match the
12044 # behavior of shared libraries on other platforms, we can't use
12045 # them.
12046 ld_shlibs_GCJ=no
12047 ;;
12048
12049 beos*)
12050 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12051 allow_undefined_flag_GCJ=unsupported
12052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12053 # support --undefined. This deserves some investigation. FIXME
12054 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055 else
12056 ld_shlibs_GCJ=no
12057 fi
12058 ;;
12059
12060 cygwin*)
12061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12062 # as there is no search path for DLLs.
12063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12064 allow_undefined_flag_GCJ=
12065 always_export_symbols_GCJ=yes
12066
12067 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
12068 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12069 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
12070 else
12071 ld_shlibs=no
12072 fi
12073 ;;
12074
12075 mingw* | pw32*)
12076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12077 # no search path for DLLs.
12078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12079 allow_undefined_flag_GCJ=unsupported
12080 always_export_symbols_GCJ=yes
12081
12082 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12083 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12084 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12085 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12086 else $CC -o impgen impgen.c ; fi)~
12087 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12088
12089 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12090
12091 # FIXME: what about values for MSVC?
12092 dll_entry=__cygwin_dll_entry@12
12093 case $host_os in
12094 mingw*)
12095 # mingw values
12096 dll_entry=_DllMainCRTStartup@12
12097 ;;
12098 esac
12099
12100 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12101
12102 # recent cygwin and mingw systems supply a stub DllMain which the user
12103 # can override, but on older systems we have to supply one (in ltdll.c)
12104 if test "x$lt_cv_need_dllmain" = "xyes"; then
12105 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12106 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~
12107 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12108 else
12109 ltdll_obj=
12110 ltdll_cmds=
12111 fi
12112
12113 # Extract the symbol export list from an `--export-all' def file,
12114 # then regenerate the def file from the symbol export list, so that
12115 # the compiled dll only exports the symbol export list.
12116 # Be careful not to strip the DATA tag left by newer dlltools.
12117 export_symbols_cmds_GCJ="$ltdll_cmds"'
12118 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12119 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12120
12121 # If the export-symbols file already is a .def file (1st line
12122 # is EXPORTS), use it as is.
12123 # If DATA tags from a recent dlltool are present, honour them!
12124 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12125 cp $export_symbols $output_objdir/$soname-def;
12126 else
12127 echo EXPORTS > $output_objdir/$soname-def;
12128 _lt_hint=1;
12129 cat $export_symbols | while read symbol; do
12130 set dummy \$symbol;
12131 case \$# in
12132 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12133 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12134 esac;
12135 _lt_hint=`expr 1 + \$_lt_hint`;
12136 done;
12137 fi~
12138 '"$ltdll_cmds"'
12139 $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~
12140 $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~
12141 $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~
12142 $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~
12143 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12144 ;;
12145
12146 netbsd*)
12147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12148 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12149 wlarc=
12150 else
12151 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12152 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12153 fi
12154 ;;
12155
12156 solaris* | sysv5*)
12157 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12158 ld_shlibs_GCJ=no
12159 cat <<EOF 1>&2
12160
12161*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12162*** create shared libraries on Solaris systems. Therefore, libtool
12163*** is disabling shared libraries support. We urge you to upgrade GNU
12164*** binutils to release 2.9.1 or newer. Another option is to modify
12165*** your PATH or compiler configuration so that the native linker is
12166*** used, and then restart.
12167
12168EOF
12169 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12170 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12171 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12172 else
12173 ld_shlibs_GCJ=no
12174 fi
12175 ;;
12176
12177 sunos4*)
12178 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12179 wlarc=
12180 hardcode_direct_GCJ=yes
12181 hardcode_shlibpath_var_GCJ=no
12182 ;;
12183
12184 *)
12185 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12188 else
12189 ld_shlibs_GCJ=no
12190 fi
12191 ;;
12192 esac
12193
12194 if test "$ld_shlibs_GCJ" = yes; then
12195 runpath_var=LD_RUN_PATH
12196 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12197 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12198 case $host_os in
12199 cygwin* | mingw* | pw32*)
12200 # dlltool doesn't understand --whole-archive et. al.
12201 whole_archive_flag_spec_GCJ=
12202 ;;
12203 *)
12204 # ancient GNU ld didn't support --whole-archive et. al.
12205 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12206 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12207 else
12208 whole_archive_flag_spec_GCJ=
12209 fi
12210 ;;
12211 esac
12212 fi
12213 else
12214 # PORTME fill in a description of your system's linker (not GNU ld)
12215 case $host_os in
12216 aix3*)
12217 allow_undefined_flag_GCJ=unsupported
12218 always_export_symbols_GCJ=yes
12219 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'
12220 # Note: this linker hardcodes the directories in LIBPATH if there
12221 # are no directories specified by -L.
12222 hardcode_minus_L_GCJ=yes
12223 if test "$GCC" = yes && test -z "$link_static_flag"; then
12224 # Neither direct hardcoding nor static linking is supported with a
12225 # broken collect2.
12226 hardcode_direct_GCJ=unsupported
12227 fi
12228 ;;
12229
12230 aix4* | aix5*)
12231 if test "$host_cpu" = ia64; then
12232 # On IA64, the linker does run time linking by default, so we don't
12233 # have to do anything special.
12234 aix_use_runtimelinking=no
12235 exp_sym_flag='-Bexport'
12236 no_entry_flag=""
12237 else
12238 # If we're using GNU nm, then we don't want the "-C" option.
12239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12240 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12241 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12242 else
12243 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12244 fi
12245 aix_use_runtimelinking=no
12246
12247 # Test if we are trying to use run time linking or normal
12248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12249 # need to do runtime linking.
12250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12251 for ld_flag in $LDFLAGS; do
12252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12253 aix_use_runtimelinking=yes
12254 break
12255 fi
12256 done
12257 esac
12258
12259 exp_sym_flag='-bexport'
12260 no_entry_flag='-bnoentry'
12261 fi
12262
12263 # When large executables or shared objects are built, AIX ld can
12264 # have problems creating the table of contents. If linking a library
12265 # or program results in "error TOC overflow" add -mminimal-toc to
12266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12268
12269 archive_cmds_GCJ=''
12270 hardcode_direct_GCJ=yes
12271 hardcode_libdir_separator_GCJ=':'
12272 link_all_deplibs_GCJ=yes
12273
12274 if test "$GCC" = yes; then
12275 case $host_os in aix4.012|aix4.012.*)
12276 # We only want to do this on AIX 4.2 and lower, the check
12277 # below for broken collect2 doesn't work under 4.3+
12278 collect2name=`${CC} -print-prog-name=collect2`
12279 if test -f "$collect2name" && \
12280 strings "$collect2name" | grep resolve_lib_name >/dev/null
12281 then
12282 # We have reworked collect2
12283 hardcode_direct_GCJ=yes
12284 else
12285 # We have old collect2
12286 hardcode_direct_GCJ=unsupported
12287 # It fails to find uninstalled libraries when the uninstalled
12288 # path is not listed in the libpath. Setting hardcode_minus_L
12289 # to unsupported forces relinking
12290 hardcode_minus_L_GCJ=yes
12291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12292 hardcode_libdir_separator_GCJ=
12293 fi
12294 esac
12295 shared_flag='-shared'
12296 else
12297 # not using gcc
12298 if test "$host_cpu" = ia64; then
12299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12300 # chokes on -Wl,-G. The following line is correct:
12301 shared_flag='-G'
12302 else
12303 if test "$aix_use_runtimelinking" = yes; then
12304 shared_flag='${wl}-G'
12305 else
12306 shared_flag='${wl}-bM:SRE'
12307 fi
12308 fi
12309 fi
12310
12311 # It seems that -bexpall does not export symbols beginning with
12312 # underscore (_), so it is better to generate a list of symbols to export.
12313 always_export_symbols_GCJ=yes
12314 if test "$aix_use_runtimelinking" = yes; then
12315 # Warning - without using the other runtime loading flags (-brtl),
12316 # -berok will link without error, but may produce a broken library.
12317 allow_undefined_flag_GCJ='-berok'
12318 # Determine the default libpath from the value encoded in an empty executable.
12319 cat >conftest.$ac_ext <<_ACEOF
12320#line $LINENO "configure"
12321#include "confdefs.h"
12322
12323#ifdef F77_DUMMY_MAIN
12324# ifdef __cplusplus
12325 extern "C"
12326# endif
12327 int F77_DUMMY_MAIN() { return 1; }
12328#endif
12329int
12330main ()
12331{
12332
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext conftest$ac_exeext
12338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349
12350aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12351}'`
12352# Check for a 64-bit object if we didn't find anything.
12353if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12354}'`; fi
12355else
12356 echo "$as_me: failed program was:" >&5
12357cat conftest.$ac_ext >&5
12358fi
12359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12360if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12361
12362 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12363 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"
12364 else
12365 if test "$host_cpu" = ia64; then
12366 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
12367 allow_undefined_flag_GCJ="-z nodefs"
12368 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"
12369 else
12370 # Determine the default libpath from the value encoded in an empty executable.
12371 cat >conftest.$ac_ext <<_ACEOF
12372#line $LINENO "configure"
12373#include "confdefs.h"
12374
12375#ifdef F77_DUMMY_MAIN
12376# ifdef __cplusplus
12377 extern "C"
12378# endif
12379 int F77_DUMMY_MAIN() { return 1; }
12380#endif
12381int
12382main ()
12383{
12384
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext conftest$ac_exeext
12390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391 (eval $ac_link) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401
12402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12403}'`
12404# Check for a 64-bit object if we didn't find anything.
12405if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12406}'`; fi
12407else
12408 echo "$as_me: failed program was:" >&5
12409cat conftest.$ac_ext >&5
12410fi
12411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12413
12414 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12415 # Warning - without using the other run time loading flags,
12416 # -berok will link without error, but may produce a broken library.
12417 no_undefined_flag_GCJ=' ${wl}-bernotok'
12418 allow_undefined_flag_GCJ=' ${wl}-berok'
12419 # -bexpall does not export symbols beginning with underscore (_)
12420 always_export_symbols_GCJ=yes
12421 # Exported symbols can be pulled into shared objects from archives
12422 whole_archive_flag_spec_GCJ=' '
12423 archive_cmds_need_lc_GCJ=yes
12424 # This is similar to how AIX traditionally builds it's shared libraries.
12425 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'
12426 fi
12427 fi
12428 ;;
12429
12430 amigaos*)
12431 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)'
12432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12433 hardcode_minus_L_GCJ=yes
12434 # see comment about different semantics on the GNU ld section
12435 ld_shlibs_GCJ=no
12436 ;;
12437
12438 bsdi4*)
12439 export_dynamic_flag_spec_GCJ=-rdynamic
12440 ;;
12441
12442 cygwin* | mingw* | pw32*)
12443 # When not using gcc, we currently assume that we are using
12444 # Microsoft Visual C++.
12445 # hardcode_libdir_flag_spec is actually meaningless, as there is
12446 # no search path for DLLs.
12447 hardcode_libdir_flag_spec_GCJ=' '
12448 allow_undefined_flag_GCJ=unsupported
12449 # Tell ltmain to make .lib files, not .a files.
12450 libext=lib
12451 # FIXME: Setting linknames here is a bad hack.
12452 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12453 # The linker will automatically build a .lib file if we build a DLL.
12454 old_archive_From_new_cmds_GCJ='true'
12455 # FIXME: Should let the user specify the lib program.
12456 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
12457 fix_srcfile_path='`cygpath -w "$srcfile"`'
12458 ;;
12459
12460 darwin* | rhapsody*)
12461 case "$host_os" in
12462 rhapsody* | darwin1.[012])
12463 allow_undefined_flag_GCJ='-undefined suppress'
12464 ;;
12465 *) # Darwin 1.3 on
12466 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
12467 ;;
12468 esac
12469
12470 # FIXME: Relying on posixy $() will cause problems for
12471 # cross-compilation, but unfortunately the echo tests do not
12472 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12473 # `"' quotes if we put them in here... so don't!
12474 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12475 # We need to add '_' to the symbols in $export_symbols first
12476 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12477 hardcode_direct_GCJ=yes
12478 hardcode_shlibpath_var_GCJ=no
12479 whole_archive_flag_spec_GCJ='-all_load $convenience'
12480 ;;
12481
12482 dgux*)
12483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12485 hardcode_shlibpath_var_GCJ=no
12486 ;;
12487
12488 freebsd1*)
12489 ld_shlibs_GCJ=no
12490 ;;
12491
12492 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12493 # support. Future versions do this automatically, but an explicit c++rt0.o
12494 # does not break anything, and helps significantly (at the cost of a little
12495 # extra space).
12496 freebsd2.2*)
12497 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12498 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12499 hardcode_direct_GCJ=yes
12500 hardcode_shlibpath_var_GCJ=no
12501 ;;
12502
12503 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12504 freebsd2*)
12505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12506 hardcode_direct_GCJ=yes
12507 hardcode_minus_L_GCJ=yes
12508 hardcode_shlibpath_var_GCJ=no
12509 ;;
12510
12511 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12512 freebsd*)
12513 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12514 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12515 hardcode_direct_GCJ=yes
12516 hardcode_shlibpath_var_GCJ=no
12517 ;;
12518
12519 hpux9* | hpux10* | hpux11*)
12520 if test "$GCC" = yes; then
12521 case $host_os in
12522 hpux9*)
12523 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'
12524 ;;
12525 *)
12526 if test "$host_cpu" = ia64; then
12527 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12528 else
12529 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12530 fi
12531 ;;
12532 esac
12533 else
12534 case $host_os in
12535 hpux9*)
12536 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'
12537 ;;
12538 *)
12539 if test "$host_cpu" = ia64; then
12540 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12541 else
12542 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12543 fi
12544 ;;
12545 esac
12546 fi
12547 if test "$host_cpu" = ia64; then
12548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12549 hardcode_direct_GCJ=no
12550 hardcode_shlibpath_var_GCJ=no
12551 else
12552 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
12553 hardcode_libdir_separator_GCJ=:
12554 hardcode_direct_GCJ=yes
12555 fi
12556 # hardcode_minus_L: Not really in the search PATH,
12557 # but as the default location of the library.
12558 hardcode_minus_L_GCJ=yes
12559 export_dynamic_flag_spec_GCJ='${wl}-E'
12560 ;;
12561
12562 irix5* | irix6* | nonstopux*)
12563 if test "$GCC" = yes; then
12564 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'
12565 else
12566 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'
12567 fi
12568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12569 hardcode_libdir_separator_GCJ=:
12570 link_all_deplibs_GCJ=yes
12571 ;;
12572
12573 netbsd*)
12574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12575 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12576 else
12577 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12578 fi
12579 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12580 hardcode_direct_GCJ=yes
12581 hardcode_shlibpath_var_GCJ=no
12582 ;;
12583
12584 newsos6)
12585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12586 hardcode_direct_GCJ=yes
12587 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12588 hardcode_libdir_separator_GCJ=:
12589 hardcode_shlibpath_var_GCJ=no
12590 ;;
12591
12592 openbsd*)
12593 hardcode_direct_GCJ=yes
12594 hardcode_shlibpath_var_GCJ=no
12595
12596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12597 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12598 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12599 export_dynamic_flag_spec_GCJ='${wl}-E'
12600 else
12601 case $host_os in
12602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12603 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12605 ;;
12606 *)
12607 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12609 ;;
12610 esac
12611 fi
12612 ;;
12613
12614 os2*)
12615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12616 hardcode_minus_L_GCJ=yes
12617 allow_undefined_flag_GCJ=unsupported
12618 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'
12619 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12620 ;;
12621
12622 osf3*)
12623 if test "$GCC" = yes; then
12624 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12625 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'
12626 else
12627 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12628 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'
12629 fi
12630 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12631 hardcode_libdir_separator_GCJ=:
12632 ;;
12633
12634 osf4* | osf5*) # as osf3* with the addition of -msym flag
12635 if test "$GCC" = yes; then
12636 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12637 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'
12638 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12639 else
12640 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12641 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'
12642 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~
12643 $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'
12644
12645 # Both c and cxx compiler support -rpath directly
12646 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
12647 fi
12648 hardcode_libdir_separator_GCJ=:
12649 ;;
12650
12651 sco3.2v5*)
12652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12653 hardcode_shlibpath_var_GCJ=no
12654 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
12655 runpath_var=LD_RUN_PATH
12656 hardcode_runpath_var=yes
12657 ;;
12658
12659 solaris*)
12660 no_undefined_flag_GCJ=' -z text'
12661 if test "$GCC" = yes; then
12662 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12663 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12665 else
12666 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12667 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12669 fi
12670 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12671 hardcode_shlibpath_var_GCJ=no
12672 case $host_os in
12673 solaris2.[0-5] | solaris2.[0-5].*) ;;
12674 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12675 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
12676 esac
12677 link_all_deplibs_GCJ=yes
12678 ;;
12679
12680 sunos4*)
12681 if test "x$host_vendor" = xsequent; then
12682 # Use $CC to link under sequent, because it throws in some extra .o
12683 # files that make .init and .fini sections work.
12684 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12685 else
12686 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12687 fi
12688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12689 hardcode_direct_GCJ=yes
12690 hardcode_minus_L_GCJ=yes
12691 hardcode_shlibpath_var_GCJ=no
12692 ;;
12693
12694 sysv4)
12695 if test "x$host_vendor" = xsni; then
12696 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
12697 hardcode_direct_GCJ=yes # is this really true???
12698 else
12699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12700 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
12701 fi
12702 runpath_var='LD_RUN_PATH'
12703 hardcode_shlibpath_var_GCJ=no
12704 ;;
12705
12706 sysv4.3*)
12707 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12708 hardcode_shlibpath_var_GCJ=no
12709 export_dynamic_flag_spec_GCJ='-Bexport'
12710 ;;
12711
12712 sysv4*MP*)
12713 if test -d /usr/nec; then
12714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12715 hardcode_shlibpath_var_GCJ=no
12716 runpath_var=LD_RUN_PATH
12717 hardcode_runpath_var=yes
12718 ld_shlibs_GCJ=yes
12719 fi
12720 ;;
12721
12722 sysv4.2uw2*)
12723 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_direct_GCJ=yes
12725 hardcode_minus_L_GCJ=no
12726 hardcode_shlibpath_var_GCJ=no
12727 hardcode_runpath_var=yes
12728 runpath_var=LD_RUN_PATH
12729 ;;
12730
12731 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12732 no_undefined_flag_GCJ='${wl}-z ${wl}text'
12733 if test "$GCC" = yes; then
12734 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12735 else
12736 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12737 fi
12738 runpath_var='LD_RUN_PATH'
12739 hardcode_shlibpath_var_GCJ=no
12740 ;;
12741
12742 sysv5*)
12743 no_undefined_flag_GCJ=' -z text'
12744 # $CC -shared without GNU ld will not create a library from C++
12745 # object files and a static libstdc++, better avoid it by now
12746 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12747 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12749 hardcode_libdir_flag_spec_GCJ=
12750 hardcode_shlibpath_var_GCJ=no
12751 runpath_var='LD_RUN_PATH'
12752 ;;
12753
12754 uts4*)
12755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12757 hardcode_shlibpath_var_GCJ=no
12758 ;;
12759
12760 *)
12761 ld_shlibs_GCJ=no
12762 ;;
12763 esac
12764 fi
12765
12766echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12767echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12768test "$ld_shlibs_GCJ" = no && can_build_shared=no
12769
12770variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12771if test "$GCC" = yes; then
12772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12773fi
12774
12775#
12776# Do we need to explicitly link libc?
12777#
12778archive_cmds_need_lc_GCJ=yes
12779if test "$enable_shared" = yes && test "$GCC" = yes; then
12780 case $archive_cmds_GCJ in
12781 *'~'*)
12782 # FIXME: we may have to deal with multi-command sequences.
12783 ;;
12784 '$CC '*)
12785 # Test whether the compiler implicitly links with -lc since on some
12786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12787 # to ld, don't add -lc before -lgcc.
12788 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12789echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12790 $rm conftest*
12791 echo 'static int dummy;' > conftest.$ac_ext
12792
12793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } 2>conftest.err; then
12798 soname=conftest
12799 lib=conftest
12800 libobjs=conftest.$ac_objext
12801 deplibs=
12802 wl=$lt_prog_compiler_wl_GCJ
12803 compiler_flags=-v
12804 linker_flags=-v
12805 verstring=
12806 output_objdir=.
12807 libname=conftest
12808 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
12809 allow_undefined_flag_GCJ=
12810 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12811 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }
12815 then
12816 archive_cmds_need_lc_GCJ=no
12817 else
12818 archive_cmds_need_lc_GCJ=yes
12819 fi
12820 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
12821 else
12822 cat conftest.err 1>&5
12823 fi
12824 $rm conftest*
12825 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
12826echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
12827 ;;
12828 esac
12829fi
12830
12831echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12832echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12833hardcode_action_GCJ=
12834if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12835 test -n "$runpath_var GCJ"; then
12836
12837 # We can hardcode non-existant directories.
12838 if test "$hardcode_direct_GCJ" != no &&
12839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12840 # have to relink, otherwise we might link with an installed library
12841 # when we should be linking with a yet-to-be-installed one
12842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12843 test "$hardcode_minus_L_GCJ" != no; then
12844 # Linking always hardcodes the temporary library directory.
12845 hardcode_action_GCJ=relink
12846 else
12847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12848 hardcode_action_GCJ=immediate
12849 fi
12850else
12851 # We cannot hardcode anything, or else we can only hardcode existing
12852 # directories.
12853 hardcode_action_GCJ=unsupported
12854fi
12855echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12856echo "${ECHO_T}$hardcode_action_GCJ" >&6
12857
12858if test "$hardcode_action_GCJ" = relink; then
12859 # Fast installation is not supported
12860 enable_fast_install=no
12861elif test "$shlibpath_overrides_runpath" = yes ||
12862 test "$enable_shared" = no; then
12863 # Fast installation is not necessary
12864 enable_fast_install=needless
12865fi
12866
12867striplib=
12868old_striplib=
12869echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12870echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12871if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12872 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12873 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12874 echo "$as_me:$LINENO: result: yes" >&5
12875echo "${ECHO_T}yes" >&6
12876else
12877 echo "$as_me:$LINENO: result: no" >&5
12878echo "${ECHO_T}no" >&6
12879fi
12880
12881echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12882echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12883library_names_spec=
12884libname_spec='lib$name'
12885soname_spec=
12886postinstall_cmds=
12887postuninstall_cmds=
12888finish_cmds=
12889finish_eval=
12890shlibpath_var=
12891shlibpath_overrides_runpath=unknown
12892version_type=none
12893dynamic_linker="$host_os ld.so"
12894sys_lib_dlsearch_path_spec="/lib /usr/lib"
12895if test "$GCC" = yes; then
12896 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12897 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
12898 # if the path contains ";" then we assume it to be the separator
12899 # otherwise default to the standard path separator (i.e. ":") - it is
12900 # assumed that no part of a normal pathname contains ";" but that should
12901 # okay in the real world where ";" in dirpaths is itself problematic.
12902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12903 else
12904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
12905 fi
12906else
12907 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12908fi
12909need_lib_prefix=unknown
12910hardcode_into_libs=no
12911
12912# when you set need_version to no, make sure it does not cause -set_version
12913# flags to be left without arguments
12914need_version=unknown
12915
12916case $host_os in
12917aix3*)
12918 version_type=linux
12919 library_names_spec='${libname}${release}.so$versuffix $libname.a'
12920 shlibpath_var=LIBPATH
12921
12922 # AIX 3 has no versioning support, so we append a major version to the name.
12923 soname_spec='${libname}${release}.so$major'
12924 ;;
12925
12926aix4* | aix5*)
12927 version_type=linux
12928 if test "$host_cpu" = ia64; then
12929 # AIX 5 supports IA64
12930 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 else
12933 # With GCC up to 2.95.x, collect2 would create an import file
12934 # for dependence libraries. The import file would start with
12935 # the line `#! .'. This would cause the generated library to
12936 # depend on `.', always an invalid library. This was fixed in
12937 # development snapshots of GCC prior to 3.0.
12938 case $host_os in
12939 aix4 | aix4.[01] | aix4.[01].*)
12940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12941 echo ' yes '
12942 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12943 :
12944 else
12945 can_build_shared=no
12946 fi
12947 ;;
12948 esac
12949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12950 # soname into executable. Probably we can add versioning support to
12951 # collect2, so additional links can be useful in future.
12952 if test "$aix_use_runtimelinking" = yes; then
12953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12954 # instead of lib<name>.a to let people know that these are not
12955 # typical AIX shared libraries.
12956 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12957 else
12958 # We preserve .a as extension for shared libraries through AIX4.2
12959 # and later when we are not doing run time linking.
12960 library_names_spec='${libname}${release}.a $libname.a'
12961 soname_spec='${libname}${release}.so$major'
12962 fi
12963 shlibpath_var=LIBPATH
12964 fi
12965 ;;
12966
12967amigaos*)
12968 library_names_spec='$libname.ixlibrary $libname.a'
12969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12970 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'
12971 ;;
12972
12973beos*)
12974 library_names_spec='${libname}.so'
12975 dynamic_linker="$host_os ld.so"
12976 shlibpath_var=LIBRARY_PATH
12977 ;;
12978
12979bsdi4*)
12980 version_type=linux
12981 need_version=no
12982 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12983 soname_spec='${libname}${release}.so$major'
12984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12988 # the default ld.so.conf also contains /usr/contrib/lib and
12989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12990 # libtool to hard-code these into programs
12991 ;;
12992
12993cygwin* | mingw* | pw32*)
12994 version_type=windows
12995 need_version=no
12996 need_lib_prefix=no
12997 case $GCC,$host_os in
12998 yes,cygwin*)
12999 library_names_spec='$libname.dll.a'
13000 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13001 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13002 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13003 dldir=$destdir/`dirname \$dlpath`~
13004 test -d \$dldir || mkdir -p \$dldir~
13005 $install_prog .libs/$dlname \$dldir/$dlname'
13006 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007 dlpath=$dir/\$dldll~
13008 $rm \$dlpath'
13009 shlibpath_overrides_runpath=yes
13010 ;;
13011 yes,mingw*)
13012 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13014 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
13015 # It is most probably a Windows format PATH printed by
13016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13017 # path with ; separators, and with drive letters. We can handle the
13018 # drive letters (cygwin fileutils understands them), so leave them,
13019 # especially as we might pass files found there to a mingw objdump,
13020 # which wouldn't understand a cygwinified path. Ahh.
13021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13022 else
13023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13024 fi
13025 ;;
13026 yes,pw32*)
13027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13028 ;;
13029 *)
13030 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13031 ;;
13032 esac
13033 dynamic_linker='Win32 ld.exe'
13034 # FIXME: first we should search . and the directory the executable is in
13035 shlibpath_var=PATH
13036 ;;
13037
13038darwin* | rhapsody*)
13039 dynamic_linker="$host_os dyld"
13040 version_type=darwin
13041 need_lib_prefix=no
13042 need_version=no
13043 # FIXME: Relying on posixy $() will cause problems for
13044 # cross-compilation, but unfortunately the echo tests do not
13045 # yet detect zsh echo's removal of \ escapes.
13046 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)'
13047 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13048 shlibpath_overrides_runpath=yes
13049 shlibpath_var=DYLD_LIBRARY_PATH
13050 ;;
13051
13052dgux*)
13053 version_type=linux
13054 need_lib_prefix=no
13055 need_version=no
13056 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13057 soname_spec='${libname}${release}.so$major'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 ;;
13060
13061freebsd1*)
13062 dynamic_linker=no
13063 ;;
13064
13065freebsd*)
13066 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13067 version_type=freebsd-$objformat
13068 case $version_type in
13069 freebsd-elf*)
13070 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13071 need_version=no
13072 need_lib_prefix=no
13073 ;;
13074 freebsd-*)
13075 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13076 need_version=yes
13077 ;;
13078 esac
13079 shlibpath_var=LD_LIBRARY_PATH
13080 case $host_os in
13081 freebsd2*)
13082 shlibpath_overrides_runpath=yes
13083 ;;
13084 freebsd3.01* | freebsdelf3.01*)
13085 shlibpath_overrides_runpath=yes
13086 hardcode_into_libs=yes
13087 ;;
13088 *) # from 3.2 on
13089 shlibpath_overrides_runpath=no
13090 hardcode_into_libs=yes
13091 ;;
13092 esac
13093 ;;
13094
13095gnu*)
13096 version_type=linux
13097 need_lib_prefix=no
13098 need_version=no
13099 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13100 soname_spec='${libname}${release}.so$major'
13101 shlibpath_var=LD_LIBRARY_PATH
13102 hardcode_into_libs=yes
13103 ;;
13104
13105hpux9* | hpux10* | hpux11*)
13106 # Give a soname corresponding to the major version so that dld.sl refuses to
13107 # link against other versions.
13108 version_type=sunos
13109 need_lib_prefix=no
13110 need_version=no
13111 if test "$host_cpu" = ia64; then
13112 hardcode_into_libs=yes
13113 dynamic_linker="$host_os dld.so"
13114 shlibpath_var=LD_LIBRARY_PATH
13115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13116 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13117 soname_spec='${libname}${release}.so$major'
13118 if test "X$HPUX_IA64_MODE" = X32; then
13119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13120 else
13121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13122 fi
13123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13124 else
13125 dynamic_linker="$host_os dld.sl"
13126 shlibpath_var=SHLIB_PATH
13127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13128 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13129 soname_spec='${libname}${release}.sl$major'
13130 fi
13131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13132 postinstall_cmds='chmod 555 $lib'
13133 ;;
13134
13135irix5* | irix6* | nonstopux*)
13136 case $host_os in
13137 nonstopux*) version_type=nonstopux ;;
13138 *) version_type=irix ;;
13139 esac
13140 need_lib_prefix=no
13141 need_version=no
13142 soname_spec='${libname}${release}.so$major'
13143 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13144 case $host_os in
13145 irix5* | nonstopux*)
13146 libsuff= shlibsuff=
13147 ;;
13148 *)
13149 case $LD in # libtool.m4 will add one of these switches to LD
13150 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13151 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13152 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13153 *) libsuff= shlibsuff= libmagic=never-match;;
13154 esac
13155 ;;
13156 esac
13157 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13158 shlibpath_overrides_runpath=no
13159 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13160 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13161 ;;
13162
13163# No shared lib support for Linux oldld, aout, or coff.
13164linux*oldld* | linux*aout* | linux*coff*)
13165 dynamic_linker=no
13166 ;;
13167
13168# This must be Linux ELF.
13169linux*)
13170 version_type=linux
13171 need_lib_prefix=no
13172 need_version=no
13173 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13174 soname_spec='${libname}${release}.so$major'
13175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13176 shlibpath_var=LD_LIBRARY_PATH
13177 shlibpath_overrides_runpath=no
13178 # This implies no fast_install, which is unacceptable.
13179 # Some rework will be needed to allow for fast_install
13180 # before this can be enabled.
13181 hardcode_into_libs=yes
13182
13183 # We used to test for /lib/ld.so.1 and disable shared libraries on
13184 # powerpc, because MkLinux only supported shared libraries with the
13185 # GNU dynamic linker. Since this was broken with cross compilers,
13186 # most powerpc-linux boxes support dynamic linking these days and
13187 # people can always --disable-shared, the test was removed, and we
13188 # assume the GNU/Linux dynamic linker is in use.
13189 dynamic_linker='GNU/Linux ld.so'
13190 ;;
13191
13192netbsd*)
13193 version_type=sunos
13194 need_lib_prefix=no
13195 need_version=no
13196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13197 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13199 dynamic_linker='NetBSD (a.out) ld.so'
13200 else
13201 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13202 soname_spec='${libname}${release}.so$major'
13203 dynamic_linker='NetBSD ld.elf_so'
13204 fi
13205 shlibpath_var=LD_LIBRARY_PATH
13206 shlibpath_overrides_runpath=yes
13207 hardcode_into_libs=yes
13208 ;;
13209
13210newsos6)
13211 version_type=linux
13212 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13213 shlibpath_var=LD_LIBRARY_PATH
13214 shlibpath_overrides_runpath=yes
13215 ;;
13216
13217nto-qnx)
13218 version_type=linux
13219 need_lib_prefix=no
13220 need_version=no
13221 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13222 soname_spec='${libname}${release}.so$major'
13223 shlibpath_var=LD_LIBRARY_PATH
13224 shlibpath_overrides_runpath=yes
13225 ;;
13226
13227openbsd*)
13228 version_type=sunos
13229 need_lib_prefix=no
13230 need_version=no
13231 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13233 shlibpath_var=LD_LIBRARY_PATH
13234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13235 case $host_os in
13236 openbsd2.[89] | openbsd2.[89].*)
13237 shlibpath_overrides_runpath=no
13238 ;;
13239 *)
13240 shlibpath_overrides_runpath=yes
13241 ;;
13242 esac
13243 else
13244 shlibpath_overrides_runpath=yes
13245 fi
13246 ;;
13247
13248os2*)
13249 libname_spec='$name'
13250 need_lib_prefix=no
13251 library_names_spec='$libname.dll $libname.a'
13252 dynamic_linker='OS/2 ld.exe'
13253 shlibpath_var=LIBPATH
13254 ;;
13255
13256osf3* | osf4* | osf5*)
13257 version_type=osf
13258 need_lib_prefix=no
13259 need_version=no
13260 soname_spec='${libname}${release}.so'
13261 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13265 ;;
13266
13267sco3.2v5*)
13268 version_type=osf
13269 soname_spec='${libname}${release}.so$major'
13270 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 ;;
13273
13274solaris*)
13275 version_type=linux
13276 need_lib_prefix=no
13277 need_version=no
13278 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13279 soname_spec='${libname}${release}.so$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 shlibpath_overrides_runpath=yes
13282 hardcode_into_libs=yes
13283 # ldd complains unless libraries are executable
13284 postinstall_cmds='chmod +x $lib'
13285 ;;
13286
13287sunos4*)
13288 version_type=sunos
13289 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=yes
13293 if test "$with_gnu_ld" = yes; then
13294 need_lib_prefix=no
13295 fi
13296 need_version=yes
13297 ;;
13298
13299sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13300 version_type=linux
13301 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13302 soname_spec='${libname}${release}.so$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13304 case $host_vendor in
13305 sni)
13306 shlibpath_overrides_runpath=no
13307 ;;
13308 motorola)
13309 need_lib_prefix=no
13310 need_version=no
13311 shlibpath_overrides_runpath=no
13312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13313 ;;
13314 esac
13315 ;;
13316
13317sysv4*MP*)
13318 if test -d /usr/nec ;then
13319 version_type=linux
13320 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13321 soname_spec='$libname.so.$major'
13322 shlibpath_var=LD_LIBRARY_PATH
13323 fi
13324 ;;
13325
13326uts4*)
13327 version_type=linux
13328 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13329 soname_spec='${libname}${release}.so$major'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 ;;
13332
13333*)
13334 dynamic_linker=no
13335 ;;
13336esac
13337echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13338echo "${ECHO_T}$dynamic_linker" >&6
13339test "$dynamic_linker" = no && can_build_shared=no
13340
13341if test "x$enable_dlopen" != xyes; then
13342 enable_dlopen=unknown
13343 enable_dlopen_self=unknown
13344 enable_dlopen_self_static=unknown
13345else
13346 lt_cv_dlopen=no
13347 lt_cv_dlopen_libs=
13348
13349 case $host_os in
13350 beos*)
13351 lt_cv_dlopen="load_add_on"
13352 lt_cv_dlopen_libs=
13353 lt_cv_dlopen_self=yes
13354 ;;
13355
13356 cygwin* | mingw* | pw32*)
13357 lt_cv_dlopen="LoadLibrary"
13358 lt_cv_dlopen_libs=
13359 ;;
13360
13361 *)
13362 echo "$as_me:$LINENO: checking for shl_load" >&5
13363echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13364if test "${ac_cv_func_shl_load+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 cat >conftest.$ac_ext <<_ACEOF
13368#line $LINENO "configure"
13369#include "confdefs.h"
13370/* System header to define __stub macros and hopefully few prototypes,
13371 which can conflict with char shl_load (); below. */
13372#include <assert.h>
13373/* Override any gcc2 internal prototype to avoid an error. */
13374#ifdef __cplusplus
13375extern "C"
13376#endif
13377/* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13379char shl_load ();
13380char (*f) ();
13381
13382#ifdef F77_DUMMY_MAIN
13383# ifdef __cplusplus
13384 extern "C"
13385# endif
13386 int F77_DUMMY_MAIN() { return 1; }
13387#endif
13388int
13389main ()
13390{
13391/* The GNU C library defines this for functions which it implements
13392 to always fail with ENOSYS. Some functions are actually named
13393 something starting with __ and the normal name is an alias. */
13394#if defined (__stub_shl_load) || defined (__stub___shl_load)
13395choke me
13396#else
13397f = shl_load;
13398#endif
13399
13400 ;
13401 return 0;
13402}
13403_ACEOF
13404rm -f conftest.$ac_objext conftest$ac_exeext
13405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_func_shl_load=yes
13417else
13418 echo "$as_me: failed program was:" >&5
13419cat conftest.$ac_ext >&5
13420ac_cv_func_shl_load=no
13421fi
13422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13423fi
13424echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13425echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13426if test $ac_cv_func_shl_load = yes; then
13427 lt_cv_dlopen="shl_load"
13428else
13429 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13430echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13431if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433else
13434 ac_check_lib_save_LIBS=$LIBS
13435LIBS="-ldld $LIBS"
13436cat >conftest.$ac_ext <<_ACEOF
13437#line $LINENO "configure"
13438#include "confdefs.h"
13439
13440/* Override any gcc2 internal prototype to avoid an error. */
13441#ifdef __cplusplus
13442extern "C"
13443#endif
13444/* We use char because int might match the return type of a gcc2
13445 builtin and then its argument prototype would still apply. */
13446char shl_load ();
13447#ifdef F77_DUMMY_MAIN
13448# ifdef __cplusplus
13449 extern "C"
13450# endif
13451 int F77_DUMMY_MAIN() { return 1; }
13452#endif
13453int
13454main ()
13455{
13456shl_load ();
13457 ;
13458 return 0;
13459}
13460_ACEOF
13461rm -f conftest.$ac_objext conftest$ac_exeext
13462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_cv_lib_dld_shl_load=yes
13474else
13475 echo "$as_me: failed program was:" >&5
13476cat conftest.$ac_ext >&5
13477ac_cv_lib_dld_shl_load=no
13478fi
13479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13480LIBS=$ac_check_lib_save_LIBS
13481fi
13482echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13483echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13484if test $ac_cv_lib_dld_shl_load = yes; then
13485 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13486else
13487 echo "$as_me:$LINENO: checking for dlopen" >&5
13488echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13489if test "${ac_cv_func_dlopen+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
13492 cat >conftest.$ac_ext <<_ACEOF
13493#line $LINENO "configure"
13494#include "confdefs.h"
13495/* System header to define __stub macros and hopefully few prototypes,
13496 which can conflict with char dlopen (); below. */
13497#include <assert.h>
13498/* Override any gcc2 internal prototype to avoid an error. */
13499#ifdef __cplusplus
13500extern "C"
13501#endif
13502/* We use char because int might match the return type of a gcc2
13503 builtin and then its argument prototype would still apply. */
13504char dlopen ();
13505char (*f) ();
13506
13507#ifdef F77_DUMMY_MAIN
13508# ifdef __cplusplus
13509 extern "C"
13510# endif
13511 int F77_DUMMY_MAIN() { return 1; }
13512#endif
13513int
13514main ()
13515{
13516/* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519#if defined (__stub_dlopen) || defined (__stub___dlopen)
13520choke me
13521#else
13522f = dlopen;
13523#endif
13524
13525 ;
13526 return 0;
13527}
13528_ACEOF
13529rm -f conftest.$ac_objext conftest$ac_exeext
13530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13531 (eval $ac_link) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -s conftest$ac_exeext'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_cv_func_dlopen=yes
13542else
13543 echo "$as_me: failed program was:" >&5
13544cat conftest.$ac_ext >&5
13545ac_cv_func_dlopen=no
13546fi
13547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13548fi
13549echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13550echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13551if test $ac_cv_func_dlopen = yes; then
13552 lt_cv_dlopen="dlopen"
13553else
13554 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13555echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13556if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558else
13559 ac_check_lib_save_LIBS=$LIBS
13560LIBS="-ldl $LIBS"
13561cat >conftest.$ac_ext <<_ACEOF
13562#line $LINENO "configure"
13563#include "confdefs.h"
13564
13565/* Override any gcc2 internal prototype to avoid an error. */
13566#ifdef __cplusplus
13567extern "C"
13568#endif
13569/* We use char because int might match the return type of a gcc2
13570 builtin and then its argument prototype would still apply. */
13571char dlopen ();
13572#ifdef F77_DUMMY_MAIN
13573# ifdef __cplusplus
13574 extern "C"
13575# endif
13576 int F77_DUMMY_MAIN() { return 1; }
13577#endif
13578int
13579main ()
13580{
13581dlopen ();
13582 ;
13583 return 0;
13584}
13585_ACEOF
13586rm -f conftest.$ac_objext conftest$ac_exeext
13587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13588 (eval $ac_link) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_lib_dl_dlopen=yes
13599else
13600 echo "$as_me: failed program was:" >&5
13601cat conftest.$ac_ext >&5
13602ac_cv_lib_dl_dlopen=no
13603fi
13604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13605LIBS=$ac_check_lib_save_LIBS
13606fi
13607echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13608echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13609if test $ac_cv_lib_dl_dlopen = yes; then
13610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13611else
13612 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13613echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13614if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617 ac_check_lib_save_LIBS=$LIBS
13618LIBS="-lsvld $LIBS"
13619cat >conftest.$ac_ext <<_ACEOF
13620#line $LINENO "configure"
13621#include "confdefs.h"
13622
13623/* Override any gcc2 internal prototype to avoid an error. */
13624#ifdef __cplusplus
13625extern "C"
13626#endif
13627/* We use char because int might match the return type of a gcc2
13628 builtin and then its argument prototype would still apply. */
13629char dlopen ();
13630#ifdef F77_DUMMY_MAIN
13631# ifdef __cplusplus
13632 extern "C"
13633# endif
13634 int F77_DUMMY_MAIN() { return 1; }
13635#endif
13636int
13637main ()
13638{
13639dlopen ();
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext conftest$ac_exeext
13645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13646 (eval $ac_link) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_lib_svld_dlopen=yes
13657else
13658 echo "$as_me: failed program was:" >&5
13659cat conftest.$ac_ext >&5
13660ac_cv_lib_svld_dlopen=no
13661fi
13662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13663LIBS=$ac_check_lib_save_LIBS
13664fi
13665echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13666echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13667if test $ac_cv_lib_svld_dlopen = yes; then
13668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13669else
13670 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13671echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13672if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674else
13675 ac_check_lib_save_LIBS=$LIBS
13676LIBS="-ldld $LIBS"
13677cat >conftest.$ac_ext <<_ACEOF
13678#line $LINENO "configure"
13679#include "confdefs.h"
13680
13681/* Override any gcc2 internal prototype to avoid an error. */
13682#ifdef __cplusplus
13683extern "C"
13684#endif
13685/* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13687char dld_link ();
13688#ifdef F77_DUMMY_MAIN
13689# ifdef __cplusplus
13690 extern "C"
13691# endif
13692 int F77_DUMMY_MAIN() { return 1; }
13693#endif
13694int
13695main ()
13696{
13697dld_link ();
13698 ;
13699 return 0;
13700}
13701_ACEOF
13702rm -f conftest.$ac_objext conftest$ac_exeext
13703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704 (eval $ac_link) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_lib_dld_dld_link=yes
13715else
13716 echo "$as_me: failed program was:" >&5
13717cat conftest.$ac_ext >&5
13718ac_cv_lib_dld_dld_link=no
13719fi
13720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13721LIBS=$ac_check_lib_save_LIBS
13722fi
13723echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13724echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13725if test $ac_cv_lib_dld_dld_link = yes; then
13726 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13727fi
13728
13729
13730fi
13731
13732
13733fi
13734
13735
13736fi
13737
13738
13739fi
13740
13741
13742fi
13743
13744 ;;
13745 esac
13746
13747 if test "x$lt_cv_dlopen" != xno; then
13748 enable_dlopen=yes
13749 else
13750 enable_dlopen=no
13751 fi
13752
13753 case $lt_cv_dlopen in
13754 dlopen)
13755 save_CPPFLAGS="$CPPFLAGS"
13756 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13757
13758 save_LDFLAGS="$LDFLAGS"
13759 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13760
13761 save_LIBS="$LIBS"
13762 LIBS="$lt_cv_dlopen_libs $LIBS"
13763
13764 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13765echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13766if test "${lt_cv_dlopen_self+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769 if test "$cross_compiling" = yes; then :
13770 lt_cv_dlopen_self=cross
13771else
13772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13773 lt_status=$lt_dlunknown
13774 cat > conftest.$ac_ext <<EOF
13775#line 13775 "configure"
13776#include "confdefs.h"
13777
13778#if HAVE_DLFCN_H
13779#include <dlfcn.h>
13780#endif
13781
13782#include <stdio.h>
13783
13784#ifdef RTLD_GLOBAL
13785# define LT_DLGLOBAL RTLD_GLOBAL
13786#else
13787# ifdef DL_GLOBAL
13788# define LT_DLGLOBAL DL_GLOBAL
13789# else
13790# define LT_DLGLOBAL 0
13791# endif
13792#endif
13793
13794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13795 find out it does not work in some platform. */
13796#ifndef LT_DLLAZY_OR_NOW
13797# ifdef RTLD_LAZY
13798# define LT_DLLAZY_OR_NOW RTLD_LAZY
13799# else
13800# ifdef DL_LAZY
13801# define LT_DLLAZY_OR_NOW DL_LAZY
13802# else
13803# ifdef RTLD_NOW
13804# define LT_DLLAZY_OR_NOW RTLD_NOW
13805# else
13806# ifdef DL_NOW
13807# define LT_DLLAZY_OR_NOW DL_NOW
13808# else
13809# define LT_DLLAZY_OR_NOW 0
13810# endif
13811# endif
13812# endif
13813# endif
13814#endif
13815
13816#ifdef __cplusplus
13817extern "C" void exit (int);
13818#endif
13819
13820void fnord() { int i=42;}
13821int main ()
13822{
13823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13824 int status = $lt_dlunknown;
13825
13826 if (self)
13827 {
13828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13830 /* dlclose (self); */
13831 }
13832
13833 exit (status);
13834}
13835EOF
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13841 (./conftest; exit; ) 2>/dev/null
13842 lt_status=$?
13843 case x$lt_status in
13844 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13845 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13846 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13847 esac
13848 else :
13849 # compilation failed
13850 lt_cv_dlopen_self=no
13851 fi
13852fi
13853rm -fr conftest*
13854
13855
13856fi
13857echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13858echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13859
13860 if test "x$lt_cv_dlopen_self" = xyes; then
13861 LDFLAGS="$LDFLAGS $link_static_flag"
13862 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13863echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13864if test "${lt_cv_dlopen_self_static+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866else
13867 if test "$cross_compiling" = yes; then :
13868 lt_cv_dlopen_self_static=cross
13869else
13870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13871 lt_status=$lt_dlunknown
13872 cat > conftest.$ac_ext <<EOF
13873#line 13873 "configure"
13874#include "confdefs.h"
13875
13876#if HAVE_DLFCN_H
13877#include <dlfcn.h>
13878#endif
13879
13880#include <stdio.h>
13881
13882#ifdef RTLD_GLOBAL
13883# define LT_DLGLOBAL RTLD_GLOBAL
13884#else
13885# ifdef DL_GLOBAL
13886# define LT_DLGLOBAL DL_GLOBAL
13887# else
13888# define LT_DLGLOBAL 0
13889# endif
13890#endif
13891
13892/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13893 find out it does not work in some platform. */
13894#ifndef LT_DLLAZY_OR_NOW
13895# ifdef RTLD_LAZY
13896# define LT_DLLAZY_OR_NOW RTLD_LAZY
13897# else
13898# ifdef DL_LAZY
13899# define LT_DLLAZY_OR_NOW DL_LAZY
13900# else
13901# ifdef RTLD_NOW
13902# define LT_DLLAZY_OR_NOW RTLD_NOW
13903# else
13904# ifdef DL_NOW
13905# define LT_DLLAZY_OR_NOW DL_NOW
13906# else
13907# define LT_DLLAZY_OR_NOW 0
13908# endif
13909# endif
13910# endif
13911# endif
13912#endif
13913
13914#ifdef __cplusplus
13915extern "C" void exit (int);
13916#endif
13917
13918void fnord() { int i=42;}
13919int main ()
13920{
13921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13922 int status = $lt_dlunknown;
13923
13924 if (self)
13925 {
13926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13928 /* dlclose (self); */
13929 }
13930
13931 exit (status);
13932}
13933EOF
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13939 (./conftest; exit; ) 2>/dev/null
13940 lt_status=$?
13941 case x$lt_status in
13942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13944 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13945 esac
13946 else :
13947 # compilation failed
13948 lt_cv_dlopen_self_static=no
13949 fi
13950fi
13951rm -fr conftest*
13952
13953
13954fi
13955echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13956echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13957 fi
13958
13959 CPPFLAGS="$save_CPPFLAGS"
13960 LDFLAGS="$save_LDFLAGS"
13961 LIBS="$save_LIBS"
13962 ;;
13963 esac
13964
13965 case $lt_cv_dlopen_self in
13966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13967 *) enable_dlopen_self=unknown ;;
13968 esac
13969
13970 case $lt_cv_dlopen_self_static in
13971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13972 *) enable_dlopen_self_static=unknown ;;
13973 esac
13974fi
13975
13976
13977# The else clause should only fire when bootstrapping the
13978# libtool distribution, otherwise you forgot to ship ltmain.sh
13979# with your package, and you will get complaints that there are
13980# no rules to generate ltmain.sh.
13981if test -f "$ltmain"; then
13982 # Now quote all the things that may contain metacharacters while being
13983 # careful not to overquote the AC_SUBSTed values. We take copies of the
13984 # variables and quote the copies for generation of the libtool script.
13985 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
13986 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13987 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13988 deplibs_check_method reload_flag reload_cmds need_locks \
13989 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13990 lt_cv_sys_global_symbol_to_c_name_address \
13991 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13992 old_postinstall_cmds old_postuninstall_cmds \
13993 compiler_GCJ \
13994 CC_GCJ \
13995 LD_GCJ \
13996 lt_prog_compiler_wl_GCJ \
13997 lt_prog_compiler_pic_GCJ \
13998 lt_prog_compiler_static_GCJ \
13999 lt_prog_compiler_no_builtin_flag_GCJ \
14000 export_dynamic_flag_spec_GCJ \
14001 thread_safe_flag_spec_GCJ \
14002 whole_archive_flag_spec_GCJ \
14003 old_archive_cmds_GCJ \
14004 old_archive_from_new_cmds_GCJ \
14005 predep_objects_GCJ \
14006 postdep_objects_GCJ \
14007 predeps_GCJ \
14008 postdeps_GCJ \
14009 compiler_lib_search_path_GCJ \
14010 archive_cmds_GCJ \
14011 archive_expsym_cmds_GCJ \
14012 postinstall_cmds_GCJ \
14013 postuninstall_cmds_GCJ \
14014 old_archive_from_expsyms_cmds_GCJ \
14015 allow_undefined_flag_GCJ \
14016 no_undefined_flag_GCJ \
14017 export_symbols_cmds_GCJ \
14018 hardcode_libdir_flag_spec_GCJ \
14019 hardcode_libdir_separator_GCJ \
14020 lt_cv_prog_compiler_c_o_GCJ \
14021 exclude_expsyms_GCJ \
14022 include_expsyms_GCJ; do
14023
14024 case $var in
14025 old_archive_cmds_GCJ | \
14026 old_archive_from_new_cmds_GCJ | \
14027 archive_cmds_GCJ | \
14028 archive_expsym_cmds_GCJ | \
14029 old_archive_from_expsyms_cmds_GCJ | \
14030 export_symbols_cmds_GCJ | \
14031 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14032 postinstall_cmds | postuninstall_cmds | \
14033 old_postinstall_cmds | old_postuninstall_cmds | \
14034 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14035 # Double-quote double-evaled strings.
14036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14037 ;;
14038 *)
14039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14040 ;;
14041 esac
14042 done
14043
14044 case $lt_echo in
14045 *'\$0 --fallback-echo"')
14046 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14047 ;;
14048 esac
14049
14050cfgfile="$ofile"
14051
14052 cat <<__EOF__ >> "$cfgfile"
14053# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14054
14055# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14056
14057# Shell to use when invoking shell scripts.
14058SHELL=$lt_SHELL
14059
14060# Whether or not to build shared libraries.
14061build_libtool_libs=$enable_shared
14062
14063# Whether or not to build static libraries.
14064build_old_libs=$enable_static
14065
14066# Whether or not to add -lc for building shared libraries.
14067build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14068
14069# Whether or not to optimize for fast installation.
14070fast_install=$enable_fast_install
14071
14072# The host system.
14073host_alias=$host_alias
14074host=$host
14075
14076# An echo program that does not interpret backslashes.
14077echo=$lt_echo
14078
14079# The archiver.
14080AR=$lt_AR
14081AR_FLAGS=$lt_AR_FLAGS
14082
14083# A C compiler.
14084LTCC=$lt_LTCC
14085
14086# A language-specific compiler.
14087CC=$lt_compiler_GCJ
14088
14089# Is the compiler the GNU C compiler?
14090with_gcc=$GCC_GCJ
14091
14092# The linker used to build libraries.
14093LD=$lt_LD_GCJ
14094
14095# Whether we need hard or soft links.
14096LN_S=$lt_LN_S
14097
14098# A BSD-compatible nm program.
14099NM=$lt_NM
14100
14101# A sed program that does not truncate output.
14102SED=$lt_SED
14103
14104# A symbol stripping program
14105STRIP=$STRIP
14106
14107# Used to examine libraries when file_magic_cmd begins "file"
14108MAGIC_CMD=$MAGIC_CMD
14109
14110# Used on cygwin: DLL creation program.
14111DLLTOOL="$DLLTOOL"
14112
14113# Used on cygwin: object dumper.
14114OBJDUMP="$OBJDUMP"
14115
14116# Used on cygwin: assembler.
14117AS="$AS"
14118
14119# The name of the directory that contains temporary libtool files.
14120objdir=$objdir
14121
14122# How to create reloadable object files.
14123reload_flag=$lt_reload_flag
14124reload_cmds=$lt_reload_cmds
14125
14126# How to pass a linker flag through the compiler.
14127wl=$lt_lt_prog_compiler_wl_GCJ
14128
14129# Object file suffix (normally "o").
14130objext="$ac_objext"
14131
14132# Old archive suffix (normally "a").
14133libext="$libext"
14134
14135# Executable file suffix (normally "").
14136exeext="$exeext"
14137
14138# Additional compiler flags for building library objects.
14139pic_flag=$lt_lt_prog_compiler_pic_GCJ
14140pic_mode=$pic_mode
14141
14142# What is the maximum length of a command?
14143max_cmd_len=$lt_cv_sys_max_cmd_len
14144
14145# Does compiler simultaneously support -c and -o options?
14146compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14147
14148# Must we lock files when doing compilation ?
14149need_locks=$lt_need_locks
14150
14151# Do we need the lib prefix for modules?
14152need_lib_prefix=$need_lib_prefix
14153
14154# Do we need a version for libraries?
14155need_version=$need_version
14156
14157# Whether dlopen is supported.
14158dlopen_support=$enable_dlopen
14159
14160# Whether dlopen of programs is supported.
14161dlopen_self=$enable_dlopen_self
14162
14163# Whether dlopen of statically linked programs is supported.
14164dlopen_self_static=$enable_dlopen_self_static
14165
14166# Compiler flag to prevent dynamic linking.
14167link_static_flag=$lt_lt_prog_compiler_static_GCJ
14168
14169# Compiler flag to turn off builtin functions.
14170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14171
14172# Compiler flag to allow reflexive dlopens.
14173export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14174
14175# Compiler flag to generate shared objects directly from archives.
14176whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14177
14178# Compiler flag to generate thread-safe objects.
14179thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14180
14181# Library versioning type.
14182version_type=$version_type
14183
14184# Format of library name prefix.
14185libname_spec=$lt_libname_spec
14186
14187# List of archive names. First name is the real one, the rest are links.
14188# The last name is the one that the linker finds with -lNAME.
14189library_names_spec=$lt_library_names_spec
14190
14191# The coded name of the library, if different from the real name.
14192soname_spec=$lt_soname_spec
14193
14194# Commands used to build and install an old-style archive.
14195RANLIB=$lt_RANLIB
14196old_archive_cmds=$lt_old_archive_cmds_GCJ
14197old_postinstall_cmds=$lt_old_postinstall_cmds
14198old_postuninstall_cmds=$lt_old_postuninstall_cmds
14199
14200# Create an old-style archive from a shared archive.
14201old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14202
14203# Create a temporary old-style archive to link instead of a shared archive.
14204old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14205
14206# Commands used to build and install a shared archive.
14207archive_cmds=$lt_archive_cmds_GCJ
14208archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14209postinstall_cmds=$lt_postinstall_cmds
14210postuninstall_cmds=$lt_postuninstall_cmds
14211
14212# Commands to strip libraries.
14213old_striplib=$lt_old_striplib
14214striplib=$lt_striplib
14215
14216# Dependencies to place before the objects being linked to create a
14217# shared library.
14218predep_objects=$lt_predep_objects_GCJ
14219
14220# Dependencies to place after the objects being linked to create a
14221# shared library.
14222postdep_objects=$lt_postdep_objects_GCJ
14223
14224# Dependencies to place before the objects being linked to create a
14225# shared library.
14226predeps=$lt_predeps_GCJ
14227
14228# Dependencies to place after the objects being linked to create a
14229# shared library.
14230postdeps=$lt_postdeps_GCJ
14231
14232# The library search path used internally by the compiler when linking
14233# a shared library.
14234compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14235
14236# Method to check whether dependent libraries are shared objects.
14237deplibs_check_method=$lt_deplibs_check_method
14238
14239# Command to use when deplibs_check_method == file_magic.
14240file_magic_cmd=$lt_file_magic_cmd
14241
14242# Flag that allows shared libraries with undefined symbols to be built.
14243allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14244
14245# Flag that forces no undefined symbols.
14246no_undefined_flag=$lt_no_undefined_flag_GCJ
14247
14248# Commands used to finish a libtool library installation in a directory.
14249finish_cmds=$lt_finish_cmds
14250
14251# Same as above, but a single script fragment to be evaled but not shown.
14252finish_eval=$lt_finish_eval
14253
14254# Take the output of nm and produce a listing of raw symbols and C names.
14255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14256
14257# Transform the output of nm in a proper C declaration
14258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14259
14260# Transform the output of nm in a C name address pair
14261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14262
14263# This is the shared library runtime path variable.
14264runpath_var=$runpath_var
14265
14266# This is the shared library path variable.
14267shlibpath_var=$shlibpath_var
14268
14269# Is shlibpath searched before the hard-coded library search path?
14270shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14271
14272# How to hardcode a shared library path into an executable.
14273hardcode_action=$hardcode_action_GCJ
14274
14275# Whether we should hardcode library paths into libraries.
14276hardcode_into_libs=$hardcode_into_libs
14277
14278# Flag to hardcode \$libdir into a binary during linking.
14279# This must work even if \$libdir does not exist.
14280hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14281
14282# Whether we need a single -rpath flag with a separated argument.
14283hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14284
14285# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14286# resulting binary.
14287hardcode_direct=$hardcode_direct_GCJ
14288
14289# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14290# resulting binary.
14291hardcode_minus_L=$hardcode_minus_L_GCJ
14292
14293# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14294# the resulting binary.
14295hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14296
14297# Variables whose values should be saved in libtool wrapper scripts and
14298# restored at relink time.
14299variables_saved_for_relink="$variables_saved_for_relink"
14300
14301# Whether libtool must link a program against all its dependency libraries.
14302link_all_deplibs=$link_all_deplibs_GCJ
14303
14304# Compile-time system search path for libraries
14305sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14306
14307# Run-time system search path for libraries
14308sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14309
14310# Fix the shell variable \$srcfile for the compiler.
14311fix_srcfile_path="$fix_srcfile_path_GCJ"
14312
14313# Set to yes if exported symbols are required.
14314always_export_symbols=$always_export_symbols_GCJ
14315
14316# The commands to list exported symbols.
14317export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14318
14319# The commands to extract the exported symbol list from a shared archive.
14320extract_expsyms_cmds=$lt_extract_expsyms_cmds
14321
14322# Symbols that should not be listed in the preloaded symbols.
14323exclude_expsyms=$lt_exclude_expsyms_GCJ
14324
14325# Symbols that must always be exported.
14326include_expsyms=$lt_include_expsyms_GCJ
14327
14328# ### END LIBTOOL TAG CONFIG: $tagname
14329
14330__EOF__
14331
14332
14333else
14334 # If there is no Makefile yet, we rely on a make rule to execute
14335 # `config.status --recheck' to rerun these tests and create the
14336 # libtool script then.
14337 test -f Makefile && make "$ltmain"
14338fi
14339
14340
14341ac_ext=cc
14342ac_cpp='$CXXCPP $CPPFLAGS'
14343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14346
14347CC="$lt_save_CC"
14348
14349 ;;
14350
14351 RC)
14352
14353
14354
14355# Source file extension for RC test sources.
14356ac_ext=rc
14357
14358# Object file extension for compiled RC test sources.
14359objext=o
14360objext_RC=$objext
14361
14362# Code to be used in simple compile tests
14363lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14364
14365# Code to be used in simple link tests
14366lt_simple_link_test_code="$lt_simple_compile_test_code"
14367
14368# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14369
14370# If no C compiler was specified, use CC.
14371LTCC=${LTCC-"$CC"}
14372
14373# Allow CC to be a program name with arguments.
14374set dummy $CC
14375compiler="$2"
14376
14377
14378# Allow CC to be a program name with arguments.
14379lt_save_CC="$CC"
14380CC=${RC-"windres"}
14381set dummy $CC
14382compiler="$2"
14383compiler_RC=$CC
14384lt_cv_prog_compiler_c_o_RC=yes
14385
14386# The else clause should only fire when bootstrapping the
14387# libtool distribution, otherwise you forgot to ship ltmain.sh
14388# with your package, and you will get complaints that there are
14389# no rules to generate ltmain.sh.
14390if test -f "$ltmain"; then
14391 # Now quote all the things that may contain metacharacters while being
14392 # careful not to overquote the AC_SUBSTed values. We take copies of the
14393 # variables and quote the copies for generation of the libtool script.
14394 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14397 deplibs_check_method reload_flag reload_cmds need_locks \
14398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14399 lt_cv_sys_global_symbol_to_c_name_address \
14400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14401 old_postinstall_cmds old_postuninstall_cmds \
14402 compiler_RC \
14403 CC_RC \
14404 LD_RC \
14405 lt_prog_compiler_wl_RC \
14406 lt_prog_compiler_pic_RC \
14407 lt_prog_compiler_static_RC \
14408 lt_prog_compiler_no_builtin_flag_RC \
14409 export_dynamic_flag_spec_RC \
14410 thread_safe_flag_spec_RC \
14411 whole_archive_flag_spec_RC \
14412 old_archive_cmds_RC \
14413 old_archive_from_new_cmds_RC \
14414 predep_objects_RC \
14415 postdep_objects_RC \
14416 predeps_RC \
14417 postdeps_RC \
14418 compiler_lib_search_path_RC \
14419 archive_cmds_RC \
14420 archive_expsym_cmds_RC \
14421 postinstall_cmds_RC \
14422 postuninstall_cmds_RC \
14423 old_archive_from_expsyms_cmds_RC \
14424 allow_undefined_flag_RC \
14425 no_undefined_flag_RC \
14426 export_symbols_cmds_RC \
14427 hardcode_libdir_flag_spec_RC \
14428 hardcode_libdir_separator_RC \
14429 lt_cv_prog_compiler_c_o_RC \
14430 exclude_expsyms_RC \
14431 include_expsyms_RC; do
14432
14433 case $var in
14434 old_archive_cmds_RC | \
14435 old_archive_from_new_cmds_RC | \
14436 archive_cmds_RC | \
14437 archive_expsym_cmds_RC | \
14438 old_archive_from_expsyms_cmds_RC | \
14439 export_symbols_cmds_RC | \
14440 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14441 postinstall_cmds | postuninstall_cmds | \
14442 old_postinstall_cmds | old_postuninstall_cmds | \
14443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14444 # Double-quote double-evaled strings.
14445 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14446 ;;
14447 *)
14448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14449 ;;
14450 esac
14451 done
14452
14453 case $lt_echo in
14454 *'\$0 --fallback-echo"')
14455 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14456 ;;
14457 esac
14458
14459cfgfile="$ofile"
14460
14461 cat <<__EOF__ >> "$cfgfile"
14462# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14463
14464# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14465
14466# Shell to use when invoking shell scripts.
14467SHELL=$lt_SHELL
14468
14469# Whether or not to build shared libraries.
14470build_libtool_libs=$enable_shared
14471
14472# Whether or not to build static libraries.
14473build_old_libs=$enable_static
14474
14475# Whether or not to add -lc for building shared libraries.
14476build_libtool_need_lc=$archive_cmds_need_lc_RC
14477
14478# Whether or not to optimize for fast installation.
14479fast_install=$enable_fast_install
14480
14481# The host system.
14482host_alias=$host_alias
14483host=$host
14484
14485# An echo program that does not interpret backslashes.
14486echo=$lt_echo
14487
14488# The archiver.
14489AR=$lt_AR
14490AR_FLAGS=$lt_AR_FLAGS
14491
14492# A C compiler.
14493LTCC=$lt_LTCC
14494
14495# A language-specific compiler.
14496CC=$lt_compiler_RC
14497
14498# Is the compiler the GNU C compiler?
14499with_gcc=$GCC_RC
14500
14501# The linker used to build libraries.
14502LD=$lt_LD_RC
14503
14504# Whether we need hard or soft links.
14505LN_S=$lt_LN_S
14506
14507# A BSD-compatible nm program.
14508NM=$lt_NM
14509
14510# A sed program that does not truncate output.
14511SED=$lt_SED
14512
14513# A symbol stripping program
14514STRIP=$STRIP
14515
14516# Used to examine libraries when file_magic_cmd begins "file"
14517MAGIC_CMD=$MAGIC_CMD
14518
14519# Used on cygwin: DLL creation program.
14520DLLTOOL="$DLLTOOL"
14521
14522# Used on cygwin: object dumper.
14523OBJDUMP="$OBJDUMP"
14524
14525# Used on cygwin: assembler.
14526AS="$AS"
14527
14528# The name of the directory that contains temporary libtool files.
14529objdir=$objdir
14530
14531# How to create reloadable object files.
14532reload_flag=$lt_reload_flag
14533reload_cmds=$lt_reload_cmds
14534
14535# How to pass a linker flag through the compiler.
14536wl=$lt_lt_prog_compiler_wl_RC
14537
14538# Object file suffix (normally "o").
14539objext="$ac_objext"
14540
14541# Old archive suffix (normally "a").
14542libext="$libext"
14543
14544# Executable file suffix (normally "").
14545exeext="$exeext"
14546
14547# Additional compiler flags for building library objects.
14548pic_flag=$lt_lt_prog_compiler_pic_RC
14549pic_mode=$pic_mode
14550
14551# What is the maximum length of a command?
14552max_cmd_len=$lt_cv_sys_max_cmd_len
14553
14554# Does compiler simultaneously support -c and -o options?
14555compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14556
14557# Must we lock files when doing compilation ?
14558need_locks=$lt_need_locks
14559
14560# Do we need the lib prefix for modules?
14561need_lib_prefix=$need_lib_prefix
14562
14563# Do we need a version for libraries?
14564need_version=$need_version
14565
14566# Whether dlopen is supported.
14567dlopen_support=$enable_dlopen
14568
14569# Whether dlopen of programs is supported.
14570dlopen_self=$enable_dlopen_self
14571
14572# Whether dlopen of statically linked programs is supported.
14573dlopen_self_static=$enable_dlopen_self_static
14574
14575# Compiler flag to prevent dynamic linking.
14576link_static_flag=$lt_lt_prog_compiler_static_RC
14577
14578# Compiler flag to turn off builtin functions.
14579no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14580
14581# Compiler flag to allow reflexive dlopens.
14582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14583
14584# Compiler flag to generate shared objects directly from archives.
14585whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14586
14587# Compiler flag to generate thread-safe objects.
14588thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14589
14590# Library versioning type.
14591version_type=$version_type
14592
14593# Format of library name prefix.
14594libname_spec=$lt_libname_spec
14595
14596# List of archive names. First name is the real one, the rest are links.
14597# The last name is the one that the linker finds with -lNAME.
14598library_names_spec=$lt_library_names_spec
14599
14600# The coded name of the library, if different from the real name.
14601soname_spec=$lt_soname_spec
14602
14603# Commands used to build and install an old-style archive.
14604RANLIB=$lt_RANLIB
14605old_archive_cmds=$lt_old_archive_cmds_RC
14606old_postinstall_cmds=$lt_old_postinstall_cmds
14607old_postuninstall_cmds=$lt_old_postuninstall_cmds
14608
14609# Create an old-style archive from a shared archive.
14610old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14611
14612# Create a temporary old-style archive to link instead of a shared archive.
14613old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14614
14615# Commands used to build and install a shared archive.
14616archive_cmds=$lt_archive_cmds_RC
14617archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14618postinstall_cmds=$lt_postinstall_cmds
14619postuninstall_cmds=$lt_postuninstall_cmds
14620
14621# Commands to strip libraries.
14622old_striplib=$lt_old_striplib
14623striplib=$lt_striplib
14624
14625# Dependencies to place before the objects being linked to create a
14626# shared library.
14627predep_objects=$lt_predep_objects_RC
14628
14629# Dependencies to place after the objects being linked to create a
14630# shared library.
14631postdep_objects=$lt_postdep_objects_RC
14632
14633# Dependencies to place before the objects being linked to create a
14634# shared library.
14635predeps=$lt_predeps_RC
14636
14637# Dependencies to place after the objects being linked to create a
14638# shared library.
14639postdeps=$lt_postdeps_RC
14640
14641# The library search path used internally by the compiler when linking
14642# a shared library.
14643compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14644
14645# Method to check whether dependent libraries are shared objects.
14646deplibs_check_method=$lt_deplibs_check_method
14647
14648# Command to use when deplibs_check_method == file_magic.
14649file_magic_cmd=$lt_file_magic_cmd
14650
14651# Flag that allows shared libraries with undefined symbols to be built.
14652allow_undefined_flag=$lt_allow_undefined_flag_RC
14653
14654# Flag that forces no undefined symbols.
14655no_undefined_flag=$lt_no_undefined_flag_RC
14656
14657# Commands used to finish a libtool library installation in a directory.
14658finish_cmds=$lt_finish_cmds
14659
14660# Same as above, but a single script fragment to be evaled but not shown.
14661finish_eval=$lt_finish_eval
14662
14663# Take the output of nm and produce a listing of raw symbols and C names.
14664global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14665
14666# Transform the output of nm in a proper C declaration
14667global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14668
14669# Transform the output of nm in a C name address pair
14670global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14671
14672# This is the shared library runtime path variable.
14673runpath_var=$runpath_var
14674
14675# This is the shared library path variable.
14676shlibpath_var=$shlibpath_var
14677
14678# Is shlibpath searched before the hard-coded library search path?
14679shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14680
14681# How to hardcode a shared library path into an executable.
14682hardcode_action=$hardcode_action_RC
14683
14684# Whether we should hardcode library paths into libraries.
14685hardcode_into_libs=$hardcode_into_libs
14686
14687# Flag to hardcode \$libdir into a binary during linking.
14688# This must work even if \$libdir does not exist.
14689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14690
14691# Whether we need a single -rpath flag with a separated argument.
14692hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14693
14694# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14695# resulting binary.
14696hardcode_direct=$hardcode_direct_RC
14697
14698# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14699# resulting binary.
14700hardcode_minus_L=$hardcode_minus_L_RC
14701
14702# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14703# the resulting binary.
14704hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14705
14706# Variables whose values should be saved in libtool wrapper scripts and
14707# restored at relink time.
14708variables_saved_for_relink="$variables_saved_for_relink"
14709
14710# Whether libtool must link a program against all its dependency libraries.
14711link_all_deplibs=$link_all_deplibs_RC
14712
14713# Compile-time system search path for libraries
14714sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14715
14716# Run-time system search path for libraries
14717sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14718
14719# Fix the shell variable \$srcfile for the compiler.
14720fix_srcfile_path="$fix_srcfile_path_RC"
14721
14722# Set to yes if exported symbols are required.
14723always_export_symbols=$always_export_symbols_RC
14724
14725# The commands to list exported symbols.
14726export_symbols_cmds=$lt_export_symbols_cmds_RC
14727
14728# The commands to extract the exported symbol list from a shared archive.
14729extract_expsyms_cmds=$lt_extract_expsyms_cmds
14730
14731# Symbols that should not be listed in the preloaded symbols.
14732exclude_expsyms=$lt_exclude_expsyms_RC
14733
14734# Symbols that must always be exported.
14735include_expsyms=$lt_include_expsyms_RC
14736
14737# ### END LIBTOOL TAG CONFIG: $tagname
14738
14739__EOF__
14740
14741
14742else
14743 # If there is no Makefile yet, we rely on a make rule to execute
14744 # `config.status --recheck' to rerun these tests and create the
14745 # libtool script then.
14746 test -f Makefile && make "$ltmain"
14747fi
14748
14749
14750ac_ext=cc
14751ac_cpp='$CXXCPP $CPPFLAGS'
14752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14755
14756CC="$lt_save_CC"
14757
14758 ;;
14759
14760 *)
14761 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14762echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14763 { (exit 1); exit 1; }; }
14764 ;;
14765 esac
14766
14767 # Append the new tag name to the list of available tags.
14768 available_tags="$available_tags $tagname"
14769 fi
14770 done
14771 IFS="$lt_save_ifs"
14772
14773 # Now substitute the updated list of available tags.
14774 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14775 mv "${ofile}T" "$ofile"
14776 chmod +x "$ofile"
14777 else
14778 rm -f "${ofile}T"
14779 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14780echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14781 { (exit 1); exit 1; }; }
14782 fi
14783fi
14784
14785
14786
14787# This can be used to rebuild libtool when needed
14788LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14789
14790# Always use our own libtool.
14791LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14792
14793# Prevent multiple expansion
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807if test -n "$ac_tool_prefix"; then
14808 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14809set dummy ${ac_tool_prefix}windres; ac_word=$2
14810echo "$as_me:$LINENO: checking for $ac_word" >&5
14811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14812if test "${ac_cv_prog_WINDRES+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814else
14815 if test -n "$WINDRES"; then
14816 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14817else
14818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819for as_dir in $PATH
14820do
14821 IFS=$as_save_IFS
14822 test -z "$as_dir" && as_dir=.
14823 for ac_exec_ext in '' $ac_executable_extensions; do
14824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14825 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14827 break 2
14828 fi
14829done
14830done
14831
14832fi
14833fi
14834WINDRES=$ac_cv_prog_WINDRES
14835if test -n "$WINDRES"; then
14836 echo "$as_me:$LINENO: result: $WINDRES" >&5
14837echo "${ECHO_T}$WINDRES" >&6
14838else
14839 echo "$as_me:$LINENO: result: no" >&5
14840echo "${ECHO_T}no" >&6
14841fi
14842
14843fi
14844if test -z "$ac_cv_prog_WINDRES"; then
14845 ac_ct_WINDRES=$WINDRES
14846 # Extract the first word of "windres", so it can be a program name with args.
14847set dummy windres; ac_word=$2
14848echo "$as_me:$LINENO: checking for $ac_word" >&5
14849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14850if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852else
14853 if test -n "$ac_ct_WINDRES"; then
14854 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14855else
14856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857for as_dir in $PATH
14858do
14859 IFS=$as_save_IFS
14860 test -z "$as_dir" && as_dir=.
14861 for ac_exec_ext in '' $ac_executable_extensions; do
14862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863 ac_cv_prog_ac_ct_WINDRES="windres"
14864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14865 break 2
14866 fi
14867done
14868done
14869
14870 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="windres"
14871fi
14872fi
14873ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14874if test -n "$ac_ct_WINDRES"; then
14875 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14876echo "${ECHO_T}$ac_ct_WINDRES" >&6
14877else
14878 echo "$as_me:$LINENO: result: no" >&5
14879echo "${ECHO_T}no" >&6
14880fi
14881
14882 WINDRES=$ac_ct_WINDRES
14883else
14884 WINDRES="$ac_cv_prog_WINDRES"
14885fi
14886
14887
14888
14889
14890
14891subdirs="$subdirs zlib"
14892
14893
14894
14895subdirs="$subdirs bz2lib"
14896
14897
14898
14899subdirs="$subdirs libgetopt++"
db04fc41
RC
14900
14901
14902ac_config_files="$ac_config_files Makefile"
14903
14904cat >confcache <<\_ACEOF
739457f4
CF
14905# This file is a shell script that caches the results of configure
14906# tests run on this system so they can be shared between configure
db04fc41
RC
14907# scripts and configure runs, see configure's option --config-cache.
14908# It is not useful on other systems. If it contains results you don't
14909# want to keep, you may remove or edit it.
739457f4 14910#
db04fc41
RC
14911# config.status only pays attention to the cache file if you give it
14912# the --recheck option to rerun configure.
739457f4 14913#
db04fc41
RC
14914# `ac_cv_env_foo' variables (set or unset) will be overriden when
14915# loading this file, other *unset* `ac_cv_foo' will be assigned the
14916# following values.
14917
14918_ACEOF
14919
739457f4
CF
14920# The following way of writing the cache mishandles newlines in values,
14921# but we know of no workaround that is simple, portable, and efficient.
14922# So, don't put newlines in cache variables' values.
14923# Ultrix sh set writes to stderr and can't be redirected directly,
14924# and sets the high bit in the cache file unless we assign to the vars.
db04fc41
RC
14925{
14926 (set) 2>&1 |
14927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14928 *ac_space=\ *)
14929 # `set' does not quote correctly, so add quotes (double-quote
14930 # substitution turns \\\\ into \\, and sed turns \\ into \).
14931 sed -n \
14932 "s/'/'\\\\''/g;
14933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14934 ;;
14935 *)
14936 # `set' quotes correctly as required by POSIX, so do not add quotes.
14937 sed -n \
14938 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14939 ;;
14940 esac;
14941} |
14942 sed '
14943 t clear
14944 : clear
14945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14946 t end
14947 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14948 : end' >>confcache
14949if cmp -s $cache_file confcache; then :; else
739457f4 14950 if test -w $cache_file; then
db04fc41
RC
14951 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14952 cat confcache >$cache_file
739457f4
CF
14953 else
14954 echo "not updating unwritable cache $cache_file"
14955 fi
14956fi
14957rm -f confcache
14958
739457f4
CF
14959test "x$prefix" = xNONE && prefix=$ac_default_prefix
14960# Let make expand exec_prefix.
14961test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14962
db04fc41
RC
14963# VPATH may cause trouble with some makes, so we remove $(srcdir),
14964# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14965# trailing colons and then remove the whole line if VPATH becomes empty
14966# (actually we leave an empty line to preserve line numbers).
739457f4 14967if test "x$srcdir" = x.; then
db04fc41
RC
14968 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14969s/:*\$(srcdir):*/:/;
14970s/:*\${srcdir}:*/:/;
14971s/:*@srcdir@:*/:/;
14972s/^\([^=]*=[ ]*\):*/\1/;
14973s/:*$//;
14974s/^[^=]*=[ ]*$//;
14975}'
739457f4
CF
14976fi
14977
739457f4
CF
14978# Transform confdefs.h into DEFS.
14979# Protect against shell expansion while executing Makefile rules.
14980# Protect against Makefile macro expansion.
db04fc41
RC
14981#
14982# If the first sed substitution is executed (which looks for macros that
14983# take arguments), then we branch to the quote section. Otherwise,
14984# look for a macro that doesn't take arguments.
14985cat >confdef2opt.sed <<\_ACEOF
14986t clear
14987: clear
14988s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14989t quote
14990s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14991t quote
14992d
14993: quote
14994s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14995s,\[,\\&,g
14996s,\],\\&,g
14997s,\$,$$,g
14998p
14999_ACEOF
15000# We use echo to avoid assuming a particular line-breaking character.
15001# The extra dot is to prevent the shell from consuming trailing
15002# line-breaks from the sub-command output. A line-break within
15003# single-quotes doesn't work because, if this script is created in a
15004# platform that uses two characters for line-breaks (e.g., DOS), tr
15005# would break.
15006ac_LF_and_DOT=`echo; echo .`
15007DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
15008rm -f confdef2opt.sed
739457f4 15009
db04fc41 15010
f6100b6f
RC
15011if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15012 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15013Usually this means the macro was only invoked conditionally." >&5
15014echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15015Usually this means the macro was only invoked conditionally." >&2;}
15016 { (exit 1); exit 1; }; }
15017fi
15018if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15019 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15020Usually this means the macro was only invoked conditionally." >&5
15021echo "$as_me: error: conditional \"AMDEP\" was never defined.
15022Usually this means the macro was only invoked conditionally." >&2;}
15023 { (exit 1); exit 1; }; }
15024fi
db04fc41
RC
15025
15026: ${CONFIG_STATUS=./config.status}
15027ac_clean_files_save=$ac_clean_files
15028ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15029{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15030echo "$as_me: creating $CONFIG_STATUS" >&6;}
15031cat >$CONFIG_STATUS <<_ACEOF
15032#! $SHELL
15033# Generated by $as_me.
739457f4 15034# Run this file to recreate the current configuration.
739457f4 15035# Compiler output produced by configure, useful for debugging
db04fc41 15036# configure, is in config.log if it exists.
739457f4 15037
db04fc41
RC
15038debug=false
15039SHELL=\${CONFIG_SHELL-$SHELL}
15040_ACEOF
15041
15042cat >>$CONFIG_STATUS <<\_ACEOF
15043
15044## --------------------- ##
15045## M4sh Initialization. ##
15046## --------------------- ##
15047
15048# Be Bourne compatible
15049if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15050 emulate sh
15051 NULLCMD=:
15052elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15053 set -o posix
15054fi
15055
15056# NLS nuisances.
15057# Support unset when possible.
15058if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15059 as_unset=unset
15060else
15061 as_unset=false
15062fi
15063
15064(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15065 { $as_unset LANG || test "${LANG+set}" != set; } ||
15066 { LANG=C; export LANG; }
15067(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15068 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15069 { LC_ALL=C; export LC_ALL; }
15070(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15071 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15072 { LC_TIME=C; export LC_TIME; }
15073(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15074 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15075 { LC_CTYPE=C; export LC_CTYPE; }
15076(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15077 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15078 { LANGUAGE=C; export LANGUAGE; }
15079(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15080 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15081 { LC_COLLATE=C; export LC_COLLATE; }
15082(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15083 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15084 { LC_NUMERIC=C; export LC_NUMERIC; }
15085(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15086 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15087 { LC_MESSAGES=C; export LC_MESSAGES; }
15088
15089
15090# Name of the executable.
15091as_me=`(basename "$0") 2>/dev/null ||
15092$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15093 X"$0" : 'X\(//\)$' \| \
15094 X"$0" : 'X\(/\)$' \| \
15095 . : '\(.\)' 2>/dev/null ||
15096echo X/"$0" |
15097 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15098 /^X\/\(\/\/\)$/{ s//\1/; q; }
15099 /^X\/\(\/\).*/{ s//\1/; q; }
15100 s/.*/./; q'`
15101
15102# PATH needs CR, and LINENO needs CR and PATH.
15103# Avoid depending upon Character Ranges.
15104as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15106as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15107as_cr_digits='0123456789'
15108as_cr_alnum=$as_cr_Letters$as_cr_digits
15109
15110# The user is always right.
15111if test "${PATH_SEPARATOR+set}" != set; then
15112 echo "#! /bin/sh" >conftest.sh
15113 echo "exit 0" >>conftest.sh
15114 chmod +x conftest.sh
15115 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15116 PATH_SEPARATOR=';'
15117 else
15118 PATH_SEPARATOR=:
15119 fi
15120 rm -f conftest.sh
15121fi
15122
15123
15124 as_lineno_1=$LINENO
15125 as_lineno_2=$LINENO
15126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15127 test "x$as_lineno_1" != "x$as_lineno_2" &&
15128 test "x$as_lineno_3" = "x$as_lineno_2" || {
15129 # Find who we are. Look in the path if we contain no path at all
15130 # relative or not.
15131 case $0 in
15132 *[\\/]* ) as_myself=$0 ;;
15133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15134for as_dir in $PATH
15135do
15136 IFS=$as_save_IFS
15137 test -z "$as_dir" && as_dir=.
15138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15139done
15140
15141 ;;
15142 esac
15143 # We did not find ourselves, most probably we were run as `sh COMMAND'
15144 # in which case we are not to be found in the path.
15145 if test "x$as_myself" = x; then
15146 as_myself=$0
15147 fi
15148 if test ! -f "$as_myself"; then
15149 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15150echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15151 { (exit 1); exit 1; }; }
15152 fi
15153 case $CONFIG_SHELL in
15154 '')
15155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15156for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15157do
15158 IFS=$as_save_IFS
15159 test -z "$as_dir" && as_dir=.
15160 for as_base in sh bash ksh sh5; do
15161 case $as_dir in
15162 /*)
15163 if ("$as_dir/$as_base" -c '
15164 as_lineno_1=$LINENO
15165 as_lineno_2=$LINENO
15166 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15167 test "x$as_lineno_1" != "x$as_lineno_2" &&
15168 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15169 CONFIG_SHELL=$as_dir/$as_base
15170 export CONFIG_SHELL
15171 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15172 fi;;
15173 esac
15174 done
15175done
15176;;
15177 esac
15178
15179 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15180 # uniformly replaced by the line number. The first 'sed' inserts a
15181 # line-number line before each line; the second 'sed' does the real
15182 # work. The second script uses 'N' to pair each line-number line
15183 # with the numbered line, and appends trailing '-' during
15184 # substitution so that $LINENO is not a special case at line end.
15185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15186 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15187 sed '=' <$as_myself |
15188 sed '
15189 N
15190 s,$,-,
15191 : loop
15192 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15193 t loop
15194 s,-$,,
15195 s,^['$as_cr_digits']*\n,,
15196 ' >$as_me.lineno &&
15197 chmod +x $as_me.lineno ||
15198 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15199echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15200 { (exit 1); exit 1; }; }
15201
15202 # Don't try to exec as it changes $[0], causing all sort of problems
15203 # (the dirname of $[0] is not the place where we might find the
15204 # original and so on. Autoconf is especially sensible to this).
15205 . ./$as_me.lineno
15206 # Exit status is that of the last command.
15207 exit
15208}
15209
15210
15211case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15212 *c*,-n*) ECHO_N= ECHO_C='
15213' ECHO_T=' ' ;;
15214 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15215 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15216esac
15217
15218if expr a : '\(a\)' >/dev/null 2>&1; then
15219 as_expr=expr
15220else
15221 as_expr=false
15222fi
15223
15224rm -f conf$$ conf$$.exe conf$$.file
15225echo >conf$$.file
15226if ln -s conf$$.file conf$$ 2>/dev/null; then
15227 # We could just check for DJGPP; but this test a) works b) is more generic
15228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15229 if test -f conf$$.exe; then
15230 # Don't use ln at all; we don't have any links
15231 as_ln_s='cp -p'
15232 else
15233 as_ln_s='ln -s'
15234 fi
15235elif ln conf$$.file conf$$ 2>/dev/null; then
15236 as_ln_s=ln
15237else
15238 as_ln_s='cp -p'
15239fi
15240rm -f conf$$ conf$$.exe conf$$.file
15241
15242as_executable_p="test -f"
15243
15244# Sed expression to map a string onto a valid CPP name.
15245as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15246
15247# Sed expression to map a string onto a valid variable name.
15248as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15249
15250
15251# IFS
15252# We need space, tab and new line, in precisely that order.
15253as_nl='
15254'
15255IFS=" $as_nl"
15256
15257# CDPATH.
15258$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
15259
15260exec 6>&1
15261
15262# Open the log real soon, to keep \$[0] and so on meaningful, and to
15263# report actual input values of CONFIG_FILES etc. instead of their
15264# values after options handling. Logging --version etc. is OK.
15265exec 5>>config.log
15266{
15267 echo
15268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15269## Running $as_me. ##
15270_ASBOX
15271} >&5
15272cat >&5 <<_CSEOF
15273
15274This file was extended by $as_me, which was
15275generated by GNU Autoconf 2.53. Invocation command line was
15276
15277 CONFIG_FILES = $CONFIG_FILES
15278 CONFIG_HEADERS = $CONFIG_HEADERS
15279 CONFIG_LINKS = $CONFIG_LINKS
15280 CONFIG_COMMANDS = $CONFIG_COMMANDS
15281 $ $0 $@
15282
15283_CSEOF
15284echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15285echo >&5
15286_ACEOF
15287
15288# Files that config.status was made for.
15289if test -n "$ac_config_files"; then
15290 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15291fi
15292
15293if test -n "$ac_config_headers"; then
15294 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15295fi
15296
15297if test -n "$ac_config_links"; then
15298 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15299fi
15300
15301if test -n "$ac_config_commands"; then
15302 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15303fi
15304
15305cat >>$CONFIG_STATUS <<\_ACEOF
15306
15307ac_cs_usage="\
15308\`$as_me' instantiates files from templates according to the
15309current configuration.
15310
15311Usage: $0 [OPTIONS] [FILE]...
15312
15313 -h, --help print this help, then exit
15314 -V, --version print version number, then exit
15315 -d, --debug don't remove temporary files
15316 --recheck update $as_me by reconfiguring in the same conditions
15317 --file=FILE[:TEMPLATE]
15318 instantiate the configuration file FILE
15319
15320Configuration files:
15321$config_files
15322
f6100b6f
RC
15323Configuration commands:
15324$config_commands
15325
db04fc41
RC
15326Report bugs to <bug-autoconf@gnu.org>."
15327_ACEOF
15328
15329cat >>$CONFIG_STATUS <<_ACEOF
15330ac_cs_version="\\
15331config.status
15332configured by $0, generated by GNU Autoconf 2.53,
15333 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15334
15335Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15336Free Software Foundation, Inc.
15337This config.status script is free software; the Free Software Foundation
15338gives unlimited permission to copy, distribute and modify it."
15339srcdir=$srcdir
15340INSTALL="$INSTALL"
15341_ACEOF
15342
15343cat >>$CONFIG_STATUS <<\_ACEOF
15344# If no file are specified by the user, then we need to provide default
15345# value. By we need to know if files were specified by the user.
15346ac_need_defaults=:
15347while test $# != 0
739457f4 15348do
db04fc41
RC
15349 case $1 in
15350 --*=*)
15351 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15352 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15353 shift
15354 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15355 shift
15356 ;;
15357 -*);;
15358 *) # This is not an option, so the user has probably given explicit
15359 # arguments.
15360 ac_need_defaults=false;;
15361 esac
15362
15363 case $1 in
15364 # Handling of the options.
15365_ACEOF
15366cat >>$CONFIG_STATUS <<_ACEOF
739457f4 15367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
db04fc41
RC
15368 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15369 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15370_ACEOF
15371cat >>$CONFIG_STATUS <<\_ACEOF
15372 --version | --vers* | -V )
15373 echo "$ac_cs_version"; exit 0 ;;
15374 --he | --h)
15375 # Conflict between --help and --header
15376 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15377Try \`$0 --help' for more information." >&5
15378echo "$as_me: error: ambiguous option: $1
15379Try \`$0 --help' for more information." >&2;}
15380 { (exit 1); exit 1; }; };;
15381 --help | --hel | -h )
15382 echo "$ac_cs_usage"; exit 0 ;;
15383 --debug | --d* | -d )
15384 debug=: ;;
15385 --file | --fil | --fi | --f )
15386 shift
15387 CONFIG_FILES="$CONFIG_FILES $1"
15388 ac_need_defaults=false;;
15389 --header | --heade | --head | --hea )
15390 shift
15391 CONFIG_HEADERS="$CONFIG_HEADERS $1"
15392 ac_need_defaults=false;;
15393
15394 # This is an error.
15395 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15396Try \`$0 --help' for more information." >&5
15397echo "$as_me: error: unrecognized option: $1
15398Try \`$0 --help' for more information." >&2;}
15399 { (exit 1); exit 1; }; } ;;
15400
15401 *) ac_config_targets="$ac_config_targets $1" ;;
15402
739457f4 15403 esac
db04fc41 15404 shift
739457f4
CF
15405done
15406
db04fc41 15407_ACEOF
739457f4 15408
f6100b6f
RC
15409cat >>$CONFIG_STATUS <<_ACEOF
15410#
15411# INIT-COMMANDS section.
15412#
15413
15414AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
739457f4 15415
f6100b6f 15416_ACEOF
739457f4 15417
db04fc41
RC
15418
15419
15420cat >>$CONFIG_STATUS <<\_ACEOF
15421for ac_config_target in $ac_config_targets
15422do
15423 case "$ac_config_target" in
15424 # Handling of arguments.
15425 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
f6100b6f 15426 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
db04fc41
RC
15427 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15428echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15429 { (exit 1); exit 1; }; };;
15430 esac
15431done
15432
15433# If the user did not use the arguments to specify the items to instantiate,
15434# then the envvar interface is used. Set only those that are not.
15435# We use the long form for the default assignment because of an extremely
15436# bizarre bug on SunOS 4.1.3.
15437if $ac_need_defaults; then
15438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
f6100b6f 15439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
db04fc41
RC
15440fi
15441
15442# Create a temporary directory, and hook for its removal unless debugging.
15443$debug ||
15444{
15445 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15446 trap '{ (exit 1); exit 1; }' 1 2 13 15
15447}
15448
15449# Create a (secure) tmp directory for tmp files.
15450: ${TMPDIR=/tmp}
15451{
15452 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15453 test -n "$tmp" && test -d "$tmp"
15454} ||
15455{
15456 tmp=$TMPDIR/cs$$-$RANDOM
15457 (umask 077 && mkdir $tmp)
15458} ||
15459{
15460 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15461 { (exit 1); exit 1; }
15462}
15463
15464_ACEOF
15465
15466cat >>$CONFIG_STATUS <<_ACEOF
15467
15468#
15469# CONFIG_FILES section.
15470#
15471
15472# No need to generate the scripts if there are no CONFIG_FILES.
15473# This happens for instance when ./config.status config.h
15474if test -n "\$CONFIG_FILES"; then
15475 # Protect against being on the right side of a sed subst in config.status.
15476 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15477 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15478s,@SHELL@,$SHELL,;t t
15479s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15480s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15481s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15482s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15483s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15484s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15485s,@exec_prefix@,$exec_prefix,;t t
15486s,@prefix@,$prefix,;t t
15487s,@program_transform_name@,$program_transform_name,;t t
15488s,@bindir@,$bindir,;t t
15489s,@sbindir@,$sbindir,;t t
15490s,@libexecdir@,$libexecdir,;t t
15491s,@datadir@,$datadir,;t t
15492s,@sysconfdir@,$sysconfdir,;t t
15493s,@sharedstatedir@,$sharedstatedir,;t t
15494s,@localstatedir@,$localstatedir,;t t
15495s,@libdir@,$libdir,;t t
15496s,@includedir@,$includedir,;t t
15497s,@oldincludedir@,$oldincludedir,;t t
15498s,@infodir@,$infodir,;t t
15499s,@mandir@,$mandir,;t t
15500s,@build_alias@,$build_alias,;t t
15501s,@host_alias@,$host_alias,;t t
15502s,@target_alias@,$target_alias,;t t
15503s,@DEFS@,$DEFS,;t t
15504s,@ECHO_C@,$ECHO_C,;t t
15505s,@ECHO_N@,$ECHO_N,;t t
15506s,@ECHO_T@,$ECHO_T,;t t
15507s,@LIBS@,$LIBS,;t t
f6100b6f
RC
15508s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15509s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15510s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15511s,@PACKAGE@,$PACKAGE,;t t
15512s,@VERSION@,$VERSION,;t t
15513s,@ACLOCAL@,$ACLOCAL,;t t
15514s,@AUTOCONF@,$AUTOCONF,;t t
15515s,@AUTOMAKE@,$AUTOMAKE,;t t
15516s,@AUTOHEADER@,$AUTOHEADER,;t t
15517s,@MAKEINFO@,$MAKEINFO,;t t
15518s,@AMTAR@,$AMTAR,;t t
15519s,@install_sh@,$install_sh,;t t
15520s,@STRIP@,$STRIP,;t t
15521s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15522s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15523s,@AWK@,$AWK,;t t
15524s,@SET_MAKE@,$SET_MAKE,;t t
15525s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15526s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15527s,@MAINT@,$MAINT,;t t
db04fc41
RC
15528s,@CXX@,$CXX,;t t
15529s,@CXXFLAGS@,$CXXFLAGS,;t t
15530s,@LDFLAGS@,$LDFLAGS,;t t
15531s,@CPPFLAGS@,$CPPFLAGS,;t t
15532s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15533s,@EXEEXT@,$EXEEXT,;t t
15534s,@OBJEXT@,$OBJEXT,;t t
f6100b6f
RC
15535s,@DEPDIR@,$DEPDIR,;t t
15536s,@am__include@,$am__include,;t t
15537s,@am__quote@,$am__quote,;t t
15538s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15539s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15540s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15541s,@CXXDEPMODE@,$CXXDEPMODE,;t t
db04fc41
RC
15542s,@CC@,$CC,;t t
15543s,@CFLAGS@,$CFLAGS,;t t
15544s,@ac_ct_CC@,$ac_ct_CC,;t t
f6100b6f
RC
15545s,@CCDEPMODE@,$CCDEPMODE,;t t
15546s,@LEX@,$LEX,;t t
15547s,@LEXLIB@,$LEXLIB,;t t
15548s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15549s,@YACC@,$YACC,;t t
db04fc41
RC
15550s,@build@,$build,;t t
15551s,@build_cpu@,$build_cpu,;t t
15552s,@build_vendor@,$build_vendor,;t t
15553s,@build_os@,$build_os,;t t
15554s,@host@,$host,;t t
15555s,@host_cpu@,$host_cpu,;t t
15556s,@host_vendor@,$host_vendor,;t t
15557s,@host_os@,$host_os,;t t
6908b7d7
RC
15558s,@LN_S@,$LN_S,;t t
15559s,@ECHO@,$ECHO,;t t
15560s,@RANLIB@,$RANLIB,;t t
15561s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15562s,@CPP@,$CPP,;t t
15563s,@CXXCPP@,$CXXCPP,;t t
15564s,@LIBTOOL@,$LIBTOOL,;t t
db04fc41
RC
15565s,@WINDRES@,$WINDRES,;t t
15566s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
db04fc41 15567s,@subdirs@,$subdirs,;t t
739457f4 15568CEOF
db04fc41
RC
15569
15570_ACEOF
15571
15572 cat >>$CONFIG_STATUS <<\_ACEOF
15573 # Split the substitutions into bite-sized pieces for seds with
15574 # small command number limits, like on Digital OSF/1 and HP-UX.
15575 ac_max_sed_lines=48
15576 ac_sed_frag=1 # Number of current file.
15577 ac_beg=1 # First line for current file.
15578 ac_end=$ac_max_sed_lines # Line after last line for current file.
15579 ac_more_lines=:
15580 ac_sed_cmds=
15581 while $ac_more_lines; do
15582 if test $ac_beg -gt 1; then
15583 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15584 else
15585 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15586 fi
15587 if test ! -s $tmp/subs.frag; then
15588 ac_more_lines=false
739457f4 15589 else
db04fc41
RC
15590 # The purpose of the label and of the branching condition is to
15591 # speed up the sed processing (if there are no `@' at all, there
15592 # is no need to browse any of the substitutions).
15593 # These are the two extra sed commands mentioned above.
15594 (echo ':t
15595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15596 if test -z "$ac_sed_cmds"; then
15597 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15598 else
15599 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15600 fi
15601 ac_sed_frag=`expr $ac_sed_frag + 1`
15602 ac_beg=$ac_end
15603 ac_end=`expr $ac_end + $ac_max_sed_lines`
739457f4 15604 fi
db04fc41
RC
15605 done
15606 if test -z "$ac_sed_cmds"; then
15607 ac_sed_cmds=cat
739457f4 15608 fi
db04fc41 15609fi # test -n "$CONFIG_FILES"
739457f4 15610
db04fc41
RC
15611_ACEOF
15612cat >>$CONFIG_STATUS <<\_ACEOF
15613for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
739457f4 15614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
db04fc41
RC
15615 case $ac_file in
15616 - | *:- | *:-:* ) # input from stdin
15617 cat >$tmp/stdin
15618 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15620 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15622 * ) ac_file_in=$ac_file.in ;;
15623 esac
15624
15625 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15626 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15627$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15628 X"$ac_file" : 'X\(//\)[^/]' \| \
15629 X"$ac_file" : 'X\(//\)$' \| \
15630 X"$ac_file" : 'X\(/\)' \| \
15631 . : '\(.\)' 2>/dev/null ||
15632echo X"$ac_file" |
15633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15635 /^X\(\/\/\)$/{ s//\1/; q; }
15636 /^X\(\/\).*/{ s//\1/; q; }
15637 s/.*/./; q'`
15638 { case "$ac_dir" in
15639 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15640 *) as_incr_dir=.;;
15641esac
15642as_dummy="$ac_dir"
15643for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15644 case $as_mkdir_dir in
15645 # Skip DOS drivespec
15646 ?:) as_incr_dir=$as_mkdir_dir ;;
15647 *)
15648 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15649 test -d "$as_incr_dir" ||
15650 mkdir "$as_incr_dir" ||
15651 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15652echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15653 { (exit 1); exit 1; }; }
15654 ;;
739457f4 15655 esac
db04fc41 15656done; }
739457f4 15657
db04fc41 15658 ac_builddir=.
739457f4 15659
db04fc41
RC
15660if test "$ac_dir" != .; then
15661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15662 # A "../" for each directory in $ac_dir_suffix.
15663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15664else
15665 ac_dir_suffix= ac_top_builddir=
15666fi
739457f4 15667
db04fc41
RC
15668case $srcdir in
15669 .) # No --srcdir option. We are building in place.
15670 ac_srcdir=.
15671 if test -z "$ac_top_builddir"; then
15672 ac_top_srcdir=.
15673 else
15674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15675 fi ;;
15676 [\\/]* | ?:[\\/]* ) # Absolute path.
15677 ac_srcdir=$srcdir$ac_dir_suffix;
15678 ac_top_srcdir=$srcdir ;;
739457f4 15679 *) # Relative path.
db04fc41
RC
15680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15682esac
15683# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15684# absolute.
15685ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15686ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15687ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15688ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
739457f4 15689
739457f4 15690
db04fc41
RC
15691 case $INSTALL in
15692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15693 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
739457f4
CF
15694 esac
15695
db04fc41
RC
15696 if test x"$ac_file" != x-; then
15697 { echo "$as_me:$LINENO: creating $ac_file" >&5
15698echo "$as_me: creating $ac_file" >&6;}
15699 rm -f "$ac_file"
15700 fi
15701 # Let's still pretend it is `configure' which instantiates (i.e., don't
15702 # use $as_me), people would be surprised to read:
15703 # /* config.h. Generated by config.status. */
15704 if test x"$ac_file" = x-; then
15705 configure_input=
15706 else
15707 configure_input="$ac_file. "
15708 fi
15709 configure_input=$configure_input"Generated from `echo $ac_file_in |
15710 sed 's,.*/,,'` by configure."
15711
15712 # First look for the input files in the build tree, otherwise in the
15713 # src tree.
15714 ac_file_inputs=`IFS=:
15715 for f in $ac_file_in; do
15716 case $f in
15717 -) echo $tmp/stdin ;;
15718 [\\/$]*)
15719 # Absolute (can't be DOS-style, as IFS=:)
15720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15721echo "$as_me: error: cannot find input file: $f" >&2;}
15722 { (exit 1); exit 1; }; }
15723 echo $f;;
15724 *) # Relative
15725 if test -f "$f"; then
15726 # Build tree
15727 echo $f
15728 elif test -f "$srcdir/$f"; then
15729 # Source tree
15730 echo $srcdir/$f
15731 else
15732 # /dev/null tree
15733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15734echo "$as_me: error: cannot find input file: $f" >&2;}
15735 { (exit 1); exit 1; }; }
15736 fi;;
15737 esac
15738 done` || { (exit 1); exit 1; }
15739_ACEOF
15740cat >>$CONFIG_STATUS <<_ACEOF
15741 sed "$ac_vpsub
15742$extrasub
15743_ACEOF
15744cat >>$CONFIG_STATUS <<\_ACEOF
15745:t
15746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15747s,@configure_input@,$configure_input,;t t
15748s,@srcdir@,$ac_srcdir,;t t
15749s,@abs_srcdir@,$ac_abs_srcdir,;t t
15750s,@top_srcdir@,$ac_top_srcdir,;t t
15751s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15752s,@builddir@,$ac_builddir,;t t
15753s,@abs_builddir@,$ac_abs_builddir,;t t
15754s,@top_builddir@,$ac_top_builddir,;t t
15755s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15756s,@INSTALL@,$ac_INSTALL,;t t
15757" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15758 rm -f $tmp/stdin
15759 if test x"$ac_file" != x-; then
15760 mv $tmp/out $ac_file
15761 else
15762 cat $tmp/out
15763 rm -f $tmp/out
15764 fi
739457f4 15765
db04fc41
RC
15766done
15767_ACEOF
f6100b6f
RC
15768cat >>$CONFIG_STATUS <<\_ACEOF
15769
15770#
15771# CONFIG_COMMANDS section.
15772#
15773for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15774 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15775 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15776 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15777$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15778 X"$ac_dest" : 'X\(//\)[^/]' \| \
15779 X"$ac_dest" : 'X\(//\)$' \| \
15780 X"$ac_dest" : 'X\(/\)' \| \
15781 . : '\(.\)' 2>/dev/null ||
15782echo X"$ac_dest" |
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15785 /^X\(\/\/\)$/{ s//\1/; q; }
15786 /^X\(\/\).*/{ s//\1/; q; }
15787 s/.*/./; q'`
15788 ac_builddir=.
15789
15790if test "$ac_dir" != .; then
15791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15792 # A "../" for each directory in $ac_dir_suffix.
15793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15794else
15795 ac_dir_suffix= ac_top_builddir=
15796fi
15797
15798case $srcdir in
15799 .) # No --srcdir option. We are building in place.
15800 ac_srcdir=.
15801 if test -z "$ac_top_builddir"; then
15802 ac_top_srcdir=.
15803 else
15804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15805 fi ;;
15806 [\\/]* | ?:[\\/]* ) # Absolute path.
15807 ac_srcdir=$srcdir$ac_dir_suffix;
15808 ac_top_srcdir=$srcdir ;;
15809 *) # Relative path.
15810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15812esac
15813# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15814# absolute.
15815ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15816ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15817ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15818ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15819
15820
15821 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15822echo "$as_me: executing $ac_dest commands" >&6;}
15823 case $ac_dest in
15824 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15825 # Strip MF so we end up with the name of the file.
15826 mf=`echo "$mf" | sed -e 's/:.*$//'`
15827 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
15828 dirpart=`(dirname "$mf") 2>/dev/null ||
15829$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15830 X"$mf" : 'X\(//\)[^/]' \| \
15831 X"$mf" : 'X\(//\)$' \| \
15832 X"$mf" : 'X\(/\)' \| \
15833 . : '\(.\)' 2>/dev/null ||
15834echo X"$mf" |
15835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15837 /^X\(\/\/\)$/{ s//\1/; q; }
15838 /^X\(\/\).*/{ s//\1/; q; }
15839 s/.*/./; q'`
15840 else
15841 continue
15842 fi
15843 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15844 # Extract the definition of DEP_FILES from the Makefile without
15845 # running `make'.
15846 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15847 test -z "$DEPDIR" && continue
15848 # When using ansi2knr, U may be empty or an underscore; expand it
15849 U=`sed -n -e '/^U = / s///p' < "$mf"`
15850 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15851 # We invoke sed twice because it is the simplest approach to
15852 # changing $(DEPDIR) to its actual value in the expansion.
15853 for file in `sed -n -e '
15854 /^DEP_FILES = .*\\\\$/ {
15855 s/^DEP_FILES = //
15856 :loop
15857 s/\\\\$//
15858 p
15859 n
15860 /\\\\$/ b loop
15861 p
15862 }
15863 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15864 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15865 # Make sure the directory exists.
15866 test -f "$dirpart/$file" && continue
15867 fdir=`(dirname "$file") 2>/dev/null ||
15868$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15869 X"$file" : 'X\(//\)[^/]' \| \
15870 X"$file" : 'X\(//\)$' \| \
15871 X"$file" : 'X\(/\)' \| \
15872 . : '\(.\)' 2>/dev/null ||
15873echo X"$file" |
15874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15876 /^X\(\/\/\)$/{ s//\1/; q; }
15877 /^X\(\/\).*/{ s//\1/; q; }
15878 s/.*/./; q'`
15879 { case $dirpart/$fdir in
15880 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15881 *) as_incr_dir=.;;
15882esac
15883as_dummy=$dirpart/$fdir
15884for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15885 case $as_mkdir_dir in
15886 # Skip DOS drivespec
15887 ?:) as_incr_dir=$as_mkdir_dir ;;
15888 *)
15889 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15890 test -d "$as_incr_dir" ||
15891 mkdir "$as_incr_dir" ||
15892 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
15893echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
15894 { (exit 1); exit 1; }; }
15895 ;;
15896 esac
15897done; }
15898
15899 # echo "creating $dirpart/$file"
15900 echo '# dummy' > "$dirpart/$file"
15901 done
15902done
15903 ;;
15904 esac
15905done
15906_ACEOF
739457f4 15907
db04fc41 15908cat >>$CONFIG_STATUS <<\_ACEOF
739457f4 15909
db04fc41
RC
15910{ (exit 0); exit 0; }
15911_ACEOF
739457f4 15912chmod +x $CONFIG_STATUS
db04fc41
RC
15913ac_clean_files=$ac_clean_files_save
15914
15915
15916# configure is writing to config.log, and then calls config.status.
15917# config.status does its own redirection, appending to config.log.
15918# Unfortunately, on DOS this fails, as config.log is still kept open
15919# by configure, so config.status won't be able to write to it; its
15920# output is simply discarded. So we exec the FD to /dev/null,
15921# effectively closing config.log, so it can be properly (re)opened and
15922# appended to by config.status. When coming back to configure, we
15923# need to make the FD available again.
15924if test "$no_create" != yes; then
15925 ac_cs_success=:
15926 exec 5>/dev/null
15927 $SHELL $CONFIG_STATUS || ac_cs_success=false
15928 exec 5>>config.log
15929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15930 # would make configure fail if this is the last instruction.
15931 $ac_cs_success || { (exit 1); exit 1; }
15932fi
739457f4 15933
db04fc41
RC
15934#
15935# CONFIG_SUBDIRS section.
15936#
739457f4
CF
15937if test "$no_recursion" != yes; then
15938
15939 # Remove --cache-file and --srcdir arguments so they do not pile up.
15940 ac_sub_configure_args=
15941 ac_prev=
15942 for ac_arg in $ac_configure_args; do
15943 if test -n "$ac_prev"; then
15944 ac_prev=
15945 continue
15946 fi
db04fc41 15947 case $ac_arg in
739457f4
CF
15948 -cache-file | --cache-file | --cache-fil | --cache-fi \
15949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15950 ac_prev=cache_file ;;
15951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
db04fc41
RC
15952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15953 | --c=*)
15954 ;;
15955 --config-cache | -C)
739457f4
CF
15956 ;;
15957 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15958 ac_prev=srcdir ;;
15959 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15960 ;;
db04fc41
RC
15961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15962 ac_prev=prefix ;;
15963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15964 ;;
739457f4
CF
15965 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15966 esac
15967 done
15968
db04fc41
RC
15969 # Always prepend --prefix to ensure using the same prefix
15970 # in subdir configurations.
15971 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
15972
15973 ac_popdir=`pwd`
15974 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
739457f4
CF
15975
15976 # Do not complain, so a configure script can configure whichever
15977 # parts of a large source tree are present.
db04fc41 15978 test -d $srcdir/$ac_dir || continue
739457f4 15979
db04fc41
RC
15980 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
15981echo "$as_me: configuring in $ac_dir" >&6;}
15982 { case "$ac_dir" in
15983 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15984 *) as_incr_dir=.;;
15985esac
15986as_dummy="$ac_dir"
15987for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15988 case $as_mkdir_dir in
15989 # Skip DOS drivespec
15990 ?:) as_incr_dir=$as_mkdir_dir ;;
739457f4 15991 *)
db04fc41
RC
15992 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15993 test -d "$as_incr_dir" ||
15994 mkdir "$as_incr_dir" ||
15995 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15996echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15997 { (exit 1); exit 1; }; }
15998 ;;
15999 esac
16000done; }
739457f4 16001
db04fc41 16002 ac_builddir=.
739457f4 16003
db04fc41
RC
16004if test "$ac_dir" != .; then
16005 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16006 # A "../" for each directory in $ac_dir_suffix.
16007 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16008else
16009 ac_dir_suffix= ac_top_builddir=
16010fi
16011
16012case $srcdir in
16013 .) # No --srcdir option. We are building in place.
16014 ac_srcdir=.
16015 if test -z "$ac_top_builddir"; then
16016 ac_top_srcdir=.
16017 else
16018 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16019 fi ;;
16020 [\\/]* | ?:[\\/]* ) # Absolute path.
16021 ac_srcdir=$srcdir$ac_dir_suffix;
16022 ac_top_srcdir=$srcdir ;;
16023 *) # Relative path.
16024 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16025 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16026esac
16027# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16028# absolute.
16029ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16030ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16031ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16032ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
739457f4 16033
db04fc41
RC
16034
16035 cd $ac_dir
739457f4
CF
16036
16037 # Check for guested configure; otherwise get Cygnus style configure.
db04fc41
RC
16038 if test -f $ac_srcdir/configure.gnu; then
16039 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16040 elif test -f $ac_srcdir/configure; then
16041 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16042 elif test -f $ac_srcdir/configure.in; then
739457f4
CF
16043 ac_sub_configure=$ac_configure
16044 else
db04fc41
RC
16045 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16046echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
739457f4
CF
16047 ac_sub_configure=
16048 fi
16049
16050 # The recursion is here.
16051 if test -n "$ac_sub_configure"; then
739457f4 16052 # Make the cache file name correct relative to the subdirectory.
db04fc41
RC
16053 case $cache_file in
16054 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
739457f4 16055 *) # Relative path.
db04fc41 16056 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
739457f4 16057 esac
739457f4 16058
db04fc41
RC
16059 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16060echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
739457f4 16061 # The eval makes quoting arguments work.
db04fc41
RC
16062 eval $ac_sub_configure $ac_sub_configure_args \
16063 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16064 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16065echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16066 { (exit 1); exit 1; }; }
739457f4
CF
16067 fi
16068
16069 cd $ac_popdir
16070 done
16071fi
16072
This page took 1.79257 seconds and 5 git commands to generate.