]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/configure
optc-gen.awk: No need to duplicate option flags twice.
[thirdparty/gcc.git] / libobjc / configure
CommitLineData
bce1b489 1#! /bin/sh
bce1b489 2# Guess values for system-dependent variables and create Makefiles.
684c64bf 3# Generated by GNU Autoconf 2.59 for package-unused version-unused.
bce1b489 4#
88386050 5# Copyright (C) 2003 Free Software Foundation, Inc.
bce1b489
BE
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
88386050
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
bce1b489 116
88386050
NN
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
1cf3d07d
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
88386050
NN
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
bce1b489 403ac_default_prefix=/usr/local
88386050
NN
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
684c64bf
AP
417PACKAGE_NAME='package-unused'
418PACKAGE_TARNAME='libobjc'
419PACKAGE_VERSION='version-unused'
420PACKAGE_STRING='package-unused version-unused'
421PACKAGE_BUGREPORT=''
88386050
NN
422
423ac_unique_file="objc/objc.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
467b2e9e 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libsuffix CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS SET_MAKE LIBOBJS LTLIBOBJS'
88386050 462ac_subst_files=''
18c04407 463ac_pwd=`pwd`
bce1b489
BE
464
465# Initialize some variables set by options.
88386050
NN
466ac_init_help=
467ac_init_version=false
bce1b489
BE
468# The variables have the same names as the options, with
469# dashes changed to underlines.
88386050 470cache_file=/dev/null
bce1b489 471exec_prefix=NONE
bce1b489 472no_create=
bce1b489
BE
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
bce1b489
BE
481verbose=
482x_includes=NONE
483x_libraries=NONE
88386050
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
bce1b489
BE
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
bce1b489
BE
503ac_prev=
504for ac_option
505do
bce1b489
BE
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
88386050 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
bce1b489
BE
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
88386050 517 case $ac_option in
bce1b489
BE
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88386050 522 bindir=$ac_optarg ;;
bce1b489
BE
523
524 -build | --build | --buil | --bui | --bu)
88386050 525 ac_prev=build_alias ;;
bce1b489 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88386050 527 build_alias=$ac_optarg ;;
bce1b489
BE
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88386050
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
bce1b489
BE
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
88386050 543 datadir=$ac_optarg ;;
bce1b489
BE
544
545 -disable-* | --disable-*)
88386050 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bce1b489 547 # Reject names that are not valid shell variable names.
88386050
NN
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
bce1b489
BE
553
554 -enable-* | --enable-*)
88386050 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bce1b489 556 # Reject names that are not valid shell variable names.
88386050
NN
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
bce1b489
BE
563 *) ac_optarg=yes ;;
564 esac
88386050 565 eval "enable_$ac_feature='$ac_optarg'" ;;
bce1b489
BE
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
88386050 574 exec_prefix=$ac_optarg ;;
bce1b489
BE
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
88386050
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
bce1b489
BE
586
587 -host | --host | --hos | --ho)
88386050 588 ac_prev=host_alias ;;
bce1b489 589 -host=* | --host=* | --hos=* | --ho=*)
88386050 590 host_alias=$ac_optarg ;;
bce1b489
BE
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
88386050 597 includedir=$ac_optarg ;;
bce1b489
BE
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
88386050 602 infodir=$ac_optarg ;;
bce1b489
BE
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
88386050 607 libdir=$ac_optarg ;;
bce1b489
BE
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
88386050 614 libexecdir=$ac_optarg ;;
bce1b489
BE
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
88386050 623 localstatedir=$ac_optarg ;;
bce1b489
BE
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
88386050 628 mandir=$ac_optarg ;;
bce1b489
BE
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
88386050 635 | --no-cr | --no-c | -n)
bce1b489
BE
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
88386050 649 oldincludedir=$ac_optarg ;;
bce1b489
BE
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
88386050 654 prefix=$ac_optarg ;;
bce1b489
BE
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
88386050 661 program_prefix=$ac_optarg ;;
bce1b489
BE
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
88386050 668 program_suffix=$ac_optarg ;;
bce1b489
BE
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
88386050 685 program_transform_name=$ac_optarg ;;
bce1b489
BE
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
88386050 695 sbindir=$ac_optarg ;;
bce1b489
BE
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
88386050 706 sharedstatedir=$ac_optarg ;;
bce1b489
BE
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
88386050 711 site=$ac_optarg ;;
03391b53 712
bce1b489
BE
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
88386050 716 srcdir=$ac_optarg ;;
bce1b489
BE
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
88386050 723 sysconfdir=$ac_optarg ;;
bce1b489
BE
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
88386050 726 ac_prev=target_alias ;;
bce1b489 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
88386050 728 target_alias=$ac_optarg ;;
bce1b489
BE
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
88386050
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
bce1b489
BE
735
736 -with-* | --with-*)
88386050 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bce1b489 738 # Reject names that are not valid shell variable names.
88386050
NN
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
bce1b489 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
88386050
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
bce1b489
BE
745 *) ac_optarg=yes ;;
746 esac
88386050 747 eval "with_$ac_package='$ac_optarg'" ;;
bce1b489
BE
748
749 -without-* | --without-*)
88386050 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bce1b489 751 # Reject names that are not valid shell variable names.
88386050
NN
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
bce1b489
BE
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
88386050 767 x_includes=$ac_optarg ;;
bce1b489
BE
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
88386050 774 x_libraries=$ac_optarg ;;
bce1b489 775
88386050
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
bce1b489
BE
779 ;;
780
88386050
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
162f5967 791 *)
88386050
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
bce1b489
BE
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
88386050
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
bce1b489
BE
806fi
807
88386050
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
03391b53 818
88386050
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
03391b53 822do
88386050
NN
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
03391b53
AO
828 esac
829done
bce1b489 830
88386050
NN
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
bce1b489 848
88386050
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
bce1b489 853
03391b53
AO
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
88386050
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
03391b53
AO
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
88386050
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
bce1b489 882 else
88386050
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
03391b53
AO
885 fi
886fi
88386050
NN
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
88386050
NN
903ac_env_CPP_set=${CPP+set}
904ac_env_CPP_value=$CPP
905ac_cv_env_CPP_set=${CPP+set}
906ac_cv_env_CPP_value=$CPP
db7f3c69
NN
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
03391b53 911
88386050
NN
912#
913# Report the --help message.
914#
915if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
684c64bf 919\`configure' configures package-unused version-unused to adapt to many kinds of systems.
bce1b489 920
88386050 921Usage: $0 [OPTION]... [VAR=VALUE]...
bce1b489 922
88386050
NN
923To assign environment variables (e.g., CC, CFLAGS...), specify them as
924VAR=VALUE. See below for descriptions of some of the useful variables.
03391b53 925
88386050 926Defaults for the options are specified in brackets.
9c01f395 927
88386050
NN
928Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938
939_ACEOF
940
941 cat <<_ACEOF
942Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
9c01f395 947
88386050
NN
948By default, \`make install' will install all the files in
949\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951for instance \`--prefix=\$HOME'.
9c01f395 952
88386050 953For better control, use the options below.
9c01f395 954
88386050
NN
955Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968_ACEOF
969
970 cat <<\_ACEOF
971
972System types:
973 --build=BUILD configure for building on BUILD [guessed]
974 --host=HOST cross-compile to build programs to run on HOST [BUILD]
975 --target=TARGET configure for building compilers for TARGET [HOST]
976_ACEOF
9c01f395
NN
977fi
978
88386050 979if test -n "$ac_init_help"; then
684c64bf
AP
980 case $ac_init_help in
981 short | recursive ) echo "Configuration of package-unused version-unused:";;
982 esac
88386050 983 cat <<\_ACEOF
03391b53 984
88386050
NN
985Optional Features:
986 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
987 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
88386050 988 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
252dde64
NN
989 --enable-objc-gc enable the use of Boehm's garbage collector with
990 the GNU Objective-C runtime.
5b043f08 991 --enable-multilib build many library versions (default)
dd365157
MS
992 --enable-maintainer-mode enable make rules and dependencies not useful
993 (and sometimes confusing) to the casual installer
1cf3d07d
SE
994 --enable-shared[=PKGS]
995 build shared libraries [default=yes]
996 --enable-static[=PKGS]
997 build static libraries [default=yes]
998 --enable-fast-install[=PKGS]
999 optimize for fast installation [default=yes]
88386050 1000 --disable-libtool-lock avoid locking (might break parallel builds)
049bc404
AP
1001 --enable-sjlj-exceptions
1002 force use of builtin_setjmp for exceptions
03391b53 1003
88386050
NN
1004Optional Packages:
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1007 --with-build-libsubdir=DIR Directory where to find libraries for build system
88386050
NN
1008 --with-target-subdir=SUBDIR
1009 configuring in a subdirectory
1010 --with-cross-host=HOST configuring with a cross compiler
1cf3d07d
SE
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1fcfac98 1014
88386050
NN
1015Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1fcfac98 1023
88386050
NN
1024Use these variables to override the choices made by `configure' or to help
1025it to find libraries and programs with nonstandard names/locations.
6706f116 1026
88386050
NN
1027_ACEOF
1028fi
1029
1030if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1036
1037if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
aebb8c22 1041else
88386050 1042 ac_dir_suffix= ac_top_builddir=
aebb8c22
DD
1043fi
1044
88386050
NN
1045case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
aebb8c22 1050 else
88386050
NN
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059esac
1060
1061# Do not use `cd foo && pwd` to compute absolute paths, because
1062# the directories may not exist.
1063case `pwd` in
1064.) ac_abs_builddir="$ac_dir";;
1065*)
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071esac
1072case $ac_abs_builddir in
1073.) ac_abs_top_builddir=${ac_top_builddir}.;;
1074*)
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_srcdir=$ac_srcdir;;
1083*)
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_top_srcdir=$ac_top_srcdir;;
1092*)
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098esac
1099
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
aebb8c22 1114 fi
2c888488 1115 cd $ac_popdir
88386050 1116 done
aebb8c22 1117fi
88386050
NN
1118
1119test -n "$ac_init_help" && exit 0
1120if $ac_init_version; then
1121 cat <<\_ACEOF
684c64bf
AP
1122package-unused configure version-unused
1123generated by GNU Autoconf 2.59
88386050
NN
1124
1125Copyright (C) 2003 Free Software Foundation, Inc.
1126This configure script is free software; the Free Software Foundation
1127gives unlimited permission to copy, distribute and modify it.
1128_ACEOF
1129 exit 0
b150efee 1130fi
88386050
NN
1131exec 5>config.log
1132cat >&5 <<_ACEOF
1133This file contains any messages produced by compilers while
1134running configure, to aid debugging if configure makes a mistake.
b150efee 1135
684c64bf 1136It was created by package-unused $as_me version-unused, which was
88386050 1137generated by GNU Autoconf 2.59. Invocation command line was
aebb8c22 1138
88386050 1139 $ $0 $@
aebb8c22 1140
88386050
NN
1141_ACEOF
1142{
1143cat <<_ASUNAME
1144## --------- ##
1145## Platform. ##
1146## --------- ##
aebb8c22 1147
88386050
NN
1148hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152uname -v = `(uname -v) 2>/dev/null || echo unknown`
b150efee 1153
88386050
NN
1154/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
b150efee 1156
88386050
NN
1157/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1158/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1159/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1161/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1162/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1163/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
b150efee 1164
88386050 1165_ASUNAME
b150efee 1166
88386050
NN
1167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168for as_dir in $PATH
1169do
1170 IFS=$as_save_IFS
1171 test -z "$as_dir" && as_dir=.
1172 echo "PATH: $as_dir"
1173done
b150efee 1174
88386050 1175} >&5
b150efee 1176
88386050 1177cat >&5 <<_ACEOF
b150efee 1178
b150efee 1179
88386050
NN
1180## ----------- ##
1181## Core tests. ##
1182## ----------- ##
b150efee 1183
88386050
NN
1184_ACEOF
1185
1186
1187# Keep a trace of the command line.
1188# Strip out --no-create and --no-recursion so they do not pile up.
1189# Strip out --silent because we don't want to record it for future runs.
1190# Also quote any args containing shell meta-characters.
1191# Make two passes to allow for proper duplicate-argument suppression.
1192ac_configure_args=
1193ac_configure_args0=
1194ac_configure_args1=
1195ac_sep=
1196ac_must_keep_next=false
1197for ac_pass in 1 2
1198do
1199 for ac_arg
1200 do
1201 case $ac_arg in
1202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 continue ;;
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 esac
1209 case $ac_pass in
1210 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211 2)
1212 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213 if test $ac_must_keep_next = true; then
1214 ac_must_keep_next=false # Got value, back to normal.
1215 else
1216 case $ac_arg in
1217 *=* | --config-cache | -C | -disable-* | --disable-* \
1218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220 | -with-* | --with-* | -without-* | --without-* | --x)
1221 case "$ac_configure_args0 " in
1222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223 esac
1224 ;;
1225 -* ) ac_must_keep_next=true ;;
1226 esac
1227 fi
1228 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229 # Get rid of the leading space.
1230 ac_sep=" "
1231 ;;
1232 esac
1233 done
1234done
1235$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237
1238# When interrupted or exit'd, cleanup temporary files, and complete
1239# config.log. We remove comments because anyway the quotes in there
1240# would cause problems or look ugly.
1241# WARNING: Be sure not to use single quotes in there, as some shells,
1242# such as our DU 5.0 friend, will then `close' the trap.
1243trap 'exit_status=$?
1244 # Save into config.log some information that might help in debugging.
1245 {
1246 echo
1247
1248 cat <<\_ASBOX
1249## ---------------- ##
1250## Cache variables. ##
1251## ---------------- ##
1252_ASBOX
1253 echo
1254 # The following way of writing the cache mishandles newlines in values,
1255{
1256 (set) 2>&1 |
1257 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258 *ac_space=\ *)
1259 sed -n \
1260 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262 ;;
1263 *)
1264 sed -n \
1265 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266 ;;
1267 esac;
1268}
1269 echo
1270
1271 cat <<\_ASBOX
1272## ----------------- ##
1273## Output variables. ##
1274## ----------------- ##
1275_ASBOX
1276 echo
1277 for ac_var in $ac_subst_vars
1278 do
1279 eval ac_val=$`echo $ac_var`
1280 echo "$ac_var='"'"'$ac_val'"'"'"
1281 done | sort
1282 echo
1283
1284 if test -n "$ac_subst_files"; then
1285 cat <<\_ASBOX
1286## ------------- ##
1287## Output files. ##
1288## ------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_files
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297 fi
1298
1299 if test -s confdefs.h; then
1300 cat <<\_ASBOX
1301## ----------- ##
1302## confdefs.h. ##
1303## ----------- ##
1304_ASBOX
1305 echo
1306 sed "/^$/d" confdefs.h | sort
1307 echo
1308 fi
1309 test "$ac_signal" != 0 &&
1310 echo "$as_me: caught signal $ac_signal"
1311 echo "$as_me: exit $exit_status"
1312 } >&5
1313 rm -f core *.core &&
1314 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315 exit $exit_status
1316 ' 0
1317for ac_signal in 1 2 13 15; do
1318 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319done
1320ac_signal=0
1321
1322# confdefs.h avoids OS command line length limits that DEFS can exceed.
1323rm -rf conftest* confdefs.h
1324# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325echo >confdefs.h
1326
1327# Predefined preprocessor variables.
1328
1329cat >>confdefs.h <<_ACEOF
1330#define PACKAGE_NAME "$PACKAGE_NAME"
1331_ACEOF
1332
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_VERSION "$PACKAGE_VERSION"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_STRING "$PACKAGE_STRING"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351_ACEOF
1352
1353
1354# Let the site file select an alternate cache file if it wants to.
1355# Prefer explicitly selected file to automatically selected ones.
1356if test -z "$CONFIG_SITE"; then
1357 if test "x$prefix" != xNONE; then
1358 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359 else
1360 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1361 fi
1362fi
1363for ac_site_file in $CONFIG_SITE; do
1364 if test -r "$ac_site_file"; then
1365 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366echo "$as_me: loading site script $ac_site_file" >&6;}
1367 sed 's/^/| /' "$ac_site_file" >&5
1368 . "$ac_site_file"
1369 fi
1370done
1371
1372if test -r "$cache_file"; then
1373 # Some versions of bash will fail to source /dev/null (special
1374 # files actually), so we avoid doing that.
1375 if test -f "$cache_file"; then
1376 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377echo "$as_me: loading cache $cache_file" >&6;}
1378 case $cache_file in
1379 [\\/]* | ?:[\\/]* ) . $cache_file;;
1380 *) . ./$cache_file;;
1381 esac
1382 fi
1383else
1384 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385echo "$as_me: creating cache $cache_file" >&6;}
1386 >$cache_file
1387fi
1388
1389# Check that the precious variables saved in the cache have kept the same
1390# value.
1391ac_cache_corrupted=false
1392for ac_var in `(set) 2>&1 |
1393 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395 eval ac_new_set=\$ac_env_${ac_var}_set
1396 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397 eval ac_new_val="\$ac_env_${ac_var}_value"
1398 case $ac_old_set,$ac_new_set in
1399 set,)
1400 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402 ac_cache_corrupted=: ;;
1403 ,set)
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1407 ,);;
1408 *)
1409 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1410 # differences in whitespace do not lead to failure.
1411 ac_old_val_w=`echo x $ac_old_val`
1412 ac_new_val_w=`echo x $ac_new_val`
1413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
88386050 1415echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1416 ac_cache_corrupted=:
1417 else
1418 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1419echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1420 eval $ac_var=\$ac_old_val
1421 fi
1422 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1423echo "$as_me: former value: \`$ac_old_val'" >&2;}
1424 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1425echo "$as_me: current value: \`$ac_new_val'" >&2;}
88386050
NN
1426 fi;;
1427 esac
1428 # Pass precious variables to config.status.
1429 if test "$ac_new_set" = set; then
1430 case $ac_new_val in
1431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433 *) ac_arg=$ac_var=$ac_new_val ;;
1434 esac
1435 case " $ac_configure_args " in
1436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1437 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438 esac
1439 fi
1440done
1441if $ac_cache_corrupted; then
18c04407
RW
1442 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1443echo "$as_me: error: in \`$ac_pwd':" >&2;}
88386050
NN
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
684c64bf
AP
1468
1469
1470
1471
1472
1473
1474
1475
88386050
NN
1476
1477
1478
1479
18c04407
RW
1480
1481
1482
88386050
NN
1483
1484
1485
215c351a
PB
1486
1487ac_aux_dir=
1488for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502done
1503if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512# Make sure we can run config.sub.
1513$ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1517
1518echo "$as_me:$LINENO: checking build system type" >&5
1519echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 ac_cv_build_alias=$build_alias
1524test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1534
1535fi
1536echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537echo "${ECHO_T}$ac_cv_build" >&6
1538build=$ac_cv_build
1539build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
1543
1544 case ${build_alias} in
1545 "") build_noncanonical=${build} ;;
1546 *) build_noncanonical=${build_alias} ;;
1547esac
1548
1549 case ${host_alias} in
1550 "") host_noncanonical=${build_noncanonical} ;;
1551 *) host_noncanonical=${host_alias} ;;
1552esac
1553
1554 case ${target_alias} in
1555 "") target_noncanonical=${host_noncanonical} ;;
1556 *) target_noncanonical=${target_alias} ;;
1557esac
1558
57255173
PB
1559
1560# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1561# have matching libraries, they should use host libraries: Makefile.tpl
1562# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1563# However, they still use the build modules, because the corresponding
1564# host modules (e.g. bison) are only built for the host when bootstrap
1565# finishes. So:
1566# - build_subdir is where we find build modules, and never changes.
1567# - build_libsubdir is where we find build libraries, and can be overridden.
1568
1569# Prefix 'build-' so this never conflicts with target_subdir.
215c351a 1570build_subdir="build-${build_noncanonical}"
57255173
PB
1571
1572# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1573if test "${with_build_libsubdir+set}" = set; then
1574 withval="$with_build_libsubdir"
1575 build_libsubdir="$withval"
1576else
1577 build_libsubdir="$build_subdir"
1578fi;
215c351a
PB
1579# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1580if ( test $srcdir = . && test -d gcc ) \
1581 || test -d $srcdir/../host-${host_noncanonical}; then
1582 host_subdir="host-${host_noncanonical}"
1583else
1584 host_subdir=.
1585fi
1586# No prefix.
1587target_subdir=${target_noncanonical}
252dde64 1588
88386050 1589
252dde64 1590# We need the following definitions because AC_PROG_LIBTOOL relies on them
88386050 1591PACKAGE=libobjc
252dde64 1592# Version is pulled out to make it a bit easier to change using sed.
84700346 1593VERSION=2:0:0
88386050
NN
1594
1595
1596# This works around the fact that libtool configuration may change LD
1597# for this particular configuration, but some shells, instead of
1598# keeping the changes in LD private, export them just because LD is
1599# exported.
1600ORIGINAL_LD_FOR_MULTILIBS=$LD
1601
252dde64
NN
1602# -------
1603# Options
1604# -------
1605
252dde64
NN
1606# We use these options to decide which functions to include.
1607
1608# Check whether --with-target-subdir or --without-target-subdir was given.
1609if test "${with_target_subdir+set}" = set; then
1610 withval="$with_target_subdir"
1611
1612fi;
1613
1614# Check whether --with-cross-host or --without-cross-host was given.
1615if test "${with_cross_host+set}" = set; then
1616 withval="$with_cross_host"
1617
1618fi;
1619
1620echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1621echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1622# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1623if test "${enable_version_specific_runtime_libs+set}" = set; then
1624 enableval="$enable_version_specific_runtime_libs"
1625 case "$enableval" in
1626 yes) version_specific_libs=yes ;;
1627 no) version_specific_libs=no ;;
1628 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1629echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1630 { (exit 1); exit 1; }; };;
1631 esac
1632else
1633 version_specific_libs=no
1634fi;
1635echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1636echo "${ECHO_T}$version_specific_libs" >&6
1637
1638# Check whether --enable-objc-gc or --disable-objc-gc was given.
1639if test "${enable_objc_gc+set}" = set; then
1640 enableval="$enable_objc_gc"
1641 case $enable_objc_gc in
8c3e5222
DA
1642 no)
1643 OBJC_BOEHM_GC=''
1644 OBJC_BOEHM_GC_INCLUDES=''
1645 ;;
1646 *)
1647 OBJC_BOEHM_GC=libobjc_gc.la
1648 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1649 ;;
252dde64
NN
1650esac
1651else
8c3e5222 1652 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
252dde64
NN
1653fi;
1654
1655
8c3e5222 1656
252dde64
NN
1657# -----------
1658# Directories
1659# -----------
1660
5b043f08
GK
1661# Find the rest of the source tree framework.
1662# Default to --enable-multilib
1663# Check whether --enable-multilib or --disable-multilib was given.
1664if test "${enable_multilib+set}" = set; then
1665 enableval="$enable_multilib"
1666 case "$enableval" in
1667 yes) multilib=yes ;;
1668 no) multilib=no ;;
1669 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1670echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1671 { (exit 1); exit 1; }; } ;;
1672 esac
1673else
1674 multilib=yes
1675fi;
1676
1677# We may get other options which we leave undocumented:
1678# --with-target-subdir, --with-multisrctop, --with-multisubdir
1679# See config-ml.in if you want the gory details.
1680
1681if test "$srcdir" = "."; then
1682 if test "$with_target_subdir" != "."; then
1683 multi_basedir="$srcdir/$with_multisrctop../.."
88386050 1684 else
5b043f08 1685 multi_basedir="$srcdir/$with_multisrctop.."
88386050
NN
1686 fi
1687else
5b043f08 1688 multi_basedir="$srcdir/.."
88386050 1689fi
5b043f08
GK
1690
1691
1692# Even if the default multilib is not a cross compilation,
1693# it may be that some of the other multilibs are.
1694if test $cross_compiling = no && test $multilib = yes \
1695 && test "x${with_multisubdir}" != x ; then
1696 cross_compiling=maybe
88386050 1697fi
88386050 1698
5b043f08 1699 ac_config_commands="$ac_config_commands default-1"
88386050
NN
1700
1701
88386050
NN
1702echo "$as_me:$LINENO: checking host system type" >&5
1703echo $ECHO_N "checking host system type... $ECHO_C" >&6
1704if test "${ac_cv_host+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 ac_cv_host_alias=$host_alias
1708test -z "$ac_cv_host_alias" &&
1709 ac_cv_host_alias=$ac_cv_build_alias
1710ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1712echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1714
1715fi
1716echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1717echo "${ECHO_T}$ac_cv_host" >&6
1718host=$ac_cv_host
1719host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1722
1723
1724echo "$as_me:$LINENO: checking target system type" >&5
1725echo $ECHO_N "checking target system type... $ECHO_C" >&6
1726if test "${ac_cv_target+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 ac_cv_target_alias=$target_alias
1730test "x$ac_cv_target_alias" = "x" &&
1731 ac_cv_target_alias=$ac_cv_host_alias
1732ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1734echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1736
1737fi
1738echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1739echo "${ECHO_T}$ac_cv_target" >&6
1740target=$ac_cv_target
1741target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744
1745
1746# The aliases save the names the user supplied, while $host etc.
1747# will get canonicalized.
1748test -n "$target_alias" &&
b150efee
FS
1749 test "$program_prefix$program_suffix$program_transform_name" = \
1750 NONENONEs,x,x, &&
1751 program_prefix=${target_alias}-
b150efee 1752
b150efee 1753
049bc404 1754
608e1e0c 1755# Export source directory.
b150efee
FS
1756# These need to be absolute paths, yet at the same time need to
1757# canonicalize only relative paths, because then amd will not unmount
1758# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
b150efee 1759case $srcdir in
252dde64
NN
1760 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1761 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
b150efee
FS
1762esac
1763
1764
608e1e0c 1765# Calculate toolexeclibdir
a42a57cb 1766# Also toolexecdir, though it's only used in toolexeclibdir
252dde64
NN
1767case ${version_specific_libs} in
1768 yes)
1769 # Need the gcc compiler version to know where to install libraries
1770 # and header files if --enable-version-specific-runtime-libs option
1771 # is selected.
a42a57cb 1772 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2b37e3d5 1773 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
252dde64
NN
1774 ;;
1775 no)
1776 if test -n "$with_cross_host" &&
1777 test x"$with_cross_host" != x"no"; then
252dde64 1778 # Install a library built with a cross compiler in tooldir, not libdir.
a42a57cb 1779 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
608e1e0c
NN
1780 toolexeclibdir='$(toolexecdir)/lib'
1781 else
a42a57cb 1782 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
608e1e0c 1783 toolexeclibdir='$(libdir)'
252dde64
NN
1784 fi
1785 multi_os_directory=`$CC -print-multi-os-directory`
1786 case $multi_os_directory in
1787 .) ;; # Avoid trailing /.
608e1e0c 1788 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
252dde64
NN
1789 esac
1790 ;;
1791esac
71205e0b 1792
252dde64 1793
a42a57cb 1794
ff65de76
AP
1795# Figure out if we want to name the include directory and the
1796# library name changes differently.
7d34a5a9 1797includedirname=include
45d5f86c 1798libsuffix=
ff65de76
AP
1799case "${host}" in
1800 *-darwin*)
1801 # Darwin is the only target so far that needs a different include directory.
7d34a5a9 1802 includedirname=include-gnu-runtime
af333b9a 1803 libsuffix=-gnu
ff65de76
AP
1804 ;;
1805esac
1806
1807
1808
049bc404
AP
1809 ac_config_headers="$ac_config_headers config.h"
1810
1811
252dde64
NN
1812# --------
1813# Programs
1814# --------
7c6b0e92 1815
b150efee 1816
db7f3c69
NN
1817
1818# We must force CC to /not/ be a precious variable; otherwise
1819# the wrong, non-multilib-adjusted value will be used in multilibs.
1820# As a side effect, we have to subst CFLAGS ourselves.
1821
1822
88386050
NN
1823ac_ext=c
1824ac_cpp='$CPP $CPPFLAGS'
1825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830set dummy ${ac_tool_prefix}gcc; ac_word=$2
1831echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1838else
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1849 fi
1850done
1851done
b150efee 1852
88386050
NN
1853fi
1854fi
1855CC=$ac_cv_prog_CC
1856if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858echo "${ECHO_T}$CC" >&6
1859else
1860 echo "$as_me:$LINENO: result: no" >&5
1861echo "${ECHO_T}no" >&6
1862fi
b150efee 1863
88386050
NN
1864fi
1865if test -z "$ac_cv_prog_CC"; then
1866 ac_ct_CC=$CC
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868set dummy gcc; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="gcc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888done
1889done
b150efee 1890
88386050
NN
1891fi
1892fi
1893ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896echo "${ECHO_T}$ac_ct_CC" >&6
1897else
1898 echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
7c6b0e92 1901
88386050
NN
1902 CC=$ac_ct_CC
1903else
1904 CC="$ac_cv_prog_CC"
1905fi
7c6b0e92 1906
88386050
NN
1907if test -z "$CC"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910set dummy ${ac_tool_prefix}cc; ac_word=$2
1911echo "$as_me:$LINENO: checking for $ac_word" >&5
1912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
1915else
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1918else
88386050
NN
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC="${ac_tool_prefix}cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1929 fi
1930done
1931done
1932
bce1b489
BE
1933fi
1934fi
88386050 1935CC=$ac_cv_prog_CC
bce1b489 1936if test -n "$CC"; then
88386050
NN
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938echo "${ECHO_T}$CC" >&6
1939else
1940 echo "$as_me:$LINENO: result: no" >&5
1941echo "${ECHO_T}no" >&6
1942fi
1943
1944fi
1945if test -z "$ac_cv_prog_CC"; then
1946 ac_ct_CC=$CC
1947 # Extract the first word of "cc", so it can be a program name with args.
1948set dummy cc; ac_word=$2
1949echo "$as_me:$LINENO: checking for $ac_word" >&5
1950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954 if test -n "$ac_ct_CC"; then
1955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956else
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_ac_ct_CC="cc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2
1967 fi
1968done
1969done
1970
1971fi
1972fi
1973ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974if test -n "$ac_ct_CC"; then
1975 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976echo "${ECHO_T}$ac_ct_CC" >&6
bce1b489 1977else
88386050
NN
1978 echo "$as_me:$LINENO: result: no" >&5
1979echo "${ECHO_T}no" >&6
bce1b489
BE
1980fi
1981
88386050
NN
1982 CC=$ac_ct_CC
1983else
1984 CC="$ac_cv_prog_CC"
1985fi
1986
1987fi
03391b53
AO
1988if test -z "$CC"; then
1989 # Extract the first word of "cc", so it can be a program name with args.
bce1b489 1990set dummy cc; ac_word=$2
88386050
NN
1991echo "$as_me:$LINENO: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
1995else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998else
bce1b489 1999 ac_prog_rejected=no
88386050
NN
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008 ac_prog_rejected=yes
2009 continue
2010 fi
2011 ac_cv_prog_CC="cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015done
2016done
2017
bce1b489
BE
2018if test $ac_prog_rejected = yes; then
2019 # We found a bogon in the path, so make sure we never use it.
2020 set dummy $ac_cv_prog_CC
2021 shift
88386050 2022 if test $# != 0; then
bce1b489
BE
2023 # We chose a different compiler from the bogus one.
2024 # However, it has the same basename, so the bogon will be chosen
2025 # first if we set CC to just the basename; use the full file name.
2026 shift
88386050 2027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
bce1b489
BE
2028 fi
2029fi
2030fi
2031fi
88386050 2032CC=$ac_cv_prog_CC
bce1b489 2033if test -n "$CC"; then
88386050
NN
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035echo "${ECHO_T}$CC" >&6
bce1b489 2036else
88386050
NN
2037 echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
bce1b489
BE
2039fi
2040
03391b53 2041fi
88386050
NN
2042if test -z "$CC"; then
2043 if test -n "$ac_tool_prefix"; then
2044 for ac_prog in cl
2045 do
2046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 2052else
88386050
NN
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
bce1b489 2055else
88386050
NN
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2066 fi
2067done
2068done
2069
bce1b489
BE
2070fi
2071fi
88386050
NN
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
bce1b489 2076else
88386050
NN
2077 echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
bce1b489 2079fi
bce1b489 2080
88386050
NN
2081 test -n "$CC" && break
2082 done
bce1b489 2083fi
88386050
NN
2084if test -z "$CC"; then
2085 ac_ct_CC=$CC
2086 for ac_prog in cl
2087do
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
da4b1927 2108 fi
88386050
NN
2109done
2110done
2111
2112fi
2113fi
2114ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117echo "${ECHO_T}$ac_ct_CC" >&6
2118else
2119 echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123 test -n "$ac_ct_CC" && break
2124done
2125
2126 CC=$ac_ct_CC
2127fi
2128
2129fi
2130
2131
18c04407
RW
2132test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
88386050
NN
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: no acceptable C compiler found in \$PATH
2137See \`config.log' for more details." >&2;}
18c04407 2138 { (exit 1); exit 1; }; }; }
88386050
NN
2139
2140# Provide some information about the compiler.
2141echo "$as_me:$LINENO:" \
2142 "checking for C compiler version" >&5
2143ac_compiler=`set X $ac_compile; echo $2`
2144{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2145 (eval $ac_compiler --version </dev/null >&5) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2150 (eval $ac_compiler -v </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2155 (eval $ac_compiler -V </dev/null >&5) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159
2160cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170
2171 ;
2172 return 0;
2173}
2174_ACEOF
2175# FIXME: Cleanup?
2176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177 (eval $ac_link) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 gcc_no_link=no
2182else
2183 gcc_no_link=yes
2184fi
2185
2186if test x$gcc_no_link = xyes; then
2187 # Setting cross_compile will disable run tests; it will
2188 # also disable AC_CHECK_FILE but that's generally
2189 # correct if we can't link.
2190 cross_compiling=yes
2191 EXEEXT=
2192else
2193 cat >conftest.$ac_ext <<_ACEOF
2194/* confdefs.h. */
2195_ACEOF
2196cat confdefs.h >>conftest.$ac_ext
2197cat >>conftest.$ac_ext <<_ACEOF
2198/* end confdefs.h. */
2199
2200int
2201main ()
2202{
2203
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208ac_clean_files_save=$ac_clean_files
2209ac_clean_files="$ac_clean_files a.out a.exe b.out"
2210# Try to create an executable without -o first, disregard a.out.
2211# It will help us diagnose broken compilers, and finding out an intuition
2212# of exeext.
2213echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2214echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2215ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2216if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2217 (eval $ac_link_default) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # Find the output, starting from the most likely. This scheme is
2222# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2223# resort.
2224
2225# Be careful to initialize this variable, since it used to be cached.
2226# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2227ac_cv_exeext=
2228# b.out is created by i960 compilers.
2229for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2230do
2231 test -f "$ac_file" || continue
2232 case $ac_file in
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2234 ;;
2235 conftest.$ac_ext )
2236 # This is the source file.
2237 ;;
2238 [ab].out )
2239 # We found the default executable, but exeext='' is most
2240 # certainly right.
2241 break;;
2242 *.* )
2243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 # FIXME: I believe we export ac_cv_exeext for Libtool,
2245 # but it would be cool to find out if it's true. Does anybody
2246 # maintain Libtool? --akim.
2247 export ac_cv_exeext
2248 break;;
2249 * )
2250 break;;
2251 esac
2252done
2253else
2254 echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
18c04407
RW
2257{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2258echo "$as_me: error: in \`$ac_pwd':" >&2;}
88386050
NN
2259{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: C compiler cannot create executables
2262See \`config.log' for more details." >&2;}
18c04407 2263 { (exit 77); exit 77; }; }; }
88386050
NN
2264fi
2265
2266ac_exeext=$ac_cv_exeext
2267echo "$as_me:$LINENO: result: $ac_file" >&5
2268echo "${ECHO_T}$ac_file" >&6
2269
2270# Check the compiler produces executables we can run. If not, either
2271# the compiler is broken, or we cross compile.
2272echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2273echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2274# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2275# If not cross compiling, check that we can run a simple program.
2276if test "$cross_compiling" != yes; then
2277 if { ac_try='./$ac_file'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 cross_compiling=no
2284 else
2285 if test "$cross_compiling" = maybe; then
2286 cross_compiling=yes
2287 else
18c04407
RW
2288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2289echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
88386050
NN
2291If you meant to cross compile, use \`--host'.
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: cannot run C compiled programs.
2294If you meant to cross compile, use \`--host'.
2295See \`config.log' for more details." >&2;}
18c04407 2296 { (exit 1); exit 1; }; }; }
88386050
NN
2297 fi
2298 fi
2299fi
2300echo "$as_me:$LINENO: result: yes" >&5
2301echo "${ECHO_T}yes" >&6
2302
2303rm -f a.out a.exe conftest$ac_cv_exeext b.out
2304ac_clean_files=$ac_clean_files_save
2305# Check the compiler produces executables we can run. If not, either
2306# the compiler is broken, or we cross compile.
2307echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2309echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310echo "${ECHO_T}$cross_compiling" >&6
2311
2312echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315 (eval $ac_link) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2321# work properly (i.e., refer to `conftest.exe'), while it won't with
2322# `rm'.
2323for ac_file in conftest.exe conftest conftest.*; do
2324 test -f "$ac_file" || continue
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 export ac_cv_exeext
2329 break;;
2330 * ) break;;
2331 esac
2332done
2333else
18c04407
RW
2334 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2335echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
88386050
NN
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339See \`config.log' for more details." >&2;}
18c04407 2340 { (exit 1); exit 1; }; }; }
88386050
NN
2341fi
2342
2343rm -f conftest$ac_cv_exeext
2344echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345echo "${ECHO_T}$ac_cv_exeext" >&6
2346
2347rm -f conftest.$ac_ext
2348EXEEXT=$ac_cv_exeext
2349ac_exeext=$EXEEXT
2350fi
2351echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2353if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h. */
2362
2363int
2364main ()
2365{
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.o conftest.obj
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; then
2377 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2378 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2381 break;;
2382 esac
2383done
2384else
2385 echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
18c04407
RW
2388{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2389echo "$as_me: error: in \`$ac_pwd':" >&2;}
88386050
NN
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
18c04407 2394 { (exit 1); exit 1; }; }; }
88386050
NN
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408 cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h. */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h. */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419 choke me
2420#endif
2421
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2c888488
L
2435 { ac_try='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
88386050
NN
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_compiler_gnu=yes
2449else
2450 echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_compiler_gnu=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464CFLAGS="-g"
2465echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h. */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h. */
2476
2477int
2478main ()
2479{
2480
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2c888488
L
2494 { ac_try='test -z "$ac_c_werror_flag"
2495 || test ! -s conftest.err'
88386050
NN
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_g=yes
2508else
2509 echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512ac_cv_prog_cc_g=no
2513fi
2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518if test "$ac_test_CFLAGS" = set; then
2519 CFLAGS=$ac_save_CFLAGS
2520elif test $ac_cv_prog_cc_g = yes; then
2521 if test "$GCC" = yes; then
2522 CFLAGS="-g -O2"
2523 else
2524 CFLAGS="-g"
2525 fi
2526else
2527 if test "$GCC" = yes; then
2528 CFLAGS="-O2"
2529 else
2530 CFLAGS=
2531 fi
2532fi
2533echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 ac_cv_prog_cc_stdc=no
2539ac_save_CC=$CC
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h. */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h. */
2546#include <stdarg.h>
2547#include <stdio.h>
2548#include <sys/types.h>
2549#include <sys/stat.h>
2550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2551struct buf { int x; };
2552FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553static char *e (p, i)
2554 char **p;
2555 int i;
2556{
2557 return p[i];
2558}
2559static char *f (char * (*g) (char **, int), char **p, ...)
2560{
2561 char *s;
2562 va_list v;
2563 va_start (v,p);
2564 s = g (p, va_arg (v,int));
2565 va_end (v);
2566 return s;
2567}
2568
2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2570 function prototypes and stuff, but not '\xHH' hex character constants.
2571 These don't provoke an error unfortunately, instead are silently treated
2572 as 'x'. The following induces an error, until -std1 is added to get
2573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2574 array size at least. It's necessary to write '\x00'==0 to get something
2575 that's true only with -std1. */
2576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577
2578int test (int i, double x);
2579struct s1 {int (*f) (int a);};
2580struct s2 {int (*f) (double a);};
2581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582int argc;
2583char **argv;
2584int
2585main ()
2586{
2587return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592# Don't try gcc -ansi; that turns off useful extensions and
2593# breaks some systems' header files.
2594# AIX -qlanglvl=ansi
2595# Ultrix and OSF/1 -std1
2596# HP-UX 10.20 and later -Ae
2597# HP-UX older versions -Aa -D_HPUX_SOURCE
2598# SVR4 -Xc -D__EXTENSIONS__
2599for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600do
2601 CC="$ac_save_CC $ac_arg"
2602 rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2c888488
L
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
88386050
NN
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_cv_prog_cc_stdc=$ac_arg
2625break
2626else
2627 echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext
2632done
2633rm -f conftest.$ac_ext conftest.$ac_objext
2634CC=$ac_save_CC
2635
bce1b489
BE
2636fi
2637
88386050
NN
2638case "x$ac_cv_prog_cc_stdc" in
2639 x|xno)
2640 echo "$as_me:$LINENO: result: none needed" >&5
2641echo "${ECHO_T}none needed" >&6 ;;
2642 *)
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645 CC="$CC $ac_cv_prog_cc_stdc" ;;
2646esac
2647
2648# Some people use a C++ compiler to compile C. Since we use `exit',
2649# in C++ we need to declare it. In case someone uses the same compiler
2650# for both compiling C and C++ we need to have the C++ compiler decide
2651# the declaration of exit, since it's the most demanding environment.
2652cat >conftest.$ac_ext <<_ACEOF
2653#ifndef __cplusplus
2654 choke me
2655#endif
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2c888488
L
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
88386050
NN
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 for ac_declaration in \
2680 '' \
2681 'extern "C" void std::exit (int) throw (); using std::exit;' \
2682 'extern "C" void std::exit (int); using std::exit;' \
2683 'extern "C" void exit (int) throw ();' \
2684 'extern "C" void exit (int);' \
2685 'void exit (int);'
2686do
2687 cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h. */
2693$ac_declaration
2694#include <stdlib.h>
2695int
2696main ()
2697{
2698exit (42);
2699 ;
2700 return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2c888488
L
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
88386050
NN
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 :
2726else
2727 echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730continue
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
2739$ac_declaration
2740int
2741main ()
2742{
2743exit (42);
2744 ;
2745 return 0;
2746}
2747_ACEOF
2748rm -f conftest.$ac_objext
2749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2c888488
L
2757 { ac_try='test -z "$ac_c_werror_flag"
2758 || test ! -s conftest.err'
88386050
NN
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 break
2771else
2772 echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775fi
2776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777done
2778rm -f conftest*
2779if test -n "$ac_declaration"; then
2780 echo '#ifdef __cplusplus' >>confdefs.h
2781 echo $ac_declaration >>confdefs.h
2782 echo '#endif' >>confdefs.h
2783fi
03391b53 2784
9c01f395 2785else
88386050
NN
2786 echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
9c01f395 2789fi
88386050
NN
2790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791ac_ext=c
2792ac_cpp='$CPP $CPPFLAGS'
2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
9c01f395 2797
db7f3c69 2798
a5a813f8
AP
2799# extra LD Flags which are required for targets
2800case "${host}" in
2801 *-darwin*)
2802 # Darwin needs -single_module when linking libobjc
2803 extra_ldflags_libobjc=-Wl,-single_module
2804 ;;
2805esac
2806
2807
db7f3c69
NN
2808
2809
88386050
NN
2810if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
b150efee 2812set dummy ${ac_tool_prefix}as; ac_word=$2
88386050
NN
2813echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815if test "${ac_cv_prog_AS+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 2817else
b150efee
FS
2818 if test -n "$AS"; then
2819 ac_cv_prog_AS="$AS" # Let the user override the test.
2820else
88386050
NN
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_AS="${ac_tool_prefix}as"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833done
2834
b150efee
FS
2835fi
2836fi
88386050 2837AS=$ac_cv_prog_AS
b150efee 2838if test -n "$AS"; then
88386050
NN
2839 echo "$as_me:$LINENO: result: $AS" >&5
2840echo "${ECHO_T}$AS" >&6
b150efee 2841else
88386050
NN
2842 echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6
2844fi
2845
b150efee 2846fi
88386050
NN
2847if test -z "$ac_cv_prog_AS"; then
2848 ac_ct_AS=$AS
2849 # Extract the first word of "as", so it can be a program name with args.
2850set dummy as; ac_word=$2
2851echo "$as_me:$LINENO: checking for $ac_word" >&5
2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856 if test -n "$ac_ct_AS"; then
2857 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_AS="as"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870done
2871done
b150efee 2872
88386050
NN
2873fi
2874fi
2875ac_ct_AS=$ac_cv_prog_ac_ct_AS
2876if test -n "$ac_ct_AS"; then
2877 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2878echo "${ECHO_T}$ac_ct_AS" >&6
2879else
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882fi
b150efee 2883
88386050
NN
2884 AS=$ac_ct_AS
2885else
2886 AS="$ac_cv_prog_AS"
2887fi
b150efee 2888
88386050
NN
2889if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
b150efee 2891set dummy ${ac_tool_prefix}ar; ac_word=$2
88386050
NN
2892echo "$as_me:$LINENO: checking for $ac_word" >&5
2893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2894if test "${ac_cv_prog_AR+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee
FS
2896else
2897 if test -n "$AR"; then
2898 ac_cv_prog_AR="$AR" # Let the user override the test.
2899else
88386050
NN
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_AR="${ac_tool_prefix}ar"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911done
2912done
2913
b150efee
FS
2914fi
2915fi
88386050 2916AR=$ac_cv_prog_AR
b150efee 2917if test -n "$AR"; then
88386050
NN
2918 echo "$as_me:$LINENO: result: $AR" >&5
2919echo "${ECHO_T}$AR" >&6
b150efee 2920else
88386050
NN
2921 echo "$as_me:$LINENO: result: no" >&5
2922echo "${ECHO_T}no" >&6
b150efee
FS
2923fi
2924
88386050
NN
2925fi
2926if test -z "$ac_cv_prog_AR"; then
2927 ac_ct_AR=$AR
2928 # Extract the first word of "ar", so it can be a program name with args.
2929set dummy ar; ac_word=$2
2930echo "$as_me:$LINENO: checking for $ac_word" >&5
2931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934else
2935 if test -n "$ac_ct_AR"; then
2936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_AR="ar"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950done
2951
2952fi
2953fi
2954ac_ct_AR=$ac_cv_prog_ac_ct_AR
2955if test -n "$ac_ct_AR"; then
2956 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2957echo "${ECHO_T}$ac_ct_AR" >&6
2958else
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
2961fi
b150efee 2962
88386050
NN
2963 AR=$ac_ct_AR
2964else
2965 AR="$ac_cv_prog_AR"
2966fi
b150efee 2967
88386050
NN
2968if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
b150efee 2970set dummy ${ac_tool_prefix}ranlib; ac_word=$2
88386050
NN
2971echo "$as_me:$LINENO: checking for $ac_word" >&5
2972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973if test "${ac_cv_prog_RANLIB+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee
FS
2975else
2976 if test -n "$RANLIB"; then
2977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2978else
88386050
NN
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991done
2992
b150efee
FS
2993fi
2994fi
88386050 2995RANLIB=$ac_cv_prog_RANLIB
b150efee 2996if test -n "$RANLIB"; then
88386050
NN
2997 echo "$as_me:$LINENO: result: $RANLIB" >&5
2998echo "${ECHO_T}$RANLIB" >&6
b150efee 2999else
88386050
NN
3000 echo "$as_me:$LINENO: result: no" >&5
3001echo "${ECHO_T}no" >&6
b150efee
FS
3002fi
3003
88386050 3004fi
b150efee 3005if test -z "$ac_cv_prog_RANLIB"; then
88386050 3006 ac_ct_RANLIB=$RANLIB
b150efee
FS
3007 # Extract the first word of "ranlib", so it can be a program name with args.
3008set dummy ranlib; ac_word=$2
88386050
NN
3009echo "$as_me:$LINENO: checking for $ac_word" >&5
3010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee 3013else
88386050
NN
3014 if test -n "$ac_ct_RANLIB"; then
3015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
bce1b489 3016else
88386050
NN
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_RANLIB="ranlib"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029done
3030
3031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bce1b489
BE
3032fi
3033fi
88386050
NN
3034ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3035if test -n "$ac_ct_RANLIB"; then
3036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3037echo "${ECHO_T}$ac_ct_RANLIB" >&6
bce1b489 3038else
88386050
NN
3039 echo "$as_me:$LINENO: result: no" >&5
3040echo "${ECHO_T}no" >&6
bce1b489
BE
3041fi
3042
88386050 3043 RANLIB=$ac_ct_RANLIB
b150efee 3044else
88386050 3045 RANLIB="$ac_cv_prog_RANLIB"
b150efee
FS
3046fi
3047
9c01f395 3048# Find a good install program. We prefer a C program (faster),
bce1b489
BE
3049# so one script is as good as another. But avoid the broken or
3050# incompatible versions:
3051# SysV /etc/install, /usr/sbin/install
3052# SunOS /usr/etc/install
3053# IRIX /sbin/install
3054# AIX /bin/install
88386050 3055# AmigaOS /C/install, which installs bootblocks on floppy discs
bce1b489
BE
3056# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3057# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3058# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
88386050 3059# OS/2's system install, which has a completely different semantic
bce1b489 3060# ./install, which can be erroneously created by make from ./install.sh.
deb984e6 3061# Reject install programs that cannot install multiple files.
88386050
NN
3062echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3063echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bce1b489 3064if test -z "$INSTALL"; then
88386050
NN
3065if test "${ac_cv_path_install+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 3067else
88386050
NN
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069for as_dir in $PATH
3070do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 # Account for people who put trailing slashes in PATH elements.
3074case $as_dir/ in
3075 ./ | .// | /cC/* | \
3076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3078 /usr/ucb/* ) ;;
3079 *)
3080 # OSF1 and SCO ODT 3.0 have their own names for install.
3081 # Don't use installbsd from OSF since it installs stuff as root
3082 # by default.
3083 for ac_prog in ginstall scoinst install; do
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bce1b489 3086 if test $ac_prog = install &&
88386050 3087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
bce1b489
BE
3088 # AIX install. It has an incompatible calling convention.
3089 :
88386050
NN
3090 elif test $ac_prog = install &&
3091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3092 # program-specific install script used by HP pwplus--don't use.
3093 :
bce1b489 3094 else
deb984e6
PB
3095 rm -rf conftest.one conftest.two conftest.dir
3096 echo one > conftest.one
3097 echo two > conftest.two
3098 mkdir conftest.dir
3099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3100 test -s conftest.one && test -s conftest.two &&
3101 test -s conftest.dir/conftest.one &&
3102 test -s conftest.dir/conftest.two
3103 then
3104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3105 break 3
3106 fi
bce1b489
BE
3107 fi
3108 fi
3109 done
88386050
NN
3110 done
3111 ;;
3112esac
3113done
3114
deb984e6 3115rm -rf conftest.one conftest.two conftest.dir
bce1b489
BE
3116
3117fi
3118 if test "${ac_cv_path_install+set}" = set; then
88386050 3119 INSTALL=$ac_cv_path_install
bce1b489 3120 else
deb984e6
PB
3121 # As a last resort, use the slow shell script. Don't cache a
3122 # value for INSTALL within a source directory, because that will
bce1b489 3123 # break other packages using the cache if that directory is
deb984e6 3124 # removed, or if the value is a relative name.
88386050 3125 INSTALL=$ac_install_sh
bce1b489
BE
3126 fi
3127fi
88386050
NN
3128echo "$as_me:$LINENO: result: $INSTALL" >&5
3129echo "${ECHO_T}$INSTALL" >&6
bce1b489
BE
3130
3131# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3132# It thinks the first close brace ends the variable substitution.
3133test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3134
88386050 3135test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
da4b1927 3136
bce1b489
BE
3137test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3138
03391b53 3139
dd365157
MS
3140echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3142 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3143if test "${enable_maintainer_mode+set}" = set; then
3144 enableval="$enable_maintainer_mode"
3145 USE_MAINTAINER_MODE=$enableval
3146else
3147 USE_MAINTAINER_MODE=no
3148fi;
3149 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3150echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3151
3152
3153if test $USE_MAINTAINER_MODE = yes; then
3154 MAINTAINER_MODE_TRUE=
3155 MAINTAINER_MODE_FALSE='#'
3156else
3157 MAINTAINER_MODE_TRUE='#'
3158 MAINTAINER_MODE_FALSE=
3159fi
3160
3161 MAINT=$MAINTAINER_MODE_TRUE
3162
3163
3164
3f35ff6f 3165# Enable Win32 DLL on MS Windows - FIXME
1cf3d07d 3166enable_win32_dll=yes
3f35ff6f 3167
1cf3d07d 3168case $host in
467b2e9e 3169*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
1cf3d07d
SE
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3172set dummy ${ac_tool_prefix}as; ac_word=$2
3173echo "$as_me:$LINENO: checking for $ac_word" >&5
3174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175if test "${ac_cv_prog_AS+set}" = set; then
88386050 3176 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3177else
1cf3d07d
SE
3178 if test -n "$AS"; then
3179 ac_cv_prog_AS="$AS" # Let the user override the test.
03391b53 3180else
1cf3d07d
SE
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_AS="${ac_tool_prefix}as"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192done
3193done
3194
03391b53
AO
3195fi
3196fi
1cf3d07d
SE
3197AS=$ac_cv_prog_AS
3198if test -n "$AS"; then
3199 echo "$as_me:$LINENO: result: $AS" >&5
3200echo "${ECHO_T}$AS" >&6
03391b53 3201else
88386050
NN
3202 echo "$as_me:$LINENO: result: no" >&5
3203echo "${ECHO_T}no" >&6
03391b53 3204fi
1cf3d07d
SE
3205
3206fi
3207if test -z "$ac_cv_prog_AS"; then
3208 ac_ct_AS=$AS
3209 # Extract the first word of "as", so it can be a program name with args.
3210set dummy as; ac_word=$2
3211echo "$as_me:$LINENO: checking for $ac_word" >&5
3212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
88386050 3214 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3215else
1cf3d07d
SE
3216 if test -n "$ac_ct_AS"; then
3217 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
03391b53 3218else
1cf3d07d
SE
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_AS="as"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230done
3231done
3232
3233 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
03391b53
AO
3234fi
3235fi
1cf3d07d
SE
3236ac_ct_AS=$ac_cv_prog_ac_ct_AS
3237if test -n "$ac_ct_AS"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3239echo "${ECHO_T}$ac_ct_AS" >&6
3240else
3241 echo "$as_me:$LINENO: result: no" >&5
3242echo "${ECHO_T}no" >&6
3243fi
03391b53 3244
1cf3d07d 3245 AS=$ac_ct_AS
03391b53 3246else
1cf3d07d 3247 AS="$ac_cv_prog_AS"
03391b53 3248fi
03391b53 3249
1cf3d07d
SE
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3252set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3253echo "$as_me:$LINENO: checking for $ac_word" >&5
3254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255if test "${ac_cv_prog_DLLTOOL+set}" = set; then
88386050 3256 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3257else
1cf3d07d
SE
3258 if test -n "$DLLTOOL"; then
3259 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
03391b53 3260else
1cf3d07d
SE
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
03391b53
AO
3275fi
3276fi
1cf3d07d
SE
3277DLLTOOL=$ac_cv_prog_DLLTOOL
3278if test -n "$DLLTOOL"; then
3279 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3280echo "${ECHO_T}$DLLTOOL" >&6
1fcfac98 3281else
1cf3d07d
SE
3282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
1fcfac98
NN
3284fi
3285
1cf3d07d
SE
3286fi
3287if test -z "$ac_cv_prog_DLLTOOL"; then
3288 ac_ct_DLLTOOL=$DLLTOOL
3289 # Extract the first word of "dlltool", so it can be a program name with args.
3290set dummy dlltool; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
88386050 3294 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3295else
1cf3d07d
SE
3296 if test -n "$ac_ct_DLLTOOL"; then
3297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311done
03391b53 3312
1cf3d07d
SE
3313 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3314fi
3315fi
3316ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3317if test -n "$ac_ct_DLLTOOL"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3319echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3320else
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
03391b53 3324
1cf3d07d
SE
3325 DLLTOOL=$ac_ct_DLLTOOL
3326else
3327 DLLTOOL="$ac_cv_prog_DLLTOOL"
3328fi
03391b53 3329
1cf3d07d
SE
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3332set dummy ${ac_tool_prefix}objdump; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338 if test -n "$OBJDUMP"; then
3339 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353done
03391b53 3354
1cf3d07d
SE
3355fi
3356fi
3357OBJDUMP=$ac_cv_prog_OBJDUMP
3358if test -n "$OBJDUMP"; then
3359 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3360echo "${ECHO_T}$OBJDUMP" >&6
3361else
3362 echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
33456445 3365
1cf3d07d
SE
3366fi
3367if test -z "$ac_cv_prog_OBJDUMP"; then
3368 ac_ct_OBJDUMP=$OBJDUMP
3369 # Extract the first word of "objdump", so it can be a program name with args.
3370set dummy objdump; ac_word=$2
3371echo "$as_me:$LINENO: checking for $ac_word" >&5
3372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 if test -n "$ac_ct_OBJDUMP"; then
3377 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
03391b53 3389 fi
1cf3d07d
SE
3390done
3391done
03391b53 3392
1cf3d07d
SE
3393 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3394fi
3395fi
3396ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3397if test -n "$ac_ct_OBJDUMP"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3399echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3400else
3401 echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403fi
03391b53 3404
1cf3d07d
SE
3405 OBJDUMP=$ac_ct_OBJDUMP
3406else
3407 OBJDUMP="$ac_cv_prog_OBJDUMP"
3408fi
03391b53 3409
03391b53 3410 ;;
1cf3d07d 3411esac
03391b53 3412
1cf3d07d 3413test -z "$AS" && AS=as
03391b53 3414
03391b53 3415
33456445 3416
03391b53 3417
03391b53 3418
1cf3d07d 3419test -z "$DLLTOOL" && DLLTOOL=dlltool
03391b53 3420
33456445 3421
03391b53 3422
03391b53 3423
9c01f395 3424
1cf3d07d 3425test -z "$OBJDUMP" && OBJDUMP=objdump
9c01f395 3426
9c01f395 3427
9c01f395 3428
03391b53 3429
6dab073b 3430
6dab073b 3431
6dab073b 3432
6dab073b 3433
467b2e9e
PG
3434case `pwd` in
3435 *\ * | *\ *)
3436 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3437echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3438esac
6dab073b 3439
6dab073b 3440
1cf3d07d 3441
467b2e9e
PG
3442macro_version='2.2.6'
3443macro_revision='1.3012'
1cf3d07d
SE
3444
3445
3446
3447
3448
3449
03391b53 3450
1cf3d07d
SE
3451
3452
3453
3454
3455
3456
467b2e9e 3457ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d
SE
3458
3459echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3460echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3461if test "${lt_cv_path_SED+set}" = set; then
88386050 3462 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3463else
1cf3d07d
SE
3464 # Loop through the user's path and test for sed and gsed.
3465# Then use that list of sed's as ones to test for truncation.
88386050
NN
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
1cf3d07d
SE
3471 for lt_ac_prog in sed gsed; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3474 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3475 fi
3476 done
3477 done
88386050 3478done
1cf3d07d
SE
3479IFS=$as_save_IFS
3480lt_ac_max=0
3481lt_ac_count=0
3482# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3483# along with /bin/sed that truncates output.
3484for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3485 test ! -f $lt_ac_sed && continue
3486 cat /dev/null > conftest.in
3487 lt_ac_count=0
3488 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3489 # Check for GNU sed and select it if it is found.
3490 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3491 lt_cv_path_SED=$lt_ac_sed
3492 break
3493 fi
3494 while true; do
3495 cat conftest.in conftest.in >conftest.tmp
3496 mv conftest.tmp conftest.in
3497 cp conftest.in conftest.nl
3498 echo >>conftest.nl
3499 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3500 cmp -s conftest.out conftest.nl || break
3501 # 10000 chars as input seems more than enough
3502 test $lt_ac_count -gt 10 && break
3503 lt_ac_count=`expr $lt_ac_count + 1`
3504 if test $lt_ac_count -gt $lt_ac_max; then
3505 lt_ac_max=$lt_ac_count
3506 lt_cv_path_SED=$lt_ac_sed
3507 fi
3508 done
88386050
NN
3509done
3510
03391b53
AO
3511fi
3512
1cf3d07d
SE
3513SED=$lt_cv_path_SED
3514
3515echo "$as_me:$LINENO: result: $SED" >&5
3516echo "${ECHO_T}$SED" >&6
3517
3518test -z "$SED" && SED=sed
3519Xsed="$SED -e 1s/^X//"
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531echo "$as_me:$LINENO: checking for egrep" >&5
3532echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3533if test "${ac_cv_prog_egrep+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3535else
1cf3d07d
SE
3536 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3537 then ac_cv_prog_egrep='grep -E'
3538 else ac_cv_prog_egrep='egrep'
3539 fi
03391b53 3540fi
1cf3d07d
SE
3541echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3542echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3543 EGREP=$ac_cv_prog_egrep
03391b53 3544
1cf3d07d
SE
3545
3546echo "$as_me:$LINENO: checking for fgrep" >&5
3547echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3548if test "${ac_cv_prog_fgrep+set}" = set; then
88386050 3549 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3550else
1cf3d07d
SE
3551 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3552 then ac_cv_prog_fgrep='grep -F'
3553 else ac_cv_prog_fgrep='fgrep'
3554 fi
3555fi
3556echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3557echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3558 FGREP=$ac_cv_prog_fgrep
3559
3560
3561test -z "$GREP" && GREP=grep
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581# Check whether --with-gnu-ld or --without-gnu-ld was given.
3582if test "${with_gnu_ld+set}" = set; then
3583 withval="$with_gnu_ld"
3584 test "$withval" = no || with_gnu_ld=yes
3585else
3586 with_gnu_ld=no
3587fi;
3588ac_prog=ld
3589if test "$GCC" = yes; then
3590 # Check if gcc -print-prog-name=ld gives a path.
3591 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3592echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3593 case $host in
3594 *-*-mingw*)
3595 # gcc leaves a trailing carriage return which upsets mingw
3596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3597 *)
3598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3599 esac
3600 case $ac_prog in
3601 # Accept absolute paths.
3602 [\\/]* | ?:[\\/]*)
3603 re_direlt='/[^/][^/]*/\.\./'
3604 # Canonicalize the pathname of ld
3605 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3606 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3607 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3608 done
3609 test -z "$LD" && LD="$ac_prog"
3610 ;;
3611 "")
3612 # If it fails, then pretend we aren't using GCC.
3613 ac_prog=ld
3614 ;;
3615 *)
3616 # If it is relative, then search for the first ld in PATH.
3617 with_gnu_ld=unknown
3618 ;;
3619 esac
3620elif test "$with_gnu_ld" = yes; then
3621 echo "$as_me:$LINENO: checking for GNU ld" >&5
3622echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3623else
3624 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3625echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3626fi
3627if test "${lt_cv_path_LD+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 if test -z "$LD"; then
3631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3632 for ac_dir in $PATH; do
3633 IFS="$lt_save_ifs"
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3636 lt_cv_path_LD="$ac_dir/$ac_prog"
3637 # Check to see if the program is GNU ld. I'd rather use --version,
3638 # but apparently some variants of GNU ld only accept -v.
3639 # Break only if it was the GNU/non-GNU ld that we prefer.
3640 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3641 *GNU* | *'with BFD'*)
3642 test "$with_gnu_ld" != no && break
3643 ;;
3644 *)
3645 test "$with_gnu_ld" != yes && break
3646 ;;
3647 esac
3648 fi
3649 done
3650 IFS="$lt_save_ifs"
3651else
3652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3653fi
3654fi
3655
3656LD="$lt_cv_path_LD"
3657if test -n "$LD"; then
3658 echo "$as_me:$LINENO: result: $LD" >&5
3659echo "${ECHO_T}$LD" >&6
3660else
3661 echo "$as_me:$LINENO: result: no" >&5
3662echo "${ECHO_T}no" >&6
3663fi
3664test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3665echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3666 { (exit 1); exit 1; }; }
3667echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3668echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3669if test "${lt_cv_prog_gnu_ld+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3673case `$LD -v 2>&1 </dev/null` in
3674*GNU* | *'with BFD'*)
3675 lt_cv_prog_gnu_ld=yes
3676 ;;
3677*)
3678 lt_cv_prog_gnu_ld=no
3679 ;;
3680esac
3681fi
3682echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3683echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3684with_gnu_ld=$lt_cv_prog_gnu_ld
3685
3686
3687
3688
3689
3690
3691
3692
3693
1cf3d07d
SE
3694echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3695echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3696if test "${lt_cv_path_NM+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 if test -n "$NM"; then
3700 # Let the user override the test.
3701 lt_cv_path_NM="$NM"
3702else
3703 lt_nm_to_check="${ac_tool_prefix}nm"
3704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3705 lt_nm_to_check="$lt_nm_to_check nm"
3706 fi
3707 for lt_tmp_nm in $lt_nm_to_check; do
3708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3710 IFS="$lt_save_ifs"
3711 test -z "$ac_dir" && ac_dir=.
3712 tmp_nm="$ac_dir/$lt_tmp_nm"
3713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3714 # Check to see if the nm accepts a BSD-compat flag.
3715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3716 # nm: unknown option "B" ignored
3717 # Tru64's nm complains that /dev/null is an invalid object file
3718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3719 */dev/null* | *'Invalid file or object type'*)
3720 lt_cv_path_NM="$tmp_nm -B"
3721 break
3722 ;;
3723 *)
3724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3725 */dev/null*)
3726 lt_cv_path_NM="$tmp_nm -p"
3727 break
3728 ;;
3729 *)
3730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3731 continue # so that we can try to find one that supports BSD flags
3732 ;;
3733 esac
3734 ;;
3735 esac
3736 fi
3737 done
3738 IFS="$lt_save_ifs"
3739 done
3740 : ${lt_cv_path_NM=no}
3741fi
3742fi
3743echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3744echo "${ECHO_T}$lt_cv_path_NM" >&6
3745if test "$lt_cv_path_NM" != "no"; then
3746 NM="$lt_cv_path_NM"
3747else
3748 # Didn't find any BSD compatible name lister, look for dumpbin.
3749 if test -n "$ac_tool_prefix"; then
3750 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754echo "$as_me:$LINENO: checking for $ac_word" >&5
3755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 if test -n "$DUMPBIN"; then
3760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
88386050
NN
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 3769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
88386050
NN
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774done
3775
03391b53
AO
3776fi
3777fi
1cf3d07d
SE
3778DUMPBIN=$ac_cv_prog_DUMPBIN
3779if test -n "$DUMPBIN"; then
3780 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3781echo "${ECHO_T}$DUMPBIN" >&6
03391b53 3782else
88386050
NN
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
03391b53
AO
3785fi
3786
1cf3d07d
SE
3787 test -n "$DUMPBIN" && break
3788 done
88386050 3789fi
1cf3d07d
SE
3790if test -z "$DUMPBIN"; then
3791 ac_ct_DUMPBIN=$DUMPBIN
3792 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
88386050
NN
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 3798if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
88386050 3799 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3800else
1cf3d07d
SE
3801 if test -n "$ac_ct_DUMPBIN"; then
3802 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
03391b53 3803else
88386050
NN
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 3811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
88386050
NN
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
03391b53
AO
3818fi
3819fi
1cf3d07d
SE
3820ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3821if test -n "$ac_ct_DUMPBIN"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3823echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
03391b53 3824else
88386050
NN
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
03391b53
AO
3827fi
3828
1cf3d07d
SE
3829 test -n "$ac_ct_DUMPBIN" && break
3830done
3831test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3832
3833 DUMPBIN=$ac_ct_DUMPBIN
3834fi
3835
3836
3837 if test "$DUMPBIN" != ":"; then
3838 NM="$DUMPBIN"
3839 fi
3840fi
3841test -z "$NM" && NM=nm
3842
3843
3844
3845
3846
3847
3848echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3849echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3850if test "${lt_cv_nm_interface+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3852else
1cf3d07d
SE
3853 lt_cv_nm_interface="BSD nm"
3854 echo "int some_variable = 0;" > conftest.$ac_ext
467b2e9e 3855 (eval echo "\"\$as_me:3855: $ac_compile\"" >&5)
1cf3d07d
SE
3856 (eval "$ac_compile" 2>conftest.err)
3857 cat conftest.err >&5
467b2e9e 3858 (eval echo "\"\$as_me:3858: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
3859 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3860 cat conftest.err >&5
467b2e9e 3861 (eval echo "\"\$as_me:3861: output\"" >&5)
1cf3d07d
SE
3862 cat conftest.out >&5
3863 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3864 lt_cv_nm_interface="MS dumpbin"
3865 fi
3866 rm -f conftest*
3867fi
3868echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3869echo "${ECHO_T}$lt_cv_nm_interface" >&6
3870
3871echo "$as_me:$LINENO: checking whether ln -s works" >&5
3872echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3873LN_S=$as_ln_s
3874if test "$LN_S" = "ln -s"; then
3875 echo "$as_me:$LINENO: result: yes" >&5
3876echo "${ECHO_T}yes" >&6
3877else
3878 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3879echo "${ECHO_T}no, using $LN_S" >&6
03391b53
AO
3880fi
3881
1cf3d07d
SE
3882# find the maximum length of command line arguments
3883echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3884echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3885if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 i=0
3889 teststring="ABCD"
3890
3891 case $build_os in
3892 msdosdjgpp*)
3893 # On DJGPP, this test can blow up pretty badly due to problems in libc
3894 # (any single argument exceeding 2000 bytes causes a buffer overrun
3895 # during glob expansion). Even if it were fixed, the result of this
3896 # check would be larger than it should be.
3897 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3898 ;;
3899
3900 gnu*)
3901 # Under GNU Hurd, this test is not required because there is
3902 # no limit to the length of command line arguments.
3903 # Libtool will interpret -1 as no limit whatsoever
3904 lt_cv_sys_max_cmd_len=-1;
3905 ;;
3906
467b2e9e 3907 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
3908 # On Win9x/ME, this test blows up -- it succeeds, but takes
3909 # about 5 minutes as the teststring grows exponentially.
3910 # Worse, since 9x/ME are not pre-emptively multitasking,
3911 # you end up with a "frozen" computer, even though with patience
3912 # the test eventually succeeds (with a max line length of 256k).
3913 # Instead, let's just punt: use the minimum linelength reported by
3914 # all of the supported platforms: 8192 (on NT/2K/XP).
3915 lt_cv_sys_max_cmd_len=8192;
3916 ;;
3917
3918 amigaos*)
3919 # On AmigaOS with pdksh, this test takes hours, literally.
3920 # So we just punt and use a minimum line length of 8192.
3921 lt_cv_sys_max_cmd_len=8192;
3922 ;;
3923
3924 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3925 # This has been around since 386BSD, at least. Likely further.
3926 if test -x /sbin/sysctl; then
3927 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3928 elif test -x /usr/sbin/sysctl; then
3929 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3930 else
3931 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3932 fi
3933 # And add a safety zone
3934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3936 ;;
3937
3938 interix*)
3939 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3940 lt_cv_sys_max_cmd_len=196608
3941 ;;
3942
3943 osf*)
3944 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3945 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3946 # nice to cause kernel panics so lets avoid the loop below.
3947 # First set a reasonable default.
3948 lt_cv_sys_max_cmd_len=16384
3949 #
3950 if test -x /sbin/sysconfig; then
3951 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3952 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3953 esac
3954 fi
3955 ;;
3956 sco3.2v5*)
3957 lt_cv_sys_max_cmd_len=102400
3958 ;;
3959 sysv5* | sco5v6* | sysv4.2uw2*)
3960 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3961 if test -n "$kargmax"; then
3962 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3963 else
3964 lt_cv_sys_max_cmd_len=32768
3965 fi
3966 ;;
3967 *)
467b2e9e
PG
3968 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3969 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
3970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3972 else
3973 # Make teststring a little bigger before we do anything with it.
3974 # a 1K string should be a reasonable start.
3975 for i in 1 2 3 4 5 6 7 8 ; do
3976 teststring=$teststring$teststring
3977 done
3978 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3979 # If test is not a shell built-in, we'll probably end up computing a
3980 # maximum length that is only half of the actual maximum length, but
3981 # we can't tell.
3982 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3983 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3984 test $i != 17 # 1/2 MB should be enough
3985 do
3986 i=`expr $i + 1`
3987 teststring=$teststring$teststring
3988 done
3989 # Only check the string length outside the loop.
3990 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3991 teststring=
3992 # Add a significant safety factor because C++ compilers can tack on
3993 # massive amounts of additional arguments before passing them to the
3994 # linker. It appears as though 1/2 is a usable value.
3995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3996 fi
1cf3d07d
SE
3997 ;;
3998 esac
3999
4000fi
4001
4002if test -n $lt_cv_sys_max_cmd_len ; then
4003 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4004echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4005else
4006 echo "$as_me:$LINENO: result: none" >&5
4007echo "${ECHO_T}none" >&6
4008fi
4009max_cmd_len=$lt_cv_sys_max_cmd_len
4010
4011
4012
4013
4014
4015
1cf3d07d
SE
4016: ${CP="cp -f"}
4017: ${MV="mv -f"}
4018: ${RM="rm -f"}
4019
4020echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4021echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4022# Try some XSI features
4023xsi_shell=no
4024( _lt_dummy="a/b/c"
4025 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
467b2e9e
PG
4026 = c,a/b,, \
4027 && eval 'test $(( 1 + 1 )) -eq 2 \
4028 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d
SE
4029 && xsi_shell=yes
4030echo "$as_me:$LINENO: result: $xsi_shell" >&5
4031echo "${ECHO_T}$xsi_shell" >&6
4032
4033
4034echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4035echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4036lt_shell_append=no
4037( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4038 >/dev/null 2>&1 \
4039 && lt_shell_append=yes
4040echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4041echo "${ECHO_T}$lt_shell_append" >&6
4042
4043
4044if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4045 lt_unset=unset
4046else
4047 lt_unset=false
4048fi
4049
4050
4051
4052
4053
4054# test EBCDIC or ASCII
4055case `echo X|tr X '\101'` in
4056 A) # ASCII based system
4057 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4058 lt_SP2NL='tr \040 \012'
4059 lt_NL2SP='tr \015\012 \040\040'
4060 ;;
4061 *) # EBCDIC based system
4062 lt_SP2NL='tr \100 \n'
4063 lt_NL2SP='tr \r\n \100\100'
4064 ;;
4065esac
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4077if test "${lt_cv_ld_reload_flag+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080 lt_cv_ld_reload_flag='-r'
4081fi
4082echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4084reload_flag=$lt_cv_ld_reload_flag
4085case $reload_flag in
4086"" | " "*) ;;
4087*) reload_flag=" $reload_flag" ;;
4088esac
4089reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090case $host_os in
4091 darwin*)
4092 if test "$GCC" = yes; then
4093 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4094 else
4095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4096 fi
4097 ;;
4098esac
4099
4100
4101
4102
4103
4104
4105
4106
4107
467b2e9e
PG
4108if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4110set dummy ${ac_tool_prefix}objdump; ac_word=$2
4111echo "$as_me:$LINENO: checking for $ac_word" >&5
4112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116 if test -n "$OBJDUMP"; then
4117 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130done
4131done
4132
4133fi
4134fi
4135OBJDUMP=$ac_cv_prog_OBJDUMP
4136if test -n "$OBJDUMP"; then
4137 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4138echo "${ECHO_T}$OBJDUMP" >&6
4139else
4140 echo "$as_me:$LINENO: result: no" >&5
4141echo "${ECHO_T}no" >&6
4142fi
4143
4144fi
4145if test -z "$ac_cv_prog_OBJDUMP"; then
4146 ac_ct_OBJDUMP=$OBJDUMP
4147 # Extract the first word of "objdump", so it can be a program name with args.
4148set dummy objdump; ac_word=$2
4149echo "$as_me:$LINENO: checking for $ac_word" >&5
4150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154 if test -n "$ac_ct_OBJDUMP"; then
4155 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168done
4169done
4170
4171 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4172fi
4173fi
4174ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4175if test -n "$ac_ct_OBJDUMP"; then
4176 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4177echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4178else
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181fi
4182
4183 OBJDUMP=$ac_ct_OBJDUMP
4184else
4185 OBJDUMP="$ac_cv_prog_OBJDUMP"
4186fi
4187
4188test -z "$OBJDUMP" && OBJDUMP=objdump
4189
4190
4191
4192
4193
1cf3d07d
SE
4194
4195echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4196echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4197if test "${lt_cv_deplibs_check_method+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 lt_cv_file_magic_cmd='$MAGIC_CMD'
4201lt_cv_file_magic_test_file=
4202lt_cv_deplibs_check_method='unknown'
4203# Need to set the preceding variable on all platforms that support
4204# interlibrary dependencies.
4205# 'none' -- dependencies not supported.
4206# `unknown' -- same as none, but documents that we really don't know.
4207# 'pass_all' -- all dependencies passed with no checks.
4208# 'test_compile' -- check by making test program.
4209# 'file_magic [[regex]]' -- check by looking for files in library path
4210# which responds to the $file_magic_cmd with a given extended regex.
4211# If you have `file' or equivalent on your system and you're not sure
4212# whether `pass_all' will *always* work, you probably want this one.
4213
4214case $host_os in
e7ad4ca7 4215aix[4-9]*)
1cf3d07d
SE
4216 lt_cv_deplibs_check_method=pass_all
4217 ;;
4218
4219beos*)
4220 lt_cv_deplibs_check_method=pass_all
4221 ;;
4222
4223bsdi[45]*)
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4225 lt_cv_file_magic_cmd='/usr/bin/file -L'
4226 lt_cv_file_magic_test_file=/shlib/libc.so
4227 ;;
4228
4229cygwin*)
4230 # func_win32_libid is a shell function defined in ltmain.sh
4231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4232 lt_cv_file_magic_cmd='func_win32_libid'
4233 ;;
4234
4235mingw* | pw32*)
4236 # Base MSYS/MinGW do not provide the 'file' command needed by
4237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4238 # unless we find 'file', for example because we are cross-compiling.
4239 if ( file / ) >/dev/null 2>&1; then
4240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4241 lt_cv_file_magic_cmd='func_win32_libid'
4242 else
4243 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4244 lt_cv_file_magic_cmd='$OBJDUMP -f'
4245 fi
4246 ;;
4247
467b2e9e
PG
4248cegcc)
4249 # use the weaker test based on 'objdump'. See mingw*.
4250 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4251 lt_cv_file_magic_cmd='$OBJDUMP -f'
4252 ;;
4253
1cf3d07d
SE
4254darwin* | rhapsody*)
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
4258freebsd* | dragonfly*)
4259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4260 case $host_cpu in
4261 i*86 )
4262 # Not sure whether the presence of OpenBSD here was a mistake.
4263 # Let's accept both of them until this is cleared up.
4264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4267 ;;
4268 esac
4269 else
4270 lt_cv_deplibs_check_method=pass_all
4271 fi
4272 ;;
4273
4274gnu*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278hpux10.20* | hpux11*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4280 case $host_cpu in
4281 ia64*)
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4284 ;;
4285 hppa*64*)
4286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4288 ;;
4289 *)
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4292 ;;
4293 esac
4294 ;;
4295
4296interix[3-9]*)
4297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4299 ;;
4300
4301irix5* | irix6* | nonstopux*)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311# This must be Linux ELF.
4312linux* | k*bsd*-gnu)
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316netbsd*)
4317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319 else
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4321 fi
4322 ;;
4323
4324newos6*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4328 ;;
4329
4330*nto* | *qnx*)
4331 lt_cv_deplibs_check_method=pass_all
4332 ;;
4333
4334openbsd*)
4335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4337 else
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4339 fi
4340 ;;
4341
4342osf3* | osf4* | osf5*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
4346rdos*)
4347 lt_cv_deplibs_check_method=pass_all
4348 ;;
4349
4350solaris*)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353
4354sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4355 lt_cv_deplibs_check_method=pass_all
4356 ;;
4357
4358sysv4 | sysv4.3*)
4359 case $host_vendor in
4360 motorola)
4361 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]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4363 ;;
4364 ncr)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367 sequent)
4368 lt_cv_file_magic_cmd='/bin/file'
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4370 ;;
4371 sni)
4372 lt_cv_file_magic_cmd='/bin/file'
4373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4374 lt_cv_file_magic_test_file=/lib/libc.so
4375 ;;
4376 siemens)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379 pc)
4380 lt_cv_deplibs_check_method=pass_all
4381 ;;
4382 esac
4383 ;;
4384
4385tpf*)
4386 lt_cv_deplibs_check_method=pass_all
4387 ;;
4388esac
4389
4390fi
4391echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4392echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4393file_magic_cmd=$lt_cv_file_magic_cmd
4394deplibs_check_method=$lt_cv_deplibs_check_method
4395test -z "$deplibs_check_method" && deplibs_check_method=unknown
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4410set dummy ${ac_tool_prefix}ar; ac_word=$2
4411echo "$as_me:$LINENO: checking for $ac_word" >&5
4412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413if test "${ac_cv_prog_AR+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 if test -n "$AR"; then
4417 ac_cv_prog_AR="$AR" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_AR="${ac_tool_prefix}ar"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430done
4431done
4432
4433fi
4434fi
4435AR=$ac_cv_prog_AR
4436if test -n "$AR"; then
4437 echo "$as_me:$LINENO: result: $AR" >&5
4438echo "${ECHO_T}$AR" >&6
4439else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442fi
4443
4444fi
4445if test -z "$ac_cv_prog_AR"; then
4446 ac_ct_AR=$AR
4447 # Extract the first word of "ar", so it can be a program name with args.
4448set dummy ar; ac_word=$2
4449echo "$as_me:$LINENO: checking for $ac_word" >&5
4450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454 if test -n "$ac_ct_AR"; then
4455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_AR="ar"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468done
4469done
4470
4471 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4472fi
4473fi
4474ac_ct_AR=$ac_cv_prog_ac_ct_AR
4475if test -n "$ac_ct_AR"; then
4476 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4477echo "${ECHO_T}$ac_ct_AR" >&6
4478else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481fi
4482
4483 AR=$ac_ct_AR
4484else
4485 AR="$ac_cv_prog_AR"
4486fi
4487
4488test -z "$AR" && AR=ar
4489test -z "$AR_FLAGS" && AR_FLAGS=cru
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501if test -n "$ac_tool_prefix"; then
4502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4503set dummy ${ac_tool_prefix}strip; ac_word=$2
4504echo "$as_me:$LINENO: checking for $ac_word" >&5
4505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506if test "${ac_cv_prog_STRIP+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509 if test -n "$STRIP"; then
4510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523done
4524done
4525
4526fi
4527fi
4528STRIP=$ac_cv_prog_STRIP
4529if test -n "$STRIP"; then
4530 echo "$as_me:$LINENO: result: $STRIP" >&5
4531echo "${ECHO_T}$STRIP" >&6
4532else
4533 echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535fi
4536
4537fi
4538if test -z "$ac_cv_prog_STRIP"; then
4539 ac_ct_STRIP=$STRIP
4540 # Extract the first word of "strip", so it can be a program name with args.
4541set dummy strip; ac_word=$2
4542echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 if test -n "$ac_ct_STRIP"; then
4548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_ac_ct_STRIP="strip"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562done
4563
4564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4565fi
4566fi
4567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4568if test -n "$ac_ct_STRIP"; then
4569 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4570echo "${ECHO_T}$ac_ct_STRIP" >&6
4571else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574fi
4575
4576 STRIP=$ac_ct_STRIP
4577else
4578 STRIP="$ac_cv_prog_STRIP"
4579fi
4580
4581test -z "$STRIP" && STRIP=:
4582
4583
4584
4585
4586
4587
4588if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4590set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4591echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593if test "${ac_cv_prog_RANLIB+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596 if test -n "$RANLIB"; then
4597 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610done
4611done
4612
4613fi
4614fi
4615RANLIB=$ac_cv_prog_RANLIB
4616if test -n "$RANLIB"; then
4617 echo "$as_me:$LINENO: result: $RANLIB" >&5
4618echo "${ECHO_T}$RANLIB" >&6
4619else
4620 echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6
4622fi
4623
4624fi
4625if test -z "$ac_cv_prog_RANLIB"; then
4626 ac_ct_RANLIB=$RANLIB
4627 # Extract the first word of "ranlib", so it can be a program name with args.
4628set dummy ranlib; ac_word=$2
4629echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4631if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634 if test -n "$ac_ct_RANLIB"; then
4635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_ac_ct_RANLIB="ranlib"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648done
4649done
4650
4651 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4652fi
4653fi
4654ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4655if test -n "$ac_ct_RANLIB"; then
4656 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4657echo "${ECHO_T}$ac_ct_RANLIB" >&6
4658else
4659 echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6
4661fi
4662
4663 RANLIB=$ac_ct_RANLIB
4664else
4665 RANLIB="$ac_cv_prog_RANLIB"
4666fi
4667
4668test -z "$RANLIB" && RANLIB=:
4669
4670
4671
4672
4673
4674
4675# Determine commands to create old-style static archives.
467b2e9e 4676old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
4677old_postinstall_cmds='chmod 644 $oldlib'
4678old_postuninstall_cmds=
4679
4680if test -n "$RANLIB"; then
4681 case $host_os in
4682 openbsd*)
4683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4684 ;;
4685 *)
4686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4687 ;;
4688 esac
4689 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4690fi
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725# If no C compiler was specified, use CC.
4726LTCC=${LTCC-"$CC"}
4727
4728# If no C compiler flags were specified, use CFLAGS.
4729LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4730
4731# Allow CC to be a program name with arguments.
4732compiler=$CC
4733
4734
4735# Check for command to grab the raw symbol name followed by C symbol from nm.
4736echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4737echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4738if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741
4742# These are sane defaults that work on at least a few old systems.
4743# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4744
4745# Character class describing NM global symbol codes.
4746symcode='[BCDEGRST]'
4747
4748# Regexp to match symbols that can be accessed directly from C.
4749sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4750
4751# Define system-specific variables.
4752case $host_os in
4753aix*)
4754 symcode='[BCDT]'
4755 ;;
467b2e9e 4756cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
4757 symcode='[ABCDGISTW]'
4758 ;;
4759hpux*)
4760 if test "$host_cpu" = ia64; then
4761 symcode='[ABCDEGRST]'
4762 fi
4763 ;;
4764irix* | nonstopux*)
4765 symcode='[BCDEGRST]'
4766 ;;
4767osf*)
4768 symcode='[BCDEGQRST]'
4769 ;;
4770solaris*)
4771 symcode='[BDRT]'
4772 ;;
4773sco3.2v5*)
4774 symcode='[DT]'
4775 ;;
4776sysv4.2uw2*)
4777 symcode='[DT]'
4778 ;;
4779sysv5* | sco5v6* | unixware* | OpenUNIX*)
4780 symcode='[ABDT]'
4781 ;;
4782sysv4)
4783 symcode='[DFNSTU]'
4784 ;;
4785esac
4786
4787# If we're using GNU nm, then use its standard symbol codes.
4788case `$NM -V 2>&1` in
4789*GNU* | *'with BFD'*)
4790 symcode='[ABCDGIRSTW]' ;;
4791esac
4792
4793# Transform an extracted symbol line into a proper C declaration.
4794# Some systems (esp. on ia64) link data and code symbols differently,
4795# so use this general approach.
4796lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4797
4798# Transform an extracted symbol line into symbol name and symbol address
4799lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
467b2e9e 4800lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
4801
4802# Handle CRLF in mingw tool chain
4803opt_cr=
4804case $build_os in
4805mingw*)
4806 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4807 ;;
4808esac
4809
4810# Try without a prefix underscore, then with it.
4811for ac_symprfx in "" "_"; do
4812
4813 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4814 symxfrm="\\1 $ac_symprfx\\2 \\2"
4815
4816 # Write the raw and C identifiers.
4817 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4818 # Fake it for dumpbin and say T for any non-static function
4819 # and D for any global variable.
4820 # Also find C++ and __fastcall symbols from MSVC++,
4821 # which start with @ or ?.
4822 lt_cv_sys_global_symbol_pipe="$AWK '"\
4823" {last_section=section; section=\$ 3};"\
4824" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4825" \$ 0!~/External *\|/{next};"\
4826" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4827" {if(hide[section]) next};"\
4828" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4829" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4830" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4831" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4832" ' prfx=^$ac_symprfx"
4833 else
4834 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4835 fi
4836
4837 # Check to see that the pipe works correctly.
4838 pipe_works=no
4839
4840 rm -f conftest*
4841 cat > conftest.$ac_ext <<_LT_EOF
4842#ifdef __cplusplus
4843extern "C" {
4844#endif
4845char nm_test_var;
4846void nm_test_func(void);
4847void nm_test_func(void){}
4848#ifdef __cplusplus
4849}
4850#endif
4851int main(){nm_test_var='a';nm_test_func();return(0);}
4852_LT_EOF
4853
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; then
4859 # Now try to grab the symbols.
4860 nlist=conftest.nm
4861 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4862 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && test -s "$nlist"; then
4866 # Try sorting and uniquifying the output.
4867 if sort "$nlist" | uniq > "$nlist"T; then
4868 mv -f "$nlist"T "$nlist"
4869 else
4870 rm -f "$nlist"T
4871 fi
4872
4873 # Make sure that we snagged all the symbols we need.
4874 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4875 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4876 cat <<_LT_EOF > conftest.$ac_ext
4877#ifdef __cplusplus
4878extern "C" {
4879#endif
4880
4881_LT_EOF
4882 # Now generate the symbol file.
4883 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4884
4885 cat <<_LT_EOF >> conftest.$ac_ext
4886
4887/* The mapping between symbol names and symbols. */
4888const struct {
4889 const char *name;
4890 void *address;
4891}
4892lt__PROGRAM__LTX_preloaded_symbols[] =
4893{
4894 { "@PROGRAM@", (void *) 0 },
4895_LT_EOF
4896 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4897 cat <<\_LT_EOF >> conftest.$ac_ext
4898 {0, (void *) 0}
4899};
4900
4901/* This works around a problem in FreeBSD linker */
4902#ifdef FREEBSD_WORKAROUND
4903static const void *lt_preloaded_setup() {
4904 return lt__PROGRAM__LTX_preloaded_symbols;
4905}
4906#endif
4907
4908#ifdef __cplusplus
4909}
4910#endif
4911_LT_EOF
4912 # Now try linking the two files.
4913 mv conftest.$ac_objext conftstm.$ac_objext
4914 lt_save_LIBS="$LIBS"
4915 lt_save_CFLAGS="$CFLAGS"
4916 LIBS="conftstm.$ac_objext"
4917 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4919 (eval $ac_link) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4923 pipe_works=yes
4924 fi
4925 LIBS="$lt_save_LIBS"
4926 CFLAGS="$lt_save_CFLAGS"
4927 else
4928 echo "cannot find nm_test_func in $nlist" >&5
4929 fi
4930 else
4931 echo "cannot find nm_test_var in $nlist" >&5
4932 fi
4933 else
4934 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4935 fi
4936 else
4937 echo "$progname: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 fi
467b2e9e 4940 rm -rf conftest* conftst*
1cf3d07d
SE
4941
4942 # Do not use the global_symbol_pipe unless it works.
4943 if test "$pipe_works" = yes; then
4944 break
4945 else
4946 lt_cv_sys_global_symbol_pipe=
4947 fi
4948done
4949
4950fi
4951
4952if test -z "$lt_cv_sys_global_symbol_pipe"; then
4953 lt_cv_sys_global_symbol_to_cdecl=
4954fi
4955if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4956 echo "$as_me:$LINENO: result: failed" >&5
4957echo "${ECHO_T}failed" >&6
4958else
4959 echo "$as_me:$LINENO: result: ok" >&5
4960echo "${ECHO_T}ok" >&6
4961fi
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
467b2e9e
PG
4977
4978
4979
4980
4981
1cf3d07d
SE
4982
4983
4984
4985# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4986if test "${enable_libtool_lock+set}" = set; then
4987 enableval="$enable_libtool_lock"
4988
4989fi;
4990test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4991
4992# Some flags need to be propagated to the compiler or linker for good
4993# libtool support.
4994case $host in
4995ia64-*-hpux*)
4996 # Find out which ABI we are using.
4997 echo 'int i;' > conftest.$ac_ext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; then
5003 case `/usr/bin/file conftest.$ac_objext` in
5004 *ELF-32*)
5005 HPUX_IA64_MODE="32"
5006 ;;
5007 *ELF-64*)
5008 HPUX_IA64_MODE="64"
5009 ;;
5010 esac
5011 fi
5012 rm -rf conftest*
5013 ;;
5014*-*-irix6*)
5015 # Find out which ABI we are using.
467b2e9e 5016 echo '#line 5016 "configure"' > conftest.$ac_ext
1cf3d07d
SE
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; then
5022 if test "$lt_cv_prog_gnu_ld" = yes; then
5023 case `/usr/bin/file conftest.$ac_objext` in
5024 *32-bit*)
5025 LD="${LD-ld} -melf32bsmip"
5026 ;;
5027 *N32*)
5028 LD="${LD-ld} -melf32bmipn32"
5029 ;;
5030 *64-bit*)
5031 LD="${LD-ld} -melf64bmip"
5032 ;;
5033 esac
5034 else
5035 case `/usr/bin/file conftest.$ac_objext` in
5036 *32-bit*)
5037 LD="${LD-ld} -32"
5038 ;;
5039 *N32*)
5040 LD="${LD-ld} -n32"
5041 ;;
5042 *64-bit*)
5043 LD="${LD-ld} -64"
5044 ;;
5045 esac
5046 fi
5047 fi
5048 rm -rf conftest*
5049 ;;
5050
5051x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5052s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5053 # Find out which ABI we are using.
5054 echo 'int i;' > conftest.$ac_ext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; then
5060 case `/usr/bin/file conftest.o` in
5061 *32-bit*)
5062 case $host in
5063 x86_64-*kfreebsd*-gnu)
5064 LD="${LD-ld} -m elf_i386_fbsd"
5065 ;;
5066 x86_64-*linux*)
5067 LD="${LD-ld} -m elf_i386"
5068 ;;
5069 ppc64-*linux*|powerpc64-*linux*)
5070 LD="${LD-ld} -m elf32ppclinux"
5071 ;;
5072 s390x-*linux*)
5073 LD="${LD-ld} -m elf_s390"
5074 ;;
5075 sparc64-*linux*)
5076 LD="${LD-ld} -m elf32_sparc"
5077 ;;
5078 esac
5079 ;;
5080 *64-bit*)
5081 case $host in
5082 x86_64-*kfreebsd*-gnu)
5083 LD="${LD-ld} -m elf_x86_64_fbsd"
5084 ;;
5085 x86_64-*linux*)
5086 LD="${LD-ld} -m elf_x86_64"
5087 ;;
5088 ppc*-*linux*|powerpc*-*linux*)
5089 LD="${LD-ld} -m elf64ppc"
5090 ;;
5091 s390*-*linux*|s390*-*tpf*)
5092 LD="${LD-ld} -m elf64_s390"
5093 ;;
5094 sparc*-*linux*)
5095 LD="${LD-ld} -m elf64_sparc"
5096 ;;
5097 esac
5098 ;;
5099 esac
5100 fi
5101 rm -rf conftest*
5102 ;;
5103
5104*-*-sco3.2v5*)
5105 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5106 SAVE_CFLAGS="$CFLAGS"
5107 CFLAGS="$CFLAGS -belf"
5108 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5109echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5110if test "${lt_cv_cc_needs_belf+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 ac_ext=c
5114ac_cpp='$CPP $CPPFLAGS'
5115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119 if test x$gcc_no_link = xyes; then
5120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5121echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5122 { (exit 1); exit 1; }; }
5123fi
5124cat >conftest.$ac_ext <<_ACEOF
5125/* confdefs.h. */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5129/* end confdefs.h. */
5130
5131int
5132main ()
5133{
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
5139rm -f conftest.$ac_objext conftest$ac_exeext
5140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141 (eval $ac_link) 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
2c888488
L
5148 { ac_try='test -z "$ac_c_werror_flag"
5149 || test ! -s conftest.err'
1cf3d07d
SE
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 lt_cv_cc_needs_belf=yes
5162else
5163 echo "$as_me: failed program was:" >&5
5164sed 's/^/| /' conftest.$ac_ext >&5
5165
5166lt_cv_cc_needs_belf=no
5167fi
5168rm -f conftest.err conftest.$ac_objext \
5169 conftest$ac_exeext conftest.$ac_ext
5170 ac_ext=c
5171ac_cpp='$CPP $CPPFLAGS'
5172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176fi
5177echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5178echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5179 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5180 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5181 CFLAGS="$SAVE_CFLAGS"
5182 fi
5183 ;;
5184sparc*-*solaris*)
5185 # Find out which ABI we are using.
5186 echo 'int i;' > conftest.$ac_ext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; then
5192 case `/usr/bin/file conftest.o` in
5193 *64-bit*)
5194 case $lt_cv_prog_gnu_ld in
5195 yes*) LD="${LD-ld} -m elf64_sparc" ;;
467b2e9e
PG
5196 *)
5197 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5198 LD="${LD-ld} -64"
5199 fi
5200 ;;
1cf3d07d
SE
5201 esac
5202 ;;
5203 esac
5204 fi
5205 rm -rf conftest*
5206 ;;
5207esac
5208
5209need_locks="$enable_libtool_lock"
5210
467b2e9e
PG
5211
5212 case $host_os in
5213 rhapsody* | darwin*)
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5216set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
1cf3d07d
SE
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
467b2e9e
PG
5222 if test -n "$DSYMUTIL"; then
5223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
1cf3d07d 5227do
467b2e9e
PG
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236done
5237done
5238
5239fi
5240fi
5241DSYMUTIL=$ac_cv_prog_DSYMUTIL
5242if test -n "$DSYMUTIL"; then
5243 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5244echo "${ECHO_T}$DSYMUTIL" >&6
5245else
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248fi
5249
5250fi
5251if test -z "$ac_cv_prog_DSYMUTIL"; then
5252 ac_ct_DSYMUTIL=$DSYMUTIL
5253 # Extract the first word of "dsymutil", so it can be a program name with args.
5254set dummy dsymutil; ac_word=$2
5255echo "$as_me:$LINENO: checking for $ac_word" >&5
5256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260 if test -n "$ac_ct_DSYMUTIL"; then
5261 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274done
5275done
5276
5277 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5278fi
5279fi
5280ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5281if test -n "$ac_ct_DSYMUTIL"; then
5282 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5283echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5284else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287fi
5288
5289 DSYMUTIL=$ac_ct_DSYMUTIL
5290else
5291 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5292fi
5293
5294 if test -n "$ac_tool_prefix"; then
5295 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5296set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5297echo "$as_me:$LINENO: checking for $ac_word" >&5
5298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299if test "${ac_cv_prog_NMEDIT+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302 if test -n "$NMEDIT"; then
5303 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316done
5317done
5318
5319fi
5320fi
5321NMEDIT=$ac_cv_prog_NMEDIT
5322if test -n "$NMEDIT"; then
5323 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5324echo "${ECHO_T}$NMEDIT" >&6
5325else
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328fi
5329
5330fi
5331if test -z "$ac_cv_prog_NMEDIT"; then
5332 ac_ct_NMEDIT=$NMEDIT
5333 # Extract the first word of "nmedit", so it can be a program name with args.
5334set dummy nmedit; ac_word=$2
5335echo "$as_me:$LINENO: checking for $ac_word" >&5
5336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340 if test -n "$ac_ct_NMEDIT"; then
5341 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355done
5356
5357 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5358fi
5359fi
5360ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5361if test -n "$ac_ct_NMEDIT"; then
5362 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5363echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5364else
5365 echo "$as_me:$LINENO: result: no" >&5
5366echo "${ECHO_T}no" >&6
5367fi
5368
5369 NMEDIT=$ac_ct_NMEDIT
5370else
5371 NMEDIT="$ac_cv_prog_NMEDIT"
5372fi
5373
5374 if test -n "$ac_tool_prefix"; then
5375 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5376set dummy ${ac_tool_prefix}lipo; ac_word=$2
5377echo "$as_me:$LINENO: checking for $ac_word" >&5
5378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379if test "${ac_cv_prog_LIPO+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382 if test -n "$LIPO"; then
5383 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5384else
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396done
5397done
5398
5399fi
5400fi
5401LIPO=$ac_cv_prog_LIPO
5402if test -n "$LIPO"; then
5403 echo "$as_me:$LINENO: result: $LIPO" >&5
5404echo "${ECHO_T}$LIPO" >&6
5405else
5406 echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6
5408fi
5409
5410fi
5411if test -z "$ac_cv_prog_LIPO"; then
5412 ac_ct_LIPO=$LIPO
5413 # Extract the first word of "lipo", so it can be a program name with args.
5414set dummy lipo; ac_word=$2
5415echo "$as_me:$LINENO: checking for $ac_word" >&5
5416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420 if test -n "$ac_ct_LIPO"; then
5421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5422else
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_ac_ct_LIPO="lipo"
5431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5433 fi
5434done
5435done
5436
5437 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5438fi
5439fi
5440ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5441if test -n "$ac_ct_LIPO"; then
5442 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5443echo "${ECHO_T}$ac_ct_LIPO" >&6
5444else
5445 echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447fi
5448
5449 LIPO=$ac_ct_LIPO
5450else
5451 LIPO="$ac_cv_prog_LIPO"
5452fi
5453
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5456set dummy ${ac_tool_prefix}otool; ac_word=$2
5457echo "$as_me:$LINENO: checking for $ac_word" >&5
5458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459if test "${ac_cv_prog_OTOOL+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462 if test -n "$OTOOL"; then
5463 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476done
5477done
5478
5479fi
5480fi
5481OTOOL=$ac_cv_prog_OTOOL
5482if test -n "$OTOOL"; then
5483 echo "$as_me:$LINENO: result: $OTOOL" >&5
5484echo "${ECHO_T}$OTOOL" >&6
5485else
5486 echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6
5488fi
5489
5490fi
5491if test -z "$ac_cv_prog_OTOOL"; then
5492 ac_ct_OTOOL=$OTOOL
5493 # Extract the first word of "otool", so it can be a program name with args.
5494set dummy otool; ac_word=$2
5495echo "$as_me:$LINENO: checking for $ac_word" >&5
5496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5497if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500 if test -n "$ac_ct_OTOOL"; then
5501 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_OTOOL="otool"
5511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514done
5515done
5516
5517 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5518fi
5519fi
5520ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5521if test -n "$ac_ct_OTOOL"; then
5522 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5523echo "${ECHO_T}$ac_ct_OTOOL" >&6
5524else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527fi
5528
5529 OTOOL=$ac_ct_OTOOL
5530else
5531 OTOOL="$ac_cv_prog_OTOOL"
5532fi
5533
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5536set dummy ${ac_tool_prefix}otool64; ac_word=$2
5537echo "$as_me:$LINENO: checking for $ac_word" >&5
5538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5539if test "${ac_cv_prog_OTOOL64+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542 if test -n "$OTOOL64"; then
5543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556done
5557done
5558
5559fi
5560fi
5561OTOOL64=$ac_cv_prog_OTOOL64
5562if test -n "$OTOOL64"; then
5563 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5564echo "${ECHO_T}$OTOOL64" >&6
5565else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568fi
5569
5570fi
5571if test -z "$ac_cv_prog_OTOOL64"; then
5572 ac_ct_OTOOL64=$OTOOL64
5573 # Extract the first word of "otool64", so it can be a program name with args.
5574set dummy otool64; ac_word=$2
5575echo "$as_me:$LINENO: checking for $ac_word" >&5
5576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5577if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580 if test -n "$ac_ct_OTOOL64"; then
5581 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5582else
5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_OTOOL64="otool64"
5591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594done
5595done
5596
5597 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5598fi
5599fi
5600ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5601if test -n "$ac_ct_OTOOL64"; then
5602 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5603echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5604else
5605 echo "$as_me:$LINENO: result: no" >&5
5606echo "${ECHO_T}no" >&6
5607fi
5608
5609 OTOOL64=$ac_ct_OTOOL64
5610else
5611 OTOOL64="$ac_cv_prog_OTOOL64"
5612fi
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5641echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5642if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645 lt_cv_apple_cc_single_mod=no
5646 if test -z "${LT_MULTI_MODULE}"; then
5647 # By default we will add the -single_module flag. You can override
5648 # by either setting the environment variable LT_MULTI_MODULE
5649 # non-empty at configure time, or by adding -multi_module to the
5650 # link flags.
5651 rm -rf libconftest.dylib*
5652 echo "int foo(void){return 1;}" > conftest.c
5653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5654-dynamiclib -Wl,-single_module conftest.c" >&5
5655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5657 _lt_result=$?
5658 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5659 lt_cv_apple_cc_single_mod=yes
5660 else
5661 cat conftest.err >&5
5662 fi
5663 rm -rf libconftest.dylib*
5664 rm -f conftest.*
5665 fi
5666fi
5667echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5668echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5669 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5670echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5671if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 lt_cv_ld_exported_symbols_list=no
5675 save_LDFLAGS=$LDFLAGS
5676 echo "_main" > conftest.sym
5677 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5678 if test x$gcc_no_link = xyes; then
5679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5680echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5681 { (exit 1); exit 1; }; }
5682fi
5683cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689
5690int
5691main ()
5692{
5693
5694 ;
5695 return 0;
5696}
5697_ACEOF
5698rm -f conftest.$ac_objext conftest$ac_exeext
5699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 lt_cv_ld_exported_symbols_list=yes
5721else
5722 echo "$as_me: failed program was:" >&5
5723sed 's/^/| /' conftest.$ac_ext >&5
5724
5725lt_cv_ld_exported_symbols_list=no
5726fi
5727rm -f conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 LDFLAGS="$save_LDFLAGS"
5730
5731fi
5732echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5733echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5734 case $host_os in
5735 rhapsody* | darwin1.[012])
5736 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5737 darwin1.*)
5738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5739 darwin*) # darwin 5.x on
5740 # if running on 10.5 or later, the deployment target defaults
5741 # to the OS version, if on x86, and 10.4, the deployment
5742 # target defaults to 10.4. Don't you love it?
5743 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5744 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5745 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5746 10.[012]*)
5747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5748 10.*)
5749 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5750 esac
5751 ;;
5752 esac
5753 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5754 _lt_dar_single_mod='$single_module'
5755 fi
5756 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5757 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5758 else
5759 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5760 fi
5761 if test "$DSYMUTIL" != ":"; then
5762 _lt_dsymutil='~$DSYMUTIL $lib || :'
5763 else
5764 _lt_dsymutil=
5765 fi
5766 ;;
5767 esac
5768
5769ac_ext=c
5770ac_cpp='$CPP $CPPFLAGS'
5771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5775echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5776# On Suns, sometimes $CPP names a directory.
5777if test -n "$CPP" && test -d "$CPP"; then
5778 CPP=
5779fi
5780if test -z "$CPP"; then
5781 if test "${ac_cv_prog_CPP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 # Double quotes because CPP needs to be expanded
5785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5786 do
5787 ac_preproc_ok=false
5788for ac_c_preproc_warn_flag in '' yes
5789do
5790 # Use a header file that comes with gcc, so configuring glibc
5791 # with a fresh cross-compiler works.
5792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 # <limits.h> exists even on freestanding compilers.
5794 # On the NeXT, cc -E runs the code through the compiler's parser,
5795 # not just through cpp. "Syntax error" is here to catch this case.
5796 cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h. */
5802#ifdef __STDC__
5803# include <limits.h>
5804#else
5805# include <assert.h>
5806#endif
5807 Syntax error
1cf3d07d
SE
5808_ACEOF
5809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null; then
5817 if test -s conftest.err; then
5818 ac_cpp_err=$ac_c_preproc_warn_flag
5819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5820 else
5821 ac_cpp_err=
5822 fi
5823else
5824 ac_cpp_err=yes
5825fi
5826if test -z "$ac_cpp_err"; then
5827 :
5828else
5829 echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 # Broken: fails on valid input.
5833continue
5834fi
5835rm -f conftest.err conftest.$ac_ext
5836
5837 # OK, works on sane cases. Now check whether non-existent headers
5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845#include <ac_nonexistent.h>
5846_ACEOF
5847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null; then
5855 if test -s conftest.err; then
5856 ac_cpp_err=$ac_c_preproc_warn_flag
5857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5858 else
5859 ac_cpp_err=
5860 fi
5861else
5862 ac_cpp_err=yes
5863fi
5864if test -z "$ac_cpp_err"; then
5865 # Broken: success on invalid input.
5866continue
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 # Passes both tests.
5872ac_preproc_ok=:
5873break
5874fi
5875rm -f conftest.err conftest.$ac_ext
5876
5877done
5878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879rm -f conftest.err conftest.$ac_ext
5880if $ac_preproc_ok; then
5881 break
5882fi
5883
5884 done
5885 ac_cv_prog_CPP=$CPP
5886
5887fi
5888 CPP=$ac_cv_prog_CPP
5889else
5890 ac_cv_prog_CPP=$CPP
5891fi
5892echo "$as_me:$LINENO: result: $CPP" >&5
5893echo "${ECHO_T}$CPP" >&6
5894ac_preproc_ok=false
5895for ac_c_preproc_warn_flag in '' yes
5896do
5897 # Use a header file that comes with gcc, so configuring glibc
5898 # with a fresh cross-compiler works.
5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900 # <limits.h> exists even on freestanding compilers.
5901 # On the NeXT, cc -E runs the code through the compiler's parser,
5902 # not just through cpp. "Syntax error" is here to catch this case.
5903 cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
5909#ifdef __STDC__
5910# include <limits.h>
5911#else
5912# include <assert.h>
5913#endif
5914 Syntax error
5915_ACEOF
5916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } >/dev/null; then
5924 if test -s conftest.err; then
5925 ac_cpp_err=$ac_c_preproc_warn_flag
5926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5927 else
5928 ac_cpp_err=
5929 fi
5930else
5931 ac_cpp_err=yes
5932fi
5933if test -z "$ac_cpp_err"; then
5934 :
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 # Broken: fails on valid input.
5940continue
5941fi
5942rm -f conftest.err conftest.$ac_ext
5943
5944 # OK, works on sane cases. Now check whether non-existent headers
5945 # can be detected and how.
5946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5952#include <ac_nonexistent.h>
5953_ACEOF
5954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_c_preproc_warn_flag
5964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5965 else
5966 ac_cpp_err=
5967 fi
5968else
5969 ac_cpp_err=yes
5970fi
5971if test -z "$ac_cpp_err"; then
5972 # Broken: success on invalid input.
5973continue
5974else
5975 echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 # Passes both tests.
5979ac_preproc_ok=:
5980break
5981fi
5982rm -f conftest.err conftest.$ac_ext
5983
5984done
5985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986rm -f conftest.err conftest.$ac_ext
5987if $ac_preproc_ok; then
5988 :
5989else
18c04407
RW
5990 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5991echo "$as_me: error: in \`$ac_pwd':" >&2;}
5992{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
5993See \`config.log' for more details." >&5
5994echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5995See \`config.log' for more details." >&2;}
18c04407 5996 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
5997fi
5998
5999ac_ext=c
6000ac_cpp='$CPP $CPPFLAGS'
6001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004
6005
6006echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6007echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6008if test "${ac_cv_header_stdc+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010else
6011 cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h. */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h. */
6017#include <stdlib.h>
6018#include <stdarg.h>
6019#include <string.h>
6020#include <float.h>
6021
6022int
6023main ()
6024{
6025
6026 ;
6027 return 0;
6028}
6029_ACEOF
6030rm -f conftest.$ac_objext
6031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
2c888488
L
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
1cf3d07d
SE
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest.$ac_objext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_header_stdc=yes
6053else
6054 echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
6056
6057ac_cv_header_stdc=no
6058fi
6059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6060
6061if test $ac_cv_header_stdc = yes; then
6062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6063 cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
6069#include <string.h>
6070
6071_ACEOF
6072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6073 $EGREP "memchr" >/dev/null 2>&1; then
6074 :
6075else
6076 ac_cv_header_stdc=no
6077fi
6078rm -f conftest*
6079
6080fi
6081
6082if test $ac_cv_header_stdc = yes; then
6083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6084 cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
6089/* end confdefs.h. */
6090#include <stdlib.h>
6091
6092_ACEOF
6093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 $EGREP "free" >/dev/null 2>&1; then
6095 :
6096else
6097 ac_cv_header_stdc=no
6098fi
6099rm -f conftest*
6100
6101fi
6102
6103if test $ac_cv_header_stdc = yes; then
6104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6105 if test "$cross_compiling" = yes; then
6106 :
6107else
6108 cat >conftest.$ac_ext <<_ACEOF
6109/* confdefs.h. */
6110_ACEOF
6111cat confdefs.h >>conftest.$ac_ext
6112cat >>conftest.$ac_ext <<_ACEOF
6113/* end confdefs.h. */
6114#include <ctype.h>
6115#if ((' ' & 0x0FF) == 0x020)
6116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118#else
6119# define ISLOWER(c) \
6120 (('a' <= (c) && (c) <= 'i') \
6121 || ('j' <= (c) && (c) <= 'r') \
6122 || ('s' <= (c) && (c) <= 'z'))
6123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6124#endif
6125
6126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6127int
6128main ()
6129{
6130 int i;
6131 for (i = 0; i < 256; i++)
6132 if (XOR (islower (i), ISLOWER (i))
6133 || toupper (i) != TOUPPER (i))
6134 exit(2);
6135 exit (0);
6136}
6137_ACEOF
6138rm -f conftest$ac_exeext
6139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6140 (eval $ac_link) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 :
6150else
6151 echo "$as_me: program exited with status $ac_status" >&5
6152echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155( exit $ac_status )
6156ac_cv_header_stdc=no
6157fi
6158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6159fi
6160fi
6161fi
6162echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6163echo "${ECHO_T}$ac_cv_header_stdc" >&6
6164if test $ac_cv_header_stdc = yes; then
6165
6166cat >>confdefs.h <<\_ACEOF
6167#define STDC_HEADERS 1
6168_ACEOF
6169
6170fi
6171
6172# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6183 inttypes.h stdint.h unistd.h
6184do
6185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6186echo "$as_me:$LINENO: checking for $ac_header" >&5
6187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6188if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 cat >conftest.$ac_ext <<_ACEOF
6192/* confdefs.h. */
6193_ACEOF
6194cat confdefs.h >>conftest.$ac_ext
6195cat >>conftest.$ac_ext <<_ACEOF
6196/* end confdefs.h. */
6197$ac_includes_default
6198
6199#include <$ac_header>
6200_ACEOF
6201rm -f conftest.$ac_objext
6202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
2c888488
L
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
1cf3d07d
SE
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 eval "$as_ac_Header=yes"
6224else
467b2e9e
PG
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228eval "$as_ac_Header=no"
6229fi
6230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231fi
6232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235 cat >>confdefs.h <<_ACEOF
6236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6237_ACEOF
6238
6239fi
6240
6241done
6242
6243
6244
6245for ac_header in dlfcn.h
6246do
6247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248echo "$as_me:$LINENO: checking for $ac_header" >&5
6249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6250if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252else
6253 cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h. */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h. */
6259$ac_includes_default
6260
6261#include <$ac_header>
6262_ACEOF
6263rm -f conftest.$ac_objext
6264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 eval "$as_ac_Header=yes"
6286else
6287 echo "$as_me: failed program was:" >&5
6288sed 's/^/| /' conftest.$ac_ext >&5
6289
6290eval "$as_ac_Header=no"
6291fi
6292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6293fi
6294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6296if test `eval echo '${'$as_ac_Header'}'` = yes; then
6297 cat >>confdefs.h <<_ACEOF
6298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6299_ACEOF
6300
6301fi
6302
6303done
6304
6305
6306
6307# Set options
6308
6309
6310
6311 enable_dlopen=no
6312
6313
6314
6315 # Check whether --enable-shared or --disable-shared was given.
6316if test "${enable_shared+set}" = set; then
6317 enableval="$enable_shared"
6318 p=${PACKAGE-default}
6319 case $enableval in
6320 yes) enable_shared=yes ;;
6321 no) enable_shared=no ;;
6322 *)
6323 enable_shared=no
6324 # Look at the argument we got. We use all the common list separators.
6325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6326 for pkg in $enableval; do
6327 IFS="$lt_save_ifs"
6328 if test "X$pkg" = "X$p"; then
6329 enable_shared=yes
6330 fi
6331 done
6332 IFS="$lt_save_ifs"
6333 ;;
6334 esac
6335else
6336 enable_shared=yes
6337fi;
6338
6339
6340
6341
6342
6343
6344
6345
6346 # Check whether --enable-static or --disable-static was given.
6347if test "${enable_static+set}" = set; then
6348 enableval="$enable_static"
6349 p=${PACKAGE-default}
6350 case $enableval in
6351 yes) enable_static=yes ;;
6352 no) enable_static=no ;;
6353 *)
6354 enable_static=no
6355 # Look at the argument we got. We use all the common list separators.
6356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6357 for pkg in $enableval; do
6358 IFS="$lt_save_ifs"
6359 if test "X$pkg" = "X$p"; then
6360 enable_static=yes
6361 fi
6362 done
6363 IFS="$lt_save_ifs"
6364 ;;
6365 esac
6366else
6367 enable_static=yes
6368fi;
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378# Check whether --with-pic or --without-pic was given.
6379if test "${with_pic+set}" = set; then
6380 withval="$with_pic"
6381 pic_mode="$withval"
6382else
6383 pic_mode=default
6384fi;
1cf3d07d 6385
467b2e9e 6386test -z "$pic_mode" && pic_mode=default
1cf3d07d 6387
1cf3d07d 6388
1cf3d07d
SE
6389
6390
6391
1cf3d07d 6392
467b2e9e
PG
6393
6394 # Check whether --enable-fast-install or --disable-fast-install was given.
6395if test "${enable_fast_install+set}" = set; then
6396 enableval="$enable_fast_install"
6397 p=${PACKAGE-default}
6398 case $enableval in
6399 yes) enable_fast_install=yes ;;
6400 no) enable_fast_install=no ;;
6401 *)
6402 enable_fast_install=no
6403 # Look at the argument we got. We use all the common list separators.
6404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6405 for pkg in $enableval; do
6406 IFS="$lt_save_ifs"
6407 if test "X$pkg" = "X$p"; then
6408 enable_fast_install=yes
6409 fi
6410 done
6411 IFS="$lt_save_ifs"
6412 ;;
6413 esac
1cf3d07d 6414else
467b2e9e
PG
6415 enable_fast_install=yes
6416fi;
6417
6418
6419
6420
1cf3d07d 6421
1cf3d07d 6422
1cf3d07d 6423
1cf3d07d
SE
6424
6425
6426
6427# This can be used to rebuild libtool when needed
6428LIBTOOL_DEPS="$ltmain"
6429
6430# Always use our own libtool.
6431LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457test -z "$LN_S" && LN_S="ln -s"
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472if test -n "${ZSH_VERSION+set}" ; then
6473 setopt NO_GLOB_SUBST
6474fi
6475
6476echo "$as_me:$LINENO: checking for objdir" >&5
6477echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6478if test "${lt_cv_objdir+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481 rm -f .libs 2>/dev/null
6482mkdir .libs 2>/dev/null
6483if test -d .libs; then
6484 lt_cv_objdir=.libs
6485else
6486 # MS-DOS does not allow filenames that begin with a dot.
6487 lt_cv_objdir=_libs
6488fi
6489rmdir .libs 2>/dev/null
6490fi
6491echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6492echo "${ECHO_T}$lt_cv_objdir" >&6
6493objdir=$lt_cv_objdir
6494
6495
6496
6497
6498
6499cat >>confdefs.h <<_ACEOF
6500#define LT_OBJDIR "$lt_cv_objdir/"
6501_ACEOF
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519case $host_os in
6520aix3*)
6521 # AIX sometimes has problems with the GCC collect2 program. For some
6522 # reason, if we set the COLLECT_NAMES environment variable, the problems
6523 # vanish in a puff of smoke.
6524 if test "X${COLLECT_NAMES+set}" != Xset; then
6525 COLLECT_NAMES=
6526 export COLLECT_NAMES
6527 fi
6528 ;;
6529esac
6530
6531# Sed substitution that helps us do robust quoting. It backslashifies
6532# metacharacters that are still active within double-quoted strings.
6533sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6534
6535# Same as above, but do not quote variable references.
6536double_quote_subst='s/\(["`\\]\)/\\\1/g'
6537
6538# Sed substitution to delay expansion of an escaped shell variable in a
6539# double_quote_subst'ed string.
6540delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6541
6542# Sed substitution to delay expansion of an escaped single quote.
6543delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6544
6545# Sed substitution to avoid accidental globbing in evaled expressions
6546no_glob_subst='s/\*/\\\*/g'
6547
6548# Global variables:
6549ofile=libtool
6550can_build_shared=yes
6551
6552# All known linkers require a `.a' archive for static linking (except MSVC,
6553# which needs '.lib').
6554libext=a
6555
6556with_gnu_ld="$lt_cv_prog_gnu_ld"
6557
6558old_CC="$CC"
6559old_CFLAGS="$CFLAGS"
6560
6561# Set sane defaults for various variables
6562test -z "$CC" && CC=cc
6563test -z "$LTCC" && LTCC=$CC
6564test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6565test -z "$LD" && LD=ld
6566test -z "$ac_objext" && ac_objext=o
6567
6568for cc_temp in $compiler""; do
6569 case $cc_temp in
6570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6572 \-*) ;;
6573 *) break;;
6574 esac
6575done
6576cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6577
6578
6579# Only perform the check for file, if the check method requires it
6580test -z "$MAGIC_CMD" && MAGIC_CMD=file
6581case $deplibs_check_method in
6582file_magic*)
6583 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6584 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6585echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6586if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589 case $MAGIC_CMD in
6590[\\/*] | ?:[\\/]*)
6591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6592 ;;
6593*)
6594 lt_save_MAGIC_CMD="$MAGIC_CMD"
6595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6596 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6597 for ac_dir in $ac_dummy; do
6598 IFS="$lt_save_ifs"
6599 test -z "$ac_dir" && ac_dir=.
6600 if test -f $ac_dir/${ac_tool_prefix}file; then
6601 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6602 if test -n "$file_magic_test_file"; then
6603 case $deplibs_check_method in
6604 "file_magic "*)
6605 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6607 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6608 $EGREP "$file_magic_regex" > /dev/null; then
6609 :
6610 else
6611 cat <<_LT_EOF 1>&2
6612
6613*** Warning: the command libtool uses to detect shared libraries,
6614*** $file_magic_cmd, produces output that libtool cannot recognize.
6615*** The result is that libtool may fail to recognize shared libraries
6616*** as such. This will affect the creation of libtool libraries that
6617*** depend on shared libraries, but programs linked with such libtool
6618*** libraries will work regardless of this problem. Nevertheless, you
6619*** may want to report the problem to your system manager and/or to
6620*** bug-libtool@gnu.org
6621
6622_LT_EOF
6623 fi ;;
6624 esac
6625 fi
6626 break
6627 fi
6628 done
6629 IFS="$lt_save_ifs"
6630 MAGIC_CMD="$lt_save_MAGIC_CMD"
6631 ;;
6632esac
6633fi
6634
6635MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6636if test -n "$MAGIC_CMD"; then
6637 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6638echo "${ECHO_T}$MAGIC_CMD" >&6
6639else
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
6642fi
6643
6644
6645
6646
6647
6648if test -z "$lt_cv_path_MAGIC_CMD"; then
6649 if test -n "$ac_tool_prefix"; then
6650 echo "$as_me:$LINENO: checking for file" >&5
6651echo $ECHO_N "checking for file... $ECHO_C" >&6
6652if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655 case $MAGIC_CMD in
6656[\\/*] | ?:[\\/]*)
6657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6658 ;;
6659*)
6660 lt_save_MAGIC_CMD="$MAGIC_CMD"
6661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6663 for ac_dir in $ac_dummy; do
6664 IFS="$lt_save_ifs"
6665 test -z "$ac_dir" && ac_dir=.
6666 if test -f $ac_dir/file; then
6667 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6668 if test -n "$file_magic_test_file"; then
6669 case $deplibs_check_method in
6670 "file_magic "*)
6671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6674 $EGREP "$file_magic_regex" > /dev/null; then
6675 :
6676 else
6677 cat <<_LT_EOF 1>&2
6678
6679*** Warning: the command libtool uses to detect shared libraries,
6680*** $file_magic_cmd, produces output that libtool cannot recognize.
6681*** The result is that libtool may fail to recognize shared libraries
6682*** as such. This will affect the creation of libtool libraries that
6683*** depend on shared libraries, but programs linked with such libtool
6684*** libraries will work regardless of this problem. Nevertheless, you
6685*** may want to report the problem to your system manager and/or to
6686*** bug-libtool@gnu.org
6687
6688_LT_EOF
6689 fi ;;
6690 esac
6691 fi
6692 break
6693 fi
6694 done
6695 IFS="$lt_save_ifs"
6696 MAGIC_CMD="$lt_save_MAGIC_CMD"
6697 ;;
6698esac
6699fi
6700
6701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6702if test -n "$MAGIC_CMD"; then
6703 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6704echo "${ECHO_T}$MAGIC_CMD" >&6
6705else
6706 echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
6708fi
6709
6710
6711 else
6712 MAGIC_CMD=:
6713 fi
6714fi
6715
6716 fi
6717 ;;
6718esac
6719
6720# Use C for the default configuration in the libtool script
6721
6722lt_save_CC="$CC"
6723ac_ext=c
6724ac_cpp='$CPP $CPPFLAGS'
6725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728
6729
6730# Source file extension for C test sources.
6731ac_ext=c
6732
6733# Object file extension for compiled C test sources.
6734objext=o
6735objext=$objext
6736
6737# Code to be used in simple compile tests
6738lt_simple_compile_test_code="int some_variable = 0;"
6739
6740# Code to be used in simple link tests
6741lt_simple_link_test_code='int main(){return(0);}'
6742
6743
6744
6745
6746
6747
6748
6749# If no C compiler was specified, use CC.
6750LTCC=${LTCC-"$CC"}
6751
6752# If no C compiler flags were specified, use CFLAGS.
6753LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6754
6755# Allow CC to be a program name with arguments.
6756compiler=$CC
6757
6758# Save the default compiler, since it gets overwritten when the other
6759# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6760compiler_DEFAULT=$CC
6761
6762# save warnings/boilerplate of simple test code
6763ac_outfile=conftest.$ac_objext
6764echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6765eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6766_lt_compiler_boilerplate=`cat conftest.err`
6767$RM conftest*
6768
6769ac_outfile=conftest.$ac_objext
6770echo "$lt_simple_link_test_code" >conftest.$ac_ext
6771eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6772_lt_linker_boilerplate=`cat conftest.err`
467b2e9e 6773$RM -r conftest*
1cf3d07d
SE
6774
6775
6776## CAVEAT EMPTOR:
6777## There is no encapsulation within the following macros, do not change
6778## the running order or otherwise move them around unless you know exactly
6779## what you are doing...
6780if test -n "$compiler"; then
6781
6782lt_prog_compiler_no_builtin_flag=
6783
6784if test "$GCC" = yes; then
6785 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6786
6787 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6788echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6789if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791else
6792 lt_cv_prog_compiler_rtti_exceptions=no
6793 ac_outfile=conftest.$ac_objext
6794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6795 lt_compiler_flag="-fno-rtti -fno-exceptions"
6796 # Insert the option either (1) after the last *FLAGS variable, or
6797 # (2) before a word containing "conftest.", or (3) at the end.
6798 # Note that $ac_compile itself does not contain backslashes and begins
6799 # with a dollar sign (not a hyphen), so the echo should work correctly.
6800 # The option is referenced via a variable to avoid confusing sed.
6801 lt_compile=`echo "$ac_compile" | $SED \
6802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6804 -e 's:$: $lt_compiler_flag:'`
467b2e9e 6805 (eval echo "\"\$as_me:6805: $lt_compile\"" >&5)
1cf3d07d
SE
6806 (eval "$lt_compile" 2>conftest.err)
6807 ac_status=$?
6808 cat conftest.err >&5
467b2e9e 6809 echo "$as_me:6809: \$? = $ac_status" >&5
1cf3d07d
SE
6810 if (exit $ac_status) && test -s "$ac_outfile"; then
6811 # The compiler can only warn and ignore the option if not recognized
6812 # So say no if there are warnings other than the usual output.
6813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_cv_prog_compiler_rtti_exceptions=yes
6817 fi
6818 fi
6819 $RM conftest*
6820
6821fi
6822echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6823echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6824
6825if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6827else
6828 :
6829fi
6830
6831fi
6832
6833
6834
6835
6836
6837
6838 lt_prog_compiler_wl=
6839lt_prog_compiler_pic=
6840lt_prog_compiler_static=
6841
6842echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6843echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6844
6845 if test "$GCC" = yes; then
6846 lt_prog_compiler_wl='-Wl,'
6847 lt_prog_compiler_static='-static'
6848
6849 case $host_os in
6850 aix*)
6851 # All AIX code is PIC.
6852 if test "$host_cpu" = ia64; then
6853 # AIX 5 now supports IA64 processor
6854 lt_prog_compiler_static='-Bstatic'
6855 fi
6856 ;;
6857
6858 amigaos*)
467b2e9e
PG
6859 case $host_cpu in
6860 powerpc)
6861 # see comment about AmigaOS4 .so support
6862 lt_prog_compiler_pic='-fPIC'
6863 ;;
6864 m68k)
6865 # FIXME: we need at least 68020 code to build shared libraries, but
6866 # adding the `-m68020' flag to GCC prevents building anything better,
6867 # like `-m68040'.
6868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6869 ;;
6870 esac
1cf3d07d
SE
6871 ;;
6872
6873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6874 # PIC is the default for these OSes.
6875 ;;
6876
467b2e9e 6877 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6878 # This hack is so that the source file can tell whether it is being
6879 # built for inclusion in a dll (and should export symbols for example).
6880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6881 # (--disable-auto-import) libraries
6882 lt_prog_compiler_pic='-DDLL_EXPORT'
6883 ;;
6884
6885 darwin* | rhapsody*)
6886 # PIC is the default on this platform
6887 # Common symbols not allowed in MH_DYLIB files
6888 lt_prog_compiler_pic='-fno-common'
6889 ;;
6890
6891 hpux*)
467b2e9e
PG
6892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6894 # sets the default TLS model and affects inlining.
1cf3d07d 6895 case $host_cpu in
467b2e9e 6896 hppa*64*)
1cf3d07d
SE
6897 # +Z the default
6898 ;;
6899 *)
6900 lt_prog_compiler_pic='-fPIC'
6901 ;;
6902 esac
6903 ;;
6904
6905 interix[3-9]*)
6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6907 # Instead, we relocate shared libraries at runtime.
6908 ;;
6909
6910 msdosdjgpp*)
6911 # Just because we use GCC doesn't mean we suddenly get shared libraries
6912 # on systems that don't support them.
6913 lt_prog_compiler_can_build_shared=no
6914 enable_shared=no
6915 ;;
6916
6917 *nto* | *qnx*)
6918 # QNX uses GNU C++, but need to define -shared option too, otherwise
6919 # it will coredump.
6920 lt_prog_compiler_pic='-fPIC -shared'
6921 ;;
6922
6923 sysv4*MP*)
6924 if test -d /usr/nec; then
6925 lt_prog_compiler_pic=-Kconform_pic
6926 fi
6927 ;;
6928
6929 *)
6930 lt_prog_compiler_pic='-fPIC'
6931 ;;
6932 esac
6933 else
6934 # PORTME Check for flag to pass linker flags through the system compiler.
6935 case $host_os in
6936 aix*)
6937 lt_prog_compiler_wl='-Wl,'
6938 if test "$host_cpu" = ia64; then
6939 # AIX 5 now supports IA64 processor
6940 lt_prog_compiler_static='-Bstatic'
6941 else
6942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6943 fi
6944 ;;
1cf3d07d 6945
467b2e9e 6946 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6947 # This hack is so that the source file can tell whether it is being
6948 # built for inclusion in a dll (and should export symbols for example).
6949 lt_prog_compiler_pic='-DDLL_EXPORT'
6950 ;;
6951
6952 hpux9* | hpux10* | hpux11*)
6953 lt_prog_compiler_wl='-Wl,'
6954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6955 # not for PA HP-UX.
6956 case $host_cpu in
6957 hppa*64*|ia64*)
6958 # +Z the default
6959 ;;
6960 *)
6961 lt_prog_compiler_pic='+Z'
6962 ;;
6963 esac
6964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6965 lt_prog_compiler_static='${wl}-a ${wl}archive'
6966 ;;
6967
6968 irix5* | irix6* | nonstopux*)
6969 lt_prog_compiler_wl='-Wl,'
6970 # PIC (with -KPIC) is the default.
6971 lt_prog_compiler_static='-non_shared'
6972 ;;
6973
6974 linux* | k*bsd*-gnu)
6975 case $cc_basename in
467b2e9e
PG
6976 # old Intel for x86_64 which still supported -KPIC.
6977 ecc*)
1cf3d07d
SE
6978 lt_prog_compiler_wl='-Wl,'
6979 lt_prog_compiler_pic='-KPIC'
6980 lt_prog_compiler_static='-static'
6981 ;;
467b2e9e
PG
6982 # icc used to be incompatible with GCC.
6983 # ICC 10 doesn't accept -KPIC any more.
6984 icc* | ifort*)
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_pic='-fPIC'
6987 lt_prog_compiler_static='-static'
6988 ;;
6989 # Lahey Fortran 8.1.
6990 lf95*)
6991 lt_prog_compiler_wl='-Wl,'
6992 lt_prog_compiler_pic='--shared'
6993 lt_prog_compiler_static='--static'
6994 ;;
1cf3d07d
SE
6995 pgcc* | pgf77* | pgf90* | pgf95*)
6996 # Portland Group compilers (*not* the Pentium gcc compiler,
6997 # which looks to be a dead project)
6998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-fpic'
7000 lt_prog_compiler_static='-Bstatic'
7001 ;;
7002 ccc*)
7003 lt_prog_compiler_wl='-Wl,'
7004 # All Alpha code is PIC.
7005 lt_prog_compiler_static='-non_shared'
7006 ;;
467b2e9e
PG
7007 xl*)
7008 # IBM XL C 8.0/Fortran 10.1 on PPC
7009 lt_prog_compiler_wl='-Wl,'
7010 lt_prog_compiler_pic='-qpic'
7011 lt_prog_compiler_static='-qstaticlink'
7012 ;;
1cf3d07d
SE
7013 *)
7014 case `$CC -V 2>&1 | sed 5q` in
7015 *Sun\ C*)
7016 # Sun C 5.9
7017 lt_prog_compiler_pic='-KPIC'
7018 lt_prog_compiler_static='-Bstatic'
7019 lt_prog_compiler_wl='-Wl,'
7020 ;;
7021 *Sun\ F*)
7022 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-Bstatic'
7025 lt_prog_compiler_wl=''
7026 ;;
7027 esac
7028 ;;
7029 esac
7030 ;;
7031
7032 newsos6)
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7035 ;;
7036
7037 *nto* | *qnx*)
7038 # QNX uses GNU C++, but need to define -shared option too, otherwise
7039 # it will coredump.
7040 lt_prog_compiler_pic='-fPIC -shared'
7041 ;;
7042
7043 osf3* | osf4* | osf5*)
7044 lt_prog_compiler_wl='-Wl,'
7045 # All OSF/1 code is PIC.
7046 lt_prog_compiler_static='-non_shared'
7047 ;;
7048
7049 rdos*)
7050 lt_prog_compiler_static='-non_shared'
7051 ;;
7052
7053 solaris*)
7054 lt_prog_compiler_pic='-KPIC'
7055 lt_prog_compiler_static='-Bstatic'
7056 case $cc_basename in
7057 f77* | f90* | f95*)
7058 lt_prog_compiler_wl='-Qoption ld ';;
7059 *)
7060 lt_prog_compiler_wl='-Wl,';;
7061 esac
7062 ;;
7063
7064 sunos4*)
7065 lt_prog_compiler_wl='-Qoption ld '
7066 lt_prog_compiler_pic='-PIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 sysv4 | sysv4.2uw2* | sysv4.3*)
7071 lt_prog_compiler_wl='-Wl,'
7072 lt_prog_compiler_pic='-KPIC'
7073 lt_prog_compiler_static='-Bstatic'
7074 ;;
7075
7076 sysv4*MP*)
7077 if test -d /usr/nec ;then
7078 lt_prog_compiler_pic='-Kconform_pic'
7079 lt_prog_compiler_static='-Bstatic'
7080 fi
7081 ;;
7082
7083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7084 lt_prog_compiler_wl='-Wl,'
7085 lt_prog_compiler_pic='-KPIC'
7086 lt_prog_compiler_static='-Bstatic'
7087 ;;
7088
7089 unicos*)
7090 lt_prog_compiler_wl='-Wl,'
7091 lt_prog_compiler_can_build_shared=no
7092 ;;
7093
7094 uts4*)
7095 lt_prog_compiler_pic='-pic'
7096 lt_prog_compiler_static='-Bstatic'
7097 ;;
7098
7099 *)
7100 lt_prog_compiler_can_build_shared=no
7101 ;;
7102 esac
7103 fi
7104
7105case $host_os in
7106 # For platforms which do not support PIC, -DPIC is meaningless:
7107 *djgpp*)
7108 lt_prog_compiler_pic=
7109 ;;
7110 *)
7111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7112 ;;
7113esac
7114echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7115echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7116
7117
7118
7119
7120
7121
7122#
7123# Check to make sure the PIC flag actually works.
7124#
7125if test -n "$lt_prog_compiler_pic"; then
7126 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7127echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
467b2e9e 7128if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1cf3d07d
SE
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
467b2e9e 7131 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
7132 ac_outfile=conftest.$ac_objext
7133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7135 # Insert the option either (1) after the last *FLAGS variable, or
7136 # (2) before a word containing "conftest.", or (3) at the end.
7137 # Note that $ac_compile itself does not contain backslashes and begins
7138 # with a dollar sign (not a hyphen), so the echo should work correctly.
7139 # The option is referenced via a variable to avoid confusing sed.
7140 lt_compile=`echo "$ac_compile" | $SED \
7141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7143 -e 's:$: $lt_compiler_flag:'`
467b2e9e 7144 (eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
1cf3d07d
SE
7145 (eval "$lt_compile" 2>conftest.err)
7146 ac_status=$?
7147 cat conftest.err >&5
467b2e9e 7148 echo "$as_me:7148: \$? = $ac_status" >&5
1cf3d07d
SE
7149 if (exit $ac_status) && test -s "$ac_outfile"; then
7150 # The compiler can only warn and ignore the option if not recognized
7151 # So say no if there are warnings other than the usual output.
7152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
467b2e9e 7155 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
7156 fi
7157 fi
7158 $RM conftest*
7159
7160fi
467b2e9e
PG
7161echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7162echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1cf3d07d 7163
467b2e9e 7164if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
7165 case $lt_prog_compiler_pic in
7166 "" | " "*) ;;
7167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7168 esac
7169else
7170 lt_prog_compiler_pic=
7171 lt_prog_compiler_can_build_shared=no
7172fi
7173
7174fi
7175
7176
7177
7178
7179
7180
7181#
7182# Check to make sure the static flag actually works.
7183#
7184wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7185echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7186echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
467b2e9e 7187if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1cf3d07d
SE
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
467b2e9e 7190 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
7191 save_LDFLAGS="$LDFLAGS"
7192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7195 # The linker can only warn and ignore the option if not recognized
7196 # So say no if there are warnings
7197 if test -s conftest.err; then
7198 # Append any errors to the config.log.
7199 cat conftest.err 1>&5
7200 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7202 if diff conftest.exp conftest.er2 >/dev/null; then
467b2e9e 7203 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7204 fi
7205 else
467b2e9e 7206 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7207 fi
7208 fi
467b2e9e 7209 $RM -r conftest*
1cf3d07d
SE
7210 LDFLAGS="$save_LDFLAGS"
7211
7212fi
467b2e9e
PG
7213echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7214echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1cf3d07d 7215
467b2e9e 7216if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
7217 :
7218else
7219 lt_prog_compiler_static=
7220fi
7221
7222
7223
7224
7225
7226
7227
7228 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7229echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7230if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 lt_cv_prog_compiler_c_o=no
7234 $RM -r conftest 2>/dev/null
7235 mkdir conftest
7236 cd conftest
7237 mkdir out
7238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7239
7240 lt_compiler_flag="-o out/conftest2.$ac_objext"
7241 # Insert the option either (1) after the last *FLAGS variable, or
7242 # (2) before a word containing "conftest.", or (3) at the end.
7243 # Note that $ac_compile itself does not contain backslashes and begins
7244 # with a dollar sign (not a hyphen), so the echo should work correctly.
7245 lt_compile=`echo "$ac_compile" | $SED \
7246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7248 -e 's:$: $lt_compiler_flag:'`
467b2e9e 7249 (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
1cf3d07d
SE
7250 (eval "$lt_compile" 2>out/conftest.err)
7251 ac_status=$?
7252 cat out/conftest.err >&5
467b2e9e 7253 echo "$as_me:7253: \$? = $ac_status" >&5
1cf3d07d
SE
7254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7255 then
7256 # The compiler can only warn and ignore the option if not recognized
7257 # So say no if there are warnings
7258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7261 lt_cv_prog_compiler_c_o=yes
7262 fi
7263 fi
7264 chmod u+w . 2>&5
7265 $RM conftest*
7266 # SGI C++ compiler will create directory out/ii_files/ for
7267 # template instantiation
7268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7269 $RM out/* && rmdir out
7270 cd ..
7271 $RM -r conftest
7272 $RM conftest*
7273
7274fi
7275echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7276echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7277
7278
7279
7280
7281
7282
7283 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7284echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7285if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 lt_cv_prog_compiler_c_o=no
7289 $RM -r conftest 2>/dev/null
7290 mkdir conftest
7291 cd conftest
7292 mkdir out
7293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7294
7295 lt_compiler_flag="-o out/conftest2.$ac_objext"
7296 # Insert the option either (1) after the last *FLAGS variable, or
7297 # (2) before a word containing "conftest.", or (3) at the end.
7298 # Note that $ac_compile itself does not contain backslashes and begins
7299 # with a dollar sign (not a hyphen), so the echo should work correctly.
7300 lt_compile=`echo "$ac_compile" | $SED \
7301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7303 -e 's:$: $lt_compiler_flag:'`
467b2e9e 7304 (eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
1cf3d07d
SE
7305 (eval "$lt_compile" 2>out/conftest.err)
7306 ac_status=$?
7307 cat out/conftest.err >&5
467b2e9e 7308 echo "$as_me:7308: \$? = $ac_status" >&5
1cf3d07d
SE
7309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7310 then
7311 # The compiler can only warn and ignore the option if not recognized
7312 # So say no if there are warnings
7313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7316 lt_cv_prog_compiler_c_o=yes
7317 fi
7318 fi
7319 chmod u+w . 2>&5
7320 $RM conftest*
7321 # SGI C++ compiler will create directory out/ii_files/ for
7322 # template instantiation
7323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7324 $RM out/* && rmdir out
7325 cd ..
7326 $RM -r conftest
7327 $RM conftest*
7328
7329fi
7330echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7331echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7332
7333
7334
7335
7336hard_links="nottested"
7337if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7338 # do not overwrite the value of need_locks provided by the user
7339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7340echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7341 hard_links=yes
7342 $RM conftest*
7343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7344 touch conftest.a
7345 ln conftest.a conftest.b 2>&5 || hard_links=no
7346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7347 echo "$as_me:$LINENO: result: $hard_links" >&5
7348echo "${ECHO_T}$hard_links" >&6
7349 if test "$hard_links" = no; then
7350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7351echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7352 need_locks=warn
7353 fi
7354else
7355 need_locks=no
7356fi
7357
7358
7359
7360
7361
7362
7363 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7364echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7365
7366 runpath_var=
7367 allow_undefined_flag=
7368 always_export_symbols=no
7369 archive_cmds=
7370 archive_expsym_cmds=
7371 compiler_needs_object=no
7372 enable_shared_with_static_runtimes=no
7373 export_dynamic_flag_spec=
7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7375 hardcode_automatic=no
7376 hardcode_direct=no
7377 hardcode_direct_absolute=no
7378 hardcode_libdir_flag_spec=
7379 hardcode_libdir_flag_spec_ld=
7380 hardcode_libdir_separator=
7381 hardcode_minus_L=no
7382 hardcode_shlibpath_var=unsupported
7383 inherit_rpath=no
7384 link_all_deplibs=unknown
7385 module_cmds=
7386 module_expsym_cmds=
7387 old_archive_from_new_cmds=
7388 old_archive_from_expsyms_cmds=
7389 thread_safe_flag_spec=
7390 whole_archive_flag_spec=
7391 # include_expsyms should be a list of space-separated symbols to be *always*
7392 # included in the symbol list
7393 include_expsyms=
7394 # exclude_expsyms can be an extended regexp of symbols to exclude
7395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7397 # as well as any symbol that contains `d'.
467b2e9e 7398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
7399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7400 # platforms (ab)use it in PIC code, but their linkers get confused if
7401 # the symbol is explicitly referenced. Since portable code cannot
7402 # rely on this symbol name, it's probably fine to never include it in
7403 # preloaded symbol tables.
467b2e9e 7404 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
7405 extract_expsyms_cmds=
7406
7407 case $host_os in
467b2e9e 7408 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7410 # When not using gcc, we currently assume that we are using
7411 # Microsoft Visual C++.
7412 if test "$GCC" != yes; then
7413 with_gnu_ld=no
7414 fi
7415 ;;
7416 interix*)
7417 # we just hope/assume this is gcc and not c89 (= MSVC++)
7418 with_gnu_ld=yes
7419 ;;
7420 openbsd*)
7421 with_gnu_ld=no
7422 ;;
7423 esac
7424
7425 ld_shlibs=yes
7426 if test "$with_gnu_ld" = yes; then
7427 # If archive_cmds runs LD, not CC, wlarc should be empty
7428 wlarc='${wl}'
7429
7430 # Set some defaults for GNU ld with shared library support. These
7431 # are reset later if shared libraries are not supported. Putting them
7432 # here allows them to be overridden if necessary.
7433 runpath_var=LD_RUN_PATH
7434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7435 export_dynamic_flag_spec='${wl}--export-dynamic'
7436 # ancient GNU ld didn't support --whole-archive et. al.
7437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7438 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7439 else
7440 whole_archive_flag_spec=
7441 fi
7442 supports_anon_versioning=no
7443 case `$LD -v 2>&1` in
7444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7447 *\ 2.11.*) ;; # other 2.11 versions
7448 *) supports_anon_versioning=yes ;;
7449 esac
7450
7451 # See if GNU ld supports shared libraries.
7452 case $host_os in
e7ad4ca7 7453 aix[3-9]*)
1cf3d07d
SE
7454 # On AIX/PPC, the GNU linker is very broken
7455 if test "$host_cpu" != ia64; then
7456 ld_shlibs=no
7457 cat <<_LT_EOF 1>&2
7458
7459*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7460*** to be unable to reliably create shared libraries on AIX.
7461*** Therefore, libtool is disabling shared libraries support. If you
7462*** really care for shared libraries, you may want to modify your PATH
7463*** so that a non-GNU linker is found, and then restart.
7464
7465_LT_EOF
7466 fi
7467 ;;
7468
7469 amigaos*)
467b2e9e
PG
7470 case $host_cpu in
7471 powerpc)
7472 # see comment about AmigaOS4 .so support
7473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7474 archive_expsym_cmds=''
7475 ;;
7476 m68k)
7477 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)'
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_minus_L=yes
7480 ;;
7481 esac
1cf3d07d
SE
7482 ;;
7483
7484 beos*)
7485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7486 allow_undefined_flag=unsupported
7487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7488 # support --undefined. This deserves some investigation. FIXME
7489 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7490 else
7491 ld_shlibs=no
7492 fi
7493 ;;
7494
467b2e9e 7495 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7496 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7497 # as there is no search path for DLLs.
7498 hardcode_libdir_flag_spec='-L$libdir'
7499 allow_undefined_flag=unsupported
7500 always_export_symbols=no
7501 enable_shared_with_static_runtimes=yes
7502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7503
7504 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7506 # If the export-symbols file already is a .def file (1st line
7507 # is EXPORTS), use it as is; otherwise, prepend...
7508 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7509 cp $export_symbols $output_objdir/$soname.def;
7510 else
7511 echo EXPORTS > $output_objdir/$soname.def;
7512 cat $export_symbols >> $output_objdir/$soname.def;
7513 fi~
7514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7515 else
7516 ld_shlibs=no
7517 fi
7518 ;;
7519
7520 interix[3-9]*)
7521 hardcode_direct=no
7522 hardcode_shlibpath_var=no
7523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7524 export_dynamic_flag_spec='${wl}-E'
7525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7526 # Instead, shared libraries are loaded at an image base (0x10000000 by
7527 # default) and relocated if they conflict, which is a slow very memory
7528 # consuming and fragmenting process. To avoid this, we pick a random,
7529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7532 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7533 ;;
7534
7535 gnu* | linux* | tpf* | k*bsd*-gnu)
7536 tmp_diet=no
7537 if test "$host_os" = linux-dietlibc; then
7538 case $cc_basename in
7539 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7540 esac
7541 fi
7542 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7543 && test "$tmp_diet" = no
7544 then
7545 tmp_addflag=
467b2e9e 7546 tmp_sharedflag='-shared'
1cf3d07d
SE
7547 case $cc_basename,$host_cpu in
7548 pgcc*) # Portland Group C compiler
7549 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7550 tmp_addflag=' $pic_flag'
7551 ;;
7552 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7553 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7554 tmp_addflag=' $pic_flag -Mnomain' ;;
7555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7556 tmp_addflag=' -i_dynamic' ;;
7557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7558 tmp_addflag=' -i_dynamic -nofor_main' ;;
7559 ifc* | ifort*) # Intel Fortran compiler
7560 tmp_addflag=' -nofor_main' ;;
467b2e9e
PG
7561 lf95*) # Lahey Fortran 8.1
7562 whole_archive_flag_spec=
7563 tmp_sharedflag='--shared' ;;
7564 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7565 tmp_sharedflag='-qmkshrobj'
7566 tmp_addflag= ;;
1cf3d07d
SE
7567 esac
7568 case `$CC -V 2>&1 | sed 5q` in
7569 *Sun\ C*) # Sun C 5.9
7570 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7571 compiler_needs_object=yes
7572 tmp_sharedflag='-G' ;;
7573 *Sun\ F*) # Sun Fortran 8.3
7574 tmp_sharedflag='-G' ;;
1cf3d07d
SE
7575 esac
7576 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7577
7578 if test "x$supports_anon_versioning" = xyes; then
7579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7581 echo "local: *; };" >> $output_objdir/$libname.ver~
7582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7583 fi
467b2e9e
PG
7584
7585 case $cc_basename in
7586 xlf*)
7587 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7588 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7589 hardcode_libdir_flag_spec=
7590 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7591 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7592 if test "x$supports_anon_versioning" = xyes; then
7593 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7595 echo "local: *; };" >> $output_objdir/$libname.ver~
7596 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7597 fi
7598 ;;
7599 esac
1cf3d07d
SE
7600 else
7601 ld_shlibs=no
7602 fi
7603 ;;
7604
7605 netbsd*)
7606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7607 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7608 wlarc=
7609 else
7610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7611 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7612 fi
7613 ;;
7614
7615 solaris*)
7616 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7617 ld_shlibs=no
7618 cat <<_LT_EOF 1>&2
7619
7620*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7621*** create shared libraries on Solaris systems. Therefore, libtool
7622*** is disabling shared libraries support. We urge you to upgrade GNU
7623*** binutils to release 2.9.1 or newer. Another option is to modify
7624*** your PATH or compiler configuration so that the native linker is
7625*** used, and then restart.
7626
7627_LT_EOF
7628 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7631 else
7632 ld_shlibs=no
7633 fi
7634 ;;
7635
7636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7637 case `$LD -v 2>&1` in
7638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7639 ld_shlibs=no
7640 cat <<_LT_EOF 1>&2
7641
7642*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7643*** reliably create shared libraries on SCO systems. Therefore, libtool
7644*** is disabling shared libraries support. We urge you to upgrade GNU
7645*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7646*** your PATH or compiler configuration so that the native linker is
7647*** used, and then restart.
7648
7649_LT_EOF
7650 ;;
7651 *)
7652 # For security reasons, it is highly recommended that you always
7653 # use absolute paths for naming shared libraries, and exclude the
7654 # DT_RUNPATH tag from executables and libraries. But doing so
7655 # requires that you compile everything twice, which is a pain.
7656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7660 else
7661 ld_shlibs=no
7662 fi
7663 ;;
7664 esac
7665 ;;
7666
7667 sunos4*)
7668 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7669 wlarc=
7670 hardcode_direct=yes
7671 hardcode_shlibpath_var=no
7672 ;;
7673
7674 *)
7675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7678 else
7679 ld_shlibs=no
7680 fi
7681 ;;
7682 esac
7683
7684 if test "$ld_shlibs" = no; then
7685 runpath_var=
7686 hardcode_libdir_flag_spec=
7687 export_dynamic_flag_spec=
7688 whole_archive_flag_spec=
7689 fi
7690 else
7691 # PORTME fill in a description of your system's linker (not GNU ld)
7692 case $host_os in
7693 aix3*)
7694 allow_undefined_flag=unsupported
7695 always_export_symbols=yes
7696 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'
7697 # Note: this linker hardcodes the directories in LIBPATH if there
7698 # are no directories specified by -L.
7699 hardcode_minus_L=yes
7700 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7701 # Neither direct hardcoding nor static linking is supported with a
7702 # broken collect2.
7703 hardcode_direct=unsupported
7704 fi
7705 ;;
7706
e7ad4ca7 7707 aix[4-9]*)
1cf3d07d
SE
7708 if test "$host_cpu" = ia64; then
7709 # On IA64, the linker does run time linking by default, so we don't
7710 # have to do anything special.
7711 aix_use_runtimelinking=no
7712 exp_sym_flag='-Bexport'
7713 no_entry_flag=""
7714 else
7715 # If we're using GNU nm, then we don't want the "-C" option.
7716 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7717 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7718 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'
7719 else
7720 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'
7721 fi
7722 aix_use_runtimelinking=no
7723
7724 # Test if we are trying to use run time linking or normal
7725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7726 # need to do runtime linking.
e7ad4ca7 7727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
7728 for ld_flag in $LDFLAGS; do
7729 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7730 aix_use_runtimelinking=yes
7731 break
7732 fi
7733 done
7734 ;;
7735 esac
7736
7737 exp_sym_flag='-bexport'
7738 no_entry_flag='-bnoentry'
7739 fi
7740
7741 # When large executables or shared objects are built, AIX ld can
7742 # have problems creating the table of contents. If linking a library
7743 # or program results in "error TOC overflow" add -mminimal-toc to
7744 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7745 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7746
7747 archive_cmds=''
7748 hardcode_direct=yes
7749 hardcode_direct_absolute=yes
7750 hardcode_libdir_separator=':'
7751 link_all_deplibs=yes
7752 file_list_spec='${wl}-f,'
7753
7754 if test "$GCC" = yes; then
7755 case $host_os in aix4.[012]|aix4.[012].*)
7756 # We only want to do this on AIX 4.2 and lower, the check
7757 # below for broken collect2 doesn't work under 4.3+
7758 collect2name=`${CC} -print-prog-name=collect2`
7759 if test -f "$collect2name" &&
7760 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7761 then
7762 # We have reworked collect2
7763 :
7764 else
7765 # We have old collect2
7766 hardcode_direct=unsupported
7767 # It fails to find uninstalled libraries when the uninstalled
7768 # path is not listed in the libpath. Setting hardcode_minus_L
7769 # to unsupported forces relinking
7770 hardcode_minus_L=yes
7771 hardcode_libdir_flag_spec='-L$libdir'
7772 hardcode_libdir_separator=
7773 fi
7774 ;;
7775 esac
7776 shared_flag='-shared'
7777 if test "$aix_use_runtimelinking" = yes; then
7778 shared_flag="$shared_flag "'${wl}-G'
7779 fi
7780 else
7781 # not using gcc
7782 if test "$host_cpu" = ia64; then
7783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7784 # chokes on -Wl,-G. The following line is correct:
7785 shared_flag='-G'
7786 else
7787 if test "$aix_use_runtimelinking" = yes; then
7788 shared_flag='${wl}-G'
7789 else
7790 shared_flag='${wl}-bM:SRE'
7791 fi
7792 fi
7793 fi
7794
467b2e9e 7795 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
7796 # It seems that -bexpall does not export symbols beginning with
7797 # underscore (_), so it is better to generate a list of symbols to export.
7798 always_export_symbols=yes
7799 if test "$aix_use_runtimelinking" = yes; then
7800 # Warning - without using the other runtime loading flags (-brtl),
7801 # -berok will link without error, but may produce a broken library.
7802 allow_undefined_flag='-berok'
7803 # Determine the default libpath from the value encoded in an
7804 # empty executable.
7805 if test x$gcc_no_link = xyes; then
7806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7807echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7808 { (exit 1); exit 1; }; }
7809fi
7810cat >conftest.$ac_ext <<_ACEOF
7811/* confdefs.h. */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
7815/* end confdefs.h. */
7816
7817int
7818main ()
7819{
7820
7821 ;
7822 return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext conftest$ac_exeext
7826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
2c888488
L
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
1cf3d07d
SE
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847
7848lt_aix_libpath_sed='
7849 /Import File Strings/,/^$/ {
7850 /^0/ {
7851 s/^0 *\(.*\)$/\1/
7852 p
7853 }
7854 }'
7855aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7856# Check for a 64-bit object if we didn't find anything.
7857if test -z "$aix_libpath"; then
7858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7859fi
7860else
7861 echo "$as_me: failed program was:" >&5
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
7864fi
7865rm -f conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7868
7869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7870 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7871 else
7872 if test "$host_cpu" = ia64; then
7873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7874 allow_undefined_flag="-z nodefs"
7875 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7876 else
7877 # Determine the default libpath from the value encoded in an
7878 # empty executable.
7879 if test x$gcc_no_link = xyes; then
7880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7881echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7882 { (exit 1); exit 1; }; }
7883fi
7884cat >conftest.$ac_ext <<_ACEOF
7885/* confdefs.h. */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h. */
7890
7891int
7892main ()
7893{
7894
7895 ;
7896 return 0;
7897}
7898_ACEOF
7899rm -f conftest.$ac_objext conftest$ac_exeext
7900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901 (eval $ac_link) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
2c888488
L
7908 { ac_try='test -z "$ac_c_werror_flag"
7909 || test ! -s conftest.err'
1cf3d07d
SE
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921
7922lt_aix_libpath_sed='
7923 /Import File Strings/,/^$/ {
7924 /^0/ {
7925 s/^0 *\(.*\)$/\1/
7926 p
7927 }
7928 }'
7929aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7930# Check for a 64-bit object if we didn't find anything.
7931if test -z "$aix_libpath"; then
7932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7933fi
7934else
7935 echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
7938fi
7939rm -f conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7942
7943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7944 # Warning - without using the other run time loading flags,
7945 # -berok will link without error, but may produce a broken library.
7946 no_undefined_flag=' ${wl}-bernotok'
7947 allow_undefined_flag=' ${wl}-berok'
7948 # Exported symbols can be pulled into shared objects from archives
7949 whole_archive_flag_spec='$convenience'
7950 archive_cmds_need_lc=yes
7951 # This is similar to how AIX traditionally builds its shared libraries.
7952 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7953 fi
7954 fi
7955 ;;
7956
7957 amigaos*)
467b2e9e
PG
7958 case $host_cpu in
7959 powerpc)
7960 # see comment about AmigaOS4 .so support
7961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962 archive_expsym_cmds=''
7963 ;;
7964 m68k)
7965 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)'
7966 hardcode_libdir_flag_spec='-L$libdir'
7967 hardcode_minus_L=yes
7968 ;;
7969 esac
1cf3d07d
SE
7970 ;;
7971
7972 bsdi[45]*)
7973 export_dynamic_flag_spec=-rdynamic
7974 ;;
7975
467b2e9e 7976 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7977 # When not using gcc, we currently assume that we are using
7978 # Microsoft Visual C++.
7979 # hardcode_libdir_flag_spec is actually meaningless, as there is
7980 # no search path for DLLs.
7981 hardcode_libdir_flag_spec=' '
7982 allow_undefined_flag=unsupported
7983 # Tell ltmain to make .lib files, not .a files.
7984 libext=lib
7985 # Tell ltmain to make .dll files, not .so files.
7986 shrext_cmds=".dll"
7987 # FIXME: Setting linknames here is a bad hack.
7988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7989 # The linker will automatically build a .lib file if we build a DLL.
7990 old_archive_from_new_cmds='true'
7991 # FIXME: Should let the user specify the lib program.
7992 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7993 fix_srcfile_path='`cygpath -w "$srcfile"`'
7994 enable_shared_with_static_runtimes=yes
7995 ;;
7996
7997 darwin* | rhapsody*)
1cf3d07d 7998
467b2e9e
PG
7999
8000 archive_cmds_need_lc=no
8001 hardcode_direct=no
8002 hardcode_automatic=yes
8003 hardcode_shlibpath_var=unsupported
8004 whole_archive_flag_spec=''
8005 link_all_deplibs=yes
8006 allow_undefined_flag="$_lt_dar_allow_undefined"
8007 case $cc_basename in
8008 ifort*) _lt_dar_can_shared=yes ;;
8009 *) _lt_dar_can_shared=$GCC ;;
8010 esac
8011 if test "$_lt_dar_can_shared" = "yes"; then
8012 output_verbose_link_cmd=echo
8013 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8014 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8015 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8016 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8017
8018 else
8019 ld_shlibs=no
8020 fi
8021
1cf3d07d
SE
8022 ;;
8023
8024 dgux*)
8025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 hardcode_shlibpath_var=no
8028 ;;
8029
8030 freebsd1*)
8031 ld_shlibs=no
8032 ;;
8033
8034 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8035 # support. Future versions do this automatically, but an explicit c++rt0.o
8036 # does not break anything, and helps significantly (at the cost of a little
8037 # extra space).
8038 freebsd2.2*)
8039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8040 hardcode_libdir_flag_spec='-R$libdir'
8041 hardcode_direct=yes
8042 hardcode_shlibpath_var=no
8043 ;;
8044
8045 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8046 freebsd2*)
8047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_direct=yes
8049 hardcode_minus_L=yes
8050 hardcode_shlibpath_var=no
8051 ;;
8052
8053 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8054 freebsd* | dragonfly*)
8055 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8056 hardcode_libdir_flag_spec='-R$libdir'
8057 hardcode_direct=yes
8058 hardcode_shlibpath_var=no
8059 ;;
8060
8061 hpux9*)
8062 if test "$GCC" = yes; then
8063 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'
8064 else
8065 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'
8066 fi
8067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8068 hardcode_libdir_separator=:
8069 hardcode_direct=yes
8070
8071 # hardcode_minus_L: Not really in the search PATH,
8072 # but as the default location of the library.
8073 hardcode_minus_L=yes
8074 export_dynamic_flag_spec='${wl}-E'
8075 ;;
8076
8077 hpux10*)
8078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8080 else
8081 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8082 fi
8083 if test "$with_gnu_ld" = no; then
8084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8085 hardcode_libdir_flag_spec_ld='+b $libdir'
8086 hardcode_libdir_separator=:
8087 hardcode_direct=yes
8088 hardcode_direct_absolute=yes
8089 export_dynamic_flag_spec='${wl}-E'
8090 # hardcode_minus_L: Not really in the search PATH,
8091 # but as the default location of the library.
8092 hardcode_minus_L=yes
8093 fi
8094 ;;
8095
8096 hpux11*)
8097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8098 case $host_cpu in
8099 hppa*64*)
8100 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8101 ;;
8102 ia64*)
467b2e9e 8103 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
8104 ;;
8105 *)
8106 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8107 ;;
8108 esac
8109 else
8110 case $host_cpu in
8111 hppa*64*)
8112 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8113 ;;
8114 ia64*)
8115 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8116 ;;
8117 *)
8118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8119 ;;
8120 esac
8121 fi
8122 if test "$with_gnu_ld" = no; then
8123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8124 hardcode_libdir_separator=:
8125
8126 case $host_cpu in
8127 hppa*64*|ia64*)
8128 hardcode_direct=no
8129 hardcode_shlibpath_var=no
8130 ;;
8131 *)
8132 hardcode_direct=yes
8133 hardcode_direct_absolute=yes
8134 export_dynamic_flag_spec='${wl}-E'
8135
8136 # hardcode_minus_L: Not really in the search PATH,
8137 # but as the default location of the library.
8138 hardcode_minus_L=yes
8139 ;;
8140 esac
8141 fi
8142 ;;
8143
8144 irix5* | irix6* | nonstopux*)
8145 if test "$GCC" = yes; then
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8147 # Try to use the -exported_symbol ld option, if it does not
8148 # work, assume that -exports_file does not work either and
8149 # implicitly export all symbols.
8150 save_LDFLAGS="$LDFLAGS"
8151 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8152 if test x$gcc_no_link = xyes; then
8153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8154echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8155 { (exit 1); exit 1; }; }
8156fi
8157cat >conftest.$ac_ext <<_ACEOF
8158int foo(void) {}
8159_ACEOF
8160rm -f conftest.$ac_objext conftest$ac_exeext
8161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
2c888488
L
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
1cf3d07d
SE
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8183
8184else
8185 echo "$as_me: failed program was:" >&5
8186sed 's/^/| /' conftest.$ac_ext >&5
8187
8188fi
8189rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 LDFLAGS="$save_LDFLAGS"
8192 else
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8195 fi
8196 archive_cmds_need_lc='no'
8197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8198 hardcode_libdir_separator=:
8199 inherit_rpath=yes
8200 link_all_deplibs=yes
8201 ;;
8202
8203 netbsd*)
8204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8206 else
8207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8208 fi
8209 hardcode_libdir_flag_spec='-R$libdir'
8210 hardcode_direct=yes
8211 hardcode_shlibpath_var=no
8212 ;;
8213
8214 newsos6)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_direct=yes
8217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 hardcode_libdir_separator=:
8219 hardcode_shlibpath_var=no
8220 ;;
8221
8222 *nto* | *qnx*)
8223 ;;
8224
8225 openbsd*)
467b2e9e
PG
8226 if test -f /usr/libexec/ld.so; then
8227 hardcode_direct=yes
8228 hardcode_shlibpath_var=no
8229 hardcode_direct_absolute=yes
8230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 8231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
467b2e9e 8232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 8233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
467b2e9e
PG
8234 export_dynamic_flag_spec='${wl}-E'
8235 else
8236 case $host_os in
8237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8239 hardcode_libdir_flag_spec='-R$libdir'
8240 ;;
8241 *)
8242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244 ;;
8245 esac
8246 fi
8247 else
8248 ld_shlibs=no
1cf3d07d
SE
8249 fi
8250 ;;
8251
8252 os2*)
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_minus_L=yes
8255 allow_undefined_flag=unsupported
8256 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'
8257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8258 ;;
8259
8260 osf3*)
8261 if test "$GCC" = yes; then
8262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8263 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8264 else
8265 allow_undefined_flag=' -expect_unresolved \*'
8266 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8267 fi
8268 archive_cmds_need_lc='no'
8269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8270 hardcode_libdir_separator=:
8271 ;;
8272
8273 osf4* | osf5*) # as osf3* with the addition of -msym flag
8274 if test "$GCC" = yes; then
8275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8276 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8278 else
8279 allow_undefined_flag=' -expect_unresolved \*'
8280 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8281 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8282 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8283
8284 # Both c and cxx compiler support -rpath directly
8285 hardcode_libdir_flag_spec='-rpath $libdir'
8286 fi
8287 archive_cmds_need_lc='no'
8288 hardcode_libdir_separator=:
8289 ;;
8290
8291 solaris*)
8292 no_undefined_flag=' -z defs'
8293 if test "$GCC" = yes; then
8294 wlarc='${wl}'
8295 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8297 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8298 else
8299 case `$CC -V 2>&1` in
8300 *"Compilers 5.0"*)
8301 wlarc=''
8302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8305 ;;
8306 *)
8307 wlarc='${wl}'
8308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8311 ;;
8312 esac
8313 fi
8314 hardcode_libdir_flag_spec='-R$libdir'
8315 hardcode_shlibpath_var=no
8316 case $host_os in
8317 solaris2.[0-5] | solaris2.[0-5].*) ;;
8318 *)
8319 # The compiler driver will combine and reorder linker options,
8320 # but understands `-z linker_flag'. GCC discards it without `$wl',
8321 # but is careful enough not to reorder.
8322 # Supported since Solaris 2.6 (maybe 2.5.1?)
8323 if test "$GCC" = yes; then
8324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8325 else
8326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8327 fi
8328 ;;
8329 esac
8330 link_all_deplibs=yes
8331 ;;
8332
8333 sunos4*)
8334 if test "x$host_vendor" = xsequent; then
8335 # Use $CC to link under sequent, because it throws in some extra .o
8336 # files that make .init and .fini sections work.
8337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8338 else
8339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8340 fi
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_direct=yes
8343 hardcode_minus_L=yes
8344 hardcode_shlibpath_var=no
8345 ;;
8346
8347 sysv4)
8348 case $host_vendor in
8349 sni)
8350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_direct=yes # is this really true???
8352 ;;
8353 siemens)
8354 ## LD is ld it makes a PLAMLIB
8355 ## CC just makes a GrossModule.
8356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8357 reload_cmds='$CC -r -o $output$reload_objs'
8358 hardcode_direct=no
8359 ;;
8360 motorola)
8361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8363 ;;
8364 esac
8365 runpath_var='LD_RUN_PATH'
8366 hardcode_shlibpath_var=no
8367 ;;
8368
8369 sysv4.3*)
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_shlibpath_var=no
8372 export_dynamic_flag_spec='-Bexport'
8373 ;;
8374
8375 sysv4*MP*)
8376 if test -d /usr/nec; then
8377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_shlibpath_var=no
8379 runpath_var=LD_RUN_PATH
8380 hardcode_runpath_var=yes
8381 ld_shlibs=yes
8382 fi
8383 ;;
8384
8385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8386 no_undefined_flag='${wl}-z,text'
8387 archive_cmds_need_lc=no
8388 hardcode_shlibpath_var=no
8389 runpath_var='LD_RUN_PATH'
8390
8391 if test "$GCC" = yes; then
8392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394 else
8395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 fi
8398 ;;
8399
8400 sysv5* | sco3.2v5* | sco5v6*)
8401 # Note: We can NOT use -z defs as we might desire, because we do not
8402 # link with -lc, and that would cause any symbols used from libc to
8403 # always be unresolved, which means just about no library would
8404 # ever link correctly. If we're not using GNU ld we use -z text
8405 # though, which does catch some bad symbols but isn't as heavy-handed
8406 # as -z defs.
8407 no_undefined_flag='${wl}-z,text'
8408 allow_undefined_flag='${wl}-z,nodefs'
8409 archive_cmds_need_lc=no
8410 hardcode_shlibpath_var=no
8411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8412 hardcode_libdir_separator=':'
8413 link_all_deplibs=yes
8414 export_dynamic_flag_spec='${wl}-Bexport'
8415 runpath_var='LD_RUN_PATH'
8416
8417 if test "$GCC" = yes; then
8418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 else
8421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 fi
8424 ;;
8425
8426 uts4*)
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_shlibpath_var=no
8430 ;;
8431
8432 *)
8433 ld_shlibs=no
8434 ;;
8435 esac
8436
8437 if test x$host_vendor = xsni; then
8438 case $host in
8439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8440 export_dynamic_flag_spec='${wl}-Blargedynsym'
8441 ;;
8442 esac
8443 fi
8444 fi
8445
8446echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8447echo "${ECHO_T}$ld_shlibs" >&6
8448test "$ld_shlibs" = no && can_build_shared=no
8449
8450with_gnu_ld=$with_gnu_ld
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466#
8467# Do we need to explicitly link libc?
8468#
8469case "x$archive_cmds_need_lc" in
8470x|xyes)
8471 # Assume -lc should be added
8472 archive_cmds_need_lc=yes
8473
8474 if test "$enable_shared" = yes && test "$GCC" = yes; then
8475 case $archive_cmds in
8476 *'~'*)
8477 # FIXME: we may have to deal with multi-command sequences.
8478 ;;
8479 '$CC '*)
8480 # Test whether the compiler implicitly links with -lc since on some
8481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8482 # to ld, don't add -lc before -lgcc.
8483 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8484echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
8485if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488 $RM conftest*
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 8490
baafc534 8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1cf3d07d
SE
8492 (eval $ac_compile) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } 2>conftest.err; then
baafc534
RW
8496 soname=conftest
8497 lib=conftest
8498 libobjs=conftest.$ac_objext
8499 deplibs=
8500 wl=$lt_prog_compiler_wl
8501 pic_flag=$lt_prog_compiler_pic
8502 compiler_flags=-v
8503 linker_flags=-v
8504 verstring=
8505 output_objdir=.
8506 libname=conftest
8507 lt_save_allow_undefined_flag=$allow_undefined_flag
8508 allow_undefined_flag=
8509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1cf3d07d
SE
8510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }
baafc534
RW
8514 then
8515 lt_cv_archive_cmds_need_lc=no
8516 else
8517 lt_cv_archive_cmds_need_lc=yes
8518 fi
8519 allow_undefined_flag=$lt_save_allow_undefined_flag
8520 else
8521 cat conftest.err 1>&5
8522 fi
8523 $RM conftest*
8524
8525fi
8526echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8527echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
8529 ;;
8530 esac
8531 fi
8532 ;;
8533esac
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8692echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
467b2e9e
PG
8693
8694if test "$GCC" = yes; then
1cf3d07d
SE
8695 case $host_os in
8696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8697 *) lt_awk_arg="/^libraries:/" ;;
8698 esac
8699 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8700 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8701 # if the path contains ";" then we assume it to be the separator
8702 # otherwise default to the standard path separator (i.e. ":") - it is
8703 # assumed that no part of a normal pathname contains ";" but that should
8704 # okay in the real world where ";" in dirpaths is itself problematic.
8705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8706 else
8707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8708 fi
8709 # Ok, now we have the path, separated by spaces, we can step through it
8710 # and add multilib dir if necessary.
8711 lt_tmp_lt_search_path_spec=
8712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8713 for lt_sys_path in $lt_search_path_spec; do
8714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8716 else
8717 test -d "$lt_sys_path" && \
8718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8719 fi
8720 done
8721 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8722BEGIN {RS=" "; FS="/|\n";} {
8723 lt_foo="";
8724 lt_count=0;
8725 for (lt_i = NF; lt_i > 0; lt_i--) {
8726 if ($lt_i != "" && $lt_i != ".") {
8727 if ($lt_i == "..") {
8728 lt_count++;
8729 } else {
8730 if (lt_count == 0) {
8731 lt_foo="/" $lt_i lt_foo;
8732 } else {
8733 lt_count--;
8734 }
8735 }
8736 }
8737 }
8738 if (lt_foo != "") { lt_freq[lt_foo]++; }
8739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8740}'`
8741 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8742else
8743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8744fi
8745library_names_spec=
8746libname_spec='lib$name'
8747soname_spec=
8748shrext_cmds=".so"
8749postinstall_cmds=
8750postuninstall_cmds=
8751finish_cmds=
8752finish_eval=
8753shlibpath_var=
8754shlibpath_overrides_runpath=unknown
8755version_type=none
8756dynamic_linker="$host_os ld.so"
8757sys_lib_dlsearch_path_spec="/lib /usr/lib"
8758need_lib_prefix=unknown
8759hardcode_into_libs=no
8760
8761# when you set need_version to no, make sure it does not cause -set_version
8762# flags to be left without arguments
8763need_version=unknown
8764
8765case $host_os in
8766aix3*)
8767 version_type=linux
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8769 shlibpath_var=LIBPATH
8770
8771 # AIX 3 has no versioning support, so we append a major version to the name.
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 ;;
8774
e7ad4ca7 8775aix[4-9]*)
1cf3d07d
SE
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 hardcode_into_libs=yes
8780 if test "$host_cpu" = ia64; then
8781 # AIX 5 supports IA64
8782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 else
8785 # With GCC up to 2.95.x, collect2 would create an import file
8786 # for dependence libraries. The import file would start with
8787 # the line `#! .'. This would cause the generated library to
8788 # depend on `.', always an invalid library. This was fixed in
8789 # development snapshots of GCC prior to 3.0.
8790 case $host_os in
8791 aix4 | aix4.[01] | aix4.[01].*)
8792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8793 echo ' yes '
8794 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8795 :
8796 else
8797 can_build_shared=no
8798 fi
8799 ;;
8800 esac
8801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8802 # soname into executable. Probably we can add versioning support to
8803 # collect2, so additional links can be useful in future.
8804 if test "$aix_use_runtimelinking" = yes; then
8805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8806 # instead of lib<name>.a to let people know that these are not
8807 # typical AIX shared libraries.
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 else
8810 # We preserve .a as extension for shared libraries through AIX4.2
8811 # and later when we are not doing run time linking.
8812 library_names_spec='${libname}${release}.a $libname.a'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 fi
8815 shlibpath_var=LIBPATH
8816 fi
8817 ;;
8818
8819amigaos*)
467b2e9e
PG
8820 case $host_cpu in
8821 powerpc)
8822 # Since July 2007 AmigaOS4 officially supports .so libraries.
8823 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 ;;
8826 m68k)
1cf3d07d
SE
8827 library_names_spec='$libname.ixlibrary $libname.a'
8828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8829 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'
467b2e9e
PG
8830 ;;
8831 esac
1cf3d07d
SE
8832 ;;
8833
8834beos*)
8835 library_names_spec='${libname}${shared_ext}'
8836 dynamic_linker="$host_os ld.so"
8837 shlibpath_var=LIBRARY_PATH
8838 ;;
8839
8840bsdi[45]*)
8841 version_type=linux
8842 need_version=no
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8849 # the default ld.so.conf also contains /usr/contrib/lib and
8850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8851 # libtool to hard-code these into programs
8852 ;;
8853
467b2e9e 8854cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8855 version_type=windows
8856 shrext_cmds=".dll"
8857 need_version=no
8858 need_lib_prefix=no
8859
467b2e9e
PG
8860 case $GCC,$host_os in
8861 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
8862 library_names_spec='$libname.dll.a'
8863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8864 postinstall_cmds='base_file=`basename \${file}`~
8865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8866 dldir=$destdir/`dirname \$dlpath`~
8867 test -d \$dldir || mkdir -p \$dldir~
8868 $install_prog $dir/$dlname \$dldir/$dlname~
8869 chmod a+x \$dldir/$dlname~
8870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8872 fi'
8873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8874 dlpath=$dir/\$dldll~
8875 $RM \$dlpath'
8876 shlibpath_overrides_runpath=yes
8877
8878 case $host_os in
8879 cygwin*)
8880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8882 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8883 ;;
467b2e9e 8884 mingw* | cegcc*)
1cf3d07d
SE
8885 # MinGW DLLs use traditional 'lib' prefix
8886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8887 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8888 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8889 # It is most probably a Windows format PATH printed by
8890 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8891 # path with ; separators, and with drive letters. We can handle the
8892 # drive letters (cygwin fileutils understands them), so leave them,
8893 # especially as we might pass files found there to a mingw objdump,
8894 # which wouldn't understand a cygwinified path. Ahh.
8895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8896 else
8897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8898 fi
8899 ;;
8900 pw32*)
8901 # pw32 DLLs use 'pw' prefix rather than 'lib'
8902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8903 ;;
8904 esac
8905 ;;
8906
8907 *)
8908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8909 ;;
8910 esac
8911 dynamic_linker='Win32 ld.exe'
8912 # FIXME: first we should search . and the directory the executable is in
8913 shlibpath_var=PATH
8914 ;;
8915
8916darwin* | rhapsody*)
8917 dynamic_linker="$host_os dyld"
8918 version_type=darwin
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8922 soname_spec='${libname}${release}${major}$shared_ext'
8923 shlibpath_overrides_runpath=yes
8924 shlibpath_var=DYLD_LIBRARY_PATH
8925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8926
8927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8929 ;;
8930
8931dgux*)
8932 version_type=linux
8933 need_lib_prefix=no
8934 need_version=no
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 ;;
8939
8940freebsd1*)
8941 dynamic_linker=no
8942 ;;
8943
8944freebsd* | dragonfly*)
8945 # DragonFly does not have aout. When/if they implement a new
8946 # versioning mechanism, adjust this.
8947 if test -x /usr/bin/objformat; then
8948 objformat=`/usr/bin/objformat`
8949 else
8950 case $host_os in
8951 freebsd[123]*) objformat=aout ;;
8952 *) objformat=elf ;;
8953 esac
8954 fi
8955 version_type=freebsd-$objformat
8956 case $version_type in
8957 freebsd-elf*)
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8959 need_version=no
8960 need_lib_prefix=no
8961 ;;
8962 freebsd-*)
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8964 need_version=yes
8965 ;;
8966 esac
8967 shlibpath_var=LD_LIBRARY_PATH
8968 case $host_os in
8969 freebsd2*)
8970 shlibpath_overrides_runpath=yes
8971 ;;
8972 freebsd3.[01]* | freebsdelf3.[01]*)
8973 shlibpath_overrides_runpath=yes
8974 hardcode_into_libs=yes
8975 ;;
8976 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8977 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8978 shlibpath_overrides_runpath=no
8979 hardcode_into_libs=yes
8980 ;;
8981 *) # from 4.6 on, and DragonFly
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8984 ;;
8985 esac
8986 ;;
8987
8988gnu*)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 hardcode_into_libs=yes
8996 ;;
8997
8998hpux9* | hpux10* | hpux11*)
8999 # Give a soname corresponding to the major version so that dld.sl refuses to
9000 # link against other versions.
9001 version_type=sunos
9002 need_lib_prefix=no
9003 need_version=no
9004 case $host_cpu in
9005 ia64*)
9006 shrext_cmds='.so'
9007 hardcode_into_libs=yes
9008 dynamic_linker="$host_os dld.so"
9009 shlibpath_var=LD_LIBRARY_PATH
9010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 if test "X$HPUX_IA64_MODE" = X32; then
9014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9015 else
9016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9017 fi
9018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9019 ;;
9020 hppa*64*)
9021 shrext_cmds='.sl'
9022 hardcode_into_libs=yes
9023 dynamic_linker="$host_os dld.sl"
9024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9030 ;;
9031 *)
9032 shrext_cmds='.sl'
9033 dynamic_linker="$host_os dld.sl"
9034 shlibpath_var=SHLIB_PATH
9035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 ;;
9039 esac
9040 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9041 postinstall_cmds='chmod 555 $lib'
9042 ;;
9043
9044interix[3-9]*)
9045 version_type=linux
9046 need_lib_prefix=no
9047 need_version=no
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 shlibpath_overrides_runpath=no
9053 hardcode_into_libs=yes
9054 ;;
9055
9056irix5* | irix6* | nonstopux*)
9057 case $host_os in
9058 nonstopux*) version_type=nonstopux ;;
9059 *)
9060 if test "$lt_cv_prog_gnu_ld" = yes; then
9061 version_type=linux
9062 else
9063 version_type=irix
9064 fi ;;
9065 esac
9066 need_lib_prefix=no
9067 need_version=no
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9070 case $host_os in
9071 irix5* | nonstopux*)
9072 libsuff= shlibsuff=
9073 ;;
9074 *)
9075 case $LD in # libtool.m4 will add one of these switches to LD
9076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9077 libsuff= shlibsuff= libmagic=32-bit;;
9078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9079 libsuff=32 shlibsuff=N32 libmagic=N32;;
9080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9082 *) libsuff= shlibsuff= libmagic=never-match;;
9083 esac
9084 ;;
9085 esac
9086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9087 shlibpath_overrides_runpath=no
9088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9090 hardcode_into_libs=yes
9091 ;;
9092
9093# No shared lib support for Linux oldld, aout, or coff.
9094linux*oldld* | linux*aout* | linux*coff*)
9095 dynamic_linker=no
9096 ;;
9097
9098# This must be Linux ELF.
9099linux* | k*bsd*-gnu)
9100 version_type=linux
9101 need_lib_prefix=no
9102 need_version=no
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=no
baafc534 9108
1cf3d07d 9109 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
9110 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112else
9113 lt_cv_shlibpath_overrides_runpath=no
9114 save_LDFLAGS=$LDFLAGS
9115 save_libdir=$libdir
9116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9118 if test x$gcc_no_link = xyes; then
1cf3d07d
SE
9119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9120echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9121 { (exit 1); exit 1; }; }
9122fi
9123cat >conftest.$ac_ext <<_ACEOF
9124/* confdefs.h. */
9125_ACEOF
9126cat confdefs.h >>conftest.$ac_ext
9127cat >>conftest.$ac_ext <<_ACEOF
9128/* end confdefs.h. */
9129
9130int
9131main ()
9132{
9133
9134 ;
9135 return 0;
9136}
9137_ACEOF
9138rm -f conftest.$ac_objext conftest$ac_exeext
9139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140 (eval $ac_link) 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
2c888488
L
9147 { ac_try='test -z "$ac_c_werror_flag"
9148 || test ! -s conftest.err'
1cf3d07d
SE
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
467b2e9e 9160 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 9161 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d
SE
9162fi
9163
9164else
9165 echo "$as_me: failed program was:" >&5
9166sed 's/^/| /' conftest.$ac_ext >&5
9167
9168fi
9169rm -f conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
9171 LDFLAGS=$save_LDFLAGS
9172 libdir=$save_libdir
9173
9174fi
9175
9176 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
9177
9178 # This implies no fast_install, which is unacceptable.
9179 # Some rework will be needed to allow for fast_install
9180 # before this can be enabled.
9181 hardcode_into_libs=yes
9182
9183 # Append ld.so.conf contents to the search path
9184 if test -f /etc/ld.so.conf; then
467b2e9e 9185 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
9186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9187 fi
9188
9189 # We used to test for /lib/ld.so.1 and disable shared libraries on
9190 # powerpc, because MkLinux only supported shared libraries with the
9191 # GNU dynamic linker. Since this was broken with cross compilers,
9192 # most powerpc-linux boxes support dynamic linking these days and
9193 # people can always --disable-shared, the test was removed, and we
9194 # assume the GNU/Linux dynamic linker is in use.
9195 dynamic_linker='GNU/Linux ld.so'
9196 ;;
9197
9198netbsd*)
9199 version_type=sunos
9200 need_lib_prefix=no
9201 need_version=no
9202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9205 dynamic_linker='NetBSD (a.out) ld.so'
9206 else
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 dynamic_linker='NetBSD ld.elf_so'
9210 fi
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9214 ;;
9215
9216newsos6)
9217 version_type=linux
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes
9221 ;;
9222
9223*nto* | *qnx*)
9224 version_type=qnx
9225 need_lib_prefix=no
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 shlibpath_overrides_runpath=no
9231 hardcode_into_libs=yes
9232 dynamic_linker='ldqnx.so'
9233 ;;
9234
9235openbsd*)
9236 version_type=sunos
9237 sys_lib_dlsearch_path_spec="/usr/lib"
9238 need_lib_prefix=no
9239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9240 case $host_os in
9241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9242 *) need_version=no ;;
9243 esac
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9248 case $host_os in
9249 openbsd2.[89] | openbsd2.[89].*)
9250 shlibpath_overrides_runpath=no
9251 ;;
9252 *)
9253 shlibpath_overrides_runpath=yes
9254 ;;
9255 esac
9256 else
9257 shlibpath_overrides_runpath=yes
9258 fi
9259 ;;
9260
9261os2*)
9262 libname_spec='$name'
9263 shrext_cmds=".dll"
9264 need_lib_prefix=no
9265 library_names_spec='$libname${shared_ext} $libname.a'
9266 dynamic_linker='OS/2 ld.exe'
9267 shlibpath_var=LIBPATH
9268 ;;
9269
9270osf3* | osf4* | osf5*)
9271 version_type=osf
9272 need_lib_prefix=no
9273 need_version=no
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9279 ;;
9280
9281rdos*)
9282 dynamic_linker=no
9283 ;;
9284
9285solaris*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes
9293 hardcode_into_libs=yes
9294 # ldd complains unless libraries are executable
9295 postinstall_cmds='chmod +x $lib'
9296 ;;
9297
9298sunos4*)
9299 version_type=sunos
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 if test "$with_gnu_ld" = yes; then
9305 need_lib_prefix=no
9306 fi
9307 need_version=yes
9308 ;;
9309
9310sysv4 | sysv4.3*)
9311 version_type=linux
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_vendor in
9316 sni)
9317 shlibpath_overrides_runpath=no
9318 need_lib_prefix=no
9319 runpath_var=LD_RUN_PATH
9320 ;;
9321 siemens)
9322 need_lib_prefix=no
9323 ;;
9324 motorola)
9325 need_lib_prefix=no
9326 need_version=no
9327 shlibpath_overrides_runpath=no
9328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9329 ;;
9330 esac
9331 ;;
9332
9333sysv4*MP*)
9334 if test -d /usr/nec ;then
9335 version_type=linux
9336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9337 soname_spec='$libname${shared_ext}.$major'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 fi
9340 ;;
9341
9342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9343 version_type=freebsd-elf
9344 need_lib_prefix=no
9345 need_version=no
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 shlibpath_overrides_runpath=yes
9350 hardcode_into_libs=yes
9351 if test "$with_gnu_ld" = yes; then
9352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353 else
9354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9355 case $host_os in
9356 sco3.2v5*)
9357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9358 ;;
9359 esac
9360 fi
9361 sys_lib_dlsearch_path_spec='/usr/lib'
9362 ;;
9363
9364tpf*)
9365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9366 version_type=linux
9367 need_lib_prefix=no
9368 need_version=no
467b2e9e 9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
9370 shlibpath_var=LD_LIBRARY_PATH
9371 shlibpath_overrides_runpath=no
9372 hardcode_into_libs=yes
9373 ;;
9374
9375uts4*)
9376 version_type=linux
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 ;;
9381
9382*)
9383 dynamic_linker=no
9384 ;;
9385esac
9386echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9387echo "${ECHO_T}$dynamic_linker" >&6
9388test "$dynamic_linker" = no && can_build_shared=no
9389
9390variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9391if test "$GCC" = yes; then
9392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9393fi
9394
467b2e9e
PG
9395if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9397fi
9398if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9400fi
9401
1cf3d07d
SE
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9489echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9490hardcode_action=
9491if test -n "$hardcode_libdir_flag_spec" ||
9492 test -n "$runpath_var" ||
9493 test "X$hardcode_automatic" = "Xyes" ; then
9494
9495 # We can hardcode non-existent directories.
9496 if test "$hardcode_direct" != no &&
9497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9498 # have to relink, otherwise we might link with an installed library
9499 # when we should be linking with a yet-to-be-installed one
9500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9501 test "$hardcode_minus_L" != no; then
9502 # Linking always hardcodes the temporary library directory.
9503 hardcode_action=relink
9504 else
9505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9506 hardcode_action=immediate
9507 fi
9508else
9509 # We cannot hardcode anything, or else we can only hardcode existing
9510 # directories.
9511 hardcode_action=unsupported
9512fi
9513echo "$as_me:$LINENO: result: $hardcode_action" >&5
9514echo "${ECHO_T}$hardcode_action" >&6
9515
9516if test "$hardcode_action" = relink ||
9517 test "$inherit_rpath" = yes; then
9518 # Fast installation is not supported
9519 enable_fast_install=no
9520elif test "$shlibpath_overrides_runpath" = yes ||
9521 test "$enable_shared" = no; then
9522 # Fast installation is not necessary
9523 enable_fast_install=needless
9524fi
03391b53 9525
03391b53 9526
88386050 9527
03391b53 9528
03391b53 9529
88386050 9530
1cf3d07d
SE
9531 if test "x$enable_dlopen" != xyes; then
9532 enable_dlopen=unknown
9533 enable_dlopen_self=unknown
9534 enable_dlopen_self_static=unknown
03391b53 9535else
1cf3d07d
SE
9536 lt_cv_dlopen=no
9537 lt_cv_dlopen_libs=
03391b53 9538
1cf3d07d
SE
9539 case $host_os in
9540 beos*)
9541 lt_cv_dlopen="load_add_on"
9542 lt_cv_dlopen_libs=
9543 lt_cv_dlopen_self=yes
9544 ;;
03391b53 9545
467b2e9e 9546 mingw* | pw32* | cegcc*)
1cf3d07d
SE
9547 lt_cv_dlopen="LoadLibrary"
9548 lt_cv_dlopen_libs=
9549 ;;
f5cc59a7 9550
1cf3d07d
SE
9551 cygwin*)
9552 lt_cv_dlopen="dlopen"
9553 lt_cv_dlopen_libs=
9554 ;;
c5e3e1ed 9555
1cf3d07d
SE
9556 darwin*)
9557 # if libdl is installed we need to link against it
9558 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9559echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9560if test "${ac_cv_lib_dl_dlopen+set}" = set; then
88386050 9561 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 9562else
1cf3d07d
SE
9563 ac_check_lib_save_LIBS=$LIBS
9564LIBS="-ldl $LIBS"
9565if test x$gcc_no_link = xyes; then
88386050
NN
9566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9567echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9568 { (exit 1); exit 1; }; }
9569fi
9570cat >conftest.$ac_ext <<_ACEOF
9571/* confdefs.h. */
9572_ACEOF
9573cat confdefs.h >>conftest.$ac_ext
9574cat >>conftest.$ac_ext <<_ACEOF
9575/* end confdefs.h. */
9576
1cf3d07d
SE
9577/* Override any gcc2 internal prototype to avoid an error. */
9578#ifdef __cplusplus
9579extern "C"
9580#endif
9581/* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9583char dlopen ();
88386050
NN
9584int
9585main ()
9586{
1cf3d07d 9587dlopen ();
88386050
NN
9588 ;
9589 return 0;
9590}
9591_ACEOF
9592rm -f conftest.$ac_objext conftest$ac_exeext
9593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
2c888488
L
9601 { ac_try='test -z "$ac_c_werror_flag"
9602 || test ! -s conftest.err'
88386050
NN
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 (eval $ac_try) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
1cf3d07d 9614 ac_cv_lib_dl_dlopen=yes
03391b53 9615else
88386050
NN
9616 echo "$as_me: failed program was:" >&5
9617sed 's/^/| /' conftest.$ac_ext >&5
9618
1cf3d07d 9619ac_cv_lib_dl_dlopen=no
03391b53 9620fi
88386050
NN
9621rm -f conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 9623LIBS=$ac_check_lib_save_LIBS
03391b53 9624fi
1cf3d07d
SE
9625echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9626echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9627if test $ac_cv_lib_dl_dlopen = yes; then
9628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629else
88386050 9630
1cf3d07d
SE
9631 lt_cv_dlopen="dyld"
9632 lt_cv_dlopen_libs=
9633 lt_cv_dlopen_self=yes
88386050 9634
b150efee 9635fi
b150efee 9636
1cf3d07d 9637 ;;
b150efee 9638
1cf3d07d
SE
9639 *)
9640 echo "$as_me:$LINENO: checking for shl_load" >&5
9641echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9642if test "${ac_cv_func_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee 9644else
1cf3d07d
SE
9645 if test x$gcc_no_link = xyes; then
9646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9647echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9648 { (exit 1); exit 1; }; }
b150efee 9649fi
1cf3d07d
SE
9650cat >conftest.$ac_ext <<_ACEOF
9651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
9656/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9658#define shl_load innocuous_shl_load
b150efee 9659
1cf3d07d
SE
9660/* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char shl_load (); below.
9662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663 <limits.h> exists even on freestanding compilers. */
b150efee 9664
1cf3d07d
SE
9665#ifdef __STDC__
9666# include <limits.h>
9667#else
9668# include <assert.h>
9669#endif
88386050 9670
1cf3d07d 9671#undef shl_load
88386050 9672
1cf3d07d
SE
9673/* Override any gcc2 internal prototype to avoid an error. */
9674#ifdef __cplusplus
9675extern "C"
9676{
9677#endif
9678/* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680char shl_load ();
9681/* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684#if defined (__stub_shl_load) || defined (__stub___shl_load)
9685choke me
9686#else
9687char (*f) () = shl_load;
9688#endif
9689#ifdef __cplusplus
9690}
9691#endif
88386050 9692
1cf3d07d
SE
9693int
9694main ()
9695{
9696return f != shl_load;
9697 ;
9698 return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext conftest$ac_exeext
9702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
2c888488
L
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
1cf3d07d
SE
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_func_shl_load=yes
dd365157 9724else
1cf3d07d
SE
9725 echo "$as_me: failed program was:" >&5
9726sed 's/^/| /' conftest.$ac_ext >&5
9727
9728ac_cv_func_shl_load=no
dd365157 9729fi
1cf3d07d
SE
9730rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732fi
9733echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9734echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9735if test $ac_cv_func_shl_load = yes; then
9736 lt_cv_dlopen="shl_load"
9737else
9738 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9739echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9740if test "${ac_cv_lib_dld_shl_load+set}" = set; then
dd365157
MS
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
1cf3d07d
SE
9743 ac_check_lib_save_LIBS=$LIBS
9744LIBS="-ldld $LIBS"
9745if test x$gcc_no_link = xyes; then
9746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9747echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9748 { (exit 1); exit 1; }; }
9749fi
9750cat >conftest.$ac_ext <<_ACEOF
dd365157
MS
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756
1cf3d07d
SE
9757/* Override any gcc2 internal prototype to avoid an error. */
9758#ifdef __cplusplus
9759extern "C"
9760#endif
9761/* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763char shl_load ();
dd365157
MS
9764int
9765main ()
9766{
1cf3d07d 9767shl_load ();
dd365157
MS
9768 ;
9769 return 0;
9770}
9771_ACEOF
1cf3d07d
SE
9772rm -f conftest.$ac_objext conftest$ac_exeext
9773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
dd365157 9775 ac_status=$?
1cf3d07d
SE
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
dd365157
MS
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
2c888488
L
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
1cf3d07d 9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
dd365157
MS
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
dd365157
MS
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
1cf3d07d 9794 ac_cv_lib_dld_shl_load=yes
dd365157 9795else
1cf3d07d
SE
9796 echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
dd365157 9798
1cf3d07d 9799ac_cv_lib_dld_shl_load=no
b150efee 9800fi
1cf3d07d
SE
9801rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803LIBS=$ac_check_lib_save_LIBS
b150efee 9804fi
1cf3d07d
SE
9805echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9806echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9807if test $ac_cv_lib_dld_shl_load = yes; then
467b2e9e 9808 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
b150efee 9809else
1cf3d07d
SE
9810 echo "$as_me:$LINENO: checking for dlopen" >&5
9811echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9812if test "${ac_cv_func_dlopen+set}" = set; then
88386050
NN
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
1cf3d07d
SE
9815 if test x$gcc_no_link = xyes; then
9816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9817echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9818 { (exit 1); exit 1; }; }
9819fi
9820cat >conftest.$ac_ext <<_ACEOF
88386050
NN
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
1cf3d07d
SE
9826/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9828#define dlopen innocuous_dlopen
9829
9830/* System header to define __stub macros and hopefully few prototypes,
9831 which can conflict with char dlopen (); below.
9832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9833 <limits.h> exists even on freestanding compilers. */
9834
88386050
NN
9835#ifdef __STDC__
9836# include <limits.h>
9837#else
9838# include <assert.h>
9839#endif
88386050 9840
1cf3d07d 9841#undef dlopen
88386050 9842
1cf3d07d
SE
9843/* Override any gcc2 internal prototype to avoid an error. */
9844#ifdef __cplusplus
9845extern "C"
9846{
9847#endif
9848/* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9850char dlopen ();
9851/* The GNU C library defines this for functions which it implements
9852 to always fail with ENOSYS. Some functions are actually named
9853 something starting with __ and the normal name is an alias. */
9854#if defined (__stub_dlopen) || defined (__stub___dlopen)
9855choke me
9856#else
9857char (*f) () = dlopen;
9858#endif
9859#ifdef __cplusplus
9860}
9861#endif
9862
9863int
9864main ()
9865{
9866return f != dlopen;
9867 ;
9868 return 0;
9869}
88386050 9870_ACEOF
1cf3d07d
SE
9871rm -f conftest.$ac_objext conftest$ac_exeext
9872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873 (eval $ac_link) 2>conftest.er1
88386050
NN
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 9879 (exit $ac_status); } &&
2c888488
L
9880 { ac_try='test -z "$ac_c_werror_flag"
9881 || test ! -s conftest.err'
1cf3d07d
SE
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_func_dlopen=yes
88386050
NN
9894else
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
1cf3d07d 9898ac_cv_func_dlopen=no
b150efee 9899fi
1cf3d07d
SE
9900rm -f conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
b150efee 9902fi
1cf3d07d
SE
9903echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9904echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9905if test $ac_cv_func_dlopen = yes; then
9906 lt_cv_dlopen="dlopen"
b150efee 9907else
1cf3d07d
SE
9908 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9909echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9910if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912else
9913 ac_check_lib_save_LIBS=$LIBS
9914LIBS="-ldl $LIBS"
9915if test x$gcc_no_link = xyes; then
9916 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9917echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9918 { (exit 1); exit 1; }; }
b150efee 9919fi
1cf3d07d 9920cat >conftest.$ac_ext <<_ACEOF
88386050
NN
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
1cf3d07d
SE
9926
9927/* Override any gcc2 internal prototype to avoid an error. */
9928#ifdef __cplusplus
9929extern "C"
88386050 9930#endif
1cf3d07d
SE
9931/* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9933char dlopen ();
9934int
9935main ()
9936{
9937dlopen ();
9938 ;
9939 return 0;
9940}
88386050 9941_ACEOF
1cf3d07d
SE
9942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944 (eval $ac_link) 2>conftest.er1
88386050
NN
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 9950 (exit $ac_status); } &&
2c888488
L
9951 { ac_try='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
1cf3d07d
SE
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_cv_lib_dl_dlopen=yes
b150efee 9965else
88386050
NN
9966 echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
1cf3d07d 9969ac_cv_lib_dl_dlopen=no
88386050 9970fi
1cf3d07d
SE
9971rm -f conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973LIBS=$ac_check_lib_save_LIBS
9974fi
9975echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9977if test $ac_cv_lib_dl_dlopen = yes; then
9978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9979else
9980 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9981echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9982if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985 ac_check_lib_save_LIBS=$LIBS
9986LIBS="-lsvld $LIBS"
9987if test x$gcc_no_link = xyes; then
9988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9989echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9990 { (exit 1); exit 1; }; }
9991fi
9992cat >conftest.$ac_ext <<_ACEOF
88386050
NN
9993/* confdefs.h. */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
1cf3d07d
SE
9998
9999/* Override any gcc2 internal prototype to avoid an error. */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003/* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005char dlopen ();
10006int
10007main ()
10008{
10009dlopen ();
10010 ;
10011 return 0;
10012}
88386050 10013_ACEOF
1cf3d07d
SE
10014rm -f conftest.$ac_objext conftest$ac_exeext
10015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
88386050
NN
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 10022 (exit $ac_status); } &&
2c888488
L
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
1cf3d07d
SE
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_svld_dlopen=yes
88386050
NN
10037else
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
1cf3d07d 10041ac_cv_lib_svld_dlopen=no
b150efee 10042fi
1cf3d07d
SE
10043rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045LIBS=$ac_check_lib_save_LIBS
88386050 10046fi
1cf3d07d
SE
10047echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10048echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10049if test $ac_cv_lib_svld_dlopen = yes; then
10050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
88386050 10051else
1cf3d07d
SE
10052 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10053echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10054if test "${ac_cv_lib_dld_dld_link+set}" = set; then
88386050 10055 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee 10056else
1cf3d07d
SE
10057 ac_check_lib_save_LIBS=$LIBS
10058LIBS="-ldld $LIBS"
10059if test x$gcc_no_link = xyes; then
10060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10061echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10062 { (exit 1); exit 1; }; }
10063fi
10064cat >conftest.$ac_ext <<_ACEOF
88386050
NN
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
88386050 10070
1cf3d07d
SE
10071/* Override any gcc2 internal prototype to avoid an error. */
10072#ifdef __cplusplus
10073extern "C"
10074#endif
10075/* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077char dld_link ();
88386050
NN
10078int
10079main ()
10080{
1cf3d07d 10081dld_link ();
88386050
NN
10082 ;
10083 return 0;
10084}
10085_ACEOF
1cf3d07d
SE
10086rm -f conftest.$ac_objext conftest$ac_exeext
10087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
88386050
NN
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
2c888488
L
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
88386050
NN
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
1cf3d07d 10102 { ac_try='test -s conftest$ac_exeext'
88386050
NN
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
1cf3d07d 10108 ac_cv_lib_dld_dld_link=yes
b150efee 10109else
88386050
NN
10110 echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
1cf3d07d
SE
10113ac_cv_lib_dld_dld_link=no
10114fi
10115rm -f conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117LIBS=$ac_check_lib_save_LIBS
10118fi
10119echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10120echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10121if test $ac_cv_lib_dld_dld_link = yes; then
467b2e9e 10122 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
b150efee 10123fi
b150efee 10124
88386050 10125
03391b53 10126fi
1cf3d07d 10127
b150efee 10128
03391b53
AO
10129fi
10130
88386050 10131
1cf3d07d
SE
10132fi
10133
10134
10135fi
10136
10137
10138fi
10139
10140 ;;
10141 esac
10142
10143 if test "x$lt_cv_dlopen" != xno; then
10144 enable_dlopen=yes
10145 else
10146 enable_dlopen=no
10147 fi
10148
10149 case $lt_cv_dlopen in
10150 dlopen)
10151 save_CPPFLAGS="$CPPFLAGS"
10152 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10153
10154 save_LDFLAGS="$LDFLAGS"
10155 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10156
10157 save_LIBS="$LIBS"
10158 LIBS="$lt_cv_dlopen_libs $LIBS"
10159
10160 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10161echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10162if test "${lt_cv_dlopen_self+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 10164else
1cf3d07d
SE
10165 if test "$cross_compiling" = yes; then :
10166 lt_cv_dlopen_self=cross
10167else
10168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10169 lt_status=$lt_dlunknown
10170 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10171#line 10171 "configure"
1cf3d07d
SE
10172#include "confdefs.h"
10173
10174#if HAVE_DLFCN_H
10175#include <dlfcn.h>
10176#endif
10177
10178#include <stdio.h>
10179
10180#ifdef RTLD_GLOBAL
10181# define LT_DLGLOBAL RTLD_GLOBAL
10182#else
10183# ifdef DL_GLOBAL
10184# define LT_DLGLOBAL DL_GLOBAL
10185# else
10186# define LT_DLGLOBAL 0
10187# endif
10188#endif
10189
10190/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10191 find out it does not work in some platform. */
10192#ifndef LT_DLLAZY_OR_NOW
10193# ifdef RTLD_LAZY
10194# define LT_DLLAZY_OR_NOW RTLD_LAZY
10195# else
10196# ifdef DL_LAZY
10197# define LT_DLLAZY_OR_NOW DL_LAZY
10198# else
10199# ifdef RTLD_NOW
10200# define LT_DLLAZY_OR_NOW RTLD_NOW
10201# else
10202# ifdef DL_NOW
10203# define LT_DLLAZY_OR_NOW DL_NOW
10204# else
10205# define LT_DLLAZY_OR_NOW 0
10206# endif
10207# endif
10208# endif
10209# endif
10210#endif
10211
1cf3d07d
SE
10212void fnord() { int i=42;}
10213int main ()
10214{
10215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10216 int status = $lt_dlunknown;
10217
10218 if (self)
10219 {
10220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10222 /* dlclose (self); */
10223 }
10224 else
10225 puts (dlerror ());
10226
467b2e9e 10227 return status;
1cf3d07d
SE
10228}
10229_LT_EOF
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10235 (./conftest; exit; ) >&5 2>/dev/null
10236 lt_status=$?
10237 case x$lt_status in
10238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10241 esac
10242 else :
10243 # compilation failed
10244 lt_cv_dlopen_self=no
10245 fi
03391b53 10246fi
1cf3d07d
SE
10247rm -fr conftest*
10248
03391b53 10249
b150efee 10250fi
1cf3d07d
SE
10251echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10252echo "${ECHO_T}$lt_cv_dlopen_self" >&6
03391b53 10253
1cf3d07d
SE
10254 if test "x$lt_cv_dlopen_self" = xyes; then
10255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10256 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10257echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10258if test "${lt_cv_dlopen_self_static+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 10260else
1cf3d07d
SE
10261 if test "$cross_compiling" = yes; then :
10262 lt_cv_dlopen_self_static=cross
10263else
10264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10265 lt_status=$lt_dlunknown
10266 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10267#line 10267 "configure"
1cf3d07d
SE
10268#include "confdefs.h"
10269
10270#if HAVE_DLFCN_H
10271#include <dlfcn.h>
10272#endif
10273
10274#include <stdio.h>
10275
10276#ifdef RTLD_GLOBAL
10277# define LT_DLGLOBAL RTLD_GLOBAL
88386050 10278#else
1cf3d07d
SE
10279# ifdef DL_GLOBAL
10280# define LT_DLGLOBAL DL_GLOBAL
10281# else
10282# define LT_DLGLOBAL 0
10283# endif
88386050 10284#endif
03391b53 10285
1cf3d07d
SE
10286/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10287 find out it does not work in some platform. */
10288#ifndef LT_DLLAZY_OR_NOW
10289# ifdef RTLD_LAZY
10290# define LT_DLLAZY_OR_NOW RTLD_LAZY
10291# else
10292# ifdef DL_LAZY
10293# define LT_DLLAZY_OR_NOW DL_LAZY
10294# else
10295# ifdef RTLD_NOW
10296# define LT_DLLAZY_OR_NOW RTLD_NOW
10297# else
10298# ifdef DL_NOW
10299# define LT_DLLAZY_OR_NOW DL_NOW
10300# else
10301# define LT_DLLAZY_OR_NOW 0
10302# endif
10303# endif
10304# endif
10305# endif
10306#endif
10307
1cf3d07d
SE
10308void fnord() { int i=42;}
10309int main ()
88386050 10310{
1cf3d07d
SE
10311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10312 int status = $lt_dlunknown;
10313
10314 if (self)
10315 {
10316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10317 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10318 /* dlclose (self); */
10319 }
10320 else
10321 puts (dlerror ());
10322
467b2e9e 10323 return status;
88386050 10324}
1cf3d07d
SE
10325_LT_EOF
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
88386050
NN
10327 (eval $ac_link) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10330 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10331 (./conftest; exit; ) >&5 2>/dev/null
10332 lt_status=$?
10333 case x$lt_status in
10334 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10335 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10336 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10337 esac
10338 else :
10339 # compilation failed
10340 lt_cv_dlopen_self_static=no
10341 fi
03391b53 10342fi
1cf3d07d
SE
10343rm -fr conftest*
10344
10345
03391b53 10346fi
1cf3d07d
SE
10347echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10348echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10349 fi
10350
10351 CPPFLAGS="$save_CPPFLAGS"
10352 LDFLAGS="$save_LDFLAGS"
10353 LIBS="$save_LIBS"
10354 ;;
10355 esac
10356
10357 case $lt_cv_dlopen_self in
10358 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10359 *) enable_dlopen_self=unknown ;;
10360 esac
10361
10362 case $lt_cv_dlopen_self_static in
10363 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10364 *) enable_dlopen_self_static=unknown ;;
10365 esac
b150efee 10366fi
1cf3d07d
SE
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384striplib=
10385old_striplib=
10386echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10387echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10388if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10391 echo "$as_me:$LINENO: result: yes" >&5
10392echo "${ECHO_T}yes" >&6
10393else
10394# FIXME - insert some real tests, host_os isn't really good enough
10395 case $host_os in
10396 darwin*)
10397 if test -n "$STRIP" ; then
10398 striplib="$STRIP -x"
10399 old_striplib="$STRIP -S"
10400 echo "$as_me:$LINENO: result: yes" >&5
10401echo "${ECHO_T}yes" >&6
10402 else
10403 echo "$as_me:$LINENO: result: no" >&5
10404echo "${ECHO_T}no" >&6
10405 fi
10406 ;;
10407 *)
10408 echo "$as_me:$LINENO: result: no" >&5
10409echo "${ECHO_T}no" >&6
10410 ;;
10411 esac
b150efee 10412fi
88386050 10413
1cf3d07d
SE
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425 # Report which library types will actually be built
10426 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10427echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10428 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10429echo "${ECHO_T}$can_build_shared" >&6
10430
10431 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10432echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10433 test "$can_build_shared" = "no" && enable_shared=no
10434
10435 # On AIX, shared libraries and static libraries use the same namespace, and
10436 # are all built from PIC.
10437 case $host_os in
10438 aix3*)
10439 test "$enable_shared" = yes && enable_static=no
10440 if test -n "$RANLIB"; then
10441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10442 postinstall_cmds='$RANLIB $lib'
10443 fi
10444 ;;
10445
e7ad4ca7 10446 aix[4-9]*)
1cf3d07d
SE
10447 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10448 test "$enable_shared" = yes && enable_static=no
10449 fi
10450 ;;
10451 esac
10452 echo "$as_me:$LINENO: result: $enable_shared" >&5
10453echo "${ECHO_T}$enable_shared" >&6
10454
10455 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10456echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10457 # Make sure either enable_shared or enable_static is yes.
10458 test "$enable_shared" = yes || enable_static=yes
10459 echo "$as_me:$LINENO: result: $enable_static" >&5
10460echo "${ECHO_T}$enable_static" >&6
10461
10462
10463
b150efee
FS
10464
10465fi
1cf3d07d
SE
10466ac_ext=c
10467ac_cpp='$CPP $CPPFLAGS'
10468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470ac_compiler_gnu=$ac_cv_c_compiler_gnu
b150efee 10471
1cf3d07d 10472CC="$lt_save_CC"
b150efee 10473
88386050
NN
10474
10475
10476
10477
10478
10479
10480
10481
1cf3d07d
SE
10482
10483
10484
10485
10486 ac_config_commands="$ac_config_commands libtool"
10487
10488
10489
10490
10491# Only expand once:
10492
10493
10494
10495if test "x$CC" != xcc; then
10496 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
10497echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
10498else
10499 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
10500echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
10501fi
10502set dummy $CC; ac_cc=`echo $2 |
10503 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10504if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
88386050
NN
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506else
10507 cat >conftest.$ac_ext <<_ACEOF
10508/* confdefs.h. */
10509_ACEOF
10510cat confdefs.h >>conftest.$ac_ext
10511cat >>conftest.$ac_ext <<_ACEOF
10512/* end confdefs.h. */
88386050 10513
1cf3d07d
SE
10514int
10515main ()
10516{
10517
10518 ;
10519 return 0;
10520}
88386050 10521_ACEOF
1cf3d07d
SE
10522# Make sure it works both with $CC and with simple cc.
10523# We do the test twice because some compilers refuse to overwrite an
10524# existing .o file with -o, though they will create one.
10525ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
10526if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
88386050 10528 ac_status=$?
88386050
NN
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
1cf3d07d 10531 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
88386050
NN
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10535 (exit $ac_status); };
10536then
10537 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10538 if test "x$CC" != xcc; then
10539 # Test first that cc exists at all.
10540 if { ac_try='cc -c conftest.$ac_ext >&5'
88386050
NN
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
1cf3d07d
SE
10546 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
10547 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); };
10557 then
10558 # cc works too.
10559 :
10560 else
10561 # cc exists but doesn't like -o.
10562 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10563 fi
10564 fi
10565 fi
88386050 10566else
1cf3d07d
SE
10567 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10568fi
10569rm -f conftest*
10570
10571fi
10572if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
10573 echo "$as_me:$LINENO: result: yes" >&5
10574echo "${ECHO_T}yes" >&6
10575else
10576 echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6
10578
10579cat >>confdefs.h <<\_ACEOF
10580#define NO_MINUS_C_MINUS_O 1
10581_ACEOF
10582
10583fi
10584
10585# expand $ac_aux_dir to an absolute path
10586am_aux_dir=`cd $ac_aux_dir && pwd`
10587
10588# FIXME: we rely on the cache variable name because
10589# there is no other way.
10590set dummy $CC
10591ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10592if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
10593 # Losing compiler, so override with the script.
10594 # FIXME: It is wrong to rewrite CC.
10595 # But if we don't then we get into trouble of one sort or another.
10596 # A longer-term fix would be to have automake use am__CC in this case,
10597 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10598 CC="$am_aux_dir/compile $CC"
10599fi
88386050 10600
1cf3d07d
SE
10601
10602echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10603echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
10604set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
10605if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607else
10608 cat >conftest.make <<\_ACEOF
10609all:
10610 @echo 'ac_maketemp="$(MAKE)"'
10611_ACEOF
10612# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10613eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10614if test -n "$ac_maketemp"; then
10615 eval ac_cv_prog_make_${ac_make}_set=yes
10616else
10617 eval ac_cv_prog_make_${ac_make}_set=no
88386050 10618fi
1cf3d07d 10619rm -f conftest.make
88386050 10620fi
1cf3d07d
SE
10621if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
10622 echo "$as_me:$LINENO: result: yes" >&5
10623echo "${ECHO_T}yes" >&6
10624 SET_MAKE=
10625else
10626 echo "$as_me:$LINENO: result: no" >&5
10627echo "${ECHO_T}no" >&6
10628 SET_MAKE="MAKE=${MAKE-make}"
88386050
NN
10629fi
10630
88386050 10631
1cf3d07d
SE
10632# -------
10633# Headers
10634# -------
88386050 10635
1cf3d07d 10636# Sanity check for the cross-compilation case:
88386050
NN
10637if test "${ac_cv_header_stdio_h+set}" = set; then
10638 echo "$as_me:$LINENO: checking for stdio.h" >&5
10639echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10640if test "${ac_cv_header_stdio_h+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642fi
10643echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10644echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10645else
10646 # Is the header compilable?
10647echo "$as_me:$LINENO: checking stdio.h usability" >&5
10648echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
10649cat >conftest.$ac_ext <<_ACEOF
10650/* confdefs.h. */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h. */
10655$ac_includes_default
10656#include <stdio.h>
10657_ACEOF
10658rm -f conftest.$ac_objext
10659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>conftest.er1
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
2c888488
L
10667 { ac_try='test -z "$ac_c_werror_flag"
10668 || test ! -s conftest.err'
88386050
NN
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; } &&
10674 { ac_try='test -s conftest.$ac_objext'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; }; then
10680 ac_header_compiler=yes
10681else
10682 echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
10685ac_header_compiler=no
10686fi
10687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10688echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10689echo "${ECHO_T}$ac_header_compiler" >&6
10690
10691# Is the header present?
10692echo "$as_me:$LINENO: checking stdio.h presence" >&5
10693echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
10694cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h. */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h. */
10700#include <stdio.h>
10701_ACEOF
10702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev/null; then
10710 if test -s conftest.err; then
10711 ac_cpp_err=$ac_c_preproc_warn_flag
10712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10713 else
10714 ac_cpp_err=
10715 fi
03391b53 10716else
88386050
NN
10717 ac_cpp_err=yes
10718fi
10719if test -z "$ac_cpp_err"; then
10720 ac_header_preproc=yes
10721else
10722 echo "$as_me: failed program was:" >&5
10723sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_header_preproc=no
10726fi
10727rm -f conftest.err conftest.$ac_ext
10728echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729echo "${ECHO_T}$ac_header_preproc" >&6
10730
10731# So? What about this header?
10732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10733 yes:no: )
10734 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10735echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
10737echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
10738 ac_header_preproc=yes
10739 ;;
10740 no:yes:* )
10741 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
10742echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
10744echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
10746echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
10748echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
10750echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
10752echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
10753 (
10754 cat <<\_ASBOX
684c64bf
AP
10755## ----------------------------------------- ##
10756## Report this to the package-unused lists. ##
10757## ----------------------------------------- ##
88386050
NN
10758_ASBOX
10759 ) |
10760 sed "s/^/$as_me: WARNING: /" >&2
10761 ;;
10762esac
10763echo "$as_me:$LINENO: checking for stdio.h" >&5
10764echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10765if test "${ac_cv_header_stdio_h+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767else
10768 ac_cv_header_stdio_h=$ac_header_preproc
10769fi
10770echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10771echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10772
10773fi
10774if test $ac_cv_header_stdio_h = yes; then
10775 :
10776else
10777 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
10778You must have a usable C system for the target already installed, at least
10779including headers and, preferably, the library, before you can configure
10780the Objective C runtime system. If necessary, install gcc now with
10781\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
10782echo "$as_me: error: Can't find stdio.h.
10783You must have a usable C system for the target already installed, at least
10784including headers and, preferably, the library, before you can configure
10785the Objective C runtime system. If necessary, install gcc now with
10786\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
10787 { (exit 1); exit 1; }; }
10788fi
10789
10790
10791
10792echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10793echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10794if test "${ac_cv_header_stdc+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 cat >conftest.$ac_ext <<_ACEOF
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
10803#include <stdlib.h>
10804#include <stdarg.h>
10805#include <string.h>
10806#include <float.h>
10807
10808int
10809main ()
10810{
10811
10812 ;
10813 return 0;
10814}
10815_ACEOF
10816rm -f conftest.$ac_objext
10817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
2c888488
L
10825 { ac_try='test -z "$ac_c_werror_flag"
10826 || test ! -s conftest.err'
88386050
NN
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try='test -s conftest.$ac_objext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_cv_header_stdc=yes
10839else
10840 echo "$as_me: failed program was:" >&5
10841sed 's/^/| /' conftest.$ac_ext >&5
10842
10843ac_cv_header_stdc=no
10844fi
10845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10846
10847if test $ac_cv_header_stdc = yes; then
10848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10849 cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
10855#include <string.h>
10856
10857_ACEOF
10858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10859 $EGREP "memchr" >/dev/null 2>&1; then
10860 :
10861else
10862 ac_cv_header_stdc=no
03391b53
AO
10863fi
10864rm -f conftest*
88386050 10865
03391b53 10866fi
88386050
NN
10867
10868if test $ac_cv_header_stdc = yes; then
10869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10870 cat >conftest.$ac_ext <<_ACEOF
10871/* confdefs.h. */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h. */
10876#include <stdlib.h>
10877
10878_ACEOF
10879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10880 $EGREP "free" >/dev/null 2>&1; then
10881 :
10882else
10883 ac_cv_header_stdc=no
10884fi
10885rm -f conftest*
10886
10887fi
10888
10889if test $ac_cv_header_stdc = yes; then
10890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10891 if test "$cross_compiling" = yes; then
10892 :
10893else
10894 cat >conftest.$ac_ext <<_ACEOF
10895/* confdefs.h. */
10896_ACEOF
10897cat confdefs.h >>conftest.$ac_ext
10898cat >>conftest.$ac_ext <<_ACEOF
10899/* end confdefs.h. */
10900#include <ctype.h>
10901#if ((' ' & 0x0FF) == 0x020)
10902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10904#else
10905# define ISLOWER(c) \
10906 (('a' <= (c) && (c) <= 'i') \
10907 || ('j' <= (c) && (c) <= 'r') \
10908 || ('s' <= (c) && (c) <= 'z'))
10909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10910#endif
10911
10912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10913int
10914main ()
10915{
10916 int i;
10917 for (i = 0; i < 256; i++)
10918 if (XOR (islower (i), ISLOWER (i))
10919 || toupper (i) != TOUPPER (i))
10920 exit(2);
10921 exit (0);
10922}
10923_ACEOF
10924rm -f conftest$ac_exeext
10925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 :
10936else
10937 echo "$as_me: program exited with status $ac_status" >&5
10938echo "$as_me: failed program was:" >&5
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941( exit $ac_status )
10942ac_cv_header_stdc=no
10943fi
10944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10945fi
10946fi
10947fi
10948echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10949echo "${ECHO_T}$ac_cv_header_stdc" >&6
10950if test $ac_cv_header_stdc = yes; then
10951
10952cat >>confdefs.h <<\_ACEOF
10953#define STDC_HEADERS 1
10954_ACEOF
10955
10956fi
10957
10958
10959
10960for ac_header in sched.h
10961do
10962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963if eval "test \"\${$as_ac_Header+set}\" = set"; then
10964 echo "$as_me:$LINENO: checking for $ac_header" >&5
10965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10966if eval "test \"\${$as_ac_Header+set}\" = set"; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968fi
10969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10971else
10972 # Is the header compilable?
10973echo "$as_me:$LINENO: checking $ac_header usability" >&5
10974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10975cat >conftest.$ac_ext <<_ACEOF
10976/* confdefs.h. */
10977_ACEOF
10978cat confdefs.h >>conftest.$ac_ext
10979cat >>conftest.$ac_ext <<_ACEOF
10980/* end confdefs.h. */
10981$ac_includes_default
10982#include <$ac_header>
10983_ACEOF
10984rm -f conftest.$ac_objext
10985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
2c888488
L
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
88386050
NN
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_header_compiler=yes
11007else
11008 echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5
11010
11011ac_header_compiler=no
11012fi
11013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11015echo "${ECHO_T}$ac_header_compiler" >&6
11016
11017# Is the header present?
11018echo "$as_me:$LINENO: checking $ac_header presence" >&5
11019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11020cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026#include <$ac_header>
11027_ACEOF
11028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } >/dev/null; then
11036 if test -s conftest.err; then
11037 ac_cpp_err=$ac_c_preproc_warn_flag
11038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11039 else
11040 ac_cpp_err=
11041 fi
11042else
11043 ac_cpp_err=yes
11044fi
11045if test -z "$ac_cpp_err"; then
11046 ac_header_preproc=yes
11047else
11048 echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_header_preproc=no
11052fi
11053rm -f conftest.err conftest.$ac_ext
11054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11055echo "${ECHO_T}$ac_header_preproc" >&6
11056
11057# So? What about this header?
11058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11059 yes:no: )
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11063echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11064 ac_header_preproc=yes
11065 ;;
11066 no:yes:* )
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11072echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11074echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11078echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11079 (
11080 cat <<\_ASBOX
684c64bf
AP
11081## ----------------------------------------- ##
11082## Report this to the package-unused lists. ##
11083## ----------------------------------------- ##
88386050
NN
11084_ASBOX
11085 ) |
11086 sed "s/^/$as_me: WARNING: /" >&2
11087 ;;
11088esac
11089echo "$as_me:$LINENO: checking for $ac_header" >&5
11090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11091if eval "test \"\${$as_ac_Header+set}\" = set"; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 11093else
88386050 11094 eval "$as_ac_Header=\$ac_header_preproc"
03391b53 11095fi
88386050
NN
11096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11098
11099fi
11100if test `eval echo '${'$as_ac_Header'}'` = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11103_ACEOF
11104
11105fi
11106
b150efee 11107done
bce1b489 11108
03391b53 11109
252dde64
NN
11110# -----------
11111# Miscellanea
11112# -----------
11113
6886e18e
AP
11114echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11115echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11116target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11117echo "$as_me:$LINENO: result: $target_thread_file" >&5
11118echo "${ECHO_T}$target_thread_file" >&6
11119
11120if test $target_thread_file != single; then
11121
11122cat >>confdefs.h <<\_ACEOF
11123#define HAVE_GTHR_DEFAULT 1
11124_ACEOF
11125
03391b53 11126fi
03391b53 11127
c161c99b 11128
049bc404
AP
11129echo "$as_me:$LINENO: checking for exception model to use" >&5
11130echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
11131ac_ext=c
11132ac_cpp='$CPP $CPPFLAGS'
11133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135ac_compiler_gnu=$ac_cv_c_compiler_gnu
11136
11137# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11138if test "${enable_sjlj_exceptions+set}" = set; then
11139 enableval="$enable_sjlj_exceptions"
11140 :
11141else
11142 cat > conftest.$ac_ext << EOF
baafc534 11143#line 11143 "configure"
049bc404
AP
11144@interface Frob
11145@end
11146@implementation Frob
11147@end
11148int proc();
11149int foo()
11150{
11151 @try {
11152 return proc();
11153 }
11154 @catch (Frob* ex) {
11155 return 0;
11156 }
11157}
11158EOF
11159old_CFLAGS="$CFLAGS"
11160CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; then
11166 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
11167 enable_sjlj_exceptions=yes
11168 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
11169 enable_sjlj_exceptions=no
11170 fi
11171fi
11172CFLAGS="$old_CFLAGS"
11173rm -f conftest*
11174fi;
11175if test x$enable_sjlj_exceptions = xyes; then
11176
11177cat >>confdefs.h <<\_ACEOF
11178#define SJLJ_EXCEPTIONS 1
11179_ACEOF
11180
11181 ac_exception_model_name=sjlj
11182elif test x$enable_sjlj_exceptions = xno; then
11183 ac_exception_model_name="call frame"
11184else
11185 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
11186echo "$as_me: error: unable to detect exception model" >&2;}
11187 { (exit 1); exit 1; }; }
11188fi
11189ac_ext=c
11190ac_cpp='$CPP $CPPFLAGS'
11191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193ac_compiler_gnu=$ac_cv_c_compiler_gnu
11194
11195echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
11196echo "${ECHO_T}$ac_exception_model_name" >&6
11197
252dde64
NN
11198# ------
11199# Output
11200# ------
03391b53 11201
2c888488
L
11202if test ${multilib} = yes; then
11203 multilib_arg="--enable-multilib"
11204else
11205 multilib_arg=
11206fi
252dde64 11207
2c888488 11208 ac_config_files="$ac_config_files Makefile"
252dde64 11209
88386050 11210cat >confcache <<\_ACEOF
bce1b489
BE
11211# This file is a shell script that caches the results of configure
11212# tests run on this system so they can be shared between configure
88386050
NN
11213# scripts and configure runs, see configure's option --config-cache.
11214# It is not useful on other systems. If it contains results you don't
11215# want to keep, you may remove or edit it.
bce1b489 11216#
88386050
NN
11217# config.status only pays attention to the cache file if you give it
11218# the --recheck option to rerun configure.
bce1b489 11219#
88386050
NN
11220# `ac_cv_env_foo' variables (set or unset) will be overridden when
11221# loading this file, other *unset* `ac_cv_foo' will be assigned the
11222# following values.
11223
11224_ACEOF
11225
bce1b489
BE
11226# The following way of writing the cache mishandles newlines in values,
11227# but we know of no workaround that is simple, portable, and efficient.
11228# So, don't put newlines in cache variables' values.
11229# Ultrix sh set writes to stderr and can't be redirected directly,
11230# and sets the high bit in the cache file unless we assign to the vars.
88386050
NN
11231{
11232 (set) 2>&1 |
11233 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11234 *ac_space=\ *)
11235 # `set' does not quote correctly, so add quotes (double-quote
11236 # substitution turns \\\\ into \\, and sed turns \\ into \).
11237 sed -n \
11238 "s/'/'\\\\''/g;
11239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11240 ;;
11241 *)
11242 # `set' quotes correctly as required by POSIX, so do not add quotes.
11243 sed -n \
11244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11245 ;;
11246 esac;
11247} |
11248 sed '
11249 t clear
11250 : clear
11251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11252 t end
11253 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11254 : end' >>confcache
11255if diff $cache_file confcache >/dev/null 2>&1; then :; else
bce1b489 11256 if test -w $cache_file; then
88386050
NN
11257 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11258 cat confcache >$cache_file
bce1b489
BE
11259 else
11260 echo "not updating unwritable cache $cache_file"
11261 fi
11262fi
11263rm -f confcache
03391b53 11264
bce1b489
BE
11265test "x$prefix" = xNONE && prefix=$ac_default_prefix
11266# Let make expand exec_prefix.
11267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11268
88386050
NN
11269# VPATH may cause trouble with some makes, so we remove $(srcdir),
11270# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11271# trailing colons and then remove the whole line if VPATH becomes empty
11272# (actually we leave an empty line to preserve line numbers).
bce1b489 11273if test "x$srcdir" = x.; then
88386050
NN
11274 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11275s/:*\$(srcdir):*/:/;
11276s/:*\${srcdir}:*/:/;
11277s/:*@srcdir@:*/:/;
11278s/^\([^=]*=[ ]*\):*/\1/;
11279s/:*$//;
11280s/^[^=]*=[ ]*$//;
11281}'
bce1b489
BE
11282fi
11283
049bc404 11284DEFS=-DHAVE_CONFIG_H
bce1b489 11285
88386050
NN
11286ac_libobjs=
11287ac_ltlibobjs=
11288for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11289 # 1. Remove the extension, and $U if already installed.
11290 ac_i=`echo "$ac_i" |
11291 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11292 # 2. Add them.
11293 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11294 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11295done
11296LIBOBJS=$ac_libobjs
03391b53 11297
88386050
NN
11298LTLIBOBJS=$ac_ltlibobjs
11299
11300
dd365157
MS
11301if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11302 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11303Usually this means the macro was only invoked conditionally." >&5
11304echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11305Usually this means the macro was only invoked conditionally." >&2;}
11306 { (exit 1); exit 1; }; }
11307fi
88386050
NN
11308
11309: ${CONFIG_STATUS=./config.status}
11310ac_clean_files_save=$ac_clean_files
11311ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11312{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11313echo "$as_me: creating $CONFIG_STATUS" >&6;}
11314cat >$CONFIG_STATUS <<_ACEOF
11315#! $SHELL
11316# Generated by $as_me.
bce1b489 11317# Run this file to recreate the current configuration.
bce1b489 11318# Compiler output produced by configure, useful for debugging
88386050 11319# configure, is in config.log if it exists.
bce1b489 11320
88386050
NN
11321debug=false
11322ac_cs_recheck=false
11323ac_cs_silent=false
11324SHELL=\${CONFIG_SHELL-$SHELL}
11325_ACEOF
11326
11327cat >>$CONFIG_STATUS <<\_ACEOF
11328## --------------------- ##
11329## M4sh Initialization. ##
11330## --------------------- ##
11331
11332# Be Bourne compatible
11333if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11334 emulate sh
11335 NULLCMD=:
11336 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11337 # is contrary to our usage. Disable this feature.
11338 alias -g '${1+"$@"}'='"$@"'
11339elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11340 set -o posix
11341fi
11342DUALCASE=1; export DUALCASE # for MKS sh
11343
11344# Support unset when possible.
11345if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11346 as_unset=unset
11347else
11348 as_unset=false
11349fi
11350
11351
11352# Work around bugs in pre-3.0 UWIN ksh.
11353$as_unset ENV MAIL MAILPATH
11354PS1='$ '
11355PS2='> '
11356PS4='+ '
11357
11358# NLS nuisances.
11359for as_var in \
11360 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11361 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11362 LC_TELEPHONE LC_TIME
bce1b489 11363do
88386050
NN
11364 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11365 eval $as_var=C; export $as_var
11366 else
11367 $as_unset $as_var
11368 fi
bce1b489
BE
11369done
11370
88386050
NN
11371# Required to use basename.
11372if expr a : '\(a\)' >/dev/null 2>&1; then
11373 as_expr=expr
11374else
11375 as_expr=false
11376fi
162f5967 11377
88386050
NN
11378if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11379 as_basename=basename
11380else
11381 as_basename=false
11382fi
162f5967 11383
bce1b489 11384
88386050
NN
11385# Name of the executable.
11386as_me=`$as_basename "$0" ||
11387$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11388 X"$0" : 'X\(//\)$' \| \
11389 X"$0" : 'X\(/\)$' \| \
11390 . : '\(.\)' 2>/dev/null ||
11391echo X/"$0" |
11392 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11393 /^X\/\(\/\/\)$/{ s//\1/; q; }
11394 /^X\/\(\/\).*/{ s//\1/; q; }
11395 s/.*/./; q'`
11396
bce1b489 11397
88386050
NN
11398# PATH needs CR, and LINENO needs CR and PATH.
11399# Avoid depending upon Character Ranges.
11400as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11401as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11402as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11403as_cr_digits='0123456789'
11404as_cr_alnum=$as_cr_Letters$as_cr_digits
11405
11406# The user is always right.
11407if test "${PATH_SEPARATOR+set}" != set; then
11408 echo "#! /bin/sh" >conf$$.sh
11409 echo "exit 0" >>conf$$.sh
11410 chmod +x conf$$.sh
11411 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11412 PATH_SEPARATOR=';'
03391b53 11413 else
88386050
NN
11414 PATH_SEPARATOR=:
11415 fi
11416 rm -f conf$$.sh
11417fi
11418
11419
11420 as_lineno_1=$LINENO
11421 as_lineno_2=$LINENO
11422 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11423 test "x$as_lineno_1" != "x$as_lineno_2" &&
11424 test "x$as_lineno_3" = "x$as_lineno_2" || {
11425 # Find who we are. Look in the path if we contain no path at all
11426 # relative or not.
11427 case $0 in
11428 *[\\/]* ) as_myself=$0 ;;
11429 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430for as_dir in $PATH
11431do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11435done
11436
11437 ;;
11438 esac
11439 # We did not find ourselves, most probably we were run as `sh COMMAND'
11440 # in which case we are not to be found in the path.
11441 if test "x$as_myself" = x; then
11442 as_myself=$0
03391b53 11443 fi
88386050
NN
11444 if test ! -f "$as_myself"; then
11445 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11446echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11447 { (exit 1); exit 1; }; }
11448 fi
11449 case $CONFIG_SHELL in
11450 '')
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11453do
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for as_base in sh bash ksh sh5; do
11457 case $as_dir in
11458 /*)
11459 if ("$as_dir/$as_base" -c '
11460 as_lineno_1=$LINENO
11461 as_lineno_2=$LINENO
11462 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11463 test "x$as_lineno_1" != "x$as_lineno_2" &&
11464 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11465 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11466 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11467 CONFIG_SHELL=$as_dir/$as_base
11468 export CONFIG_SHELL
11469 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11470 fi;;
11471 esac
11472 done
11473done
11474;;
11475 esac
11476
11477 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11478 # uniformly replaced by the line number. The first 'sed' inserts a
11479 # line-number line before each line; the second 'sed' does the real
11480 # work. The second script uses 'N' to pair each line-number line
11481 # with the numbered line, and appends trailing '-' during
11482 # substitution so that $LINENO is not a special case at line end.
11483 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11484 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11485 sed '=' <$as_myself |
11486 sed '
11487 N
11488 s,$,-,
11489 : loop
11490 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11491 t loop
11492 s,-$,,
11493 s,^['$as_cr_digits']*\n,,
11494 ' >$as_me.lineno &&
11495 chmod +x $as_me.lineno ||
11496 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11497echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11498 { (exit 1); exit 1; }; }
11499
11500 # Don't try to exec as it changes $[0], causing all sort of problems
11501 # (the dirname of $[0] is not the place where we might find the
11502 # original and so on. Autoconf is especially sensible to this).
11503 . ./$as_me.lineno
11504 # Exit status is that of the last command.
11505 exit
11506}
11507
11508
11509case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11510 *c*,-n*) ECHO_N= ECHO_C='
11511' ECHO_T=' ' ;;
11512 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11513 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11514esac
11515
11516if expr a : '\(a\)' >/dev/null 2>&1; then
11517 as_expr=expr
11518else
11519 as_expr=false
11520fi
11521
11522rm -f conf$$ conf$$.exe conf$$.file
11523echo >conf$$.file
11524if ln -s conf$$.file conf$$ 2>/dev/null; then
11525 # We could just check for DJGPP; but this test a) works b) is more generic
11526 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11527 if test -f conf$$.exe; then
11528 # Don't use ln at all; we don't have any links
11529 as_ln_s='cp -p'
03391b53 11530 else
88386050 11531 as_ln_s='ln -s'
bce1b489 11532 fi
88386050
NN
11533elif ln conf$$.file conf$$ 2>/dev/null; then
11534 as_ln_s=ln
11535else
11536 as_ln_s='cp -p'
11537fi
11538rm -f conf$$ conf$$.exe conf$$.file
11539
11540if mkdir -p . 2>/dev/null; then
11541 as_mkdir_p=:
11542else
11543 test -d ./-p && rmdir ./-p
11544 as_mkdir_p=false
11545fi
11546
11547as_executable_p="test -f"
11548
11549# Sed expression to map a string onto a valid CPP name.
11550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11551
11552# Sed expression to map a string onto a valid variable name.
11553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11554
11555
11556# IFS
11557# We need space, tab and new line, in precisely that order.
11558as_nl='
11559'
11560IFS=" $as_nl"
11561
11562# CDPATH.
11563$as_unset CDPATH
11564
11565exec 6>&1
11566
11567# Open the log real soon, to keep \$[0] and so on meaningful, and to
11568# report actual input values of CONFIG_FILES etc. instead of their
11569# values after options handling. Logging --version etc. is OK.
11570exec 5>>config.log
11571{
11572 echo
11573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11574## Running $as_me. ##
11575_ASBOX
11576} >&5
11577cat >&5 <<_CSEOF
11578
684c64bf 11579This file was extended by package-unused $as_me version-unused, which was
88386050
NN
11580generated by GNU Autoconf 2.59. Invocation command line was
11581
11582 CONFIG_FILES = $CONFIG_FILES
11583 CONFIG_HEADERS = $CONFIG_HEADERS
11584 CONFIG_LINKS = $CONFIG_LINKS
11585 CONFIG_COMMANDS = $CONFIG_COMMANDS
11586 $ $0 $@
11587
11588_CSEOF
11589echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11590echo >&5
11591_ACEOF
11592
11593# Files that config.status was made for.
11594if test -n "$ac_config_files"; then
11595 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11596fi
11597
11598if test -n "$ac_config_headers"; then
11599 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11600fi
11601
11602if test -n "$ac_config_links"; then
11603 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11604fi
11605
11606if test -n "$ac_config_commands"; then
11607 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11608fi
11609
11610cat >>$CONFIG_STATUS <<\_ACEOF
11611
11612ac_cs_usage="\
11613\`$as_me' instantiates files from templates according to the
11614current configuration.
11615
11616Usage: $0 [OPTIONS] [FILE]...
11617
11618 -h, --help print this help, then exit
11619 -V, --version print version number, then exit
11620 -q, --quiet do not print progress messages
11621 -d, --debug don't remove temporary files
11622 --recheck update $as_me by reconfiguring in the same conditions
11623 --file=FILE[:TEMPLATE]
11624 instantiate the configuration file FILE
049bc404
AP
11625 --header=FILE[:TEMPLATE]
11626 instantiate the configuration header FILE
88386050
NN
11627
11628Configuration files:
11629$config_files
11630
049bc404
AP
11631Configuration headers:
11632$config_headers
11633
88386050
NN
11634Configuration commands:
11635$config_commands
11636
11637Report bugs to <bug-autoconf@gnu.org>."
11638_ACEOF
11639
11640cat >>$CONFIG_STATUS <<_ACEOF
11641ac_cs_version="\\
684c64bf 11642package-unused config.status version-unused
88386050
NN
11643configured by $0, generated by GNU Autoconf 2.59,
11644 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11645
11646Copyright (C) 2003 Free Software Foundation, Inc.
11647This config.status script is free software; the Free Software Foundation
11648gives unlimited permission to copy, distribute and modify it."
11649srcdir=$srcdir
11650INSTALL="$INSTALL"
11651_ACEOF
11652
11653cat >>$CONFIG_STATUS <<\_ACEOF
11654# If no file are specified by the user, then we need to provide default
11655# value. By we need to know if files were specified by the user.
11656ac_need_defaults=:
11657while test $# != 0
11658do
11659 case $1 in
11660 --*=*)
11661 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11662 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11663 ac_shift=:
11664 ;;
11665 -*)
11666 ac_option=$1
11667 ac_optarg=$2
11668 ac_shift=shift
11669 ;;
11670 *) # This is not an option, so the user has probably given explicit
11671 # arguments.
11672 ac_option=$1
11673 ac_need_defaults=false;;
11674 esac
11675
11676 case $ac_option in
11677 # Handling of the options.
11678_ACEOF
11679cat >>$CONFIG_STATUS <<\_ACEOF
11680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11681 ac_cs_recheck=: ;;
11682 --version | --vers* | -V )
11683 echo "$ac_cs_version"; exit 0 ;;
11684 --he | --h)
11685 # Conflict between --help and --header
11686 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11687Try \`$0 --help' for more information." >&5
11688echo "$as_me: error: ambiguous option: $1
11689Try \`$0 --help' for more information." >&2;}
11690 { (exit 1); exit 1; }; };;
11691 --help | --hel | -h )
11692 echo "$ac_cs_usage"; exit 0 ;;
11693 --debug | --d* | -d )
11694 debug=: ;;
11695 --file | --fil | --fi | --f )
11696 $ac_shift
11697 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11698 ac_need_defaults=false;;
11699 --header | --heade | --head | --hea )
11700 $ac_shift
11701 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11702 ac_need_defaults=false;;
11703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11705 ac_cs_silent=: ;;
11706
11707 # This is an error.
11708 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11709Try \`$0 --help' for more information." >&5
11710echo "$as_me: error: unrecognized option: $1
11711Try \`$0 --help' for more information." >&2;}
11712 { (exit 1); exit 1; }; } ;;
11713
11714 *) ac_config_targets="$ac_config_targets $1" ;;
11715
11716 esac
11717 shift
03391b53 11718done
88386050
NN
11719
11720ac_configure_extra_args=
11721
11722if $ac_cs_silent; then
11723 exec 6>/dev/null
11724 ac_configure_extra_args="$ac_configure_extra_args --silent"
03391b53 11725fi
bce1b489 11726
88386050
NN
11727_ACEOF
11728cat >>$CONFIG_STATUS <<_ACEOF
11729if \$ac_cs_recheck; then
11730 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11731 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11732fi
03391b53 11733
88386050
NN
11734_ACEOF
11735
11736cat >>$CONFIG_STATUS <<_ACEOF
11737#
11738# INIT-COMMANDS section.
11739#
11740
5b043f08
GK
11741
11742srcdir="$srcdir"
11743host="$host"
11744target="$target"
11745with_multisubdir="$with_multisubdir"
11746with_multisrctop="$with_multisrctop"
11747with_target_subdir="$with_target_subdir"
11748ac_configure_args="${multilib_arg} ${ac_configure_args}"
11749multi_basedir="$multi_basedir"
11750CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11751CC="$CC"
1cf3d07d
SE
11752
11753
11754# The HP-UX ksh and POSIX shell print the target directory to stdout
11755# if CDPATH is set.
11756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11757
11758sed_quote_subst='$sed_quote_subst'
11759double_quote_subst='$double_quote_subst'
11760delay_variable_subst='$delay_variable_subst'
11761AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11762DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11763OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11764macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11765macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11766enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11767enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11768pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11769enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11770host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11771host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11772host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11773build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11774build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11775build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11776SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11777Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11778GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11779EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11780FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11781LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11782NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11783LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11784max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11785ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11786exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11787lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11788lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11789lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11790reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11791reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11792deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11793file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11794AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11795AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11796STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11797RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11798old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11799old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11800old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11801CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11802CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11803compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11804GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11805lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11806lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11807lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
467b2e9e 11808lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
11809objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11810SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11811ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11812MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11813lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11814lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11815lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11816lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11817lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11818need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
467b2e9e
PG
11819DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11820NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11821LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11822OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11823OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
11824libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11825shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11826extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11827archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11828enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11829export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11830whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11831compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11832old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11833old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11834archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11835archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11836module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11837module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11838with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11839allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11840no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11841hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11842hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11843hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11844hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11845hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11846hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11847hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11848hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11849inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11850link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11851fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11852always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11853export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11854exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11855include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11856prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11857file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11858variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11859need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11860need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11861version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11862runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11863shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11864shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11865libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11866library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11867soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11868postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11869postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11870finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11871finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11872hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11873sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11874sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11875hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11876enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11877enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11878enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11879old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11880striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11881
11882LTCC='$LTCC'
11883LTCFLAGS='$LTCFLAGS'
11884compiler='$compiler_DEFAULT'
11885
11886# Quote evaled strings.
11887for var in SED \
11888GREP \
11889EGREP \
11890FGREP \
11891LD \
11892NM \
11893LN_S \
11894lt_SP2NL \
11895lt_NL2SP \
11896reload_flag \
11897deplibs_check_method \
11898file_magic_cmd \
11899AR \
11900AR_FLAGS \
11901STRIP \
11902RANLIB \
11903CC \
11904CFLAGS \
11905compiler \
11906lt_cv_sys_global_symbol_pipe \
11907lt_cv_sys_global_symbol_to_cdecl \
11908lt_cv_sys_global_symbol_to_c_name_address \
467b2e9e 11909lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
11910SHELL \
11911ECHO \
11912lt_prog_compiler_no_builtin_flag \
11913lt_prog_compiler_wl \
11914lt_prog_compiler_pic \
11915lt_prog_compiler_static \
11916lt_cv_prog_compiler_c_o \
11917need_locks \
467b2e9e
PG
11918DSYMUTIL \
11919NMEDIT \
11920LIPO \
11921OTOOL \
11922OTOOL64 \
1cf3d07d
SE
11923shrext_cmds \
11924export_dynamic_flag_spec \
11925whole_archive_flag_spec \
11926compiler_needs_object \
11927with_gnu_ld \
11928allow_undefined_flag \
11929no_undefined_flag \
11930hardcode_libdir_flag_spec \
11931hardcode_libdir_flag_spec_ld \
11932hardcode_libdir_separator \
11933fix_srcfile_path \
11934exclude_expsyms \
11935include_expsyms \
11936file_list_spec \
11937variables_saved_for_relink \
11938libname_spec \
11939library_names_spec \
11940soname_spec \
11941finish_eval \
11942old_striplib \
11943striplib; do
11944 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11945 *[\\\\\\\`\\"\\\$]*)
11946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11947 ;;
11948 *)
11949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11950 ;;
11951 esac
11952done
11953
11954# Double-quote double-evaled strings.
11955for var in reload_cmds \
11956old_postinstall_cmds \
11957old_postuninstall_cmds \
11958old_archive_cmds \
11959extract_expsyms_cmds \
11960old_archive_from_new_cmds \
11961old_archive_from_expsyms_cmds \
11962archive_cmds \
11963archive_expsym_cmds \
11964module_cmds \
11965module_expsym_cmds \
11966export_symbols_cmds \
11967prelink_cmds \
11968postinstall_cmds \
11969postuninstall_cmds \
11970finish_cmds \
11971sys_lib_search_path_spec \
11972sys_lib_dlsearch_path_spec; do
11973 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11974 *[\\\\\\\`\\"\\\$]*)
11975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11976 ;;
11977 *)
11978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11979 ;;
11980 esac
11981done
11982
11983# Fix-up fallback echo if it was mangled by the above quoting rules.
11984case \$lt_ECHO in
11985*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11986 ;;
11987esac
11988
11989ac_aux_dir='$ac_aux_dir'
11990xsi_shell='$xsi_shell'
11991lt_shell_append='$lt_shell_append'
11992
11993# See if we are running on zsh, and set the options which allow our
11994# commands through without removal of \ escapes INIT.
11995if test -n "\${ZSH_VERSION+set}" ; then
11996 setopt NO_GLOB_SUBST
11997fi
11998
11999
12000 PACKAGE='$PACKAGE'
12001 VERSION='$VERSION'
12002 TIMESTAMP='$TIMESTAMP'
12003 RM='$RM'
12004 ofile='$ofile'
12005
12006
12007
88386050
NN
12008
12009_ACEOF
12010
12011
12012
12013cat >>$CONFIG_STATUS <<\_ACEOF
12014for ac_config_target in $ac_config_targets
12015do
12016 case "$ac_config_target" in
12017 # Handling of arguments.
12018 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5b043f08 12019 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1cf3d07d 12020 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
049bc404 12021 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
88386050
NN
12022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12023echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12024 { (exit 1); exit 1; }; };;
bce1b489 12025 esac
88386050 12026done
bce1b489 12027
88386050
NN
12028# If the user did not use the arguments to specify the items to instantiate,
12029# then the envvar interface is used. Set only those that are not.
12030# We use the long form for the default assignment because of an extremely
12031# bizarre bug on SunOS 4.1.3.
12032if $ac_need_defaults; then
12033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
049bc404 12034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
88386050
NN
12035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12036fi
12037
12038# Have a temporary directory for convenience. Make it in the build tree
12039# simply because there is no reason to put it here, and in addition,
12040# creating and moving files from /tmp can sometimes cause problems.
12041# Create a temporary directory, and hook for its removal unless debugging.
12042$debug ||
12043{
12044 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12045 trap '{ (exit 1); exit 1; }' 1 2 13 15
12046}
12047
12048# Create a (secure) tmp directory for tmp files.
12049
12050{
12051 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12052 test -n "$tmp" && test -d "$tmp"
12053} ||
12054{
12055 tmp=./confstat$$-$RANDOM
12056 (umask 077 && mkdir $tmp)
12057} ||
12058{
12059 echo "$me: cannot create a temporary directory in ." >&2
12060 { (exit 1); exit 1; }
12061}
12062
12063_ACEOF
12064
12065cat >>$CONFIG_STATUS <<_ACEOF
bce1b489 12066
88386050
NN
12067#
12068# CONFIG_FILES section.
12069#
12070
12071# No need to generate the scripts if there are no CONFIG_FILES.
12072# This happens for instance when ./config.status config.h
12073if test -n "\$CONFIG_FILES"; then
12074 # Protect against being on the right side of a sed subst in config.status.
12075 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12076 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12077s,@SHELL@,$SHELL,;t t
12078s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12079s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12080s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12081s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12082s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12083s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12084s,@exec_prefix@,$exec_prefix,;t t
12085s,@prefix@,$prefix,;t t
12086s,@program_transform_name@,$program_transform_name,;t t
12087s,@bindir@,$bindir,;t t
12088s,@sbindir@,$sbindir,;t t
12089s,@libexecdir@,$libexecdir,;t t
12090s,@datadir@,$datadir,;t t
12091s,@sysconfdir@,$sysconfdir,;t t
12092s,@sharedstatedir@,$sharedstatedir,;t t
12093s,@localstatedir@,$localstatedir,;t t
12094s,@libdir@,$libdir,;t t
12095s,@includedir@,$includedir,;t t
12096s,@oldincludedir@,$oldincludedir,;t t
12097s,@infodir@,$infodir,;t t
12098s,@mandir@,$mandir,;t t
12099s,@build_alias@,$build_alias,;t t
12100s,@host_alias@,$host_alias,;t t
12101s,@target_alias@,$target_alias,;t t
12102s,@DEFS@,$DEFS,;t t
12103s,@ECHO_C@,$ECHO_C,;t t
12104s,@ECHO_N@,$ECHO_N,;t t
12105s,@ECHO_T@,$ECHO_T,;t t
12106s,@LIBS@,$LIBS,;t t
88386050
NN
12107s,@build@,$build,;t t
12108s,@build_cpu@,$build_cpu,;t t
12109s,@build_vendor@,$build_vendor,;t t
12110s,@build_os@,$build_os,;t t
57255173 12111s,@build_libsubdir@,$build_libsubdir,;t t
215c351a
PB
12112s,@build_subdir@,$build_subdir,;t t
12113s,@host_subdir@,$host_subdir,;t t
12114s,@target_subdir@,$target_subdir,;t t
12115s,@VERSION@,$VERSION,;t t
12116s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
8c3e5222 12117s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
5b043f08 12118s,@multi_basedir@,$multi_basedir,;t t
88386050
NN
12119s,@host@,$host,;t t
12120s,@host_cpu@,$host_cpu,;t t
12121s,@host_vendor@,$host_vendor,;t t
12122s,@host_os@,$host_os,;t t
12123s,@target@,$target,;t t
12124s,@target_cpu@,$target_cpu,;t t
12125s,@target_vendor@,$target_vendor,;t t
12126s,@target_os@,$target_os,;t t
12127s,@target_noncanonical@,$target_noncanonical,;t t
88386050 12128s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
a42a57cb 12129s,@toolexecdir@,$toolexecdir,;t t
608e1e0c 12130s,@toolexeclibdir@,$toolexeclibdir,;t t
7d34a5a9 12131s,@includedirname@,$includedirname,;t t
4620d81e 12132s,@libsuffix@,$libsuffix,;t t
88386050 12133s,@CC@,$CC,;t t
88386050
NN
12134s,@ac_ct_CC@,$ac_ct_CC,;t t
12135s,@EXEEXT@,$EXEEXT,;t t
12136s,@OBJEXT@,$OBJEXT,;t t
a5a813f8 12137s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
db7f3c69 12138s,@CFLAGS@,$CFLAGS,;t t
88386050
NN
12139s,@AS@,$AS,;t t
12140s,@ac_ct_AS@,$ac_ct_AS,;t t
12141s,@AR@,$AR,;t t
12142s,@ac_ct_AR@,$ac_ct_AR,;t t
12143s,@RANLIB@,$RANLIB,;t t
12144s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12145s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12146s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12147s,@INSTALL_DATA@,$INSTALL_DATA,;t t
dd365157
MS
12148s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12149s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12150s,@MAINT@,$MAINT,;t t
1cf3d07d
SE
12151s,@DLLTOOL@,$DLLTOOL,;t t
12152s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12153s,@OBJDUMP@,$OBJDUMP,;t t
12154s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12155s,@LIBTOOL@,$LIBTOOL,;t t
12156s,@SED@,$SED,;t t
12157s,@EGREP@,$EGREP,;t t
12158s,@FGREP@,$FGREP,;t t
12159s,@GREP@,$GREP,;t t
12160s,@LD@,$LD,;t t
12161s,@DUMPBIN@,$DUMPBIN,;t t
12162s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12163s,@NM@,$NM,;t t
88386050
NN
12164s,@LN_S@,$LN_S,;t t
12165s,@STRIP@,$STRIP,;t t
12166s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
1cf3d07d 12167s,@lt_ECHO@,$lt_ECHO,;t t
467b2e9e
PG
12168s,@DSYMUTIL@,$DSYMUTIL,;t t
12169s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12170s,@NMEDIT@,$NMEDIT,;t t
12171s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12172s,@LIPO@,$LIPO,;t t
12173s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12174s,@OTOOL@,$OTOOL,;t t
12175s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12176s,@OTOOL64@,$OTOOL64,;t t
12177s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
88386050 12178s,@CPP@,$CPP,;t t
db7f3c69 12179s,@CPPFLAGS@,$CPPFLAGS,;t t
1cf3d07d 12180s,@SET_MAKE@,$SET_MAKE,;t t
88386050
NN
12181s,@LIBOBJS@,$LIBOBJS,;t t
12182s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12183CEOF
12184
12185_ACEOF
12186
12187 cat >>$CONFIG_STATUS <<\_ACEOF
12188 # Split the substitutions into bite-sized pieces for seds with
12189 # small command number limits, like on Digital OSF/1 and HP-UX.
12190 ac_max_sed_lines=48
12191 ac_sed_frag=1 # Number of current file.
12192 ac_beg=1 # First line for current file.
12193 ac_end=$ac_max_sed_lines # Line after last line for current file.
12194 ac_more_lines=:
12195 ac_sed_cmds=
12196 while $ac_more_lines; do
12197 if test $ac_beg -gt 1; then
12198 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12199 else
12200 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12201 fi
12202 if test ! -s $tmp/subs.frag; then
12203 ac_more_lines=false
12204 else
12205 # The purpose of the label and of the branching condition is to
12206 # speed up the sed processing (if there are no `@' at all, there
12207 # is no need to browse any of the substitutions).
12208 # These are the two extra sed commands mentioned above.
12209 (echo ':t
12210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12211 if test -z "$ac_sed_cmds"; then
12212 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12213 else
12214 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12215 fi
12216 ac_sed_frag=`expr $ac_sed_frag + 1`
12217 ac_beg=$ac_end
12218 ac_end=`expr $ac_end + $ac_max_sed_lines`
12219 fi
12220 done
12221 if test -z "$ac_sed_cmds"; then
12222 ac_sed_cmds=cat
bce1b489 12223 fi
88386050 12224fi # test -n "$CONFIG_FILES"
bce1b489 12225
88386050
NN
12226_ACEOF
12227cat >>$CONFIG_STATUS <<\_ACEOF
12228for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12230 case $ac_file in
12231 - | *:- | *:-:* ) # input from stdin
12232 cat >$tmp/stdin
12233 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12235 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12237 * ) ac_file_in=$ac_file.in ;;
bce1b489
BE
12238 esac
12239
88386050
NN
12240 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12241 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12243 X"$ac_file" : 'X\(//\)[^/]' \| \
12244 X"$ac_file" : 'X\(//\)$' \| \
12245 X"$ac_file" : 'X\(/\)' \| \
12246 . : '\(.\)' 2>/dev/null ||
12247echo X"$ac_file" |
12248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12250 /^X\(\/\/\)$/{ s//\1/; q; }
12251 /^X\(\/\).*/{ s//\1/; q; }
12252 s/.*/./; q'`
12253 { if $as_mkdir_p; then
12254 mkdir -p "$ac_dir"
12255 else
12256 as_dir="$ac_dir"
12257 as_dirs=
12258 while test ! -d "$as_dir"; do
12259 as_dirs="$as_dir $as_dirs"
12260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12262 X"$as_dir" : 'X\(//\)[^/]' \| \
12263 X"$as_dir" : 'X\(//\)$' \| \
12264 X"$as_dir" : 'X\(/\)' \| \
12265 . : '\(.\)' 2>/dev/null ||
12266echo X"$as_dir" |
12267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12269 /^X\(\/\/\)$/{ s//\1/; q; }
12270 /^X\(\/\).*/{ s//\1/; q; }
12271 s/.*/./; q'`
12272 done
12273 test ! -n "$as_dirs" || mkdir $as_dirs
12274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12275echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12276 { (exit 1); exit 1; }; }; }
12277
12278 ac_builddir=.
12279
12280if test "$ac_dir" != .; then
12281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12282 # A "../" for each directory in $ac_dir_suffix.
12283 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12284else
12285 ac_dir_suffix= ac_top_builddir=
12286fi
12287
12288case $srcdir in
12289 .) # No --srcdir option. We are building in place.
12290 ac_srcdir=.
12291 if test -z "$ac_top_builddir"; then
12292 ac_top_srcdir=.
12293 else
12294 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12295 fi ;;
12296 [\\/]* | ?:[\\/]* ) # Absolute path.
12297 ac_srcdir=$srcdir$ac_dir_suffix;
12298 ac_top_srcdir=$srcdir ;;
12299 *) # Relative path.
12300 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12301 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12302esac
12303
12304# Do not use `cd foo && pwd` to compute absolute paths, because
12305# the directories may not exist.
12306case `pwd` in
12307.) ac_abs_builddir="$ac_dir";;
12308*)
12309 case "$ac_dir" in
12310 .) ac_abs_builddir=`pwd`;;
12311 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12312 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12313 esac;;
12314esac
12315case $ac_abs_builddir in
12316.) ac_abs_top_builddir=${ac_top_builddir}.;;
12317*)
12318 case ${ac_top_builddir}. in
12319 .) ac_abs_top_builddir=$ac_abs_builddir;;
12320 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12321 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12322 esac;;
12323esac
12324case $ac_abs_builddir in
12325.) ac_abs_srcdir=$ac_srcdir;;
12326*)
12327 case $ac_srcdir in
12328 .) ac_abs_srcdir=$ac_abs_builddir;;
12329 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12330 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12331 esac;;
12332esac
12333case $ac_abs_builddir in
12334.) ac_abs_top_srcdir=$ac_top_srcdir;;
12335*)
12336 case $ac_top_srcdir in
12337 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12338 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12339 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12340 esac;;
12341esac
12342
bce1b489 12343
88386050
NN
12344 case $INSTALL in
12345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12346 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
03391b53 12347 esac
bce1b489 12348
2c888488
L
12349 if test x"$ac_file" != x-; then
12350 { echo "$as_me:$LINENO: creating $ac_file" >&5
12351echo "$as_me: creating $ac_file" >&6;}
12352 rm -f "$ac_file"
12353 fi
88386050
NN
12354 # Let's still pretend it is `configure' which instantiates (i.e., don't
12355 # use $as_me), people would be surprised to read:
12356 # /* config.h. Generated by config.status. */
12357 if test x"$ac_file" = x-; then
12358 configure_input=
12359 else
12360 configure_input="$ac_file. "
12361 fi
12362 configure_input=$configure_input"Generated from `echo $ac_file_in |
12363 sed 's,.*/,,'` by configure."
12364
12365 # First look for the input files in the build tree, otherwise in the
12366 # src tree.
12367 ac_file_inputs=`IFS=:
12368 for f in $ac_file_in; do
12369 case $f in
12370 -) echo $tmp/stdin ;;
12371 [\\/$]*)
12372 # Absolute (can't be DOS-style, as IFS=:)
12373 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12374echo "$as_me: error: cannot find input file: $f" >&2;}
12375 { (exit 1); exit 1; }; }
12376 echo "$f";;
12377 *) # Relative
12378 if test -f "$f"; then
12379 # Build tree
12380 echo "$f"
12381 elif test -f "$srcdir/$f"; then
12382 # Source tree
12383 echo "$srcdir/$f"
12384 else
12385 # /dev/null tree
12386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12387echo "$as_me: error: cannot find input file: $f" >&2;}
12388 { (exit 1); exit 1; }; }
12389 fi;;
12390 esac
12391 done` || { (exit 1); exit 1; }
88386050
NN
12392_ACEOF
12393cat >>$CONFIG_STATUS <<_ACEOF
12394 sed "$ac_vpsub
12395$extrasub
12396_ACEOF
12397cat >>$CONFIG_STATUS <<\_ACEOF
12398:t
12399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12400s,@configure_input@,$configure_input,;t t
12401s,@srcdir@,$ac_srcdir,;t t
12402s,@abs_srcdir@,$ac_abs_srcdir,;t t
12403s,@top_srcdir@,$ac_top_srcdir,;t t
12404s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12405s,@builddir@,$ac_builddir,;t t
12406s,@abs_builddir@,$ac_abs_builddir,;t t
12407s,@top_builddir@,$ac_top_builddir,;t t
12408s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12409s,@INSTALL@,$ac_INSTALL,;t t
12410" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12411 rm -f $tmp/stdin
12412 if test x"$ac_file" != x-; then
12413 mv $tmp/out $ac_file
12414 else
12415 cat $tmp/out
12416 rm -f $tmp/out
12417 fi
12418
12419done
12420_ACEOF
12421cat >>$CONFIG_STATUS <<\_ACEOF
12422
049bc404
AP
12423#
12424# CONFIG_HEADER section.
12425#
12426
12427# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12428# NAME is the cpp macro being defined and VALUE is the value it is being given.
12429#
12430# ac_d sets the value in "#define NAME VALUE" lines.
12431ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12432ac_dB='[ ].*$,\1#\2'
12433ac_dC=' '
12434ac_dD=',;t'
12435# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12436ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12437ac_uB='$,\1#\2define\3'
12438ac_uC=' '
12439ac_uD=',;t'
12440
12441for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12443 case $ac_file in
12444 - | *:- | *:-:* ) # input from stdin
12445 cat >$tmp/stdin
12446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12450 * ) ac_file_in=$ac_file.in ;;
12451 esac
12452
12453 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12454echo "$as_me: creating $ac_file" >&6;}
12455
12456 # First look for the input files in the build tree, otherwise in the
12457 # src tree.
12458 ac_file_inputs=`IFS=:
12459 for f in $ac_file_in; do
12460 case $f in
12461 -) echo $tmp/stdin ;;
12462 [\\/$]*)
12463 # Absolute (can't be DOS-style, as IFS=:)
12464 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12465echo "$as_me: error: cannot find input file: $f" >&2;}
12466 { (exit 1); exit 1; }; }
12467 # Do quote $f, to prevent DOS paths from being IFS'd.
12468 echo "$f";;
12469 *) # Relative
12470 if test -f "$f"; then
12471 # Build tree
12472 echo "$f"
12473 elif test -f "$srcdir/$f"; then
12474 # Source tree
12475 echo "$srcdir/$f"
12476 else
12477 # /dev/null tree
12478 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12479echo "$as_me: error: cannot find input file: $f" >&2;}
12480 { (exit 1); exit 1; }; }
12481 fi;;
12482 esac
12483 done` || { (exit 1); exit 1; }
12484 # Remove the trailing spaces.
12485 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12486
12487_ACEOF
12488
12489# Transform confdefs.h into two sed scripts, `conftest.defines' and
12490# `conftest.undefs', that substitutes the proper values into
12491# config.h.in to produce config.h. The first handles `#define'
12492# templates, and the second `#undef' templates.
12493# And first: Protect against being on the right side of a sed subst in
12494# config.status. Protect against being in an unquoted here document
12495# in config.status.
12496rm -f conftest.defines conftest.undefs
12497# Using a here document instead of a string reduces the quoting nightmare.
12498# Putting comments in sed scripts is not portable.
12499#
12500# `end' is used to avoid that the second main sed command (meant for
12501# 0-ary CPP macros) applies to n-ary macro definitions.
12502# See the Autoconf documentation for `clear'.
12503cat >confdef2sed.sed <<\_ACEOF
12504s/[\\&,]/\\&/g
12505s,[\\$`],\\&,g
12506t clear
12507: clear
12508s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12509t end
12510s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12511: end
12512_ACEOF
12513# If some macros were called several times there might be several times
12514# the same #defines, which is useless. Nevertheless, we may not want to
12515# sort them, since we want the *last* AC-DEFINE to be honored.
12516uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12517sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12518rm -f confdef2sed.sed
12519
12520# This sed command replaces #undef with comments. This is necessary, for
12521# example, in the case of _POSIX_SOURCE, which is predefined and required
12522# on some systems where configure will not decide to define it.
12523cat >>conftest.undefs <<\_ACEOF
12524s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12525_ACEOF
12526
12527# Break up conftest.defines because some shells have a limit on the size
12528# of here documents, and old seds have small limits too (100 cmds).
12529echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12530echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12531echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12532echo ' :' >>$CONFIG_STATUS
12533rm -f conftest.tail
12534while grep . conftest.defines >/dev/null
12535do
12536 # Write a limited-size here document to $tmp/defines.sed.
12537 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12538 # Speed up: don't consider the non `#define' lines.
12539 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12540 # Work around the forget-to-reset-the-flag bug.
12541 echo 't clr' >>$CONFIG_STATUS
12542 echo ': clr' >>$CONFIG_STATUS
12543 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12544 echo 'CEOF
12545 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12546 rm -f $tmp/in
12547 mv $tmp/out $tmp/in
12548' >>$CONFIG_STATUS
12549 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12550 rm -f conftest.defines
12551 mv conftest.tail conftest.defines
12552done
12553rm -f conftest.defines
12554echo ' fi # grep' >>$CONFIG_STATUS
12555echo >>$CONFIG_STATUS
12556
12557# Break up conftest.undefs because some shells have a limit on the size
12558# of here documents, and old seds have small limits too (100 cmds).
12559echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12560rm -f conftest.tail
12561while grep . conftest.undefs >/dev/null
12562do
12563 # Write a limited-size here document to $tmp/undefs.sed.
12564 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12565 # Speed up: don't consider the non `#undef'
12566 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12567 # Work around the forget-to-reset-the-flag bug.
12568 echo 't clr' >>$CONFIG_STATUS
12569 echo ': clr' >>$CONFIG_STATUS
12570 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12571 echo 'CEOF
12572 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12573 rm -f $tmp/in
12574 mv $tmp/out $tmp/in
12575' >>$CONFIG_STATUS
12576 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12577 rm -f conftest.undefs
12578 mv conftest.tail conftest.undefs
12579done
12580rm -f conftest.undefs
12581
12582cat >>$CONFIG_STATUS <<\_ACEOF
12583 # Let's still pretend it is `configure' which instantiates (i.e., don't
12584 # use $as_me), people would be surprised to read:
12585 # /* config.h. Generated by config.status. */
12586 if test x"$ac_file" = x-; then
12587 echo "/* Generated by configure. */" >$tmp/config.h
12588 else
12589 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12590 fi
12591 cat $tmp/in >>$tmp/config.h
12592 rm -f $tmp/in
12593 if test x"$ac_file" != x-; then
12594 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12595 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12596echo "$as_me: $ac_file is unchanged" >&6;}
12597 else
12598 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12600 X"$ac_file" : 'X\(//\)[^/]' \| \
12601 X"$ac_file" : 'X\(//\)$' \| \
12602 X"$ac_file" : 'X\(/\)' \| \
12603 . : '\(.\)' 2>/dev/null ||
12604echo X"$ac_file" |
12605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12607 /^X\(\/\/\)$/{ s//\1/; q; }
12608 /^X\(\/\).*/{ s//\1/; q; }
12609 s/.*/./; q'`
12610 { if $as_mkdir_p; then
12611 mkdir -p "$ac_dir"
12612 else
12613 as_dir="$ac_dir"
12614 as_dirs=
12615 while test ! -d "$as_dir"; do
12616 as_dirs="$as_dir $as_dirs"
12617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12619 X"$as_dir" : 'X\(//\)[^/]' \| \
12620 X"$as_dir" : 'X\(//\)$' \| \
12621 X"$as_dir" : 'X\(/\)' \| \
12622 . : '\(.\)' 2>/dev/null ||
12623echo X"$as_dir" |
12624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12626 /^X\(\/\/\)$/{ s//\1/; q; }
12627 /^X\(\/\).*/{ s//\1/; q; }
12628 s/.*/./; q'`
12629 done
12630 test ! -n "$as_dirs" || mkdir $as_dirs
12631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12632echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12633 { (exit 1); exit 1; }; }; }
12634
12635 rm -f $ac_file
12636 mv $tmp/config.h $ac_file
12637 fi
12638 else
12639 cat $tmp/config.h
12640 rm -f $tmp/config.h
12641 fi
12642done
12643_ACEOF
12644cat >>$CONFIG_STATUS <<\_ACEOF
12645
88386050
NN
12646#
12647# CONFIG_COMMANDS section.
12648#
12649for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12650 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12651 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12652 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12653$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12654 X"$ac_dest" : 'X\(//\)[^/]' \| \
12655 X"$ac_dest" : 'X\(//\)$' \| \
12656 X"$ac_dest" : 'X\(/\)' \| \
12657 . : '\(.\)' 2>/dev/null ||
12658echo X"$ac_dest" |
12659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12661 /^X\(\/\/\)$/{ s//\1/; q; }
12662 /^X\(\/\).*/{ s//\1/; q; }
12663 s/.*/./; q'`
12664 { if $as_mkdir_p; then
12665 mkdir -p "$ac_dir"
12666 else
12667 as_dir="$ac_dir"
12668 as_dirs=
12669 while test ! -d "$as_dir"; do
12670 as_dirs="$as_dir $as_dirs"
12671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12672$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673 X"$as_dir" : 'X\(//\)[^/]' \| \
12674 X"$as_dir" : 'X\(//\)$' \| \
12675 X"$as_dir" : 'X\(/\)' \| \
12676 . : '\(.\)' 2>/dev/null ||
12677echo X"$as_dir" |
12678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12680 /^X\(\/\/\)$/{ s//\1/; q; }
12681 /^X\(\/\).*/{ s//\1/; q; }
12682 s/.*/./; q'`
12683 done
12684 test ! -n "$as_dirs" || mkdir $as_dirs
12685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12686echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12687 { (exit 1); exit 1; }; }; }
162f5967 12688
88386050
NN
12689 ac_builddir=.
12690
12691if test "$ac_dir" != .; then
12692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12693 # A "../" for each directory in $ac_dir_suffix.
12694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12695else
12696 ac_dir_suffix= ac_top_builddir=
12697fi
12698
12699case $srcdir in
12700 .) # No --srcdir option. We are building in place.
12701 ac_srcdir=.
12702 if test -z "$ac_top_builddir"; then
12703 ac_top_srcdir=.
12704 else
12705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12706 fi ;;
12707 [\\/]* | ?:[\\/]* ) # Absolute path.
12708 ac_srcdir=$srcdir$ac_dir_suffix;
12709 ac_top_srcdir=$srcdir ;;
12710 *) # Relative path.
12711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12713esac
12714
12715# Do not use `cd foo && pwd` to compute absolute paths, because
12716# the directories may not exist.
12717case `pwd` in
12718.) ac_abs_builddir="$ac_dir";;
12719*)
12720 case "$ac_dir" in
12721 .) ac_abs_builddir=`pwd`;;
12722 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12723 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12724 esac;;
12725esac
12726case $ac_abs_builddir in
12727.) ac_abs_top_builddir=${ac_top_builddir}.;;
12728*)
12729 case ${ac_top_builddir}. in
12730 .) ac_abs_top_builddir=$ac_abs_builddir;;
12731 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12732 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12733 esac;;
12734esac
12735case $ac_abs_builddir in
12736.) ac_abs_srcdir=$ac_srcdir;;
12737*)
12738 case $ac_srcdir in
12739 .) ac_abs_srcdir=$ac_abs_builddir;;
12740 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12741 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12742 esac;;
12743esac
12744case $ac_abs_builddir in
12745.) ac_abs_top_srcdir=$ac_top_srcdir;;
12746*)
12747 case $ac_top_srcdir in
12748 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12749 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12750 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12751 esac;;
12752esac
12753
12754
12755 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12756echo "$as_me: executing $ac_dest commands" >&6;}
12757 case $ac_dest in
5b043f08
GK
12758 default-1 )
12759# Only add multilib support code if we just rebuilt the top-level
12760# Makefile.
12761case " $CONFIG_FILES " in
12762 *" Makefile "*)
12763 ac_file=Makefile . ${multi_basedir}/config-ml.in
12764 ;;
12765esac ;;
1cf3d07d
SE
12766 libtool )
12767
12768 # See if we are running on zsh, and set the options which allow our
12769 # commands through without removal of \ escapes.
12770 if test -n "${ZSH_VERSION+set}" ; then
12771 setopt NO_GLOB_SUBST
12772 fi
12773
12774 cfgfile="${ofile}T"
12775 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12776 $RM "$cfgfile"
12777
12778 cat <<_LT_EOF >> "$cfgfile"
12779#! $SHELL
12780
12781# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
467b2e9e 12782# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
12783# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12784# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12785#
467b2e9e
PG
12786# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12787# 2006, 2007, 2008 Free Software Foundation, Inc.
12788# Written by Gordon Matzigkeit, 1996
1cf3d07d 12789#
467b2e9e 12790# This file is part of GNU Libtool.
1cf3d07d 12791#
467b2e9e
PG
12792# GNU Libtool is free software; you can redistribute it and/or
12793# modify it under the terms of the GNU General Public License as
12794# published by the Free Software Foundation; either version 2 of
12795# the License, or (at your option) any later version.
1cf3d07d 12796#
467b2e9e
PG
12797# As a special exception to the GNU General Public License,
12798# if you distribute this file as part of a program or library that
12799# is built using GNU Libtool, you may include this file under the
12800# same distribution terms that you use for the rest of that program.
1cf3d07d 12801#
467b2e9e
PG
12802# GNU Libtool is distributed in the hope that it will be useful,
12803# but WITHOUT ANY WARRANTY; without even the implied warranty of
12804# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12805# GNU General Public License for more details.
1cf3d07d 12806#
467b2e9e
PG
12807# You should have received a copy of the GNU General Public License
12808# along with GNU Libtool; see the file COPYING. If not, a copy
12809# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12810# obtained by writing to the Free Software Foundation, Inc.,
12811# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
12812
12813
12814# The names of the tagged configurations supported by this script.
12815available_tags=""
12816
12817# ### BEGIN LIBTOOL CONFIG
12818
12819# Assembler program.
12820AS=$AS
12821
12822# DLL creation program.
12823DLLTOOL=$DLLTOOL
12824
12825# Object dumper program.
12826OBJDUMP=$OBJDUMP
12827
12828# Which release of libtool.m4 was used?
12829macro_version=$macro_version
12830macro_revision=$macro_revision
12831
12832# Whether or not to build shared libraries.
12833build_libtool_libs=$enable_shared
12834
12835# Whether or not to build static libraries.
12836build_old_libs=$enable_static
12837
12838# What type of objects to build.
12839pic_mode=$pic_mode
12840
12841# Whether or not to optimize for fast installation.
12842fast_install=$enable_fast_install
12843
12844# The host system.
12845host_alias=$host_alias
12846host=$host
12847host_os=$host_os
12848
12849# The build system.
12850build_alias=$build_alias
12851build=$build
12852build_os=$build_os
12853
12854# A sed program that does not truncate output.
12855SED=$lt_SED
12856
12857# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12858Xsed="\$SED -e 1s/^X//"
12859
12860# A grep program that handles long lines.
12861GREP=$lt_GREP
12862
12863# An ERE matcher.
12864EGREP=$lt_EGREP
12865
12866# A literal string matcher.
12867FGREP=$lt_FGREP
12868
12869# A BSD- or MS-compatible name lister.
12870NM=$lt_NM
12871
12872# Whether we need soft or hard links.
12873LN_S=$lt_LN_S
12874
12875# What is the maximum length of a command?
12876max_cmd_len=$max_cmd_len
12877
12878# Object file suffix (normally "o").
12879objext=$ac_objext
12880
12881# Executable file suffix (normally "").
12882exeext=$exeext
12883
12884# whether the shell understands "unset".
12885lt_unset=$lt_unset
12886
12887# turn spaces into newlines.
12888SP2NL=$lt_lt_SP2NL
12889
12890# turn newlines into spaces.
12891NL2SP=$lt_lt_NL2SP
12892
12893# How to create reloadable object files.
12894reload_flag=$lt_reload_flag
12895reload_cmds=$lt_reload_cmds
12896
12897# Method to check whether dependent libraries are shared objects.
12898deplibs_check_method=$lt_deplibs_check_method
12899
12900# Command to use when deplibs_check_method == "file_magic".
12901file_magic_cmd=$lt_file_magic_cmd
12902
12903# The archiver.
12904AR=$lt_AR
12905AR_FLAGS=$lt_AR_FLAGS
12906
12907# A symbol stripping program.
12908STRIP=$lt_STRIP
12909
12910# Commands used to install an old-style archive.
12911RANLIB=$lt_RANLIB
12912old_postinstall_cmds=$lt_old_postinstall_cmds
12913old_postuninstall_cmds=$lt_old_postuninstall_cmds
12914
12915# A C compiler.
12916LTCC=$lt_CC
12917
12918# LTCC compiler flags.
12919LTCFLAGS=$lt_CFLAGS
12920
12921# Take the output of nm and produce a listing of raw symbols and C names.
12922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12923
12924# Transform the output of nm in a proper C declaration.
12925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12926
12927# Transform the output of nm in a C name address pair.
12928global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12929
467b2e9e
PG
12930# Transform the output of nm in a C name address pair when lib prefix is needed.
12931global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12932
1cf3d07d
SE
12933# The name of the directory that contains temporary libtool files.
12934objdir=$objdir
12935
12936# Shell to use when invoking shell scripts.
12937SHELL=$lt_SHELL
12938
12939# An echo program that does not interpret backslashes.
12940ECHO=$lt_ECHO
12941
12942# Used to examine libraries when file_magic_cmd begins with "file".
12943MAGIC_CMD=$MAGIC_CMD
12944
12945# Must we lock files when doing compilation?
12946need_locks=$lt_need_locks
12947
467b2e9e
PG
12948# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12949DSYMUTIL=$lt_DSYMUTIL
12950
12951# Tool to change global to local symbols on Mac OS X.
12952NMEDIT=$lt_NMEDIT
12953
12954# Tool to manipulate fat objects and archives on Mac OS X.
12955LIPO=$lt_LIPO
12956
12957# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12958OTOOL=$lt_OTOOL
12959
12960# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12961OTOOL64=$lt_OTOOL64
12962
1cf3d07d
SE
12963# Old archive suffix (normally "a").
12964libext=$libext
12965
12966# Shared library suffix (normally ".so").
12967shrext_cmds=$lt_shrext_cmds
12968
12969# The commands to extract the exported symbol list from a shared archive.
12970extract_expsyms_cmds=$lt_extract_expsyms_cmds
12971
12972# Variables whose values should be saved in libtool wrapper scripts and
12973# restored at link time.
12974variables_saved_for_relink=$lt_variables_saved_for_relink
12975
12976# Do we need the "lib" prefix for modules?
12977need_lib_prefix=$need_lib_prefix
12978
12979# Do we need a version for libraries?
12980need_version=$need_version
12981
12982# Library versioning type.
12983version_type=$version_type
12984
12985# Shared library runtime path variable.
12986runpath_var=$runpath_var
12987
12988# Shared library path variable.
12989shlibpath_var=$shlibpath_var
12990
12991# Is shlibpath searched before the hard-coded library search path?
12992shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12993
12994# Format of library name prefix.
12995libname_spec=$lt_libname_spec
12996
12997# List of archive names. First name is the real one, the rest are links.
12998# The last name is the one that the linker finds with -lNAME
12999library_names_spec=$lt_library_names_spec
13000
13001# The coded name of the library, if different from the real name.
13002soname_spec=$lt_soname_spec
13003
13004# Command to use after installation of a shared archive.
13005postinstall_cmds=$lt_postinstall_cmds
13006
13007# Command to use after uninstallation of a shared archive.
13008postuninstall_cmds=$lt_postuninstall_cmds
13009
13010# Commands used to finish a libtool library installation in a directory.
13011finish_cmds=$lt_finish_cmds
13012
13013# As "finish_cmds", except a single script fragment to be evaled but
13014# not shown.
13015finish_eval=$lt_finish_eval
13016
13017# Whether we should hardcode library paths into libraries.
13018hardcode_into_libs=$hardcode_into_libs
13019
13020# Compile-time system search path for libraries.
13021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13022
13023# Run-time system search path for libraries.
13024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13025
13026# Whether dlopen is supported.
13027dlopen_support=$enable_dlopen
13028
13029# Whether dlopen of programs is supported.
13030dlopen_self=$enable_dlopen_self
13031
13032# Whether dlopen of statically linked programs is supported.
13033dlopen_self_static=$enable_dlopen_self_static
13034
13035# Commands to strip libraries.
13036old_striplib=$lt_old_striplib
13037striplib=$lt_striplib
13038
13039
13040# The linker used to build libraries.
13041LD=$lt_LD
13042
13043# Commands used to build an old-style archive.
13044old_archive_cmds=$lt_old_archive_cmds
13045
13046# A language specific compiler.
13047CC=$lt_compiler
13048
13049# Is the compiler the GNU compiler?
13050with_gcc=$GCC
13051
13052# Compiler flag to turn off builtin functions.
13053no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13054
13055# How to pass a linker flag through the compiler.
13056wl=$lt_lt_prog_compiler_wl
13057
13058# Additional compiler flags for building library objects.
13059pic_flag=$lt_lt_prog_compiler_pic
13060
13061# Compiler flag to prevent dynamic linking.
13062link_static_flag=$lt_lt_prog_compiler_static
13063
13064# Does compiler simultaneously support -c and -o options?
13065compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13066
13067# Whether or not to add -lc for building shared libraries.
13068build_libtool_need_lc=$archive_cmds_need_lc
13069
13070# Whether or not to disallow shared libs when runtime libs are static.
13071allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13072
13073# Compiler flag to allow reflexive dlopens.
13074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13075
13076# Compiler flag to generate shared objects directly from archives.
13077whole_archive_flag_spec=$lt_whole_archive_flag_spec
13078
13079# Whether the compiler copes with passing no objects directly.
13080compiler_needs_object=$lt_compiler_needs_object
13081
13082# Create an old-style archive from a shared archive.
13083old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13084
13085# Create a temporary old-style archive to link instead of a shared archive.
13086old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13087
13088# Commands used to build a shared archive.
13089archive_cmds=$lt_archive_cmds
13090archive_expsym_cmds=$lt_archive_expsym_cmds
13091
13092# Commands used to build a loadable module if different from building
13093# a shared archive.
13094module_cmds=$lt_module_cmds
13095module_expsym_cmds=$lt_module_expsym_cmds
13096
13097# Whether we are building with GNU ld or not.
13098with_gnu_ld=$lt_with_gnu_ld
13099
13100# Flag that allows shared libraries with undefined symbols to be built.
13101allow_undefined_flag=$lt_allow_undefined_flag
13102
13103# Flag that enforces no undefined symbols.
13104no_undefined_flag=$lt_no_undefined_flag
13105
13106# Flag to hardcode \$libdir into a binary during linking.
13107# This must work even if \$libdir does not exist
13108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13109
13110# If ld is used when linking, flag to hardcode \$libdir into a binary
13111# during linking. This must work even if \$libdir does not exist.
13112hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13113
13114# Whether we need a single "-rpath" flag with a separated argument.
13115hardcode_libdir_separator=$lt_hardcode_libdir_separator
13116
13117# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13118# DIR into the resulting binary.
13119hardcode_direct=$hardcode_direct
13120
13121# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13122# DIR into the resulting binary and the resulting library dependency is
13123# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13124# library is relocated.
13125hardcode_direct_absolute=$hardcode_direct_absolute
13126
13127# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13128# into the resulting binary.
13129hardcode_minus_L=$hardcode_minus_L
13130
13131# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13132# into the resulting binary.
13133hardcode_shlibpath_var=$hardcode_shlibpath_var
13134
13135# Set to "yes" if building a shared library automatically hardcodes DIR
13136# into the library and all subsequent libraries and executables linked
13137# against it.
13138hardcode_automatic=$hardcode_automatic
13139
13140# Set to yes if linker adds runtime paths of dependent libraries
13141# to runtime path list.
13142inherit_rpath=$inherit_rpath
13143
13144# Whether libtool must link a program against all its dependency libraries.
13145link_all_deplibs=$link_all_deplibs
13146
13147# Fix the shell variable \$srcfile for the compiler.
13148fix_srcfile_path=$lt_fix_srcfile_path
13149
13150# Set to "yes" if exported symbols are required.
13151always_export_symbols=$always_export_symbols
13152
13153# The commands to list exported symbols.
13154export_symbols_cmds=$lt_export_symbols_cmds
13155
13156# Symbols that should not be listed in the preloaded symbols.
13157exclude_expsyms=$lt_exclude_expsyms
13158
13159# Symbols that must always be exported.
13160include_expsyms=$lt_include_expsyms
13161
13162# Commands necessary for linking programs (against libraries) with templates.
13163prelink_cmds=$lt_prelink_cmds
13164
13165# Specify filename containing input files.
13166file_list_spec=$lt_file_list_spec
13167
13168# How to hardcode a shared library path into an executable.
13169hardcode_action=$hardcode_action
13170
13171# ### END LIBTOOL CONFIG
13172
13173_LT_EOF
13174
13175 case $host_os in
13176 aix3*)
13177 cat <<\_LT_EOF >> "$cfgfile"
13178# AIX sometimes has problems with the GCC collect2 program. For some
13179# reason, if we set the COLLECT_NAMES environment variable, the problems
13180# vanish in a puff of smoke.
13181if test "X${COLLECT_NAMES+set}" != Xset; then
13182 COLLECT_NAMES=
13183 export COLLECT_NAMES
13184fi
13185_LT_EOF
13186 ;;
13187 esac
13188
13189
13190ltmain="$ac_aux_dir/ltmain.sh"
13191
13192
13193 # We use sed instead of cat because bash on DJGPP gets confused if
13194 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13195 # text mode, it properly converts lines to CR/LF. This bash problem
13196 # is reportedly fixed, but why not run on old versions too?
13197 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13198 || (rm -f "$cfgfile"; exit 1)
13199
13200 case $xsi_shell in
13201 yes)
13202 cat << \_LT_EOF >> "$cfgfile"
467b2e9e 13203
1cf3d07d
SE
13204# func_dirname file append nondir_replacement
13205# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13206# otherwise set result to NONDIR_REPLACEMENT.
13207func_dirname ()
13208{
13209 case ${1} in
13210 */*) func_dirname_result="${1%/*}${2}" ;;
13211 * ) func_dirname_result="${3}" ;;
13212 esac
13213}
13214
13215# func_basename file
13216func_basename ()
13217{
13218 func_basename_result="${1##*/}"
13219}
13220
467b2e9e
PG
13221# func_dirname_and_basename file append nondir_replacement
13222# perform func_basename and func_dirname in a single function
13223# call:
13224# dirname: Compute the dirname of FILE. If nonempty,
13225# add APPEND to the result, otherwise set result
13226# to NONDIR_REPLACEMENT.
13227# value returned in "$func_dirname_result"
13228# basename: Compute filename of FILE.
13229# value retuned in "$func_basename_result"
13230# Implementation must be kept synchronized with func_dirname
13231# and func_basename. For efficiency, we do not delegate to
13232# those functions but instead duplicate the functionality here.
13233func_dirname_and_basename ()
13234{
13235 case ${1} in
13236 */*) func_dirname_result="${1%/*}${2}" ;;
13237 * ) func_dirname_result="${3}" ;;
13238 esac
13239 func_basename_result="${1##*/}"
13240}
13241
1cf3d07d
SE
13242# func_stripname prefix suffix name
13243# strip PREFIX and SUFFIX off of NAME.
13244# PREFIX and SUFFIX must not contain globbing or regex special
13245# characters, hashes, percent signs, but SUFFIX may contain a leading
13246# dot (in which case that matches only a dot).
13247func_stripname ()
13248{
13249 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13250 # positional parameters, so assign one to ordinary parameter first.
13251 func_stripname_result=${3}
13252 func_stripname_result=${func_stripname_result#"${1}"}
13253 func_stripname_result=${func_stripname_result%"${2}"}
13254}
13255
13256# func_opt_split
13257func_opt_split ()
13258{
13259 func_opt_split_opt=${1%%=*}
13260 func_opt_split_arg=${1#*=}
13261}
13262
13263# func_lo2o object
13264func_lo2o ()
13265{
13266 case ${1} in
13267 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13268 *) func_lo2o_result=${1} ;;
13269 esac
13270}
467b2e9e
PG
13271
13272# func_xform libobj-or-source
13273func_xform ()
13274{
13275 func_xform_result=${1%.*}.lo
13276}
13277
13278# func_arith arithmetic-term...
13279func_arith ()
13280{
13281 func_arith_result=$(( $* ))
13282}
13283
13284# func_len string
13285# STRING may not start with a hyphen.
13286func_len ()
13287{
13288 func_len_result=${#1}
13289}
13290
1cf3d07d
SE
13291_LT_EOF
13292 ;;
13293 *) # Bourne compatible functions.
13294 cat << \_LT_EOF >> "$cfgfile"
467b2e9e 13295
1cf3d07d
SE
13296# func_dirname file append nondir_replacement
13297# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13298# otherwise set result to NONDIR_REPLACEMENT.
13299func_dirname ()
13300{
13301 # Extract subdirectory from the argument.
13302 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13303 if test "X$func_dirname_result" = "X${1}"; then
13304 func_dirname_result="${3}"
13305 else
13306 func_dirname_result="$func_dirname_result${2}"
13307 fi
13308}
13309
13310# func_basename file
13311func_basename ()
13312{
13313 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13314}
13315
467b2e9e 13316
1cf3d07d
SE
13317# func_stripname prefix suffix name
13318# strip PREFIX and SUFFIX off of NAME.
13319# PREFIX and SUFFIX must not contain globbing or regex special
13320# characters, hashes, percent signs, but SUFFIX may contain a leading
13321# dot (in which case that matches only a dot).
13322# func_strip_suffix prefix name
13323func_stripname ()
13324{
13325 case ${2} in
13326 .*) func_stripname_result=`$ECHO "X${3}" \
13327 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13328 *) func_stripname_result=`$ECHO "X${3}" \
13329 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13330 esac
13331}
13332
13333# sed scripts:
13334my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13335my_sed_long_arg='1s/^-[^=]*=//'
13336
13337# func_opt_split
13338func_opt_split ()
13339{
13340 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13341 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13342}
13343
13344# func_lo2o object
13345func_lo2o ()
13346{
13347 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13348}
467b2e9e
PG
13349
13350# func_xform libobj-or-source
13351func_xform ()
13352{
13353 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13354}
13355
13356# func_arith arithmetic-term...
13357func_arith ()
13358{
13359 func_arith_result=`expr "$@"`
13360}
13361
13362# func_len string
13363# STRING may not start with a hyphen.
13364func_len ()
13365{
13366 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13367}
13368
1cf3d07d
SE
13369_LT_EOF
13370esac
13371
13372case $lt_shell_append in
13373 yes)
13374 cat << \_LT_EOF >> "$cfgfile"
13375
13376# func_append var value
13377# Append VALUE to the end of shell variable VAR.
13378func_append ()
13379{
13380 eval "$1+=\$2"
13381}
13382_LT_EOF
13383 ;;
13384 *)
13385 cat << \_LT_EOF >> "$cfgfile"
13386
13387# func_append var value
13388# Append VALUE to the end of shell variable VAR.
13389func_append ()
13390{
13391 eval "$1=\$$1\$2"
13392}
467b2e9e 13393
1cf3d07d
SE
13394_LT_EOF
13395 ;;
13396 esac
13397
13398
13399 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13400 || (rm -f "$cfgfile"; exit 1)
13401
13402 mv -f "$cfgfile" "$ofile" ||
13403 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13404 chmod +x "$ofile"
13405
13406 ;;
88386050
NN
13407 esac
13408done
13409_ACEOF
13410
13411cat >>$CONFIG_STATUS <<\_ACEOF
13412
13413{ (exit 0); exit 0; }
13414_ACEOF
bce1b489 13415chmod +x $CONFIG_STATUS
88386050
NN
13416ac_clean_files=$ac_clean_files_save
13417
13418
13419# configure is writing to config.log, and then calls config.status.
13420# config.status does its own redirection, appending to config.log.
13421# Unfortunately, on DOS this fails, as config.log is still kept open
13422# by configure, so config.status won't be able to write to it; its
13423# output is simply discarded. So we exec the FD to /dev/null,
13424# effectively closing config.log, so it can be properly (re)opened and
13425# appended to by config.status. When coming back to configure, we
13426# need to make the FD available again.
13427if test "$no_create" != yes; then
13428 ac_cs_success=:
13429 ac_config_status_args=
13430 test "$silent" = yes &&
13431 ac_config_status_args="$ac_config_status_args --quiet"
13432 exec 5>/dev/null
13433 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13434 exec 5>>config.log
13435 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13436 # would make configure fail if this is the last instruction.
13437 $ac_cs_success || { (exit 1); exit 1; }
13438fi
bce1b489 13439