]> gcc.gnu.org Git - gcc.git/blame - libssp/configure
gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__ instead of unsigned long.
[gcc.git] / libssp / configure
CommitLineData
77008252
JJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libssp 1.0.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
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
116
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
77008252
JJ
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#
403ac_default_prefix=/usr/local
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.
417PACKAGE_NAME='libssp'
418PACKAGE_TARNAME='libssp'
419PACKAGE_VERSION='1.0'
420PACKAGE_STRING='libssp 1.0'
421PACKAGE_BUGREPORT=''
422
423ac_unique_file="ssp.c"
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
77a3eb61 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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS LIBSSP_USE_SYMVER_TRUE LIBSSP_USE_SYMVER_FALSE EGREP ssp_have_usable_vsnprintf LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
77008252 462ac_subst_files=''
18c04407 463ac_pwd=`pwd`
77008252
JJ
464
465# Initialize some variables set by options.
466ac_init_help=
467ac_init_version=false
468# The variables have the same names as the options, with
469# dashes changed to underlines.
470cache_file=/dev/null
471exec_prefix=NONE
472no_create=
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481verbose=
482x_includes=NONE
483x_libraries=NONE
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.
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
503ac_prev=
504for ac_option
505do
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
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
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=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
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" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
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"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
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 ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
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=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
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=*)
614 libexecdir=$ac_optarg ;;
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=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
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 \
635 | --no-cr | --no-c | -n)
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=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
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=*)
661 program_prefix=$ac_optarg ;;
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=*)
668 program_suffix=$ac_optarg ;;
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=*)
685 program_transform_name=$ac_optarg ;;
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=*)
695 sbindir=$ac_optarg ;;
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=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
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=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
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; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
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" ;;
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=*)
767 x_includes=$ac_optarg ;;
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=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
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
791 *)
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}
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
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; }; }
806fi
807
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
818
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822do
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; }; };;
828 esac
829done
830
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
848
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
853
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.
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'`
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
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886fi
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
903ac_env_CPP_set=${CPP+set}
904ac_env_CPP_value=$CPP
905ac_cv_env_CPP_set=${CPP+set}
906ac_cv_env_CPP_value=$CPP
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911
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
919\`configure' configures libssp 1.0 to adapt to many kinds of systems.
920
921Usage: $0 [OPTION]... [VAR=VALUE]...
922
923To assign environment variables (e.g., CC, CFLAGS...), specify them as
924VAR=VALUE. See below for descriptions of some of the useful variables.
925
926Defaults for the options are specified in brackets.
927
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]
947
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'.
952
953For better control, use the options below.
954
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
972Program names:
973 --program-prefix=PREFIX prepend PREFIX to installed program names
974 --program-suffix=SUFFIX append SUFFIX to installed program names
975 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976
977System types:
978 --build=BUILD configure for building on BUILD [guessed]
979 --host=HOST cross-compile to build programs to run on HOST [BUILD]
980 --target=TARGET configure for building compilers for TARGET [HOST]
981_ACEOF
982fi
983
984if test -n "$ac_init_help"; then
985 case $ac_init_help in
986 short | recursive ) echo "Configuration of libssp 1.0:";;
987 esac
988 cat <<\_ACEOF
989
990Optional Features:
991 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
992 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
993 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
994 --enable-maintainer-mode enable make rules and dependencies not useful
995 (and sometimes confusing) to the casual installer
996 --enable-multilib build many library versions (default)
997 --disable-dependency-tracking speeds up one-time build
998 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
999 --enable-shared[=PKGS]
1000 build shared libraries [default=yes]
1001 --enable-static[=PKGS]
1002 build static libraries [default=yes]
1003 --enable-fast-install[=PKGS]
1004 optimize for fast installation [default=yes]
77008252
JJ
1005 --disable-libtool-lock avoid locking (might break parallel builds)
1006
1007Optional Packages:
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
77008252
JJ
1013
1014Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1022
1023Use these variables to override the choices made by `configure' or to help
1024it to find libraries and programs with nonstandard names/locations.
1025
1026_ACEOF
1027fi
1028
1029if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1035
1036if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040else
1041 ac_dir_suffix= ac_top_builddir=
1042fi
1043
1044case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058esac
1059
1060# Do not use `cd foo && pwd` to compute absolute paths, because
1061# the directories may not exist.
1062case `pwd` in
1063.) ac_abs_builddir="$ac_dir";;
1064*)
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070esac
1071case $ac_abs_builddir in
1072.) ac_abs_top_builddir=${ac_top_builddir}.;;
1073*)
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079esac
1080case $ac_abs_builddir in
1081.) ac_abs_srcdir=$ac_srcdir;;
1082*)
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088esac
1089case $ac_abs_builddir in
1090.) ac_abs_top_srcdir=$ac_top_srcdir;;
1091*)
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097esac
1098
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
1108 test -f $ac_srcdir/configure.in; then
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113 fi
1114 cd $ac_popdir
1115 done
1116fi
1117
1118test -n "$ac_init_help" && exit 0
1119if $ac_init_version; then
1120 cat <<\_ACEOF
1121libssp configure 1.0
1122generated by GNU Autoconf 2.59
1123
1124Copyright (C) 2003 Free Software Foundation, Inc.
1125This configure script is free software; the Free Software Foundation
1126gives unlimited permission to copy, distribute and modify it.
1127_ACEOF
1128 exit 0
1129fi
1130exec 5>config.log
1131cat >&5 <<_ACEOF
1132This file contains any messages produced by compilers while
1133running configure, to aid debugging if configure makes a mistake.
1134
1135It was created by libssp $as_me 1.0, which was
1136generated by GNU Autoconf 2.59. Invocation command line was
1137
1138 $ $0 $@
1139
1140_ACEOF
1141{
1142cat <<_ASUNAME
1143## --------- ##
1144## Platform. ##
1145## --------- ##
1146
1147hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151uname -v = `(uname -v) 2>/dev/null || echo unknown`
1152
1153/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1155
1156/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1157/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1158/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1160/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1161/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1162/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1163
1164_ASUNAME
1165
1166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167for as_dir in $PATH
1168do
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172done
1173
1174} >&5
1175
1176cat >&5 <<_ACEOF
1177
1178
1179## ----------- ##
1180## Core tests. ##
1181## ----------- ##
1182
1183_ACEOF
1184
1185
1186# Keep a trace of the command line.
1187# Strip out --no-create and --no-recursion so they do not pile up.
1188# Strip out --silent because we don't want to record it for future runs.
1189# Also quote any args containing shell meta-characters.
1190# Make two passes to allow for proper duplicate-argument suppression.
1191ac_configure_args=
1192ac_configure_args0=
1193ac_configure_args1=
1194ac_sep=
1195ac_must_keep_next=false
1196for ac_pass in 1 2
1197do
1198 for ac_arg
1199 do
1200 case $ac_arg in
1201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 continue ;;
1205 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207 esac
1208 case $ac_pass in
1209 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1210 2)
1211 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212 if test $ac_must_keep_next = true; then
1213 ac_must_keep_next=false # Got value, back to normal.
1214 else
1215 case $ac_arg in
1216 *=* | --config-cache | -C | -disable-* | --disable-* \
1217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219 | -with-* | --with-* | -without-* | --without-* | --x)
1220 case "$ac_configure_args0 " in
1221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222 esac
1223 ;;
1224 -* ) ac_must_keep_next=true ;;
1225 esac
1226 fi
1227 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228 # Get rid of the leading space.
1229 ac_sep=" "
1230 ;;
1231 esac
1232 done
1233done
1234$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1236
1237# When interrupted or exit'd, cleanup temporary files, and complete
1238# config.log. We remove comments because anyway the quotes in there
1239# would cause problems or look ugly.
1240# WARNING: Be sure not to use single quotes in there, as some shells,
1241# such as our DU 5.0 friend, will then `close' the trap.
1242trap 'exit_status=$?
1243 # Save into config.log some information that might help in debugging.
1244 {
1245 echo
1246
1247 cat <<\_ASBOX
1248## ---------------- ##
1249## Cache variables. ##
1250## ---------------- ##
1251_ASBOX
1252 echo
1253 # The following way of writing the cache mishandles newlines in values,
1254{
1255 (set) 2>&1 |
1256 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257 *ac_space=\ *)
1258 sed -n \
1259 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1261 ;;
1262 *)
1263 sed -n \
1264 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1265 ;;
1266 esac;
1267}
1268 echo
1269
1270 cat <<\_ASBOX
1271## ----------------- ##
1272## Output variables. ##
1273## ----------------- ##
1274_ASBOX
1275 echo
1276 for ac_var in $ac_subst_vars
1277 do
1278 eval ac_val=$`echo $ac_var`
1279 echo "$ac_var='"'"'$ac_val'"'"'"
1280 done | sort
1281 echo
1282
1283 if test -n "$ac_subst_files"; then
1284 cat <<\_ASBOX
1285## ------------- ##
1286## Output files. ##
1287## ------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_files
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296 fi
1297
1298 if test -s confdefs.h; then
1299 cat <<\_ASBOX
1300## ----------- ##
1301## confdefs.h. ##
1302## ----------- ##
1303_ASBOX
1304 echo
1305 sed "/^$/d" confdefs.h | sort
1306 echo
1307 fi
1308 test "$ac_signal" != 0 &&
1309 echo "$as_me: caught signal $ac_signal"
1310 echo "$as_me: exit $exit_status"
1311 } >&5
1312 rm -f core *.core &&
1313 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314 exit $exit_status
1315 ' 0
1316for ac_signal in 1 2 13 15; do
1317 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318done
1319ac_signal=0
1320
1321# confdefs.h avoids OS command line length limits that DEFS can exceed.
1322rm -rf conftest* confdefs.h
1323# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324echo >confdefs.h
1325
1326# Predefined preprocessor variables.
1327
1328cat >>confdefs.h <<_ACEOF
1329#define PACKAGE_NAME "$PACKAGE_NAME"
1330_ACEOF
1331
1332
1333cat >>confdefs.h <<_ACEOF
1334#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335_ACEOF
1336
1337
1338cat >>confdefs.h <<_ACEOF
1339#define PACKAGE_VERSION "$PACKAGE_VERSION"
1340_ACEOF
1341
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_STRING "$PACKAGE_STRING"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350_ACEOF
1351
1352
1353# Let the site file select an alternate cache file if it wants to.
1354# Prefer explicitly selected file to automatically selected ones.
1355if test -z "$CONFIG_SITE"; then
1356 if test "x$prefix" != xNONE; then
1357 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358 else
1359 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360 fi
1361fi
1362for ac_site_file in $CONFIG_SITE; do
1363 if test -r "$ac_site_file"; then
1364 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365echo "$as_me: loading site script $ac_site_file" >&6;}
1366 sed 's/^/| /' "$ac_site_file" >&5
1367 . "$ac_site_file"
1368 fi
1369done
1370
1371if test -r "$cache_file"; then
1372 # Some versions of bash will fail to source /dev/null (special
1373 # files actually), so we avoid doing that.
1374 if test -f "$cache_file"; then
1375 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376echo "$as_me: loading cache $cache_file" >&6;}
1377 case $cache_file in
1378 [\\/]* | ?:[\\/]* ) . $cache_file;;
1379 *) . ./$cache_file;;
1380 esac
1381 fi
1382else
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
1386fi
1387
1388# Check that the precious variables saved in the cache have kept the same
1389# value.
1390ac_cache_corrupted=false
1391for ac_var in `(set) 2>&1 |
1392 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394 eval ac_new_set=\$ac_env_${ac_var}_set
1395 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396 eval ac_new_val="\$ac_env_${ac_var}_value"
1397 case $ac_old_set,$ac_new_set in
1398 set,)
1399 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401 ac_cache_corrupted=: ;;
1402 ,set)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,);;
1407 *)
1408 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1409 # differences in whitespace do not lead to failure.
1410 ac_old_val_w=`echo x $ac_old_val`
1411 ac_new_val_w=`echo x $ac_new_val`
1412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
77008252 1414echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1415 ac_cache_corrupted=:
1416 else
1417 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1418echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1419 eval $ac_var=\$ac_old_val
1420 fi
1421 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1422echo "$as_me: former value: \`$ac_old_val'" >&2;}
1423 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1424echo "$as_me: current value: \`$ac_new_val'" >&2;}
77008252
JJ
1425 fi;;
1426 esac
1427 # Pass precious variables to config.status.
1428 if test "$ac_new_set" = set; then
1429 case $ac_new_val in
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 *) ac_arg=$ac_var=$ac_new_val ;;
1433 esac
1434 case " $ac_configure_args " in
1435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1436 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1437 esac
1438 fi
1439done
1440if $ac_cache_corrupted; then
18c04407
RW
1441 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1442echo "$as_me: error: in \`$ac_pwd':" >&2;}
77008252
JJ
1443 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1445 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1446echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447 { (exit 1); exit 1; }; }
1448fi
1449
1450ac_ext=c
1451ac_cpp='$CPP $CPPFLAGS'
1452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
18c04407
RW
1479
1480
1481
77008252
JJ
1482
1483
1484
1485
1486ac_aux_dir=
1487for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511# Make sure we can run config.sub.
1512$ac_config_sub sun4 >/dev/null 2>&1 ||
1513 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1514echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515 { (exit 1); exit 1; }; }
1516
1517echo "$as_me:$LINENO: checking build system type" >&5
1518echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519if test "${ac_cv_build+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 ac_cv_build_alias=$build_alias
1523test -z "$ac_cv_build_alias" &&
1524 ac_cv_build_alias=`$ac_config_guess`
1525test -z "$ac_cv_build_alias" &&
1526 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528 { (exit 1); exit 1; }; }
1529ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534fi
1535echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536echo "${ECHO_T}$ac_cv_build" >&6
1537build=$ac_cv_build
1538build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543echo "$as_me:$LINENO: checking host system type" >&5
1544echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547else
1548 ac_cv_host_alias=$host_alias
1549test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556fi
1557echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558echo "${ECHO_T}$ac_cv_host" >&6
1559host=$ac_cv_host
1560host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565echo "$as_me:$LINENO: checking target system type" >&5
1566echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 ac_cv_target_alias=$target_alias
1571test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578fi
1579echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580echo "${ECHO_T}$ac_cv_target" >&6
1581target=$ac_cv_target
1582target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587# The aliases save the names the user supplied, while $host etc.
1588# will get canonicalized.
1589test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1591 NONENONEs,x,x, &&
1592 program_prefix=${target_alias}-
f2b5129c
MM
1593 case ${build_alias} in
1594 "") build_noncanonical=${build} ;;
1595 *) build_noncanonical=${build_alias} ;;
1596esac
1597
1598 case ${host_alias} in
1599 "") host_noncanonical=${build_noncanonical} ;;
1600 *) host_noncanonical=${host_alias} ;;
1601esac
1602
1603 case ${target_alias} in
1604 "") target_noncanonical=${host_noncanonical} ;;
1605 *) target_noncanonical=${target_alias} ;;
1606esac
1607
1608
1609
77008252
JJ
1610
1611am__api_version="1.9"
1612# Find a good install program. We prefer a C program (faster),
1613# so one script is as good as another. But avoid the broken or
1614# incompatible versions:
1615# SysV /etc/install, /usr/sbin/install
1616# SunOS /usr/etc/install
1617# IRIX /sbin/install
1618# AIX /bin/install
1619# AmigaOS /C/install, which installs bootblocks on floppy discs
1620# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1621# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1622# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1623# OS/2's system install, which has a completely different semantic
1624# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1625# Reject install programs that cannot install multiple files.
77008252
JJ
1626echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1627echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1628if test -z "$INSTALL"; then
1629if test "${ac_cv_path_install+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 # Account for people who put trailing slashes in PATH elements.
1638case $as_dir/ in
1639 ./ | .// | /cC/* | \
1640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1641 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1642 /usr/ucb/* ) ;;
1643 *)
1644 # OSF1 and SCO ODT 3.0 have their own names for install.
1645 # Don't use installbsd from OSF since it installs stuff as root
1646 # by default.
1647 for ac_prog in ginstall scoinst install; do
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1650 if test $ac_prog = install &&
1651 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652 # AIX install. It has an incompatible calling convention.
1653 :
1654 elif test $ac_prog = install &&
1655 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1656 # program-specific install script used by HP pwplus--don't use.
1657 :
1658 else
38d24731
RW
1659 rm -rf conftest.one conftest.two conftest.dir
1660 echo one > conftest.one
1661 echo two > conftest.two
1662 mkdir conftest.dir
1663 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1664 test -s conftest.one && test -s conftest.two &&
1665 test -s conftest.dir/conftest.one &&
1666 test -s conftest.dir/conftest.two
1667 then
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
1670 fi
77008252
JJ
1671 fi
1672 fi
1673 done
1674 done
1675 ;;
1676esac
1677done
1678
38d24731 1679rm -rf conftest.one conftest.two conftest.dir
77008252
JJ
1680
1681fi
1682 if test "${ac_cv_path_install+set}" = set; then
1683 INSTALL=$ac_cv_path_install
1684 else
38d24731
RW
1685 # As a last resort, use the slow shell script. Don't cache a
1686 # value for INSTALL within a source directory, because that will
77008252 1687 # break other packages using the cache if that directory is
38d24731 1688 # removed, or if the value is a relative name.
77008252
JJ
1689 INSTALL=$ac_install_sh
1690 fi
1691fi
1692echo "$as_me:$LINENO: result: $INSTALL" >&5
1693echo "${ECHO_T}$INSTALL" >&6
1694
1695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1696# It thinks the first close brace ends the variable substitution.
1697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1698
1699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1700
1701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1702
1703echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1704echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1705# Just in case
1706sleep 1
1707echo timestamp > conftest.file
1708# Do `set' in a subshell so we don't clobber the current shell's
1709# arguments. Must try -L first in case configure is actually a
1710# symlink; some systems play weird games with the mod time of symlinks
1711# (eg FreeBSD returns the mod time of the symlink's containing
1712# directory).
1713if (
1714 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1715 if test "$*" = "X"; then
1716 # -L didn't work.
1717 set X `ls -t $srcdir/configure conftest.file`
1718 fi
1719 rm -f conftest.file
1720 if test "$*" != "X $srcdir/configure conftest.file" \
1721 && test "$*" != "X conftest.file $srcdir/configure"; then
1722
1723 # If neither matched, then we have a broken ls. This can happen
1724 # if, for instance, CONFIG_SHELL is bash and it inherits a
1725 # broken ls alias from the environment. This has actually
1726 # happened. Such a system could not be considered "sane".
1727 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1728alias in your environment" >&5
1729echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1730alias in your environment" >&2;}
1731 { (exit 1); exit 1; }; }
1732 fi
1733
1734 test "$2" = conftest.file
1735 )
1736then
1737 # Ok.
1738 :
1739else
1740 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1741Check your system clock" >&5
1742echo "$as_me: error: newly created file is older than distributed files!
1743Check your system clock" >&2;}
1744 { (exit 1); exit 1; }; }
1745fi
1746echo "$as_me:$LINENO: result: yes" >&5
1747echo "${ECHO_T}yes" >&6
1748test "$program_prefix" != NONE &&
1749 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1750# Use a double $ so make ignores it.
1751test "$program_suffix" != NONE &&
1752 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1753# Double any \ or $. echo might interpret backslashes.
1754# By default was `s,x,x', remove it if useless.
1755cat <<\_ACEOF >conftest.sed
1756s/[\\$]/&&/g;s/;s,x,x,$//
1757_ACEOF
1758program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1759rm conftest.sed
1760
1761# expand $ac_aux_dir to an absolute path
1762am_aux_dir=`cd $ac_aux_dir && pwd`
1763
1764test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1765# Use eval to expand $SHELL
1766if eval "$MISSING --run true"; then
1767 am_missing_run="$MISSING --run "
1768else
1769 am_missing_run=
1770 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1771echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1772fi
1773
1774if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1775 # We used to keeping the `.' as first argument, in order to
1776 # allow $(mkdir_p) to be used without argument. As in
1777 # $(mkdir_p) $(somedir)
1778 # where $(somedir) is conditionally defined. However this is wrong
1779 # for two reasons:
1780 # 1. if the package is installed by a user who cannot write `.'
1781 # make install will fail,
1782 # 2. the above comment should most certainly read
1783 # $(mkdir_p) $(DESTDIR)$(somedir)
1784 # so it does not work when $(somedir) is undefined and
1785 # $(DESTDIR) is not.
1786 # To support the latter case, we have to write
1787 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1788 # so the `.' trick is pointless.
1789 mkdir_p='mkdir -p --'
1790else
1791 # On NextStep and OpenStep, the `mkdir' command does not
1792 # recognize any option. It will interpret all options as
1793 # directories to create, and then abort because `.' already
1794 # exists.
1795 for d in ./-p ./--version;
1796 do
1797 test -d $d && rmdir $d
1798 done
1799 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1800 if test -f "$ac_aux_dir/mkinstalldirs"; then
1801 mkdir_p='$(mkinstalldirs)'
1802 else
1803 mkdir_p='$(install_sh) -d'
1804 fi
1805fi
1806
1807for ac_prog in gawk mawk nawk awk
1808do
1809 # Extract the first word of "$ac_prog", so it can be a program name with args.
1810set dummy $ac_prog; ac_word=$2
1811echo "$as_me:$LINENO: checking for $ac_word" >&5
1812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813if test "${ac_cv_prog_AWK+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815else
1816 if test -n "$AWK"; then
1817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1818else
1819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820for as_dir in $PATH
1821do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_AWK="$ac_prog"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1829 fi
1830done
1831done
1832
1833fi
1834fi
1835AWK=$ac_cv_prog_AWK
1836if test -n "$AWK"; then
1837 echo "$as_me:$LINENO: result: $AWK" >&5
1838echo "${ECHO_T}$AWK" >&6
1839else
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842fi
1843
1844 test -n "$AWK" && break
1845done
1846
1847echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1848echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1849set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1850if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853 cat >conftest.make <<\_ACEOF
1854all:
1855 @echo 'ac_maketemp="$(MAKE)"'
1856_ACEOF
1857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1858eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1859if test -n "$ac_maketemp"; then
1860 eval ac_cv_prog_make_${ac_make}_set=yes
1861else
1862 eval ac_cv_prog_make_${ac_make}_set=no
1863fi
1864rm -f conftest.make
1865fi
1866if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1867 echo "$as_me:$LINENO: result: yes" >&5
1868echo "${ECHO_T}yes" >&6
1869 SET_MAKE=
1870else
1871 echo "$as_me:$LINENO: result: no" >&5
1872echo "${ECHO_T}no" >&6
1873 SET_MAKE="MAKE=${MAKE-make}"
1874fi
1875
1876rm -rf .tst 2>/dev/null
1877mkdir .tst 2>/dev/null
1878if test -d .tst; then
1879 am__leading_dot=.
1880else
1881 am__leading_dot=_
1882fi
1883rmdir .tst 2>/dev/null
1884
1885# test to see if srcdir already configured
1886if test "`cd $srcdir && pwd`" != "`pwd`" &&
1887 test -f $srcdir/config.status; then
1888 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1889echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1890 { (exit 1); exit 1; }; }
1891fi
1892
1893# test whether we have cygpath
1894if test -z "$CYGPATH_W"; then
1895 if (cygpath --version) >/dev/null 2>/dev/null; then
1896 CYGPATH_W='cygpath -w'
1897 else
1898 CYGPATH_W=echo
1899 fi
1900fi
1901
1902
1903# Define the identity of the package.
1904 PACKAGE='libssp'
1905 VERSION='1.0'
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE "$PACKAGE"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define VERSION "$VERSION"
1915_ACEOF
1916
1917# Some tools Automake needs.
1918
1919ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1920
1921
1922AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1923
1924
1925AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1926
1927
1928AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1929
1930
1931MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1932
1933install_sh=${install_sh-"$am_aux_dir/install-sh"}
1934
1935# Installed binaries are usually stripped using `strip' when the user
1936# run `make install-strip'. However `strip' might not be the right
1937# tool to use in cross-compilation environments, therefore Automake
1938# will honor the `STRIP' environment variable to overrule this program.
1939if test "$cross_compiling" != no; then
1940 if test -n "$ac_tool_prefix"; then
1941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1942set dummy ${ac_tool_prefix}strip; ac_word=$2
1943echo "$as_me:$LINENO: checking for $ac_word" >&5
1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945if test "${ac_cv_prog_STRIP+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 if test -n "$STRIP"; then
1949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1950else
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1961 fi
1962done
1963done
1964
1965fi
1966fi
1967STRIP=$ac_cv_prog_STRIP
1968if test -n "$STRIP"; then
1969 echo "$as_me:$LINENO: result: $STRIP" >&5
1970echo "${ECHO_T}$STRIP" >&6
1971else
1972 echo "$as_me:$LINENO: result: no" >&5
1973echo "${ECHO_T}no" >&6
1974fi
1975
1976fi
1977if test -z "$ac_cv_prog_STRIP"; then
1978 ac_ct_STRIP=$STRIP
1979 # Extract the first word of "strip", so it can be a program name with args.
1980set dummy strip; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986 if test -n "$ac_ct_STRIP"; then
1987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_ac_ct_STRIP="strip"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000done
2001done
2002
2003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2004fi
2005fi
2006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2007if test -n "$ac_ct_STRIP"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2009echo "${ECHO_T}$ac_ct_STRIP" >&6
2010else
2011 echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6
2013fi
2014
2015 STRIP=$ac_ct_STRIP
2016else
2017 STRIP="$ac_cv_prog_STRIP"
2018fi
2019
2020fi
2021INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2022
2023# We need awk for the "check" target. The system "awk" is bad on
2024# some platforms.
2025# Always define AMTAR for backward compatibility.
2026
2027AMTAR=${AMTAR-"${am_missing_run}tar"}
2028
2029am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2030
2031
2032
2033
2034
2035
2036echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2037echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2038# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2039if test "${enable_version_specific_runtime_libs+set}" = set; then
2040 enableval="$enable_version_specific_runtime_libs"
2041 case "$enableval" in
2042 yes) version_specific_libs=yes ;;
2043 no) version_specific_libs=no ;;
2044 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2045echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2046 { (exit 1); exit 1; }; };;
2047 esac
2048else
2049 version_specific_libs=no
2050fi;
2051echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2052echo "${ECHO_T}$version_specific_libs" >&6
2053
2054echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2055echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2056 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2057if test "${enable_maintainer_mode+set}" = set; then
2058 enableval="$enable_maintainer_mode"
2059 USE_MAINTAINER_MODE=$enableval
2060else
2061 USE_MAINTAINER_MODE=no
2062fi;
2063 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2064echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2065
2066
2067if test $USE_MAINTAINER_MODE = yes; then
2068 MAINTAINER_MODE_TRUE=
2069 MAINTAINER_MODE_FALSE='#'
2070else
2071 MAINTAINER_MODE_TRUE='#'
2072 MAINTAINER_MODE_FALSE=
2073fi
2074
2075 MAINT=$MAINTAINER_MODE_TRUE
2076
2077
2078
2079
be14fe72 2080
77008252
JJ
2081# Default to --enable-multilib
2082# Check whether --enable-multilib or --disable-multilib was given.
2083if test "${enable_multilib+set}" = set; then
2084 enableval="$enable_multilib"
2085 case "$enableval" in
2086 yes) multilib=yes ;;
2087 no) multilib=no ;;
2088 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2089echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2090 { (exit 1); exit 1; }; } ;;
2091 esac
2092else
2093 multilib=yes
2094fi;
2095
2096# We may get other options which we leave undocumented:
2097# --with-target-subdir, --with-multisrctop, --with-multisubdir
2098# See config-ml.in if you want the gory details.
2099
2100if test "$srcdir" = "."; then
2101 if test "$with_target_subdir" != "."; then
2102 multi_basedir="$srcdir/$with_multisrctop../.."
2103 else
2104 multi_basedir="$srcdir/$with_multisrctop.."
2105 fi
2106else
2107 multi_basedir="$srcdir/.."
2108fi
2109
2110
5b043f08
GK
2111# Even if the default multilib is not a cross compilation,
2112# it may be that some of the other multilibs are.
2113if test $cross_compiling = no && test $multilib = yes \
2114 && test "x${with_multisubdir}" != x ; then
2115 cross_compiling=maybe
2116fi
2117
77008252
JJ
2118 ac_config_commands="$ac_config_commands default-1"
2119
2120
2121target_alias=${target_alias-$host_alias}
2122
2123
2124 ac_config_headers="$ac_config_headers config.h"
2125
2126
2127ac_ext=c
2128ac_cpp='$CPP $CPPFLAGS'
2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132
2133# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2134# We must force CC to /not/ be precious variables; otherwise
2135# the wrong, non-multilib-adjusted value will be used in multilibs.
2136# As a side effect, we have to subst CFLAGS ourselves.
2137
2138
2139
2140ac_ext=c
2141ac_cpp='$CPP $CPPFLAGS'
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148echo "$as_me:$LINENO: checking for $ac_word" >&5
2149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155else
2156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157for as_dir in $PATH
2158do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2166 fi
2167done
2168done
2169
2170fi
2171fi
2172CC=$ac_cv_prog_CC
2173if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6
2176else
2177 echo "$as_me:$LINENO: result: no" >&5
2178echo "${ECHO_T}no" >&6
2179fi
2180
2181fi
2182if test -z "$ac_cv_prog_CC"; then
2183 ac_ct_CC=$CC
2184 # Extract the first word of "gcc", so it can be a program name with args.
2185set dummy gcc; ac_word=$2
2186echo "$as_me:$LINENO: checking for $ac_word" >&5
2187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193else
2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195for as_dir in $PATH
2196do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_ac_ct_CC="gcc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2204 fi
2205done
2206done
2207
2208fi
2209fi
2210ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211if test -n "$ac_ct_CC"; then
2212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213echo "${ECHO_T}$ac_ct_CC" >&6
2214else
2215 echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6
2217fi
2218
2219 CC=$ac_ct_CC
2220else
2221 CC="$ac_cv_prog_CC"
2222fi
2223
2224if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227set dummy ${ac_tool_prefix}cc; ac_word=$2
2228echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235else
2236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="${ac_tool_prefix}cc"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247done
2248done
2249
2250fi
2251fi
2252CC=$ac_cv_prog_CC
2253if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255echo "${ECHO_T}$CC" >&6
2256else
2257 echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6
2259fi
2260
2261fi
2262if test -z "$ac_cv_prog_CC"; then
2263 ac_ct_CC=$CC
2264 # Extract the first word of "cc", so it can be a program name with args.
2265set dummy cc; ac_word=$2
2266echo "$as_me:$LINENO: checking for $ac_word" >&5
2267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271 if test -n "$ac_ct_CC"; then
2272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273else
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281 ac_cv_prog_ac_ct_CC="cc"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2284 fi
2285done
2286done
2287
2288fi
2289fi
2290ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291if test -n "$ac_ct_CC"; then
2292 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293echo "${ECHO_T}$ac_ct_CC" >&6
2294else
2295 echo "$as_me:$LINENO: result: no" >&5
2296echo "${ECHO_T}no" >&6
2297fi
2298
2299 CC=$ac_ct_CC
2300else
2301 CC="$ac_cv_prog_CC"
2302fi
2303
2304fi
2305if test -z "$CC"; then
2306 # Extract the first word of "cc", so it can be a program name with args.
2307set dummy cc; ac_word=$2
2308echo "$as_me:$LINENO: checking for $ac_word" >&5
2309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2315else
2316 ac_prog_rejected=no
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325 ac_prog_rejected=yes
2326 continue
2327 fi
2328 ac_cv_prog_CC="cc"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2331 fi
2332done
2333done
2334
2335if test $ac_prog_rejected = yes; then
2336 # We found a bogon in the path, so make sure we never use it.
2337 set dummy $ac_cv_prog_CC
2338 shift
2339 if test $# != 0; then
2340 # We chose a different compiler from the bogus one.
2341 # However, it has the same basename, so the bogon will be chosen
2342 # first if we set CC to just the basename; use the full file name.
2343 shift
2344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345 fi
2346fi
2347fi
2348fi
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352echo "${ECHO_T}$CC" >&6
2353else
2354 echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358fi
2359if test -z "$CC"; then
2360 if test -n "$ac_tool_prefix"; then
2361 for ac_prog in cl
2362 do
2363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2365echo "$as_me:$LINENO: checking for $ac_word" >&5
2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372else
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384done
2385done
2386
2387fi
2388fi
2389CC=$ac_cv_prog_CC
2390if test -n "$CC"; then
2391 echo "$as_me:$LINENO: result: $CC" >&5
2392echo "${ECHO_T}$CC" >&6
2393else
2394 echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6
2396fi
2397
2398 test -n "$CC" && break
2399 done
2400fi
2401if test -z "$CC"; then
2402 ac_ct_CC=$CC
2403 for ac_prog in cl
2404do
2405 # Extract the first word of "$ac_prog", so it can be a program name with args.
2406set dummy $ac_prog; ac_word=$2
2407echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 if test -n "$ac_ct_CC"; then
2413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_ac_ct_CC="$ac_prog"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426done
2427done
2428
2429fi
2430fi
2431ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432if test -n "$ac_ct_CC"; then
2433 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434echo "${ECHO_T}$ac_ct_CC" >&6
2435else
2436 echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6
2438fi
2439
2440 test -n "$ac_ct_CC" && break
2441done
2442
2443 CC=$ac_ct_CC
2444fi
2445
2446fi
2447
2448
18c04407
RW
2449test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2450echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
77008252
JJ
2452See \`config.log' for more details." >&5
2453echo "$as_me: error: no acceptable C compiler found in \$PATH
2454See \`config.log' for more details." >&2;}
18c04407 2455 { (exit 1); exit 1; }; }; }
77008252
JJ
2456
2457# Provide some information about the compiler.
2458echo "$as_me:$LINENO:" \
2459 "checking for C compiler version" >&5
2460ac_compiler=`set X $ac_compile; echo $2`
2461{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462 (eval $ac_compiler --version </dev/null >&5) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }
2466{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467 (eval $ac_compiler -v </dev/null >&5) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }
2471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472 (eval $ac_compiler -V </dev/null >&5) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2476
2477cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
2483
be14fe72
JM
2484int
2485main ()
2486{
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492# FIXME: Cleanup?
2493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2494 (eval $ac_link) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; then
2498 gcc_no_link=no
2499else
2500 gcc_no_link=yes
2501fi
2502
2503if test x$gcc_no_link = xyes; then
2504 # Setting cross_compile will disable run tests; it will
2505 # also disable AC_CHECK_FILE but that's generally
2506 # correct if we can't link.
2507 cross_compiling=yes
2508 EXEEXT=
2509else
2510 cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h. */
2516
77008252
JJ
2517int
2518main ()
2519{
2520
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525ac_clean_files_save=$ac_clean_files
2526ac_clean_files="$ac_clean_files a.out a.exe b.out"
2527# Try to create an executable without -o first, disregard a.out.
2528# It will help us diagnose broken compilers, and finding out an intuition
2529# of exeext.
2530echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2531echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2532ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2533if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2534 (eval $ac_link_default) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # Find the output, starting from the most likely. This scheme is
2539# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2540# resort.
2541
2542# Be careful to initialize this variable, since it used to be cached.
2543# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2544ac_cv_exeext=
2545# b.out is created by i960 compilers.
2546for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2547do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2551 ;;
2552 conftest.$ac_ext )
2553 # This is the source file.
2554 ;;
2555 [ab].out )
2556 # We found the default executable, but exeext='' is most
2557 # certainly right.
2558 break;;
2559 *.* )
2560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2561 # FIXME: I believe we export ac_cv_exeext for Libtool,
2562 # but it would be cool to find out if it's true. Does anybody
2563 # maintain Libtool? --akim.
2564 export ac_cv_exeext
2565 break;;
2566 * )
2567 break;;
2568 esac
2569done
2570else
2571 echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
18c04407
RW
2574{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2575echo "$as_me: error: in \`$ac_pwd':" >&2;}
77008252
JJ
2576{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2577See \`config.log' for more details." >&5
2578echo "$as_me: error: C compiler cannot create executables
2579See \`config.log' for more details." >&2;}
18c04407 2580 { (exit 77); exit 77; }; }; }
77008252
JJ
2581fi
2582
2583ac_exeext=$ac_cv_exeext
2584echo "$as_me:$LINENO: result: $ac_file" >&5
2585echo "${ECHO_T}$ac_file" >&6
2586
2587# Check the compiler produces executables we can run. If not, either
2588# the compiler is broken, or we cross compile.
2589echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2590echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2591# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2592# If not cross compiling, check that we can run a simple program.
2593if test "$cross_compiling" != yes; then
2594 if { ac_try='./$ac_file'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 cross_compiling=no
2601 else
2602 if test "$cross_compiling" = maybe; then
2603 cross_compiling=yes
2604 else
18c04407
RW
2605 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2606echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
77008252
JJ
2608If you meant to cross compile, use \`--host'.
2609See \`config.log' for more details." >&5
2610echo "$as_me: error: cannot run C compiled programs.
2611If you meant to cross compile, use \`--host'.
2612See \`config.log' for more details." >&2;}
18c04407 2613 { (exit 1); exit 1; }; }; }
77008252
JJ
2614 fi
2615 fi
2616fi
2617echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
2619
2620rm -f a.out a.exe conftest$ac_cv_exeext b.out
2621ac_clean_files=$ac_clean_files_save
2622# Check the compiler produces executables we can run. If not, either
2623# the compiler is broken, or we cross compile.
2624echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2625echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2626echo "$as_me:$LINENO: result: $cross_compiling" >&5
2627echo "${ECHO_T}$cross_compiling" >&6
2628
2629echo "$as_me:$LINENO: checking for suffix of executables" >&5
2630echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2632 (eval $ac_link) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; then
2636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2637# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2638# work properly (i.e., refer to `conftest.exe'), while it won't with
2639# `rm'.
2640for ac_file in conftest.exe conftest conftest.*; do
2641 test -f "$ac_file" || continue
2642 case $ac_file in
2643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 export ac_cv_exeext
2646 break;;
2647 * ) break;;
2648 esac
2649done
2650else
18c04407
RW
2651 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2652echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
77008252
JJ
2654See \`config.log' for more details." >&5
2655echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656See \`config.log' for more details." >&2;}
18c04407 2657 { (exit 1); exit 1; }; }; }
77008252
JJ
2658fi
2659
2660rm -f conftest$ac_cv_exeext
2661echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662echo "${ECHO_T}$ac_cv_exeext" >&6
2663
2664rm -f conftest.$ac_ext
2665EXEEXT=$ac_cv_exeext
2666ac_exeext=$EXEEXT
be14fe72 2667fi
77008252
JJ
2668echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2670if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 cat >conftest.$ac_ext <<_ACEOF
2674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
2679
2680int
2681main ()
2682{
2683
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688rm -f conftest.o conftest.obj
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2695 case $ac_file in
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698 break;;
2699 esac
2700done
2701else
2702 echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
18c04407
RW
2705{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2706echo "$as_me: error: in \`$ac_pwd':" >&2;}
77008252
JJ
2707{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2708See \`config.log' for more details." >&5
2709echo "$as_me: error: cannot compute suffix of object files: cannot compile
2710See \`config.log' for more details." >&2;}
18c04407 2711 { (exit 1); exit 1; }; }; }
77008252
JJ
2712fi
2713
2714rm -f conftest.$ac_cv_objext conftest.$ac_ext
2715fi
2716echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2717echo "${ECHO_T}$ac_cv_objext" >&6
2718OBJEXT=$ac_cv_objext
2719ac_objext=$OBJEXT
2720echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2721echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2722if test "${ac_cv_c_compiler_gnu+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725 cat >conftest.$ac_ext <<_ACEOF
2726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h. */
2731
2732int
2733main ()
2734{
2735#ifndef __GNUC__
2736 choke me
2737#endif
2738
2739 ;
2740 return 0;
2741}
2742_ACEOF
2743rm -f conftest.$ac_objext
2744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_c_werror_flag"
2753 || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 ac_compiler_gnu=yes
2766else
2767 echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770ac_compiler_gnu=no
2771fi
2772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773ac_cv_c_compiler_gnu=$ac_compiler_gnu
2774
2775fi
2776echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2778GCC=`test $ac_compiler_gnu = yes && echo yes`
2779ac_test_CFLAGS=${CFLAGS+set}
2780ac_save_CFLAGS=$CFLAGS
2781CFLAGS="-g"
2782echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2783echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2784if test "${ac_cv_prog_cc_g+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787 cat >conftest.$ac_ext <<_ACEOF
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793
2794int
2795main ()
2796{
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 ac_cv_prog_cc_g=yes
2825else
2826 echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829ac_cv_prog_cc_g=no
2830fi
2831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832fi
2833echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2834echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2835if test "$ac_test_CFLAGS" = set; then
2836 CFLAGS=$ac_save_CFLAGS
2837elif test $ac_cv_prog_cc_g = yes; then
2838 if test "$GCC" = yes; then
2839 CFLAGS="-g -O2"
2840 else
2841 CFLAGS="-g"
2842 fi
2843else
2844 if test "$GCC" = yes; then
2845 CFLAGS="-O2"
2846 else
2847 CFLAGS=
2848 fi
2849fi
2850echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2851echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2852if test "${ac_cv_prog_cc_stdc+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 ac_cv_prog_cc_stdc=no
2856ac_save_CC=$CC
2857cat >conftest.$ac_ext <<_ACEOF
2858/* confdefs.h. */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h. */
2863#include <stdarg.h>
2864#include <stdio.h>
2865#include <sys/types.h>
2866#include <sys/stat.h>
2867/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2868struct buf { int x; };
2869FILE * (*rcsopen) (struct buf *, struct stat *, int);
2870static char *e (p, i)
2871 char **p;
2872 int i;
2873{
2874 return p[i];
2875}
2876static char *f (char * (*g) (char **, int), char **p, ...)
2877{
2878 char *s;
2879 va_list v;
2880 va_start (v,p);
2881 s = g (p, va_arg (v,int));
2882 va_end (v);
2883 return s;
2884}
2885
2886/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2887 function prototypes and stuff, but not '\xHH' hex character constants.
2888 These don't provoke an error unfortunately, instead are silently treated
2889 as 'x'. The following induces an error, until -std1 is added to get
2890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2891 array size at least. It's necessary to write '\x00'==0 to get something
2892 that's true only with -std1. */
2893int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2894
2895int test (int i, double x);
2896struct s1 {int (*f) (int a);};
2897struct s2 {int (*f) (double a);};
2898int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2899int argc;
2900char **argv;
2901int
2902main ()
2903{
2904return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2905 ;
2906 return 0;
2907}
2908_ACEOF
2909# Don't try gcc -ansi; that turns off useful extensions and
2910# breaks some systems' header files.
2911# AIX -qlanglvl=ansi
2912# Ultrix and OSF/1 -std1
2913# HP-UX 10.20 and later -Ae
2914# HP-UX older versions -Aa -D_HPUX_SOURCE
2915# SVR4 -Xc -D__EXTENSIONS__
2916for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2917do
2918 CC="$ac_save_CC $ac_arg"
2919 rm -f conftest.$ac_objext
2920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -z "$ac_c_werror_flag"
2929 || test ! -s conftest.err'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_prog_cc_stdc=$ac_arg
2942break
2943else
2944 echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947fi
2948rm -f conftest.err conftest.$ac_objext
2949done
2950rm -f conftest.$ac_ext conftest.$ac_objext
2951CC=$ac_save_CC
2952
2953fi
2954
2955case "x$ac_cv_prog_cc_stdc" in
2956 x|xno)
2957 echo "$as_me:$LINENO: result: none needed" >&5
2958echo "${ECHO_T}none needed" >&6 ;;
2959 *)
2960 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2961echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2962 CC="$CC $ac_cv_prog_cc_stdc" ;;
2963esac
2964
2965# Some people use a C++ compiler to compile C. Since we use `exit',
2966# in C++ we need to declare it. In case someone uses the same compiler
2967# for both compiling C and C++ we need to have the C++ compiler decide
2968# the declaration of exit, since it's the most demanding environment.
2969cat >conftest.$ac_ext <<_ACEOF
2970#ifndef __cplusplus
2971 choke me
2972#endif
2973_ACEOF
2974rm -f conftest.$ac_objext
2975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976 (eval $ac_compile) 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag"
2984 || test ! -s conftest.err'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 for ac_declaration in \
2997 '' \
2998 'extern "C" void std::exit (int) throw (); using std::exit;' \
2999 'extern "C" void std::exit (int); using std::exit;' \
3000 'extern "C" void exit (int) throw ();' \
3001 'extern "C" void exit (int);' \
3002 'void exit (int);'
3003do
3004 cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h. */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h. */
3010$ac_declaration
3011#include <stdlib.h>
3012int
3013main ()
3014{
3015exit (42);
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext
3021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3022 (eval $ac_compile) 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_c_werror_flag"
3030 || test ! -s conftest.err'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 :
3043else
3044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047continue
3048fi
3049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050 cat >conftest.$ac_ext <<_ACEOF
3051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
3056$ac_declaration
3057int
3058main ()
3059{
3060exit (42);
3061 ;
3062 return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext
3066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_c_werror_flag"
3075 || test ! -s conftest.err'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 (eval $ac_try) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 break
3088else
3089 echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092fi
3093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094done
3095rm -f conftest*
3096if test -n "$ac_declaration"; then
3097 echo '#ifdef __cplusplus' >>confdefs.h
3098 echo $ac_declaration >>confdefs.h
3099 echo '#endif' >>confdefs.h
3100fi
3101
3102else
3103 echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106fi
3107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108ac_ext=c
3109ac_cpp='$CPP $CPPFLAGS'
3110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113DEPDIR="${am__leading_dot}deps"
3114
3115 ac_config_commands="$ac_config_commands depfiles"
3116
3117
3118am_make=${MAKE-make}
3119cat > confinc << 'END'
3120am__doit:
3121 @echo done
3122.PHONY: am__doit
3123END
3124# If we don't find an include directive, just comment out the code.
3125echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3126echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3127am__include="#"
3128am__quote=
3129_am_result=none
3130# First try GNU make style include.
3131echo "include confinc" > confmf
3132# We grep out `Entering directory' and `Leaving directory'
3133# messages which can occur if `w' ends up in MAKEFLAGS.
3134# In particular we don't look at `^make:' because GNU make might
3135# be invoked under some other name (usually "gmake"), in which
3136# case it prints its new name instead of `make'.
3137if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3138 am__include=include
3139 am__quote=
3140 _am_result=GNU
3141fi
3142# Now try BSD make style include.
3143if test "$am__include" = "#"; then
3144 echo '.include "confinc"' > confmf
3145 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3146 am__include=.include
3147 am__quote="\""
3148 _am_result=BSD
3149 fi
3150fi
3151
3152
3153echo "$as_me:$LINENO: result: $_am_result" >&5
3154echo "${ECHO_T}$_am_result" >&6
3155rm -f confinc confmf
3156
3157# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3158if test "${enable_dependency_tracking+set}" = set; then
3159 enableval="$enable_dependency_tracking"
3160
3161fi;
3162if test "x$enable_dependency_tracking" != xno; then
3163 am_depcomp="$ac_aux_dir/depcomp"
3164 AMDEPBACKSLASH='\'
3165fi
3166
3167
3168if test "x$enable_dependency_tracking" != xno; then
3169 AMDEP_TRUE=
3170 AMDEP_FALSE='#'
3171else
3172 AMDEP_TRUE='#'
3173 AMDEP_FALSE=
3174fi
3175
3176
3177
3178
3179depcc="$CC" am_compiler_list=
3180
3181echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3182echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3183if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3187 # We make a subdir and do the tests there. Otherwise we can end up
3188 # making bogus files that we don't know about and never remove. For
3189 # instance it was reported that on HP-UX the gcc test will end up
3190 # making a dummy file named `D' -- because `-MD' means `put the output
3191 # in D'.
3192 mkdir conftest.dir
3193 # Copy depcomp to subdir because otherwise we won't find it if we're
3194 # using a relative directory.
3195 cp "$am_depcomp" conftest.dir
3196 cd conftest.dir
3197 # We will build objects and dependencies in a subdirectory because
3198 # it helps to detect inapplicable dependency modes. For instance
3199 # both Tru64's cc and ICC support -MD to output dependencies as a
3200 # side effect of compilation, but ICC will put the dependencies in
3201 # the current directory while Tru64 will put them in the object
3202 # directory.
3203 mkdir sub
3204
3205 am_cv_CC_dependencies_compiler_type=none
3206 if test "$am_compiler_list" = ""; then
3207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3208 fi
3209 for depmode in $am_compiler_list; do
3210 # Setup a source with many dependencies, because some compilers
3211 # like to wrap large dependency lists on column 80 (with \), and
3212 # we should not choose a depcomp mode which is confused by this.
3213 #
3214 # We need to recreate these files for each test, as the compiler may
3215 # overwrite some of them when testing with obscure command lines.
3216 # This happens at least with the AIX C compiler.
3217 : > sub/conftest.c
3218 for i in 1 2 3 4 5 6; do
3219 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3220 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3221 # Solaris 8's {/usr,}/bin/sh.
3222 touch sub/conftst$i.h
3223 done
3224 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3225
3226 case $depmode in
3227 nosideeffect)
3228 # after this tag, mechanisms are not by side-effect, so they'll
3229 # only be used when explicitly requested
3230 if test "x$enable_dependency_tracking" = xyes; then
3231 continue
3232 else
3233 break
3234 fi
3235 ;;
3236 none) break ;;
3237 esac
3238 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3239 # mode. It turns out that the SunPro C++ compiler does not properly
3240 # handle `-M -o', and we need to detect this.
3241 if depmode=$depmode \
3242 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3244 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3245 >/dev/null 2>conftest.err &&
3246 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3247 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3248 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3249 # icc doesn't choke on unknown options, it will just issue warnings
3250 # or remarks (even with -Werror). So we grep stderr for any message
3251 # that says an option was ignored or not supported.
3252 # When given -MP, icc 7.0 and 7.1 complain thusly:
3253 # icc: Command line warning: ignoring option '-M'; no argument required
3254 # The diagnosis changed in icc 8.0:
3255 # icc: Command line remark: option '-MP' not supported
3256 if (grep 'ignoring option' conftest.err ||
3257 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3258 am_cv_CC_dependencies_compiler_type=$depmode
3259 break
3260 fi
3261 fi
3262 done
3263
3264 cd ..
3265 rm -rf conftest.dir
3266else
3267 am_cv_CC_dependencies_compiler_type=none
3268fi
3269
3270fi
3271echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3272echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3273CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3274
3275
3276
3277if
3278 test "x$enable_dependency_tracking" != xno \
3279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3280 am__fastdepCC_TRUE=
3281 am__fastdepCC_FALSE='#'
3282else
3283 am__fastdepCC_TRUE='#'
3284 am__fastdepCC_FALSE=
3285fi
3286
3287
3288
3289
3290
3291
3292if test "x$GCC" != "xyes"; then
3293 { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3294echo "$as_me: error: libssp must be built with GCC" >&2;}
3295 { (exit 1); exit 1; }; }
3296fi
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3304# On Suns, sometimes $CPP names a directory.
3305if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3307fi
3308if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 # Double quotes because CPP needs to be expanded
3313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 do
3315 ac_preproc_ok=false
3316for ac_c_preproc_warn_flag in '' yes
3317do
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h. */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h. */
3330#ifdef __STDC__
3331# include <limits.h>
3332#else
3333# include <assert.h>
3334#endif
3335 Syntax error
3336_ACEOF
3337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } >/dev/null; then
3345 if test -s conftest.err; then
3346 ac_cpp_err=$ac_c_preproc_warn_flag
3347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3348 else
3349 ac_cpp_err=
3350 fi
3351else
3352 ac_cpp_err=yes
3353fi
3354if test -z "$ac_cpp_err"; then
3355 :
3356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Broken: fails on valid input.
3361continue
3362fi
3363rm -f conftest.err conftest.$ac_ext
3364
3365 # OK, works on sane cases. Now check whether non-existent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#include <ac_nonexistent.h>
3374_ACEOF
3375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev/null; then
3383 if test -s conftest.err; then
3384 ac_cpp_err=$ac_c_preproc_warn_flag
3385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 else
3387 ac_cpp_err=
3388 fi
3389else
3390 ac_cpp_err=yes
3391fi
3392if test -z "$ac_cpp_err"; then
3393 # Broken: success on invalid input.
3394continue
3395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 # Passes both tests.
3400ac_preproc_ok=:
3401break
3402fi
3403rm -f conftest.err conftest.$ac_ext
3404
3405done
3406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407rm -f conftest.err conftest.$ac_ext
3408if $ac_preproc_ok; then
3409 break
3410fi
3411
3412 done
3413 ac_cv_prog_CPP=$CPP
3414
3415fi
3416 CPP=$ac_cv_prog_CPP
3417else
3418 ac_cv_prog_CPP=$CPP
3419fi
3420echo "$as_me:$LINENO: result: $CPP" >&5
3421echo "${ECHO_T}$CPP" >&6
3422ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442 Syntax error
3443_ACEOF
3444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
3462 :
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468continue
3469fi
3470rm -f conftest.err conftest.$ac_ext
3471
3472 # OK, works on sane cases. Now check whether non-existent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
3480#include <ac_nonexistent.h>
3481_ACEOF
3482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3495 fi
3496else
3497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3501continue
3502else
3503 echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 # Passes both tests.
3507ac_preproc_ok=:
3508break
3509fi
3510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then
3516 :
3517else
18c04407
RW
3518 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
77008252
JJ
3521See \`config.log' for more details." >&5
3522echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3523See \`config.log' for more details." >&2;}
18c04407 3524 { (exit 1); exit 1; }; }; }
77008252
JJ
3525fi
3526
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3535echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3536save_CFLAGS="$CFLAGS"
3537CFLAGS="$CFLAGS -fstack-protector -Werror"
3538
3539cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545
3546void __attribute__((noinline)) bar (char *x)
3547{
3548 __builtin_memset (x, 0, 64);
3549}
3550int
3551main ()
3552{
3553char buf[64]; bar (buf);
3554 ;
3555 return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext
3559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586echo "$as_me:$LINENO: result: no" >&5
3587echo "${ECHO_T}no" >&6
3588fi
3589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3590CFLAGS="$save_CFLAGS"
3591
3592echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3593echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3594cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600
3601void __attribute__((visibility ("hidden"))) bar (void) {}
3602int
3603main ()
3604{
3605
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610rm -f conftest.$ac_objext
3611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ssp_hidden=yes
3633else
3634 echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637ssp_hidden=no
3638fi
3639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3641echo "${ECHO_T}$ssp_hidden" >&6
3642if test x$ssp_hidden = xyes; then
3643
3644cat >>confdefs.h <<\_ACEOF
3645#define HAVE_HIDDEN_VISIBILITY 1
3646_ACEOF
3647
3648fi
3649
3650echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3651echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3652cat > conftest.map <<EOF
3653FOO_1.0 {
3654 global: *foo*; bar; local: *;
3655};
3656EOF
3657save_LDFLAGS="$LDFLAGS"
b615db81 3658LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
be14fe72
JM
3659if test x$gcc_no_link = xyes; then
3660 # If we cannot link, we cannot build shared libraries, so do not use
3661 # symbol versioning.
3662 ssp_use_symver=no
3663else
3664 if test x$gcc_no_link = xyes; then
3665 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3666echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3667 { (exit 1); exit 1; }; }
3668fi
77008252
JJ
3669cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
3675int foo;
3676int
3677main ()
3678{
3679
3680 ;
3681 return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext conftest$ac_exeext
3685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest$ac_exeext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ssp_use_symver=yes
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711ssp_use_symver=no
3712fi
3713rm -f conftest.err conftest.$ac_objext \
3714 conftest$ac_exeext conftest.$ac_ext
be14fe72 3715fi
77008252
JJ
3716LDFLAGS="$save_LDFLAGS"
3717echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3718echo "${ECHO_T}$ssp_use_symver" >&6
3719
3720
3721if test "x$ssp_use_symver" = xyes; then
3722 LIBSSP_USE_SYMVER_TRUE=
3723 LIBSSP_USE_SYMVER_FALSE='#'
3724else
3725 LIBSSP_USE_SYMVER_TRUE='#'
3726 LIBSSP_USE_SYMVER_FALSE=
3727fi
3728
3729
3730
3731echo "$as_me:$LINENO: checking for egrep" >&5
3732echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3733if test "${ac_cv_prog_egrep+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3737 then ac_cv_prog_egrep='grep -E'
3738 else ac_cv_prog_egrep='egrep'
3739 fi
3740fi
3741echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3742echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3743 EGREP=$ac_cv_prog_egrep
3744
3745
3746echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3748if test "${ac_cv_header_stdc+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h. */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h. */
3757#include <stdlib.h>
3758#include <stdarg.h>
3759#include <string.h>
3760#include <float.h>
3761
3762int
3763main ()
3764{
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770rm -f conftest.$ac_objext
3771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_cv_header_stdc=yes
3793else
3794 echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797ac_cv_header_stdc=no
3798fi
3799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800
3801if test $ac_cv_header_stdc = yes; then
3802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3803 cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h. */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h. */
3809#include <string.h>
3810
3811_ACEOF
3812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813 $EGREP "memchr" >/dev/null 2>&1; then
3814 :
3815else
3816 ac_cv_header_stdc=no
3817fi
3818rm -f conftest*
3819
3820fi
3821
3822if test $ac_cv_header_stdc = yes; then
3823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3824 cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h. */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h. */
3830#include <stdlib.h>
3831
3832_ACEOF
3833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "free" >/dev/null 2>&1; then
3835 :
3836else
3837 ac_cv_header_stdc=no
3838fi
3839rm -f conftest*
3840
3841fi
3842
3843if test $ac_cv_header_stdc = yes; then
3844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3845 if test "$cross_compiling" = yes; then
3846 :
3847else
3848 cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
3854#include <ctype.h>
3855#if ((' ' & 0x0FF) == 0x020)
3856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3858#else
3859# define ISLOWER(c) \
3860 (('a' <= (c) && (c) <= 'i') \
3861 || ('j' <= (c) && (c) <= 'r') \
3862 || ('s' <= (c) && (c) <= 'z'))
3863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3864#endif
3865
3866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3867int
3868main ()
3869{
3870 int i;
3871 for (i = 0; i < 256; i++)
3872 if (XOR (islower (i), ISLOWER (i))
3873 || toupper (i) != TOUPPER (i))
3874 exit(2);
3875 exit (0);
3876}
3877_ACEOF
3878rm -f conftest$ac_exeext
3879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880 (eval $ac_link) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 :
3890else
3891 echo "$as_me: program exited with status $ac_status" >&5
3892echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
3894
3895( exit $ac_status )
3896ac_cv_header_stdc=no
3897fi
3898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3899fi
3900fi
3901fi
3902echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3903echo "${ECHO_T}$ac_cv_header_stdc" >&6
3904if test $ac_cv_header_stdc = yes; then
3905
3906cat >>confdefs.h <<\_ACEOF
3907#define STDC_HEADERS 1
3908_ACEOF
3909
3910fi
3911
3912# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3923 inttypes.h stdint.h unistd.h
3924do
3925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3926echo "$as_me:$LINENO: checking for $ac_header" >&5
3927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3928if eval "test \"\${$as_ac_Header+set}\" = set"; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931 cat >conftest.$ac_ext <<_ACEOF
3932/* confdefs.h. */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h. */
3937$ac_includes_default
3938
3939#include <$ac_header>
3940_ACEOF
3941rm -f conftest.$ac_objext
3942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag"
3951 || test ! -s conftest.err'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } &&
3957 { ac_try='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 eval "$as_ac_Header=yes"
3964else
3965 echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968eval "$as_ac_Header=no"
3969fi
3970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3971fi
3972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3974if test `eval echo '${'$as_ac_Header'}'` = yes; then
3975 cat >>confdefs.h <<_ACEOF
3976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3977_ACEOF
3978
3979fi
3980
3981done
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3993do
3994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3995if eval "test \"\${$as_ac_Header+set}\" = set"; then
3996 echo "$as_me:$LINENO: checking for $ac_header" >&5
3997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3998if eval "test \"\${$as_ac_Header+set}\" = set"; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000fi
4001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4003else
4004 # Is the header compilable?
4005echo "$as_me:$LINENO: checking $ac_header usability" >&5
4006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4007cat >conftest.$ac_ext <<_ACEOF
4008/* confdefs.h. */
4009_ACEOF
4010cat confdefs.h >>conftest.$ac_ext
4011cat >>conftest.$ac_ext <<_ACEOF
4012/* end confdefs.h. */
4013$ac_includes_default
4014#include <$ac_header>
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_header_compiler=yes
4039else
4040 echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043ac_header_compiler=no
4044fi
4045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4047echo "${ECHO_T}$ac_header_compiler" >&6
4048
4049# Is the header present?
4050echo "$as_me:$LINENO: checking $ac_header presence" >&5
4051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4052cat >conftest.$ac_ext <<_ACEOF
4053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
4058#include <$ac_header>
4059_ACEOF
4060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev/null; then
4068 if test -s conftest.err; then
4069 ac_cpp_err=$ac_c_preproc_warn_flag
4070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4071 else
4072 ac_cpp_err=
4073 fi
4074else
4075 ac_cpp_err=yes
4076fi
4077if test -z "$ac_cpp_err"; then
4078 ac_header_preproc=yes
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 ac_header_preproc=no
4084fi
4085rm -f conftest.err conftest.$ac_ext
4086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4087echo "${ECHO_T}$ac_header_preproc" >&6
4088
4089# So? What about this header?
4090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4091 yes:no: )
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4096 ac_header_preproc=yes
4097 ;;
4098 no:yes:* )
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4111 (
4112 cat <<\_ASBOX
4113## --------------------------------- ##
4114## Report this to the libssp lists. ##
4115## --------------------------------- ##
4116_ASBOX
4117 ) |
4118 sed "s/^/$as_me: WARNING: /" >&2
4119 ;;
4120esac
4121echo "$as_me:$LINENO: checking for $ac_header" >&5
4122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4123if eval "test \"\${$as_ac_Header+set}\" = set"; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126 eval "$as_ac_Header=\$ac_header_preproc"
4127fi
4128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4130
4131fi
4132if test `eval echo '${'$as_ac_Header'}'` = yes; then
4133 cat >>confdefs.h <<_ACEOF
4134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4135_ACEOF
4136
4137fi
4138
4139done
4140
4141
be14fe72
JM
4142if test x$gcc_no_link = xyes; then
4143 # Presume the ISO C functions are available; add target-specific
4144 # configuration here if required.
4145 cat >>confdefs.h <<\_ACEOF
4146#define HAVE_STRNCPY 1
4147_ACEOF
4148
4149 cat >>confdefs.h <<\_ACEOF
4150#define HAVE_STRNCAT 1
4151_ACEOF
4152
4153else
77008252
JJ
4154
4155
4156
4157for ac_func in mempcpy strncpy strncat
4158do
4159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4160echo "$as_me:$LINENO: checking for $ac_func" >&5
4161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4162if eval "test \"\${$as_ac_var+set}\" = set"; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
be14fe72
JM
4165 if test x$gcc_no_link = xyes; then
4166 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4167echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4168 { (exit 1); exit 1; }; }
4169fi
4170cat >conftest.$ac_ext <<_ACEOF
77008252
JJ
4171/* confdefs.h. */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h. */
4176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4178#define $ac_func innocuous_$ac_func
4179
4180/* System header to define __stub macros and hopefully few prototypes,
4181 which can conflict with char $ac_func (); below.
4182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 <limits.h> exists even on freestanding compilers. */
4184
4185#ifdef __STDC__
4186# include <limits.h>
4187#else
4188# include <assert.h>
4189#endif
4190
4191#undef $ac_func
4192
4193/* Override any gcc2 internal prototype to avoid an error. */
4194#ifdef __cplusplus
4195extern "C"
4196{
4197#endif
4198/* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4200char $ac_func ();
4201/* The GNU C library defines this for functions which it implements
4202 to always fail with ENOSYS. Some functions are actually named
4203 something starting with __ and the normal name is an alias. */
4204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4205choke me
4206#else
4207char (*f) () = $ac_func;
4208#endif
4209#ifdef __cplusplus
4210}
4211#endif
4212
4213int
4214main ()
4215{
4216return f != $ac_func;
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext conftest$ac_exeext
4222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag"
4231 || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 eval "$as_ac_var=yes"
4244else
4245 echo "$as_me: failed program was:" >&5
4246sed 's/^/| /' conftest.$ac_ext >&5
4247
4248eval "$as_ac_var=no"
4249fi
4250rm -f conftest.err conftest.$ac_objext \
4251 conftest$ac_exeext conftest.$ac_ext
4252fi
4253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4255if test `eval echo '${'$as_ac_var'}'` = yes; then
4256 cat >>confdefs.h <<_ACEOF
4257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4258_ACEOF
4259
4260fi
4261done
4262
be14fe72 4263fi
77008252
JJ
4264
4265echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4266echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4267if test "$cross_compiling" = yes; then
4268 ssp_have_usable_vsnprintf=undef
4269else
4270 cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276
4277#include <stdarg.h>
4278#include <string.h>
4279#include <stdio.h>
4280int foo (char *buf, size_t n, const char *fmt, ...)
4281{
4282 va_list ap;
4283 int ret;
4284 va_start (ap, fmt);
4285 ret = vsnprintf (buf, n, fmt, ap);
4286 va_end (ap);
4287 return ret;
4288}
4289int
4290main ()
4291{
4292char buf[8]; memset (buf, 'A', sizeof (buf));
4293 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4294 return 1;
4295 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300rm -f conftest$ac_exeext
4301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302 (eval $ac_link) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ssp_have_usable_vsnprintf=define
4312else
4313 echo "$as_me: program exited with status $ac_status" >&5
4314echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317( exit $ac_status )
4318ssp_have_usable_vsnprintf=undef
4319fi
4320rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4321fi
4322if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4323 echo "$as_me:$LINENO: result: yes" >&5
4324echo "${ECHO_T}yes" >&6
4325
4326cat >>confdefs.h <<\_ACEOF
4327#define HAVE_USABLE_VSNPRINTF 1
4328_ACEOF
4329
4330else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333fi
4334
4335
77a3eb61
PG
4336case `pwd` in
4337 *\ * | *\ *)
4338 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4339echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4340esac
1cf3d07d
SE
4341
4342
1cf3d07d 4343
77a3eb61
PG
4344macro_version='2.2.6'
4345macro_revision='1.3012'
1cf3d07d
SE
4346
4347
4348
4349
4350
4351
77008252 4352
1cf3d07d
SE
4353
4354
4355
4356
4357
4358
77a3eb61 4359ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d
SE
4360
4361echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4362echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4363if test "${lt_cv_path_SED+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 # Loop through the user's path and test for sed and gsed.
4367# Then use that list of sed's as ones to test for truncation.
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for lt_ac_prog in sed gsed; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4376 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4377 fi
4378 done
4379 done
4380done
4381IFS=$as_save_IFS
4382lt_ac_max=0
4383lt_ac_count=0
4384# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4385# along with /bin/sed that truncates output.
4386for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4387 test ! -f $lt_ac_sed && continue
4388 cat /dev/null > conftest.in
4389 lt_ac_count=0
4390 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4391 # Check for GNU sed and select it if it is found.
4392 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4393 lt_cv_path_SED=$lt_ac_sed
4394 break
4395 fi
4396 while true; do
4397 cat conftest.in conftest.in >conftest.tmp
4398 mv conftest.tmp conftest.in
4399 cp conftest.in conftest.nl
4400 echo >>conftest.nl
4401 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4402 cmp -s conftest.out conftest.nl || break
4403 # 10000 chars as input seems more than enough
4404 test $lt_ac_count -gt 10 && break
4405 lt_ac_count=`expr $lt_ac_count + 1`
4406 if test $lt_ac_count -gt $lt_ac_max; then
4407 lt_ac_max=$lt_ac_count
4408 lt_cv_path_SED=$lt_ac_sed
4409 fi
4410 done
4411done
4412
4413fi
4414
4415SED=$lt_cv_path_SED
4416
4417echo "$as_me:$LINENO: result: $SED" >&5
4418echo "${ECHO_T}$SED" >&6
4419
4420test -z "$SED" && SED=sed
4421Xsed="$SED -e 1s/^X//"
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433echo "$as_me:$LINENO: checking for fgrep" >&5
4434echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4435if test "${ac_cv_prog_fgrep+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4439 then ac_cv_prog_fgrep='grep -F'
4440 else ac_cv_prog_fgrep='fgrep'
4441 fi
4442fi
4443echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4444echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4445 FGREP=$ac_cv_prog_fgrep
4446
4447
4448test -z "$GREP" && GREP=grep
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
77008252
JJ
4468# Check whether --with-gnu-ld or --without-gnu-ld was given.
4469if test "${with_gnu_ld+set}" = set; then
4470 withval="$with_gnu_ld"
4471 test "$withval" = no || with_gnu_ld=yes
4472else
4473 with_gnu_ld=no
4474fi;
4475ac_prog=ld
4476if test "$GCC" = yes; then
4477 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
4478 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4479echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
77008252
JJ
4480 case $host in
4481 *-*-mingw*)
4482 # gcc leaves a trailing carriage return which upsets mingw
4483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4484 *)
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4486 esac
4487 case $ac_prog in
4488 # Accept absolute paths.
1cf3d07d 4489 [\\/]* | ?:[\\/]*)
77008252 4490 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4491 # Canonicalize the pathname of ld
4492 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4493 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4494 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
77008252
JJ
4495 done
4496 test -z "$LD" && LD="$ac_prog"
4497 ;;
4498 "")
4499 # If it fails, then pretend we aren't using GCC.
4500 ac_prog=ld
4501 ;;
4502 *)
4503 # If it is relative, then search for the first ld in PATH.
4504 with_gnu_ld=unknown
4505 ;;
4506 esac
4507elif test "$with_gnu_ld" = yes; then
4508 echo "$as_me:$LINENO: checking for GNU ld" >&5
4509echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4510else
4511 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4512echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4513fi
4514if test "${lt_cv_path_LD+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 if test -z "$LD"; then
1cf3d07d 4518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
77008252 4519 for ac_dir in $PATH; do
1cf3d07d 4520 IFS="$lt_save_ifs"
77008252
JJ
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4523 lt_cv_path_LD="$ac_dir/$ac_prog"
4524 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4525 # but apparently some variants of GNU ld only accept -v.
77008252 4526 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4528 *GNU* | *'with BFD'*)
77008252 4529 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4530 ;;
4531 *)
77008252 4532 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4533 ;;
4534 esac
77008252
JJ
4535 fi
4536 done
1cf3d07d 4537 IFS="$lt_save_ifs"
77008252
JJ
4538else
4539 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4540fi
4541fi
4542
4543LD="$lt_cv_path_LD"
4544if test -n "$LD"; then
4545 echo "$as_me:$LINENO: result: $LD" >&5
4546echo "${ECHO_T}$LD" >&6
4547else
4548 echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6
4550fi
4551test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4552echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4553 { (exit 1); exit 1; }; }
4554echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4555echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4556if test "${lt_cv_prog_gnu_ld+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
1cf3d07d
SE
4559 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4560case `$LD -v 2>&1 </dev/null` in
4561*GNU* | *'with BFD'*)
77008252 4562 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4563 ;;
4564*)
77008252 4565 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4566 ;;
4567esac
77008252
JJ
4568fi
4569echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4570echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4571with_gnu_ld=$lt_cv_prog_gnu_ld
4572
4573
77008252 4574
1cf3d07d
SE
4575
4576
4577
4578
4579
4580
1cf3d07d
SE
4581echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4582echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
77008252
JJ
4583if test "${lt_cv_path_NM+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586 if test -n "$NM"; then
4587 # Let the user override the test.
4588 lt_cv_path_NM="$NM"
4589else
1cf3d07d
SE
4590 lt_nm_to_check="${ac_tool_prefix}nm"
4591 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4592 lt_nm_to_check="$lt_nm_to_check nm"
4593 fi
4594 for lt_tmp_nm in $lt_nm_to_check; do
4595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4596 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4597 IFS="$lt_save_ifs"
4598 test -z "$ac_dir" && ac_dir=.
4599 tmp_nm="$ac_dir/$lt_tmp_nm"
4600 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4601 # Check to see if the nm accepts a BSD-compat flag.
4602 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4603 # nm: unknown option "B" ignored
4604 # Tru64's nm complains that /dev/null is an invalid object file
4605 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4606 */dev/null* | *'Invalid file or object type'*)
4607 lt_cv_path_NM="$tmp_nm -B"
4608 break
4609 ;;
4610 *)
4611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4612 */dev/null*)
4613 lt_cv_path_NM="$tmp_nm -p"
4614 break
4615 ;;
4616 *)
4617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4618 continue # so that we can try to find one that supports BSD flags
4619 ;;
4620 esac
4621 ;;
4622 esac
77008252 4623 fi
1cf3d07d
SE
4624 done
4625 IFS="$lt_save_ifs"
77008252 4626 done
1cf3d07d 4627 : ${lt_cv_path_NM=no}
77008252
JJ
4628fi
4629fi
1cf3d07d
SE
4630echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4631echo "${ECHO_T}$lt_cv_path_NM" >&6
4632if test "$lt_cv_path_NM" != "no"; then
4633 NM="$lt_cv_path_NM"
77008252 4634else
1cf3d07d
SE
4635 # Didn't find any BSD compatible name lister, look for dumpbin.
4636 if test -n "$ac_tool_prefix"; then
4637 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4638 do
4639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4641echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4643if test "${ac_cv_prog_DUMPBIN+set}" = set; then
77008252
JJ
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
1cf3d07d
SE
4646 if test -n "$DUMPBIN"; then
4647 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660done
4661done
77008252 4662
1cf3d07d
SE
4663fi
4664fi
4665DUMPBIN=$ac_cv_prog_DUMPBIN
4666if test -n "$DUMPBIN"; then
4667 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4668echo "${ECHO_T}$DUMPBIN" >&6
4669else
4670 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6
4672fi
77008252 4673
1cf3d07d
SE
4674 test -n "$DUMPBIN" && break
4675 done
4676fi
4677if test -z "$DUMPBIN"; then
4678 ac_ct_DUMPBIN=$DUMPBIN
4679 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4680do
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682set dummy $ac_prog; ac_word=$2
4683echo "$as_me:$LINENO: checking for $ac_word" >&5
4684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4685if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688 if test -n "$ac_ct_DUMPBIN"; then
4689 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4690else
4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
77008252 4701 fi
1cf3d07d
SE
4702done
4703done
77008252 4704
1cf3d07d
SE
4705fi
4706fi
4707ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4708if test -n "$ac_ct_DUMPBIN"; then
4709 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4710echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4711else
4712 echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6
4714fi
77008252 4715
1cf3d07d
SE
4716 test -n "$ac_ct_DUMPBIN" && break
4717done
4718test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
77008252 4719
1cf3d07d
SE
4720 DUMPBIN=$ac_ct_DUMPBIN
4721fi
77008252 4722
77008252 4723
1cf3d07d
SE
4724 if test "$DUMPBIN" != ":"; then
4725 NM="$DUMPBIN"
77008252 4726 fi
1cf3d07d
SE
4727fi
4728test -z "$NM" && NM=nm
77008252 4729
77008252 4730
77008252 4731
77008252 4732
77008252 4733
77008252 4734
1cf3d07d
SE
4735echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4736echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4737if test "${lt_cv_nm_interface+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740 lt_cv_nm_interface="BSD nm"
4741 echo "int some_variable = 0;" > conftest.$ac_ext
77a3eb61 4742 (eval echo "\"\$as_me:4742: $ac_compile\"" >&5)
1cf3d07d
SE
4743 (eval "$ac_compile" 2>conftest.err)
4744 cat conftest.err >&5
77a3eb61 4745 (eval echo "\"\$as_me:4745: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4746 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4747 cat conftest.err >&5
77a3eb61 4748 (eval echo "\"\$as_me:4748: output\"" >&5)
1cf3d07d
SE
4749 cat conftest.out >&5
4750 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4751 lt_cv_nm_interface="MS dumpbin"
4752 fi
4753 rm -f conftest*
77008252 4754fi
1cf3d07d
SE
4755echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4756echo "${ECHO_T}$lt_cv_nm_interface" >&6
77008252 4757
1cf3d07d
SE
4758echo "$as_me:$LINENO: checking whether ln -s works" >&5
4759echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4760LN_S=$as_ln_s
4761if test "$LN_S" = "ln -s"; then
4762 echo "$as_me:$LINENO: result: yes" >&5
4763echo "${ECHO_T}yes" >&6
4764else
4765 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4766echo "${ECHO_T}no, using $LN_S" >&6
4767fi
77008252
JJ
4768
4769# find the maximum length of command line arguments
4770echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4771echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4772if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 i=0
4776 teststring="ABCD"
4777
4778 case $build_os in
4779 msdosdjgpp*)
4780 # On DJGPP, this test can blow up pretty badly due to problems in libc
4781 # (any single argument exceeding 2000 bytes causes a buffer overrun
4782 # during glob expansion). Even if it were fixed, the result of this
4783 # check would be larger than it should be.
4784 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4785 ;;
4786
1cf3d07d
SE
4787 gnu*)
4788 # Under GNU Hurd, this test is not required because there is
4789 # no limit to the length of command line arguments.
4790 # Libtool will interpret -1 as no limit whatsoever
4791 lt_cv_sys_max_cmd_len=-1;
4792 ;;
4793
77a3eb61 4794 cygwin* | mingw* | cegcc*)
77008252
JJ
4795 # On Win9x/ME, this test blows up -- it succeeds, but takes
4796 # about 5 minutes as the teststring grows exponentially.
4797 # Worse, since 9x/ME are not pre-emptively multitasking,
4798 # you end up with a "frozen" computer, even though with patience
4799 # the test eventually succeeds (with a max line length of 256k).
4800 # Instead, let's just punt: use the minimum linelength reported by
4801 # all of the supported platforms: 8192 (on NT/2K/XP).
4802 lt_cv_sys_max_cmd_len=8192;
4803 ;;
4804
4805 amigaos*)
4806 # On AmigaOS with pdksh, this test takes hours, literally.
4807 # So we just punt and use a minimum line length of 8192.
4808 lt_cv_sys_max_cmd_len=8192;
4809 ;;
4810
4811 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4812 # This has been around since 386BSD, at least. Likely further.
4813 if test -x /sbin/sysctl; then
4814 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4815 elif test -x /usr/sbin/sysctl; then
4816 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4817 else
1cf3d07d 4818 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
77008252
JJ
4819 fi
4820 # And add a safety zone
4821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4823 ;;
1cf3d07d
SE
4824
4825 interix*)
4826 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4827 lt_cv_sys_max_cmd_len=196608
4828 ;;
4829
4830 osf*)
4831 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4832 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4833 # nice to cause kernel panics so lets avoid the loop below.
4834 # First set a reasonable default.
4835 lt_cv_sys_max_cmd_len=16384
4836 #
4837 if test -x /sbin/sysconfig; then
4838 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4839 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4840 esac
4841 fi
4842 ;;
4843 sco3.2v5*)
4844 lt_cv_sys_max_cmd_len=102400
4845 ;;
4846 sysv5* | sco5v6* | sysv4.2uw2*)
4847 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4848 if test -n "$kargmax"; then
4849 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4850 else
4851 lt_cv_sys_max_cmd_len=32768
4852 fi
4853 ;;
4854 *)
77a3eb61
PG
4855 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4856 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4859 else
4860 # Make teststring a little bigger before we do anything with it.
4861 # a 1K string should be a reasonable start.
4862 for i in 1 2 3 4 5 6 7 8 ; do
4863 teststring=$teststring$teststring
4864 done
4865 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4866 # If test is not a shell built-in, we'll probably end up computing a
4867 # maximum length that is only half of the actual maximum length, but
4868 # we can't tell.
4869 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4870 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4871 test $i != 17 # 1/2 MB should be enough
4872 do
4873 i=`expr $i + 1`
4874 teststring=$teststring$teststring
4875 done
4876 # Only check the string length outside the loop.
4877 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4878 teststring=
4879 # Add a significant safety factor because C++ compilers can tack on
4880 # massive amounts of additional arguments before passing them to the
4881 # linker. It appears as though 1/2 is a usable value.
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4883 fi
1cf3d07d 4884 ;;
77008252
JJ
4885 esac
4886
4887fi
4888
1cf3d07d 4889if test -n $lt_cv_sys_max_cmd_len ; then
77008252
JJ
4890 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4891echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4892else
4893 echo "$as_me:$LINENO: result: none" >&5
4894echo "${ECHO_T}none" >&6
4895fi
1cf3d07d 4896max_cmd_len=$lt_cv_sys_max_cmd_len
77008252
JJ
4897
4898
1cf3d07d
SE
4899
4900
4901
4902
1cf3d07d
SE
4903: ${CP="cp -f"}
4904: ${MV="mv -f"}
4905: ${RM="rm -f"}
4906
4907echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4908echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4909# Try some XSI features
4910xsi_shell=no
4911( _lt_dummy="a/b/c"
4912 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
77a3eb61
PG
4913 = c,a/b,, \
4914 && eval 'test $(( 1 + 1 )) -eq 2 \
4915 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d
SE
4916 && xsi_shell=yes
4917echo "$as_me:$LINENO: result: $xsi_shell" >&5
4918echo "${ECHO_T}$xsi_shell" >&6
4919
4920
4921echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4922echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4923lt_shell_append=no
4924( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4925 >/dev/null 2>&1 \
4926 && lt_shell_append=yes
4927echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4928echo "${ECHO_T}$lt_shell_append" >&6
4929
4930
4931if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4932 lt_unset=unset
77008252 4933else
1cf3d07d
SE
4934 lt_unset=false
4935fi
77008252 4936
77008252 4937
1cf3d07d
SE
4938
4939
4940
4941# test EBCDIC or ASCII
4942case `echo X|tr X '\101'` in
4943 A) # ASCII based system
4944 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4945 lt_SP2NL='tr \040 \012'
4946 lt_NL2SP='tr \015\012 \040\040'
4947 ;;
4948 *) # EBCDIC based system
4949 lt_SP2NL='tr \100 \n'
4950 lt_NL2SP='tr \r\n \100\100'
77008252
JJ
4951 ;;
4952esac
77008252 4953
77008252 4954
1cf3d07d
SE
4955
4956
4957
4958
4959
4960
4961
4962echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4963echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4964if test "${lt_cv_ld_reload_flag+set}" = set; then
77008252
JJ
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
1cf3d07d
SE
4967 lt_cv_ld_reload_flag='-r'
4968fi
4969echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4970echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4971reload_flag=$lt_cv_ld_reload_flag
4972case $reload_flag in
4973"" | " "*) ;;
4974*) reload_flag=" $reload_flag" ;;
4975esac
4976reload_cmds='$LD$reload_flag -o $output$reload_objs'
4977case $host_os in
4978 darwin*)
4979 if test "$GCC" = yes; then
4980 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4981 else
4982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4983 fi
4984 ;;
4985esac
4986
4987
4988
4989
4990
4991
4992
4993
4994
77a3eb61
PG
4995if test -n "$ac_tool_prefix"; then
4996 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4997set dummy ${ac_tool_prefix}objdump; ac_word=$2
4998echo "$as_me:$LINENO: checking for $ac_word" >&5
4999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002else
5003 if test -n "$OBJDUMP"; then
5004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5005else
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017done
5018done
5019
5020fi
5021fi
5022OBJDUMP=$ac_cv_prog_OBJDUMP
5023if test -n "$OBJDUMP"; then
5024 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5025echo "${ECHO_T}$OBJDUMP" >&6
5026else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029fi
5030
5031fi
5032if test -z "$ac_cv_prog_OBJDUMP"; then
5033 ac_ct_OBJDUMP=$OBJDUMP
5034 # Extract the first word of "objdump", so it can be a program name with args.
5035set dummy objdump; ac_word=$2
5036echo "$as_me:$LINENO: checking for $ac_word" >&5
5037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5038if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040else
5041 if test -n "$ac_ct_OBJDUMP"; then
5042 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5043else
5044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045for as_dir in $PATH
5046do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5054 fi
5055done
5056done
5057
5058 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5059fi
5060fi
5061ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5062if test -n "$ac_ct_OBJDUMP"; then
5063 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5064echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5065else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068fi
5069
5070 OBJDUMP=$ac_ct_OBJDUMP
5071else
5072 OBJDUMP="$ac_cv_prog_OBJDUMP"
5073fi
5074
5075test -z "$OBJDUMP" && OBJDUMP=objdump
5076
5077
5078
5079
5080
5081
5082
5083
1cf3d07d
SE
5084
5085echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5086echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5087if test "${lt_cv_deplibs_check_method+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 lt_cv_file_magic_cmd='$MAGIC_CMD'
5091lt_cv_file_magic_test_file=
5092lt_cv_deplibs_check_method='unknown'
5093# Need to set the preceding variable on all platforms that support
5094# interlibrary dependencies.
5095# 'none' -- dependencies not supported.
5096# `unknown' -- same as none, but documents that we really don't know.
5097# 'pass_all' -- all dependencies passed with no checks.
5098# 'test_compile' -- check by making test program.
5099# 'file_magic [[regex]]' -- check by looking for files in library path
5100# which responds to the $file_magic_cmd with a given extended regex.
5101# If you have `file' or equivalent on your system and you're not sure
5102# whether `pass_all' will *always* work, you probably want this one.
5103
5104case $host_os in
445bad9b 5105aix[4-9]*)
1cf3d07d
SE
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108
5109beos*)
5110 lt_cv_deplibs_check_method=pass_all
5111 ;;
5112
5113bsdi[45]*)
5114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5115 lt_cv_file_magic_cmd='/usr/bin/file -L'
5116 lt_cv_file_magic_test_file=/shlib/libc.so
5117 ;;
5118
5119cygwin*)
5120 # func_win32_libid is a shell function defined in ltmain.sh
5121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5122 lt_cv_file_magic_cmd='func_win32_libid'
5123 ;;
5124
5125mingw* | pw32*)
5126 # Base MSYS/MinGW do not provide the 'file' command needed by
5127 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5128 # unless we find 'file', for example because we are cross-compiling.
5129 if ( file / ) >/dev/null 2>&1; then
5130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5131 lt_cv_file_magic_cmd='func_win32_libid'
5132 else
5133 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5134 lt_cv_file_magic_cmd='$OBJDUMP -f'
5135 fi
5136 ;;
5137
77a3eb61
PG
5138cegcc)
5139 # use the weaker test based on 'objdump'. See mingw*.
5140 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5141 lt_cv_file_magic_cmd='$OBJDUMP -f'
5142 ;;
5143
1cf3d07d
SE
5144darwin* | rhapsody*)
5145 lt_cv_deplibs_check_method=pass_all
5146 ;;
5147
5148freebsd* | dragonfly*)
5149 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5150 case $host_cpu in
5151 i*86 )
5152 # Not sure whether the presence of OpenBSD here was a mistake.
5153 # Let's accept both of them until this is cleared up.
5154 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5155 lt_cv_file_magic_cmd=/usr/bin/file
5156 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5157 ;;
5158 esac
5159 else
5160 lt_cv_deplibs_check_method=pass_all
5161 fi
77008252 5162 ;;
1cf3d07d
SE
5163
5164gnu*)
5165 lt_cv_deplibs_check_method=pass_all
77008252 5166 ;;
1cf3d07d
SE
5167
5168hpux10.20* | hpux11*)
5169 lt_cv_file_magic_cmd=/usr/bin/file
5170 case $host_cpu in
5171 ia64*)
5172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5173 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5174 ;;
5175 hppa*64*)
5176 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]'
5177 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5178 ;;
77008252 5179 *)
1cf3d07d
SE
5180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5182 ;;
5183 esac
5184 ;;
77008252 5185
1cf3d07d
SE
5186interix[3-9]*)
5187 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5189 ;;
77008252 5190
1cf3d07d
SE
5191irix5* | irix6* | nonstopux*)
5192 case $LD in
5193 *-32|*"-32 ") libmagic=32-bit;;
5194 *-n32|*"-n32 ") libmagic=N32;;
5195 *-64|*"-64 ") libmagic=64-bit;;
5196 *) libmagic=never-match;;
5197 esac
5198 lt_cv_deplibs_check_method=pass_all
77008252 5199 ;;
77008252 5200
1cf3d07d 5201# This must be Linux ELF.
7a9d3fe8 5202linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
77008252 5205
1cf3d07d
SE
5206netbsd*)
5207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
77008252 5209 else
1cf3d07d 5210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
77008252 5211 fi
1cf3d07d
SE
5212 ;;
5213
5214newos6*)
5215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5216 lt_cv_file_magic_cmd=/usr/bin/file
5217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5218 ;;
5219
5220*nto* | *qnx*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
77008252 5223
1cf3d07d
SE
5224openbsd*)
5225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5227 else
5228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
77008252
JJ
5229 fi
5230 ;;
1cf3d07d
SE
5231
5232osf3* | osf4* | osf5*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236rdos*)
5237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240solaris*)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
5244sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247
5248sysv4 | sysv4.3*)
5249 case $host_vendor in
5250 motorola)
5251 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]'
5252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5253 ;;
5254 ncr)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257 sequent)
5258 lt_cv_file_magic_cmd='/bin/file'
5259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5260 ;;
5261 sni)
5262 lt_cv_file_magic_cmd='/bin/file'
5263 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5264 lt_cv_file_magic_test_file=/lib/libc.so
5265 ;;
5266 siemens)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269 pc)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272 esac
5273 ;;
5274
5275tpf*)
5276 lt_cv_deplibs_check_method=pass_all
5277 ;;
77008252
JJ
5278esac
5279
1cf3d07d
SE
5280fi
5281echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5282echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5283file_magic_cmd=$lt_cv_file_magic_cmd
5284deplibs_check_method=$lt_cv_deplibs_check_method
5285test -z "$deplibs_check_method" && deplibs_check_method=unknown
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
77008252 5298if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5300set dummy ${ac_tool_prefix}ar; ac_word=$2
77008252
JJ
5301echo "$as_me:$LINENO: checking for $ac_word" >&5
5302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5303if test "${ac_cv_prog_AR+set}" = set; then
77008252
JJ
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
1cf3d07d
SE
5306 if test -n "$AR"; then
5307 ac_cv_prog_AR="$AR" # Let the user override the test.
77008252
JJ
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5316 ac_cv_prog_AR="${ac_tool_prefix}ar"
77008252
JJ
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320done
5321done
5322
5323fi
5324fi
1cf3d07d
SE
5325AR=$ac_cv_prog_AR
5326if test -n "$AR"; then
5327 echo "$as_me:$LINENO: result: $AR" >&5
5328echo "${ECHO_T}$AR" >&6
77008252
JJ
5329else
5330 echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
5332fi
5333
5334fi
1cf3d07d
SE
5335if test -z "$ac_cv_prog_AR"; then
5336 ac_ct_AR=$AR
5337 # Extract the first word of "ar", so it can be a program name with args.
5338set dummy ar; ac_word=$2
77008252
JJ
5339echo "$as_me:$LINENO: checking for $ac_word" >&5
5340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5341if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
77008252
JJ
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
1cf3d07d
SE
5344 if test -n "$ac_ct_AR"; then
5345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
77008252
JJ
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5354 ac_cv_prog_ac_ct_AR="ar"
77008252
JJ
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358done
5359done
5360
1cf3d07d 5361 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
77008252
JJ
5362fi
5363fi
1cf3d07d
SE
5364ac_ct_AR=$ac_cv_prog_ac_ct_AR
5365if test -n "$ac_ct_AR"; then
5366 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5367echo "${ECHO_T}$ac_ct_AR" >&6
77008252
JJ
5368else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371fi
5372
1cf3d07d 5373 AR=$ac_ct_AR
77008252 5374else
1cf3d07d 5375 AR="$ac_cv_prog_AR"
77008252
JJ
5376fi
5377
1cf3d07d
SE
5378test -z "$AR" && AR=ar
5379test -z "$AR_FLAGS" && AR_FLAGS=cru
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
77008252
JJ
5391if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5393set dummy ${ac_tool_prefix}strip; ac_word=$2
5394echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396if test "${ac_cv_prog_STRIP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 if test -n "$STRIP"; then
5400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415
5416fi
5417fi
5418STRIP=$ac_cv_prog_STRIP
5419if test -n "$STRIP"; then
5420 echo "$as_me:$LINENO: result: $STRIP" >&5
5421echo "${ECHO_T}$STRIP" >&6
5422else
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
5425fi
5426
5427fi
5428if test -z "$ac_cv_prog_STRIP"; then
5429 ac_ct_STRIP=$STRIP
5430 # Extract the first word of "strip", so it can be a program name with args.
5431set dummy strip; ac_word=$2
5432echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 if test -n "$ac_ct_STRIP"; then
5438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5439else
5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_ac_ct_STRIP="strip"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451done
5452done
5453
5454 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5455fi
5456fi
5457ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5458if test -n "$ac_ct_STRIP"; then
5459 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5460echo "${ECHO_T}$ac_ct_STRIP" >&6
5461else
5462 echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464fi
5465
5466 STRIP=$ac_ct_STRIP
5467else
5468 STRIP="$ac_cv_prog_STRIP"
5469fi
5470
1cf3d07d 5471test -z "$STRIP" && STRIP=:
77008252 5472
77008252
JJ
5473
5474
77008252 5475
77008252
JJ
5476
5477
1cf3d07d
SE
5478if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5480set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5481echo "$as_me:$LINENO: checking for $ac_word" >&5
5482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483if test "${ac_cv_prog_RANLIB+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
77008252 5485else
1cf3d07d
SE
5486 if test -n "$RANLIB"; then
5487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
77008252 5499 fi
1cf3d07d
SE
5500done
5501done
5502
5503fi
5504fi
5505RANLIB=$ac_cv_prog_RANLIB
5506if test -n "$RANLIB"; then
5507 echo "$as_me:$LINENO: result: $RANLIB" >&5
5508echo "${ECHO_T}$RANLIB" >&6
5509else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512fi
5513
5514fi
5515if test -z "$ac_cv_prog_RANLIB"; then
5516 ac_ct_RANLIB=$RANLIB
5517 # Extract the first word of "ranlib", so it can be a program name with args.
5518set dummy ranlib; ac_word=$2
5519echo "$as_me:$LINENO: checking for $ac_word" >&5
5520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524 if test -n "$ac_ct_RANLIB"; then
5525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_RANLIB="ranlib"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538done
5539done
5540
5541 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5542fi
5543fi
5544ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5545if test -n "$ac_ct_RANLIB"; then
5546 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5547echo "${ECHO_T}$ac_ct_RANLIB" >&6
5548else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551fi
5552
5553 RANLIB=$ac_ct_RANLIB
5554else
5555 RANLIB="$ac_cv_prog_RANLIB"
5556fi
5557
5558test -z "$RANLIB" && RANLIB=:
5559
5560
5561
5562
5563
5564
5565# Determine commands to create old-style static archives.
77a3eb61 5566old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5567old_postinstall_cmds='chmod 644 $oldlib'
5568old_postuninstall_cmds=
5569
5570if test -n "$RANLIB"; then
5571 case $host_os in
5572 openbsd*)
5573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5574 ;;
5575 *)
5576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5577 ;;
5578 esac
5579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5580fi
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615# If no C compiler was specified, use CC.
5616LTCC=${LTCC-"$CC"}
5617
5618# If no C compiler flags were specified, use CFLAGS.
5619LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5620
5621# Allow CC to be a program name with arguments.
5622compiler=$CC
5623
5624
5625# Check for command to grab the raw symbol name followed by C symbol from nm.
5626echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5627echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5628if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631
5632# These are sane defaults that work on at least a few old systems.
5633# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5634
5635# Character class describing NM global symbol codes.
5636symcode='[BCDEGRST]'
5637
5638# Regexp to match symbols that can be accessed directly from C.
5639sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5640
5641# Define system-specific variables.
5642case $host_os in
5643aix*)
5644 symcode='[BCDT]'
5645 ;;
77a3eb61 5646cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5647 symcode='[ABCDGISTW]'
5648 ;;
5649hpux*)
5650 if test "$host_cpu" = ia64; then
5651 symcode='[ABCDEGRST]'
5652 fi
5653 ;;
5654irix* | nonstopux*)
5655 symcode='[BCDEGRST]'
5656 ;;
5657osf*)
5658 symcode='[BCDEGQRST]'
5659 ;;
5660solaris*)
5661 symcode='[BDRT]'
5662 ;;
5663sco3.2v5*)
5664 symcode='[DT]'
5665 ;;
5666sysv4.2uw2*)
5667 symcode='[DT]'
5668 ;;
5669sysv5* | sco5v6* | unixware* | OpenUNIX*)
5670 symcode='[ABDT]'
5671 ;;
5672sysv4)
5673 symcode='[DFNSTU]'
5674 ;;
5675esac
5676
5677# If we're using GNU nm, then use its standard symbol codes.
5678case `$NM -V 2>&1` in
5679*GNU* | *'with BFD'*)
5680 symcode='[ABCDGIRSTW]' ;;
5681esac
5682
5683# Transform an extracted symbol line into a proper C declaration.
5684# Some systems (esp. on ia64) link data and code symbols differently,
5685# so use this general approach.
5686lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5687
5688# Transform an extracted symbol line into symbol name and symbol address
5689lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
77a3eb61 5690lt_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
5691
5692# Handle CRLF in mingw tool chain
5693opt_cr=
5694case $build_os in
5695mingw*)
5696 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
77008252 5697 ;;
1cf3d07d
SE
5698esac
5699
5700# Try without a prefix underscore, then with it.
5701for ac_symprfx in "" "_"; do
5702
5703 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5704 symxfrm="\\1 $ac_symprfx\\2 \\2"
5705
5706 # Write the raw and C identifiers.
5707 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5708 # Fake it for dumpbin and say T for any non-static function
5709 # and D for any global variable.
5710 # Also find C++ and __fastcall symbols from MSVC++,
5711 # which start with @ or ?.
5712 lt_cv_sys_global_symbol_pipe="$AWK '"\
5713" {last_section=section; section=\$ 3};"\
5714" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5715" \$ 0!~/External *\|/{next};"\
5716" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5717" {if(hide[section]) next};"\
5718" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5719" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5720" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5721" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5722" ' prfx=^$ac_symprfx"
5723 else
5724 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5725 fi
5726
5727 # Check to see that the pipe works correctly.
5728 pipe_works=no
5729
5730 rm -f conftest*
5731 cat > conftest.$ac_ext <<_LT_EOF
5732#ifdef __cplusplus
5733extern "C" {
5734#endif
5735char nm_test_var;
5736void nm_test_func(void);
5737void nm_test_func(void){}
5738#ifdef __cplusplus
5739}
5740#endif
5741int main(){nm_test_var='a';nm_test_func();return(0);}
5742_LT_EOF
5743
5744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5745 (eval $ac_compile) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; then
5749 # Now try to grab the symbols.
5750 nlist=conftest.nm
5751 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5752 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } && test -s "$nlist"; then
5756 # Try sorting and uniquifying the output.
5757 if sort "$nlist" | uniq > "$nlist"T; then
5758 mv -f "$nlist"T "$nlist"
5759 else
5760 rm -f "$nlist"T
5761 fi
5762
5763 # Make sure that we snagged all the symbols we need.
5764 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5765 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5766 cat <<_LT_EOF > conftest.$ac_ext
5767#ifdef __cplusplus
5768extern "C" {
5769#endif
5770
5771_LT_EOF
5772 # Now generate the symbol file.
5773 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5774
5775 cat <<_LT_EOF >> conftest.$ac_ext
5776
5777/* The mapping between symbol names and symbols. */
5778const struct {
5779 const char *name;
5780 void *address;
5781}
5782lt__PROGRAM__LTX_preloaded_symbols[] =
5783{
5784 { "@PROGRAM@", (void *) 0 },
5785_LT_EOF
5786 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5787 cat <<\_LT_EOF >> conftest.$ac_ext
5788 {0, (void *) 0}
5789};
5790
5791/* This works around a problem in FreeBSD linker */
5792#ifdef FREEBSD_WORKAROUND
5793static const void *lt_preloaded_setup() {
5794 return lt__PROGRAM__LTX_preloaded_symbols;
5795}
5796#endif
5797
5798#ifdef __cplusplus
5799}
5800#endif
5801_LT_EOF
5802 # Now try linking the two files.
5803 mv conftest.$ac_objext conftstm.$ac_objext
5804 lt_save_LIBS="$LIBS"
5805 lt_save_CFLAGS="$CFLAGS"
5806 LIBS="conftstm.$ac_objext"
5807 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5813 pipe_works=yes
5814 fi
5815 LIBS="$lt_save_LIBS"
5816 CFLAGS="$lt_save_CFLAGS"
5817 else
5818 echo "cannot find nm_test_func in $nlist" >&5
5819 fi
5820 else
5821 echo "cannot find nm_test_var in $nlist" >&5
5822 fi
5823 else
5824 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5825 fi
5826 else
5827 echo "$progname: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5829 fi
77a3eb61 5830 rm -rf conftest* conftst*
1cf3d07d
SE
5831
5832 # Do not use the global_symbol_pipe unless it works.
5833 if test "$pipe_works" = yes; then
5834 break
5835 else
5836 lt_cv_sys_global_symbol_pipe=
5837 fi
5838done
5839
5840fi
5841
5842if test -z "$lt_cv_sys_global_symbol_pipe"; then
5843 lt_cv_sys_global_symbol_to_cdecl=
5844fi
5845if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5846 echo "$as_me:$LINENO: result: failed" >&5
5847echo "${ECHO_T}failed" >&6
5848else
5849 echo "$as_me:$LINENO: result: ok" >&5
5850echo "${ECHO_T}ok" >&6
5851fi
77008252 5852
1cf3d07d
SE
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
77a3eb61
PG
5867
5868
5869
5870
5871
1cf3d07d
SE
5872
5873
5874# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5875if test "${enable_libtool_lock+set}" = set; then
5876 enableval="$enable_libtool_lock"
5877
5878fi;
5879test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5880
5881# Some flags need to be propagated to the compiler or linker for good
5882# libtool support.
5883case $host in
77008252
JJ
5884ia64-*-hpux*)
5885 # Find out which ABI we are using.
5886 echo 'int i;' > conftest.$ac_ext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
5891 (exit $ac_status); }; then
5892 case `/usr/bin/file conftest.$ac_objext` in
5893 *ELF-32*)
5894 HPUX_IA64_MODE="32"
5895 ;;
5896 *ELF-64*)
5897 HPUX_IA64_MODE="64"
5898 ;;
5899 esac
5900 fi
5901 rm -rf conftest*
5902 ;;
5903*-*-irix6*)
5904 # Find out which ABI we are using.
77a3eb61 5905 echo '#line 5905 "configure"' > conftest.$ac_ext
1cf3d07d
SE
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; then
5911 if test "$lt_cv_prog_gnu_ld" = yes; then
5912 case `/usr/bin/file conftest.$ac_objext` in
5913 *32-bit*)
5914 LD="${LD-ld} -melf32bsmip"
5915 ;;
5916 *N32*)
5917 LD="${LD-ld} -melf32bmipn32"
5918 ;;
5919 *64-bit*)
5920 LD="${LD-ld} -melf64bmip"
5921 ;;
5922 esac
5923 else
5924 case `/usr/bin/file conftest.$ac_objext` in
5925 *32-bit*)
5926 LD="${LD-ld} -32"
5927 ;;
5928 *N32*)
5929 LD="${LD-ld} -n32"
5930 ;;
5931 *64-bit*)
5932 LD="${LD-ld} -64"
5933 ;;
5934 esac
5935 fi
5936 fi
5937 rm -rf conftest*
5938 ;;
5939
5940x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5941s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5942 # Find out which ABI we are using.
5943 echo 'int i;' > conftest.$ac_ext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945 (eval $ac_compile) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; then
5949 case `/usr/bin/file conftest.o` in
5950 *32-bit*)
5951 case $host in
5952 x86_64-*kfreebsd*-gnu)
5953 LD="${LD-ld} -m elf_i386_fbsd"
5954 ;;
5955 x86_64-*linux*)
5956 LD="${LD-ld} -m elf_i386"
5957 ;;
5958 ppc64-*linux*|powerpc64-*linux*)
5959 LD="${LD-ld} -m elf32ppclinux"
5960 ;;
5961 s390x-*linux*)
5962 LD="${LD-ld} -m elf_s390"
5963 ;;
5964 sparc64-*linux*)
5965 LD="${LD-ld} -m elf32_sparc"
5966 ;;
5967 esac
5968 ;;
5969 *64-bit*)
5970 case $host in
5971 x86_64-*kfreebsd*-gnu)
5972 LD="${LD-ld} -m elf_x86_64_fbsd"
5973 ;;
5974 x86_64-*linux*)
5975 LD="${LD-ld} -m elf_x86_64"
5976 ;;
5977 ppc*-*linux*|powerpc*-*linux*)
5978 LD="${LD-ld} -m elf64ppc"
5979 ;;
5980 s390*-*linux*|s390*-*tpf*)
5981 LD="${LD-ld} -m elf64_s390"
5982 ;;
5983 sparc*-*linux*)
5984 LD="${LD-ld} -m elf64_sparc"
5985 ;;
5986 esac
5987 ;;
5988 esac
5989 fi
5990 rm -rf conftest*
5991 ;;
5992
5993*-*-sco3.2v5*)
5994 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5995 SAVE_CFLAGS="$CFLAGS"
5996 CFLAGS="$CFLAGS -belf"
5997 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5998echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5999if test "${lt_cv_cc_needs_belf+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 ac_ext=c
6003ac_cpp='$CPP $CPPFLAGS'
6004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008 if test x$gcc_no_link = xyes; then
6009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6010echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6011 { (exit 1); exit 1; }; }
6012fi
6013cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019
6020int
6021main ()
6022{
6023
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028rm -f conftest.$ac_objext conftest$ac_exeext
6029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 lt_cv_cc_needs_belf=yes
6051else
6052 echo "$as_me: failed program was:" >&5
6053sed 's/^/| /' conftest.$ac_ext >&5
6054
6055lt_cv_cc_needs_belf=no
6056fi
6057rm -f conftest.err conftest.$ac_objext \
6058 conftest$ac_exeext conftest.$ac_ext
6059 ac_ext=c
6060ac_cpp='$CPP $CPPFLAGS'
6061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
77a3eb61
PG
6065fi
6066echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6067echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6068 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6069 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6070 CFLAGS="$SAVE_CFLAGS"
6071 fi
6072 ;;
6073sparc*-*solaris*)
6074 # Find out which ABI we are using.
6075 echo 'int i;' > conftest.$ac_ext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; then
6081 case `/usr/bin/file conftest.o` in
6082 *64-bit*)
6083 case $lt_cv_prog_gnu_ld in
6084 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6085 *)
6086 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6087 LD="${LD-ld} -64"
6088 fi
6089 ;;
6090 esac
6091 ;;
6092 esac
6093 fi
6094 rm -rf conftest*
6095 ;;
6096esac
6097
6098need_locks="$enable_libtool_lock"
6099
6100
6101 case $host_os in
6102 rhapsody* | darwin*)
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6105set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6106echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 if test -n "$DSYMUTIL"; then
6112 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126done
6127
6128fi
6129fi
6130DSYMUTIL=$ac_cv_prog_DSYMUTIL
6131if test -n "$DSYMUTIL"; then
6132 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6133echo "${ECHO_T}$DSYMUTIL" >&6
6134else
6135 echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6
6137fi
6138
6139fi
6140if test -z "$ac_cv_prog_DSYMUTIL"; then
6141 ac_ct_DSYMUTIL=$DSYMUTIL
6142 # Extract the first word of "dsymutil", so it can be a program name with args.
6143set dummy dsymutil; ac_word=$2
6144echo "$as_me:$LINENO: checking for $ac_word" >&5
6145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6146if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149 if test -n "$ac_ct_DSYMUTIL"; then
6150 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163done
6164done
6165
6166 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6167fi
6168fi
6169ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6170if test -n "$ac_ct_DSYMUTIL"; then
6171 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6172echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6173else
6174 echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176fi
6177
6178 DSYMUTIL=$ac_ct_DSYMUTIL
6179else
6180 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6181fi
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6185set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6186echo "$as_me:$LINENO: checking for $ac_word" >&5
6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6188if test "${ac_cv_prog_NMEDIT+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 if test -n "$NMEDIT"; then
6192 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205done
6206done
6207
6208fi
6209fi
6210NMEDIT=$ac_cv_prog_NMEDIT
6211if test -n "$NMEDIT"; then
6212 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6213echo "${ECHO_T}$NMEDIT" >&6
6214else
6215 echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6
6217fi
6218
6219fi
6220if test -z "$ac_cv_prog_NMEDIT"; then
6221 ac_ct_NMEDIT=$NMEDIT
6222 # Extract the first word of "nmedit", so it can be a program name with args.
6223set dummy nmedit; ac_word=$2
6224echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6226if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229 if test -n "$ac_ct_NMEDIT"; then
6230 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244done
6245
6246 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6247fi
6248fi
6249ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6250if test -n "$ac_ct_NMEDIT"; then
6251 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6252echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6253else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256fi
6257
6258 NMEDIT=$ac_ct_NMEDIT
6259else
6260 NMEDIT="$ac_cv_prog_NMEDIT"
6261fi
6262
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6265set dummy ${ac_tool_prefix}lipo; ac_word=$2
6266echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6268if test "${ac_cv_prog_LIPO+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271 if test -n "$LIPO"; then
6272 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285done
6286done
6287
6288fi
6289fi
6290LIPO=$ac_cv_prog_LIPO
6291if test -n "$LIPO"; then
6292 echo "$as_me:$LINENO: result: $LIPO" >&5
6293echo "${ECHO_T}$LIPO" >&6
6294else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297fi
6298
6299fi
6300if test -z "$ac_cv_prog_LIPO"; then
6301 ac_ct_LIPO=$LIPO
6302 # Extract the first word of "lipo", so it can be a program name with args.
6303set dummy lipo; ac_word=$2
6304echo "$as_me:$LINENO: checking for $ac_word" >&5
6305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6306if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309 if test -n "$ac_ct_LIPO"; then
6310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6311else
6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_ac_ct_LIPO="lipo"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323done
6324done
6325
6326 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6327fi
6328fi
6329ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6330if test -n "$ac_ct_LIPO"; then
6331 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6332echo "${ECHO_T}$ac_ct_LIPO" >&6
6333else
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336fi
6337
6338 LIPO=$ac_ct_LIPO
6339else
6340 LIPO="$ac_cv_prog_LIPO"
6341fi
6342
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6345set dummy ${ac_tool_prefix}otool; ac_word=$2
6346echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6348if test "${ac_cv_prog_OTOOL+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 if test -n "$OTOOL"; then
6352 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365done
6366done
6367
6368fi
6369fi
6370OTOOL=$ac_cv_prog_OTOOL
6371if test -n "$OTOOL"; then
6372 echo "$as_me:$LINENO: result: $OTOOL" >&5
6373echo "${ECHO_T}$OTOOL" >&6
6374else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377fi
6378
6379fi
6380if test -z "$ac_cv_prog_OTOOL"; then
6381 ac_ct_OTOOL=$OTOOL
6382 # Extract the first word of "otool", so it can be a program name with args.
6383set dummy otool; ac_word=$2
6384echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389 if test -n "$ac_ct_OTOOL"; then
6390 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_ac_ct_OTOOL="otool"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403done
6404done
6405
6406 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6407fi
6408fi
6409ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6410if test -n "$ac_ct_OTOOL"; then
6411 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6412echo "${ECHO_T}$ac_ct_OTOOL" >&6
6413else
6414 echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
6416fi
6417
6418 OTOOL=$ac_ct_OTOOL
6419else
6420 OTOOL="$ac_cv_prog_OTOOL"
6421fi
6422
6423 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6425set dummy ${ac_tool_prefix}otool64; ac_word=$2
6426echo "$as_me:$LINENO: checking for $ac_word" >&5
6427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6428if test "${ac_cv_prog_OTOOL64+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430else
6431 if test -n "$OTOOL64"; then
6432 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6433else
6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445done
6446done
6447
6448fi
6449fi
6450OTOOL64=$ac_cv_prog_OTOOL64
6451if test -n "$OTOOL64"; then
6452 echo "$as_me:$LINENO: result: $OTOOL64" >&5
6453echo "${ECHO_T}$OTOOL64" >&6
6454else
6455 echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6
6457fi
6458
6459fi
6460if test -z "$ac_cv_prog_OTOOL64"; then
6461 ac_ct_OTOOL64=$OTOOL64
6462 # Extract the first word of "otool64", so it can be a program name with args.
6463set dummy otool64; ac_word=$2
6464echo "$as_me:$LINENO: checking for $ac_word" >&5
6465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6466if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469 if test -n "$ac_ct_OTOOL64"; then
6470 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_ac_ct_OTOOL64="otool64"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483done
6484done
6485
6486 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6487fi
6488fi
6489ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6490if test -n "$ac_ct_OTOOL64"; then
6491 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6492echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6493else
6494 echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6
6496fi
6497
6498 OTOOL64=$ac_ct_OTOOL64
6499else
6500 OTOOL64="$ac_cv_prog_OTOOL64"
6501fi
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6530echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6531if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 lt_cv_apple_cc_single_mod=no
6535 if test -z "${LT_MULTI_MODULE}"; then
6536 # By default we will add the -single_module flag. You can override
6537 # by either setting the environment variable LT_MULTI_MODULE
6538 # non-empty at configure time, or by adding -multi_module to the
6539 # link flags.
6540 rm -rf libconftest.dylib*
6541 echo "int foo(void){return 1;}" > conftest.c
6542 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6543-dynamiclib -Wl,-single_module conftest.c" >&5
6544 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6545 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6546 _lt_result=$?
6547 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6548 lt_cv_apple_cc_single_mod=yes
6549 else
6550 cat conftest.err >&5
6551 fi
6552 rm -rf libconftest.dylib*
6553 rm -f conftest.*
6554 fi
6555fi
6556echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6557echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6558 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6559echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6560if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563 lt_cv_ld_exported_symbols_list=no
6564 save_LDFLAGS=$LDFLAGS
6565 echo "_main" > conftest.sym
6566 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6567 if test x$gcc_no_link = xyes; then
6568 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6569echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6570 { (exit 1); exit 1; }; }
6571fi
6572cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h. */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h. */
6578
6579int
6580main ()
6581{
6582
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587rm -f conftest.$ac_objext conftest$ac_exeext
6588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 lt_cv_ld_exported_symbols_list=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614lt_cv_ld_exported_symbols_list=no
6615fi
6616rm -f conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6618 LDFLAGS="$save_LDFLAGS"
6619
6620fi
6621echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6622echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6623 case $host_os in
6624 rhapsody* | darwin1.[012])
6625 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6626 darwin1.*)
6627 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6628 darwin*) # darwin 5.x on
6629 # if running on 10.5 or later, the deployment target defaults
6630 # to the OS version, if on x86, and 10.4, the deployment
6631 # target defaults to 10.4. Don't you love it?
6632 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6633 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6634 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6635 10.[012]*)
6636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6637 10.*)
6638 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6639 esac
6640 ;;
6641 esac
6642 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6643 _lt_dar_single_mod='$single_module'
6644 fi
6645 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6646 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6647 else
6648 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6649 fi
6650 if test "$DSYMUTIL" != ":"; then
6651 _lt_dsymutil='~$DSYMUTIL $lib || :'
6652 else
6653 _lt_dsymutil=
6654 fi
6655 ;;
6656 esac
6657
6658
6659for ac_header in dlfcn.h
6660do
6661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6662echo "$as_me:$LINENO: checking for $ac_header" >&5
6663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6664if eval "test \"\${$as_ac_Header+set}\" = set"; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667 cat >conftest.$ac_ext <<_ACEOF
6668/* confdefs.h. */
6669_ACEOF
6670cat confdefs.h >>conftest.$ac_ext
6671cat >>conftest.$ac_ext <<_ACEOF
6672/* end confdefs.h. */
6673$ac_includes_default
6674
6675#include <$ac_header>
6676_ACEOF
6677rm -f conftest.$ac_objext
6678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679 (eval $ac_compile) 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 eval "$as_ac_Header=yes"
6700else
6701 echo "$as_me: failed program was:" >&5
6702sed 's/^/| /' conftest.$ac_ext >&5
6703
6704eval "$as_ac_Header=no"
6705fi
6706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6707fi
6708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6710if test `eval echo '${'$as_ac_Header'}'` = yes; then
6711 cat >>confdefs.h <<_ACEOF
6712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6713_ACEOF
6714
6715fi
6716
6717done
6718
6719
6720
6721# Set options
6722
6723
6724
6725 enable_dlopen=no
6726
6727
6728 enable_win32_dll=no
6729
6730
6731 # Check whether --enable-shared or --disable-shared was given.
6732if test "${enable_shared+set}" = set; then
6733 enableval="$enable_shared"
6734 p=${PACKAGE-default}
6735 case $enableval in
6736 yes) enable_shared=yes ;;
6737 no) enable_shared=no ;;
6738 *)
6739 enable_shared=no
6740 # Look at the argument we got. We use all the common list separators.
6741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6742 for pkg in $enableval; do
6743 IFS="$lt_save_ifs"
6744 if test "X$pkg" = "X$p"; then
6745 enable_shared=yes
6746 fi
6747 done
6748 IFS="$lt_save_ifs"
6749 ;;
6750 esac
6751else
6752 enable_shared=yes
6753fi;
6754
6755
6756
6757
6758
6759
6760
6761
6762 # Check whether --enable-static or --disable-static was given.
6763if test "${enable_static+set}" = set; then
6764 enableval="$enable_static"
6765 p=${PACKAGE-default}
6766 case $enableval in
6767 yes) enable_static=yes ;;
6768 no) enable_static=no ;;
6769 *)
6770 enable_static=no
6771 # Look at the argument we got. We use all the common list separators.
6772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6773 for pkg in $enableval; do
6774 IFS="$lt_save_ifs"
6775 if test "X$pkg" = "X$p"; then
6776 enable_static=yes
6777 fi
6778 done
6779 IFS="$lt_save_ifs"
6780 ;;
6781 esac
6782else
6783 enable_static=yes
6784fi;
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794# Check whether --with-pic or --without-pic was given.
6795if test "${with_pic+set}" = set; then
6796 withval="$with_pic"
6797 pic_mode="$withval"
6798else
6799 pic_mode=default
6800fi;
6801
6802test -z "$pic_mode" && pic_mode=default
6803
6804
6805
6806
6807
6808
6809
6810 # Check whether --enable-fast-install or --disable-fast-install was given.
6811if test "${enable_fast_install+set}" = set; then
6812 enableval="$enable_fast_install"
6813 p=${PACKAGE-default}
6814 case $enableval in
6815 yes) enable_fast_install=yes ;;
6816 no) enable_fast_install=no ;;
6817 *)
6818 enable_fast_install=no
6819 # Look at the argument we got. We use all the common list separators.
6820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6821 for pkg in $enableval; do
6822 IFS="$lt_save_ifs"
6823 if test "X$pkg" = "X$p"; then
6824 enable_fast_install=yes
6825 fi
6826 done
6827 IFS="$lt_save_ifs"
1cf3d07d
SE
6828 ;;
6829 esac
77a3eb61
PG
6830else
6831 enable_fast_install=yes
6832fi;
1cf3d07d 6833
1cf3d07d
SE
6834
6835
1cf3d07d 6836
1cf3d07d 6837
1cf3d07d 6838
1cf3d07d 6839
1cf3d07d
SE
6840
6841
6842
6843# This can be used to rebuild libtool when needed
6844LIBTOOL_DEPS="$ltmain"
6845
6846# Always use our own libtool.
6847LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873test -z "$LN_S" && LN_S="ln -s"
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888if test -n "${ZSH_VERSION+set}" ; then
6889 setopt NO_GLOB_SUBST
6890fi
6891
6892echo "$as_me:$LINENO: checking for objdir" >&5
6893echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6894if test "${lt_cv_objdir+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896else
6897 rm -f .libs 2>/dev/null
6898mkdir .libs 2>/dev/null
6899if test -d .libs; then
6900 lt_cv_objdir=.libs
6901else
6902 # MS-DOS does not allow filenames that begin with a dot.
6903 lt_cv_objdir=_libs
6904fi
6905rmdir .libs 2>/dev/null
6906fi
6907echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6908echo "${ECHO_T}$lt_cv_objdir" >&6
6909objdir=$lt_cv_objdir
6910
6911
6912
6913
6914
6915cat >>confdefs.h <<_ACEOF
6916#define LT_OBJDIR "$lt_cv_objdir/"
6917_ACEOF
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935case $host_os in
6936aix3*)
6937 # AIX sometimes has problems with the GCC collect2 program. For some
6938 # reason, if we set the COLLECT_NAMES environment variable, the problems
6939 # vanish in a puff of smoke.
6940 if test "X${COLLECT_NAMES+set}" != Xset; then
6941 COLLECT_NAMES=
6942 export COLLECT_NAMES
6943 fi
6944 ;;
6945esac
6946
6947# Sed substitution that helps us do robust quoting. It backslashifies
6948# metacharacters that are still active within double-quoted strings.
6949sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6950
6951# Same as above, but do not quote variable references.
6952double_quote_subst='s/\(["`\\]\)/\\\1/g'
6953
6954# Sed substitution to delay expansion of an escaped shell variable in a
6955# double_quote_subst'ed string.
6956delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6957
6958# Sed substitution to delay expansion of an escaped single quote.
6959delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6960
6961# Sed substitution to avoid accidental globbing in evaled expressions
6962no_glob_subst='s/\*/\\\*/g'
6963
6964# Global variables:
6965ofile=libtool
6966can_build_shared=yes
6967
6968# All known linkers require a `.a' archive for static linking (except MSVC,
6969# which needs '.lib').
6970libext=a
6971
6972with_gnu_ld="$lt_cv_prog_gnu_ld"
6973
6974old_CC="$CC"
6975old_CFLAGS="$CFLAGS"
6976
6977# Set sane defaults for various variables
6978test -z "$CC" && CC=cc
6979test -z "$LTCC" && LTCC=$CC
6980test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6981test -z "$LD" && LD=ld
6982test -z "$ac_objext" && ac_objext=o
6983
6984for cc_temp in $compiler""; do
6985 case $cc_temp in
6986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6988 \-*) ;;
6989 *) break;;
6990 esac
6991done
6992cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6993
6994
6995# Only perform the check for file, if the check method requires it
6996test -z "$MAGIC_CMD" && MAGIC_CMD=file
6997case $deplibs_check_method in
6998file_magic*)
6999 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7000 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7001echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7002if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004else
7005 case $MAGIC_CMD in
7006[\\/*] | ?:[\\/]*)
7007 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7008 ;;
7009*)
7010 lt_save_MAGIC_CMD="$MAGIC_CMD"
7011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7013 for ac_dir in $ac_dummy; do
7014 IFS="$lt_save_ifs"
7015 test -z "$ac_dir" && ac_dir=.
7016 if test -f $ac_dir/${ac_tool_prefix}file; then
7017 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7018 if test -n "$file_magic_test_file"; then
7019 case $deplibs_check_method in
7020 "file_magic "*)
7021 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7024 $EGREP "$file_magic_regex" > /dev/null; then
7025 :
7026 else
7027 cat <<_LT_EOF 1>&2
7028
7029*** Warning: the command libtool uses to detect shared libraries,
7030*** $file_magic_cmd, produces output that libtool cannot recognize.
7031*** The result is that libtool may fail to recognize shared libraries
7032*** as such. This will affect the creation of libtool libraries that
7033*** depend on shared libraries, but programs linked with such libtool
7034*** libraries will work regardless of this problem. Nevertheless, you
7035*** may want to report the problem to your system manager and/or to
7036*** bug-libtool@gnu.org
7037
7038_LT_EOF
7039 fi ;;
7040 esac
7041 fi
7042 break
7043 fi
7044 done
7045 IFS="$lt_save_ifs"
7046 MAGIC_CMD="$lt_save_MAGIC_CMD"
7047 ;;
7048esac
7049fi
7050
7051MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052if test -n "$MAGIC_CMD"; then
7053 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7054echo "${ECHO_T}$MAGIC_CMD" >&6
7055else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058fi
7059
7060
7061
7062
7063
7064if test -z "$lt_cv_path_MAGIC_CMD"; then
7065 if test -n "$ac_tool_prefix"; then
7066 echo "$as_me:$LINENO: checking for file" >&5
7067echo $ECHO_N "checking for file... $ECHO_C" >&6
7068if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 case $MAGIC_CMD in
7072[\\/*] | ?:[\\/]*)
7073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7074 ;;
7075*)
7076 lt_save_MAGIC_CMD="$MAGIC_CMD"
7077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7079 for ac_dir in $ac_dummy; do
7080 IFS="$lt_save_ifs"
7081 test -z "$ac_dir" && ac_dir=.
7082 if test -f $ac_dir/file; then
7083 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7084 if test -n "$file_magic_test_file"; then
7085 case $deplibs_check_method in
7086 "file_magic "*)
7087 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7090 $EGREP "$file_magic_regex" > /dev/null; then
7091 :
7092 else
7093 cat <<_LT_EOF 1>&2
7094
7095*** Warning: the command libtool uses to detect shared libraries,
7096*** $file_magic_cmd, produces output that libtool cannot recognize.
7097*** The result is that libtool may fail to recognize shared libraries
7098*** as such. This will affect the creation of libtool libraries that
7099*** depend on shared libraries, but programs linked with such libtool
7100*** libraries will work regardless of this problem. Nevertheless, you
7101*** may want to report the problem to your system manager and/or to
7102*** bug-libtool@gnu.org
7103
7104_LT_EOF
7105 fi ;;
7106 esac
7107 fi
7108 break
7109 fi
7110 done
7111 IFS="$lt_save_ifs"
7112 MAGIC_CMD="$lt_save_MAGIC_CMD"
7113 ;;
7114esac
7115fi
7116
7117MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7118if test -n "$MAGIC_CMD"; then
7119 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7120echo "${ECHO_T}$MAGIC_CMD" >&6
7121else
7122 echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6
7124fi
7125
7126
7127 else
7128 MAGIC_CMD=:
7129 fi
7130fi
7131
7132 fi
7133 ;;
7134esac
7135
7136# Use C for the default configuration in the libtool script
7137
7138lt_save_CC="$CC"
7139ac_ext=c
7140ac_cpp='$CPP $CPPFLAGS'
7141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143ac_compiler_gnu=$ac_cv_c_compiler_gnu
7144
7145
7146# Source file extension for C test sources.
7147ac_ext=c
7148
7149# Object file extension for compiled C test sources.
7150objext=o
7151objext=$objext
7152
7153# Code to be used in simple compile tests
7154lt_simple_compile_test_code="int some_variable = 0;"
7155
7156# Code to be used in simple link tests
7157lt_simple_link_test_code='int main(){return(0);}'
7158
7159
7160
7161
7162
7163
7164
7165# If no C compiler was specified, use CC.
7166LTCC=${LTCC-"$CC"}
7167
7168# If no C compiler flags were specified, use CFLAGS.
7169LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7170
7171# Allow CC to be a program name with arguments.
7172compiler=$CC
7173
7174# Save the default compiler, since it gets overwritten when the other
7175# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7176compiler_DEFAULT=$CC
7177
7178# save warnings/boilerplate of simple test code
7179ac_outfile=conftest.$ac_objext
7180echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7181eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7182_lt_compiler_boilerplate=`cat conftest.err`
7183$RM conftest*
7184
7185ac_outfile=conftest.$ac_objext
7186echo "$lt_simple_link_test_code" >conftest.$ac_ext
7187eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7188_lt_linker_boilerplate=`cat conftest.err`
77a3eb61 7189$RM -r conftest*
1cf3d07d
SE
7190
7191
7192## CAVEAT EMPTOR:
7193## There is no encapsulation within the following macros, do not change
7194## the running order or otherwise move them around unless you know exactly
7195## what you are doing...
7196if test -n "$compiler"; then
7197
7198lt_prog_compiler_no_builtin_flag=
7199
7200if test "$GCC" = yes; then
7201 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7202
7203 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7204echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7205if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208 lt_cv_prog_compiler_rtti_exceptions=no
7209 ac_outfile=conftest.$ac_objext
7210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7211 lt_compiler_flag="-fno-rtti -fno-exceptions"
7212 # Insert the option either (1) after the last *FLAGS variable, or
7213 # (2) before a word containing "conftest.", or (3) at the end.
7214 # Note that $ac_compile itself does not contain backslashes and begins
7215 # with a dollar sign (not a hyphen), so the echo should work correctly.
7216 # The option is referenced via a variable to avoid confusing sed.
7217 lt_compile=`echo "$ac_compile" | $SED \
7218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7220 -e 's:$: $lt_compiler_flag:'`
77a3eb61 7221 (eval echo "\"\$as_me:7221: $lt_compile\"" >&5)
1cf3d07d
SE
7222 (eval "$lt_compile" 2>conftest.err)
7223 ac_status=$?
7224 cat conftest.err >&5
77a3eb61 7225 echo "$as_me:7225: \$? = $ac_status" >&5
1cf3d07d
SE
7226 if (exit $ac_status) && test -s "$ac_outfile"; then
7227 # The compiler can only warn and ignore the option if not recognized
7228 # So say no if there are warnings other than the usual output.
7229 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7232 lt_cv_prog_compiler_rtti_exceptions=yes
7233 fi
7234 fi
7235 $RM conftest*
7236
7237fi
7238echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7239echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7240
7241if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7243else
7244 :
7245fi
7246
7247fi
7248
7249
7250
7251
7252
7253
7254 lt_prog_compiler_wl=
7255lt_prog_compiler_pic=
7256lt_prog_compiler_static=
7257
7258echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7259echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7260
7261 if test "$GCC" = yes; then
7262 lt_prog_compiler_wl='-Wl,'
7263 lt_prog_compiler_static='-static'
7264
7265 case $host_os in
7266 aix*)
7267 # All AIX code is PIC.
7268 if test "$host_cpu" = ia64; then
7269 # AIX 5 now supports IA64 processor
7270 lt_prog_compiler_static='-Bstatic'
7271 fi
7272 ;;
7273
7274 amigaos*)
77a3eb61
PG
7275 case $host_cpu in
7276 powerpc)
7277 # see comment about AmigaOS4 .so support
7278 lt_prog_compiler_pic='-fPIC'
7279 ;;
7280 m68k)
7281 # FIXME: we need at least 68020 code to build shared libraries, but
7282 # adding the `-m68020' flag to GCC prevents building anything better,
7283 # like `-m68040'.
7284 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7285 ;;
7286 esac
1cf3d07d
SE
7287 ;;
7288
7289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7290 # PIC is the default for these OSes.
7291 ;;
7292
77a3eb61 7293 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7294 # This hack is so that the source file can tell whether it is being
7295 # built for inclusion in a dll (and should export symbols for example).
7296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7297 # (--disable-auto-import) libraries
7298 lt_prog_compiler_pic='-DDLL_EXPORT'
7299 ;;
7300
7301 darwin* | rhapsody*)
7302 # PIC is the default on this platform
7303 # Common symbols not allowed in MH_DYLIB files
7304 lt_prog_compiler_pic='-fno-common'
7305 ;;
7306
7307 hpux*)
77a3eb61
PG
7308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7310 # sets the default TLS model and affects inlining.
1cf3d07d 7311 case $host_cpu in
77a3eb61 7312 hppa*64*)
1cf3d07d
SE
7313 # +Z the default
7314 ;;
7315 *)
7316 lt_prog_compiler_pic='-fPIC'
7317 ;;
7318 esac
7319 ;;
7320
7321 interix[3-9]*)
7322 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7323 # Instead, we relocate shared libraries at runtime.
7324 ;;
7325
7326 msdosdjgpp*)
7327 # Just because we use GCC doesn't mean we suddenly get shared libraries
7328 # on systems that don't support them.
7329 lt_prog_compiler_can_build_shared=no
7330 enable_shared=no
7331 ;;
7332
7333 *nto* | *qnx*)
7334 # QNX uses GNU C++, but need to define -shared option too, otherwise
7335 # it will coredump.
7336 lt_prog_compiler_pic='-fPIC -shared'
7337 ;;
7338
7339 sysv4*MP*)
7340 if test -d /usr/nec; then
7341 lt_prog_compiler_pic=-Kconform_pic
7342 fi
7343 ;;
7344
7345 *)
7346 lt_prog_compiler_pic='-fPIC'
7347 ;;
7348 esac
7349 else
7350 # PORTME Check for flag to pass linker flags through the system compiler.
7351 case $host_os in
7352 aix*)
7353 lt_prog_compiler_wl='-Wl,'
7354 if test "$host_cpu" = ia64; then
7355 # AIX 5 now supports IA64 processor
7356 lt_prog_compiler_static='-Bstatic'
7357 else
7358 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7359 fi
7360 ;;
1cf3d07d 7361
77a3eb61 7362 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7363 # This hack is so that the source file can tell whether it is being
7364 # built for inclusion in a dll (and should export symbols for example).
7365 lt_prog_compiler_pic='-DDLL_EXPORT'
7366 ;;
7367
7368 hpux9* | hpux10* | hpux11*)
7369 lt_prog_compiler_wl='-Wl,'
7370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7371 # not for PA HP-UX.
7372 case $host_cpu in
7373 hppa*64*|ia64*)
7374 # +Z the default
7375 ;;
7376 *)
7377 lt_prog_compiler_pic='+Z'
7378 ;;
7379 esac
7380 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7381 lt_prog_compiler_static='${wl}-a ${wl}archive'
7382 ;;
7383
7384 irix5* | irix6* | nonstopux*)
7385 lt_prog_compiler_wl='-Wl,'
7386 # PIC (with -KPIC) is the default.
7387 lt_prog_compiler_static='-non_shared'
7388 ;;
7389
7a9d3fe8 7390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7391 case $cc_basename in
77a3eb61
PG
7392 # old Intel for x86_64 which still supported -KPIC.
7393 ecc*)
1cf3d07d
SE
7394 lt_prog_compiler_wl='-Wl,'
7395 lt_prog_compiler_pic='-KPIC'
7396 lt_prog_compiler_static='-static'
7397 ;;
77a3eb61
PG
7398 # icc used to be incompatible with GCC.
7399 # ICC 10 doesn't accept -KPIC any more.
7400 icc* | ifort*)
7401 lt_prog_compiler_wl='-Wl,'
7402 lt_prog_compiler_pic='-fPIC'
7403 lt_prog_compiler_static='-static'
7404 ;;
7405 # Lahey Fortran 8.1.
7406 lf95*)
7407 lt_prog_compiler_wl='-Wl,'
7408 lt_prog_compiler_pic='--shared'
7409 lt_prog_compiler_static='--static'
7410 ;;
1cf3d07d
SE
7411 pgcc* | pgf77* | pgf90* | pgf95*)
7412 # Portland Group compilers (*not* the Pentium gcc compiler,
7413 # which looks to be a dead project)
7414 lt_prog_compiler_wl='-Wl,'
7415 lt_prog_compiler_pic='-fpic'
7416 lt_prog_compiler_static='-Bstatic'
7417 ;;
7418 ccc*)
7419 lt_prog_compiler_wl='-Wl,'
7420 # All Alpha code is PIC.
7421 lt_prog_compiler_static='-non_shared'
7422 ;;
77a3eb61
PG
7423 xl*)
7424 # IBM XL C 8.0/Fortran 10.1 on PPC
7425 lt_prog_compiler_wl='-Wl,'
7426 lt_prog_compiler_pic='-qpic'
7427 lt_prog_compiler_static='-qstaticlink'
7428 ;;
1cf3d07d
SE
7429 *)
7430 case `$CC -V 2>&1 | sed 5q` in
7431 *Sun\ C*)
7432 # Sun C 5.9
7433 lt_prog_compiler_pic='-KPIC'
7434 lt_prog_compiler_static='-Bstatic'
7435 lt_prog_compiler_wl='-Wl,'
7436 ;;
7437 *Sun\ F*)
7438 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7439 lt_prog_compiler_pic='-KPIC'
7440 lt_prog_compiler_static='-Bstatic'
7441 lt_prog_compiler_wl=''
7442 ;;
7443 esac
7444 ;;
7445 esac
7446 ;;
7447
7448 newsos6)
7449 lt_prog_compiler_pic='-KPIC'
7450 lt_prog_compiler_static='-Bstatic'
7451 ;;
7452
7453 *nto* | *qnx*)
7454 # QNX uses GNU C++, but need to define -shared option too, otherwise
7455 # it will coredump.
7456 lt_prog_compiler_pic='-fPIC -shared'
7457 ;;
7458
7459 osf3* | osf4* | osf5*)
7460 lt_prog_compiler_wl='-Wl,'
7461 # All OSF/1 code is PIC.
7462 lt_prog_compiler_static='-non_shared'
7463 ;;
7464
7465 rdos*)
7466 lt_prog_compiler_static='-non_shared'
7467 ;;
7468
7469 solaris*)
7470 lt_prog_compiler_pic='-KPIC'
7471 lt_prog_compiler_static='-Bstatic'
7472 case $cc_basename in
7473 f77* | f90* | f95*)
7474 lt_prog_compiler_wl='-Qoption ld ';;
7475 *)
7476 lt_prog_compiler_wl='-Wl,';;
7477 esac
7478 ;;
7479
7480 sunos4*)
7481 lt_prog_compiler_wl='-Qoption ld '
7482 lt_prog_compiler_pic='-PIC'
7483 lt_prog_compiler_static='-Bstatic'
7484 ;;
7485
7486 sysv4 | sysv4.2uw2* | sysv4.3*)
7487 lt_prog_compiler_wl='-Wl,'
7488 lt_prog_compiler_pic='-KPIC'
7489 lt_prog_compiler_static='-Bstatic'
7490 ;;
7491
7492 sysv4*MP*)
7493 if test -d /usr/nec ;then
7494 lt_prog_compiler_pic='-Kconform_pic'
7495 lt_prog_compiler_static='-Bstatic'
7496 fi
7497 ;;
7498
7499 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7500 lt_prog_compiler_wl='-Wl,'
7501 lt_prog_compiler_pic='-KPIC'
7502 lt_prog_compiler_static='-Bstatic'
7503 ;;
7504
7505 unicos*)
7506 lt_prog_compiler_wl='-Wl,'
7507 lt_prog_compiler_can_build_shared=no
7508 ;;
7509
7510 uts4*)
7511 lt_prog_compiler_pic='-pic'
7512 lt_prog_compiler_static='-Bstatic'
7513 ;;
7514
7515 *)
7516 lt_prog_compiler_can_build_shared=no
7517 ;;
7518 esac
7519 fi
7520
7521case $host_os in
7522 # For platforms which do not support PIC, -DPIC is meaningless:
7523 *djgpp*)
7524 lt_prog_compiler_pic=
7525 ;;
7526 *)
7527 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7528 ;;
7529esac
7530echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7531echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7532
7533
7534
7535
7536
7537
7538#
7539# Check to make sure the PIC flag actually works.
7540#
7541if test -n "$lt_prog_compiler_pic"; then
7542 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7543echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
77a3eb61 7544if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1cf3d07d
SE
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546else
77a3eb61 7547 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
7548 ac_outfile=conftest.$ac_objext
7549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7550 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7551 # Insert the option either (1) after the last *FLAGS variable, or
7552 # (2) before a word containing "conftest.", or (3) at the end.
7553 # Note that $ac_compile itself does not contain backslashes and begins
7554 # with a dollar sign (not a hyphen), so the echo should work correctly.
7555 # The option is referenced via a variable to avoid confusing sed.
7556 lt_compile=`echo "$ac_compile" | $SED \
7557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7559 -e 's:$: $lt_compiler_flag:'`
77a3eb61 7560 (eval echo "\"\$as_me:7560: $lt_compile\"" >&5)
1cf3d07d
SE
7561 (eval "$lt_compile" 2>conftest.err)
7562 ac_status=$?
7563 cat conftest.err >&5
77a3eb61 7564 echo "$as_me:7564: \$? = $ac_status" >&5
1cf3d07d
SE
7565 if (exit $ac_status) && test -s "$ac_outfile"; then
7566 # The compiler can only warn and ignore the option if not recognized
7567 # So say no if there are warnings other than the usual output.
7568 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
77a3eb61 7571 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
7572 fi
7573 fi
7574 $RM conftest*
7575
7576fi
77a3eb61
PG
7577echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7578echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1cf3d07d 7579
77a3eb61 7580if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
7581 case $lt_prog_compiler_pic in
7582 "" | " "*) ;;
7583 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7584 esac
7585else
7586 lt_prog_compiler_pic=
7587 lt_prog_compiler_can_build_shared=no
7588fi
7589
7590fi
7591
7592
7593
7594
7595
7596
7597#
7598# Check to make sure the static flag actually works.
7599#
7600wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7601echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7602echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
77a3eb61 7603if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1cf3d07d
SE
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
77a3eb61 7606 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
7607 save_LDFLAGS="$LDFLAGS"
7608 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7609 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7610 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7611 # The linker can only warn and ignore the option if not recognized
7612 # So say no if there are warnings
7613 if test -s conftest.err; then
7614 # Append any errors to the config.log.
7615 cat conftest.err 1>&5
7616 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7618 if diff conftest.exp conftest.er2 >/dev/null; then
77a3eb61 7619 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7620 fi
7621 else
77a3eb61 7622 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7623 fi
7624 fi
77a3eb61 7625 $RM -r conftest*
1cf3d07d
SE
7626 LDFLAGS="$save_LDFLAGS"
7627
7628fi
77a3eb61
PG
7629echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7630echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1cf3d07d 7631
77a3eb61 7632if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
7633 :
7634else
7635 lt_prog_compiler_static=
7636fi
7637
7638
7639
7640
7641
7642
7643
7644 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7645echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7646if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649 lt_cv_prog_compiler_c_o=no
7650 $RM -r conftest 2>/dev/null
7651 mkdir conftest
7652 cd conftest
7653 mkdir out
7654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7655
7656 lt_compiler_flag="-o out/conftest2.$ac_objext"
7657 # Insert the option either (1) after the last *FLAGS variable, or
7658 # (2) before a word containing "conftest.", or (3) at the end.
7659 # Note that $ac_compile itself does not contain backslashes and begins
7660 # with a dollar sign (not a hyphen), so the echo should work correctly.
7661 lt_compile=`echo "$ac_compile" | $SED \
7662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7664 -e 's:$: $lt_compiler_flag:'`
77a3eb61 7665 (eval echo "\"\$as_me:7665: $lt_compile\"" >&5)
1cf3d07d
SE
7666 (eval "$lt_compile" 2>out/conftest.err)
7667 ac_status=$?
7668 cat out/conftest.err >&5
77a3eb61 7669 echo "$as_me:7669: \$? = $ac_status" >&5
1cf3d07d
SE
7670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7671 then
7672 # The compiler can only warn and ignore the option if not recognized
7673 # So say no if there are warnings
7674 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7677 lt_cv_prog_compiler_c_o=yes
7678 fi
7679 fi
7680 chmod u+w . 2>&5
7681 $RM conftest*
7682 # SGI C++ compiler will create directory out/ii_files/ for
7683 # template instantiation
7684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7685 $RM out/* && rmdir out
7686 cd ..
7687 $RM -r conftest
7688 $RM conftest*
7689
7690fi
7691echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7692echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7693
7694
7695
7696
7697
7698
7699 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7700echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7701if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704 lt_cv_prog_compiler_c_o=no
7705 $RM -r conftest 2>/dev/null
7706 mkdir conftest
7707 cd conftest
7708 mkdir out
7709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710
7711 lt_compiler_flag="-o out/conftest2.$ac_objext"
7712 # Insert the option either (1) after the last *FLAGS variable, or
7713 # (2) before a word containing "conftest.", or (3) at the end.
7714 # Note that $ac_compile itself does not contain backslashes and begins
7715 # with a dollar sign (not a hyphen), so the echo should work correctly.
7716 lt_compile=`echo "$ac_compile" | $SED \
7717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719 -e 's:$: $lt_compiler_flag:'`
77a3eb61 7720 (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
1cf3d07d
SE
7721 (eval "$lt_compile" 2>out/conftest.err)
7722 ac_status=$?
7723 cat out/conftest.err >&5
77a3eb61 7724 echo "$as_me:7724: \$? = $ac_status" >&5
1cf3d07d
SE
7725 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7726 then
7727 # The compiler can only warn and ignore the option if not recognized
7728 # So say no if there are warnings
7729 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7732 lt_cv_prog_compiler_c_o=yes
7733 fi
7734 fi
7735 chmod u+w . 2>&5
7736 $RM conftest*
7737 # SGI C++ compiler will create directory out/ii_files/ for
7738 # template instantiation
7739 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7740 $RM out/* && rmdir out
7741 cd ..
7742 $RM -r conftest
7743 $RM conftest*
7744
7745fi
7746echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7747echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7748
7749
7750
7751
7752hard_links="nottested"
7753if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7754 # do not overwrite the value of need_locks provided by the user
7755 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7756echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7757 hard_links=yes
7758 $RM conftest*
7759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7760 touch conftest.a
7761 ln conftest.a conftest.b 2>&5 || hard_links=no
7762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7763 echo "$as_me:$LINENO: result: $hard_links" >&5
7764echo "${ECHO_T}$hard_links" >&6
7765 if test "$hard_links" = no; then
7766 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7767echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7768 need_locks=warn
7769 fi
7770else
7771 need_locks=no
7772fi
7773
7774
7775
7776
7777
7778
7779 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7780echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7781
7782 runpath_var=
7783 allow_undefined_flag=
7784 always_export_symbols=no
7785 archive_cmds=
7786 archive_expsym_cmds=
7787 compiler_needs_object=no
7788 enable_shared_with_static_runtimes=no
7789 export_dynamic_flag_spec=
7790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7791 hardcode_automatic=no
7792 hardcode_direct=no
7793 hardcode_direct_absolute=no
7794 hardcode_libdir_flag_spec=
7795 hardcode_libdir_flag_spec_ld=
7796 hardcode_libdir_separator=
7797 hardcode_minus_L=no
7798 hardcode_shlibpath_var=unsupported
7799 inherit_rpath=no
7800 link_all_deplibs=unknown
7801 module_cmds=
7802 module_expsym_cmds=
7803 old_archive_from_new_cmds=
7804 old_archive_from_expsyms_cmds=
7805 thread_safe_flag_spec=
7806 whole_archive_flag_spec=
7807 # include_expsyms should be a list of space-separated symbols to be *always*
7808 # included in the symbol list
7809 include_expsyms=
7810 # exclude_expsyms can be an extended regexp of symbols to exclude
7811 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7812 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7813 # as well as any symbol that contains `d'.
77a3eb61 7814 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
7815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7816 # platforms (ab)use it in PIC code, but their linkers get confused if
7817 # the symbol is explicitly referenced. Since portable code cannot
7818 # rely on this symbol name, it's probably fine to never include it in
7819 # preloaded symbol tables.
77a3eb61 7820 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
7821 extract_expsyms_cmds=
7822
7823 case $host_os in
77a3eb61 7824 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7826 # When not using gcc, we currently assume that we are using
7827 # Microsoft Visual C++.
7828 if test "$GCC" != yes; then
7829 with_gnu_ld=no
7830 fi
7831 ;;
7832 interix*)
7833 # we just hope/assume this is gcc and not c89 (= MSVC++)
7834 with_gnu_ld=yes
7835 ;;
7836 openbsd*)
7837 with_gnu_ld=no
7838 ;;
7839 esac
7840
7841 ld_shlibs=yes
7842 if test "$with_gnu_ld" = yes; then
7843 # If archive_cmds runs LD, not CC, wlarc should be empty
7844 wlarc='${wl}'
7845
7846 # Set some defaults for GNU ld with shared library support. These
7847 # are reset later if shared libraries are not supported. Putting them
7848 # here allows them to be overridden if necessary.
7849 runpath_var=LD_RUN_PATH
7850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7851 export_dynamic_flag_spec='${wl}--export-dynamic'
7852 # ancient GNU ld didn't support --whole-archive et. al.
7853 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7854 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7855 else
7856 whole_archive_flag_spec=
7857 fi
7858 supports_anon_versioning=no
7859 case `$LD -v 2>&1` in
7860 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7861 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7862 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7863 *\ 2.11.*) ;; # other 2.11 versions
7864 *) supports_anon_versioning=yes ;;
7865 esac
7866
7867 # See if GNU ld supports shared libraries.
7868 case $host_os in
445bad9b 7869 aix[3-9]*)
1cf3d07d
SE
7870 # On AIX/PPC, the GNU linker is very broken
7871 if test "$host_cpu" != ia64; then
7872 ld_shlibs=no
7873 cat <<_LT_EOF 1>&2
7874
7875*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7876*** to be unable to reliably create shared libraries on AIX.
7877*** Therefore, libtool is disabling shared libraries support. If you
7878*** really care for shared libraries, you may want to modify your PATH
7879*** so that a non-GNU linker is found, and then restart.
7880
7881_LT_EOF
7882 fi
7883 ;;
7884
7885 amigaos*)
77a3eb61
PG
7886 case $host_cpu in
7887 powerpc)
7888 # see comment about AmigaOS4 .so support
7889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7890 archive_expsym_cmds=''
7891 ;;
7892 m68k)
7893 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)'
7894 hardcode_libdir_flag_spec='-L$libdir'
7895 hardcode_minus_L=yes
7896 ;;
7897 esac
1cf3d07d
SE
7898 ;;
7899
7900 beos*)
7901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7902 allow_undefined_flag=unsupported
7903 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7904 # support --undefined. This deserves some investigation. FIXME
7905 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906 else
7907 ld_shlibs=no
7908 fi
7909 ;;
7910
77a3eb61 7911 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7912 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7913 # as there is no search path for DLLs.
7914 hardcode_libdir_flag_spec='-L$libdir'
7915 allow_undefined_flag=unsupported
7916 always_export_symbols=no
7917 enable_shared_with_static_runtimes=yes
7918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7919
7920 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7922 # If the export-symbols file already is a .def file (1st line
7923 # is EXPORTS), use it as is; otherwise, prepend...
7924 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7925 cp $export_symbols $output_objdir/$soname.def;
7926 else
7927 echo EXPORTS > $output_objdir/$soname.def;
7928 cat $export_symbols >> $output_objdir/$soname.def;
7929 fi~
7930 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7931 else
7932 ld_shlibs=no
7933 fi
7934 ;;
7935
7936 interix[3-9]*)
7937 hardcode_direct=no
7938 hardcode_shlibpath_var=no
7939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7940 export_dynamic_flag_spec='${wl}-E'
7941 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7942 # Instead, shared libraries are loaded at an image base (0x10000000 by
7943 # default) and relocated if they conflict, which is a slow very memory
7944 # consuming and fragmenting process. To avoid this, we pick a random,
7945 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7946 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7948 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'
7949 ;;
7950
7a9d3fe8 7951 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
7952 tmp_diet=no
7953 if test "$host_os" = linux-dietlibc; then
7954 case $cc_basename in
7955 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7956 esac
7957 fi
7958 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7959 && test "$tmp_diet" = no
7960 then
7961 tmp_addflag=
77a3eb61 7962 tmp_sharedflag='-shared'
1cf3d07d
SE
7963 case $cc_basename,$host_cpu in
7964 pgcc*) # Portland Group C compiler
7965 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'
7966 tmp_addflag=' $pic_flag'
7967 ;;
7968 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7969 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'
7970 tmp_addflag=' $pic_flag -Mnomain' ;;
7971 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7972 tmp_addflag=' -i_dynamic' ;;
7973 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7974 tmp_addflag=' -i_dynamic -nofor_main' ;;
7975 ifc* | ifort*) # Intel Fortran compiler
7976 tmp_addflag=' -nofor_main' ;;
77a3eb61
PG
7977 lf95*) # Lahey Fortran 8.1
7978 whole_archive_flag_spec=
7979 tmp_sharedflag='--shared' ;;
7980 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7981 tmp_sharedflag='-qmkshrobj'
7982 tmp_addflag= ;;
1cf3d07d
SE
7983 esac
7984 case `$CC -V 2>&1 | sed 5q` in
7985 *Sun\ C*) # Sun C 5.9
7986 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'
7987 compiler_needs_object=yes
7988 tmp_sharedflag='-G' ;;
7989 *Sun\ F*) # Sun Fortran 8.3
7990 tmp_sharedflag='-G' ;;
1cf3d07d
SE
7991 esac
7992 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993
7994 if test "x$supports_anon_versioning" = xyes; then
7995 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7996 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7997 echo "local: *; };" >> $output_objdir/$libname.ver~
7998 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7999 fi
77a3eb61
PG
8000
8001 case $cc_basename in
8002 xlf*)
8003 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8004 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8005 hardcode_libdir_flag_spec=
8006 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8007 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8008 if test "x$supports_anon_versioning" = xyes; then
8009 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8011 echo "local: *; };" >> $output_objdir/$libname.ver~
8012 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8013 fi
8014 ;;
8015 esac
1cf3d07d
SE
8016 else
8017 ld_shlibs=no
8018 fi
8019 ;;
8020
8021 netbsd*)
8022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8023 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8024 wlarc=
8025 else
8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8028 fi
8029 ;;
8030
8031 solaris*)
8032 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8033 ld_shlibs=no
8034 cat <<_LT_EOF 1>&2
8035
8036*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8037*** create shared libraries on Solaris systems. Therefore, libtool
8038*** is disabling shared libraries support. We urge you to upgrade GNU
8039*** binutils to release 2.9.1 or newer. Another option is to modify
8040*** your PATH or compiler configuration so that the native linker is
8041*** used, and then restart.
8042
8043_LT_EOF
8044 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047 else
8048 ld_shlibs=no
8049 fi
8050 ;;
8051
8052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8053 case `$LD -v 2>&1` in
8054 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8055 ld_shlibs=no
8056 cat <<_LT_EOF 1>&2
8057
8058*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8059*** reliably create shared libraries on SCO systems. Therefore, libtool
8060*** is disabling shared libraries support. We urge you to upgrade GNU
8061*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8062*** your PATH or compiler configuration so that the native linker is
8063*** used, and then restart.
8064
8065_LT_EOF
8066 ;;
8067 *)
8068 # For security reasons, it is highly recommended that you always
8069 # use absolute paths for naming shared libraries, and exclude the
8070 # DT_RUNPATH tag from executables and libraries. But doing so
8071 # requires that you compile everything twice, which is a pain.
8072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076 else
8077 ld_shlibs=no
8078 fi
8079 ;;
8080 esac
8081 ;;
8082
8083 sunos4*)
8084 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8085 wlarc=
8086 hardcode_direct=yes
8087 hardcode_shlibpath_var=no
8088 ;;
8089
8090 *)
8091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8094 else
8095 ld_shlibs=no
8096 fi
8097 ;;
8098 esac
8099
8100 if test "$ld_shlibs" = no; then
8101 runpath_var=
8102 hardcode_libdir_flag_spec=
8103 export_dynamic_flag_spec=
8104 whole_archive_flag_spec=
8105 fi
8106 else
8107 # PORTME fill in a description of your system's linker (not GNU ld)
8108 case $host_os in
8109 aix3*)
8110 allow_undefined_flag=unsupported
8111 always_export_symbols=yes
8112 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'
8113 # Note: this linker hardcodes the directories in LIBPATH if there
8114 # are no directories specified by -L.
8115 hardcode_minus_L=yes
8116 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8117 # Neither direct hardcoding nor static linking is supported with a
8118 # broken collect2.
8119 hardcode_direct=unsupported
8120 fi
8121 ;;
8122
445bad9b 8123 aix[4-9]*)
1cf3d07d
SE
8124 if test "$host_cpu" = ia64; then
8125 # On IA64, the linker does run time linking by default, so we don't
8126 # have to do anything special.
8127 aix_use_runtimelinking=no
8128 exp_sym_flag='-Bexport'
8129 no_entry_flag=""
8130 else
8131 # If we're using GNU nm, then we don't want the "-C" option.
8132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8133 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8134 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'
8135 else
8136 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'
8137 fi
8138 aix_use_runtimelinking=no
8139
8140 # Test if we are trying to use run time linking or normal
8141 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8142 # need to do runtime linking.
445bad9b 8143 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8144 for ld_flag in $LDFLAGS; do
8145 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8146 aix_use_runtimelinking=yes
8147 break
8148 fi
8149 done
8150 ;;
8151 esac
8152
8153 exp_sym_flag='-bexport'
8154 no_entry_flag='-bnoentry'
8155 fi
8156
8157 # When large executables or shared objects are built, AIX ld can
8158 # have problems creating the table of contents. If linking a library
8159 # or program results in "error TOC overflow" add -mminimal-toc to
8160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8162
8163 archive_cmds=''
8164 hardcode_direct=yes
8165 hardcode_direct_absolute=yes
8166 hardcode_libdir_separator=':'
8167 link_all_deplibs=yes
8168 file_list_spec='${wl}-f,'
8169
8170 if test "$GCC" = yes; then
8171 case $host_os in aix4.[012]|aix4.[012].*)
8172 # We only want to do this on AIX 4.2 and lower, the check
8173 # below for broken collect2 doesn't work under 4.3+
8174 collect2name=`${CC} -print-prog-name=collect2`
8175 if test -f "$collect2name" &&
8176 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8177 then
8178 # We have reworked collect2
8179 :
8180 else
8181 # We have old collect2
8182 hardcode_direct=unsupported
8183 # It fails to find uninstalled libraries when the uninstalled
8184 # path is not listed in the libpath. Setting hardcode_minus_L
8185 # to unsupported forces relinking
8186 hardcode_minus_L=yes
8187 hardcode_libdir_flag_spec='-L$libdir'
8188 hardcode_libdir_separator=
8189 fi
8190 ;;
8191 esac
8192 shared_flag='-shared'
8193 if test "$aix_use_runtimelinking" = yes; then
8194 shared_flag="$shared_flag "'${wl}-G'
8195 fi
8196 else
8197 # not using gcc
8198 if test "$host_cpu" = ia64; then
8199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8200 # chokes on -Wl,-G. The following line is correct:
8201 shared_flag='-G'
8202 else
8203 if test "$aix_use_runtimelinking" = yes; then
8204 shared_flag='${wl}-G'
8205 else
8206 shared_flag='${wl}-bM:SRE'
8207 fi
8208 fi
8209 fi
8210
77a3eb61 8211 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8212 # It seems that -bexpall does not export symbols beginning with
8213 # underscore (_), so it is better to generate a list of symbols to export.
8214 always_export_symbols=yes
8215 if test "$aix_use_runtimelinking" = yes; then
8216 # Warning - without using the other runtime loading flags (-brtl),
8217 # -berok will link without error, but may produce a broken library.
8218 allow_undefined_flag='-berok'
8219 # Determine the default libpath from the value encoded in an
8220 # empty executable.
8221 if test x$gcc_no_link = xyes; then
8222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8223echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8224 { (exit 1); exit 1; }; }
8225fi
8226cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
8232
8233int
8234main ()
8235{
8236
8237 ;
8238 return 0;
8239}
8240_ACEOF
8241rm -f conftest.$ac_objext conftest$ac_exeext
8242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263
8264lt_aix_libpath_sed='
8265 /Import File Strings/,/^$/ {
8266 /^0/ {
8267 s/^0 *\(.*\)$/\1/
8268 p
8269 }
8270 }'
8271aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8272# Check for a 64-bit object if we didn't find anything.
8273if test -z "$aix_libpath"; then
8274 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8275fi
8276else
8277 echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
8280fi
8281rm -f conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8284
8285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8286 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"
8287 else
8288 if test "$host_cpu" = ia64; then
8289 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8290 allow_undefined_flag="-z nodefs"
8291 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"
8292 else
8293 # Determine the default libpath from the value encoded in an
8294 # empty executable.
8295 if test x$gcc_no_link = xyes; then
8296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8297echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8298 { (exit 1); exit 1; }; }
8299fi
8300cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
8306
8307int
8308main ()
8309{
8310
8311 ;
8312 return 0;
8313}
8314_ACEOF
8315rm -f conftest.$ac_objext conftest$ac_exeext
8316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8317 (eval $ac_link) 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -z "$ac_c_werror_flag"
8325 || test ! -s conftest.err'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest$ac_exeext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337
8338lt_aix_libpath_sed='
8339 /Import File Strings/,/^$/ {
8340 /^0/ {
8341 s/^0 *\(.*\)$/\1/
8342 p
8343 }
8344 }'
8345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346# Check for a 64-bit object if we didn't find anything.
8347if test -z "$aix_libpath"; then
8348 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8349fi
8350else
8351 echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354fi
8355rm -f conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8358
8359 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8360 # Warning - without using the other run time loading flags,
8361 # -berok will link without error, but may produce a broken library.
8362 no_undefined_flag=' ${wl}-bernotok'
8363 allow_undefined_flag=' ${wl}-berok'
8364 # Exported symbols can be pulled into shared objects from archives
8365 whole_archive_flag_spec='$convenience'
8366 archive_cmds_need_lc=yes
8367 # This is similar to how AIX traditionally builds its shared libraries.
8368 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'
8369 fi
8370 fi
8371 ;;
8372
8373 amigaos*)
77a3eb61
PG
8374 case $host_cpu in
8375 powerpc)
8376 # see comment about AmigaOS4 .so support
8377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8378 archive_expsym_cmds=''
8379 ;;
8380 m68k)
8381 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)'
8382 hardcode_libdir_flag_spec='-L$libdir'
8383 hardcode_minus_L=yes
8384 ;;
8385 esac
1cf3d07d
SE
8386 ;;
8387
8388 bsdi[45]*)
8389 export_dynamic_flag_spec=-rdynamic
8390 ;;
8391
77a3eb61 8392 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8393 # When not using gcc, we currently assume that we are using
8394 # Microsoft Visual C++.
8395 # hardcode_libdir_flag_spec is actually meaningless, as there is
8396 # no search path for DLLs.
8397 hardcode_libdir_flag_spec=' '
8398 allow_undefined_flag=unsupported
8399 # Tell ltmain to make .lib files, not .a files.
8400 libext=lib
8401 # Tell ltmain to make .dll files, not .so files.
8402 shrext_cmds=".dll"
8403 # FIXME: Setting linknames here is a bad hack.
8404 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8405 # The linker will automatically build a .lib file if we build a DLL.
8406 old_archive_from_new_cmds='true'
8407 # FIXME: Should let the user specify the lib program.
8408 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8409 fix_srcfile_path='`cygpath -w "$srcfile"`'
8410 enable_shared_with_static_runtimes=yes
8411 ;;
8412
8413 darwin* | rhapsody*)
1cf3d07d 8414
77a3eb61
PG
8415
8416 archive_cmds_need_lc=no
8417 hardcode_direct=no
8418 hardcode_automatic=yes
8419 hardcode_shlibpath_var=unsupported
8420 whole_archive_flag_spec=''
8421 link_all_deplibs=yes
8422 allow_undefined_flag="$_lt_dar_allow_undefined"
8423 case $cc_basename in
8424 ifort*) _lt_dar_can_shared=yes ;;
8425 *) _lt_dar_can_shared=$GCC ;;
8426 esac
8427 if test "$_lt_dar_can_shared" = "yes"; then
8428 output_verbose_link_cmd=echo
8429 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8430 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8431 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}"
8432 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}"
8433
8434 else
8435 ld_shlibs=no
8436 fi
8437
1cf3d07d
SE
8438 ;;
8439
8440 dgux*)
8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_shlibpath_var=no
8444 ;;
8445
8446 freebsd1*)
8447 ld_shlibs=no
8448 ;;
8449
8450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8451 # support. Future versions do this automatically, but an explicit c++rt0.o
8452 # does not break anything, and helps significantly (at the cost of a little
8453 # extra space).
8454 freebsd2.2*)
8455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8456 hardcode_libdir_flag_spec='-R$libdir'
8457 hardcode_direct=yes
8458 hardcode_shlibpath_var=no
8459 ;;
8460
8461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8462 freebsd2*)
8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_direct=yes
8465 hardcode_minus_L=yes
8466 hardcode_shlibpath_var=no
8467 ;;
8468
8469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8470 freebsd* | dragonfly*)
8471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8472 hardcode_libdir_flag_spec='-R$libdir'
8473 hardcode_direct=yes
8474 hardcode_shlibpath_var=no
8475 ;;
8476
8477 hpux9*)
8478 if test "$GCC" = yes; then
8479 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'
8480 else
8481 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'
8482 fi
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_separator=:
8485 hardcode_direct=yes
8486
8487 # hardcode_minus_L: Not really in the search PATH,
8488 # but as the default location of the library.
8489 hardcode_minus_L=yes
8490 export_dynamic_flag_spec='${wl}-E'
8491 ;;
8492
8493 hpux10*)
8494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496 else
8497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8498 fi
8499 if test "$with_gnu_ld" = no; then
8500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8501 hardcode_libdir_flag_spec_ld='+b $libdir'
8502 hardcode_libdir_separator=:
8503 hardcode_direct=yes
8504 hardcode_direct_absolute=yes
8505 export_dynamic_flag_spec='${wl}-E'
8506 # hardcode_minus_L: Not really in the search PATH,
8507 # but as the default location of the library.
8508 hardcode_minus_L=yes
8509 fi
8510 ;;
8511
8512 hpux11*)
8513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8514 case $host_cpu in
8515 hppa*64*)
8516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517 ;;
8518 ia64*)
77a3eb61 8519 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
8520 ;;
8521 *)
8522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8523 ;;
8524 esac
8525 else
8526 case $host_cpu in
8527 hppa*64*)
8528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 ;;
8530 ia64*)
8531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8532 ;;
8533 *)
8534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8535 ;;
8536 esac
8537 fi
8538 if test "$with_gnu_ld" = no; then
8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8540 hardcode_libdir_separator=:
8541
8542 case $host_cpu in
8543 hppa*64*|ia64*)
8544 hardcode_direct=no
8545 hardcode_shlibpath_var=no
8546 ;;
8547 *)
8548 hardcode_direct=yes
8549 hardcode_direct_absolute=yes
8550 export_dynamic_flag_spec='${wl}-E'
8551
8552 # hardcode_minus_L: Not really in the search PATH,
8553 # but as the default location of the library.
8554 hardcode_minus_L=yes
8555 ;;
8556 esac
8557 fi
8558 ;;
8559
8560 irix5* | irix6* | nonstopux*)
8561 if test "$GCC" = yes; then
8562 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'
8563 # Try to use the -exported_symbol ld option, if it does not
8564 # work, assume that -exports_file does not work either and
8565 # implicitly export all symbols.
8566 save_LDFLAGS="$LDFLAGS"
8567 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8568 if test x$gcc_no_link = xyes; then
8569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8570echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8571 { (exit 1); exit 1; }; }
8572fi
8573cat >conftest.$ac_ext <<_ACEOF
8574int foo(void) {}
8575_ACEOF
8576rm -f conftest.$ac_objext conftest$ac_exeext
8577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8578 (eval $ac_link) 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag"
8586 || test ! -s conftest.err'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest$ac_exeext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 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'
8599
8600else
8601 echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604fi
8605rm -f conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607 LDFLAGS="$save_LDFLAGS"
8608 else
8609 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'
8610 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'
8611 fi
8612 archive_cmds_need_lc='no'
8613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8614 hardcode_libdir_separator=:
8615 inherit_rpath=yes
8616 link_all_deplibs=yes
8617 ;;
8618
8619 netbsd*)
8620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8622 else
8623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8624 fi
8625 hardcode_libdir_flag_spec='-R$libdir'
8626 hardcode_direct=yes
8627 hardcode_shlibpath_var=no
8628 ;;
8629
8630 newsos6)
8631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632 hardcode_direct=yes
8633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634 hardcode_libdir_separator=:
8635 hardcode_shlibpath_var=no
8636 ;;
8637
8638 *nto* | *qnx*)
8639 ;;
8640
8641 openbsd*)
77a3eb61
PG
8642 if test -f /usr/libexec/ld.so; then
8643 hardcode_direct=yes
8644 hardcode_shlibpath_var=no
8645 hardcode_direct_absolute=yes
8646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 8647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
77a3eb61 8648 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 8649 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
77a3eb61
PG
8650 export_dynamic_flag_spec='${wl}-E'
8651 else
8652 case $host_os in
8653 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_libdir_flag_spec='-R$libdir'
8656 ;;
8657 *)
8658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8660 ;;
8661 esac
8662 fi
8663 else
8664 ld_shlibs=no
1cf3d07d
SE
8665 fi
8666 ;;
8667
8668 os2*)
8669 hardcode_libdir_flag_spec='-L$libdir'
8670 hardcode_minus_L=yes
8671 allow_undefined_flag=unsupported
8672 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'
8673 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8674 ;;
8675
8676 osf3*)
8677 if test "$GCC" = yes; then
8678 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8679 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'
8680 else
8681 allow_undefined_flag=' -expect_unresolved \*'
8682 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'
8683 fi
8684 archive_cmds_need_lc='no'
8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 ;;
8688
8689 osf4* | osf5*) # as osf3* with the addition of -msym flag
8690 if test "$GCC" = yes; then
8691 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8692 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'
8693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694 else
8695 allow_undefined_flag=' -expect_unresolved \*'
8696 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'
8697 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~
8698 $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'
8699
8700 # Both c and cxx compiler support -rpath directly
8701 hardcode_libdir_flag_spec='-rpath $libdir'
8702 fi
8703 archive_cmds_need_lc='no'
8704 hardcode_libdir_separator=:
8705 ;;
8706
8707 solaris*)
8708 no_undefined_flag=' -z defs'
8709 if test "$GCC" = yes; then
8710 wlarc='${wl}'
8711 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8713 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8714 else
8715 case `$CC -V 2>&1` in
8716 *"Compilers 5.0"*)
8717 wlarc=''
8718 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8720 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8721 ;;
8722 *)
8723 wlarc='${wl}'
8724 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8726 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8727 ;;
8728 esac
8729 fi
8730 hardcode_libdir_flag_spec='-R$libdir'
8731 hardcode_shlibpath_var=no
8732 case $host_os in
8733 solaris2.[0-5] | solaris2.[0-5].*) ;;
8734 *)
8735 # The compiler driver will combine and reorder linker options,
8736 # but understands `-z linker_flag'. GCC discards it without `$wl',
8737 # but is careful enough not to reorder.
8738 # Supported since Solaris 2.6 (maybe 2.5.1?)
8739 if test "$GCC" = yes; then
8740 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8741 else
8742 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8743 fi
8744 ;;
8745 esac
8746 link_all_deplibs=yes
8747 ;;
8748
8749 sunos4*)
8750 if test "x$host_vendor" = xsequent; then
8751 # Use $CC to link under sequent, because it throws in some extra .o
8752 # files that make .init and .fini sections work.
8753 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8754 else
8755 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8756 fi
8757 hardcode_libdir_flag_spec='-L$libdir'
8758 hardcode_direct=yes
8759 hardcode_minus_L=yes
8760 hardcode_shlibpath_var=no
8761 ;;
8762
8763 sysv4)
8764 case $host_vendor in
8765 sni)
8766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_direct=yes # is this really true???
8768 ;;
8769 siemens)
8770 ## LD is ld it makes a PLAMLIB
8771 ## CC just makes a GrossModule.
8772 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8773 reload_cmds='$CC -r -o $output$reload_objs'
8774 hardcode_direct=no
8775 ;;
8776 motorola)
8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8779 ;;
8780 esac
8781 runpath_var='LD_RUN_PATH'
8782 hardcode_shlibpath_var=no
8783 ;;
8784
8785 sysv4.3*)
8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_shlibpath_var=no
8788 export_dynamic_flag_spec='-Bexport'
8789 ;;
8790
8791 sysv4*MP*)
8792 if test -d /usr/nec; then
8793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_shlibpath_var=no
8795 runpath_var=LD_RUN_PATH
8796 hardcode_runpath_var=yes
8797 ld_shlibs=yes
8798 fi
8799 ;;
8800
8801 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8802 no_undefined_flag='${wl}-z,text'
8803 archive_cmds_need_lc=no
8804 hardcode_shlibpath_var=no
8805 runpath_var='LD_RUN_PATH'
8806
8807 if test "$GCC" = yes; then
8808 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8810 else
8811 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813 fi
8814 ;;
8815
8816 sysv5* | sco3.2v5* | sco5v6*)
8817 # Note: We can NOT use -z defs as we might desire, because we do not
8818 # link with -lc, and that would cause any symbols used from libc to
8819 # always be unresolved, which means just about no library would
8820 # ever link correctly. If we're not using GNU ld we use -z text
8821 # though, which does catch some bad symbols but isn't as heavy-handed
8822 # as -z defs.
8823 no_undefined_flag='${wl}-z,text'
8824 allow_undefined_flag='${wl}-z,nodefs'
8825 archive_cmds_need_lc=no
8826 hardcode_shlibpath_var=no
8827 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8828 hardcode_libdir_separator=':'
8829 link_all_deplibs=yes
8830 export_dynamic_flag_spec='${wl}-Bexport'
8831 runpath_var='LD_RUN_PATH'
8832
8833 if test "$GCC" = yes; then
8834 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 else
8837 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839 fi
8840 ;;
8841
8842 uts4*)
8843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 hardcode_shlibpath_var=no
8846 ;;
8847
8848 *)
8849 ld_shlibs=no
8850 ;;
8851 esac
8852
8853 if test x$host_vendor = xsni; then
8854 case $host in
8855 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8856 export_dynamic_flag_spec='${wl}-Blargedynsym'
8857 ;;
8858 esac
8859 fi
8860 fi
8861
8862echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8863echo "${ECHO_T}$ld_shlibs" >&6
8864test "$ld_shlibs" = no && can_build_shared=no
8865
8866with_gnu_ld=$with_gnu_ld
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882#
8883# Do we need to explicitly link libc?
8884#
8885case "x$archive_cmds_need_lc" in
8886x|xyes)
8887 # Assume -lc should be added
8888 archive_cmds_need_lc=yes
8889
8890 if test "$enable_shared" = yes && test "$GCC" = yes; then
8891 case $archive_cmds in
8892 *'~'*)
8893 # FIXME: we may have to deal with multi-command sequences.
8894 ;;
8895 '$CC '*)
8896 # Test whether the compiler implicitly links with -lc since on some
8897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8898 # to ld, don't add -lc before -lgcc.
8899 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8900echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
8901if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903else
8904 $RM conftest*
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 8906
baafc534 8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1cf3d07d
SE
8908 (eval $ac_compile) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } 2>conftest.err; then
baafc534
RW
8912 soname=conftest
8913 lib=conftest
8914 libobjs=conftest.$ac_objext
8915 deplibs=
8916 wl=$lt_prog_compiler_wl
8917 pic_flag=$lt_prog_compiler_pic
8918 compiler_flags=-v
8919 linker_flags=-v
8920 verstring=
8921 output_objdir=.
8922 libname=conftest
8923 lt_save_allow_undefined_flag=$allow_undefined_flag
8924 allow_undefined_flag=
8925 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1cf3d07d
SE
8926 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }
baafc534
RW
8930 then
8931 lt_cv_archive_cmds_need_lc=no
8932 else
8933 lt_cv_archive_cmds_need_lc=yes
8934 fi
8935 allow_undefined_flag=$lt_save_allow_undefined_flag
8936 else
8937 cat conftest.err 1>&5
8938 fi
8939 $RM conftest*
8940
8941fi
8942echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8943echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8944 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
8945 ;;
8946 esac
8947 fi
8948 ;;
8949esac
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9108echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
77a3eb61
PG
9109
9110if test "$GCC" = yes; then
1cf3d07d
SE
9111 case $host_os in
9112 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9113 *) lt_awk_arg="/^libraries:/" ;;
9114 esac
9115 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9116 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9117 # if the path contains ";" then we assume it to be the separator
9118 # otherwise default to the standard path separator (i.e. ":") - it is
9119 # assumed that no part of a normal pathname contains ";" but that should
9120 # okay in the real world where ";" in dirpaths is itself problematic.
9121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9122 else
9123 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9124 fi
9125 # Ok, now we have the path, separated by spaces, we can step through it
9126 # and add multilib dir if necessary.
9127 lt_tmp_lt_search_path_spec=
9128 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9129 for lt_sys_path in $lt_search_path_spec; do
9130 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9132 else
9133 test -d "$lt_sys_path" && \
9134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9135 fi
9136 done
9137 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9138BEGIN {RS=" "; FS="/|\n";} {
9139 lt_foo="";
9140 lt_count=0;
9141 for (lt_i = NF; lt_i > 0; lt_i--) {
9142 if ($lt_i != "" && $lt_i != ".") {
9143 if ($lt_i == "..") {
9144 lt_count++;
9145 } else {
9146 if (lt_count == 0) {
9147 lt_foo="/" $lt_i lt_foo;
9148 } else {
9149 lt_count--;
9150 }
9151 }
9152 }
9153 }
9154 if (lt_foo != "") { lt_freq[lt_foo]++; }
9155 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9156}'`
9157 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9158else
9159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9160fi
9161library_names_spec=
9162libname_spec='lib$name'
9163soname_spec=
9164shrext_cmds=".so"
9165postinstall_cmds=
9166postuninstall_cmds=
9167finish_cmds=
9168finish_eval=
9169shlibpath_var=
9170shlibpath_overrides_runpath=unknown
9171version_type=none
9172dynamic_linker="$host_os ld.so"
9173sys_lib_dlsearch_path_spec="/lib /usr/lib"
9174need_lib_prefix=unknown
9175hardcode_into_libs=no
9176
9177# when you set need_version to no, make sure it does not cause -set_version
9178# flags to be left without arguments
9179need_version=unknown
9180
9181case $host_os in
9182aix3*)
9183 version_type=linux
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9185 shlibpath_var=LIBPATH
9186
9187 # AIX 3 has no versioning support, so we append a major version to the name.
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 ;;
9190
445bad9b 9191aix[4-9]*)
1cf3d07d
SE
9192 version_type=linux
9193 need_lib_prefix=no
9194 need_version=no
9195 hardcode_into_libs=yes
9196 if test "$host_cpu" = ia64; then
9197 # AIX 5 supports IA64
9198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 else
9201 # With GCC up to 2.95.x, collect2 would create an import file
9202 # for dependence libraries. The import file would start with
9203 # the line `#! .'. This would cause the generated library to
9204 # depend on `.', always an invalid library. This was fixed in
9205 # development snapshots of GCC prior to 3.0.
9206 case $host_os in
9207 aix4 | aix4.[01] | aix4.[01].*)
9208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9209 echo ' yes '
9210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9211 :
9212 else
9213 can_build_shared=no
9214 fi
9215 ;;
9216 esac
9217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9218 # soname into executable. Probably we can add versioning support to
9219 # collect2, so additional links can be useful in future.
9220 if test "$aix_use_runtimelinking" = yes; then
9221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9222 # instead of lib<name>.a to let people know that these are not
9223 # typical AIX shared libraries.
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 else
9226 # We preserve .a as extension for shared libraries through AIX4.2
9227 # and later when we are not doing run time linking.
9228 library_names_spec='${libname}${release}.a $libname.a'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 fi
9231 shlibpath_var=LIBPATH
9232 fi
9233 ;;
9234
9235amigaos*)
77a3eb61
PG
9236 case $host_cpu in
9237 powerpc)
9238 # Since July 2007 AmigaOS4 officially supports .so libraries.
9239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 ;;
9242 m68k)
1cf3d07d
SE
9243 library_names_spec='$libname.ixlibrary $libname.a'
9244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9245 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'
77a3eb61
PG
9246 ;;
9247 esac
1cf3d07d
SE
9248 ;;
9249
9250beos*)
9251 library_names_spec='${libname}${shared_ext}'
9252 dynamic_linker="$host_os ld.so"
9253 shlibpath_var=LIBRARY_PATH
9254 ;;
9255
9256bsdi[45]*)
9257 version_type=linux
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9265 # the default ld.so.conf also contains /usr/contrib/lib and
9266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9267 # libtool to hard-code these into programs
9268 ;;
9269
77a3eb61 9270cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9271 version_type=windows
9272 shrext_cmds=".dll"
9273 need_version=no
9274 need_lib_prefix=no
9275
77a3eb61
PG
9276 case $GCC,$host_os in
9277 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9278 library_names_spec='$libname.dll.a'
9279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9280 postinstall_cmds='base_file=`basename \${file}`~
9281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9282 dldir=$destdir/`dirname \$dlpath`~
9283 test -d \$dldir || mkdir -p \$dldir~
9284 $install_prog $dir/$dlname \$dldir/$dlname~
9285 chmod a+x \$dldir/$dlname~
9286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9288 fi'
9289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9290 dlpath=$dir/\$dldll~
9291 $RM \$dlpath'
9292 shlibpath_overrides_runpath=yes
9293
9294 case $host_os in
9295 cygwin*)
9296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9299 ;;
77a3eb61 9300 mingw* | cegcc*)
1cf3d07d
SE
9301 # MinGW DLLs use traditional 'lib' prefix
9302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9303 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9304 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9305 # It is most probably a Windows format PATH printed by
9306 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9307 # path with ; separators, and with drive letters. We can handle the
9308 # drive letters (cygwin fileutils understands them), so leave them,
9309 # especially as we might pass files found there to a mingw objdump,
9310 # which wouldn't understand a cygwinified path. Ahh.
9311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9312 else
9313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9314 fi
9315 ;;
9316 pw32*)
9317 # pw32 DLLs use 'pw' prefix rather than 'lib'
9318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9319 ;;
9320 esac
9321 ;;
9322
9323 *)
9324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9325 ;;
9326 esac
9327 dynamic_linker='Win32 ld.exe'
9328 # FIXME: first we should search . and the directory the executable is in
9329 shlibpath_var=PATH
9330 ;;
9331
9332darwin* | rhapsody*)
9333 dynamic_linker="$host_os dyld"
9334 version_type=darwin
9335 need_lib_prefix=no
9336 need_version=no
9337 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9338 soname_spec='${libname}${release}${major}$shared_ext'
9339 shlibpath_overrides_runpath=yes
9340 shlibpath_var=DYLD_LIBRARY_PATH
9341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9342
9343 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9345 ;;
9346
9347dgux*)
9348 version_type=linux
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 ;;
9355
9356freebsd1*)
9357 dynamic_linker=no
9358 ;;
9359
9360freebsd* | dragonfly*)
9361 # DragonFly does not have aout. When/if they implement a new
9362 # versioning mechanism, adjust this.
9363 if test -x /usr/bin/objformat; then
9364 objformat=`/usr/bin/objformat`
9365 else
9366 case $host_os in
9367 freebsd[123]*) objformat=aout ;;
9368 *) objformat=elf ;;
9369 esac
9370 fi
9371 version_type=freebsd-$objformat
9372 case $version_type in
9373 freebsd-elf*)
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9375 need_version=no
9376 need_lib_prefix=no
9377 ;;
9378 freebsd-*)
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9380 need_version=yes
9381 ;;
9382 esac
9383 shlibpath_var=LD_LIBRARY_PATH
9384 case $host_os in
9385 freebsd2*)
9386 shlibpath_overrides_runpath=yes
9387 ;;
9388 freebsd3.[01]* | freebsdelf3.[01]*)
9389 shlibpath_overrides_runpath=yes
9390 hardcode_into_libs=yes
9391 ;;
9392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9394 shlibpath_overrides_runpath=no
9395 hardcode_into_libs=yes
9396 ;;
9397 *) # from 4.6 on, and DragonFly
9398 shlibpath_overrides_runpath=yes
9399 hardcode_into_libs=yes
9400 ;;
9401 esac
9402 ;;
9403
9404gnu*)
9405 version_type=linux
9406 need_lib_prefix=no
9407 need_version=no
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 hardcode_into_libs=yes
9412 ;;
9413
9414hpux9* | hpux10* | hpux11*)
9415 # Give a soname corresponding to the major version so that dld.sl refuses to
9416 # link against other versions.
9417 version_type=sunos
9418 need_lib_prefix=no
9419 need_version=no
9420 case $host_cpu in
9421 ia64*)
9422 shrext_cmds='.so'
9423 hardcode_into_libs=yes
9424 dynamic_linker="$host_os dld.so"
9425 shlibpath_var=LD_LIBRARY_PATH
9426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 if test "X$HPUX_IA64_MODE" = X32; then
9430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9431 else
9432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9433 fi
9434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9435 ;;
9436 hppa*64*)
9437 shrext_cmds='.sl'
9438 hardcode_into_libs=yes
9439 dynamic_linker="$host_os dld.sl"
9440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9446 ;;
9447 *)
9448 shrext_cmds='.sl'
9449 dynamic_linker="$host_os dld.sl"
9450 shlibpath_var=SHLIB_PATH
9451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 ;;
9455 esac
9456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9457 postinstall_cmds='chmod 555 $lib'
9458 ;;
9459
9460interix[3-9]*)
9461 version_type=linux
9462 need_lib_prefix=no
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 shlibpath_overrides_runpath=no
9469 hardcode_into_libs=yes
9470 ;;
9471
9472irix5* | irix6* | nonstopux*)
9473 case $host_os in
9474 nonstopux*) version_type=nonstopux ;;
9475 *)
9476 if test "$lt_cv_prog_gnu_ld" = yes; then
9477 version_type=linux
9478 else
9479 version_type=irix
9480 fi ;;
9481 esac
9482 need_lib_prefix=no
9483 need_version=no
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9486 case $host_os in
9487 irix5* | nonstopux*)
9488 libsuff= shlibsuff=
9489 ;;
9490 *)
9491 case $LD in # libtool.m4 will add one of these switches to LD
9492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9493 libsuff= shlibsuff= libmagic=32-bit;;
9494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9495 libsuff=32 shlibsuff=N32 libmagic=N32;;
9496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9497 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9498 *) libsuff= shlibsuff= libmagic=never-match;;
9499 esac
9500 ;;
9501 esac
9502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9503 shlibpath_overrides_runpath=no
9504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9506 hardcode_into_libs=yes
9507 ;;
9508
9509# No shared lib support for Linux oldld, aout, or coff.
9510linux*oldld* | linux*aout* | linux*coff*)
9511 dynamic_linker=no
9512 ;;
9513
9514# This must be Linux ELF.
7a9d3fe8 9515linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9516 version_type=linux
9517 need_lib_prefix=no
9518 need_version=no
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 shlibpath_overrides_runpath=no
baafc534 9524
1cf3d07d 9525 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
9526 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528else
9529 lt_cv_shlibpath_overrides_runpath=no
9530 save_LDFLAGS=$LDFLAGS
9531 save_libdir=$libdir
9532 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9533 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9534 if test x$gcc_no_link = xyes; then
1cf3d07d
SE
9535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9536echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9537 { (exit 1); exit 1; }; }
9538fi
9539cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h. */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h. */
9545
9546int
9547main ()
9548{
9549
9550 ;
9551 return 0;
9552}
9553_ACEOF
9554rm -f conftest.$ac_objext conftest$ac_exeext
9555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
77a3eb61 9576 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 9577 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d
SE
9578fi
9579
9580else
9581 echo "$as_me: failed program was:" >&5
9582sed 's/^/| /' conftest.$ac_ext >&5
9583
9584fi
9585rm -f conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
9587 LDFLAGS=$save_LDFLAGS
9588 libdir=$save_libdir
9589
9590fi
9591
9592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
9593
9594 # This implies no fast_install, which is unacceptable.
9595 # Some rework will be needed to allow for fast_install
9596 # before this can be enabled.
9597 hardcode_into_libs=yes
9598
9599 # Append ld.so.conf contents to the search path
9600 if test -f /etc/ld.so.conf; then
77a3eb61 9601 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
9602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9603 fi
9604
9605 # We used to test for /lib/ld.so.1 and disable shared libraries on
9606 # powerpc, because MkLinux only supported shared libraries with the
9607 # GNU dynamic linker. Since this was broken with cross compilers,
9608 # most powerpc-linux boxes support dynamic linking these days and
9609 # people can always --disable-shared, the test was removed, and we
9610 # assume the GNU/Linux dynamic linker is in use.
9611 dynamic_linker='GNU/Linux ld.so'
9612 ;;
9613
9614netbsd*)
9615 version_type=sunos
9616 need_lib_prefix=no
9617 need_version=no
9618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621 dynamic_linker='NetBSD (a.out) ld.so'
9622 else
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 dynamic_linker='NetBSD ld.elf_so'
9626 fi
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=yes
9629 hardcode_into_libs=yes
9630 ;;
9631
9632newsos6)
9633 version_type=linux
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9637 ;;
9638
9639*nto* | *qnx*)
9640 version_type=qnx
9641 need_lib_prefix=no
9642 need_version=no
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=no
9647 hardcode_into_libs=yes
9648 dynamic_linker='ldqnx.so'
9649 ;;
9650
9651openbsd*)
9652 version_type=sunos
9653 sys_lib_dlsearch_path_spec="/usr/lib"
9654 need_lib_prefix=no
9655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9656 case $host_os in
9657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9658 *) need_version=no ;;
9659 esac
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9664 case $host_os in
9665 openbsd2.[89] | openbsd2.[89].*)
9666 shlibpath_overrides_runpath=no
9667 ;;
9668 *)
9669 shlibpath_overrides_runpath=yes
9670 ;;
9671 esac
9672 else
9673 shlibpath_overrides_runpath=yes
9674 fi
9675 ;;
9676
9677os2*)
9678 libname_spec='$name'
9679 shrext_cmds=".dll"
9680 need_lib_prefix=no
9681 library_names_spec='$libname${shared_ext} $libname.a'
9682 dynamic_linker='OS/2 ld.exe'
9683 shlibpath_var=LIBPATH
9684 ;;
9685
9686osf3* | osf4* | osf5*)
9687 version_type=osf
9688 need_lib_prefix=no
9689 need_version=no
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9695 ;;
9696
9697rdos*)
9698 dynamic_linker=no
9699 ;;
9700
9701solaris*)
9702 version_type=linux
9703 need_lib_prefix=no
9704 need_version=no
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=yes
9709 hardcode_into_libs=yes
9710 # ldd complains unless libraries are executable
9711 postinstall_cmds='chmod +x $lib'
9712 ;;
9713
9714sunos4*)
9715 version_type=sunos
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9718 shlibpath_var=LD_LIBRARY_PATH
9719 shlibpath_overrides_runpath=yes
9720 if test "$with_gnu_ld" = yes; then
9721 need_lib_prefix=no
9722 fi
9723 need_version=yes
9724 ;;
9725
9726sysv4 | sysv4.3*)
9727 version_type=linux
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 case $host_vendor in
9732 sni)
9733 shlibpath_overrides_runpath=no
9734 need_lib_prefix=no
9735 runpath_var=LD_RUN_PATH
9736 ;;
9737 siemens)
9738 need_lib_prefix=no
9739 ;;
9740 motorola)
9741 need_lib_prefix=no
9742 need_version=no
9743 shlibpath_overrides_runpath=no
9744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9745 ;;
9746 esac
9747 ;;
9748
9749sysv4*MP*)
9750 if test -d /usr/nec ;then
9751 version_type=linux
9752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9753 soname_spec='$libname${shared_ext}.$major'
9754 shlibpath_var=LD_LIBRARY_PATH
9755 fi
9756 ;;
9757
9758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9759 version_type=freebsd-elf
9760 need_lib_prefix=no
9761 need_version=no
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=yes
9766 hardcode_into_libs=yes
9767 if test "$with_gnu_ld" = yes; then
9768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9769 else
9770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9771 case $host_os in
9772 sco3.2v5*)
9773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9774 ;;
9775 esac
9776 fi
9777 sys_lib_dlsearch_path_spec='/usr/lib'
9778 ;;
9779
9780tpf*)
9781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9782 version_type=linux
9783 need_lib_prefix=no
9784 need_version=no
77a3eb61 9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
9786 shlibpath_var=LD_LIBRARY_PATH
9787 shlibpath_overrides_runpath=no
9788 hardcode_into_libs=yes
9789 ;;
9790
9791uts4*)
9792 version_type=linux
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 shlibpath_var=LD_LIBRARY_PATH
9796 ;;
9797
9798*)
9799 dynamic_linker=no
9800 ;;
9801esac
9802echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9803echo "${ECHO_T}$dynamic_linker" >&6
9804test "$dynamic_linker" = no && can_build_shared=no
9805
9806variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9807if test "$GCC" = yes; then
9808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9809fi
9810
77a3eb61
PG
9811if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9812 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9813fi
9814if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9815 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9816fi
9817
1cf3d07d
SE
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9905echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9906hardcode_action=
9907if test -n "$hardcode_libdir_flag_spec" ||
9908 test -n "$runpath_var" ||
9909 test "X$hardcode_automatic" = "Xyes" ; then
9910
9911 # We can hardcode non-existent directories.
9912 if test "$hardcode_direct" != no &&
9913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9914 # have to relink, otherwise we might link with an installed library
9915 # when we should be linking with a yet-to-be-installed one
9916 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9917 test "$hardcode_minus_L" != no; then
9918 # Linking always hardcodes the temporary library directory.
9919 hardcode_action=relink
9920 else
9921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9922 hardcode_action=immediate
9923 fi
9924else
9925 # We cannot hardcode anything, or else we can only hardcode existing
9926 # directories.
9927 hardcode_action=unsupported
9928fi
9929echo "$as_me:$LINENO: result: $hardcode_action" >&5
9930echo "${ECHO_T}$hardcode_action" >&6
9931
9932if test "$hardcode_action" = relink ||
9933 test "$inherit_rpath" = yes; then
9934 # Fast installation is not supported
9935 enable_fast_install=no
9936elif test "$shlibpath_overrides_runpath" = yes ||
9937 test "$enable_shared" = no; then
9938 # Fast installation is not necessary
9939 enable_fast_install=needless
9940fi
9941
9942
9943
9944
9945
9946
9947 if test "x$enable_dlopen" != xyes; then
9948 enable_dlopen=unknown
9949 enable_dlopen_self=unknown
9950 enable_dlopen_self_static=unknown
9951else
9952 lt_cv_dlopen=no
9953 lt_cv_dlopen_libs=
9954
9955 case $host_os in
9956 beos*)
9957 lt_cv_dlopen="load_add_on"
9958 lt_cv_dlopen_libs=
9959 lt_cv_dlopen_self=yes
9960 ;;
9961
77a3eb61 9962 mingw* | pw32* | cegcc*)
1cf3d07d
SE
9963 lt_cv_dlopen="LoadLibrary"
9964 lt_cv_dlopen_libs=
9965 ;;
9966
9967 cygwin*)
9968 lt_cv_dlopen="dlopen"
9969 lt_cv_dlopen_libs=
9970 ;;
9971
9972 darwin*)
9973 # if libdl is installed we need to link against it
9974 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9975echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9976if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 ac_check_lib_save_LIBS=$LIBS
9980LIBS="-ldl $LIBS"
9981if test x$gcc_no_link = xyes; then
9982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9983echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9984 { (exit 1); exit 1; }; }
9985fi
9986cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h. */
9992
9993/* Override any gcc2 internal prototype to avoid an error. */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997/* We use char because int might match the return type of a gcc2
9998 builtin and then its argument prototype would still apply. */
9999char dlopen ();
10000int
10001main ()
10002{
10003dlopen ();
10004 ;
10005 return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag"
10018 || test ! -s conftest.err'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10030 ac_cv_lib_dl_dlopen=yes
10031else
10032 echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
10035ac_cv_lib_dl_dlopen=no
10036fi
10037rm -f conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10039LIBS=$ac_check_lib_save_LIBS
10040fi
10041echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10042echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10043if test $ac_cv_lib_dl_dlopen = yes; then
10044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10045else
10046
10047 lt_cv_dlopen="dyld"
10048 lt_cv_dlopen_libs=
10049 lt_cv_dlopen_self=yes
10050
10051fi
10052
10053 ;;
10054
10055 *)
10056 echo "$as_me:$LINENO: checking for shl_load" >&5
10057echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10058if test "${ac_cv_func_shl_load+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 if test x$gcc_no_link = xyes; then
10062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10063echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10064 { (exit 1); exit 1; }; }
10065fi
10066cat >conftest.$ac_ext <<_ACEOF
10067/* confdefs.h. */
10068_ACEOF
10069cat confdefs.h >>conftest.$ac_ext
10070cat >>conftest.$ac_ext <<_ACEOF
10071/* end confdefs.h. */
10072/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10074#define shl_load innocuous_shl_load
10075
10076/* System header to define __stub macros and hopefully few prototypes,
10077 which can conflict with char shl_load (); below.
10078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10079 <limits.h> exists even on freestanding compilers. */
10080
10081#ifdef __STDC__
10082# include <limits.h>
10083#else
10084# include <assert.h>
10085#endif
10086
10087#undef shl_load
10088
10089/* Override any gcc2 internal prototype to avoid an error. */
10090#ifdef __cplusplus
10091extern "C"
10092{
10093#endif
10094/* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096char shl_load ();
10097/* The GNU C library defines this for functions which it implements
10098 to always fail with ENOSYS. Some functions are actually named
10099 something starting with __ and the normal name is an alias. */
10100#if defined (__stub_shl_load) || defined (__stub___shl_load)
10101choke me
10102#else
10103char (*f) () = shl_load;
10104#endif
10105#ifdef __cplusplus
10106}
10107#endif
10108
10109int
10110main ()
10111{
10112return f != shl_load;
10113 ;
10114 return 0;
10115}
10116_ACEOF
10117rm -f conftest.$ac_objext conftest$ac_exeext
10118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -z "$ac_c_werror_flag"
10127 || test ! -s conftest.err'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest$ac_exeext'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_func_shl_load=yes
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144ac_cv_func_shl_load=no
10145fi
10146rm -f conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148fi
10149echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10150echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10151if test $ac_cv_func_shl_load = yes; then
10152 lt_cv_dlopen="shl_load"
10153else
10154 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10155echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10156if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159 ac_check_lib_save_LIBS=$LIBS
10160LIBS="-ldld $LIBS"
10161if test x$gcc_no_link = xyes; then
10162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10163echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10164 { (exit 1); exit 1; }; }
10165fi
10166cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h. */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h. */
10172
10173/* Override any gcc2 internal prototype to avoid an error. */
10174#ifdef __cplusplus
10175extern "C"
10176#endif
10177/* We use char because int might match the return type of a gcc2
10178 builtin and then its argument prototype would still apply. */
10179char shl_load ();
10180int
10181main ()
10182{
10183shl_load ();
10184 ;
10185 return 0;
10186}
10187_ACEOF
10188rm -f conftest.$ac_objext conftest$ac_exeext
10189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_c_werror_flag"
10198 || test ! -s conftest.err'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_cv_lib_dld_shl_load=yes
10211else
10212 echo "$as_me: failed program was:" >&5
10213sed 's/^/| /' conftest.$ac_ext >&5
10214
10215ac_cv_lib_dld_shl_load=no
10216fi
10217rm -f conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219LIBS=$ac_check_lib_save_LIBS
10220fi
10221echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10222echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10223if test $ac_cv_lib_dld_shl_load = yes; then
77a3eb61 10224 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
10225else
10226 echo "$as_me:$LINENO: checking for dlopen" >&5
10227echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10228if test "${ac_cv_func_dlopen+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230else
10231 if test x$gcc_no_link = xyes; then
10232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10233echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10234 { (exit 1); exit 1; }; }
10235fi
10236cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10244#define dlopen innocuous_dlopen
10245
10246/* System header to define __stub macros and hopefully few prototypes,
10247 which can conflict with char dlopen (); below.
10248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10249 <limits.h> exists even on freestanding compilers. */
10250
10251#ifdef __STDC__
10252# include <limits.h>
10253#else
10254# include <assert.h>
10255#endif
10256
10257#undef dlopen
10258
10259/* Override any gcc2 internal prototype to avoid an error. */
10260#ifdef __cplusplus
10261extern "C"
10262{
10263#endif
10264/* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10266char dlopen ();
10267/* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270#if defined (__stub_dlopen) || defined (__stub___dlopen)
10271choke me
10272#else
10273char (*f) () = dlopen;
10274#endif
10275#ifdef __cplusplus
10276}
10277#endif
10278
10279int
10280main ()
10281{
10282return f != dlopen;
10283 ;
10284 return 0;
10285}
10286_ACEOF
10287rm -f conftest.$ac_objext conftest$ac_exeext
10288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_cv_func_dlopen=yes
10310else
10311 echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314ac_cv_func_dlopen=no
10315fi
10316rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318fi
10319echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10320echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10321if test $ac_cv_func_dlopen = yes; then
10322 lt_cv_dlopen="dlopen"
10323else
10324 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10325echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10326if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329 ac_check_lib_save_LIBS=$LIBS
10330LIBS="-ldl $LIBS"
10331if test x$gcc_no_link = xyes; then
10332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10333echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10334 { (exit 1); exit 1; }; }
10335fi
10336cat >conftest.$ac_ext <<_ACEOF
10337/* confdefs.h. */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h. */
10342
10343/* Override any gcc2 internal prototype to avoid an error. */
10344#ifdef __cplusplus
10345extern "C"
10346#endif
10347/* We use char because int might match the return type of a gcc2
10348 builtin and then its argument prototype would still apply. */
10349char dlopen ();
10350int
10351main ()
10352{
10353dlopen ();
10354 ;
10355 return 0;
10356}
10357_ACEOF
10358rm -f conftest.$ac_objext conftest$ac_exeext
10359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360 (eval $ac_link) 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_lib_dl_dlopen=yes
10381else
10382 echo "$as_me: failed program was:" >&5
10383sed 's/^/| /' conftest.$ac_ext >&5
10384
10385ac_cv_lib_dl_dlopen=no
10386fi
10387rm -f conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389LIBS=$ac_check_lib_save_LIBS
10390fi
10391echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10392echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10393if test $ac_cv_lib_dl_dlopen = yes; then
10394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10395else
10396 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10397echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10398if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400else
10401 ac_check_lib_save_LIBS=$LIBS
10402LIBS="-lsvld $LIBS"
10403if test x$gcc_no_link = xyes; then
10404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10405echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10406 { (exit 1); exit 1; }; }
10407fi
10408cat >conftest.$ac_ext <<_ACEOF
10409/* confdefs.h. */
10410_ACEOF
10411cat confdefs.h >>conftest.$ac_ext
10412cat >>conftest.$ac_ext <<_ACEOF
10413/* end confdefs.h. */
10414
10415/* Override any gcc2 internal prototype to avoid an error. */
10416#ifdef __cplusplus
10417extern "C"
10418#endif
10419/* We use char because int might match the return type of a gcc2
10420 builtin and then its argument prototype would still apply. */
10421char dlopen ();
10422int
10423main ()
10424{
10425dlopen ();
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430rm -f conftest.$ac_objext conftest$ac_exeext
10431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -z "$ac_c_werror_flag"
10440 || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
77008252
JJ
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_lib_svld_dlopen=yes
10453else
10454 echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
77008252 10456
1cf3d07d
SE
10457ac_cv_lib_svld_dlopen=no
10458fi
10459rm -f conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461LIBS=$ac_check_lib_save_LIBS
10462fi
10463echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10464echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10465if test $ac_cv_lib_svld_dlopen = yes; then
10466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10467else
10468 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10469echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10470if test "${ac_cv_lib_dld_dld_link+set}" = set; then
77008252
JJ
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
1cf3d07d
SE
10473 ac_check_lib_save_LIBS=$LIBS
10474LIBS="-ldld $LIBS"
10475if test x$gcc_no_link = xyes; then
be14fe72
JM
10476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10477echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10478 { (exit 1); exit 1; }; }
10479fi
10480cat >conftest.$ac_ext <<_ACEOF
77008252
JJ
10481/* confdefs.h. */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h. */
10486
1cf3d07d
SE
10487/* Override any gcc2 internal prototype to avoid an error. */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491/* We use char because int might match the return type of a gcc2
10492 builtin and then its argument prototype would still apply. */
10493char dld_link ();
77008252
JJ
10494int
10495main ()
10496{
1cf3d07d 10497dld_link ();
77008252
JJ
10498 ;
10499 return 0;
10500}
10501_ACEOF
10502rm -f conftest.$ac_objext conftest$ac_exeext
10503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag"
10512 || test ! -s conftest.err'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest$ac_exeext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
1cf3d07d 10524 ac_cv_lib_dld_dld_link=yes
77008252
JJ
10525else
10526 echo "$as_me: failed program was:" >&5
10527sed 's/^/| /' conftest.$ac_ext >&5
10528
1cf3d07d 10529ac_cv_lib_dld_dld_link=no
77008252
JJ
10530fi
10531rm -f conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10533LIBS=$ac_check_lib_save_LIBS
10534fi
10535echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10536echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10537if test $ac_cv_lib_dld_dld_link = yes; then
77a3eb61 10538 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
10539fi
10540
77008252
JJ
10541
10542fi
1cf3d07d
SE
10543
10544
10545fi
10546
10547
10548fi
10549
10550
10551fi
10552
10553
10554fi
10555
10556 ;;
10557 esac
10558
10559 if test "x$lt_cv_dlopen" != xno; then
10560 enable_dlopen=yes
10561 else
10562 enable_dlopen=no
77008252 10563 fi
77008252 10564
1cf3d07d
SE
10565 case $lt_cv_dlopen in
10566 dlopen)
10567 save_CPPFLAGS="$CPPFLAGS"
10568 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
77008252 10569
1cf3d07d
SE
10570 save_LDFLAGS="$LDFLAGS"
10571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
77008252 10572
1cf3d07d
SE
10573 save_LIBS="$LIBS"
10574 LIBS="$lt_cv_dlopen_libs $LIBS"
77008252 10575
1cf3d07d
SE
10576 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10577echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10578if test "${lt_cv_dlopen_self+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580else
10581 if test "$cross_compiling" = yes; then :
10582 lt_cv_dlopen_self=cross
10583else
10584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10585 lt_status=$lt_dlunknown
10586 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10587#line 10587 "configure"
1cf3d07d 10588#include "confdefs.h"
77008252 10589
1cf3d07d
SE
10590#if HAVE_DLFCN_H
10591#include <dlfcn.h>
10592#endif
77008252 10593
1cf3d07d
SE
10594#include <stdio.h>
10595
10596#ifdef RTLD_GLOBAL
10597# define LT_DLGLOBAL RTLD_GLOBAL
10598#else
10599# ifdef DL_GLOBAL
10600# define LT_DLGLOBAL DL_GLOBAL
10601# else
10602# define LT_DLGLOBAL 0
10603# endif
10604#endif
10605
10606/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10607 find out it does not work in some platform. */
10608#ifndef LT_DLLAZY_OR_NOW
10609# ifdef RTLD_LAZY
10610# define LT_DLLAZY_OR_NOW RTLD_LAZY
10611# else
10612# ifdef DL_LAZY
10613# define LT_DLLAZY_OR_NOW DL_LAZY
10614# else
10615# ifdef RTLD_NOW
10616# define LT_DLLAZY_OR_NOW RTLD_NOW
10617# else
10618# ifdef DL_NOW
10619# define LT_DLLAZY_OR_NOW DL_NOW
10620# else
10621# define LT_DLLAZY_OR_NOW 0
10622# endif
10623# endif
10624# endif
10625# endif
10626#endif
10627
1cf3d07d
SE
10628void fnord() { int i=42;}
10629int main ()
77008252 10630{
1cf3d07d
SE
10631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10632 int status = $lt_dlunknown;
10633
10634 if (self)
10635 {
10636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10637 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10638 /* dlclose (self); */
10639 }
77008252 10640 else
1cf3d07d
SE
10641 puts (dlerror ());
10642
77a3eb61 10643 return status;
1cf3d07d
SE
10644}
10645_LT_EOF
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10651 (./conftest; exit; ) >&5 2>/dev/null
10652 lt_status=$?
10653 case x$lt_status in
10654 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10655 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10656 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10657 esac
10658 else :
10659 # compilation failed
10660 lt_cv_dlopen_self=no
77008252
JJ
10661 fi
10662fi
1cf3d07d
SE
10663rm -fr conftest*
10664
10665
10666fi
10667echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10668echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10669
10670 if test "x$lt_cv_dlopen_self" = xyes; then
10671 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10672 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10673echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10674if test "${lt_cv_dlopen_self_static+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676else
10677 if test "$cross_compiling" = yes; then :
10678 lt_cv_dlopen_self_static=cross
10679else
10680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10681 lt_status=$lt_dlunknown
10682 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10683#line 10683 "configure"
1cf3d07d
SE
10684#include "confdefs.h"
10685
10686#if HAVE_DLFCN_H
10687#include <dlfcn.h>
10688#endif
10689
10690#include <stdio.h>
10691
10692#ifdef RTLD_GLOBAL
10693# define LT_DLGLOBAL RTLD_GLOBAL
10694#else
10695# ifdef DL_GLOBAL
10696# define LT_DLGLOBAL DL_GLOBAL
10697# else
10698# define LT_DLGLOBAL 0
10699# endif
10700#endif
10701
10702/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10703 find out it does not work in some platform. */
10704#ifndef LT_DLLAZY_OR_NOW
10705# ifdef RTLD_LAZY
10706# define LT_DLLAZY_OR_NOW RTLD_LAZY
10707# else
10708# ifdef DL_LAZY
10709# define LT_DLLAZY_OR_NOW DL_LAZY
10710# else
10711# ifdef RTLD_NOW
10712# define LT_DLLAZY_OR_NOW RTLD_NOW
10713# else
10714# ifdef DL_NOW
10715# define LT_DLLAZY_OR_NOW DL_NOW
10716# else
10717# define LT_DLLAZY_OR_NOW 0
10718# endif
10719# endif
10720# endif
10721# endif
10722#endif
10723
1cf3d07d
SE
10724void fnord() { int i=42;}
10725int main ()
10726{
10727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10728 int status = $lt_dlunknown;
10729
10730 if (self)
10731 {
10732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10733 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10734 /* dlclose (self); */
10735 }
10736 else
10737 puts (dlerror ());
10738
77a3eb61 10739 return status;
1cf3d07d
SE
10740}
10741_LT_EOF
10742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10743 (eval $ac_link) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10747 (./conftest; exit; ) >&5 2>/dev/null
10748 lt_status=$?
10749 case x$lt_status in
10750 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10751 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10752 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10753 esac
10754 else :
10755 # compilation failed
10756 lt_cv_dlopen_self_static=no
10757 fi
10758fi
10759rm -fr conftest*
10760
10761
10762fi
10763echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10764echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10765 fi
10766
10767 CPPFLAGS="$save_CPPFLAGS"
10768 LDFLAGS="$save_LDFLAGS"
10769 LIBS="$save_LIBS"
10770 ;;
10771 esac
10772
10773 case $lt_cv_dlopen_self in
10774 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10775 *) enable_dlopen_self=unknown ;;
10776 esac
10777
10778 case $lt_cv_dlopen_self_static in
10779 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10780 *) enable_dlopen_self_static=unknown ;;
10781 esac
10782fi
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800striplib=
10801old_striplib=
10802echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10803echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10804if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10805 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10806 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10807 echo "$as_me:$LINENO: result: yes" >&5
10808echo "${ECHO_T}yes" >&6
10809else
10810# FIXME - insert some real tests, host_os isn't really good enough
10811 case $host_os in
10812 darwin*)
10813 if test -n "$STRIP" ; then
10814 striplib="$STRIP -x"
10815 old_striplib="$STRIP -S"
10816 echo "$as_me:$LINENO: result: yes" >&5
10817echo "${ECHO_T}yes" >&6
10818 else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821 fi
10822 ;;
10823 *)
10824 echo "$as_me:$LINENO: result: no" >&5
10825echo "${ECHO_T}no" >&6
10826 ;;
10827 esac
10828fi
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841 # Report which library types will actually be built
10842 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10843echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10844 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10845echo "${ECHO_T}$can_build_shared" >&6
10846
10847 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10848echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10849 test "$can_build_shared" = "no" && enable_shared=no
10850
10851 # On AIX, shared libraries and static libraries use the same namespace, and
10852 # are all built from PIC.
10853 case $host_os in
10854 aix3*)
10855 test "$enable_shared" = yes && enable_static=no
10856 if test -n "$RANLIB"; then
10857 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10858 postinstall_cmds='$RANLIB $lib'
10859 fi
10860 ;;
10861
445bad9b 10862 aix[4-9]*)
1cf3d07d
SE
10863 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10864 test "$enable_shared" = yes && enable_static=no
10865 fi
10866 ;;
10867 esac
10868 echo "$as_me:$LINENO: result: $enable_shared" >&5
10869echo "${ECHO_T}$enable_shared" >&6
10870
10871 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10872echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10873 # Make sure either enable_shared or enable_static is yes.
10874 test "$enable_shared" = yes || enable_static=yes
10875 echo "$as_me:$LINENO: result: $enable_static" >&5
10876echo "${ECHO_T}$enable_static" >&6
10877
10878
77008252 10879
77008252 10880
77008252 10881fi
1cf3d07d
SE
10882ac_ext=c
10883ac_cpp='$CPP $CPPFLAGS'
10884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10886ac_compiler_gnu=$ac_cv_c_compiler_gnu
10887
10888CC="$lt_save_CC"
10889
10890
10891
10892
10893
10894
10895
77008252
JJ
10896
10897
77008252 10898
77008252 10899
77008252
JJ
10900
10901
1cf3d07d 10902 ac_config_commands="$ac_config_commands libtool"
77008252
JJ
10903
10904
10905
10906
1cf3d07d
SE
10907# Only expand once:
10908
10909
77008252
JJ
10910
10911
10912
10913# Calculate toolexeclibdir
10914# Also toolexecdir, though it's only used in toolexeclibdir
10915case ${version_specific_libs} in
10916 yes)
10917 # Need the gcc compiler version to know where to install libraries
10918 # and header files if --enable-version-specific-runtime-libs option
10919 # is selected.
10920 toolexecdir='$(libdir)/gcc/$(target_alias)'
10921 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10922 ;;
10923 no)
10924 if test -n "$with_cross_host" &&
10925 test x"$with_cross_host" != x"no"; then
10926 # Install a library built with a cross compiler in tooldir, not libdir.
10927 toolexecdir='$(exec_prefix)/$(target_alias)'
10928 toolexeclibdir='$(toolexecdir)/lib'
10929 else
10930 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10931 toolexeclibdir='$(libdir)'
10932 fi
10933 multi_os_directory=`$CC -print-multi-os-directory`
10934 case $multi_os_directory in
10935 .) ;; # Avoid trailing /.
10936 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10937 esac
10938 ;;
10939esac
10940
10941
10942
10943if test ${multilib} = yes; then
10944 multilib_arg="--enable-multilib"
10945else
10946 multilib_arg=
10947fi
10948
10949 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10950
10951cat >confcache <<\_ACEOF
10952# This file is a shell script that caches the results of configure
10953# tests run on this system so they can be shared between configure
10954# scripts and configure runs, see configure's option --config-cache.
10955# It is not useful on other systems. If it contains results you don't
10956# want to keep, you may remove or edit it.
10957#
10958# config.status only pays attention to the cache file if you give it
10959# the --recheck option to rerun configure.
10960#
10961# `ac_cv_env_foo' variables (set or unset) will be overridden when
10962# loading this file, other *unset* `ac_cv_foo' will be assigned the
10963# following values.
10964
10965_ACEOF
10966
10967# The following way of writing the cache mishandles newlines in values,
10968# but we know of no workaround that is simple, portable, and efficient.
10969# So, don't put newlines in cache variables' values.
10970# Ultrix sh set writes to stderr and can't be redirected directly,
10971# and sets the high bit in the cache file unless we assign to the vars.
10972{
10973 (set) 2>&1 |
10974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10975 *ac_space=\ *)
10976 # `set' does not quote correctly, so add quotes (double-quote
10977 # substitution turns \\\\ into \\, and sed turns \\ into \).
10978 sed -n \
10979 "s/'/'\\\\''/g;
10980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10981 ;;
10982 *)
10983 # `set' quotes correctly as required by POSIX, so do not add quotes.
10984 sed -n \
10985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10986 ;;
10987 esac;
10988} |
10989 sed '
10990 t clear
10991 : clear
10992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10993 t end
10994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10995 : end' >>confcache
10996if diff $cache_file confcache >/dev/null 2>&1; then :; else
10997 if test -w $cache_file; then
10998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10999 cat confcache >$cache_file
11000 else
11001 echo "not updating unwritable cache $cache_file"
11002 fi
11003fi
11004rm -f confcache
11005
11006test "x$prefix" = xNONE && prefix=$ac_default_prefix
11007# Let make expand exec_prefix.
11008test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11009
11010# VPATH may cause trouble with some makes, so we remove $(srcdir),
11011# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11012# trailing colons and then remove the whole line if VPATH becomes empty
11013# (actually we leave an empty line to preserve line numbers).
11014if test "x$srcdir" = x.; then
11015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11016s/:*\$(srcdir):*/:/;
11017s/:*\${srcdir}:*/:/;
11018s/:*@srcdir@:*/:/;
11019s/^\([^=]*=[ ]*\):*/\1/;
11020s/:*$//;
11021s/^[^=]*=[ ]*$//;
11022}'
11023fi
11024
11025DEFS=-DHAVE_CONFIG_H
11026
11027ac_libobjs=
11028ac_ltlibobjs=
11029for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11030 # 1. Remove the extension, and $U if already installed.
11031 ac_i=`echo "$ac_i" |
11032 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11033 # 2. Add them.
11034 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11035 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11036done
11037LIBOBJS=$ac_libobjs
11038
11039LTLIBOBJS=$ac_ltlibobjs
11040
11041
11042if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11043 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11044Usually this means the macro was only invoked conditionally." >&5
11045echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11046Usually this means the macro was only invoked conditionally." >&2;}
11047 { (exit 1); exit 1; }; }
11048fi
11049if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11050 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11051Usually this means the macro was only invoked conditionally." >&5
11052echo "$as_me: error: conditional \"AMDEP\" was never defined.
11053Usually this means the macro was only invoked conditionally." >&2;}
11054 { (exit 1); exit 1; }; }
11055fi
11056if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11057 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11058Usually this means the macro was only invoked conditionally." >&5
11059echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11060Usually this means the macro was only invoked conditionally." >&2;}
11061 { (exit 1); exit 1; }; }
11062fi
11063if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
11064 { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
11065Usually this means the macro was only invoked conditionally." >&5
11066echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
11067Usually this means the macro was only invoked conditionally." >&2;}
11068 { (exit 1); exit 1; }; }
11069fi
11070
11071: ${CONFIG_STATUS=./config.status}
11072ac_clean_files_save=$ac_clean_files
11073ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11074{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11075echo "$as_me: creating $CONFIG_STATUS" >&6;}
11076cat >$CONFIG_STATUS <<_ACEOF
11077#! $SHELL
11078# Generated by $as_me.
11079# Run this file to recreate the current configuration.
11080# Compiler output produced by configure, useful for debugging
11081# configure, is in config.log if it exists.
11082
11083debug=false
11084ac_cs_recheck=false
11085ac_cs_silent=false
11086SHELL=\${CONFIG_SHELL-$SHELL}
11087_ACEOF
11088
11089cat >>$CONFIG_STATUS <<\_ACEOF
11090## --------------------- ##
11091## M4sh Initialization. ##
11092## --------------------- ##
11093
11094# Be Bourne compatible
11095if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11096 emulate sh
11097 NULLCMD=:
11098 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11099 # is contrary to our usage. Disable this feature.
11100 alias -g '${1+"$@"}'='"$@"'
11101elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11102 set -o posix
11103fi
11104DUALCASE=1; export DUALCASE # for MKS sh
11105
11106# Support unset when possible.
11107if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11108 as_unset=unset
11109else
11110 as_unset=false
11111fi
11112
11113
11114# Work around bugs in pre-3.0 UWIN ksh.
11115$as_unset ENV MAIL MAILPATH
11116PS1='$ '
11117PS2='> '
11118PS4='+ '
11119
11120# NLS nuisances.
11121for as_var in \
11122 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11123 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11124 LC_TELEPHONE LC_TIME
11125do
11126 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11127 eval $as_var=C; export $as_var
11128 else
11129 $as_unset $as_var
11130 fi
11131done
11132
11133# Required to use basename.
11134if expr a : '\(a\)' >/dev/null 2>&1; then
11135 as_expr=expr
11136else
11137 as_expr=false
11138fi
11139
11140if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11141 as_basename=basename
11142else
11143 as_basename=false
11144fi
11145
11146
11147# Name of the executable.
11148as_me=`$as_basename "$0" ||
11149$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11150 X"$0" : 'X\(//\)$' \| \
11151 X"$0" : 'X\(/\)$' \| \
11152 . : '\(.\)' 2>/dev/null ||
11153echo X/"$0" |
11154 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11155 /^X\/\(\/\/\)$/{ s//\1/; q; }
11156 /^X\/\(\/\).*/{ s//\1/; q; }
11157 s/.*/./; q'`
11158
11159
11160# PATH needs CR, and LINENO needs CR and PATH.
11161# Avoid depending upon Character Ranges.
11162as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11163as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11164as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11165as_cr_digits='0123456789'
11166as_cr_alnum=$as_cr_Letters$as_cr_digits
11167
11168# The user is always right.
11169if test "${PATH_SEPARATOR+set}" != set; then
11170 echo "#! /bin/sh" >conf$$.sh
11171 echo "exit 0" >>conf$$.sh
11172 chmod +x conf$$.sh
11173 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11174 PATH_SEPARATOR=';'
11175 else
11176 PATH_SEPARATOR=:
11177 fi
11178 rm -f conf$$.sh
11179fi
11180
11181
11182 as_lineno_1=$LINENO
11183 as_lineno_2=$LINENO
11184 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11185 test "x$as_lineno_1" != "x$as_lineno_2" &&
11186 test "x$as_lineno_3" = "x$as_lineno_2" || {
11187 # Find who we are. Look in the path if we contain no path at all
11188 # relative or not.
11189 case $0 in
11190 *[\\/]* ) as_myself=$0 ;;
11191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192for as_dir in $PATH
11193do
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11197done
11198
11199 ;;
11200 esac
11201 # We did not find ourselves, most probably we were run as `sh COMMAND'
11202 # in which case we are not to be found in the path.
11203 if test "x$as_myself" = x; then
11204 as_myself=$0
11205 fi
11206 if test ! -f "$as_myself"; then
11207 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11208echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11209 { (exit 1); exit 1; }; }
11210 fi
11211 case $CONFIG_SHELL in
11212 '')
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for as_base in sh bash ksh sh5; do
11219 case $as_dir in
11220 /*)
11221 if ("$as_dir/$as_base" -c '
11222 as_lineno_1=$LINENO
11223 as_lineno_2=$LINENO
11224 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11225 test "x$as_lineno_1" != "x$as_lineno_2" &&
11226 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11227 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11228 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11229 CONFIG_SHELL=$as_dir/$as_base
11230 export CONFIG_SHELL
11231 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11232 fi;;
11233 esac
11234 done
11235done
11236;;
11237 esac
11238
11239 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11240 # uniformly replaced by the line number. The first 'sed' inserts a
11241 # line-number line before each line; the second 'sed' does the real
11242 # work. The second script uses 'N' to pair each line-number line
11243 # with the numbered line, and appends trailing '-' during
11244 # substitution so that $LINENO is not a special case at line end.
11245 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11246 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11247 sed '=' <$as_myself |
11248 sed '
11249 N
11250 s,$,-,
11251 : loop
11252 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11253 t loop
11254 s,-$,,
11255 s,^['$as_cr_digits']*\n,,
11256 ' >$as_me.lineno &&
11257 chmod +x $as_me.lineno ||
11258 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11259echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11260 { (exit 1); exit 1; }; }
11261
11262 # Don't try to exec as it changes $[0], causing all sort of problems
11263 # (the dirname of $[0] is not the place where we might find the
11264 # original and so on. Autoconf is especially sensible to this).
11265 . ./$as_me.lineno
11266 # Exit status is that of the last command.
11267 exit
11268}
11269
11270
11271case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11272 *c*,-n*) ECHO_N= ECHO_C='
11273' ECHO_T=' ' ;;
11274 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11275 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11276esac
11277
11278if expr a : '\(a\)' >/dev/null 2>&1; then
11279 as_expr=expr
11280else
11281 as_expr=false
11282fi
11283
11284rm -f conf$$ conf$$.exe conf$$.file
11285echo >conf$$.file
11286if ln -s conf$$.file conf$$ 2>/dev/null; then
11287 # We could just check for DJGPP; but this test a) works b) is more generic
11288 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11289 if test -f conf$$.exe; then
11290 # Don't use ln at all; we don't have any links
11291 as_ln_s='cp -p'
11292 else
11293 as_ln_s='ln -s'
11294 fi
11295elif ln conf$$.file conf$$ 2>/dev/null; then
11296 as_ln_s=ln
11297else
11298 as_ln_s='cp -p'
11299fi
11300rm -f conf$$ conf$$.exe conf$$.file
11301
11302if mkdir -p . 2>/dev/null; then
11303 as_mkdir_p=:
11304else
11305 test -d ./-p && rmdir ./-p
11306 as_mkdir_p=false
11307fi
11308
11309as_executable_p="test -f"
11310
11311# Sed expression to map a string onto a valid CPP name.
11312as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11313
11314# Sed expression to map a string onto a valid variable name.
11315as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11316
11317
11318# IFS
11319# We need space, tab and new line, in precisely that order.
11320as_nl='
11321'
11322IFS=" $as_nl"
11323
11324# CDPATH.
11325$as_unset CDPATH
11326
11327exec 6>&1
11328
11329# Open the log real soon, to keep \$[0] and so on meaningful, and to
11330# report actual input values of CONFIG_FILES etc. instead of their
11331# values after options handling. Logging --version etc. is OK.
11332exec 5>>config.log
11333{
11334 echo
11335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11336## Running $as_me. ##
11337_ASBOX
11338} >&5
11339cat >&5 <<_CSEOF
11340
11341This file was extended by libssp $as_me 1.0, which was
11342generated by GNU Autoconf 2.59. Invocation command line was
11343
11344 CONFIG_FILES = $CONFIG_FILES
11345 CONFIG_HEADERS = $CONFIG_HEADERS
11346 CONFIG_LINKS = $CONFIG_LINKS
11347 CONFIG_COMMANDS = $CONFIG_COMMANDS
11348 $ $0 $@
11349
11350_CSEOF
11351echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11352echo >&5
11353_ACEOF
11354
11355# Files that config.status was made for.
11356if test -n "$ac_config_files"; then
11357 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11358fi
11359
11360if test -n "$ac_config_headers"; then
11361 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11362fi
11363
11364if test -n "$ac_config_links"; then
11365 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11366fi
11367
11368if test -n "$ac_config_commands"; then
11369 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11370fi
11371
11372cat >>$CONFIG_STATUS <<\_ACEOF
11373
11374ac_cs_usage="\
11375\`$as_me' instantiates files from templates according to the
11376current configuration.
11377
11378Usage: $0 [OPTIONS] [FILE]...
11379
11380 -h, --help print this help, then exit
11381 -V, --version print version number, then exit
11382 -q, --quiet do not print progress messages
11383 -d, --debug don't remove temporary files
11384 --recheck update $as_me by reconfiguring in the same conditions
11385 --file=FILE[:TEMPLATE]
11386 instantiate the configuration file FILE
11387 --header=FILE[:TEMPLATE]
11388 instantiate the configuration header FILE
11389
11390Configuration files:
11391$config_files
11392
11393Configuration headers:
11394$config_headers
11395
11396Configuration commands:
11397$config_commands
11398
11399Report bugs to <bug-autoconf@gnu.org>."
11400_ACEOF
11401
11402cat >>$CONFIG_STATUS <<_ACEOF
11403ac_cs_version="\\
11404libssp config.status 1.0
11405configured by $0, generated by GNU Autoconf 2.59,
11406 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11407
11408Copyright (C) 2003 Free Software Foundation, Inc.
11409This config.status script is free software; the Free Software Foundation
11410gives unlimited permission to copy, distribute and modify it."
11411srcdir=$srcdir
11412INSTALL="$INSTALL"
11413_ACEOF
11414
11415cat >>$CONFIG_STATUS <<\_ACEOF
11416# If no file are specified by the user, then we need to provide default
11417# value. By we need to know if files were specified by the user.
11418ac_need_defaults=:
11419while test $# != 0
11420do
11421 case $1 in
11422 --*=*)
11423 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11424 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11425 ac_shift=:
11426 ;;
11427 -*)
11428 ac_option=$1
11429 ac_optarg=$2
11430 ac_shift=shift
11431 ;;
11432 *) # This is not an option, so the user has probably given explicit
11433 # arguments.
11434 ac_option=$1
11435 ac_need_defaults=false;;
11436 esac
11437
11438 case $ac_option in
11439 # Handling of the options.
11440_ACEOF
11441cat >>$CONFIG_STATUS <<\_ACEOF
11442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11443 ac_cs_recheck=: ;;
11444 --version | --vers* | -V )
11445 echo "$ac_cs_version"; exit 0 ;;
11446 --he | --h)
11447 # Conflict between --help and --header
11448 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11449Try \`$0 --help' for more information." >&5
11450echo "$as_me: error: ambiguous option: $1
11451Try \`$0 --help' for more information." >&2;}
11452 { (exit 1); exit 1; }; };;
11453 --help | --hel | -h )
11454 echo "$ac_cs_usage"; exit 0 ;;
11455 --debug | --d* | -d )
11456 debug=: ;;
11457 --file | --fil | --fi | --f )
11458 $ac_shift
11459 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11460 ac_need_defaults=false;;
11461 --header | --heade | --head | --hea )
11462 $ac_shift
11463 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11464 ac_need_defaults=false;;
11465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11466 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11467 ac_cs_silent=: ;;
11468
11469 # This is an error.
11470 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11471Try \`$0 --help' for more information." >&5
11472echo "$as_me: error: unrecognized option: $1
11473Try \`$0 --help' for more information." >&2;}
11474 { (exit 1); exit 1; }; } ;;
11475
11476 *) ac_config_targets="$ac_config_targets $1" ;;
11477
11478 esac
11479 shift
11480done
11481
11482ac_configure_extra_args=
11483
11484if $ac_cs_silent; then
11485 exec 6>/dev/null
11486 ac_configure_extra_args="$ac_configure_extra_args --silent"
11487fi
11488
11489_ACEOF
11490cat >>$CONFIG_STATUS <<_ACEOF
11491if \$ac_cs_recheck; then
11492 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11493 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11494fi
11495
11496_ACEOF
11497
11498cat >>$CONFIG_STATUS <<_ACEOF
11499#
11500# INIT-COMMANDS section.
11501#
11502
11503
11504srcdir="$srcdir"
11505host="$host"
11506target="$target"
11507with_multisubdir="$with_multisubdir"
11508with_multisrctop="$with_multisrctop"
11509with_target_subdir="$with_target_subdir"
11510ac_configure_args="${multilib_arg} ${ac_configure_args}"
11511multi_basedir="$multi_basedir"
11512CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11513CC="$CC"
11514AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11515
1cf3d07d
SE
11516
11517# The HP-UX ksh and POSIX shell print the target directory to stdout
11518# if CDPATH is set.
11519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11520
11521sed_quote_subst='$sed_quote_subst'
11522double_quote_subst='$double_quote_subst'
11523delay_variable_subst='$delay_variable_subst'
11524macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11525macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11526enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11527enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11528pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11529enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11530host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11531host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11532host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11533build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11534build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11535build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11536SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11537Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11538GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11539EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11540FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11541LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11542NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11543LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11544max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11545ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11546exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11547lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11548lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11549lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11550reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11551reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
77a3eb61 11552OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
11553deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11554file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11555AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11556AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11557STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11558RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11559old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11560old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11561old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11562CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11563CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11564compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11565GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11566lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11567lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11568lt_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"`'
77a3eb61 11569lt_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
11570objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11571SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11572ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11573MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11574lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11575lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11576lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11577lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11578lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11579need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
77a3eb61
PG
11580DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11581NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11582LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11583OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11584OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
11585libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11586shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11587extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11588archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11589enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11590export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11591whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11592compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11593old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11594old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11595archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11596archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11597module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11598module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11599with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11600allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11601no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11602hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11603hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11604hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11605hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11606hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11607hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11608hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11609hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11610inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11611link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11612fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11613always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11614export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11615exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11616include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11617prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11618file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11619variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11620need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11621need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11622version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11623runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11624shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11625shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11626libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11627library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11628soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11629postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11630postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11631finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11632finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11633hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11634sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11635sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11636hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11637enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11638enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11639enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11640old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11641striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11642
11643LTCC='$LTCC'
11644LTCFLAGS='$LTCFLAGS'
11645compiler='$compiler_DEFAULT'
11646
11647# Quote evaled strings.
11648for var in SED \
11649GREP \
11650EGREP \
11651FGREP \
11652LD \
11653NM \
11654LN_S \
11655lt_SP2NL \
11656lt_NL2SP \
11657reload_flag \
77a3eb61 11658OBJDUMP \
1cf3d07d
SE
11659deplibs_check_method \
11660file_magic_cmd \
11661AR \
11662AR_FLAGS \
11663STRIP \
11664RANLIB \
11665CC \
11666CFLAGS \
11667compiler \
11668lt_cv_sys_global_symbol_pipe \
11669lt_cv_sys_global_symbol_to_cdecl \
11670lt_cv_sys_global_symbol_to_c_name_address \
77a3eb61 11671lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
11672SHELL \
11673ECHO \
11674lt_prog_compiler_no_builtin_flag \
11675lt_prog_compiler_wl \
11676lt_prog_compiler_pic \
11677lt_prog_compiler_static \
11678lt_cv_prog_compiler_c_o \
11679need_locks \
77a3eb61
PG
11680DSYMUTIL \
11681NMEDIT \
11682LIPO \
11683OTOOL \
11684OTOOL64 \
1cf3d07d
SE
11685shrext_cmds \
11686export_dynamic_flag_spec \
11687whole_archive_flag_spec \
11688compiler_needs_object \
11689with_gnu_ld \
11690allow_undefined_flag \
11691no_undefined_flag \
11692hardcode_libdir_flag_spec \
11693hardcode_libdir_flag_spec_ld \
11694hardcode_libdir_separator \
11695fix_srcfile_path \
11696exclude_expsyms \
11697include_expsyms \
11698file_list_spec \
11699variables_saved_for_relink \
11700libname_spec \
11701library_names_spec \
11702soname_spec \
11703finish_eval \
11704old_striplib \
11705striplib; do
11706 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11707 *[\\\\\\\`\\"\\\$]*)
11708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11709 ;;
11710 *)
11711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11712 ;;
11713 esac
11714done
11715
11716# Double-quote double-evaled strings.
11717for var in reload_cmds \
11718old_postinstall_cmds \
11719old_postuninstall_cmds \
11720old_archive_cmds \
11721extract_expsyms_cmds \
11722old_archive_from_new_cmds \
11723old_archive_from_expsyms_cmds \
11724archive_cmds \
11725archive_expsym_cmds \
11726module_cmds \
11727module_expsym_cmds \
11728export_symbols_cmds \
11729prelink_cmds \
11730postinstall_cmds \
11731postuninstall_cmds \
11732finish_cmds \
11733sys_lib_search_path_spec \
11734sys_lib_dlsearch_path_spec; do
11735 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11736 *[\\\\\\\`\\"\\\$]*)
11737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11738 ;;
11739 *)
11740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11741 ;;
11742 esac
11743done
11744
11745# Fix-up fallback echo if it was mangled by the above quoting rules.
11746case \$lt_ECHO in
11747*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11748 ;;
11749esac
11750
11751ac_aux_dir='$ac_aux_dir'
11752xsi_shell='$xsi_shell'
11753lt_shell_append='$lt_shell_append'
11754
11755# See if we are running on zsh, and set the options which allow our
11756# commands through without removal of \ escapes INIT.
11757if test -n "\${ZSH_VERSION+set}" ; then
11758 setopt NO_GLOB_SUBST
11759fi
11760
11761
11762 PACKAGE='$PACKAGE'
11763 VERSION='$VERSION'
11764 TIMESTAMP='$TIMESTAMP'
11765 RM='$RM'
11766 ofile='$ofile'
11767
11768
11769
11770
77008252
JJ
11771_ACEOF
11772
11773
11774
11775cat >>$CONFIG_STATUS <<\_ACEOF
11776for ac_config_target in $ac_config_targets
11777do
11778 case "$ac_config_target" in
11779 # Handling of arguments.
11780 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11781 "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11782 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11783 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 11784 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
77008252
JJ
11785 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11786 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11787echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11788 { (exit 1); exit 1; }; };;
11789 esac
11790done
11791
11792# If the user did not use the arguments to specify the items to instantiate,
11793# then the envvar interface is used. Set only those that are not.
11794# We use the long form for the default assignment because of an extremely
11795# bizarre bug on SunOS 4.1.3.
11796if $ac_need_defaults; then
11797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11800fi
11801
11802# Have a temporary directory for convenience. Make it in the build tree
11803# simply because there is no reason to put it here, and in addition,
11804# creating and moving files from /tmp can sometimes cause problems.
11805# Create a temporary directory, and hook for its removal unless debugging.
11806$debug ||
11807{
11808 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11809 trap '{ (exit 1); exit 1; }' 1 2 13 15
11810}
11811
11812# Create a (secure) tmp directory for tmp files.
11813
11814{
11815 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11816 test -n "$tmp" && test -d "$tmp"
11817} ||
11818{
11819 tmp=./confstat$$-$RANDOM
11820 (umask 077 && mkdir $tmp)
11821} ||
11822{
11823 echo "$me: cannot create a temporary directory in ." >&2
11824 { (exit 1); exit 1; }
11825}
11826
11827_ACEOF
11828
11829cat >>$CONFIG_STATUS <<_ACEOF
11830
11831#
11832# CONFIG_FILES section.
11833#
11834
11835# No need to generate the scripts if there are no CONFIG_FILES.
11836# This happens for instance when ./config.status config.h
11837if test -n "\$CONFIG_FILES"; then
11838 # Protect against being on the right side of a sed subst in config.status.
11839 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11840 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11841s,@SHELL@,$SHELL,;t t
11842s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11843s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11844s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11845s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11846s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11847s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11848s,@exec_prefix@,$exec_prefix,;t t
11849s,@prefix@,$prefix,;t t
11850s,@program_transform_name@,$program_transform_name,;t t
11851s,@bindir@,$bindir,;t t
11852s,@sbindir@,$sbindir,;t t
11853s,@libexecdir@,$libexecdir,;t t
11854s,@datadir@,$datadir,;t t
11855s,@sysconfdir@,$sysconfdir,;t t
11856s,@sharedstatedir@,$sharedstatedir,;t t
11857s,@localstatedir@,$localstatedir,;t t
11858s,@libdir@,$libdir,;t t
11859s,@includedir@,$includedir,;t t
11860s,@oldincludedir@,$oldincludedir,;t t
11861s,@infodir@,$infodir,;t t
11862s,@mandir@,$mandir,;t t
11863s,@build_alias@,$build_alias,;t t
11864s,@host_alias@,$host_alias,;t t
11865s,@target_alias@,$target_alias,;t t
11866s,@DEFS@,$DEFS,;t t
11867s,@ECHO_C@,$ECHO_C,;t t
11868s,@ECHO_N@,$ECHO_N,;t t
11869s,@ECHO_T@,$ECHO_T,;t t
11870s,@LIBS@,$LIBS,;t t
11871s,@build@,$build,;t t
11872s,@build_cpu@,$build_cpu,;t t
11873s,@build_vendor@,$build_vendor,;t t
11874s,@build_os@,$build_os,;t t
11875s,@host@,$host,;t t
11876s,@host_cpu@,$host_cpu,;t t
11877s,@host_vendor@,$host_vendor,;t t
11878s,@host_os@,$host_os,;t t
11879s,@target@,$target,;t t
11880s,@target_cpu@,$target_cpu,;t t
11881s,@target_vendor@,$target_vendor,;t t
11882s,@target_os@,$target_os,;t t
f2b5129c 11883s,@target_noncanonical@,$target_noncanonical,;t t
77008252
JJ
11884s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11885s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11886s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11887s,@CYGPATH_W@,$CYGPATH_W,;t t
11888s,@PACKAGE@,$PACKAGE,;t t
11889s,@VERSION@,$VERSION,;t t
11890s,@ACLOCAL@,$ACLOCAL,;t t
11891s,@AUTOCONF@,$AUTOCONF,;t t
11892s,@AUTOMAKE@,$AUTOMAKE,;t t
11893s,@AUTOHEADER@,$AUTOHEADER,;t t
11894s,@MAKEINFO@,$MAKEINFO,;t t
11895s,@install_sh@,$install_sh,;t t
11896s,@STRIP@,$STRIP,;t t
11897s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11898s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11899s,@mkdir_p@,$mkdir_p,;t t
11900s,@AWK@,$AWK,;t t
11901s,@SET_MAKE@,$SET_MAKE,;t t
11902s,@am__leading_dot@,$am__leading_dot,;t t
11903s,@AMTAR@,$AMTAR,;t t
11904s,@am__tar@,$am__tar,;t t
11905s,@am__untar@,$am__untar,;t t
11906s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11907s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11908s,@MAINT@,$MAINT,;t t
11909s,@multi_basedir@,$multi_basedir,;t t
11910s,@CC@,$CC,;t t
11911s,@ac_ct_CC@,$ac_ct_CC,;t t
11912s,@EXEEXT@,$EXEEXT,;t t
11913s,@OBJEXT@,$OBJEXT,;t t
11914s,@DEPDIR@,$DEPDIR,;t t
11915s,@am__include@,$am__include,;t t
11916s,@am__quote@,$am__quote,;t t
11917s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11918s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11919s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11920s,@CCDEPMODE@,$CCDEPMODE,;t t
11921s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11922s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11923s,@CFLAGS@,$CFLAGS,;t t
11924s,@CPP@,$CPP,;t t
11925s,@CPPFLAGS@,$CPPFLAGS,;t t
11926s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
11927s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
11928s,@EGREP@,$EGREP,;t t
11929s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
1cf3d07d
SE
11930s,@LIBTOOL@,$LIBTOOL,;t t
11931s,@SED@,$SED,;t t
11932s,@FGREP@,$FGREP,;t t
11933s,@GREP@,$GREP,;t t
11934s,@LD@,$LD,;t t
11935s,@DUMPBIN@,$DUMPBIN,;t t
11936s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11937s,@NM@,$NM,;t t
77008252 11938s,@LN_S@,$LN_S,;t t
77a3eb61
PG
11939s,@OBJDUMP@,$OBJDUMP,;t t
11940s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1cf3d07d
SE
11941s,@AR@,$AR,;t t
11942s,@ac_ct_AR@,$ac_ct_AR,;t t
77008252
JJ
11943s,@RANLIB@,$RANLIB,;t t
11944s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d 11945s,@lt_ECHO@,$lt_ECHO,;t t
77a3eb61
PG
11946s,@DSYMUTIL@,$DSYMUTIL,;t t
11947s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
11948s,@NMEDIT@,$NMEDIT,;t t
11949s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
11950s,@LIPO@,$LIPO,;t t
11951s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
11952s,@OTOOL@,$OTOOL,;t t
11953s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
11954s,@OTOOL64@,$OTOOL64,;t t
11955s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
77008252
JJ
11956s,@enable_shared@,$enable_shared,;t t
11957s,@enable_static@,$enable_static,;t t
11958s,@toolexecdir@,$toolexecdir,;t t
11959s,@toolexeclibdir@,$toolexeclibdir,;t t
11960s,@LIBOBJS@,$LIBOBJS,;t t
11961s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11962CEOF
11963
11964_ACEOF
11965
11966 cat >>$CONFIG_STATUS <<\_ACEOF
11967 # Split the substitutions into bite-sized pieces for seds with
11968 # small command number limits, like on Digital OSF/1 and HP-UX.
11969 ac_max_sed_lines=48
11970 ac_sed_frag=1 # Number of current file.
11971 ac_beg=1 # First line for current file.
11972 ac_end=$ac_max_sed_lines # Line after last line for current file.
11973 ac_more_lines=:
11974 ac_sed_cmds=
11975 while $ac_more_lines; do
11976 if test $ac_beg -gt 1; then
11977 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11978 else
11979 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11980 fi
11981 if test ! -s $tmp/subs.frag; then
11982 ac_more_lines=false
11983 else
11984 # The purpose of the label and of the branching condition is to
11985 # speed up the sed processing (if there are no `@' at all, there
11986 # is no need to browse any of the substitutions).
11987 # These are the two extra sed commands mentioned above.
11988 (echo ':t
11989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11990 if test -z "$ac_sed_cmds"; then
11991 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11992 else
11993 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11994 fi
11995 ac_sed_frag=`expr $ac_sed_frag + 1`
11996 ac_beg=$ac_end
11997 ac_end=`expr $ac_end + $ac_max_sed_lines`
11998 fi
11999 done
12000 if test -z "$ac_sed_cmds"; then
12001 ac_sed_cmds=cat
12002 fi
12003fi # test -n "$CONFIG_FILES"
12004
12005_ACEOF
12006cat >>$CONFIG_STATUS <<\_ACEOF
12007for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12009 case $ac_file in
12010 - | *:- | *:-:* ) # input from stdin
12011 cat >$tmp/stdin
12012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12016 * ) ac_file_in=$ac_file.in ;;
12017 esac
12018
12019 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12020 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12021$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12022 X"$ac_file" : 'X\(//\)[^/]' \| \
12023 X"$ac_file" : 'X\(//\)$' \| \
12024 X"$ac_file" : 'X\(/\)' \| \
12025 . : '\(.\)' 2>/dev/null ||
12026echo X"$ac_file" |
12027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12029 /^X\(\/\/\)$/{ s//\1/; q; }
12030 /^X\(\/\).*/{ s//\1/; q; }
12031 s/.*/./; q'`
12032 { if $as_mkdir_p; then
12033 mkdir -p "$ac_dir"
12034 else
12035 as_dir="$ac_dir"
12036 as_dirs=
12037 while test ! -d "$as_dir"; do
12038 as_dirs="$as_dir $as_dirs"
12039 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12041 X"$as_dir" : 'X\(//\)[^/]' \| \
12042 X"$as_dir" : 'X\(//\)$' \| \
12043 X"$as_dir" : 'X\(/\)' \| \
12044 . : '\(.\)' 2>/dev/null ||
12045echo X"$as_dir" |
12046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12048 /^X\(\/\/\)$/{ s//\1/; q; }
12049 /^X\(\/\).*/{ s//\1/; q; }
12050 s/.*/./; q'`
12051 done
12052 test ! -n "$as_dirs" || mkdir $as_dirs
12053 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12054echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12055 { (exit 1); exit 1; }; }; }
12056
12057 ac_builddir=.
12058
12059if test "$ac_dir" != .; then
12060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12061 # A "../" for each directory in $ac_dir_suffix.
12062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12063else
12064 ac_dir_suffix= ac_top_builddir=
12065fi
12066
12067case $srcdir in
12068 .) # No --srcdir option. We are building in place.
12069 ac_srcdir=.
12070 if test -z "$ac_top_builddir"; then
12071 ac_top_srcdir=.
12072 else
12073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12074 fi ;;
12075 [\\/]* | ?:[\\/]* ) # Absolute path.
12076 ac_srcdir=$srcdir$ac_dir_suffix;
12077 ac_top_srcdir=$srcdir ;;
12078 *) # Relative path.
12079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12081esac
12082
12083# Do not use `cd foo && pwd` to compute absolute paths, because
12084# the directories may not exist.
12085case `pwd` in
12086.) ac_abs_builddir="$ac_dir";;
12087*)
12088 case "$ac_dir" in
12089 .) ac_abs_builddir=`pwd`;;
12090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12092 esac;;
12093esac
12094case $ac_abs_builddir in
12095.) ac_abs_top_builddir=${ac_top_builddir}.;;
12096*)
12097 case ${ac_top_builddir}. in
12098 .) ac_abs_top_builddir=$ac_abs_builddir;;
12099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12101 esac;;
12102esac
12103case $ac_abs_builddir in
12104.) ac_abs_srcdir=$ac_srcdir;;
12105*)
12106 case $ac_srcdir in
12107 .) ac_abs_srcdir=$ac_abs_builddir;;
12108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12110 esac;;
12111esac
12112case $ac_abs_builddir in
12113.) ac_abs_top_srcdir=$ac_top_srcdir;;
12114*)
12115 case $ac_top_srcdir in
12116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12119 esac;;
12120esac
12121
12122
12123 case $INSTALL in
12124 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12125 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12126 esac
12127
12128 if test x"$ac_file" != x-; then
12129 { echo "$as_me:$LINENO: creating $ac_file" >&5
12130echo "$as_me: creating $ac_file" >&6;}
12131 rm -f "$ac_file"
12132 fi
12133 # Let's still pretend it is `configure' which instantiates (i.e., don't
12134 # use $as_me), people would be surprised to read:
12135 # /* config.h. Generated by config.status. */
12136 if test x"$ac_file" = x-; then
12137 configure_input=
12138 else
12139 configure_input="$ac_file. "
12140 fi
12141 configure_input=$configure_input"Generated from `echo $ac_file_in |
12142 sed 's,.*/,,'` by configure."
12143
12144 # First look for the input files in the build tree, otherwise in the
12145 # src tree.
12146 ac_file_inputs=`IFS=:
12147 for f in $ac_file_in; do
12148 case $f in
12149 -) echo $tmp/stdin ;;
12150 [\\/$]*)
12151 # Absolute (can't be DOS-style, as IFS=:)
12152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12153echo "$as_me: error: cannot find input file: $f" >&2;}
12154 { (exit 1); exit 1; }; }
12155 echo "$f";;
12156 *) # Relative
12157 if test -f "$f"; then
12158 # Build tree
12159 echo "$f"
12160 elif test -f "$srcdir/$f"; then
12161 # Source tree
12162 echo "$srcdir/$f"
12163 else
12164 # /dev/null tree
12165 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12166echo "$as_me: error: cannot find input file: $f" >&2;}
12167 { (exit 1); exit 1; }; }
12168 fi;;
12169 esac
12170 done` || { (exit 1); exit 1; }
12171_ACEOF
12172cat >>$CONFIG_STATUS <<_ACEOF
12173 sed "$ac_vpsub
12174$extrasub
12175_ACEOF
12176cat >>$CONFIG_STATUS <<\_ACEOF
12177:t
12178/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12179s,@configure_input@,$configure_input,;t t
12180s,@srcdir@,$ac_srcdir,;t t
12181s,@abs_srcdir@,$ac_abs_srcdir,;t t
12182s,@top_srcdir@,$ac_top_srcdir,;t t
12183s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12184s,@builddir@,$ac_builddir,;t t
12185s,@abs_builddir@,$ac_abs_builddir,;t t
12186s,@top_builddir@,$ac_top_builddir,;t t
12187s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12188s,@INSTALL@,$ac_INSTALL,;t t
12189" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12190 rm -f $tmp/stdin
12191 if test x"$ac_file" != x-; then
12192 mv $tmp/out $ac_file
12193 else
12194 cat $tmp/out
12195 rm -f $tmp/out
12196 fi
12197
12198done
12199_ACEOF
12200cat >>$CONFIG_STATUS <<\_ACEOF
12201
12202#
12203# CONFIG_HEADER section.
12204#
12205
12206# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12207# NAME is the cpp macro being defined and VALUE is the value it is being given.
12208#
12209# ac_d sets the value in "#define NAME VALUE" lines.
12210ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12211ac_dB='[ ].*$,\1#\2'
12212ac_dC=' '
12213ac_dD=',;t'
12214# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12215ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12216ac_uB='$,\1#\2define\3'
12217ac_uC=' '
12218ac_uD=',;t'
12219
12220for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12222 case $ac_file in
12223 - | *:- | *:-:* ) # input from stdin
12224 cat >$tmp/stdin
12225 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12227 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12229 * ) ac_file_in=$ac_file.in ;;
12230 esac
12231
12232 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12233echo "$as_me: creating $ac_file" >&6;}
12234
12235 # First look for the input files in the build tree, otherwise in the
12236 # src tree.
12237 ac_file_inputs=`IFS=:
12238 for f in $ac_file_in; do
12239 case $f in
12240 -) echo $tmp/stdin ;;
12241 [\\/$]*)
12242 # Absolute (can't be DOS-style, as IFS=:)
12243 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12244echo "$as_me: error: cannot find input file: $f" >&2;}
12245 { (exit 1); exit 1; }; }
12246 # Do quote $f, to prevent DOS paths from being IFS'd.
12247 echo "$f";;
12248 *) # Relative
12249 if test -f "$f"; then
12250 # Build tree
12251 echo "$f"
12252 elif test -f "$srcdir/$f"; then
12253 # Source tree
12254 echo "$srcdir/$f"
12255 else
12256 # /dev/null tree
12257 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12258echo "$as_me: error: cannot find input file: $f" >&2;}
12259 { (exit 1); exit 1; }; }
12260 fi;;
12261 esac
12262 done` || { (exit 1); exit 1; }
12263 # Remove the trailing spaces.
12264 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12265
12266_ACEOF
12267
12268# Transform confdefs.h into two sed scripts, `conftest.defines' and
12269# `conftest.undefs', that substitutes the proper values into
12270# config.h.in to produce config.h. The first handles `#define'
12271# templates, and the second `#undef' templates.
12272# And first: Protect against being on the right side of a sed subst in
12273# config.status. Protect against being in an unquoted here document
12274# in config.status.
12275rm -f conftest.defines conftest.undefs
12276# Using a here document instead of a string reduces the quoting nightmare.
12277# Putting comments in sed scripts is not portable.
12278#
12279# `end' is used to avoid that the second main sed command (meant for
12280# 0-ary CPP macros) applies to n-ary macro definitions.
12281# See the Autoconf documentation for `clear'.
12282cat >confdef2sed.sed <<\_ACEOF
12283s/[\\&,]/\\&/g
12284s,[\\$`],\\&,g
12285t clear
12286: clear
12287s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12288t end
12289s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12290: end
12291_ACEOF
12292# If some macros were called several times there might be several times
12293# the same #defines, which is useless. Nevertheless, we may not want to
12294# sort them, since we want the *last* AC-DEFINE to be honored.
12295uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12296sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12297rm -f confdef2sed.sed
12298
12299# This sed command replaces #undef with comments. This is necessary, for
12300# example, in the case of _POSIX_SOURCE, which is predefined and required
12301# on some systems where configure will not decide to define it.
12302cat >>conftest.undefs <<\_ACEOF
12303s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12304_ACEOF
12305
12306# Break up conftest.defines because some shells have a limit on the size
12307# of here documents, and old seds have small limits too (100 cmds).
12308echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12309echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12310echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12311echo ' :' >>$CONFIG_STATUS
12312rm -f conftest.tail
12313while grep . conftest.defines >/dev/null
12314do
12315 # Write a limited-size here document to $tmp/defines.sed.
12316 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12317 # Speed up: don't consider the non `#define' lines.
12318 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12319 # Work around the forget-to-reset-the-flag bug.
12320 echo 't clr' >>$CONFIG_STATUS
12321 echo ': clr' >>$CONFIG_STATUS
12322 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12323 echo 'CEOF
12324 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12325 rm -f $tmp/in
12326 mv $tmp/out $tmp/in
12327' >>$CONFIG_STATUS
12328 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12329 rm -f conftest.defines
12330 mv conftest.tail conftest.defines
12331done
12332rm -f conftest.defines
12333echo ' fi # grep' >>$CONFIG_STATUS
12334echo >>$CONFIG_STATUS
12335
12336# Break up conftest.undefs because some shells have a limit on the size
12337# of here documents, and old seds have small limits too (100 cmds).
12338echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12339rm -f conftest.tail
12340while grep . conftest.undefs >/dev/null
12341do
12342 # Write a limited-size here document to $tmp/undefs.sed.
12343 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12344 # Speed up: don't consider the non `#undef'
12345 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12346 # Work around the forget-to-reset-the-flag bug.
12347 echo 't clr' >>$CONFIG_STATUS
12348 echo ': clr' >>$CONFIG_STATUS
12349 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12350 echo 'CEOF
12351 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12352 rm -f $tmp/in
12353 mv $tmp/out $tmp/in
12354' >>$CONFIG_STATUS
12355 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12356 rm -f conftest.undefs
12357 mv conftest.tail conftest.undefs
12358done
12359rm -f conftest.undefs
12360
12361cat >>$CONFIG_STATUS <<\_ACEOF
12362 # Let's still pretend it is `configure' which instantiates (i.e., don't
12363 # use $as_me), people would be surprised to read:
12364 # /* config.h. Generated by config.status. */
12365 if test x"$ac_file" = x-; then
12366 echo "/* Generated by configure. */" >$tmp/config.h
12367 else
12368 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12369 fi
12370 cat $tmp/in >>$tmp/config.h
12371 rm -f $tmp/in
12372 if test x"$ac_file" != x-; then
12373 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12374 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12375echo "$as_me: $ac_file is unchanged" >&6;}
12376 else
12377 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12378$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12379 X"$ac_file" : 'X\(//\)[^/]' \| \
12380 X"$ac_file" : 'X\(//\)$' \| \
12381 X"$ac_file" : 'X\(/\)' \| \
12382 . : '\(.\)' 2>/dev/null ||
12383echo X"$ac_file" |
12384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12386 /^X\(\/\/\)$/{ s//\1/; q; }
12387 /^X\(\/\).*/{ s//\1/; q; }
12388 s/.*/./; q'`
12389 { if $as_mkdir_p; then
12390 mkdir -p "$ac_dir"
12391 else
12392 as_dir="$ac_dir"
12393 as_dirs=
12394 while test ! -d "$as_dir"; do
12395 as_dirs="$as_dir $as_dirs"
12396 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12398 X"$as_dir" : 'X\(//\)[^/]' \| \
12399 X"$as_dir" : 'X\(//\)$' \| \
12400 X"$as_dir" : 'X\(/\)' \| \
12401 . : '\(.\)' 2>/dev/null ||
12402echo X"$as_dir" |
12403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12405 /^X\(\/\/\)$/{ s//\1/; q; }
12406 /^X\(\/\).*/{ s//\1/; q; }
12407 s/.*/./; q'`
12408 done
12409 test ! -n "$as_dirs" || mkdir $as_dirs
12410 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12411echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12412 { (exit 1); exit 1; }; }; }
12413
12414 rm -f $ac_file
12415 mv $tmp/config.h $ac_file
12416 fi
12417 else
12418 cat $tmp/config.h
12419 rm -f $tmp/config.h
12420 fi
12421# Compute $ac_file's index in $config_headers.
12422_am_stamp_count=1
12423for _am_header in $config_headers :; do
12424 case $_am_header in
12425 $ac_file | $ac_file:* )
12426 break ;;
12427 * )
12428 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12429 esac
12430done
12431echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12432$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433 X$ac_file : 'X\(//\)[^/]' \| \
12434 X$ac_file : 'X\(//\)$' \| \
12435 X$ac_file : 'X\(/\)' \| \
12436 . : '\(.\)' 2>/dev/null ||
12437echo X$ac_file |
12438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12440 /^X\(\/\/\)$/{ s//\1/; q; }
12441 /^X\(\/\).*/{ s//\1/; q; }
12442 s/.*/./; q'`/stamp-h$_am_stamp_count
12443done
12444_ACEOF
12445cat >>$CONFIG_STATUS <<\_ACEOF
12446
12447#
12448# CONFIG_COMMANDS section.
12449#
12450for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12451 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12452 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12453 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12454$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12455 X"$ac_dest" : 'X\(//\)[^/]' \| \
12456 X"$ac_dest" : 'X\(//\)$' \| \
12457 X"$ac_dest" : 'X\(/\)' \| \
12458 . : '\(.\)' 2>/dev/null ||
12459echo X"$ac_dest" |
12460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12462 /^X\(\/\/\)$/{ s//\1/; q; }
12463 /^X\(\/\).*/{ s//\1/; q; }
12464 s/.*/./; q'`
12465 { if $as_mkdir_p; then
12466 mkdir -p "$ac_dir"
12467 else
12468 as_dir="$ac_dir"
12469 as_dirs=
12470 while test ! -d "$as_dir"; do
12471 as_dirs="$as_dir $as_dirs"
12472 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12473$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12474 X"$as_dir" : 'X\(//\)[^/]' \| \
12475 X"$as_dir" : 'X\(//\)$' \| \
12476 X"$as_dir" : 'X\(/\)' \| \
12477 . : '\(.\)' 2>/dev/null ||
12478echo X"$as_dir" |
12479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12481 /^X\(\/\/\)$/{ s//\1/; q; }
12482 /^X\(\/\).*/{ s//\1/; q; }
12483 s/.*/./; q'`
12484 done
12485 test ! -n "$as_dirs" || mkdir $as_dirs
12486 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12487echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12488 { (exit 1); exit 1; }; }; }
12489
12490 ac_builddir=.
12491
12492if test "$ac_dir" != .; then
12493 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12494 # A "../" for each directory in $ac_dir_suffix.
12495 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12496else
12497 ac_dir_suffix= ac_top_builddir=
12498fi
12499
12500case $srcdir in
12501 .) # No --srcdir option. We are building in place.
12502 ac_srcdir=.
12503 if test -z "$ac_top_builddir"; then
12504 ac_top_srcdir=.
12505 else
12506 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12507 fi ;;
12508 [\\/]* | ?:[\\/]* ) # Absolute path.
12509 ac_srcdir=$srcdir$ac_dir_suffix;
12510 ac_top_srcdir=$srcdir ;;
12511 *) # Relative path.
12512 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12513 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12514esac
12515
12516# Do not use `cd foo && pwd` to compute absolute paths, because
12517# the directories may not exist.
12518case `pwd` in
12519.) ac_abs_builddir="$ac_dir";;
12520*)
12521 case "$ac_dir" in
12522 .) ac_abs_builddir=`pwd`;;
12523 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12524 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12525 esac;;
12526esac
12527case $ac_abs_builddir in
12528.) ac_abs_top_builddir=${ac_top_builddir}.;;
12529*)
12530 case ${ac_top_builddir}. in
12531 .) ac_abs_top_builddir=$ac_abs_builddir;;
12532 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12533 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12534 esac;;
12535esac
12536case $ac_abs_builddir in
12537.) ac_abs_srcdir=$ac_srcdir;;
12538*)
12539 case $ac_srcdir in
12540 .) ac_abs_srcdir=$ac_abs_builddir;;
12541 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12542 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12543 esac;;
12544esac
12545case $ac_abs_builddir in
12546.) ac_abs_top_srcdir=$ac_top_srcdir;;
12547*)
12548 case $ac_top_srcdir in
12549 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12550 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12551 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12552 esac;;
12553esac
12554
12555
12556 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12557echo "$as_me: executing $ac_dest commands" >&6;}
12558 case $ac_dest in
12559 default-1 )
12560# Only add multilib support code if we just rebuilt the top-level
12561# Makefile.
12562case " $CONFIG_FILES " in
12563 *" Makefile "*)
12564 ac_file=Makefile . ${multi_basedir}/config-ml.in
12565 ;;
12566esac ;;
12567 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12568 # Strip MF so we end up with the name of the file.
12569 mf=`echo "$mf" | sed -e 's/:.*$//'`
12570 # Check whether this is an Automake generated Makefile or not.
12571 # We used to match only the files named `Makefile.in', but
12572 # some people rename them; so instead we look at the file content.
12573 # Grep'ing the first line is not enough: some people post-process
12574 # each Makefile.in and add a new line on top of each file to say so.
12575 # So let's grep whole file.
12576 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12577 dirpart=`(dirname "$mf") 2>/dev/null ||
12578$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12579 X"$mf" : 'X\(//\)[^/]' \| \
12580 X"$mf" : 'X\(//\)$' \| \
12581 X"$mf" : 'X\(/\)' \| \
12582 . : '\(.\)' 2>/dev/null ||
12583echo X"$mf" |
12584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12586 /^X\(\/\/\)$/{ s//\1/; q; }
12587 /^X\(\/\).*/{ s//\1/; q; }
12588 s/.*/./; q'`
12589 else
12590 continue
12591 fi
12592 # Extract the definition of DEPDIR, am__include, and am__quote
12593 # from the Makefile without running `make'.
12594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12595 test -z "$DEPDIR" && continue
12596 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12597 test -z "am__include" && continue
12598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12599 # When using ansi2knr, U may be empty or an underscore; expand it
12600 U=`sed -n 's/^U = //p' < "$mf"`
12601 # Find all dependency output files, they are included files with
12602 # $(DEPDIR) in their names. We invoke sed twice because it is the
12603 # simplest approach to changing $(DEPDIR) to its actual value in the
12604 # expansion.
12605 for file in `sed -n "
12606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12608 # Make sure the directory exists.
12609 test -f "$dirpart/$file" && continue
12610 fdir=`(dirname "$file") 2>/dev/null ||
12611$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12612 X"$file" : 'X\(//\)[^/]' \| \
12613 X"$file" : 'X\(//\)$' \| \
12614 X"$file" : 'X\(/\)' \| \
12615 . : '\(.\)' 2>/dev/null ||
12616echo X"$file" |
12617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12619 /^X\(\/\/\)$/{ s//\1/; q; }
12620 /^X\(\/\).*/{ s//\1/; q; }
12621 s/.*/./; q'`
12622 { if $as_mkdir_p; then
12623 mkdir -p $dirpart/$fdir
12624 else
12625 as_dir=$dirpart/$fdir
12626 as_dirs=
12627 while test ! -d "$as_dir"; do
12628 as_dirs="$as_dir $as_dirs"
12629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12630$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12631 X"$as_dir" : 'X\(//\)[^/]' \| \
12632 X"$as_dir" : 'X\(//\)$' \| \
12633 X"$as_dir" : 'X\(/\)' \| \
12634 . : '\(.\)' 2>/dev/null ||
12635echo X"$as_dir" |
12636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12638 /^X\(\/\/\)$/{ s//\1/; q; }
12639 /^X\(\/\).*/{ s//\1/; q; }
12640 s/.*/./; q'`
12641 done
12642 test ! -n "$as_dirs" || mkdir $as_dirs
12643 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12644echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12645 { (exit 1); exit 1; }; }; }
12646
12647 # echo "creating $dirpart/$file"
12648 echo '# dummy' > "$dirpart/$file"
12649 done
12650done
1cf3d07d
SE
12651 ;;
12652 libtool )
12653
12654 # See if we are running on zsh, and set the options which allow our
12655 # commands through without removal of \ escapes.
12656 if test -n "${ZSH_VERSION+set}" ; then
12657 setopt NO_GLOB_SUBST
12658 fi
12659
12660 cfgfile="${ofile}T"
12661 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12662 $RM "$cfgfile"
12663
12664 cat <<_LT_EOF >> "$cfgfile"
12665#! $SHELL
12666
12667# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
77a3eb61 12668# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
12669# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12670# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12671#
77a3eb61
PG
12672# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12673# 2006, 2007, 2008 Free Software Foundation, Inc.
12674# Written by Gordon Matzigkeit, 1996
1cf3d07d 12675#
77a3eb61 12676# This file is part of GNU Libtool.
1cf3d07d 12677#
77a3eb61
PG
12678# GNU Libtool is free software; you can redistribute it and/or
12679# modify it under the terms of the GNU General Public License as
12680# published by the Free Software Foundation; either version 2 of
12681# the License, or (at your option) any later version.
1cf3d07d 12682#
77a3eb61
PG
12683# As a special exception to the GNU General Public License,
12684# if you distribute this file as part of a program or library that
12685# is built using GNU Libtool, you may include this file under the
12686# same distribution terms that you use for the rest of that program.
1cf3d07d 12687#
77a3eb61
PG
12688# GNU Libtool is distributed in the hope that it will be useful,
12689# but WITHOUT ANY WARRANTY; without even the implied warranty of
12690# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12691# GNU General Public License for more details.
1cf3d07d 12692#
77a3eb61
PG
12693# You should have received a copy of the GNU General Public License
12694# along with GNU Libtool; see the file COPYING. If not, a copy
12695# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12696# obtained by writing to the Free Software Foundation, Inc.,
12697# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
12698
12699
12700# The names of the tagged configurations supported by this script.
12701available_tags=""
12702
12703# ### BEGIN LIBTOOL CONFIG
12704
12705# Which release of libtool.m4 was used?
12706macro_version=$macro_version
12707macro_revision=$macro_revision
12708
12709# Whether or not to build shared libraries.
12710build_libtool_libs=$enable_shared
12711
12712# Whether or not to build static libraries.
12713build_old_libs=$enable_static
12714
12715# What type of objects to build.
12716pic_mode=$pic_mode
12717
12718# Whether or not to optimize for fast installation.
12719fast_install=$enable_fast_install
12720
12721# The host system.
12722host_alias=$host_alias
12723host=$host
12724host_os=$host_os
12725
12726# The build system.
12727build_alias=$build_alias
12728build=$build
12729build_os=$build_os
12730
12731# A sed program that does not truncate output.
12732SED=$lt_SED
12733
12734# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12735Xsed="\$SED -e 1s/^X//"
12736
12737# A grep program that handles long lines.
12738GREP=$lt_GREP
12739
12740# An ERE matcher.
12741EGREP=$lt_EGREP
12742
12743# A literal string matcher.
12744FGREP=$lt_FGREP
12745
12746# A BSD- or MS-compatible name lister.
12747NM=$lt_NM
12748
12749# Whether we need soft or hard links.
12750LN_S=$lt_LN_S
12751
12752# What is the maximum length of a command?
12753max_cmd_len=$max_cmd_len
12754
12755# Object file suffix (normally "o").
12756objext=$ac_objext
12757
12758# Executable file suffix (normally "").
12759exeext=$exeext
12760
12761# whether the shell understands "unset".
12762lt_unset=$lt_unset
12763
12764# turn spaces into newlines.
12765SP2NL=$lt_lt_SP2NL
12766
12767# turn newlines into spaces.
12768NL2SP=$lt_lt_NL2SP
12769
12770# How to create reloadable object files.
12771reload_flag=$lt_reload_flag
12772reload_cmds=$lt_reload_cmds
12773
77a3eb61
PG
12774# An object symbol dumper.
12775OBJDUMP=$lt_OBJDUMP
12776
1cf3d07d
SE
12777# Method to check whether dependent libraries are shared objects.
12778deplibs_check_method=$lt_deplibs_check_method
12779
12780# Command to use when deplibs_check_method == "file_magic".
12781file_magic_cmd=$lt_file_magic_cmd
12782
12783# The archiver.
12784AR=$lt_AR
12785AR_FLAGS=$lt_AR_FLAGS
12786
12787# A symbol stripping program.
12788STRIP=$lt_STRIP
12789
12790# Commands used to install an old-style archive.
12791RANLIB=$lt_RANLIB
12792old_postinstall_cmds=$lt_old_postinstall_cmds
12793old_postuninstall_cmds=$lt_old_postuninstall_cmds
12794
12795# A C compiler.
12796LTCC=$lt_CC
12797
12798# LTCC compiler flags.
12799LTCFLAGS=$lt_CFLAGS
12800
12801# Take the output of nm and produce a listing of raw symbols and C names.
12802global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12803
12804# Transform the output of nm in a proper C declaration.
12805global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12806
12807# Transform the output of nm in a C name address pair.
12808global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12809
77a3eb61
PG
12810# Transform the output of nm in a C name address pair when lib prefix is needed.
12811global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12812
1cf3d07d
SE
12813# The name of the directory that contains temporary libtool files.
12814objdir=$objdir
12815
12816# Shell to use when invoking shell scripts.
12817SHELL=$lt_SHELL
12818
12819# An echo program that does not interpret backslashes.
12820ECHO=$lt_ECHO
12821
12822# Used to examine libraries when file_magic_cmd begins with "file".
12823MAGIC_CMD=$MAGIC_CMD
12824
12825# Must we lock files when doing compilation?
12826need_locks=$lt_need_locks
12827
77a3eb61
PG
12828# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12829DSYMUTIL=$lt_DSYMUTIL
12830
12831# Tool to change global to local symbols on Mac OS X.
12832NMEDIT=$lt_NMEDIT
12833
12834# Tool to manipulate fat objects and archives on Mac OS X.
12835LIPO=$lt_LIPO
12836
12837# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12838OTOOL=$lt_OTOOL
12839
12840# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12841OTOOL64=$lt_OTOOL64
12842
1cf3d07d
SE
12843# Old archive suffix (normally "a").
12844libext=$libext
12845
12846# Shared library suffix (normally ".so").
12847shrext_cmds=$lt_shrext_cmds
12848
12849# The commands to extract the exported symbol list from a shared archive.
12850extract_expsyms_cmds=$lt_extract_expsyms_cmds
12851
12852# Variables whose values should be saved in libtool wrapper scripts and
12853# restored at link time.
12854variables_saved_for_relink=$lt_variables_saved_for_relink
12855
12856# Do we need the "lib" prefix for modules?
12857need_lib_prefix=$need_lib_prefix
12858
12859# Do we need a version for libraries?
12860need_version=$need_version
12861
12862# Library versioning type.
12863version_type=$version_type
12864
12865# Shared library runtime path variable.
12866runpath_var=$runpath_var
12867
12868# Shared library path variable.
12869shlibpath_var=$shlibpath_var
12870
12871# Is shlibpath searched before the hard-coded library search path?
12872shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12873
12874# Format of library name prefix.
12875libname_spec=$lt_libname_spec
12876
12877# List of archive names. First name is the real one, the rest are links.
12878# The last name is the one that the linker finds with -lNAME
12879library_names_spec=$lt_library_names_spec
12880
12881# The coded name of the library, if different from the real name.
12882soname_spec=$lt_soname_spec
12883
12884# Command to use after installation of a shared archive.
12885postinstall_cmds=$lt_postinstall_cmds
12886
12887# Command to use after uninstallation of a shared archive.
12888postuninstall_cmds=$lt_postuninstall_cmds
12889
12890# Commands used to finish a libtool library installation in a directory.
12891finish_cmds=$lt_finish_cmds
12892
12893# As "finish_cmds", except a single script fragment to be evaled but
12894# not shown.
12895finish_eval=$lt_finish_eval
12896
12897# Whether we should hardcode library paths into libraries.
12898hardcode_into_libs=$hardcode_into_libs
12899
12900# Compile-time system search path for libraries.
12901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12902
12903# Run-time system search path for libraries.
12904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12905
12906# Whether dlopen is supported.
12907dlopen_support=$enable_dlopen
12908
12909# Whether dlopen of programs is supported.
12910dlopen_self=$enable_dlopen_self
12911
12912# Whether dlopen of statically linked programs is supported.
12913dlopen_self_static=$enable_dlopen_self_static
12914
12915# Commands to strip libraries.
12916old_striplib=$lt_old_striplib
12917striplib=$lt_striplib
12918
12919
12920# The linker used to build libraries.
12921LD=$lt_LD
12922
12923# Commands used to build an old-style archive.
12924old_archive_cmds=$lt_old_archive_cmds
12925
12926# A language specific compiler.
12927CC=$lt_compiler
12928
12929# Is the compiler the GNU compiler?
12930with_gcc=$GCC
12931
12932# Compiler flag to turn off builtin functions.
12933no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12934
12935# How to pass a linker flag through the compiler.
12936wl=$lt_lt_prog_compiler_wl
12937
12938# Additional compiler flags for building library objects.
12939pic_flag=$lt_lt_prog_compiler_pic
12940
12941# Compiler flag to prevent dynamic linking.
12942link_static_flag=$lt_lt_prog_compiler_static
12943
12944# Does compiler simultaneously support -c and -o options?
12945compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12946
12947# Whether or not to add -lc for building shared libraries.
12948build_libtool_need_lc=$archive_cmds_need_lc
12949
12950# Whether or not to disallow shared libs when runtime libs are static.
12951allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12952
12953# Compiler flag to allow reflexive dlopens.
12954export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12955
12956# Compiler flag to generate shared objects directly from archives.
12957whole_archive_flag_spec=$lt_whole_archive_flag_spec
12958
12959# Whether the compiler copes with passing no objects directly.
12960compiler_needs_object=$lt_compiler_needs_object
12961
12962# Create an old-style archive from a shared archive.
12963old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12964
12965# Create a temporary old-style archive to link instead of a shared archive.
12966old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12967
12968# Commands used to build a shared archive.
12969archive_cmds=$lt_archive_cmds
12970archive_expsym_cmds=$lt_archive_expsym_cmds
12971
12972# Commands used to build a loadable module if different from building
12973# a shared archive.
12974module_cmds=$lt_module_cmds
12975module_expsym_cmds=$lt_module_expsym_cmds
12976
12977# Whether we are building with GNU ld or not.
12978with_gnu_ld=$lt_with_gnu_ld
12979
12980# Flag that allows shared libraries with undefined symbols to be built.
12981allow_undefined_flag=$lt_allow_undefined_flag
12982
12983# Flag that enforces no undefined symbols.
12984no_undefined_flag=$lt_no_undefined_flag
12985
12986# Flag to hardcode \$libdir into a binary during linking.
12987# This must work even if \$libdir does not exist
12988hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12989
12990# If ld is used when linking, flag to hardcode \$libdir into a binary
12991# during linking. This must work even if \$libdir does not exist.
12992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12993
12994# Whether we need a single "-rpath" flag with a separated argument.
12995hardcode_libdir_separator=$lt_hardcode_libdir_separator
12996
12997# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12998# DIR into the resulting binary.
12999hardcode_direct=$hardcode_direct
13000
13001# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13002# DIR into the resulting binary and the resulting library dependency is
13003# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13004# library is relocated.
13005hardcode_direct_absolute=$hardcode_direct_absolute
13006
13007# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13008# into the resulting binary.
13009hardcode_minus_L=$hardcode_minus_L
13010
13011# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13012# into the resulting binary.
13013hardcode_shlibpath_var=$hardcode_shlibpath_var
13014
13015# Set to "yes" if building a shared library automatically hardcodes DIR
13016# into the library and all subsequent libraries and executables linked
13017# against it.
13018hardcode_automatic=$hardcode_automatic
13019
13020# Set to yes if linker adds runtime paths of dependent libraries
13021# to runtime path list.
13022inherit_rpath=$inherit_rpath
13023
13024# Whether libtool must link a program against all its dependency libraries.
13025link_all_deplibs=$link_all_deplibs
13026
13027# Fix the shell variable \$srcfile for the compiler.
13028fix_srcfile_path=$lt_fix_srcfile_path
13029
13030# Set to "yes" if exported symbols are required.
13031always_export_symbols=$always_export_symbols
13032
13033# The commands to list exported symbols.
13034export_symbols_cmds=$lt_export_symbols_cmds
13035
13036# Symbols that should not be listed in the preloaded symbols.
13037exclude_expsyms=$lt_exclude_expsyms
13038
13039# Symbols that must always be exported.
13040include_expsyms=$lt_include_expsyms
13041
13042# Commands necessary for linking programs (against libraries) with templates.
13043prelink_cmds=$lt_prelink_cmds
13044
13045# Specify filename containing input files.
13046file_list_spec=$lt_file_list_spec
13047
13048# How to hardcode a shared library path into an executable.
13049hardcode_action=$hardcode_action
13050
13051# ### END LIBTOOL CONFIG
13052
13053_LT_EOF
13054
13055 case $host_os in
13056 aix3*)
13057 cat <<\_LT_EOF >> "$cfgfile"
13058# AIX sometimes has problems with the GCC collect2 program. For some
13059# reason, if we set the COLLECT_NAMES environment variable, the problems
13060# vanish in a puff of smoke.
13061if test "X${COLLECT_NAMES+set}" != Xset; then
13062 COLLECT_NAMES=
13063 export COLLECT_NAMES
13064fi
13065_LT_EOF
13066 ;;
13067 esac
13068
13069
13070ltmain="$ac_aux_dir/ltmain.sh"
13071
13072
13073 # We use sed instead of cat because bash on DJGPP gets confused if
13074 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13075 # text mode, it properly converts lines to CR/LF. This bash problem
13076 # is reportedly fixed, but why not run on old versions too?
13077 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13078 || (rm -f "$cfgfile"; exit 1)
13079
13080 case $xsi_shell in
13081 yes)
13082 cat << \_LT_EOF >> "$cfgfile"
77a3eb61 13083
1cf3d07d
SE
13084# func_dirname file append nondir_replacement
13085# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13086# otherwise set result to NONDIR_REPLACEMENT.
13087func_dirname ()
13088{
13089 case ${1} in
13090 */*) func_dirname_result="${1%/*}${2}" ;;
13091 * ) func_dirname_result="${3}" ;;
13092 esac
13093}
13094
13095# func_basename file
13096func_basename ()
13097{
13098 func_basename_result="${1##*/}"
13099}
13100
77a3eb61
PG
13101# func_dirname_and_basename file append nondir_replacement
13102# perform func_basename and func_dirname in a single function
13103# call:
13104# dirname: Compute the dirname of FILE. If nonempty,
13105# add APPEND to the result, otherwise set result
13106# to NONDIR_REPLACEMENT.
13107# value returned in "$func_dirname_result"
13108# basename: Compute filename of FILE.
13109# value retuned in "$func_basename_result"
13110# Implementation must be kept synchronized with func_dirname
13111# and func_basename. For efficiency, we do not delegate to
13112# those functions but instead duplicate the functionality here.
13113func_dirname_and_basename ()
13114{
13115 case ${1} in
13116 */*) func_dirname_result="${1%/*}${2}" ;;
13117 * ) func_dirname_result="${3}" ;;
13118 esac
13119 func_basename_result="${1##*/}"
13120}
13121
1cf3d07d
SE
13122# func_stripname prefix suffix name
13123# strip PREFIX and SUFFIX off of NAME.
13124# PREFIX and SUFFIX must not contain globbing or regex special
13125# characters, hashes, percent signs, but SUFFIX may contain a leading
13126# dot (in which case that matches only a dot).
13127func_stripname ()
13128{
13129 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13130 # positional parameters, so assign one to ordinary parameter first.
13131 func_stripname_result=${3}
13132 func_stripname_result=${func_stripname_result#"${1}"}
13133 func_stripname_result=${func_stripname_result%"${2}"}
13134}
13135
13136# func_opt_split
13137func_opt_split ()
13138{
13139 func_opt_split_opt=${1%%=*}
13140 func_opt_split_arg=${1#*=}
13141}
13142
13143# func_lo2o object
13144func_lo2o ()
13145{
13146 case ${1} in
13147 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13148 *) func_lo2o_result=${1} ;;
13149 esac
13150}
77a3eb61
PG
13151
13152# func_xform libobj-or-source
13153func_xform ()
13154{
13155 func_xform_result=${1%.*}.lo
13156}
13157
13158# func_arith arithmetic-term...
13159func_arith ()
13160{
13161 func_arith_result=$(( $* ))
13162}
13163
13164# func_len string
13165# STRING may not start with a hyphen.
13166func_len ()
13167{
13168 func_len_result=${#1}
13169}
13170
1cf3d07d
SE
13171_LT_EOF
13172 ;;
13173 *) # Bourne compatible functions.
13174 cat << \_LT_EOF >> "$cfgfile"
77a3eb61 13175
1cf3d07d
SE
13176# func_dirname file append nondir_replacement
13177# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13178# otherwise set result to NONDIR_REPLACEMENT.
13179func_dirname ()
13180{
13181 # Extract subdirectory from the argument.
13182 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13183 if test "X$func_dirname_result" = "X${1}"; then
13184 func_dirname_result="${3}"
13185 else
13186 func_dirname_result="$func_dirname_result${2}"
13187 fi
13188}
13189
13190# func_basename file
13191func_basename ()
13192{
13193 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13194}
13195
77a3eb61 13196
1cf3d07d
SE
13197# func_stripname prefix suffix name
13198# strip PREFIX and SUFFIX off of NAME.
13199# PREFIX and SUFFIX must not contain globbing or regex special
13200# characters, hashes, percent signs, but SUFFIX may contain a leading
13201# dot (in which case that matches only a dot).
13202# func_strip_suffix prefix name
13203func_stripname ()
13204{
13205 case ${2} in
13206 .*) func_stripname_result=`$ECHO "X${3}" \
13207 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13208 *) func_stripname_result=`$ECHO "X${3}" \
13209 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13210 esac
13211}
13212
13213# sed scripts:
13214my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13215my_sed_long_arg='1s/^-[^=]*=//'
13216
13217# func_opt_split
13218func_opt_split ()
13219{
13220 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13221 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13222}
13223
13224# func_lo2o object
13225func_lo2o ()
13226{
13227 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13228}
77a3eb61
PG
13229
13230# func_xform libobj-or-source
13231func_xform ()
13232{
13233 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13234}
13235
13236# func_arith arithmetic-term...
13237func_arith ()
13238{
13239 func_arith_result=`expr "$@"`
13240}
13241
13242# func_len string
13243# STRING may not start with a hyphen.
13244func_len ()
13245{
13246 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13247}
13248
1cf3d07d
SE
13249_LT_EOF
13250esac
13251
13252case $lt_shell_append in
13253 yes)
13254 cat << \_LT_EOF >> "$cfgfile"
13255
13256# func_append var value
13257# Append VALUE to the end of shell variable VAR.
13258func_append ()
13259{
13260 eval "$1+=\$2"
13261}
13262_LT_EOF
13263 ;;
13264 *)
13265 cat << \_LT_EOF >> "$cfgfile"
13266
13267# func_append var value
13268# Append VALUE to the end of shell variable VAR.
13269func_append ()
13270{
13271 eval "$1=\$$1\$2"
13272}
77a3eb61 13273
1cf3d07d
SE
13274_LT_EOF
13275 ;;
13276 esac
13277
13278
13279 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13280 || (rm -f "$cfgfile"; exit 1)
13281
13282 mv -f "$cfgfile" "$ofile" ||
13283 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13284 chmod +x "$ofile"
13285
77008252
JJ
13286 ;;
13287 esac
13288done
13289_ACEOF
13290
13291cat >>$CONFIG_STATUS <<\_ACEOF
13292
13293{ (exit 0); exit 0; }
13294_ACEOF
13295chmod +x $CONFIG_STATUS
13296ac_clean_files=$ac_clean_files_save
13297
13298
13299# configure is writing to config.log, and then calls config.status.
13300# config.status does its own redirection, appending to config.log.
13301# Unfortunately, on DOS this fails, as config.log is still kept open
13302# by configure, so config.status won't be able to write to it; its
13303# output is simply discarded. So we exec the FD to /dev/null,
13304# effectively closing config.log, so it can be properly (re)opened and
13305# appended to by config.status. When coming back to configure, we
13306# need to make the FD available again.
13307if test "$no_create" != yes; then
13308 ac_cs_success=:
13309 ac_config_status_args=
13310 test "$silent" = yes &&
13311 ac_config_status_args="$ac_config_status_args --quiet"
13312 exec 5>/dev/null
13313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13314 exec 5>>config.log
13315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13316 # would make configure fail if this is the last instruction.
13317 $ac_cs_success || { (exit 1); exit 1; }
13318fi
13319
This page took 1.556666 seconds and 5 git commands to generate.