df-problems.c (df_set_note): Avoid C++ keywords.
[gcc.git] / libssp / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if 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
277 fi
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
283 if 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
381 fi
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${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.
417 PACKAGE_NAME='libssp'
418 PACKAGE_TARNAME='libssp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libssp 1.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="ssp.c"
424 # Factoring default headers for most tests.
425 ac_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
461 ac_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 AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_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.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
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
777 Try \`$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
800 done
801
802 if 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; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
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
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
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
829 done
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.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if 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
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if 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 ||
865 echo 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
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if 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
886 fi
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; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911
912 #
913 # Report the --help message.
914 #
915 if 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
921 Usage: $0 [OPTION]... [VAR=VALUE]...
922
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE. See below for descriptions of some of the useful variables.
925
926 Defaults for the options are specified in brackets.
927
928 Configuration:
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
942 Installation 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
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
952
953 For better control, use the options below.
954
955 Fine 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
972 Program 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
977 System 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
982 fi
983
984 if 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
990 Optional 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
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]
1005 --disable-libtool-lock avoid locking (might break parallel builds)
1006
1007 Optional Packages:
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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]
1013
1014 Some 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
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1025
1026 _ACEOF
1027 fi
1028
1029 if 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
1036 if 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'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1042 fi
1043
1044 case $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 ;;
1058 esac
1059
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `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;;
1070 esac
1071 case $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;;
1079 esac
1080 case $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;;
1088 esac
1089 case $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;;
1097 esac
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
1116 fi
1117
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120 cat <<\_ACEOF
1121 libssp configure 1.0
1122 generated by GNU Autoconf 2.59
1123
1124 Copyright (C) 2003 Free Software Foundation, Inc.
1125 This configure script is free software; the Free Software Foundation
1126 gives unlimited permission to copy, distribute and modify it.
1127 _ACEOF
1128 exit 0
1129 fi
1130 exec 5>config.log
1131 cat >&5 <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1134
1135 It was created by libssp $as_me 1.0, which was
1136 generated by GNU Autoconf 2.59. Invocation command line was
1137
1138 $ $0 $@
1139
1140 _ACEOF
1141 {
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
1146
1147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151 uname -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`
1159 hostinfo = `(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
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1168 do
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172 done
1173
1174 } >&5
1175
1176 cat >&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.
1191 ac_configure_args=
1192 ac_configure_args0=
1193 ac_configure_args1=
1194 ac_sep=
1195 ac_must_keep_next=false
1196 for ac_pass in 1 2
1197 do
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
1233 done
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.
1242 trap '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
1316 for ac_signal in 1 2 13 15; do
1317 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 done
1319 ac_signal=0
1320
1321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1322 rm -rf conftest* confdefs.h
1323 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 echo >confdefs.h
1325
1326 # Predefined preprocessor variables.
1327
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1331
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1346
1347
1348 cat >>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.
1355 if 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
1361 fi
1362 for 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
1365 echo "$as_me: loading site script $ac_site_file" >&6;}
1366 sed 's/^/| /' "$ac_site_file" >&5
1367 . "$ac_site_file"
1368 fi
1369 done
1370
1371 if 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
1376 echo "$as_me: loading cache $cache_file" >&6;}
1377 case $cache_file in
1378 [\\/]* | ?:[\\/]* ) . $cache_file;;
1379 *) . ./$cache_file;;
1380 esac
1381 fi
1382 else
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
1386 fi
1387
1388 # Check that the precious variables saved in the cache have kept the same
1389 # value.
1390 ac_cache_corrupted=false
1391 for 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
1400 echo "$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
1404 echo "$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
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
1414 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 ac_cache_corrupted=:
1416 else
1417 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1418 echo "$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
1422 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1423 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1424 echo "$as_me: current value: \`$ac_new_val'" >&2;}
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
1439 done
1440 if $ac_cache_corrupted; then
1441 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1442 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1443 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444 echo "$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
1446 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447 { (exit 1); exit 1; }; }
1448 fi
1449
1450 ac_ext=c
1451 ac_cpp='$CPP $CPPFLAGS'
1452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454 ac_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
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for 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
1501 done
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505 { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_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
1514 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515 { (exit 1); exit 1; }; }
1516
1517 echo "$as_me:$LINENO: checking build system type" >&5
1518 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519 if test "${ac_cv_build+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 ac_cv_build_alias=$build_alias
1523 test -z "$ac_cv_build_alias" &&
1524 ac_cv_build_alias=`$ac_config_guess`
1525 test -z "$ac_cv_build_alias" &&
1526 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528 { (exit 1); exit 1; }; }
1529 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534 fi
1535 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536 echo "${ECHO_T}$ac_cv_build" >&6
1537 build=$ac_cv_build
1538 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543 echo "$as_me:$LINENO: checking host system type" >&5
1544 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545 if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 ac_cv_host_alias=$host_alias
1549 test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556 fi
1557 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558 echo "${ECHO_T}$ac_cv_host" >&6
1559 host=$ac_cv_host
1560 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565 echo "$as_me:$LINENO: checking target system type" >&5
1566 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567 if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 ac_cv_target_alias=$target_alias
1571 test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578 fi
1579 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580 echo "${ECHO_T}$ac_cv_target" >&6
1581 target=$ac_cv_target
1582 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 target_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.
1589 test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1591 NONENONEs,x,x, &&
1592 program_prefix=${target_alias}-
1593 case ${build_alias} in
1594 "") build_noncanonical=${build} ;;
1595 *) build_noncanonical=${build_alias} ;;
1596 esac
1597
1598 case ${host_alias} in
1599 "") host_noncanonical=${build_noncanonical} ;;
1600 *) host_noncanonical=${host_alias} ;;
1601 esac
1602
1603 case ${target_alias} in
1604 "") target_noncanonical=${host_noncanonical} ;;
1605 *) target_noncanonical=${target_alias} ;;
1606 esac
1607
1608
1609
1610
1611 am__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.
1625 # Reject install programs that cannot install multiple files.
1626 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1627 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1628 if test -z "$INSTALL"; then
1629 if test "${ac_cv_path_install+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 # Account for people who put trailing slashes in PATH elements.
1638 case $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
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
1671 fi
1672 fi
1673 done
1674 done
1675 ;;
1676 esac
1677 done
1678
1679 rm -rf conftest.one conftest.two conftest.dir
1680
1681 fi
1682 if test "${ac_cv_path_install+set}" = set; then
1683 INSTALL=$ac_cv_path_install
1684 else
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
1687 # break other packages using the cache if that directory is
1688 # removed, or if the value is a relative name.
1689 INSTALL=$ac_install_sh
1690 fi
1691 fi
1692 echo "$as_me:$LINENO: result: $INSTALL" >&5
1693 echo "${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.
1697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1698
1699 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1700
1701 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1702
1703 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1704 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1705 # Just in case
1706 sleep 1
1707 echo 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).
1713 if (
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
1728 alias in your environment" >&5
1729 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1730 alias in your environment" >&2;}
1731 { (exit 1); exit 1; }; }
1732 fi
1733
1734 test "$2" = conftest.file
1735 )
1736 then
1737 # Ok.
1738 :
1739 else
1740 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1741 Check your system clock" >&5
1742 echo "$as_me: error: newly created file is older than distributed files!
1743 Check your system clock" >&2;}
1744 { (exit 1); exit 1; }; }
1745 fi
1746 echo "$as_me:$LINENO: result: yes" >&5
1747 echo "${ECHO_T}yes" >&6
1748 test "$program_prefix" != NONE &&
1749 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1750 # Use a double $ so make ignores it.
1751 test "$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.
1755 cat <<\_ACEOF >conftest.sed
1756 s/[\\$]/&&/g;s/;s,x,x,$//
1757 _ACEOF
1758 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1759 rm conftest.sed
1760
1761 # expand $ac_aux_dir to an absolute path
1762 am_aux_dir=`cd $ac_aux_dir && pwd`
1763
1764 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1765 # Use eval to expand $SHELL
1766 if eval "$MISSING --run true"; then
1767 am_missing_run="$MISSING --run "
1768 else
1769 am_missing_run=
1770 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1771 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1772 fi
1773
1774 if 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 --'
1790 else
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
1805 fi
1806
1807 for ac_prog in gawk mawk nawk awk
1808 do
1809 # Extract the first word of "$ac_prog", so it can be a program name with args.
1810 set dummy $ac_prog; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_AWK+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816 if test -n "$AWK"; then
1817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
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
1830 done
1831 done
1832
1833 fi
1834 fi
1835 AWK=$ac_cv_prog_AWK
1836 if test -n "$AWK"; then
1837 echo "$as_me:$LINENO: result: $AWK" >&5
1838 echo "${ECHO_T}$AWK" >&6
1839 else
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1842 fi
1843
1844 test -n "$AWK" && break
1845 done
1846
1847 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1848 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1849 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1850 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 cat >conftest.make <<\_ACEOF
1854 all:
1855 @echo 'ac_maketemp="$(MAKE)"'
1856 _ACEOF
1857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1858 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1859 if test -n "$ac_maketemp"; then
1860 eval ac_cv_prog_make_${ac_make}_set=yes
1861 else
1862 eval ac_cv_prog_make_${ac_make}_set=no
1863 fi
1864 rm -f conftest.make
1865 fi
1866 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869 SET_MAKE=
1870 else
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 SET_MAKE="MAKE=${MAKE-make}"
1874 fi
1875
1876 rm -rf .tst 2>/dev/null
1877 mkdir .tst 2>/dev/null
1878 if test -d .tst; then
1879 am__leading_dot=.
1880 else
1881 am__leading_dot=_
1882 fi
1883 rmdir .tst 2>/dev/null
1884
1885 # test to see if srcdir already configured
1886 if 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
1889 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1890 { (exit 1); exit 1; }; }
1891 fi
1892
1893 # test whether we have cygpath
1894 if 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
1900 fi
1901
1902
1903 # Define the identity of the package.
1904 PACKAGE='libssp'
1905 VERSION='1.0'
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE "$PACKAGE"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define VERSION "$VERSION"
1915 _ACEOF
1916
1917 # Some tools Automake needs.
1918
1919 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1920
1921
1922 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1923
1924
1925 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1926
1927
1928 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1929
1930
1931 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1932
1933 install_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.
1939 if 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.
1942 set dummy ${ac_tool_prefix}strip; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_STRIP+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 if test -n "$STRIP"; then
1949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
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
1962 done
1963 done
1964
1965 fi
1966 fi
1967 STRIP=$ac_cv_prog_STRIP
1968 if test -n "$STRIP"; then
1969 echo "$as_me:$LINENO: result: $STRIP" >&5
1970 echo "${ECHO_T}$STRIP" >&6
1971 else
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1974 fi
1975
1976 fi
1977 if 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.
1980 set dummy strip; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 if test -n "$ac_ct_STRIP"; then
1987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
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
2000 done
2001 done
2002
2003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2004 fi
2005 fi
2006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2007 if test -n "$ac_ct_STRIP"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2009 echo "${ECHO_T}$ac_ct_STRIP" >&6
2010 else
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015 STRIP=$ac_ct_STRIP
2016 else
2017 STRIP="$ac_cv_prog_STRIP"
2018 fi
2019
2020 fi
2021 INSTALL_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
2027 AMTAR=${AMTAR-"${am_missing_run}tar"}
2028
2029 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2030
2031
2032
2033
2034
2035
2036 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2037 echo $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.
2039 if 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
2045 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2046 { (exit 1); exit 1; }; };;
2047 esac
2048 else
2049 version_specific_libs=no
2050 fi;
2051 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2052 echo "${ECHO_T}$version_specific_libs" >&6
2053
2054 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2055 echo $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.
2057 if test "${enable_maintainer_mode+set}" = set; then
2058 enableval="$enable_maintainer_mode"
2059 USE_MAINTAINER_MODE=$enableval
2060 else
2061 USE_MAINTAINER_MODE=no
2062 fi;
2063 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2064 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2065
2066
2067 if test $USE_MAINTAINER_MODE = yes; then
2068 MAINTAINER_MODE_TRUE=
2069 MAINTAINER_MODE_FALSE='#'
2070 else
2071 MAINTAINER_MODE_TRUE='#'
2072 MAINTAINER_MODE_FALSE=
2073 fi
2074
2075 MAINT=$MAINTAINER_MODE_TRUE
2076
2077
2078
2079
2080
2081 # Default to --enable-multilib
2082 # Check whether --enable-multilib or --disable-multilib was given.
2083 if 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
2089 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2090 { (exit 1); exit 1; }; } ;;
2091 esac
2092 else
2093 multilib=yes
2094 fi;
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
2100 if 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
2106 else
2107 multi_basedir="$srcdir/.."
2108 fi
2109
2110
2111 # Even if the default multilib is not a cross compilation,
2112 # it may be that some of the other multilibs are.
2113 if test $cross_compiling = no && test $multilib = yes \
2114 && test "x${with_multisubdir}" != x ; then
2115 cross_compiling=maybe
2116 fi
2117
2118 ac_config_commands="$ac_config_commands default-1"
2119
2120
2121 target_alias=${target_alias-$host_alias}
2122
2123
2124 ac_config_headers="$ac_config_headers config.h"
2125
2126
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_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
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if 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.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
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
2167 done
2168 done
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 fi
2182 if 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.
2185 set dummy gcc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
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
2205 done
2206 done
2207
2208 fi
2209 fi
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215 echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219 CC=$ac_ct_CC
2220 else
2221 CC="$ac_cv_prog_CC"
2222 fi
2223
2224 if 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.
2227 set dummy ${ac_tool_prefix}cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
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
2247 done
2248 done
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261 fi
2262 if 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.
2265 set dummy cc; ac_word=$2
2266 echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 if test -n "$ac_ct_CC"; then
2272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
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
2285 done
2286 done
2287
2288 fi
2289 fi
2290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291 if test -n "$ac_ct_CC"; then
2292 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293 echo "${ECHO_T}$ac_ct_CC" >&6
2294 else
2295 echo "$as_me:$LINENO: result: no" >&5
2296 echo "${ECHO_T}no" >&6
2297 fi
2298
2299 CC=$ac_ct_CC
2300 else
2301 CC="$ac_cv_prog_CC"
2302 fi
2303
2304 fi
2305 if test -z "$CC"; then
2306 # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316 ac_prog_rejected=no
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
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
2332 done
2333 done
2334
2335 if 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
2346 fi
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358 fi
2359 if 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.
2364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
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
2384 done
2385 done
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391 echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2393 else
2394 echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398 test -n "$CC" && break
2399 done
2400 fi
2401 if test -z "$CC"; then
2402 ac_ct_CC=$CC
2403 for ac_prog in cl
2404 do
2405 # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412 if test -n "$ac_ct_CC"; then
2413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
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
2426 done
2427 done
2428
2429 fi
2430 fi
2431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432 if test -n "$ac_ct_CC"; then
2433 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434 echo "${ECHO_T}$ac_ct_CC" >&6
2435 else
2436 echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 fi
2439
2440 test -n "$ac_ct_CC" && break
2441 done
2442
2443 CC=$ac_ct_CC
2444 fi
2445
2446 fi
2447
2448
2449 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2450 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455 { (exit 1); exit 1; }; }; }
2456
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459 "checking for C compiler version" >&5
2460 ac_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
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h. */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2483
2484 int
2485 main ()
2486 {
2487
2488 ;
2489 return 0;
2490 }
2491 _ACEOF
2492 # FIXME: Cleanup?
2493 if { (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
2499 else
2500 gcc_no_link=yes
2501 fi
2502
2503 if 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=
2509 else
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2516
2517 int
2518 main ()
2519 {
2520
2521 ;
2522 return 0;
2523 }
2524 _ACEOF
2525 ac_clean_files_save=$ac_clean_files
2526 ac_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.
2530 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2531 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2532 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2533 if { (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.
2544 ac_cv_exeext=
2545 # b.out is created by i960 compilers.
2546 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2547 do
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
2569 done
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2575 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: C compiler cannot create executables
2579 See \`config.log' for more details." >&2;}
2580 { (exit 77); exit 77; }; }; }
2581 fi
2582
2583 ac_exeext=$ac_cv_exeext
2584 echo "$as_me:$LINENO: result: $ac_file" >&5
2585 echo "${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.
2589 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2590 echo $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.
2593 if 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
2605 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2606 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2608 If you meant to cross compile, use \`--host'.
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot run C compiled programs.
2611 If you meant to cross compile, use \`--host'.
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }; }
2614 fi
2615 fi
2616 fi
2617 echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2619
2620 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2621 ac_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.
2624 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2625 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2626 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2627 echo "${ECHO_T}$cross_compiling" >&6
2628
2629 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2630 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2631 if { (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'.
2640 for 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
2649 done
2650 else
2651 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2652 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }; }
2658 fi
2659
2660 rm -f conftest$ac_cv_exeext
2661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6
2663
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 fi
2668 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2670 if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2679
2680 int
2681 main ()
2682 {
2683
2684 ;
2685 return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.o conftest.obj
2689 if { (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
2700 done
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2706 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details." >&5
2709 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&2;}
2711 { (exit 1); exit 1; }; }; }
2712 fi
2713
2714 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2715 fi
2716 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2717 echo "${ECHO_T}$ac_cv_objext" >&6
2718 OBJEXT=$ac_cv_objext
2719 ac_objext=$OBJEXT
2720 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2721 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2722 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2731
2732 int
2733 main ()
2734 {
2735 #ifndef __GNUC__
2736 choke me
2737 #endif
2738
2739 ;
2740 return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (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
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 ac_compiler_gnu=no
2771 fi
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2774
2775 fi
2776 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2778 GCC=`test $ac_compiler_gnu = yes && echo yes`
2779 ac_test_CFLAGS=${CFLAGS+set}
2780 ac_save_CFLAGS=$CFLAGS
2781 CFLAGS="-g"
2782 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2783 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2784 if test "${ac_cv_prog_cc_g+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793
2794 int
2795 main ()
2796 {
2797
2798 ;
2799 return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (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
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_cv_prog_cc_g=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 fi
2833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2834 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2835 if test "$ac_test_CFLAGS" = set; then
2836 CFLAGS=$ac_save_CFLAGS
2837 elif 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
2843 else
2844 if test "$GCC" = yes; then
2845 CFLAGS="-O2"
2846 else
2847 CFLAGS=
2848 fi
2849 fi
2850 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2851 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2852 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855 ac_cv_prog_cc_stdc=no
2856 ac_save_CC=$CC
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>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. */
2868 struct buf { int x; };
2869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2870 static char *e (p, i)
2871 char **p;
2872 int i;
2873 {
2874 return p[i];
2875 }
2876 static 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. */
2893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2894
2895 int test (int i, double x);
2896 struct s1 {int (*f) (int a);};
2897 struct s2 {int (*f) (double a);};
2898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2899 int argc;
2900 char **argv;
2901 int
2902 main ()
2903 {
2904 return 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__
2916 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2917 do
2918 CC="$ac_save_CC $ac_arg"
2919 rm -f conftest.$ac_objext
2920 if { (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
2942 break
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 fi
2948 rm -f conftest.err conftest.$ac_objext
2949 done
2950 rm -f conftest.$ac_ext conftest.$ac_objext
2951 CC=$ac_save_CC
2952
2953 fi
2954
2955 case "x$ac_cv_prog_cc_stdc" in
2956 x|xno)
2957 echo "$as_me:$LINENO: result: none needed" >&5
2958 echo "${ECHO_T}none needed" >&6 ;;
2959 *)
2960 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2961 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2962 CC="$CC $ac_cv_prog_cc_stdc" ;;
2963 esac
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.
2969 cat >conftest.$ac_ext <<_ACEOF
2970 #ifndef __cplusplus
2971 choke me
2972 #endif
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (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);'
3003 do
3004 cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 $ac_declaration
3011 #include <stdlib.h>
3012 int
3013 main ()
3014 {
3015 exit (42);
3016 ;
3017 return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (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 :
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 continue
3048 fi
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056 $ac_declaration
3057 int
3058 main ()
3059 {
3060 exit (42);
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (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
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 fi
3093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094 done
3095 rm -f conftest*
3096 if test -n "$ac_declaration"; then
3097 echo '#ifdef __cplusplus' >>confdefs.h
3098 echo $ac_declaration >>confdefs.h
3099 echo '#endif' >>confdefs.h
3100 fi
3101
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 fi
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 DEPDIR="${am__leading_dot}deps"
3114
3115 ac_config_commands="$ac_config_commands depfiles"
3116
3117
3118 am_make=${MAKE-make}
3119 cat > confinc << 'END'
3120 am__doit:
3121 @echo done
3122 .PHONY: am__doit
3123 END
3124 # If we don't find an include directive, just comment out the code.
3125 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3126 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3127 am__include="#"
3128 am__quote=
3129 _am_result=none
3130 # First try GNU make style include.
3131 echo "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'.
3137 if 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
3141 fi
3142 # Now try BSD make style include.
3143 if 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
3150 fi
3151
3152
3153 echo "$as_me:$LINENO: result: $_am_result" >&5
3154 echo "${ECHO_T}$_am_result" >&6
3155 rm -f confinc confmf
3156
3157 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3158 if test "${enable_dependency_tracking+set}" = set; then
3159 enableval="$enable_dependency_tracking"
3160
3161 fi;
3162 if test "x$enable_dependency_tracking" != xno; then
3163 am_depcomp="$ac_aux_dir/depcomp"
3164 AMDEPBACKSLASH='\'
3165 fi
3166
3167
3168 if test "x$enable_dependency_tracking" != xno; then
3169 AMDEP_TRUE=
3170 AMDEP_FALSE='#'
3171 else
3172 AMDEP_TRUE='#'
3173 AMDEP_FALSE=
3174 fi
3175
3176
3177
3178
3179 depcc="$CC" am_compiler_list=
3180
3181 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3182 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3183 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
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
3266 else
3267 am_cv_CC_dependencies_compiler_type=none
3268 fi
3269
3270 fi
3271 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3272 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3273 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3274
3275
3276
3277 if
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='#'
3282 else
3283 am__fastdepCC_TRUE='#'
3284 am__fastdepCC_FALSE=
3285 fi
3286
3287
3288
3289
3290
3291
3292 if test "x$GCC" != "xyes"; then
3293 { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3294 echo "$as_me: error: libssp must be built with GCC" >&2;}
3295 { (exit 1); exit 1; }; }
3296 fi
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3307 fi
3308 if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
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
3316 for ac_c_preproc_warn_flag in '' yes
3317 do
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
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>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
3337 if { (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
3351 else
3352 ac_cpp_err=yes
3353 fi
3354 if test -z "$ac_cpp_err"; then
3355 :
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Broken: fails on valid input.
3361 continue
3362 fi
3363 rm -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
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3374 _ACEOF
3375 if { (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
3389 else
3390 ac_cpp_err=yes
3391 fi
3392 if test -z "$ac_cpp_err"; then
3393 # Broken: success on invalid input.
3394 continue
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 # Passes both tests.
3400 ac_preproc_ok=:
3401 break
3402 fi
3403 rm -f conftest.err conftest.$ac_ext
3404
3405 done
3406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407 rm -f conftest.err conftest.$ac_ext
3408 if $ac_preproc_ok; then
3409 break
3410 fi
3411
3412 done
3413 ac_cv_prog_CPP=$CPP
3414
3415 fi
3416 CPP=$ac_cv_prog_CPP
3417 else
3418 ac_cv_prog_CPP=$CPP
3419 fi
3420 echo "$as_me:$LINENO: result: $CPP" >&5
3421 echo "${ECHO_T}$CPP" >&6
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3424 do
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
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>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
3444 if { (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
3458 else
3459 ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462 :
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468 continue
3469 fi
3470 rm -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
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3481 _ACEOF
3482 if { (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
3496 else
3497 ac_cpp_err=yes
3498 fi
3499 if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3501 continue
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3516 :
3517 else
3518 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3521 See \`config.log' for more details." >&5
3522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3523 See \`config.log' for more details." >&2;}
3524 { (exit 1); exit 1; }; }; }
3525 fi
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534 echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3535 echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3536 save_CFLAGS="$CFLAGS"
3537 CFLAGS="$CFLAGS -fstack-protector -Werror"
3538
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545
3546 void __attribute__((noinline)) bar (char *x)
3547 {
3548 __builtin_memset (x, 0, 64);
3549 }
3550 int
3551 main ()
3552 {
3553 char buf[64]; bar (buf);
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (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
3581 echo "${ECHO_T}yes" >&6
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3588 fi
3589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3590 CFLAGS="$save_CFLAGS"
3591
3592 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3593 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600
3601 void __attribute__((visibility ("hidden"))) bar (void) {}
3602 int
3603 main ()
3604 {
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (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
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 ssp_hidden=no
3638 fi
3639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640 echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3641 echo "${ECHO_T}$ssp_hidden" >&6
3642 if test x$ssp_hidden = xyes; then
3643
3644 cat >>confdefs.h <<\_ACEOF
3645 #define HAVE_HIDDEN_VISIBILITY 1
3646 _ACEOF
3647
3648 fi
3649
3650 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3651 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3652 cat > conftest.map <<EOF
3653 FOO_1.0 {
3654 global: *foo*; bar; local: *;
3655 };
3656 EOF
3657 save_LDFLAGS="$LDFLAGS"
3658 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3659 if 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
3663 else
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
3666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3667 { (exit 1); exit 1; }; }
3668 fi
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 int foo;
3676 int
3677 main ()
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 rm -f conftest.$ac_objext conftest$ac_exeext
3685 if { (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
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 ssp_use_symver=no
3712 fi
3713 rm -f conftest.err conftest.$ac_objext \
3714 conftest$ac_exeext conftest.$ac_ext
3715 fi
3716 LDFLAGS="$save_LDFLAGS"
3717 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3718 echo "${ECHO_T}$ssp_use_symver" >&6
3719
3720
3721 if test "x$ssp_use_symver" = xyes; then
3722 LIBSSP_USE_SYMVER_TRUE=
3723 LIBSSP_USE_SYMVER_FALSE='#'
3724 else
3725 LIBSSP_USE_SYMVER_TRUE='#'
3726 LIBSSP_USE_SYMVER_FALSE=
3727 fi
3728
3729
3730
3731 echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3733 if test "${ac_cv_prog_egrep+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
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
3740 fi
3741 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3742 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3743 EGREP=$ac_cv_prog_egrep
3744
3745
3746 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3748 if test "${ac_cv_header_stdc+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>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
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (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
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 ac_cv_header_stdc=no
3798 fi
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800
3801 if 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
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809 #include <string.h>
3810
3811 _ACEOF
3812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813 $EGREP "memchr" >/dev/null 2>&1; then
3814 :
3815 else
3816 ac_cv_header_stdc=no
3817 fi
3818 rm -f conftest*
3819
3820 fi
3821
3822 if 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
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 #include <stdlib.h>
3831
3832 _ACEOF
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "free" >/dev/null 2>&1; then
3835 :
3836 else
3837 ac_cv_header_stdc=no
3838 fi
3839 rm -f conftest*
3840
3841 fi
3842
3843 if 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 :
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>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)))
3867 int
3868 main ()
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
3878 rm -f conftest$ac_exeext
3879 if { (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 :
3890 else
3891 echo "$as_me: program exited with status $ac_status" >&5
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 ( exit $ac_status )
3896 ac_cv_header_stdc=no
3897 fi
3898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 fi
3901 fi
3902 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3903 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3904 if test $ac_cv_header_stdc = yes; then
3905
3906 cat >>confdefs.h <<\_ACEOF
3907 #define STDC_HEADERS 1
3908 _ACEOF
3909
3910 fi
3911
3912 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3923 inttypes.h stdint.h unistd.h
3924 do
3925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3926 echo "$as_me:$LINENO: checking for $ac_header" >&5
3927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 $ac_includes_default
3938
3939 #include <$ac_header>
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (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"
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 eval "$as_ac_Header=no"
3969 fi
3970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3971 fi
3972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3974 if 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
3979 fi
3980
3981 done
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3993 do
3994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3996 echo "$as_me:$LINENO: checking for $ac_header" >&5
3997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 fi
4001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4003 else
4004 # Is the header compilable?
4005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4007 cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 $ac_includes_default
4014 #include <$ac_header>
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (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
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 ac_header_compiler=no
4044 fi
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4047 echo "${ECHO_T}$ac_header_compiler" >&6
4048
4049 # Is the header present?
4050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <$ac_header>
4059 _ACEOF
4060 if { (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
4074 else
4075 ac_cpp_err=yes
4076 fi
4077 if test -z "$ac_cpp_err"; then
4078 ac_header_preproc=yes
4079 else
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 ac_header_preproc=no
4084 fi
4085 rm -f conftest.err conftest.$ac_ext
4086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4087 echo "${ECHO_T}$ac_header_preproc" >&6
4088
4089 # So? What about this header?
4090 case $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
4093 echo "$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
4095 echo "$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
4100 echo "$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
4102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4104 echo "$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
4106 echo "$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
4108 echo "$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
4110 echo "$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 ;;
4120 esac
4121 echo "$as_me:$LINENO: checking for $ac_header" >&5
4122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 eval "$as_ac_Header=\$ac_header_preproc"
4127 fi
4128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4130
4131 fi
4132 if 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
4137 fi
4138
4139 done
4140
4141
4142 if 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
4153 else
4154
4155
4156
4157 for ac_func in mempcpy strncpy strncat
4158 do
4159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4160 echo "$as_me:$LINENO: checking for $ac_func" >&5
4161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4162 if eval "test \"\${$as_ac_var+set}\" = set"; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
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
4167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4168 { (exit 1); exit 1; }; }
4169 fi
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>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
4195 extern "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. */
4200 char $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)
4205 choke me
4206 #else
4207 char (*f) () = $ac_func;
4208 #endif
4209 #ifdef __cplusplus
4210 }
4211 #endif
4212
4213 int
4214 main ()
4215 {
4216 return f != $ac_func;
4217 ;
4218 return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (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"
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 eval "$as_ac_var=no"
4249 fi
4250 rm -f conftest.err conftest.$ac_objext \
4251 conftest$ac_exeext conftest.$ac_ext
4252 fi
4253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4255 if 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
4260 fi
4261 done
4262
4263 fi
4264
4265 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4266 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4267 if test "$cross_compiling" = yes; then
4268 ssp_have_usable_vsnprintf=undef
4269 else
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276
4277 #include <stdarg.h>
4278 #include <string.h>
4279 #include <stdio.h>
4280 int 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 }
4289 int
4290 main ()
4291 {
4292 char 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
4300 rm -f conftest$ac_exeext
4301 if { (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
4312 else
4313 echo "$as_me: program exited with status $ac_status" >&5
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 ( exit $ac_status )
4318 ssp_have_usable_vsnprintf=undef
4319 fi
4320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4321 fi
4322 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4323 echo "$as_me:$LINENO: result: yes" >&5
4324 echo "${ECHO_T}yes" >&6
4325
4326 cat >>confdefs.h <<\_ACEOF
4327 #define HAVE_USABLE_VSNPRINTF 1
4328 _ACEOF
4329
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4333 fi
4334
4335
4336
4337
4338 macro_version='2.1a'
4339 macro_revision='1.2435'
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352 ltmain="$ac_aux_dir/ltmain.sh"
4353
4354 # Set options
4355
4356 enable_dlopen=no
4357
4358
4359 enable_win32_dll=no
4360
4361
4362 # Check whether --enable-shared or --disable-shared was given.
4363 if test "${enable_shared+set}" = set; then
4364 enableval="$enable_shared"
4365 p=${PACKAGE-default}
4366 case $enableval in
4367 yes) enable_shared=yes ;;
4368 no) enable_shared=no ;;
4369 *)
4370 enable_shared=no
4371 # Look at the argument we got. We use all the common list separators.
4372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4373 for pkg in $enableval; do
4374 IFS="$lt_save_ifs"
4375 if test "X$pkg" = "X$p"; then
4376 enable_shared=yes
4377 fi
4378 done
4379 IFS="$lt_save_ifs"
4380 ;;
4381 esac
4382 else
4383 enable_shared=yes
4384 fi;
4385
4386
4387
4388
4389
4390
4391
4392
4393 # Check whether --enable-static or --disable-static was given.
4394 if test "${enable_static+set}" = set; then
4395 enableval="$enable_static"
4396 p=${PACKAGE-default}
4397 case $enableval in
4398 yes) enable_static=yes ;;
4399 no) enable_static=no ;;
4400 *)
4401 enable_static=no
4402 # Look at the argument we got. We use all the common list separators.
4403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4404 for pkg in $enableval; do
4405 IFS="$lt_save_ifs"
4406 if test "X$pkg" = "X$p"; then
4407 enable_static=yes
4408 fi
4409 done
4410 IFS="$lt_save_ifs"
4411 ;;
4412 esac
4413 else
4414 enable_static=yes
4415 fi;
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425 # Check whether --with-pic or --without-pic was given.
4426 if test "${with_pic+set}" = set; then
4427 withval="$with_pic"
4428 pic_mode="$withval"
4429 else
4430 pic_mode=default
4431 fi;
4432
4433 test -z "$pic_mode" && pic_mode=default
4434
4435
4436
4437
4438
4439
4440
4441 # Check whether --enable-fast-install or --disable-fast-install was given.
4442 if test "${enable_fast_install+set}" = set; then
4443 enableval="$enable_fast_install"
4444 p=${PACKAGE-default}
4445 case $enableval in
4446 yes) enable_fast_install=yes ;;
4447 no) enable_fast_install=no ;;
4448 *)
4449 enable_fast_install=no
4450 # Look at the argument we got. We use all the common list separators.
4451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4452 for pkg in $enableval; do
4453 IFS="$lt_save_ifs"
4454 if test "X$pkg" = "X$p"; then
4455 enable_fast_install=yes
4456 fi
4457 done
4458 IFS="$lt_save_ifs"
4459 ;;
4460 esac
4461 else
4462 enable_fast_install=yes
4463 fi;
4464
4465
4466
4467
4468
4469
4470
4471
4472 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4473 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4474 if test "${lt_cv_path_SED+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 # Loop through the user's path and test for sed and gsed.
4478 # Then use that list of sed's as ones to test for truncation.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for lt_ac_prog in sed gsed; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4487 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4488 fi
4489 done
4490 done
4491 done
4492 IFS=$as_save_IFS
4493 lt_ac_max=0
4494 lt_ac_count=0
4495 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4496 # along with /bin/sed that truncates output.
4497 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4498 test ! -f $lt_ac_sed && continue
4499 cat /dev/null > conftest.in
4500 lt_ac_count=0
4501 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4502 # Check for GNU sed and select it if it is found.
4503 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4504 lt_cv_path_SED=$lt_ac_sed
4505 break
4506 fi
4507 while true; do
4508 cat conftest.in conftest.in >conftest.tmp
4509 mv conftest.tmp conftest.in
4510 cp conftest.in conftest.nl
4511 echo >>conftest.nl
4512 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4513 cmp -s conftest.out conftest.nl || break
4514 # 10000 chars as input seems more than enough
4515 test $lt_ac_count -gt 10 && break
4516 lt_ac_count=`expr $lt_ac_count + 1`
4517 if test $lt_ac_count -gt $lt_ac_max; then
4518 lt_ac_max=$lt_ac_count
4519 lt_cv_path_SED=$lt_ac_sed
4520 fi
4521 done
4522 done
4523
4524 fi
4525
4526 SED=$lt_cv_path_SED
4527
4528 echo "$as_me:$LINENO: result: $SED" >&5
4529 echo "${ECHO_T}$SED" >&6
4530
4531 test -z "$SED" && SED=sed
4532 Xsed="$SED -e 1s/^X//"
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544 echo "$as_me:$LINENO: checking for fgrep" >&5
4545 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4546 if test "${ac_cv_prog_fgrep+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4550 then ac_cv_prog_fgrep='grep -F'
4551 else ac_cv_prog_fgrep='fgrep'
4552 fi
4553 fi
4554 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4555 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4556 FGREP=$ac_cv_prog_fgrep
4557
4558
4559 test -z "$GREP" && GREP=grep
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4580 if test "${with_gnu_ld+set}" = set; then
4581 withval="$with_gnu_ld"
4582 test "$withval" = no || with_gnu_ld=yes
4583 else
4584 with_gnu_ld=no
4585 fi;
4586 ac_prog=ld
4587 if test "$GCC" = yes; then
4588 # Check if gcc -print-prog-name=ld gives a path.
4589 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4590 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4591 case $host in
4592 *-*-mingw*)
4593 # gcc leaves a trailing carriage return which upsets mingw
4594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4595 *)
4596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4597 esac
4598 case $ac_prog in
4599 # Accept absolute paths.
4600 [\\/]* | ?:[\\/]*)
4601 re_direlt='/[^/][^/]*/\.\./'
4602 # Canonicalize the pathname of ld
4603 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4604 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4605 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4606 done
4607 test -z "$LD" && LD="$ac_prog"
4608 ;;
4609 "")
4610 # If it fails, then pretend we aren't using GCC.
4611 ac_prog=ld
4612 ;;
4613 *)
4614 # If it is relative, then search for the first ld in PATH.
4615 with_gnu_ld=unknown
4616 ;;
4617 esac
4618 elif test "$with_gnu_ld" = yes; then
4619 echo "$as_me:$LINENO: checking for GNU ld" >&5
4620 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4621 else
4622 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4623 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4624 fi
4625 if test "${lt_cv_path_LD+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 if test -z "$LD"; then
4629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4630 for ac_dir in $PATH; do
4631 IFS="$lt_save_ifs"
4632 test -z "$ac_dir" && ac_dir=.
4633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4634 lt_cv_path_LD="$ac_dir/$ac_prog"
4635 # Check to see if the program is GNU ld. I'd rather use --version,
4636 # but apparently some variants of GNU ld only accept -v.
4637 # Break only if it was the GNU/non-GNU ld that we prefer.
4638 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4639 *GNU* | *'with BFD'*)
4640 test "$with_gnu_ld" != no && break
4641 ;;
4642 *)
4643 test "$with_gnu_ld" != yes && break
4644 ;;
4645 esac
4646 fi
4647 done
4648 IFS="$lt_save_ifs"
4649 else
4650 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4651 fi
4652 fi
4653
4654 LD="$lt_cv_path_LD"
4655 if test -n "$LD"; then
4656 echo "$as_me:$LINENO: result: $LD" >&5
4657 echo "${ECHO_T}$LD" >&6
4658 else
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4661 fi
4662 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4663 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4664 { (exit 1); exit 1; }; }
4665 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4666 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4667 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4671 case `$LD -v 2>&1 </dev/null` in
4672 *GNU* | *'with BFD'*)
4673 lt_cv_prog_gnu_ld=yes
4674 ;;
4675 *)
4676 lt_cv_prog_gnu_ld=no
4677 ;;
4678 esac
4679 fi
4680 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4681 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4682 with_gnu_ld=$lt_cv_prog_gnu_ld
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4694 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4695 if test "${lt_cv_path_NM+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 if test -n "$NM"; then
4699 # Let the user override the test.
4700 lt_cv_path_NM="$NM"
4701 else
4702 lt_nm_to_check="${ac_tool_prefix}nm"
4703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4704 lt_nm_to_check="$lt_nm_to_check nm"
4705 fi
4706 for lt_tmp_nm in $lt_nm_to_check; do
4707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4709 IFS="$lt_save_ifs"
4710 test -z "$ac_dir" && ac_dir=.
4711 tmp_nm="$ac_dir/$lt_tmp_nm"
4712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4713 # Check to see if the nm accepts a BSD-compat flag.
4714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4715 # nm: unknown option "B" ignored
4716 # Tru64's nm complains that /dev/null is an invalid object file
4717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4718 */dev/null* | *'Invalid file or object type'*)
4719 lt_cv_path_NM="$tmp_nm -B"
4720 break
4721 ;;
4722 *)
4723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4724 */dev/null*)
4725 lt_cv_path_NM="$tmp_nm -p"
4726 break
4727 ;;
4728 *)
4729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4730 continue # so that we can try to find one that supports BSD flags
4731 ;;
4732 esac
4733 ;;
4734 esac
4735 fi
4736 done
4737 IFS="$lt_save_ifs"
4738 done
4739 : ${lt_cv_path_NM=no}
4740 fi
4741 fi
4742 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4743 echo "${ECHO_T}$lt_cv_path_NM" >&6
4744 if test "$lt_cv_path_NM" != "no"; then
4745 NM="$lt_cv_path_NM"
4746 else
4747 # Didn't find any BSD compatible name lister, look for dumpbin.
4748 if test -n "$ac_tool_prefix"; then
4749 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4750 do
4751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4753 echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4755 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758 if test -n "$DUMPBIN"; then
4759 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774
4775 fi
4776 fi
4777 DUMPBIN=$ac_cv_prog_DUMPBIN
4778 if test -n "$DUMPBIN"; then
4779 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4780 echo "${ECHO_T}$DUMPBIN" >&6
4781 else
4782 echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6
4784 fi
4785
4786 test -n "$DUMPBIN" && break
4787 done
4788 fi
4789 if test -z "$DUMPBIN"; then
4790 ac_ct_DUMPBIN=$DUMPBIN
4791 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4792 do
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4797 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800 if test -n "$ac_ct_DUMPBIN"; then
4801 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4813 fi
4814 done
4815 done
4816
4817 fi
4818 fi
4819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4820 if test -n "$ac_ct_DUMPBIN"; then
4821 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4822 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4823 else
4824 echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4826 fi
4827
4828 test -n "$ac_ct_DUMPBIN" && break
4829 done
4830 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4831
4832 DUMPBIN=$ac_ct_DUMPBIN
4833 fi
4834
4835
4836 if test "$DUMPBIN" != ":"; then
4837 NM="$DUMPBIN"
4838 fi
4839 fi
4840 test -z "$NM" && NM=nm
4841
4842
4843
4844
4845
4846
4847 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4848 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4849 if test "${lt_cv_nm_interface+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852 lt_cv_nm_interface="BSD nm"
4853 echo "int some_variable = 0;" > conftest.$ac_ext
4854 (eval echo "\"\$as_me:4854: $ac_compile\"" >&5)
4855 (eval "$ac_compile" 2>conftest.err)
4856 cat conftest.err >&5
4857 (eval echo "\"\$as_me:4857: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4858 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4859 cat conftest.err >&5
4860 (eval echo "\"\$as_me:4860: output\"" >&5)
4861 cat conftest.out >&5
4862 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4863 lt_cv_nm_interface="MS dumpbin"
4864 fi
4865 rm -f conftest*
4866 fi
4867 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4868 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4869
4870 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4871 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4872 LN_S=$as_ln_s
4873 if test "$LN_S" = "ln -s"; then
4874 echo "$as_me:$LINENO: result: yes" >&5
4875 echo "${ECHO_T}yes" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4878 echo "${ECHO_T}no, using $LN_S" >&6
4879 fi
4880
4881 # find the maximum length of command line arguments
4882 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4883 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4884 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 i=0
4888 teststring="ABCD"
4889
4890 case $build_os in
4891 msdosdjgpp*)
4892 # On DJGPP, this test can blow up pretty badly due to problems in libc
4893 # (any single argument exceeding 2000 bytes causes a buffer overrun
4894 # during glob expansion). Even if it were fixed, the result of this
4895 # check would be larger than it should be.
4896 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4897 ;;
4898
4899 gnu*)
4900 # Under GNU Hurd, this test is not required because there is
4901 # no limit to the length of command line arguments.
4902 # Libtool will interpret -1 as no limit whatsoever
4903 lt_cv_sys_max_cmd_len=-1;
4904 ;;
4905
4906 cygwin* | mingw*)
4907 # On Win9x/ME, this test blows up -- it succeeds, but takes
4908 # about 5 minutes as the teststring grows exponentially.
4909 # Worse, since 9x/ME are not pre-emptively multitasking,
4910 # you end up with a "frozen" computer, even though with patience
4911 # the test eventually succeeds (with a max line length of 256k).
4912 # Instead, let's just punt: use the minimum linelength reported by
4913 # all of the supported platforms: 8192 (on NT/2K/XP).
4914 lt_cv_sys_max_cmd_len=8192;
4915 ;;
4916
4917 amigaos*)
4918 # On AmigaOS with pdksh, this test takes hours, literally.
4919 # So we just punt and use a minimum line length of 8192.
4920 lt_cv_sys_max_cmd_len=8192;
4921 ;;
4922
4923 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4924 # This has been around since 386BSD, at least. Likely further.
4925 if test -x /sbin/sysctl; then
4926 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4927 elif test -x /usr/sbin/sysctl; then
4928 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4929 else
4930 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4931 fi
4932 # And add a safety zone
4933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4935 ;;
4936
4937 interix*)
4938 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4939 lt_cv_sys_max_cmd_len=196608
4940 ;;
4941
4942 osf*)
4943 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4944 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4945 # nice to cause kernel panics so lets avoid the loop below.
4946 # First set a reasonable default.
4947 lt_cv_sys_max_cmd_len=16384
4948 #
4949 if test -x /sbin/sysconfig; then
4950 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4951 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4952 esac
4953 fi
4954 ;;
4955 sco3.2v5*)
4956 lt_cv_sys_max_cmd_len=102400
4957 ;;
4958 sysv5* | sco5v6* | sysv4.2uw2*)
4959 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4960 if test -n "$kargmax"; then
4961 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4962 else
4963 lt_cv_sys_max_cmd_len=32768
4964 fi
4965 ;;
4966 *)
4967 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4968 if test -n $lt_cv_sys_max_cmd_len; then
4969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4971 else
4972 # Make teststring a little bigger before we do anything with it.
4973 # a 1K string should be a reasonable start.
4974 for i in 1 2 3 4 5 6 7 8 ; do
4975 teststring=$teststring$teststring
4976 done
4977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4978 # If test is not a shell built-in, we'll probably end up computing a
4979 # maximum length that is only half of the actual maximum length, but
4980 # we can't tell.
4981 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4982 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4983 test $i != 17 # 1/2 MB should be enough
4984 do
4985 i=`expr $i + 1`
4986 teststring=$teststring$teststring
4987 done
4988 # Only check the string length outside the loop.
4989 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4990 teststring=
4991 # Add a significant safety factor because C++ compilers can tack on
4992 # massive amounts of additional arguments before passing them to the
4993 # linker. It appears as though 1/2 is a usable value.
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4995 fi
4996 ;;
4997 esac
4998
4999 fi
5000
5001 if test -n $lt_cv_sys_max_cmd_len ; then
5002 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5003 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5004 else
5005 echo "$as_me:$LINENO: result: none" >&5
5006 echo "${ECHO_T}none" >&6
5007 fi
5008 max_cmd_len=$lt_cv_sys_max_cmd_len
5009
5010
5011
5012
5013
5014
5015
5016 : ${CP="cp -f"}
5017 : ${MV="mv -f"}
5018 : ${RM="rm -f"}
5019
5020 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5021 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5022 # Try some XSI features
5023 xsi_shell=no
5024 ( _lt_dummy="a/b/c"
5025 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5026 = c,a/b,, ) >/dev/null 2>&1 \
5027 && xsi_shell=yes
5028 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5029 echo "${ECHO_T}$xsi_shell" >&6
5030
5031
5032 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5033 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5034 lt_shell_append=no
5035 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5036 >/dev/null 2>&1 \
5037 && lt_shell_append=yes
5038 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5039 echo "${ECHO_T}$lt_shell_append" >&6
5040
5041
5042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5043 lt_unset=unset
5044 else
5045 lt_unset=false
5046 fi
5047
5048
5049
5050
5051
5052 # test EBCDIC or ASCII
5053 case `echo X|tr X '\101'` in
5054 A) # ASCII based system
5055 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5056 lt_SP2NL='tr \040 \012'
5057 lt_NL2SP='tr \015\012 \040\040'
5058 ;;
5059 *) # EBCDIC based system
5060 lt_SP2NL='tr \100 \n'
5061 lt_NL2SP='tr \r\n \100\100'
5062 ;;
5063 esac
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5074 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5075 if test "${lt_cv_ld_reload_flag+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 lt_cv_ld_reload_flag='-r'
5079 fi
5080 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5081 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5082 reload_flag=$lt_cv_ld_reload_flag
5083 case $reload_flag in
5084 "" | " "*) ;;
5085 *) reload_flag=" $reload_flag" ;;
5086 esac
5087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5088 case $host_os in
5089 darwin*)
5090 if test "$GCC" = yes; then
5091 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5092 else
5093 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5094 fi
5095 ;;
5096 esac
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5108 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5109 if test "${lt_cv_deplibs_check_method+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 lt_cv_file_magic_cmd='$MAGIC_CMD'
5113 lt_cv_file_magic_test_file=
5114 lt_cv_deplibs_check_method='unknown'
5115 # Need to set the preceding variable on all platforms that support
5116 # interlibrary dependencies.
5117 # 'none' -- dependencies not supported.
5118 # `unknown' -- same as none, but documents that we really don't know.
5119 # 'pass_all' -- all dependencies passed with no checks.
5120 # 'test_compile' -- check by making test program.
5121 # 'file_magic [[regex]]' -- check by looking for files in library path
5122 # which responds to the $file_magic_cmd with a given extended regex.
5123 # If you have `file' or equivalent on your system and you're not sure
5124 # whether `pass_all' will *always* work, you probably want this one.
5125
5126 case $host_os in
5127 aix[4-9]*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130
5131 beos*)
5132 lt_cv_deplibs_check_method=pass_all
5133 ;;
5134
5135 bsdi[45]*)
5136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5137 lt_cv_file_magic_cmd='/usr/bin/file -L'
5138 lt_cv_file_magic_test_file=/shlib/libc.so
5139 ;;
5140
5141 cygwin*)
5142 # func_win32_libid is a shell function defined in ltmain.sh
5143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5144 lt_cv_file_magic_cmd='func_win32_libid'
5145 ;;
5146
5147 mingw* | pw32*)
5148 # Base MSYS/MinGW do not provide the 'file' command needed by
5149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5150 # unless we find 'file', for example because we are cross-compiling.
5151 if ( file / ) >/dev/null 2>&1; then
5152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5153 lt_cv_file_magic_cmd='func_win32_libid'
5154 else
5155 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5156 lt_cv_file_magic_cmd='$OBJDUMP -f'
5157 fi
5158 ;;
5159
5160 darwin* | rhapsody*)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163
5164 freebsd* | dragonfly*)
5165 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5166 case $host_cpu in
5167 i*86 )
5168 # Not sure whether the presence of OpenBSD here was a mistake.
5169 # Let's accept both of them until this is cleared up.
5170 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5171 lt_cv_file_magic_cmd=/usr/bin/file
5172 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5173 ;;
5174 esac
5175 else
5176 lt_cv_deplibs_check_method=pass_all
5177 fi
5178 ;;
5179
5180 gnu*)
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183
5184 hpux10.20* | hpux11*)
5185 lt_cv_file_magic_cmd=/usr/bin/file
5186 case $host_cpu in
5187 ia64*)
5188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5189 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5190 ;;
5191 hppa*64*)
5192 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]'
5193 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5194 ;;
5195 *)
5196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5197 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5198 ;;
5199 esac
5200 ;;
5201
5202 interix[3-9]*)
5203 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5205 ;;
5206
5207 irix5* | irix6* | nonstopux*)
5208 case $LD in
5209 *-32|*"-32 ") libmagic=32-bit;;
5210 *-n32|*"-n32 ") libmagic=N32;;
5211 *-64|*"-64 ") libmagic=64-bit;;
5212 *) libmagic=never-match;;
5213 esac
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216
5217 # This must be Linux ELF.
5218 linux* | k*bsd*-gnu)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222 netbsd*)
5223 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5225 else
5226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5227 fi
5228 ;;
5229
5230 newos6*)
5231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5232 lt_cv_file_magic_cmd=/usr/bin/file
5233 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5234 ;;
5235
5236 *nto* | *qnx*)
5237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240 openbsd*)
5241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5243 else
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5245 fi
5246 ;;
5247
5248 osf3* | osf4* | osf5*)
5249 lt_cv_deplibs_check_method=pass_all
5250 ;;
5251
5252 rdos*)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255
5256 solaris*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 sysv4 | sysv4.3*)
5265 case $host_vendor in
5266 motorola)
5267 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]'
5268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5269 ;;
5270 ncr)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273 sequent)
5274 lt_cv_file_magic_cmd='/bin/file'
5275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5276 ;;
5277 sni)
5278 lt_cv_file_magic_cmd='/bin/file'
5279 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5280 lt_cv_file_magic_test_file=/lib/libc.so
5281 ;;
5282 siemens)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285 pc)
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288 esac
5289 ;;
5290
5291 tpf*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294 esac
5295
5296 fi
5297 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5298 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5299 file_magic_cmd=$lt_cv_file_magic_cmd
5300 deplibs_check_method=$lt_cv_deplibs_check_method
5301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}ar; ac_word=$2
5317 echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319 if test "${ac_cv_prog_AR+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 if test -n "$AR"; then
5323 ac_cv_prog_AR="$AR" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_AR="${ac_tool_prefix}ar"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338
5339 fi
5340 fi
5341 AR=$ac_cv_prog_AR
5342 if test -n "$AR"; then
5343 echo "$as_me:$LINENO: result: $AR" >&5
5344 echo "${ECHO_T}$AR" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5348 fi
5349
5350 fi
5351 if test -z "$ac_cv_prog_AR"; then
5352 ac_ct_AR=$AR
5353 # Extract the first word of "ar", so it can be a program name with args.
5354 set dummy ar; ac_word=$2
5355 echo "$as_me:$LINENO: checking for $ac_word" >&5
5356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 if test -n "$ac_ct_AR"; then
5361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_ac_ct_AR="ar"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376
5377 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5378 fi
5379 fi
5380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5381 if test -n "$ac_ct_AR"; then
5382 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5383 echo "${ECHO_T}$ac_ct_AR" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5387 fi
5388
5389 AR=$ac_ct_AR
5390 else
5391 AR="$ac_cv_prog_AR"
5392 fi
5393
5394 test -z "$AR" && AR=ar
5395 test -z "$AR_FLAGS" && AR_FLAGS=cru
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}strip; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_prog_STRIP+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 if test -n "$STRIP"; then
5416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429 done
5430 done
5431
5432 fi
5433 fi
5434 STRIP=$ac_cv_prog_STRIP
5435 if test -n "$STRIP"; then
5436 echo "$as_me:$LINENO: result: $STRIP" >&5
5437 echo "${ECHO_T}$STRIP" >&6
5438 else
5439 echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5441 fi
5442
5443 fi
5444 if test -z "$ac_cv_prog_STRIP"; then
5445 ac_ct_STRIP=$STRIP
5446 # Extract the first word of "strip", so it can be a program name with args.
5447 set dummy strip; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 if test -n "$ac_ct_STRIP"; then
5454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_STRIP="strip"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467 done
5468 done
5469
5470 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5471 fi
5472 fi
5473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5474 if test -n "$ac_ct_STRIP"; then
5475 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5476 echo "${ECHO_T}$ac_ct_STRIP" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5480 fi
5481
5482 STRIP=$ac_ct_STRIP
5483 else
5484 STRIP="$ac_cv_prog_STRIP"
5485 fi
5486
5487 test -z "$STRIP" && STRIP=:
5488
5489
5490
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5497 echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499 if test "${ac_cv_prog_RANLIB+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 if test -n "$RANLIB"; then
5503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518
5519 fi
5520 fi
5521 RANLIB=$ac_cv_prog_RANLIB
5522 if test -n "$RANLIB"; then
5523 echo "$as_me:$LINENO: result: $RANLIB" >&5
5524 echo "${ECHO_T}$RANLIB" >&6
5525 else
5526 echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6
5528 fi
5529
5530 fi
5531 if test -z "$ac_cv_prog_RANLIB"; then
5532 ac_ct_RANLIB=$RANLIB
5533 # Extract the first word of "ranlib", so it can be a program name with args.
5534 set dummy ranlib; ac_word=$2
5535 echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 if test -n "$ac_ct_RANLIB"; then
5541 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_ac_ct_RANLIB="ranlib"
5551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556
5557 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5558 fi
5559 fi
5560 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5561 if test -n "$ac_ct_RANLIB"; then
5562 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5563 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5564 else
5565 echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5567 fi
5568
5569 RANLIB=$ac_ct_RANLIB
5570 else
5571 RANLIB="$ac_cv_prog_RANLIB"
5572 fi
5573
5574 test -z "$RANLIB" && RANLIB=:
5575
5576
5577
5578
5579
5580
5581 # Determine commands to create old-style static archives.
5582 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5583 old_postinstall_cmds='chmod 644 $oldlib'
5584 old_postuninstall_cmds=
5585
5586 if test -n "$RANLIB"; then
5587 case $host_os in
5588 openbsd*)
5589 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5590 ;;
5591 *)
5592 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5593 ;;
5594 esac
5595 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5596 fi
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631 # If no C compiler was specified, use CC.
5632 LTCC=${LTCC-"$CC"}
5633
5634 # If no C compiler flags were specified, use CFLAGS.
5635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5636
5637 # Allow CC to be a program name with arguments.
5638 compiler=$CC
5639
5640
5641 # Check for command to grab the raw symbol name followed by C symbol from nm.
5642 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5643 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5644 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647
5648 # These are sane defaults that work on at least a few old systems.
5649 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5650
5651 # Character class describing NM global symbol codes.
5652 symcode='[BCDEGRST]'
5653
5654 # Regexp to match symbols that can be accessed directly from C.
5655 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5656
5657 # Define system-specific variables.
5658 case $host_os in
5659 aix*)
5660 symcode='[BCDT]'
5661 ;;
5662 cygwin* | mingw* | pw32*)
5663 symcode='[ABCDGISTW]'
5664 ;;
5665 hpux*)
5666 if test "$host_cpu" = ia64; then
5667 symcode='[ABCDEGRST]'
5668 fi
5669 ;;
5670 irix* | nonstopux*)
5671 symcode='[BCDEGRST]'
5672 ;;
5673 osf*)
5674 symcode='[BCDEGQRST]'
5675 ;;
5676 solaris*)
5677 symcode='[BDRT]'
5678 ;;
5679 sco3.2v5*)
5680 symcode='[DT]'
5681 ;;
5682 sysv4.2uw2*)
5683 symcode='[DT]'
5684 ;;
5685 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5686 symcode='[ABDT]'
5687 ;;
5688 sysv4)
5689 symcode='[DFNSTU]'
5690 ;;
5691 esac
5692
5693 # If we're using GNU nm, then use its standard symbol codes.
5694 case `$NM -V 2>&1` in
5695 *GNU* | *'with BFD'*)
5696 symcode='[ABCDGIRSTW]' ;;
5697 esac
5698
5699 # Transform an extracted symbol line into a proper C declaration.
5700 # Some systems (esp. on ia64) link data and code symbols differently,
5701 # so use this general approach.
5702 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5703
5704 # Transform an extracted symbol line into symbol name and symbol address
5705 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5706
5707 # Handle CRLF in mingw tool chain
5708 opt_cr=
5709 case $build_os in
5710 mingw*)
5711 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5712 ;;
5713 esac
5714
5715 # Try without a prefix underscore, then with it.
5716 for ac_symprfx in "" "_"; do
5717
5718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5719 symxfrm="\\1 $ac_symprfx\\2 \\2"
5720
5721 # Write the raw and C identifiers.
5722 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5723 # Fake it for dumpbin and say T for any non-static function
5724 # and D for any global variable.
5725 # Also find C++ and __fastcall symbols from MSVC++,
5726 # which start with @ or ?.
5727 lt_cv_sys_global_symbol_pipe="$AWK '"\
5728 " {last_section=section; section=\$ 3};"\
5729 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5730 " \$ 0!~/External *\|/{next};"\
5731 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5732 " {if(hide[section]) next};"\
5733 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5734 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5735 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5736 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5737 " ' prfx=^$ac_symprfx"
5738 else
5739 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5740 fi
5741
5742 # Check to see that the pipe works correctly.
5743 pipe_works=no
5744
5745 rm -f conftest*
5746 cat > conftest.$ac_ext <<_LT_EOF
5747 #ifdef __cplusplus
5748 extern "C" {
5749 #endif
5750 char nm_test_var;
5751 void nm_test_func(void);
5752 void nm_test_func(void){}
5753 #ifdef __cplusplus
5754 }
5755 #endif
5756 int main(){nm_test_var='a';nm_test_func();return(0);}
5757 _LT_EOF
5758
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; then
5764 # Now try to grab the symbols.
5765 nlist=conftest.nm
5766 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5767 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && test -s "$nlist"; then
5771 # Try sorting and uniquifying the output.
5772 if sort "$nlist" | uniq > "$nlist"T; then
5773 mv -f "$nlist"T "$nlist"
5774 else
5775 rm -f "$nlist"T
5776 fi
5777
5778 # Make sure that we snagged all the symbols we need.
5779 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5780 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5781 cat <<_LT_EOF > conftest.$ac_ext
5782 #ifdef __cplusplus
5783 extern "C" {
5784 #endif
5785
5786 _LT_EOF
5787 # Now generate the symbol file.
5788 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5789
5790 cat <<_LT_EOF >> conftest.$ac_ext
5791
5792 /* The mapping between symbol names and symbols. */
5793 const struct {
5794 const char *name;
5795 void *address;
5796 }
5797 lt__PROGRAM__LTX_preloaded_symbols[] =
5798 {
5799 { "@PROGRAM@", (void *) 0 },
5800 _LT_EOF
5801 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5802 cat <<\_LT_EOF >> conftest.$ac_ext
5803 {0, (void *) 0}
5804 };
5805
5806 /* This works around a problem in FreeBSD linker */
5807 #ifdef FREEBSD_WORKAROUND
5808 static const void *lt_preloaded_setup() {
5809 return lt__PROGRAM__LTX_preloaded_symbols;
5810 }
5811 #endif
5812
5813 #ifdef __cplusplus
5814 }
5815 #endif
5816 _LT_EOF
5817 # Now try linking the two files.
5818 mv conftest.$ac_objext conftstm.$ac_objext
5819 lt_save_LIBS="$LIBS"
5820 lt_save_CFLAGS="$CFLAGS"
5821 LIBS="conftstm.$ac_objext"
5822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5824 (eval $ac_link) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5828 pipe_works=yes
5829 fi
5830 LIBS="$lt_save_LIBS"
5831 CFLAGS="$lt_save_CFLAGS"
5832 else
5833 echo "cannot find nm_test_func in $nlist" >&5
5834 fi
5835 else
5836 echo "cannot find nm_test_var in $nlist" >&5
5837 fi
5838 else
5839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5840 fi
5841 else
5842 echo "$progname: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5844 fi
5845 rm -f conftest* conftst*
5846
5847 # Do not use the global_symbol_pipe unless it works.
5848 if test "$pipe_works" = yes; then
5849 break
5850 else
5851 lt_cv_sys_global_symbol_pipe=
5852 fi
5853 done
5854
5855 fi
5856
5857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5858 lt_cv_sys_global_symbol_to_cdecl=
5859 fi
5860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5861 echo "$as_me:$LINENO: result: failed" >&5
5862 echo "${ECHO_T}failed" >&6
5863 else
5864 echo "$as_me:$LINENO: result: ok" >&5
5865 echo "${ECHO_T}ok" >&6
5866 fi
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5885 if test "${enable_libtool_lock+set}" = set; then
5886 enableval="$enable_libtool_lock"
5887
5888 fi;
5889 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5890
5891 # Some flags need to be propagated to the compiler or linker for good
5892 # libtool support.
5893 case $host in
5894 ia64-*-hpux*)
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; then
5902 case `/usr/bin/file conftest.$ac_objext` in
5903 *ELF-32*)
5904 HPUX_IA64_MODE="32"
5905 ;;
5906 *ELF-64*)
5907 HPUX_IA64_MODE="64"
5908 ;;
5909 esac
5910 fi
5911 rm -rf conftest*
5912 ;;
5913 *-*-irix6*)
5914 # Find out which ABI we are using.
5915 echo '#line 5915 "configure"' > conftest.$ac_ext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917 (eval $ac_compile) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; then
5921 if test "$lt_cv_prog_gnu_ld" = yes; then
5922 case `/usr/bin/file conftest.$ac_objext` in
5923 *32-bit*)
5924 LD="${LD-ld} -melf32bsmip"
5925 ;;
5926 *N32*)
5927 LD="${LD-ld} -melf32bmipn32"
5928 ;;
5929 *64-bit*)
5930 LD="${LD-ld} -melf64bmip"
5931 ;;
5932 esac
5933 else
5934 case `/usr/bin/file conftest.$ac_objext` in
5935 *32-bit*)
5936 LD="${LD-ld} -32"
5937 ;;
5938 *N32*)
5939 LD="${LD-ld} -n32"
5940 ;;
5941 *64-bit*)
5942 LD="${LD-ld} -64"
5943 ;;
5944 esac
5945 fi
5946 fi
5947 rm -rf conftest*
5948 ;;
5949
5950 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5951 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5952 # Find out which ABI we are using.
5953 echo 'int i;' > conftest.$ac_ext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; then
5959 case `/usr/bin/file conftest.o` in
5960 *32-bit*)
5961 case $host in
5962 x86_64-*kfreebsd*-gnu)
5963 LD="${LD-ld} -m elf_i386_fbsd"
5964 ;;
5965 x86_64-*linux*)
5966 LD="${LD-ld} -m elf_i386"
5967 ;;
5968 ppc64-*linux*|powerpc64-*linux*)
5969 LD="${LD-ld} -m elf32ppclinux"
5970 ;;
5971 s390x-*linux*)
5972 LD="${LD-ld} -m elf_s390"
5973 ;;
5974 sparc64-*linux*)
5975 LD="${LD-ld} -m elf32_sparc"
5976 ;;
5977 esac
5978 ;;
5979 *64-bit*)
5980 case $host in
5981 x86_64-*kfreebsd*-gnu)
5982 LD="${LD-ld} -m elf_x86_64_fbsd"
5983 ;;
5984 x86_64-*linux*)
5985 LD="${LD-ld} -m elf_x86_64"
5986 ;;
5987 ppc*-*linux*|powerpc*-*linux*)
5988 LD="${LD-ld} -m elf64ppc"
5989 ;;
5990 s390*-*linux*|s390*-*tpf*)
5991 LD="${LD-ld} -m elf64_s390"
5992 ;;
5993 sparc*-*linux*)
5994 LD="${LD-ld} -m elf64_sparc"
5995 ;;
5996 esac
5997 ;;
5998 esac
5999 fi
6000 rm -rf conftest*
6001 ;;
6002
6003 *-*-sco3.2v5*)
6004 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6005 SAVE_CFLAGS="$CFLAGS"
6006 CFLAGS="$CFLAGS -belf"
6007 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6008 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6009 if test "${lt_cv_cc_needs_belf+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 ac_ext=c
6013 ac_cpp='$CPP $CPPFLAGS'
6014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017
6018 if test x$gcc_no_link = xyes; then
6019 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6021 { (exit 1); exit 1; }; }
6022 fi
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029
6030 int
6031 main ()
6032 {
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag"
6048 || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 lt_cv_cc_needs_belf=yes
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065 lt_cv_cc_needs_belf=no
6066 fi
6067 rm -f conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
6075 fi
6076 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6077 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6078 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6079 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6080 CFLAGS="$SAVE_CFLAGS"
6081 fi
6082 ;;
6083 sparc*-*solaris*)
6084 # Find out which ABI we are using.
6085 echo 'int i;' > conftest.$ac_ext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6087 (eval $ac_compile) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; then
6091 case `/usr/bin/file conftest.o` in
6092 *64-bit*)
6093 case $lt_cv_prog_gnu_ld in
6094 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6095 *) LD="${LD-ld} -64" ;;
6096 esac
6097 ;;
6098 esac
6099 fi
6100 rm -rf conftest*
6101 ;;
6102 esac
6103
6104 need_locks="$enable_libtool_lock"
6105
6106
6107 for ac_header in dlfcn.h
6108 do
6109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110 echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h. */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 $ac_includes_default
6122
6123 #include <$ac_header>
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 eval "$as_ac_Header=yes"
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152 eval "$as_ac_Header=no"
6153 fi
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155 fi
6156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6159 cat >>confdefs.h <<_ACEOF
6160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6161 _ACEOF
6162
6163 fi
6164
6165 done
6166
6167
6168
6169 # This can be used to rebuild libtool when needed
6170 LIBTOOL_DEPS="$ltmain"
6171
6172 # Always use our own libtool.
6173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 test -z "$LN_S" && LN_S="ln -s"
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 if test -n "${ZSH_VERSION+set}" ; then
6215 setopt NO_GLOB_SUBST
6216 fi
6217
6218 echo "$as_me:$LINENO: checking for objdir" >&5
6219 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6220 if test "${lt_cv_objdir+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 rm -f .libs 2>/dev/null
6224 mkdir .libs 2>/dev/null
6225 if test -d .libs; then
6226 lt_cv_objdir=.libs
6227 else
6228 # MS-DOS does not allow filenames that begin with a dot.
6229 lt_cv_objdir=_libs
6230 fi
6231 rmdir .libs 2>/dev/null
6232 fi
6233 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6234 echo "${ECHO_T}$lt_cv_objdir" >&6
6235 objdir=$lt_cv_objdir
6236
6237
6238
6239
6240
6241 cat >>confdefs.h <<_ACEOF
6242 #define LT_OBJDIR "$lt_cv_objdir/"
6243 _ACEOF
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 case $host_os in
6262 aix3*)
6263 # AIX sometimes has problems with the GCC collect2 program. For some
6264 # reason, if we set the COLLECT_NAMES environment variable, the problems
6265 # vanish in a puff of smoke.
6266 if test "X${COLLECT_NAMES+set}" != Xset; then
6267 COLLECT_NAMES=
6268 export COLLECT_NAMES
6269 fi
6270 ;;
6271 esac
6272
6273 # Sed substitution that helps us do robust quoting. It backslashifies
6274 # metacharacters that are still active within double-quoted strings.
6275 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6276
6277 # Same as above, but do not quote variable references.
6278 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6279
6280 # Sed substitution to delay expansion of an escaped shell variable in a
6281 # double_quote_subst'ed string.
6282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6283
6284 # Sed substitution to delay expansion of an escaped single quote.
6285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6286
6287 # Sed substitution to avoid accidental globbing in evaled expressions
6288 no_glob_subst='s/\*/\\\*/g'
6289
6290 # Global variables:
6291 ofile=libtool
6292 can_build_shared=yes
6293
6294 # All known linkers require a `.a' archive for static linking (except MSVC,
6295 # which needs '.lib').
6296 libext=a
6297
6298 with_gnu_ld="$lt_cv_prog_gnu_ld"
6299
6300 old_CC="$CC"
6301 old_CFLAGS="$CFLAGS"
6302
6303 # Set sane defaults for various variables
6304 test -z "$CC" && CC=cc
6305 test -z "$LTCC" && LTCC=$CC
6306 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6307 test -z "$LD" && LD=ld
6308 test -z "$ac_objext" && ac_objext=o
6309
6310 for cc_temp in $compiler""; do
6311 case $cc_temp in
6312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6314 \-*) ;;
6315 *) break;;
6316 esac
6317 done
6318 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6319
6320
6321 # Only perform the check for file, if the check method requires it
6322 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6323 case $deplibs_check_method in
6324 file_magic*)
6325 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6326 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6327 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 case $MAGIC_CMD in
6332 [\\/*] | ?:[\\/]*)
6333 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6334 ;;
6335 *)
6336 lt_save_MAGIC_CMD="$MAGIC_CMD"
6337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6338 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6339 for ac_dir in $ac_dummy; do
6340 IFS="$lt_save_ifs"
6341 test -z "$ac_dir" && ac_dir=.
6342 if test -f $ac_dir/${ac_tool_prefix}file; then
6343 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6344 if test -n "$file_magic_test_file"; then
6345 case $deplibs_check_method in
6346 "file_magic "*)
6347 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6350 $EGREP "$file_magic_regex" > /dev/null; then
6351 :
6352 else
6353 cat <<_LT_EOF 1>&2
6354
6355 *** Warning: the command libtool uses to detect shared libraries,
6356 *** $file_magic_cmd, produces output that libtool cannot recognize.
6357 *** The result is that libtool may fail to recognize shared libraries
6358 *** as such. This will affect the creation of libtool libraries that
6359 *** depend on shared libraries, but programs linked with such libtool
6360 *** libraries will work regardless of this problem. Nevertheless, you
6361 *** may want to report the problem to your system manager and/or to
6362 *** bug-libtool@gnu.org
6363
6364 _LT_EOF
6365 fi ;;
6366 esac
6367 fi
6368 break
6369 fi
6370 done
6371 IFS="$lt_save_ifs"
6372 MAGIC_CMD="$lt_save_MAGIC_CMD"
6373 ;;
6374 esac
6375 fi
6376
6377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6378 if test -n "$MAGIC_CMD"; then
6379 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6380 echo "${ECHO_T}$MAGIC_CMD" >&6
6381 else
6382 echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6
6384 fi
6385
6386
6387
6388
6389
6390 if test -z "$lt_cv_path_MAGIC_CMD"; then
6391 if test -n "$ac_tool_prefix"; then
6392 echo "$as_me:$LINENO: checking for file" >&5
6393 echo $ECHO_N "checking for file... $ECHO_C" >&6
6394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397 case $MAGIC_CMD in
6398 [\\/*] | ?:[\\/]*)
6399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6400 ;;
6401 *)
6402 lt_save_MAGIC_CMD="$MAGIC_CMD"
6403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6405 for ac_dir in $ac_dummy; do
6406 IFS="$lt_save_ifs"
6407 test -z "$ac_dir" && ac_dir=.
6408 if test -f $ac_dir/file; then
6409 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6410 if test -n "$file_magic_test_file"; then
6411 case $deplibs_check_method in
6412 "file_magic "*)
6413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6416 $EGREP "$file_magic_regex" > /dev/null; then
6417 :
6418 else
6419 cat <<_LT_EOF 1>&2
6420
6421 *** Warning: the command libtool uses to detect shared libraries,
6422 *** $file_magic_cmd, produces output that libtool cannot recognize.
6423 *** The result is that libtool may fail to recognize shared libraries
6424 *** as such. This will affect the creation of libtool libraries that
6425 *** depend on shared libraries, but programs linked with such libtool
6426 *** libraries will work regardless of this problem. Nevertheless, you
6427 *** may want to report the problem to your system manager and/or to
6428 *** bug-libtool@gnu.org
6429
6430 _LT_EOF
6431 fi ;;
6432 esac
6433 fi
6434 break
6435 fi
6436 done
6437 IFS="$lt_save_ifs"
6438 MAGIC_CMD="$lt_save_MAGIC_CMD"
6439 ;;
6440 esac
6441 fi
6442
6443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6444 if test -n "$MAGIC_CMD"; then
6445 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6446 echo "${ECHO_T}$MAGIC_CMD" >&6
6447 else
6448 echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6
6450 fi
6451
6452
6453 else
6454 MAGIC_CMD=:
6455 fi
6456 fi
6457
6458 fi
6459 ;;
6460 esac
6461
6462 # Use C for the default configuration in the libtool script
6463
6464 lt_save_CC="$CC"
6465 ac_ext=c
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470
6471
6472 # Source file extension for C test sources.
6473 ac_ext=c
6474
6475 # Object file extension for compiled C test sources.
6476 objext=o
6477 objext=$objext
6478
6479 # Code to be used in simple compile tests
6480 lt_simple_compile_test_code="int some_variable = 0;"
6481
6482 # Code to be used in simple link tests
6483 lt_simple_link_test_code='int main(){return(0);}'
6484
6485
6486
6487
6488
6489
6490
6491 # If no C compiler was specified, use CC.
6492 LTCC=${LTCC-"$CC"}
6493
6494 # If no C compiler flags were specified, use CFLAGS.
6495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6496
6497 # Allow CC to be a program name with arguments.
6498 compiler=$CC
6499
6500 # Save the default compiler, since it gets overwritten when the other
6501 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6502 compiler_DEFAULT=$CC
6503
6504 # save warnings/boilerplate of simple test code
6505 ac_outfile=conftest.$ac_objext
6506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6508 _lt_compiler_boilerplate=`cat conftest.err`
6509 $RM conftest*
6510
6511 ac_outfile=conftest.$ac_objext
6512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6514 _lt_linker_boilerplate=`cat conftest.err`
6515 $RM conftest*
6516
6517
6518 ## CAVEAT EMPTOR:
6519 ## There is no encapsulation within the following macros, do not change
6520 ## the running order or otherwise move them around unless you know exactly
6521 ## what you are doing...
6522 if test -n "$compiler"; then
6523
6524 lt_prog_compiler_no_builtin_flag=
6525
6526 if test "$GCC" = yes; then
6527 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6528
6529 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 lt_cv_prog_compiler_rtti_exceptions=no
6535 ac_outfile=conftest.$ac_objext
6536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6537 lt_compiler_flag="-fno-rtti -fno-exceptions"
6538 # Insert the option either (1) after the last *FLAGS variable, or
6539 # (2) before a word containing "conftest.", or (3) at the end.
6540 # Note that $ac_compile itself does not contain backslashes and begins
6541 # with a dollar sign (not a hyphen), so the echo should work correctly.
6542 # The option is referenced via a variable to avoid confusing sed.
6543 lt_compile=`echo "$ac_compile" | $SED \
6544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6546 -e 's:$: $lt_compiler_flag:'`
6547 (eval echo "\"\$as_me:6547: $lt_compile\"" >&5)
6548 (eval "$lt_compile" 2>conftest.err)
6549 ac_status=$?
6550 cat conftest.err >&5
6551 echo "$as_me:6551: \$? = $ac_status" >&5
6552 if (exit $ac_status) && test -s "$ac_outfile"; then
6553 # The compiler can only warn and ignore the option if not recognized
6554 # So say no if there are warnings other than the usual output.
6555 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6558 lt_cv_prog_compiler_rtti_exceptions=yes
6559 fi
6560 fi
6561 $RM conftest*
6562
6563 fi
6564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6566
6567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6569 else
6570 :
6571 fi
6572
6573 fi
6574
6575
6576
6577
6578
6579
6580 lt_prog_compiler_wl=
6581 lt_prog_compiler_pic=
6582 lt_prog_compiler_static=
6583
6584 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6586
6587 if test "$GCC" = yes; then
6588 lt_prog_compiler_wl='-Wl,'
6589 lt_prog_compiler_static='-static'
6590
6591 case $host_os in
6592 aix*)
6593 # All AIX code is PIC.
6594 if test "$host_cpu" = ia64; then
6595 # AIX 5 now supports IA64 processor
6596 lt_prog_compiler_static='-Bstatic'
6597 fi
6598 ;;
6599
6600 amigaos*)
6601 if test "$host_cpu" = m68k; then
6602 # FIXME: we need at least 68020 code to build shared libraries, but
6603 # adding the `-m68020' flag to GCC prevents building anything better,
6604 # like `-m68040'.
6605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6606 fi
6607 ;;
6608
6609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6610 # PIC is the default for these OSes.
6611 ;;
6612
6613 mingw* | cygwin* | pw32* | os2*)
6614 # This hack is so that the source file can tell whether it is being
6615 # built for inclusion in a dll (and should export symbols for example).
6616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6617 # (--disable-auto-import) libraries
6618 lt_prog_compiler_pic='-DDLL_EXPORT'
6619 ;;
6620
6621 darwin* | rhapsody*)
6622 # PIC is the default on this platform
6623 # Common symbols not allowed in MH_DYLIB files
6624 lt_prog_compiler_pic='-fno-common'
6625 ;;
6626
6627 hpux*)
6628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6629 # not for PA HP-UX.
6630 case $host_cpu in
6631 hppa*64*|ia64*)
6632 # +Z the default
6633 ;;
6634 *)
6635 lt_prog_compiler_pic='-fPIC'
6636 ;;
6637 esac
6638 ;;
6639
6640 interix[3-9]*)
6641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6642 # Instead, we relocate shared libraries at runtime.
6643 ;;
6644
6645 msdosdjgpp*)
6646 # Just because we use GCC doesn't mean we suddenly get shared libraries
6647 # on systems that don't support them.
6648 lt_prog_compiler_can_build_shared=no
6649 enable_shared=no
6650 ;;
6651
6652 *nto* | *qnx*)
6653 # QNX uses GNU C++, but need to define -shared option too, otherwise
6654 # it will coredump.
6655 lt_prog_compiler_pic='-fPIC -shared'
6656 ;;
6657
6658 sysv4*MP*)
6659 if test -d /usr/nec; then
6660 lt_prog_compiler_pic=-Kconform_pic
6661 fi
6662 ;;
6663
6664 *)
6665 lt_prog_compiler_pic='-fPIC'
6666 ;;
6667 esac
6668 else
6669 # PORTME Check for flag to pass linker flags through the system compiler.
6670 case $host_os in
6671 aix*)
6672 lt_prog_compiler_wl='-Wl,'
6673 if test "$host_cpu" = ia64; then
6674 # AIX 5 now supports IA64 processor
6675 lt_prog_compiler_static='-Bstatic'
6676 else
6677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6678 fi
6679 ;;
6680 darwin*)
6681 # PIC is the default on this platform
6682 # Common symbols not allowed in MH_DYLIB files
6683 case $cc_basename in
6684 xlc*)
6685 lt_prog_compiler_pic='-qnocommon'
6686 lt_prog_compiler_wl='-Wl,'
6687 ;;
6688 esac
6689 ;;
6690
6691 mingw* | cygwin* | pw32* | os2*)
6692 # This hack is so that the source file can tell whether it is being
6693 # built for inclusion in a dll (and should export symbols for example).
6694 lt_prog_compiler_pic='-DDLL_EXPORT'
6695 ;;
6696
6697 hpux9* | hpux10* | hpux11*)
6698 lt_prog_compiler_wl='-Wl,'
6699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6700 # not for PA HP-UX.
6701 case $host_cpu in
6702 hppa*64*|ia64*)
6703 # +Z the default
6704 ;;
6705 *)
6706 lt_prog_compiler_pic='+Z'
6707 ;;
6708 esac
6709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6710 lt_prog_compiler_static='${wl}-a ${wl}archive'
6711 ;;
6712
6713 irix5* | irix6* | nonstopux*)
6714 lt_prog_compiler_wl='-Wl,'
6715 # PIC (with -KPIC) is the default.
6716 lt_prog_compiler_static='-non_shared'
6717 ;;
6718
6719 linux* | k*bsd*-gnu)
6720 case $cc_basename in
6721 icc* | ecc*)
6722 lt_prog_compiler_wl='-Wl,'
6723 lt_prog_compiler_pic='-KPIC'
6724 lt_prog_compiler_static='-static'
6725 ;;
6726 pgcc* | pgf77* | pgf90* | pgf95*)
6727 # Portland Group compilers (*not* the Pentium gcc compiler,
6728 # which looks to be a dead project)
6729 lt_prog_compiler_wl='-Wl,'
6730 lt_prog_compiler_pic='-fpic'
6731 lt_prog_compiler_static='-Bstatic'
6732 ;;
6733 ccc*)
6734 lt_prog_compiler_wl='-Wl,'
6735 # All Alpha code is PIC.
6736 lt_prog_compiler_static='-non_shared'
6737 ;;
6738 *)
6739 case `$CC -V 2>&1 | sed 5q` in
6740 *Sun\ C*)
6741 # Sun C 5.9
6742 lt_prog_compiler_pic='-KPIC'
6743 lt_prog_compiler_static='-Bstatic'
6744 lt_prog_compiler_wl='-Wl,'
6745 ;;
6746 *Sun\ F*)
6747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6748 lt_prog_compiler_pic='-KPIC'
6749 lt_prog_compiler_static='-Bstatic'
6750 lt_prog_compiler_wl=''
6751 ;;
6752 esac
6753 ;;
6754 esac
6755 ;;
6756
6757 newsos6)
6758 lt_prog_compiler_pic='-KPIC'
6759 lt_prog_compiler_static='-Bstatic'
6760 ;;
6761
6762 *nto* | *qnx*)
6763 # QNX uses GNU C++, but need to define -shared option too, otherwise
6764 # it will coredump.
6765 lt_prog_compiler_pic='-fPIC -shared'
6766 ;;
6767
6768 osf3* | osf4* | osf5*)
6769 lt_prog_compiler_wl='-Wl,'
6770 # All OSF/1 code is PIC.
6771 lt_prog_compiler_static='-non_shared'
6772 ;;
6773
6774 rdos*)
6775 lt_prog_compiler_static='-non_shared'
6776 ;;
6777
6778 solaris*)
6779 lt_prog_compiler_pic='-KPIC'
6780 lt_prog_compiler_static='-Bstatic'
6781 case $cc_basename in
6782 f77* | f90* | f95*)
6783 lt_prog_compiler_wl='-Qoption ld ';;
6784 *)
6785 lt_prog_compiler_wl='-Wl,';;
6786 esac
6787 ;;
6788
6789 sunos4*)
6790 lt_prog_compiler_wl='-Qoption ld '
6791 lt_prog_compiler_pic='-PIC'
6792 lt_prog_compiler_static='-Bstatic'
6793 ;;
6794
6795 sysv4 | sysv4.2uw2* | sysv4.3*)
6796 lt_prog_compiler_wl='-Wl,'
6797 lt_prog_compiler_pic='-KPIC'
6798 lt_prog_compiler_static='-Bstatic'
6799 ;;
6800
6801 sysv4*MP*)
6802 if test -d /usr/nec ;then
6803 lt_prog_compiler_pic='-Kconform_pic'
6804 lt_prog_compiler_static='-Bstatic'
6805 fi
6806 ;;
6807
6808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6809 lt_prog_compiler_wl='-Wl,'
6810 lt_prog_compiler_pic='-KPIC'
6811 lt_prog_compiler_static='-Bstatic'
6812 ;;
6813
6814 unicos*)
6815 lt_prog_compiler_wl='-Wl,'
6816 lt_prog_compiler_can_build_shared=no
6817 ;;
6818
6819 uts4*)
6820 lt_prog_compiler_pic='-pic'
6821 lt_prog_compiler_static='-Bstatic'
6822 ;;
6823
6824 *)
6825 lt_prog_compiler_can_build_shared=no
6826 ;;
6827 esac
6828 fi
6829
6830 case $host_os in
6831 # For platforms which do not support PIC, -DPIC is meaningless:
6832 *djgpp*)
6833 lt_prog_compiler_pic=
6834 ;;
6835 *)
6836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6837 ;;
6838 esac
6839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6840 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6841
6842
6843
6844
6845
6846
6847 #
6848 # Check to make sure the PIC flag actually works.
6849 #
6850 if test -n "$lt_prog_compiler_pic"; then
6851 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6852 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6853 if test "${lt_prog_compiler_pic_works+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856 lt_prog_compiler_pic_works=no
6857 ac_outfile=conftest.$ac_objext
6858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6859 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6860 # Insert the option either (1) after the last *FLAGS variable, or
6861 # (2) before a word containing "conftest.", or (3) at the end.
6862 # Note that $ac_compile itself does not contain backslashes and begins
6863 # with a dollar sign (not a hyphen), so the echo should work correctly.
6864 # The option is referenced via a variable to avoid confusing sed.
6865 lt_compile=`echo "$ac_compile" | $SED \
6866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6868 -e 's:$: $lt_compiler_flag:'`
6869 (eval echo "\"\$as_me:6869: $lt_compile\"" >&5)
6870 (eval "$lt_compile" 2>conftest.err)
6871 ac_status=$?
6872 cat conftest.err >&5
6873 echo "$as_me:6873: \$? = $ac_status" >&5
6874 if (exit $ac_status) && test -s "$ac_outfile"; then
6875 # The compiler can only warn and ignore the option if not recognized
6876 # So say no if there are warnings other than the usual output.
6877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6880 lt_prog_compiler_pic_works=yes
6881 fi
6882 fi
6883 $RM conftest*
6884
6885 fi
6886 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6887 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6888
6889 if test x"$lt_prog_compiler_pic_works" = xyes; then
6890 case $lt_prog_compiler_pic in
6891 "" | " "*) ;;
6892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6893 esac
6894 else
6895 lt_prog_compiler_pic=
6896 lt_prog_compiler_can_build_shared=no
6897 fi
6898
6899 fi
6900
6901
6902
6903
6904
6905
6906 #
6907 # Check to make sure the static flag actually works.
6908 #
6909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6910 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6912 if test "${lt_prog_compiler_static_works+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915 lt_prog_compiler_static_works=no
6916 save_LDFLAGS="$LDFLAGS"
6917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6920 # The linker can only warn and ignore the option if not recognized
6921 # So say no if there are warnings
6922 if test -s conftest.err; then
6923 # Append any errors to the config.log.
6924 cat conftest.err 1>&5
6925 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6927 if diff conftest.exp conftest.er2 >/dev/null; then
6928 lt_prog_compiler_static_works=yes
6929 fi
6930 else
6931 lt_prog_compiler_static_works=yes
6932 fi
6933 fi
6934 $RM conftest*
6935 LDFLAGS="$save_LDFLAGS"
6936
6937 fi
6938 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6939 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6940
6941 if test x"$lt_prog_compiler_static_works" = xyes; then
6942 :
6943 else
6944 lt_prog_compiler_static=
6945 fi
6946
6947
6948
6949
6950
6951
6952
6953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 lt_cv_prog_compiler_c_o=no
6959 $RM -r conftest 2>/dev/null
6960 mkdir conftest
6961 cd conftest
6962 mkdir out
6963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6964
6965 lt_compiler_flag="-o out/conftest2.$ac_objext"
6966 # Insert the option either (1) after the last *FLAGS variable, or
6967 # (2) before a word containing "conftest.", or (3) at the end.
6968 # Note that $ac_compile itself does not contain backslashes and begins
6969 # with a dollar sign (not a hyphen), so the echo should work correctly.
6970 lt_compile=`echo "$ac_compile" | $SED \
6971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6973 -e 's:$: $lt_compiler_flag:'`
6974 (eval echo "\"\$as_me:6974: $lt_compile\"" >&5)
6975 (eval "$lt_compile" 2>out/conftest.err)
6976 ac_status=$?
6977 cat out/conftest.err >&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6980 then
6981 # The compiler can only warn and ignore the option if not recognized
6982 # So say no if there are warnings
6983 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6986 lt_cv_prog_compiler_c_o=yes
6987 fi
6988 fi
6989 chmod u+w . 2>&5
6990 $RM conftest*
6991 # SGI C++ compiler will create directory out/ii_files/ for
6992 # template instantiation
6993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6994 $RM out/* && rmdir out
6995 cd ..
6996 $RM -r conftest
6997 $RM conftest*
6998
6999 fi
7000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7002
7003
7004
7005
7006
7007
7008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 lt_cv_prog_compiler_c_o=no
7014 $RM -r conftest 2>/dev/null
7015 mkdir conftest
7016 cd conftest
7017 mkdir out
7018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7019
7020 lt_compiler_flag="-o out/conftest2.$ac_objext"
7021 # Insert the option either (1) after the last *FLAGS variable, or
7022 # (2) before a word containing "conftest.", or (3) at the end.
7023 # Note that $ac_compile itself does not contain backslashes and begins
7024 # with a dollar sign (not a hyphen), so the echo should work correctly.
7025 lt_compile=`echo "$ac_compile" | $SED \
7026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7028 -e 's:$: $lt_compiler_flag:'`
7029 (eval echo "\"\$as_me:7029: $lt_compile\"" >&5)
7030 (eval "$lt_compile" 2>out/conftest.err)
7031 ac_status=$?
7032 cat out/conftest.err >&5
7033 echo "$as_me:7033: \$? = $ac_status" >&5
7034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7035 then
7036 # The compiler can only warn and ignore the option if not recognized
7037 # So say no if there are warnings
7038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7041 lt_cv_prog_compiler_c_o=yes
7042 fi
7043 fi
7044 chmod u+w . 2>&5
7045 $RM conftest*
7046 # SGI C++ compiler will create directory out/ii_files/ for
7047 # template instantiation
7048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7049 $RM out/* && rmdir out
7050 cd ..
7051 $RM -r conftest
7052 $RM conftest*
7053
7054 fi
7055 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7057
7058
7059
7060
7061 hard_links="nottested"
7062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7063 # do not overwrite the value of need_locks provided by the user
7064 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7065 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7066 hard_links=yes
7067 $RM conftest*
7068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7069 touch conftest.a
7070 ln conftest.a conftest.b 2>&5 || hard_links=no
7071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7072 echo "$as_me:$LINENO: result: $hard_links" >&5
7073 echo "${ECHO_T}$hard_links" >&6
7074 if test "$hard_links" = no; then
7075 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7076 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7077 need_locks=warn
7078 fi
7079 else
7080 need_locks=no
7081 fi
7082
7083
7084
7085
7086
7087
7088 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7090
7091 runpath_var=
7092 allow_undefined_flag=
7093 always_export_symbols=no
7094 archive_cmds=
7095 archive_expsym_cmds=
7096 compiler_needs_object=no
7097 enable_shared_with_static_runtimes=no
7098 export_dynamic_flag_spec=
7099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7100 hardcode_automatic=no
7101 hardcode_direct=no
7102 hardcode_direct_absolute=no
7103 hardcode_libdir_flag_spec=
7104 hardcode_libdir_flag_spec_ld=
7105 hardcode_libdir_separator=
7106 hardcode_minus_L=no
7107 hardcode_shlibpath_var=unsupported
7108 inherit_rpath=no
7109 link_all_deplibs=unknown
7110 module_cmds=
7111 module_expsym_cmds=
7112 old_archive_from_new_cmds=
7113 old_archive_from_expsyms_cmds=
7114 thread_safe_flag_spec=
7115 whole_archive_flag_spec=
7116 # include_expsyms should be a list of space-separated symbols to be *always*
7117 # included in the symbol list
7118 include_expsyms=
7119 # exclude_expsyms can be an extended regexp of symbols to exclude
7120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7122 # as well as any symbol that contains `d'.
7123 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7125 # platforms (ab)use it in PIC code, but their linkers get confused if
7126 # the symbol is explicitly referenced. Since portable code cannot
7127 # rely on this symbol name, it's probably fine to never include it in
7128 # preloaded symbol tables.
7129 extract_expsyms_cmds=
7130
7131 case $host_os in
7132 cygwin* | mingw* | pw32*)
7133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7134 # When not using gcc, we currently assume that we are using
7135 # Microsoft Visual C++.
7136 if test "$GCC" != yes; then
7137 with_gnu_ld=no
7138 fi
7139 ;;
7140 interix*)
7141 # we just hope/assume this is gcc and not c89 (= MSVC++)
7142 with_gnu_ld=yes
7143 ;;
7144 openbsd*)
7145 with_gnu_ld=no
7146 ;;
7147 esac
7148
7149 ld_shlibs=yes
7150 if test "$with_gnu_ld" = yes; then
7151 # If archive_cmds runs LD, not CC, wlarc should be empty
7152 wlarc='${wl}'
7153
7154 # Set some defaults for GNU ld with shared library support. These
7155 # are reset later if shared libraries are not supported. Putting them
7156 # here allows them to be overridden if necessary.
7157 runpath_var=LD_RUN_PATH
7158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7159 export_dynamic_flag_spec='${wl}--export-dynamic'
7160 # ancient GNU ld didn't support --whole-archive et. al.
7161 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7162 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7163 else
7164 whole_archive_flag_spec=
7165 fi
7166 supports_anon_versioning=no
7167 case `$LD -v 2>&1` in
7168 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7169 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7170 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7171 *\ 2.11.*) ;; # other 2.11 versions
7172 *) supports_anon_versioning=yes ;;
7173 esac
7174
7175 # See if GNU ld supports shared libraries.
7176 case $host_os in
7177 aix[3-9]*)
7178 # On AIX/PPC, the GNU linker is very broken
7179 if test "$host_cpu" != ia64; then
7180 ld_shlibs=no
7181 cat <<_LT_EOF 1>&2
7182
7183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7184 *** to be unable to reliably create shared libraries on AIX.
7185 *** Therefore, libtool is disabling shared libraries support. If you
7186 *** really care for shared libraries, you may want to modify your PATH
7187 *** so that a non-GNU linker is found, and then restart.
7188
7189 _LT_EOF
7190 fi
7191 ;;
7192
7193 amigaos*)
7194 if test "$host_cpu" = m68k; then
7195 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)'
7196 hardcode_libdir_flag_spec='-L$libdir'
7197 hardcode_minus_L=yes
7198 fi
7199
7200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7201 # that the semantics of dynamic libraries on AmigaOS, at least up
7202 # to version 4, is to share data among multiple programs linked
7203 # with the same dynamic library. Since this doesn't match the
7204 # behavior of shared libraries on other platforms, we can't use
7205 # them.
7206 ld_shlibs=no
7207 ;;
7208
7209 beos*)
7210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7211 allow_undefined_flag=unsupported
7212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7213 # support --undefined. This deserves some investigation. FIXME
7214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7215 else
7216 ld_shlibs=no
7217 fi
7218 ;;
7219
7220 cygwin* | mingw* | pw32*)
7221 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7222 # as there is no search path for DLLs.
7223 hardcode_libdir_flag_spec='-L$libdir'
7224 allow_undefined_flag=unsupported
7225 always_export_symbols=no
7226 enable_shared_with_static_runtimes=yes
7227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7228
7229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7231 # If the export-symbols file already is a .def file (1st line
7232 # is EXPORTS), use it as is; otherwise, prepend...
7233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7234 cp $export_symbols $output_objdir/$soname.def;
7235 else
7236 echo EXPORTS > $output_objdir/$soname.def;
7237 cat $export_symbols >> $output_objdir/$soname.def;
7238 fi~
7239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7240 else
7241 ld_shlibs=no
7242 fi
7243 ;;
7244
7245 interix[3-9]*)
7246 hardcode_direct=no
7247 hardcode_shlibpath_var=no
7248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7249 export_dynamic_flag_spec='${wl}-E'
7250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7251 # Instead, shared libraries are loaded at an image base (0x10000000 by
7252 # default) and relocated if they conflict, which is a slow very memory
7253 # consuming and fragmenting process. To avoid this, we pick a random,
7254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7257 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'
7258 ;;
7259
7260 gnu* | linux* | tpf* | k*bsd*-gnu)
7261 tmp_diet=no
7262 if test "$host_os" = linux-dietlibc; then
7263 case $cc_basename in
7264 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7265 esac
7266 fi
7267 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7268 && test "$tmp_diet" = no
7269 then
7270 tmp_addflag=
7271 case $cc_basename,$host_cpu in
7272 pgcc*) # Portland Group C compiler
7273 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'
7274 tmp_addflag=' $pic_flag'
7275 ;;
7276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7277 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'
7278 tmp_addflag=' $pic_flag -Mnomain' ;;
7279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7280 tmp_addflag=' -i_dynamic' ;;
7281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7282 tmp_addflag=' -i_dynamic -nofor_main' ;;
7283 ifc* | ifort*) # Intel Fortran compiler
7284 tmp_addflag=' -nofor_main' ;;
7285 esac
7286 case `$CC -V 2>&1 | sed 5q` in
7287 *Sun\ C*) # Sun C 5.9
7288 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'
7289 compiler_needs_object=yes
7290 tmp_sharedflag='-G' ;;
7291 *Sun\ F*) # Sun Fortran 8.3
7292 tmp_sharedflag='-G' ;;
7293 *)
7294 tmp_sharedflag='-shared' ;;
7295 esac
7296 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7297
7298 if test "x$supports_anon_versioning" = xyes; then
7299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7301 echo "local: *; };" >> $output_objdir/$libname.ver~
7302 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7303 fi
7304 else
7305 ld_shlibs=no
7306 fi
7307 ;;
7308
7309 netbsd*)
7310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7311 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7312 wlarc=
7313 else
7314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7316 fi
7317 ;;
7318
7319 solaris*)
7320 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7321 ld_shlibs=no
7322 cat <<_LT_EOF 1>&2
7323
7324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7325 *** create shared libraries on Solaris systems. Therefore, libtool
7326 *** is disabling shared libraries support. We urge you to upgrade GNU
7327 *** binutils to release 2.9.1 or newer. Another option is to modify
7328 *** your PATH or compiler configuration so that the native linker is
7329 *** used, and then restart.
7330
7331 _LT_EOF
7332 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7335 else
7336 ld_shlibs=no
7337 fi
7338 ;;
7339
7340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7341 case `$LD -v 2>&1` in
7342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7343 ld_shlibs=no
7344 cat <<_LT_EOF 1>&2
7345
7346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7347 *** reliably create shared libraries on SCO systems. Therefore, libtool
7348 *** is disabling shared libraries support. We urge you to upgrade GNU
7349 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7350 *** your PATH or compiler configuration so that the native linker is
7351 *** used, and then restart.
7352
7353 _LT_EOF
7354 ;;
7355 *)
7356 # For security reasons, it is highly recommended that you always
7357 # use absolute paths for naming shared libraries, and exclude the
7358 # DT_RUNPATH tag from executables and libraries. But doing so
7359 # requires that you compile everything twice, which is a pain.
7360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7364 else
7365 ld_shlibs=no
7366 fi
7367 ;;
7368 esac
7369 ;;
7370
7371 sunos4*)
7372 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7373 wlarc=
7374 hardcode_direct=yes
7375 hardcode_shlibpath_var=no
7376 ;;
7377
7378 *)
7379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7382 else
7383 ld_shlibs=no
7384 fi
7385 ;;
7386 esac
7387
7388 if test "$ld_shlibs" = no; then
7389 runpath_var=
7390 hardcode_libdir_flag_spec=
7391 export_dynamic_flag_spec=
7392 whole_archive_flag_spec=
7393 fi
7394 else
7395 # PORTME fill in a description of your system's linker (not GNU ld)
7396 case $host_os in
7397 aix3*)
7398 allow_undefined_flag=unsupported
7399 always_export_symbols=yes
7400 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'
7401 # Note: this linker hardcodes the directories in LIBPATH if there
7402 # are no directories specified by -L.
7403 hardcode_minus_L=yes
7404 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7405 # Neither direct hardcoding nor static linking is supported with a
7406 # broken collect2.
7407 hardcode_direct=unsupported
7408 fi
7409 ;;
7410
7411 aix[4-9]*)
7412 if test "$host_cpu" = ia64; then
7413 # On IA64, the linker does run time linking by default, so we don't
7414 # have to do anything special.
7415 aix_use_runtimelinking=no
7416 exp_sym_flag='-Bexport'
7417 no_entry_flag=""
7418 else
7419 # If we're using GNU nm, then we don't want the "-C" option.
7420 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7421 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7422 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'
7423 else
7424 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'
7425 fi
7426 aix_use_runtimelinking=no
7427
7428 # Test if we are trying to use run time linking or normal
7429 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7430 # need to do runtime linking.
7431 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7432 for ld_flag in $LDFLAGS; do
7433 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7434 aix_use_runtimelinking=yes
7435 break
7436 fi
7437 done
7438 ;;
7439 esac
7440
7441 exp_sym_flag='-bexport'
7442 no_entry_flag='-bnoentry'
7443 fi
7444
7445 # When large executables or shared objects are built, AIX ld can
7446 # have problems creating the table of contents. If linking a library
7447 # or program results in "error TOC overflow" add -mminimal-toc to
7448 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7449 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7450
7451 archive_cmds=''
7452 hardcode_direct=yes
7453 hardcode_direct_absolute=yes
7454 hardcode_libdir_separator=':'
7455 link_all_deplibs=yes
7456 file_list_spec='${wl}-f,'
7457
7458 if test "$GCC" = yes; then
7459 case $host_os in aix4.[012]|aix4.[012].*)
7460 # We only want to do this on AIX 4.2 and lower, the check
7461 # below for broken collect2 doesn't work under 4.3+
7462 collect2name=`${CC} -print-prog-name=collect2`
7463 if test -f "$collect2name" &&
7464 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7465 then
7466 # We have reworked collect2
7467 :
7468 else
7469 # We have old collect2
7470 hardcode_direct=unsupported
7471 # It fails to find uninstalled libraries when the uninstalled
7472 # path is not listed in the libpath. Setting hardcode_minus_L
7473 # to unsupported forces relinking
7474 hardcode_minus_L=yes
7475 hardcode_libdir_flag_spec='-L$libdir'
7476 hardcode_libdir_separator=
7477 fi
7478 ;;
7479 esac
7480 shared_flag='-shared'
7481 if test "$aix_use_runtimelinking" = yes; then
7482 shared_flag="$shared_flag "'${wl}-G'
7483 fi
7484 else
7485 # not using gcc
7486 if test "$host_cpu" = ia64; then
7487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7488 # chokes on -Wl,-G. The following line is correct:
7489 shared_flag='-G'
7490 else
7491 if test "$aix_use_runtimelinking" = yes; then
7492 shared_flag='${wl}-G'
7493 else
7494 shared_flag='${wl}-bM:SRE'
7495 fi
7496 fi
7497 fi
7498
7499 # It seems that -bexpall does not export symbols beginning with
7500 # underscore (_), so it is better to generate a list of symbols to export.
7501 always_export_symbols=yes
7502 if test "$aix_use_runtimelinking" = yes; then
7503 # Warning - without using the other runtime loading flags (-brtl),
7504 # -berok will link without error, but may produce a broken library.
7505 allow_undefined_flag='-berok'
7506 # Determine the default libpath from the value encoded in an
7507 # empty executable.
7508 if test x$gcc_no_link = xyes; then
7509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7511 { (exit 1); exit 1; }; }
7512 fi
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519
7520 int
7521 main ()
7522 {
7523
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -z "$ac_c_werror_flag"
7538 || test ! -s conftest.err'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 (eval $ac_try) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550
7551 lt_aix_libpath_sed='
7552 /Import File Strings/,/^$/ {
7553 /^0/ {
7554 s/^0 *\(.*\)$/\1/
7555 p
7556 }
7557 }'
7558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7559 # Check for a 64-bit object if we didn't find anything.
7560 if test -z "$aix_libpath"; then
7561 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7562 fi
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 fi
7568 rm -f conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7571
7572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7573 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"
7574 else
7575 if test "$host_cpu" = ia64; then
7576 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7577 allow_undefined_flag="-z nodefs"
7578 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"
7579 else
7580 # Determine the default libpath from the value encoded in an
7581 # empty executable.
7582 if test x$gcc_no_link = xyes; then
7583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7585 { (exit 1); exit 1; }; }
7586 fi
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593
7594 int
7595 main ()
7596 {
7597
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624
7625 lt_aix_libpath_sed='
7626 /Import File Strings/,/^$/ {
7627 /^0/ {
7628 s/^0 *\(.*\)$/\1/
7629 p
7630 }
7631 }'
7632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7633 # Check for a 64-bit object if we didn't find anything.
7634 if test -z "$aix_libpath"; then
7635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7636 fi
7637 else
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641 fi
7642 rm -f conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
7644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7645
7646 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7647 # Warning - without using the other run time loading flags,
7648 # -berok will link without error, but may produce a broken library.
7649 no_undefined_flag=' ${wl}-bernotok'
7650 allow_undefined_flag=' ${wl}-berok'
7651 # Exported symbols can be pulled into shared objects from archives
7652 whole_archive_flag_spec='$convenience'
7653 archive_cmds_need_lc=yes
7654 # This is similar to how AIX traditionally builds its shared libraries.
7655 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'
7656 fi
7657 fi
7658 ;;
7659
7660 amigaos*)
7661 if test "$host_cpu" = m68k; then
7662 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)'
7663 hardcode_libdir_flag_spec='-L$libdir'
7664 hardcode_minus_L=yes
7665 fi
7666 # see comment about different semantics on the GNU ld section
7667 ld_shlibs=no
7668 ;;
7669
7670 bsdi[45]*)
7671 export_dynamic_flag_spec=-rdynamic
7672 ;;
7673
7674 cygwin* | mingw* | pw32*)
7675 # When not using gcc, we currently assume that we are using
7676 # Microsoft Visual C++.
7677 # hardcode_libdir_flag_spec is actually meaningless, as there is
7678 # no search path for DLLs.
7679 hardcode_libdir_flag_spec=' '
7680 allow_undefined_flag=unsupported
7681 # Tell ltmain to make .lib files, not .a files.
7682 libext=lib
7683 # Tell ltmain to make .dll files, not .so files.
7684 shrext_cmds=".dll"
7685 # FIXME: Setting linknames here is a bad hack.
7686 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7687 # The linker will automatically build a .lib file if we build a DLL.
7688 old_archive_from_new_cmds='true'
7689 # FIXME: Should let the user specify the lib program.
7690 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7691 fix_srcfile_path='`cygpath -w "$srcfile"`'
7692 enable_shared_with_static_runtimes=yes
7693 ;;
7694
7695 darwin* | rhapsody*)
7696 case $host_os in
7697 rhapsody* | darwin1.[012])
7698 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7699 ;;
7700 *) # Darwin 1.3 on
7701 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7702 10.[012])
7703 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7704 ;;
7705 10.*)
7706 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7707 ;;
7708 esac
7709 ;;
7710 esac
7711 archive_cmds_need_lc=no
7712 hardcode_direct=no
7713 hardcode_automatic=yes
7714 hardcode_shlibpath_var=unsupported
7715 whole_archive_flag_spec=''
7716 link_all_deplibs=yes
7717 if test "$GCC" = yes ; then
7718 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721 lt_cv_apple_cc_single_mod=no
7722 if test -z "${LT_MULTI_MODULE}"; then
7723 # By default we will add the -single_module flag. You can override
7724 # by either setting the environment variable LT_MULTI_MODULE
7725 # non-empty at configure time, or by adding -multi-module to the
7726 # link flags.
7727 echo "int foo(void){return 1;}" > conftest.c
7728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7729 -dynamiclib ${wl}-single_module conftest.c
7730 if test -f libconftest.dylib; then
7731 lt_cv_apple_cc_single_mod=yes
7732 rm libconftest.dylib
7733 fi
7734 rm conftest.$ac_ext
7735 fi
7736 fi
7737
7738 output_verbose_link_cmd=echo
7739 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7740 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7741 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7742 else
7743 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7744 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7745 fi
7746 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7747 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7748 else
7749 case $cc_basename in
7750 xlc*)
7751 output_verbose_link_cmd=echo
7752 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7753 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7755 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7756 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7757 ;;
7758 *)
7759 ld_shlibs=no
7760 ;;
7761 esac
7762 fi
7763 ;;
7764
7765 dgux*)
7766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7767 hardcode_libdir_flag_spec='-L$libdir'
7768 hardcode_shlibpath_var=no
7769 ;;
7770
7771 freebsd1*)
7772 ld_shlibs=no
7773 ;;
7774
7775 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7776 # support. Future versions do this automatically, but an explicit c++rt0.o
7777 # does not break anything, and helps significantly (at the cost of a little
7778 # extra space).
7779 freebsd2.2*)
7780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7781 hardcode_libdir_flag_spec='-R$libdir'
7782 hardcode_direct=yes
7783 hardcode_shlibpath_var=no
7784 ;;
7785
7786 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7787 freebsd2*)
7788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7789 hardcode_direct=yes
7790 hardcode_minus_L=yes
7791 hardcode_shlibpath_var=no
7792 ;;
7793
7794 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7795 freebsd* | dragonfly*)
7796 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7797 hardcode_libdir_flag_spec='-R$libdir'
7798 hardcode_direct=yes
7799 hardcode_shlibpath_var=no
7800 ;;
7801
7802 hpux9*)
7803 if test "$GCC" = yes; then
7804 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'
7805 else
7806 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'
7807 fi
7808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7809 hardcode_libdir_separator=:
7810 hardcode_direct=yes
7811
7812 # hardcode_minus_L: Not really in the search PATH,
7813 # but as the default location of the library.
7814 hardcode_minus_L=yes
7815 export_dynamic_flag_spec='${wl}-E'
7816 ;;
7817
7818 hpux10*)
7819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7821 else
7822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7823 fi
7824 if test "$with_gnu_ld" = no; then
7825 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7826 hardcode_libdir_flag_spec_ld='+b $libdir'
7827 hardcode_libdir_separator=:
7828 hardcode_direct=yes
7829 hardcode_direct_absolute=yes
7830 export_dynamic_flag_spec='${wl}-E'
7831 # hardcode_minus_L: Not really in the search PATH,
7832 # but as the default location of the library.
7833 hardcode_minus_L=yes
7834 fi
7835 ;;
7836
7837 hpux11*)
7838 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7839 case $host_cpu in
7840 hppa*64*)
7841 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7842 ;;
7843 ia64*)
7844 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7845 ;;
7846 *)
7847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7848 ;;
7849 esac
7850 else
7851 case $host_cpu in
7852 hppa*64*)
7853 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7854 ;;
7855 ia64*)
7856 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7857 ;;
7858 *)
7859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7860 ;;
7861 esac
7862 fi
7863 if test "$with_gnu_ld" = no; then
7864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7865 hardcode_libdir_separator=:
7866
7867 case $host_cpu in
7868 hppa*64*|ia64*)
7869 hardcode_direct=no
7870 hardcode_shlibpath_var=no
7871 ;;
7872 *)
7873 hardcode_direct=yes
7874 hardcode_direct_absolute=yes
7875 export_dynamic_flag_spec='${wl}-E'
7876
7877 # hardcode_minus_L: Not really in the search PATH,
7878 # but as the default location of the library.
7879 hardcode_minus_L=yes
7880 ;;
7881 esac
7882 fi
7883 ;;
7884
7885 irix5* | irix6* | nonstopux*)
7886 if test "$GCC" = yes; then
7887 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'
7888 # Try to use the -exported_symbol ld option, if it does not
7889 # work, assume that -exports_file does not work either and
7890 # implicitly export all symbols.
7891 save_LDFLAGS="$LDFLAGS"
7892 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7893 if test x$gcc_no_link = xyes; then
7894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7896 { (exit 1); exit 1; }; }
7897 fi
7898 cat >conftest.$ac_ext <<_ACEOF
7899 int foo(void) {}
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 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'
7924
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929 fi
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LDFLAGS="$save_LDFLAGS"
7933 else
7934 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'
7935 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'
7936 fi
7937 archive_cmds_need_lc='no'
7938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7939 hardcode_libdir_separator=:
7940 inherit_rpath=yes
7941 link_all_deplibs=yes
7942 ;;
7943
7944 netbsd*)
7945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7947 else
7948 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7949 fi
7950 hardcode_libdir_flag_spec='-R$libdir'
7951 hardcode_direct=yes
7952 hardcode_shlibpath_var=no
7953 ;;
7954
7955 newsos6)
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_direct=yes
7958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959 hardcode_libdir_separator=:
7960 hardcode_shlibpath_var=no
7961 ;;
7962
7963 *nto* | *qnx*)
7964 ;;
7965
7966 openbsd*)
7967 hardcode_direct=yes
7968 hardcode_shlibpath_var=no
7969 hardcode_direct_absolute=yes
7970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7972 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7974 export_dynamic_flag_spec='${wl}-E'
7975 else
7976 case $host_os in
7977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7979 hardcode_libdir_flag_spec='-R$libdir'
7980 ;;
7981 *)
7982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7984 ;;
7985 esac
7986 fi
7987 ;;
7988
7989 os2*)
7990 hardcode_libdir_flag_spec='-L$libdir'
7991 hardcode_minus_L=yes
7992 allow_undefined_flag=unsupported
7993 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'
7994 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7995 ;;
7996
7997 osf3*)
7998 if test "$GCC" = yes; then
7999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8000 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'
8001 else
8002 allow_undefined_flag=' -expect_unresolved \*'
8003 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'
8004 fi
8005 archive_cmds_need_lc='no'
8006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8007 hardcode_libdir_separator=:
8008 ;;
8009
8010 osf4* | osf5*) # as osf3* with the addition of -msym flag
8011 if test "$GCC" = yes; then
8012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8013 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'
8014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8015 else
8016 allow_undefined_flag=' -expect_unresolved \*'
8017 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'
8018 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~
8019 $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'
8020
8021 # Both c and cxx compiler support -rpath directly
8022 hardcode_libdir_flag_spec='-rpath $libdir'
8023 fi
8024 archive_cmds_need_lc='no'
8025 hardcode_libdir_separator=:
8026 ;;
8027
8028 solaris*)
8029 no_undefined_flag=' -z defs'
8030 if test "$GCC" = yes; then
8031 wlarc='${wl}'
8032 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8034 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8035 else
8036 case `$CC -V 2>&1` in
8037 *"Compilers 5.0"*)
8038 wlarc=''
8039 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8041 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8042 ;;
8043 *)
8044 wlarc='${wl}'
8045 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8047 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8048 ;;
8049 esac
8050 fi
8051 hardcode_libdir_flag_spec='-R$libdir'
8052 hardcode_shlibpath_var=no
8053 case $host_os in
8054 solaris2.[0-5] | solaris2.[0-5].*) ;;
8055 *)
8056 # The compiler driver will combine and reorder linker options,
8057 # but understands `-z linker_flag'. GCC discards it without `$wl',
8058 # but is careful enough not to reorder.
8059 # Supported since Solaris 2.6 (maybe 2.5.1?)
8060 if test "$GCC" = yes; then
8061 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8062 else
8063 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8064 fi
8065 ;;
8066 esac
8067 link_all_deplibs=yes
8068 ;;
8069
8070 sunos4*)
8071 if test "x$host_vendor" = xsequent; then
8072 # Use $CC to link under sequent, because it throws in some extra .o
8073 # files that make .init and .fini sections work.
8074 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8075 else
8076 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8077 fi
8078 hardcode_libdir_flag_spec='-L$libdir'
8079 hardcode_direct=yes
8080 hardcode_minus_L=yes
8081 hardcode_shlibpath_var=no
8082 ;;
8083
8084 sysv4)
8085 case $host_vendor in
8086 sni)
8087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8088 hardcode_direct=yes # is this really true???
8089 ;;
8090 siemens)
8091 ## LD is ld it makes a PLAMLIB
8092 ## CC just makes a GrossModule.
8093 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8094 reload_cmds='$CC -r -o $output$reload_objs'
8095 hardcode_direct=no
8096 ;;
8097 motorola)
8098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8100 ;;
8101 esac
8102 runpath_var='LD_RUN_PATH'
8103 hardcode_shlibpath_var=no
8104 ;;
8105
8106 sysv4.3*)
8107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8108 hardcode_shlibpath_var=no
8109 export_dynamic_flag_spec='-Bexport'
8110 ;;
8111
8112 sysv4*MP*)
8113 if test -d /usr/nec; then
8114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8115 hardcode_shlibpath_var=no
8116 runpath_var=LD_RUN_PATH
8117 hardcode_runpath_var=yes
8118 ld_shlibs=yes
8119 fi
8120 ;;
8121
8122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8123 no_undefined_flag='${wl}-z,text'
8124 archive_cmds_need_lc=no
8125 hardcode_shlibpath_var=no
8126 runpath_var='LD_RUN_PATH'
8127
8128 if test "$GCC" = yes; then
8129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8131 else
8132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8134 fi
8135 ;;
8136
8137 sysv5* | sco3.2v5* | sco5v6*)
8138 # Note: We can NOT use -z defs as we might desire, because we do not
8139 # link with -lc, and that would cause any symbols used from libc to
8140 # always be unresolved, which means just about no library would
8141 # ever link correctly. If we're not using GNU ld we use -z text
8142 # though, which does catch some bad symbols but isn't as heavy-handed
8143 # as -z defs.
8144 no_undefined_flag='${wl}-z,text'
8145 allow_undefined_flag='${wl}-z,nodefs'
8146 archive_cmds_need_lc=no
8147 hardcode_shlibpath_var=no
8148 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8149 hardcode_libdir_separator=':'
8150 link_all_deplibs=yes
8151 export_dynamic_flag_spec='${wl}-Bexport'
8152 runpath_var='LD_RUN_PATH'
8153
8154 if test "$GCC" = yes; then
8155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8157 else
8158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8160 fi
8161 ;;
8162
8163 uts4*)
8164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8165 hardcode_libdir_flag_spec='-L$libdir'
8166 hardcode_shlibpath_var=no
8167 ;;
8168
8169 *)
8170 ld_shlibs=no
8171 ;;
8172 esac
8173
8174 if test x$host_vendor = xsni; then
8175 case $host in
8176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8177 export_dynamic_flag_spec='${wl}-Blargedynsym'
8178 ;;
8179 esac
8180 fi
8181 fi
8182
8183 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8184 echo "${ECHO_T}$ld_shlibs" >&6
8185 test "$ld_shlibs" = no && can_build_shared=no
8186
8187 with_gnu_ld=$with_gnu_ld
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203 #
8204 # Do we need to explicitly link libc?
8205 #
8206 case "x$archive_cmds_need_lc" in
8207 x|xyes)
8208 # Assume -lc should be added
8209 archive_cmds_need_lc=yes
8210
8211 if test "$enable_shared" = yes && test "$GCC" = yes; then
8212 case $archive_cmds in
8213 *'~'*)
8214 # FIXME: we may have to deal with multi-command sequences.
8215 ;;
8216 '$CC '*)
8217 # Test whether the compiler implicitly links with -lc since on some
8218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8219 # to ld, don't add -lc before -lgcc.
8220 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8222 $RM conftest*
8223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8224
8225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226 (eval $ac_compile) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } 2>conftest.err; then
8230 soname=conftest
8231 lib=conftest
8232 libobjs=conftest.$ac_objext
8233 deplibs=
8234 wl=$lt_prog_compiler_wl
8235 pic_flag=$lt_prog_compiler_pic
8236 compiler_flags=-v
8237 linker_flags=-v
8238 verstring=
8239 output_objdir=.
8240 libname=conftest
8241 lt_save_allow_undefined_flag=$allow_undefined_flag
8242 allow_undefined_flag=
8243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8244 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }
8248 then
8249 archive_cmds_need_lc=no
8250 else
8251 archive_cmds_need_lc=yes
8252 fi
8253 allow_undefined_flag=$lt_save_allow_undefined_flag
8254 else
8255 cat conftest.err 1>&5
8256 fi
8257 $RM conftest*
8258 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8259 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8260 ;;
8261 esac
8262 fi
8263 ;;
8264 esac
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8423 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8424 withGCC=$GCC
8425 if test "$withGCC" = yes; then
8426 case $host_os in
8427 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8428 *) lt_awk_arg="/^libraries:/" ;;
8429 esac
8430 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8431 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8432 # if the path contains ";" then we assume it to be the separator
8433 # otherwise default to the standard path separator (i.e. ":") - it is
8434 # assumed that no part of a normal pathname contains ";" but that should
8435 # okay in the real world where ";" in dirpaths is itself problematic.
8436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8437 else
8438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8439 fi
8440 # Ok, now we have the path, separated by spaces, we can step through it
8441 # and add multilib dir if necessary.
8442 lt_tmp_lt_search_path_spec=
8443 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8444 for lt_sys_path in $lt_search_path_spec; do
8445 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8446 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8447 else
8448 test -d "$lt_sys_path" && \
8449 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8450 fi
8451 done
8452 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8453 BEGIN {RS=" "; FS="/|\n";} {
8454 lt_foo="";
8455 lt_count=0;
8456 for (lt_i = NF; lt_i > 0; lt_i--) {
8457 if ($lt_i != "" && $lt_i != ".") {
8458 if ($lt_i == "..") {
8459 lt_count++;
8460 } else {
8461 if (lt_count == 0) {
8462 lt_foo="/" $lt_i lt_foo;
8463 } else {
8464 lt_count--;
8465 }
8466 }
8467 }
8468 }
8469 if (lt_foo != "") { lt_freq[lt_foo]++; }
8470 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8471 }'`
8472 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8473 else
8474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8475 fi
8476 library_names_spec=
8477 libname_spec='lib$name'
8478 soname_spec=
8479 shrext_cmds=".so"
8480 postinstall_cmds=
8481 postuninstall_cmds=
8482 finish_cmds=
8483 finish_eval=
8484 shlibpath_var=
8485 shlibpath_overrides_runpath=unknown
8486 version_type=none
8487 dynamic_linker="$host_os ld.so"
8488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8489 need_lib_prefix=unknown
8490 hardcode_into_libs=no
8491
8492 # when you set need_version to no, make sure it does not cause -set_version
8493 # flags to be left without arguments
8494 need_version=unknown
8495
8496 case $host_os in
8497 aix3*)
8498 version_type=linux
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8500 shlibpath_var=LIBPATH
8501
8502 # AIX 3 has no versioning support, so we append a major version to the name.
8503 soname_spec='${libname}${release}${shared_ext}$major'
8504 ;;
8505
8506 aix[4-9]*)
8507 version_type=linux
8508 need_lib_prefix=no
8509 need_version=no
8510 hardcode_into_libs=yes
8511 if test "$host_cpu" = ia64; then
8512 # AIX 5 supports IA64
8513 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8514 shlibpath_var=LD_LIBRARY_PATH
8515 else
8516 # With GCC up to 2.95.x, collect2 would create an import file
8517 # for dependence libraries. The import file would start with
8518 # the line `#! .'. This would cause the generated library to
8519 # depend on `.', always an invalid library. This was fixed in
8520 # development snapshots of GCC prior to 3.0.
8521 case $host_os in
8522 aix4 | aix4.[01] | aix4.[01].*)
8523 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8524 echo ' yes '
8525 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8526 :
8527 else
8528 can_build_shared=no
8529 fi
8530 ;;
8531 esac
8532 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8533 # soname into executable. Probably we can add versioning support to
8534 # collect2, so additional links can be useful in future.
8535 if test "$aix_use_runtimelinking" = yes; then
8536 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8537 # instead of lib<name>.a to let people know that these are not
8538 # typical AIX shared libraries.
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540 else
8541 # We preserve .a as extension for shared libraries through AIX4.2
8542 # and later when we are not doing run time linking.
8543 library_names_spec='${libname}${release}.a $libname.a'
8544 soname_spec='${libname}${release}${shared_ext}$major'
8545 fi
8546 shlibpath_var=LIBPATH
8547 fi
8548 ;;
8549
8550 amigaos*)
8551 if test "$host_cpu" = m68k; then
8552 library_names_spec='$libname.ixlibrary $libname.a'
8553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8554 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'
8555 else
8556 dynamic_linker=no
8557 fi
8558 ;;
8559
8560 beos*)
8561 library_names_spec='${libname}${shared_ext}'
8562 dynamic_linker="$host_os ld.so"
8563 shlibpath_var=LIBRARY_PATH
8564 ;;
8565
8566 bsdi[45]*)
8567 version_type=linux
8568 need_version=no
8569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8570 soname_spec='${libname}${release}${shared_ext}$major'
8571 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8572 shlibpath_var=LD_LIBRARY_PATH
8573 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8574 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8575 # the default ld.so.conf also contains /usr/contrib/lib and
8576 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8577 # libtool to hard-code these into programs
8578 ;;
8579
8580 cygwin* | mingw* | pw32*)
8581 version_type=windows
8582 shrext_cmds=".dll"
8583 need_version=no
8584 need_lib_prefix=no
8585
8586 case $withGCC,$host_os in
8587 yes,cygwin* | yes,mingw* | yes,pw32*)
8588 library_names_spec='$libname.dll.a'
8589 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8590 postinstall_cmds='base_file=`basename \${file}`~
8591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8592 dldir=$destdir/`dirname \$dlpath`~
8593 test -d \$dldir || mkdir -p \$dldir~
8594 $install_prog $dir/$dlname \$dldir/$dlname~
8595 chmod a+x \$dldir/$dlname~
8596 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8597 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8598 fi'
8599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8600 dlpath=$dir/\$dldll~
8601 $RM \$dlpath'
8602 shlibpath_overrides_runpath=yes
8603
8604 case $host_os in
8605 cygwin*)
8606 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8607 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8608 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8609 ;;
8610 mingw*)
8611 # MinGW DLLs use traditional 'lib' prefix
8612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8613 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8615 # It is most probably a Windows format PATH printed by
8616 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8617 # path with ; separators, and with drive letters. We can handle the
8618 # drive letters (cygwin fileutils understands them), so leave them,
8619 # especially as we might pass files found there to a mingw objdump,
8620 # which wouldn't understand a cygwinified path. Ahh.
8621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8622 else
8623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8624 fi
8625 ;;
8626 pw32*)
8627 # pw32 DLLs use 'pw' prefix rather than 'lib'
8628 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8629 ;;
8630 esac
8631 ;;
8632
8633 *)
8634 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8635 ;;
8636 esac
8637 dynamic_linker='Win32 ld.exe'
8638 # FIXME: first we should search . and the directory the executable is in
8639 shlibpath_var=PATH
8640 ;;
8641
8642 darwin* | rhapsody*)
8643 dynamic_linker="$host_os dyld"
8644 version_type=darwin
8645 need_lib_prefix=no
8646 need_version=no
8647 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8648 soname_spec='${libname}${release}${major}$shared_ext'
8649 shlibpath_overrides_runpath=yes
8650 shlibpath_var=DYLD_LIBRARY_PATH
8651 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8652
8653 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8654 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8655 ;;
8656
8657 dgux*)
8658 version_type=linux
8659 need_lib_prefix=no
8660 need_version=no
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 ;;
8665
8666 freebsd1*)
8667 dynamic_linker=no
8668 ;;
8669
8670 freebsd* | dragonfly*)
8671 # DragonFly does not have aout. When/if they implement a new
8672 # versioning mechanism, adjust this.
8673 if test -x /usr/bin/objformat; then
8674 objformat=`/usr/bin/objformat`
8675 else
8676 case $host_os in
8677 freebsd[123]*) objformat=aout ;;
8678 *) objformat=elf ;;
8679 esac
8680 fi
8681 version_type=freebsd-$objformat
8682 case $version_type in
8683 freebsd-elf*)
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8685 need_version=no
8686 need_lib_prefix=no
8687 ;;
8688 freebsd-*)
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8690 need_version=yes
8691 ;;
8692 esac
8693 shlibpath_var=LD_LIBRARY_PATH
8694 case $host_os in
8695 freebsd2*)
8696 shlibpath_overrides_runpath=yes
8697 ;;
8698 freebsd3.[01]* | freebsdelf3.[01]*)
8699 shlibpath_overrides_runpath=yes
8700 hardcode_into_libs=yes
8701 ;;
8702 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8703 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8704 shlibpath_overrides_runpath=no
8705 hardcode_into_libs=yes
8706 ;;
8707 *) # from 4.6 on, and DragonFly
8708 shlibpath_overrides_runpath=yes
8709 hardcode_into_libs=yes
8710 ;;
8711 esac
8712 ;;
8713
8714 gnu*)
8715 version_type=linux
8716 need_lib_prefix=no
8717 need_version=no
8718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8719 soname_spec='${libname}${release}${shared_ext}$major'
8720 shlibpath_var=LD_LIBRARY_PATH
8721 hardcode_into_libs=yes
8722 ;;
8723
8724 hpux9* | hpux10* | hpux11*)
8725 # Give a soname corresponding to the major version so that dld.sl refuses to
8726 # link against other versions.
8727 version_type=sunos
8728 need_lib_prefix=no
8729 need_version=no
8730 case $host_cpu in
8731 ia64*)
8732 shrext_cmds='.so'
8733 hardcode_into_libs=yes
8734 dynamic_linker="$host_os dld.so"
8735 shlibpath_var=LD_LIBRARY_PATH
8736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 if test "X$HPUX_IA64_MODE" = X32; then
8740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8741 else
8742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8743 fi
8744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8745 ;;
8746 hppa*64*)
8747 shrext_cmds='.sl'
8748 hardcode_into_libs=yes
8749 dynamic_linker="$host_os dld.sl"
8750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8756 ;;
8757 *)
8758 shrext_cmds='.sl'
8759 dynamic_linker="$host_os dld.sl"
8760 shlibpath_var=SHLIB_PATH
8761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8764 ;;
8765 esac
8766 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8767 postinstall_cmds='chmod 555 $lib'
8768 ;;
8769
8770 interix[3-9]*)
8771 version_type=linux
8772 need_lib_prefix=no
8773 need_version=no
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8777 shlibpath_var=LD_LIBRARY_PATH
8778 shlibpath_overrides_runpath=no
8779 hardcode_into_libs=yes
8780 ;;
8781
8782 irix5* | irix6* | nonstopux*)
8783 case $host_os in
8784 nonstopux*) version_type=nonstopux ;;
8785 *)
8786 if test "$lt_cv_prog_gnu_ld" = yes; then
8787 version_type=linux
8788 else
8789 version_type=irix
8790 fi ;;
8791 esac
8792 need_lib_prefix=no
8793 need_version=no
8794 soname_spec='${libname}${release}${shared_ext}$major'
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8796 case $host_os in
8797 irix5* | nonstopux*)
8798 libsuff= shlibsuff=
8799 ;;
8800 *)
8801 case $LD in # libtool.m4 will add one of these switches to LD
8802 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8803 libsuff= shlibsuff= libmagic=32-bit;;
8804 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8805 libsuff=32 shlibsuff=N32 libmagic=N32;;
8806 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8807 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8808 *) libsuff= shlibsuff= libmagic=never-match;;
8809 esac
8810 ;;
8811 esac
8812 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8813 shlibpath_overrides_runpath=no
8814 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8815 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8816 hardcode_into_libs=yes
8817 ;;
8818
8819 # No shared lib support for Linux oldld, aout, or coff.
8820 linux*oldld* | linux*aout* | linux*coff*)
8821 dynamic_linker=no
8822 ;;
8823
8824 # This must be Linux ELF.
8825 linux* | k*bsd*-gnu)
8826 version_type=linux
8827 need_lib_prefix=no
8828 need_version=no
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=no
8834 # Some binutils ld are patched to set DT_RUNPATH
8835 save_LDFLAGS=$LDFLAGS
8836 save_libdir=$libdir
8837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8839 if test x$gcc_no_link = xyes; then
8840 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8841 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8842 { (exit 1); exit 1; }; }
8843 fi
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850
8851 int
8852 main ()
8853 {
8854
8855 ;
8856 return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8882 shlibpath_overrides_runpath=yes
8883 fi
8884
8885 else
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 fi
8890 rm -f conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LDFLAGS=$save_LDFLAGS
8893 libdir=$save_libdir
8894
8895 # This implies no fast_install, which is unacceptable.
8896 # Some rework will be needed to allow for fast_install
8897 # before this can be enabled.
8898 hardcode_into_libs=yes
8899
8900 # Append ld.so.conf contents to the search path
8901 if test -f /etc/ld.so.conf; then
8902 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8904 fi
8905
8906 # We used to test for /lib/ld.so.1 and disable shared libraries on
8907 # powerpc, because MkLinux only supported shared libraries with the
8908 # GNU dynamic linker. Since this was broken with cross compilers,
8909 # most powerpc-linux boxes support dynamic linking these days and
8910 # people can always --disable-shared, the test was removed, and we
8911 # assume the GNU/Linux dynamic linker is in use.
8912 dynamic_linker='GNU/Linux ld.so'
8913 ;;
8914
8915 netbsd*)
8916 version_type=sunos
8917 need_lib_prefix=no
8918 need_version=no
8919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8922 dynamic_linker='NetBSD (a.out) ld.so'
8923 else
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 dynamic_linker='NetBSD ld.elf_so'
8927 fi
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=yes
8930 hardcode_into_libs=yes
8931 ;;
8932
8933 newsos6)
8934 version_type=linux
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=yes
8938 ;;
8939
8940 *nto* | *qnx*)
8941 version_type=qnx
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=no
8948 hardcode_into_libs=yes
8949 dynamic_linker='ldqnx.so'
8950 ;;
8951
8952 openbsd*)
8953 version_type=sunos
8954 sys_lib_dlsearch_path_spec="/usr/lib"
8955 need_lib_prefix=no
8956 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8957 case $host_os in
8958 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8959 *) need_version=no ;;
8960 esac
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963 shlibpath_var=LD_LIBRARY_PATH
8964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8965 case $host_os in
8966 openbsd2.[89] | openbsd2.[89].*)
8967 shlibpath_overrides_runpath=no
8968 ;;
8969 *)
8970 shlibpath_overrides_runpath=yes
8971 ;;
8972 esac
8973 else
8974 shlibpath_overrides_runpath=yes
8975 fi
8976 ;;
8977
8978 os2*)
8979 libname_spec='$name'
8980 shrext_cmds=".dll"
8981 need_lib_prefix=no
8982 library_names_spec='$libname${shared_ext} $libname.a'
8983 dynamic_linker='OS/2 ld.exe'
8984 shlibpath_var=LIBPATH
8985 ;;
8986
8987 osf3* | osf4* | osf5*)
8988 version_type=osf
8989 need_lib_prefix=no
8990 need_version=no
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8996 ;;
8997
8998 rdos*)
8999 dynamic_linker=no
9000 ;;
9001
9002 solaris*)
9003 version_type=linux
9004 need_lib_prefix=no
9005 need_version=no
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=yes
9010 hardcode_into_libs=yes
9011 # ldd complains unless libraries are executable
9012 postinstall_cmds='chmod +x $lib'
9013 ;;
9014
9015 sunos4*)
9016 version_type=sunos
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes
9021 if test "$with_gnu_ld" = yes; then
9022 need_lib_prefix=no
9023 fi
9024 need_version=yes
9025 ;;
9026
9027 sysv4 | sysv4.3*)
9028 version_type=linux
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 case $host_vendor in
9033 sni)
9034 shlibpath_overrides_runpath=no
9035 need_lib_prefix=no
9036 runpath_var=LD_RUN_PATH
9037 ;;
9038 siemens)
9039 need_lib_prefix=no
9040 ;;
9041 motorola)
9042 need_lib_prefix=no
9043 need_version=no
9044 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9046 ;;
9047 esac
9048 ;;
9049
9050 sysv4*MP*)
9051 if test -d /usr/nec ;then
9052 version_type=linux
9053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec='$libname${shared_ext}.$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 fi
9057 ;;
9058
9059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060 version_type=freebsd-elf
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 hardcode_into_libs=yes
9068 if test "$with_gnu_ld" = yes; then
9069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9070 else
9071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072 case $host_os in
9073 sco3.2v5*)
9074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9075 ;;
9076 esac
9077 fi
9078 sys_lib_dlsearch_path_spec='/usr/lib'
9079 ;;
9080
9081 tpf*)
9082 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9083 version_type=linux
9084 need_lib_prefix=no
9085 need_version=no
9086 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 hardcode_into_libs=yes
9090 ;;
9091
9092 uts4*)
9093 version_type=linux
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 ;;
9098
9099 *)
9100 dynamic_linker=no
9101 ;;
9102 esac
9103 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9104 echo "${ECHO_T}$dynamic_linker" >&6
9105 test "$dynamic_linker" = no && can_build_shared=no
9106
9107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9108 if test "$GCC" = yes; then
9109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9110 fi
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9199 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9200 hardcode_action=
9201 if test -n "$hardcode_libdir_flag_spec" ||
9202 test -n "$runpath_var" ||
9203 test "X$hardcode_automatic" = "Xyes" ; then
9204
9205 # We can hardcode non-existent directories.
9206 if test "$hardcode_direct" != no &&
9207 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9208 # have to relink, otherwise we might link with an installed library
9209 # when we should be linking with a yet-to-be-installed one
9210 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9211 test "$hardcode_minus_L" != no; then
9212 # Linking always hardcodes the temporary library directory.
9213 hardcode_action=relink
9214 else
9215 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9216 hardcode_action=immediate
9217 fi
9218 else
9219 # We cannot hardcode anything, or else we can only hardcode existing
9220 # directories.
9221 hardcode_action=unsupported
9222 fi
9223 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9224 echo "${ECHO_T}$hardcode_action" >&6
9225
9226 if test "$hardcode_action" = relink ||
9227 test "$inherit_rpath" = yes; then
9228 # Fast installation is not supported
9229 enable_fast_install=no
9230 elif test "$shlibpath_overrides_runpath" = yes ||
9231 test "$enable_shared" = no; then
9232 # Fast installation is not necessary
9233 enable_fast_install=needless
9234 fi
9235
9236
9237
9238
9239
9240
9241 if test "x$enable_dlopen" != xyes; then
9242 enable_dlopen=unknown
9243 enable_dlopen_self=unknown
9244 enable_dlopen_self_static=unknown
9245 else
9246 lt_cv_dlopen=no
9247 lt_cv_dlopen_libs=
9248
9249 case $host_os in
9250 beos*)
9251 lt_cv_dlopen="load_add_on"
9252 lt_cv_dlopen_libs=
9253 lt_cv_dlopen_self=yes
9254 ;;
9255
9256 mingw* | pw32*)
9257 lt_cv_dlopen="LoadLibrary"
9258 lt_cv_dlopen_libs=
9259 ;;
9260
9261 cygwin*)
9262 lt_cv_dlopen="dlopen"
9263 lt_cv_dlopen_libs=
9264 ;;
9265
9266 darwin*)
9267 # if libdl is installed we need to link against it
9268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 ac_check_lib_save_LIBS=$LIBS
9274 LIBS="-ldl $LIBS"
9275 if test x$gcc_no_link = xyes; then
9276 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9277 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9278 { (exit 1); exit 1; }; }
9279 fi
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286
9287 /* Override any gcc2 internal prototype to avoid an error. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 /* We use char because int might match the return type of a gcc2
9292 builtin and then its argument prototype would still apply. */
9293 char dlopen ();
9294 int
9295 main ()
9296 {
9297 dlopen ();
9298 ;
9299 return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_lib_dl_dlopen=yes
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_cv_lib_dl_dlopen=no
9330 fi
9331 rm -f conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9334 fi
9335 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9336 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9337 if test $ac_cv_lib_dl_dlopen = yes; then
9338 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9339 else
9340
9341 lt_cv_dlopen="dyld"
9342 lt_cv_dlopen_libs=
9343 lt_cv_dlopen_self=yes
9344
9345 fi
9346
9347 ;;
9348
9349 *)
9350 echo "$as_me:$LINENO: checking for shl_load" >&5
9351 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9352 if test "${ac_cv_func_shl_load+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355 if test x$gcc_no_link = xyes; then
9356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9358 { (exit 1); exit 1; }; }
9359 fi
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9368 #define shl_load innocuous_shl_load
9369
9370 /* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char shl_load (); below.
9372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 <limits.h> exists even on freestanding compilers. */
9374
9375 #ifdef __STDC__
9376 # include <limits.h>
9377 #else
9378 # include <assert.h>
9379 #endif
9380
9381 #undef shl_load
9382
9383 /* Override any gcc2 internal prototype to avoid an error. */
9384 #ifdef __cplusplus
9385 extern "C"
9386 {
9387 #endif
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9390 char shl_load ();
9391 /* The GNU C library defines this for functions which it implements
9392 to always fail with ENOSYS. Some functions are actually named
9393 something starting with __ and the normal name is an alias. */
9394 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9395 choke me
9396 #else
9397 char (*f) () = shl_load;
9398 #endif
9399 #ifdef __cplusplus
9400 }
9401 #endif
9402
9403 int
9404 main ()
9405 {
9406 return f != shl_load;
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_func_shl_load=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 ac_cv_func_shl_load=no
9439 fi
9440 rm -f conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9442 fi
9443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9445 if test $ac_cv_func_shl_load = yes; then
9446 lt_cv_dlopen="shl_load"
9447 else
9448 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 ac_check_lib_save_LIBS=$LIBS
9454 LIBS="-ldld $LIBS"
9455 if test x$gcc_no_link = xyes; then
9456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9458 { (exit 1); exit 1; }; }
9459 fi
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466
9467 /* Override any gcc2 internal prototype to avoid an error. */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 /* We use char because int might match the return type of a gcc2
9472 builtin and then its argument prototype would still apply. */
9473 char shl_load ();
9474 int
9475 main ()
9476 {
9477 shl_load ();
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484 (eval $ac_link) 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -z "$ac_c_werror_flag"
9492 || test ! -s conftest.err'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try='test -s conftest$ac_exeext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_cv_lib_dld_shl_load=yes
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ac_cv_lib_dld_shl_load=no
9510 fi
9511 rm -f conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 LIBS=$ac_check_lib_save_LIBS
9514 fi
9515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9516 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9517 if test $ac_cv_lib_dld_shl_load = yes; then
9518 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9519 else
9520 echo "$as_me:$LINENO: checking for dlopen" >&5
9521 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9522 if test "${ac_cv_func_dlopen+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525 if test x$gcc_no_link = xyes; then
9526 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9528 { (exit 1); exit 1; }; }
9529 fi
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538 #define dlopen innocuous_dlopen
9539
9540 /* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char dlopen (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9544
9545 #ifdef __STDC__
9546 # include <limits.h>
9547 #else
9548 # include <assert.h>
9549 #endif
9550
9551 #undef dlopen
9552
9553 /* Override any gcc2 internal prototype to avoid an error. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 {
9557 #endif
9558 /* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9560 char dlopen ();
9561 /* The GNU C library defines this for functions which it implements
9562 to always fail with ENOSYS. Some functions are actually named
9563 something starting with __ and the normal name is an alias. */
9564 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9565 choke me
9566 #else
9567 char (*f) () = dlopen;
9568 #endif
9569 #ifdef __cplusplus
9570 }
9571 #endif
9572
9573 int
9574 main ()
9575 {
9576 return f != dlopen;
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_func_dlopen=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_cv_func_dlopen=no
9609 fi
9610 rm -f conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 fi
9613 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9615 if test $ac_cv_func_dlopen = yes; then
9616 lt_cv_dlopen="dlopen"
9617 else
9618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 ac_check_lib_save_LIBS=$LIBS
9624 LIBS="-ldl $LIBS"
9625 if test x$gcc_no_link = xyes; then
9626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9628 { (exit 1); exit 1; }; }
9629 fi
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636
9637 /* Override any gcc2 internal prototype to avoid an error. */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 /* We use char because int might match the return type of a gcc2
9642 builtin and then its argument prototype would still apply. */
9643 char dlopen ();
9644 int
9645 main ()
9646 {
9647 dlopen ();
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_lib_dl_dlopen=yes
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_cv_lib_dl_dlopen=no
9680 fi
9681 rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9684 fi
9685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9687 if test $ac_cv_lib_dl_dlopen = yes; then
9688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9689 else
9690 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9691 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695 ac_check_lib_save_LIBS=$LIBS
9696 LIBS="-lsvld $LIBS"
9697 if test x$gcc_no_link = xyes; then
9698 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9700 { (exit 1); exit 1; }; }
9701 fi
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708
9709 /* Override any gcc2 internal prototype to avoid an error. */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 /* We use char because int might match the return type of a gcc2
9714 builtin and then its argument prototype would still apply. */
9715 char dlopen ();
9716 int
9717 main ()
9718 {
9719 dlopen ();
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726 (eval $ac_link) 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag"
9734 || test ! -s conftest.err'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest$ac_exeext'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; }; then
9746 ac_cv_lib_svld_dlopen=yes
9747 else
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 ac_cv_lib_svld_dlopen=no
9752 fi
9753 rm -f conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9756 fi
9757 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9758 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9759 if test $ac_cv_lib_svld_dlopen = yes; then
9760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9761 else
9762 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9763 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9764 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767 ac_check_lib_save_LIBS=$LIBS
9768 LIBS="-ldld $LIBS"
9769 if test x$gcc_no_link = xyes; then
9770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9772 { (exit 1); exit 1; }; }
9773 fi
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780
9781 /* Override any gcc2 internal prototype to avoid an error. */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9787 char dld_link ();
9788 int
9789 main ()
9790 {
9791 dld_link ();
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest$ac_exeext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_lib_dld_dld_link=yes
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_cv_lib_dld_dld_link=no
9824 fi
9825 rm -f conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827 LIBS=$ac_check_lib_save_LIBS
9828 fi
9829 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9830 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9831 if test $ac_cv_lib_dld_dld_link = yes; then
9832 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9833 fi
9834
9835
9836 fi
9837
9838
9839 fi
9840
9841
9842 fi
9843
9844
9845 fi
9846
9847
9848 fi
9849
9850 ;;
9851 esac
9852
9853 if test "x$lt_cv_dlopen" != xno; then
9854 enable_dlopen=yes
9855 else
9856 enable_dlopen=no
9857 fi
9858
9859 case $lt_cv_dlopen in
9860 dlopen)
9861 save_CPPFLAGS="$CPPFLAGS"
9862 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9863
9864 save_LDFLAGS="$LDFLAGS"
9865 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9866
9867 save_LIBS="$LIBS"
9868 LIBS="$lt_cv_dlopen_libs $LIBS"
9869
9870 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9871 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9872 if test "${lt_cv_dlopen_self+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 if test "$cross_compiling" = yes; then :
9876 lt_cv_dlopen_self=cross
9877 else
9878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9879 lt_status=$lt_dlunknown
9880 cat > conftest.$ac_ext <<_LT_EOF
9881 #line 9881 "configure"
9882 #include "confdefs.h"
9883
9884 #if HAVE_DLFCN_H
9885 #include <dlfcn.h>
9886 #endif
9887
9888 #include <stdio.h>
9889
9890 #ifdef RTLD_GLOBAL
9891 # define LT_DLGLOBAL RTLD_GLOBAL
9892 #else
9893 # ifdef DL_GLOBAL
9894 # define LT_DLGLOBAL DL_GLOBAL
9895 # else
9896 # define LT_DLGLOBAL 0
9897 # endif
9898 #endif
9899
9900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9901 find out it does not work in some platform. */
9902 #ifndef LT_DLLAZY_OR_NOW
9903 # ifdef RTLD_LAZY
9904 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9905 # else
9906 # ifdef DL_LAZY
9907 # define LT_DLLAZY_OR_NOW DL_LAZY
9908 # else
9909 # ifdef RTLD_NOW
9910 # define LT_DLLAZY_OR_NOW RTLD_NOW
9911 # else
9912 # ifdef DL_NOW
9913 # define LT_DLLAZY_OR_NOW DL_NOW
9914 # else
9915 # define LT_DLLAZY_OR_NOW 0
9916 # endif
9917 # endif
9918 # endif
9919 # endif
9920 #endif
9921
9922 #ifdef __cplusplus
9923 extern "C" void exit (int);
9924 #endif
9925
9926 void fnord() { int i=42;}
9927 int main ()
9928 {
9929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9930 int status = $lt_dlunknown;
9931
9932 if (self)
9933 {
9934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9936 /* dlclose (self); */
9937 }
9938 else
9939 puts (dlerror ());
9940
9941 exit (status);
9942 }
9943 _LT_EOF
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 (eval $ac_link) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9949 (./conftest; exit; ) >&5 2>/dev/null
9950 lt_status=$?
9951 case x$lt_status in
9952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9955 esac
9956 else :
9957 # compilation failed
9958 lt_cv_dlopen_self=no
9959 fi
9960 fi
9961 rm -fr conftest*
9962
9963
9964 fi
9965 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9966 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9967
9968 if test "x$lt_cv_dlopen_self" = xyes; then
9969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9970 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9971 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9972 if test "${lt_cv_dlopen_self_static+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 if test "$cross_compiling" = yes; then :
9976 lt_cv_dlopen_self_static=cross
9977 else
9978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9979 lt_status=$lt_dlunknown
9980 cat > conftest.$ac_ext <<_LT_EOF
9981 #line 9981 "configure"
9982 #include "confdefs.h"
9983
9984 #if HAVE_DLFCN_H
9985 #include <dlfcn.h>
9986 #endif
9987
9988 #include <stdio.h>
9989
9990 #ifdef RTLD_GLOBAL
9991 # define LT_DLGLOBAL RTLD_GLOBAL
9992 #else
9993 # ifdef DL_GLOBAL
9994 # define LT_DLGLOBAL DL_GLOBAL
9995 # else
9996 # define LT_DLGLOBAL 0
9997 # endif
9998 #endif
9999
10000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10001 find out it does not work in some platform. */
10002 #ifndef LT_DLLAZY_OR_NOW
10003 # ifdef RTLD_LAZY
10004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10005 # else
10006 # ifdef DL_LAZY
10007 # define LT_DLLAZY_OR_NOW DL_LAZY
10008 # else
10009 # ifdef RTLD_NOW
10010 # define LT_DLLAZY_OR_NOW RTLD_NOW
10011 # else
10012 # ifdef DL_NOW
10013 # define LT_DLLAZY_OR_NOW DL_NOW
10014 # else
10015 # define LT_DLLAZY_OR_NOW 0
10016 # endif
10017 # endif
10018 # endif
10019 # endif
10020 #endif
10021
10022 #ifdef __cplusplus
10023 extern "C" void exit (int);
10024 #endif
10025
10026 void fnord() { int i=42;}
10027 int main ()
10028 {
10029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10030 int status = $lt_dlunknown;
10031
10032 if (self)
10033 {
10034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10036 /* dlclose (self); */
10037 }
10038 else
10039 puts (dlerror ());
10040
10041 exit (status);
10042 }
10043 _LT_EOF
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10049 (./conftest; exit; ) >&5 2>/dev/null
10050 lt_status=$?
10051 case x$lt_status in
10052 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10053 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10054 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10055 esac
10056 else :
10057 # compilation failed
10058 lt_cv_dlopen_self_static=no
10059 fi
10060 fi
10061 rm -fr conftest*
10062
10063
10064 fi
10065 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10066 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10067 fi
10068
10069 CPPFLAGS="$save_CPPFLAGS"
10070 LDFLAGS="$save_LDFLAGS"
10071 LIBS="$save_LIBS"
10072 ;;
10073 esac
10074
10075 case $lt_cv_dlopen_self in
10076 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10077 *) enable_dlopen_self=unknown ;;
10078 esac
10079
10080 case $lt_cv_dlopen_self_static in
10081 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10082 *) enable_dlopen_self_static=unknown ;;
10083 esac
10084 fi
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102 striplib=
10103 old_striplib=
10104 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10105 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10106 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10107 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10108 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10109 echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10111 else
10112 # FIXME - insert some real tests, host_os isn't really good enough
10113 case $host_os in
10114 darwin*)
10115 if test -n "$STRIP" ; then
10116 striplib="$STRIP -x"
10117 old_striplib="$STRIP -S"
10118 echo "$as_me:$LINENO: result: yes" >&5
10119 echo "${ECHO_T}yes" >&6
10120 else
10121 echo "$as_me:$LINENO: result: no" >&5
10122 echo "${ECHO_T}no" >&6
10123 fi
10124 ;;
10125 *)
10126 echo "$as_me:$LINENO: result: no" >&5
10127 echo "${ECHO_T}no" >&6
10128 ;;
10129 esac
10130 fi
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143 # Report which library types will actually be built
10144 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10145 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10146 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10147 echo "${ECHO_T}$can_build_shared" >&6
10148
10149 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10150 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10151 test "$can_build_shared" = "no" && enable_shared=no
10152
10153 # On AIX, shared libraries and static libraries use the same namespace, and
10154 # are all built from PIC.
10155 case $host_os in
10156 aix3*)
10157 test "$enable_shared" = yes && enable_static=no
10158 if test -n "$RANLIB"; then
10159 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10160 postinstall_cmds='$RANLIB $lib'
10161 fi
10162 ;;
10163
10164 aix[4-9]*)
10165 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10166 test "$enable_shared" = yes && enable_static=no
10167 fi
10168 ;;
10169 esac
10170 echo "$as_me:$LINENO: result: $enable_shared" >&5
10171 echo "${ECHO_T}$enable_shared" >&6
10172
10173 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10174 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10175 # Make sure either enable_shared or enable_static is yes.
10176 test "$enable_shared" = yes || enable_static=yes
10177 echo "$as_me:$LINENO: result: $enable_static" >&5
10178 echo "${ECHO_T}$enable_static" >&6
10179
10180
10181
10182
10183 fi
10184 ac_ext=c
10185 ac_cpp='$CPP $CPPFLAGS'
10186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10189
10190 CC="$lt_save_CC"
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204 ac_config_commands="$ac_config_commands libtool"
10205
10206
10207
10208
10209 # Only expand once:
10210
10211
10212
10213
10214
10215 # Calculate toolexeclibdir
10216 # Also toolexecdir, though it's only used in toolexeclibdir
10217 case ${version_specific_libs} in
10218 yes)
10219 # Need the gcc compiler version to know where to install libraries
10220 # and header files if --enable-version-specific-runtime-libs option
10221 # is selected.
10222 toolexecdir='$(libdir)/gcc/$(target_alias)'
10223 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10224 ;;
10225 no)
10226 if test -n "$with_cross_host" &&
10227 test x"$with_cross_host" != x"no"; then
10228 # Install a library built with a cross compiler in tooldir, not libdir.
10229 toolexecdir='$(exec_prefix)/$(target_alias)'
10230 toolexeclibdir='$(toolexecdir)/lib'
10231 else
10232 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10233 toolexeclibdir='$(libdir)'
10234 fi
10235 multi_os_directory=`$CC -print-multi-os-directory`
10236 case $multi_os_directory in
10237 .) ;; # Avoid trailing /.
10238 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10239 esac
10240 ;;
10241 esac
10242
10243
10244
10245 if test ${multilib} = yes; then
10246 multilib_arg="--enable-multilib"
10247 else
10248 multilib_arg=
10249 fi
10250
10251 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10252
10253 cat >confcache <<\_ACEOF
10254 # This file is a shell script that caches the results of configure
10255 # tests run on this system so they can be shared between configure
10256 # scripts and configure runs, see configure's option --config-cache.
10257 # It is not useful on other systems. If it contains results you don't
10258 # want to keep, you may remove or edit it.
10259 #
10260 # config.status only pays attention to the cache file if you give it
10261 # the --recheck option to rerun configure.
10262 #
10263 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10264 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10265 # following values.
10266
10267 _ACEOF
10268
10269 # The following way of writing the cache mishandles newlines in values,
10270 # but we know of no workaround that is simple, portable, and efficient.
10271 # So, don't put newlines in cache variables' values.
10272 # Ultrix sh set writes to stderr and can't be redirected directly,
10273 # and sets the high bit in the cache file unless we assign to the vars.
10274 {
10275 (set) 2>&1 |
10276 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10277 *ac_space=\ *)
10278 # `set' does not quote correctly, so add quotes (double-quote
10279 # substitution turns \\\\ into \\, and sed turns \\ into \).
10280 sed -n \
10281 "s/'/'\\\\''/g;
10282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10283 ;;
10284 *)
10285 # `set' quotes correctly as required by POSIX, so do not add quotes.
10286 sed -n \
10287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10288 ;;
10289 esac;
10290 } |
10291 sed '
10292 t clear
10293 : clear
10294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10295 t end
10296 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10297 : end' >>confcache
10298 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10299 if test -w $cache_file; then
10300 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10301 cat confcache >$cache_file
10302 else
10303 echo "not updating unwritable cache $cache_file"
10304 fi
10305 fi
10306 rm -f confcache
10307
10308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10309 # Let make expand exec_prefix.
10310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10311
10312 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10313 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10314 # trailing colons and then remove the whole line if VPATH becomes empty
10315 # (actually we leave an empty line to preserve line numbers).
10316 if test "x$srcdir" = x.; then
10317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10318 s/:*\$(srcdir):*/:/;
10319 s/:*\${srcdir}:*/:/;
10320 s/:*@srcdir@:*/:/;
10321 s/^\([^=]*=[ ]*\):*/\1/;
10322 s/:*$//;
10323 s/^[^=]*=[ ]*$//;
10324 }'
10325 fi
10326
10327 DEFS=-DHAVE_CONFIG_H
10328
10329 ac_libobjs=
10330 ac_ltlibobjs=
10331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10332 # 1. Remove the extension, and $U if already installed.
10333 ac_i=`echo "$ac_i" |
10334 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10335 # 2. Add them.
10336 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10337 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10338 done
10339 LIBOBJS=$ac_libobjs
10340
10341 LTLIBOBJS=$ac_ltlibobjs
10342
10343
10344 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10345 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10346 Usually this means the macro was only invoked conditionally." >&5
10347 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10348 Usually this means the macro was only invoked conditionally." >&2;}
10349 { (exit 1); exit 1; }; }
10350 fi
10351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10352 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10353 Usually this means the macro was only invoked conditionally." >&5
10354 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10355 Usually this means the macro was only invoked conditionally." >&2;}
10356 { (exit 1); exit 1; }; }
10357 fi
10358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10359 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10360 Usually this means the macro was only invoked conditionally." >&5
10361 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10362 Usually this means the macro was only invoked conditionally." >&2;}
10363 { (exit 1); exit 1; }; }
10364 fi
10365 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
10366 { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10367 Usually this means the macro was only invoked conditionally." >&5
10368 echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10369 Usually this means the macro was only invoked conditionally." >&2;}
10370 { (exit 1); exit 1; }; }
10371 fi
10372
10373 : ${CONFIG_STATUS=./config.status}
10374 ac_clean_files_save=$ac_clean_files
10375 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10376 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10377 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10378 cat >$CONFIG_STATUS <<_ACEOF
10379 #! $SHELL
10380 # Generated by $as_me.
10381 # Run this file to recreate the current configuration.
10382 # Compiler output produced by configure, useful for debugging
10383 # configure, is in config.log if it exists.
10384
10385 debug=false
10386 ac_cs_recheck=false
10387 ac_cs_silent=false
10388 SHELL=\${CONFIG_SHELL-$SHELL}
10389 _ACEOF
10390
10391 cat >>$CONFIG_STATUS <<\_ACEOF
10392 ## --------------------- ##
10393 ## M4sh Initialization. ##
10394 ## --------------------- ##
10395
10396 # Be Bourne compatible
10397 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10398 emulate sh
10399 NULLCMD=:
10400 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10401 # is contrary to our usage. Disable this feature.
10402 alias -g '${1+"$@"}'='"$@"'
10403 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10404 set -o posix
10405 fi
10406 DUALCASE=1; export DUALCASE # for MKS sh
10407
10408 # Support unset when possible.
10409 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10410 as_unset=unset
10411 else
10412 as_unset=false
10413 fi
10414
10415
10416 # Work around bugs in pre-3.0 UWIN ksh.
10417 $as_unset ENV MAIL MAILPATH
10418 PS1='$ '
10419 PS2='> '
10420 PS4='+ '
10421
10422 # NLS nuisances.
10423 for as_var in \
10424 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10425 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10426 LC_TELEPHONE LC_TIME
10427 do
10428 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10429 eval $as_var=C; export $as_var
10430 else
10431 $as_unset $as_var
10432 fi
10433 done
10434
10435 # Required to use basename.
10436 if expr a : '\(a\)' >/dev/null 2>&1; then
10437 as_expr=expr
10438 else
10439 as_expr=false
10440 fi
10441
10442 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10443 as_basename=basename
10444 else
10445 as_basename=false
10446 fi
10447
10448
10449 # Name of the executable.
10450 as_me=`$as_basename "$0" ||
10451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10452 X"$0" : 'X\(//\)$' \| \
10453 X"$0" : 'X\(/\)$' \| \
10454 . : '\(.\)' 2>/dev/null ||
10455 echo X/"$0" |
10456 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10457 /^X\/\(\/\/\)$/{ s//\1/; q; }
10458 /^X\/\(\/\).*/{ s//\1/; q; }
10459 s/.*/./; q'`
10460
10461
10462 # PATH needs CR, and LINENO needs CR and PATH.
10463 # Avoid depending upon Character Ranges.
10464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10467 as_cr_digits='0123456789'
10468 as_cr_alnum=$as_cr_Letters$as_cr_digits
10469
10470 # The user is always right.
10471 if test "${PATH_SEPARATOR+set}" != set; then
10472 echo "#! /bin/sh" >conf$$.sh
10473 echo "exit 0" >>conf$$.sh
10474 chmod +x conf$$.sh
10475 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10476 PATH_SEPARATOR=';'
10477 else
10478 PATH_SEPARATOR=:
10479 fi
10480 rm -f conf$$.sh
10481 fi
10482
10483
10484 as_lineno_1=$LINENO
10485 as_lineno_2=$LINENO
10486 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10487 test "x$as_lineno_1" != "x$as_lineno_2" &&
10488 test "x$as_lineno_3" = "x$as_lineno_2" || {
10489 # Find who we are. Look in the path if we contain no path at all
10490 # relative or not.
10491 case $0 in
10492 *[\\/]* ) as_myself=$0 ;;
10493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10495 do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10499 done
10500
10501 ;;
10502 esac
10503 # We did not find ourselves, most probably we were run as `sh COMMAND'
10504 # in which case we are not to be found in the path.
10505 if test "x$as_myself" = x; then
10506 as_myself=$0
10507 fi
10508 if test ! -f "$as_myself"; then
10509 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10510 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10511 { (exit 1); exit 1; }; }
10512 fi
10513 case $CONFIG_SHELL in
10514 '')
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10517 do
10518 IFS=$as_save_IFS
10519 test -z "$as_dir" && as_dir=.
10520 for as_base in sh bash ksh sh5; do
10521 case $as_dir in
10522 /*)
10523 if ("$as_dir/$as_base" -c '
10524 as_lineno_1=$LINENO
10525 as_lineno_2=$LINENO
10526 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10527 test "x$as_lineno_1" != "x$as_lineno_2" &&
10528 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10529 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10530 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10531 CONFIG_SHELL=$as_dir/$as_base
10532 export CONFIG_SHELL
10533 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10534 fi;;
10535 esac
10536 done
10537 done
10538 ;;
10539 esac
10540
10541 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10542 # uniformly replaced by the line number. The first 'sed' inserts a
10543 # line-number line before each line; the second 'sed' does the real
10544 # work. The second script uses 'N' to pair each line-number line
10545 # with the numbered line, and appends trailing '-' during
10546 # substitution so that $LINENO is not a special case at line end.
10547 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10548 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10549 sed '=' <$as_myself |
10550 sed '
10551 N
10552 s,$,-,
10553 : loop
10554 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10555 t loop
10556 s,-$,,
10557 s,^['$as_cr_digits']*\n,,
10558 ' >$as_me.lineno &&
10559 chmod +x $as_me.lineno ||
10560 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10561 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10562 { (exit 1); exit 1; }; }
10563
10564 # Don't try to exec as it changes $[0], causing all sort of problems
10565 # (the dirname of $[0] is not the place where we might find the
10566 # original and so on. Autoconf is especially sensible to this).
10567 . ./$as_me.lineno
10568 # Exit status is that of the last command.
10569 exit
10570 }
10571
10572
10573 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10574 *c*,-n*) ECHO_N= ECHO_C='
10575 ' ECHO_T=' ' ;;
10576 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10577 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10578 esac
10579
10580 if expr a : '\(a\)' >/dev/null 2>&1; then
10581 as_expr=expr
10582 else
10583 as_expr=false
10584 fi
10585
10586 rm -f conf$$ conf$$.exe conf$$.file
10587 echo >conf$$.file
10588 if ln -s conf$$.file conf$$ 2>/dev/null; then
10589 # We could just check for DJGPP; but this test a) works b) is more generic
10590 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10591 if test -f conf$$.exe; then
10592 # Don't use ln at all; we don't have any links
10593 as_ln_s='cp -p'
10594 else
10595 as_ln_s='ln -s'
10596 fi
10597 elif ln conf$$.file conf$$ 2>/dev/null; then
10598 as_ln_s=ln
10599 else
10600 as_ln_s='cp -p'
10601 fi
10602 rm -f conf$$ conf$$.exe conf$$.file
10603
10604 if mkdir -p . 2>/dev/null; then
10605 as_mkdir_p=:
10606 else
10607 test -d ./-p && rmdir ./-p
10608 as_mkdir_p=false
10609 fi
10610
10611 as_executable_p="test -f"
10612
10613 # Sed expression to map a string onto a valid CPP name.
10614 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10615
10616 # Sed expression to map a string onto a valid variable name.
10617 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10618
10619
10620 # IFS
10621 # We need space, tab and new line, in precisely that order.
10622 as_nl='
10623 '
10624 IFS=" $as_nl"
10625
10626 # CDPATH.
10627 $as_unset CDPATH
10628
10629 exec 6>&1
10630
10631 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10632 # report actual input values of CONFIG_FILES etc. instead of their
10633 # values after options handling. Logging --version etc. is OK.
10634 exec 5>>config.log
10635 {
10636 echo
10637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10638 ## Running $as_me. ##
10639 _ASBOX
10640 } >&5
10641 cat >&5 <<_CSEOF
10642
10643 This file was extended by libssp $as_me 1.0, which was
10644 generated by GNU Autoconf 2.59. Invocation command line was
10645
10646 CONFIG_FILES = $CONFIG_FILES
10647 CONFIG_HEADERS = $CONFIG_HEADERS
10648 CONFIG_LINKS = $CONFIG_LINKS
10649 CONFIG_COMMANDS = $CONFIG_COMMANDS
10650 $ $0 $@
10651
10652 _CSEOF
10653 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10654 echo >&5
10655 _ACEOF
10656
10657 # Files that config.status was made for.
10658 if test -n "$ac_config_files"; then
10659 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10660 fi
10661
10662 if test -n "$ac_config_headers"; then
10663 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10664 fi
10665
10666 if test -n "$ac_config_links"; then
10667 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10668 fi
10669
10670 if test -n "$ac_config_commands"; then
10671 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10672 fi
10673
10674 cat >>$CONFIG_STATUS <<\_ACEOF
10675
10676 ac_cs_usage="\
10677 \`$as_me' instantiates files from templates according to the
10678 current configuration.
10679
10680 Usage: $0 [OPTIONS] [FILE]...
10681
10682 -h, --help print this help, then exit
10683 -V, --version print version number, then exit
10684 -q, --quiet do not print progress messages
10685 -d, --debug don't remove temporary files
10686 --recheck update $as_me by reconfiguring in the same conditions
10687 --file=FILE[:TEMPLATE]
10688 instantiate the configuration file FILE
10689 --header=FILE[:TEMPLATE]
10690 instantiate the configuration header FILE
10691
10692 Configuration files:
10693 $config_files
10694
10695 Configuration headers:
10696 $config_headers
10697
10698 Configuration commands:
10699 $config_commands
10700
10701 Report bugs to <bug-autoconf@gnu.org>."
10702 _ACEOF
10703
10704 cat >>$CONFIG_STATUS <<_ACEOF
10705 ac_cs_version="\\
10706 libssp config.status 1.0
10707 configured by $0, generated by GNU Autoconf 2.59,
10708 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10709
10710 Copyright (C) 2003 Free Software Foundation, Inc.
10711 This config.status script is free software; the Free Software Foundation
10712 gives unlimited permission to copy, distribute and modify it."
10713 srcdir=$srcdir
10714 INSTALL="$INSTALL"
10715 _ACEOF
10716
10717 cat >>$CONFIG_STATUS <<\_ACEOF
10718 # If no file are specified by the user, then we need to provide default
10719 # value. By we need to know if files were specified by the user.
10720 ac_need_defaults=:
10721 while test $# != 0
10722 do
10723 case $1 in
10724 --*=*)
10725 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10726 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10727 ac_shift=:
10728 ;;
10729 -*)
10730 ac_option=$1
10731 ac_optarg=$2
10732 ac_shift=shift
10733 ;;
10734 *) # This is not an option, so the user has probably given explicit
10735 # arguments.
10736 ac_option=$1
10737 ac_need_defaults=false;;
10738 esac
10739
10740 case $ac_option in
10741 # Handling of the options.
10742 _ACEOF
10743 cat >>$CONFIG_STATUS <<\_ACEOF
10744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10745 ac_cs_recheck=: ;;
10746 --version | --vers* | -V )
10747 echo "$ac_cs_version"; exit 0 ;;
10748 --he | --h)
10749 # Conflict between --help and --header
10750 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10751 Try \`$0 --help' for more information." >&5
10752 echo "$as_me: error: ambiguous option: $1
10753 Try \`$0 --help' for more information." >&2;}
10754 { (exit 1); exit 1; }; };;
10755 --help | --hel | -h )
10756 echo "$ac_cs_usage"; exit 0 ;;
10757 --debug | --d* | -d )
10758 debug=: ;;
10759 --file | --fil | --fi | --f )
10760 $ac_shift
10761 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10762 ac_need_defaults=false;;
10763 --header | --heade | --head | --hea )
10764 $ac_shift
10765 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10766 ac_need_defaults=false;;
10767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10768 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10769 ac_cs_silent=: ;;
10770
10771 # This is an error.
10772 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10773 Try \`$0 --help' for more information." >&5
10774 echo "$as_me: error: unrecognized option: $1
10775 Try \`$0 --help' for more information." >&2;}
10776 { (exit 1); exit 1; }; } ;;
10777
10778 *) ac_config_targets="$ac_config_targets $1" ;;
10779
10780 esac
10781 shift
10782 done
10783
10784 ac_configure_extra_args=
10785
10786 if $ac_cs_silent; then
10787 exec 6>/dev/null
10788 ac_configure_extra_args="$ac_configure_extra_args --silent"
10789 fi
10790
10791 _ACEOF
10792 cat >>$CONFIG_STATUS <<_ACEOF
10793 if \$ac_cs_recheck; then
10794 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10795 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10796 fi
10797
10798 _ACEOF
10799
10800 cat >>$CONFIG_STATUS <<_ACEOF
10801 #
10802 # INIT-COMMANDS section.
10803 #
10804
10805
10806 srcdir="$srcdir"
10807 host="$host"
10808 target="$target"
10809 with_multisubdir="$with_multisubdir"
10810 with_multisrctop="$with_multisrctop"
10811 with_target_subdir="$with_target_subdir"
10812 ac_configure_args="${multilib_arg} ${ac_configure_args}"
10813 multi_basedir="$multi_basedir"
10814 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10815 CC="$CC"
10816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10817
10818
10819 # The HP-UX ksh and POSIX shell print the target directory to stdout
10820 # if CDPATH is set.
10821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10822
10823 sed_quote_subst='$sed_quote_subst'
10824 double_quote_subst='$double_quote_subst'
10825 delay_variable_subst='$delay_variable_subst'
10826 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
10827 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
10828 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
10829 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
10830 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
10831 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
10832 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
10833 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
10834 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
10835 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
10836 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
10837 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
10838 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
10839 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
10840 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
10841 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
10842 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
10843 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
10844 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
10845 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
10846 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
10847 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
10848 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
10849 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
10850 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
10851 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
10852 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
10853 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10854 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
10855 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
10856 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
10857 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10858 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
10859 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
10860 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10861 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10862 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10863 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
10864 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10865 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
10866 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
10867 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
10868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
10869 lt_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"`'
10870 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
10871 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
10872 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
10873 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
10874 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
10875 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
10876 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
10877 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
10878 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
10879 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
10880 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
10881 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10882 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10883 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
10884 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
10885 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10886 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10887 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
10888 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10889 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10890 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10891 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10892 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10893 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10894 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
10895 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10896 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10897 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10898 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
10899 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
10900 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
10901 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
10902 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
10903 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10904 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
10905 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
10906 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
10907 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
10908 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
10909 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10910 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10911 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10912 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10913 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
10914 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
10915 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
10916 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
10917 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
10918 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10919 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10920 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
10921 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10922 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
10923 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10924 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10925 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10926 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10927 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
10928 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
10929 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10930 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10931 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
10932 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
10933 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
10934 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
10935 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
10936 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10937
10938 LTCC='$LTCC'
10939 LTCFLAGS='$LTCFLAGS'
10940 compiler='$compiler_DEFAULT'
10941
10942 # Quote evaled strings.
10943 for var in SED \
10944 GREP \
10945 EGREP \
10946 FGREP \
10947 LD \
10948 NM \
10949 LN_S \
10950 lt_SP2NL \
10951 lt_NL2SP \
10952 reload_flag \
10953 deplibs_check_method \
10954 file_magic_cmd \
10955 AR \
10956 AR_FLAGS \
10957 STRIP \
10958 RANLIB \
10959 CC \
10960 CFLAGS \
10961 compiler \
10962 lt_cv_sys_global_symbol_pipe \
10963 lt_cv_sys_global_symbol_to_cdecl \
10964 lt_cv_sys_global_symbol_to_c_name_address \
10965 SHELL \
10966 ECHO \
10967 lt_prog_compiler_no_builtin_flag \
10968 lt_prog_compiler_wl \
10969 lt_prog_compiler_pic \
10970 lt_prog_compiler_static \
10971 lt_cv_prog_compiler_c_o \
10972 need_locks \
10973 shrext_cmds \
10974 export_dynamic_flag_spec \
10975 whole_archive_flag_spec \
10976 compiler_needs_object \
10977 with_gnu_ld \
10978 allow_undefined_flag \
10979 no_undefined_flag \
10980 hardcode_libdir_flag_spec \
10981 hardcode_libdir_flag_spec_ld \
10982 hardcode_libdir_separator \
10983 fix_srcfile_path \
10984 exclude_expsyms \
10985 include_expsyms \
10986 file_list_spec \
10987 variables_saved_for_relink \
10988 libname_spec \
10989 library_names_spec \
10990 soname_spec \
10991 finish_eval \
10992 old_striplib \
10993 striplib; do
10994 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10995 *[\\\\\\\`\\"\\\$]*)
10996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
10997 ;;
10998 *)
10999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11000 ;;
11001 esac
11002 done
11003
11004 # Double-quote double-evaled strings.
11005 for var in reload_cmds \
11006 old_postinstall_cmds \
11007 old_postuninstall_cmds \
11008 old_archive_cmds \
11009 extract_expsyms_cmds \
11010 old_archive_from_new_cmds \
11011 old_archive_from_expsyms_cmds \
11012 archive_cmds \
11013 archive_expsym_cmds \
11014 module_cmds \
11015 module_expsym_cmds \
11016 export_symbols_cmds \
11017 prelink_cmds \
11018 postinstall_cmds \
11019 postuninstall_cmds \
11020 finish_cmds \
11021 sys_lib_search_path_spec \
11022 sys_lib_dlsearch_path_spec; do
11023 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11024 *[\\\\\\\`\\"\\\$]*)
11025 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11026 ;;
11027 *)
11028 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11029 ;;
11030 esac
11031 done
11032
11033 # Fix-up fallback echo if it was mangled by the above quoting rules.
11034 case \$lt_ECHO in
11035 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11036 ;;
11037 esac
11038
11039 ac_aux_dir='$ac_aux_dir'
11040 xsi_shell='$xsi_shell'
11041 lt_shell_append='$lt_shell_append'
11042
11043 # See if we are running on zsh, and set the options which allow our
11044 # commands through without removal of \ escapes INIT.
11045 if test -n "\${ZSH_VERSION+set}" ; then
11046 setopt NO_GLOB_SUBST
11047 fi
11048
11049
11050 PACKAGE='$PACKAGE'
11051 VERSION='$VERSION'
11052 TIMESTAMP='$TIMESTAMP'
11053 RM='$RM'
11054 ofile='$ofile'
11055
11056
11057
11058
11059 _ACEOF
11060
11061
11062
11063 cat >>$CONFIG_STATUS <<\_ACEOF
11064 for ac_config_target in $ac_config_targets
11065 do
11066 case "$ac_config_target" in
11067 # Handling of arguments.
11068 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11069 "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11070 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11071 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11072 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11073 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11074 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11075 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11076 { (exit 1); exit 1; }; };;
11077 esac
11078 done
11079
11080 # If the user did not use the arguments to specify the items to instantiate,
11081 # then the envvar interface is used. Set only those that are not.
11082 # We use the long form for the default assignment because of an extremely
11083 # bizarre bug on SunOS 4.1.3.
11084 if $ac_need_defaults; then
11085 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11086 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11087 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11088 fi
11089
11090 # Have a temporary directory for convenience. Make it in the build tree
11091 # simply because there is no reason to put it here, and in addition,
11092 # creating and moving files from /tmp can sometimes cause problems.
11093 # Create a temporary directory, and hook for its removal unless debugging.
11094 $debug ||
11095 {
11096 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11097 trap '{ (exit 1); exit 1; }' 1 2 13 15
11098 }
11099
11100 # Create a (secure) tmp directory for tmp files.
11101
11102 {
11103 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11104 test -n "$tmp" && test -d "$tmp"
11105 } ||
11106 {
11107 tmp=./confstat$$-$RANDOM
11108 (umask 077 && mkdir $tmp)
11109 } ||
11110 {
11111 echo "$me: cannot create a temporary directory in ." >&2
11112 { (exit 1); exit 1; }
11113 }
11114
11115 _ACEOF
11116
11117 cat >>$CONFIG_STATUS <<_ACEOF
11118
11119 #
11120 # CONFIG_FILES section.
11121 #
11122
11123 # No need to generate the scripts if there are no CONFIG_FILES.
11124 # This happens for instance when ./config.status config.h
11125 if test -n "\$CONFIG_FILES"; then
11126 # Protect against being on the right side of a sed subst in config.status.
11127 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11128 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11129 s,@SHELL@,$SHELL,;t t
11130 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11131 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11132 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11133 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11134 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11135 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11136 s,@exec_prefix@,$exec_prefix,;t t
11137 s,@prefix@,$prefix,;t t
11138 s,@program_transform_name@,$program_transform_name,;t t
11139 s,@bindir@,$bindir,;t t
11140 s,@sbindir@,$sbindir,;t t
11141 s,@libexecdir@,$libexecdir,;t t
11142 s,@datadir@,$datadir,;t t
11143 s,@sysconfdir@,$sysconfdir,;t t
11144 s,@sharedstatedir@,$sharedstatedir,;t t
11145 s,@localstatedir@,$localstatedir,;t t
11146 s,@libdir@,$libdir,;t t
11147 s,@includedir@,$includedir,;t t
11148 s,@oldincludedir@,$oldincludedir,;t t
11149 s,@infodir@,$infodir,;t t
11150 s,@mandir@,$mandir,;t t
11151 s,@build_alias@,$build_alias,;t t
11152 s,@host_alias@,$host_alias,;t t
11153 s,@target_alias@,$target_alias,;t t
11154 s,@DEFS@,$DEFS,;t t
11155 s,@ECHO_C@,$ECHO_C,;t t
11156 s,@ECHO_N@,$ECHO_N,;t t
11157 s,@ECHO_T@,$ECHO_T,;t t
11158 s,@LIBS@,$LIBS,;t t
11159 s,@build@,$build,;t t
11160 s,@build_cpu@,$build_cpu,;t t
11161 s,@build_vendor@,$build_vendor,;t t
11162 s,@build_os@,$build_os,;t t
11163 s,@host@,$host,;t t
11164 s,@host_cpu@,$host_cpu,;t t
11165 s,@host_vendor@,$host_vendor,;t t
11166 s,@host_os@,$host_os,;t t
11167 s,@target@,$target,;t t
11168 s,@target_cpu@,$target_cpu,;t t
11169 s,@target_vendor@,$target_vendor,;t t
11170 s,@target_os@,$target_os,;t t
11171 s,@target_noncanonical@,$target_noncanonical,;t t
11172 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11173 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11174 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11175 s,@CYGPATH_W@,$CYGPATH_W,;t t
11176 s,@PACKAGE@,$PACKAGE,;t t
11177 s,@VERSION@,$VERSION,;t t
11178 s,@ACLOCAL@,$ACLOCAL,;t t
11179 s,@AUTOCONF@,$AUTOCONF,;t t
11180 s,@AUTOMAKE@,$AUTOMAKE,;t t
11181 s,@AUTOHEADER@,$AUTOHEADER,;t t
11182 s,@MAKEINFO@,$MAKEINFO,;t t
11183 s,@install_sh@,$install_sh,;t t
11184 s,@STRIP@,$STRIP,;t t
11185 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11186 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11187 s,@mkdir_p@,$mkdir_p,;t t
11188 s,@AWK@,$AWK,;t t
11189 s,@SET_MAKE@,$SET_MAKE,;t t
11190 s,@am__leading_dot@,$am__leading_dot,;t t
11191 s,@AMTAR@,$AMTAR,;t t
11192 s,@am__tar@,$am__tar,;t t
11193 s,@am__untar@,$am__untar,;t t
11194 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11195 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11196 s,@MAINT@,$MAINT,;t t
11197 s,@multi_basedir@,$multi_basedir,;t t
11198 s,@CC@,$CC,;t t
11199 s,@ac_ct_CC@,$ac_ct_CC,;t t
11200 s,@EXEEXT@,$EXEEXT,;t t
11201 s,@OBJEXT@,$OBJEXT,;t t
11202 s,@DEPDIR@,$DEPDIR,;t t
11203 s,@am__include@,$am__include,;t t
11204 s,@am__quote@,$am__quote,;t t
11205 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11206 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11207 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11208 s,@CCDEPMODE@,$CCDEPMODE,;t t
11209 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11210 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11211 s,@CFLAGS@,$CFLAGS,;t t
11212 s,@CPP@,$CPP,;t t
11213 s,@CPPFLAGS@,$CPPFLAGS,;t t
11214 s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
11215 s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
11216 s,@EGREP@,$EGREP,;t t
11217 s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
11218 s,@LIBTOOL@,$LIBTOOL,;t t
11219 s,@SED@,$SED,;t t
11220 s,@FGREP@,$FGREP,;t t
11221 s,@GREP@,$GREP,;t t
11222 s,@LD@,$LD,;t t
11223 s,@DUMPBIN@,$DUMPBIN,;t t
11224 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11225 s,@NM@,$NM,;t t
11226 s,@LN_S@,$LN_S,;t t
11227 s,@AR@,$AR,;t t
11228 s,@ac_ct_AR@,$ac_ct_AR,;t t
11229 s,@RANLIB@,$RANLIB,;t t
11230 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11231 s,@lt_ECHO@,$lt_ECHO,;t t
11232 s,@enable_shared@,$enable_shared,;t t
11233 s,@enable_static@,$enable_static,;t t
11234 s,@toolexecdir@,$toolexecdir,;t t
11235 s,@toolexeclibdir@,$toolexeclibdir,;t t
11236 s,@LIBOBJS@,$LIBOBJS,;t t
11237 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11238 CEOF
11239
11240 _ACEOF
11241
11242 cat >>$CONFIG_STATUS <<\_ACEOF
11243 # Split the substitutions into bite-sized pieces for seds with
11244 # small command number limits, like on Digital OSF/1 and HP-UX.
11245 ac_max_sed_lines=48
11246 ac_sed_frag=1 # Number of current file.
11247 ac_beg=1 # First line for current file.
11248 ac_end=$ac_max_sed_lines # Line after last line for current file.
11249 ac_more_lines=:
11250 ac_sed_cmds=
11251 while $ac_more_lines; do
11252 if test $ac_beg -gt 1; then
11253 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11254 else
11255 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11256 fi
11257 if test ! -s $tmp/subs.frag; then
11258 ac_more_lines=false
11259 else
11260 # The purpose of the label and of the branching condition is to
11261 # speed up the sed processing (if there are no `@' at all, there
11262 # is no need to browse any of the substitutions).
11263 # These are the two extra sed commands mentioned above.
11264 (echo ':t
11265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11266 if test -z "$ac_sed_cmds"; then
11267 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11268 else
11269 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11270 fi
11271 ac_sed_frag=`expr $ac_sed_frag + 1`
11272 ac_beg=$ac_end
11273 ac_end=`expr $ac_end + $ac_max_sed_lines`
11274 fi
11275 done
11276 if test -z "$ac_sed_cmds"; then
11277 ac_sed_cmds=cat
11278 fi
11279 fi # test -n "$CONFIG_FILES"
11280
11281 _ACEOF
11282 cat >>$CONFIG_STATUS <<\_ACEOF
11283 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11285 case $ac_file in
11286 - | *:- | *:-:* ) # input from stdin
11287 cat >$tmp/stdin
11288 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11290 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11292 * ) ac_file_in=$ac_file.in ;;
11293 esac
11294
11295 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11296 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11298 X"$ac_file" : 'X\(//\)[^/]' \| \
11299 X"$ac_file" : 'X\(//\)$' \| \
11300 X"$ac_file" : 'X\(/\)' \| \
11301 . : '\(.\)' 2>/dev/null ||
11302 echo X"$ac_file" |
11303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11305 /^X\(\/\/\)$/{ s//\1/; q; }
11306 /^X\(\/\).*/{ s//\1/; q; }
11307 s/.*/./; q'`
11308 { if $as_mkdir_p; then
11309 mkdir -p "$ac_dir"
11310 else
11311 as_dir="$ac_dir"
11312 as_dirs=
11313 while test ! -d "$as_dir"; do
11314 as_dirs="$as_dir $as_dirs"
11315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11317 X"$as_dir" : 'X\(//\)[^/]' \| \
11318 X"$as_dir" : 'X\(//\)$' \| \
11319 X"$as_dir" : 'X\(/\)' \| \
11320 . : '\(.\)' 2>/dev/null ||
11321 echo X"$as_dir" |
11322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11324 /^X\(\/\/\)$/{ s//\1/; q; }
11325 /^X\(\/\).*/{ s//\1/; q; }
11326 s/.*/./; q'`
11327 done
11328 test ! -n "$as_dirs" || mkdir $as_dirs
11329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11331 { (exit 1); exit 1; }; }; }
11332
11333 ac_builddir=.
11334
11335 if test "$ac_dir" != .; then
11336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11337 # A "../" for each directory in $ac_dir_suffix.
11338 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11339 else
11340 ac_dir_suffix= ac_top_builddir=
11341 fi
11342
11343 case $srcdir in
11344 .) # No --srcdir option. We are building in place.
11345 ac_srcdir=.
11346 if test -z "$ac_top_builddir"; then
11347 ac_top_srcdir=.
11348 else
11349 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11350 fi ;;
11351 [\\/]* | ?:[\\/]* ) # Absolute path.
11352 ac_srcdir=$srcdir$ac_dir_suffix;
11353 ac_top_srcdir=$srcdir ;;
11354 *) # Relative path.
11355 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11356 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11357 esac
11358
11359 # Do not use `cd foo && pwd` to compute absolute paths, because
11360 # the directories may not exist.
11361 case `pwd` in
11362 .) ac_abs_builddir="$ac_dir";;
11363 *)
11364 case "$ac_dir" in
11365 .) ac_abs_builddir=`pwd`;;
11366 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11367 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11368 esac;;
11369 esac
11370 case $ac_abs_builddir in
11371 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11372 *)
11373 case ${ac_top_builddir}. in
11374 .) ac_abs_top_builddir=$ac_abs_builddir;;
11375 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11376 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11377 esac;;
11378 esac
11379 case $ac_abs_builddir in
11380 .) ac_abs_srcdir=$ac_srcdir;;
11381 *)
11382 case $ac_srcdir in
11383 .) ac_abs_srcdir=$ac_abs_builddir;;
11384 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11385 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11386 esac;;
11387 esac
11388 case $ac_abs_builddir in
11389 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11390 *)
11391 case $ac_top_srcdir in
11392 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11393 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11394 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11395 esac;;
11396 esac
11397
11398
11399 case $INSTALL in
11400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11401 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11402 esac
11403
11404 if test x"$ac_file" != x-; then
11405 { echo "$as_me:$LINENO: creating $ac_file" >&5
11406 echo "$as_me: creating $ac_file" >&6;}
11407 rm -f "$ac_file"
11408 fi
11409 # Let's still pretend it is `configure' which instantiates (i.e., don't
11410 # use $as_me), people would be surprised to read:
11411 # /* config.h. Generated by config.status. */
11412 if test x"$ac_file" = x-; then
11413 configure_input=
11414 else
11415 configure_input="$ac_file. "
11416 fi
11417 configure_input=$configure_input"Generated from `echo $ac_file_in |
11418 sed 's,.*/,,'` by configure."
11419
11420 # First look for the input files in the build tree, otherwise in the
11421 # src tree.
11422 ac_file_inputs=`IFS=:
11423 for f in $ac_file_in; do
11424 case $f in
11425 -) echo $tmp/stdin ;;
11426 [\\/$]*)
11427 # Absolute (can't be DOS-style, as IFS=:)
11428 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11429 echo "$as_me: error: cannot find input file: $f" >&2;}
11430 { (exit 1); exit 1; }; }
11431 echo "$f";;
11432 *) # Relative
11433 if test -f "$f"; then
11434 # Build tree
11435 echo "$f"
11436 elif test -f "$srcdir/$f"; then
11437 # Source tree
11438 echo "$srcdir/$f"
11439 else
11440 # /dev/null tree
11441 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11442 echo "$as_me: error: cannot find input file: $f" >&2;}
11443 { (exit 1); exit 1; }; }
11444 fi;;
11445 esac
11446 done` || { (exit 1); exit 1; }
11447 _ACEOF
11448 cat >>$CONFIG_STATUS <<_ACEOF
11449 sed "$ac_vpsub
11450 $extrasub
11451 _ACEOF
11452 cat >>$CONFIG_STATUS <<\_ACEOF
11453 :t
11454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11455 s,@configure_input@,$configure_input,;t t
11456 s,@srcdir@,$ac_srcdir,;t t
11457 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11458 s,@top_srcdir@,$ac_top_srcdir,;t t
11459 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11460 s,@builddir@,$ac_builddir,;t t
11461 s,@abs_builddir@,$ac_abs_builddir,;t t
11462 s,@top_builddir@,$ac_top_builddir,;t t
11463 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11464 s,@INSTALL@,$ac_INSTALL,;t t
11465 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11466 rm -f $tmp/stdin
11467 if test x"$ac_file" != x-; then
11468 mv $tmp/out $ac_file
11469 else
11470 cat $tmp/out
11471 rm -f $tmp/out
11472 fi
11473
11474 done
11475 _ACEOF
11476 cat >>$CONFIG_STATUS <<\_ACEOF
11477
11478 #
11479 # CONFIG_HEADER section.
11480 #
11481
11482 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11483 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11484 #
11485 # ac_d sets the value in "#define NAME VALUE" lines.
11486 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11487 ac_dB='[ ].*$,\1#\2'
11488 ac_dC=' '
11489 ac_dD=',;t'
11490 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11491 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11492 ac_uB='$,\1#\2define\3'
11493 ac_uC=' '
11494 ac_uD=',;t'
11495
11496 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11498 case $ac_file in
11499 - | *:- | *:-:* ) # input from stdin
11500 cat >$tmp/stdin
11501 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11502 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11503 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11504 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11505 * ) ac_file_in=$ac_file.in ;;
11506 esac
11507
11508 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11509 echo "$as_me: creating $ac_file" >&6;}
11510
11511 # First look for the input files in the build tree, otherwise in the
11512 # src tree.
11513 ac_file_inputs=`IFS=:
11514 for f in $ac_file_in; do
11515 case $f in
11516 -) echo $tmp/stdin ;;
11517 [\\/$]*)
11518 # Absolute (can't be DOS-style, as IFS=:)
11519 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11520 echo "$as_me: error: cannot find input file: $f" >&2;}
11521 { (exit 1); exit 1; }; }
11522 # Do quote $f, to prevent DOS paths from being IFS'd.
11523 echo "$f";;
11524 *) # Relative
11525 if test -f "$f"; then
11526 # Build tree
11527 echo "$f"
11528 elif test -f "$srcdir/$f"; then
11529 # Source tree
11530 echo "$srcdir/$f"
11531 else
11532 # /dev/null tree
11533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11534 echo "$as_me: error: cannot find input file: $f" >&2;}
11535 { (exit 1); exit 1; }; }
11536 fi;;
11537 esac
11538 done` || { (exit 1); exit 1; }
11539 # Remove the trailing spaces.
11540 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11541
11542 _ACEOF
11543
11544 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11545 # `conftest.undefs', that substitutes the proper values into
11546 # config.h.in to produce config.h. The first handles `#define'
11547 # templates, and the second `#undef' templates.
11548 # And first: Protect against being on the right side of a sed subst in
11549 # config.status. Protect against being in an unquoted here document
11550 # in config.status.
11551 rm -f conftest.defines conftest.undefs
11552 # Using a here document instead of a string reduces the quoting nightmare.
11553 # Putting comments in sed scripts is not portable.
11554 #
11555 # `end' is used to avoid that the second main sed command (meant for
11556 # 0-ary CPP macros) applies to n-ary macro definitions.
11557 # See the Autoconf documentation for `clear'.
11558 cat >confdef2sed.sed <<\_ACEOF
11559 s/[\\&,]/\\&/g
11560 s,[\\$`],\\&,g
11561 t clear
11562 : clear
11563 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11564 t end
11565 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11566 : end
11567 _ACEOF
11568 # If some macros were called several times there might be several times
11569 # the same #defines, which is useless. Nevertheless, we may not want to
11570 # sort them, since we want the *last* AC-DEFINE to be honored.
11571 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11572 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11573 rm -f confdef2sed.sed
11574
11575 # This sed command replaces #undef with comments. This is necessary, for
11576 # example, in the case of _POSIX_SOURCE, which is predefined and required
11577 # on some systems where configure will not decide to define it.
11578 cat >>conftest.undefs <<\_ACEOF
11579 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11580 _ACEOF
11581
11582 # Break up conftest.defines because some shells have a limit on the size
11583 # of here documents, and old seds have small limits too (100 cmds).
11584 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11585 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11586 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11587 echo ' :' >>$CONFIG_STATUS
11588 rm -f conftest.tail
11589 while grep . conftest.defines >/dev/null
11590 do
11591 # Write a limited-size here document to $tmp/defines.sed.
11592 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11593 # Speed up: don't consider the non `#define' lines.
11594 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11595 # Work around the forget-to-reset-the-flag bug.
11596 echo 't clr' >>$CONFIG_STATUS
11597 echo ': clr' >>$CONFIG_STATUS
11598 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11599 echo 'CEOF
11600 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11601 rm -f $tmp/in
11602 mv $tmp/out $tmp/in
11603 ' >>$CONFIG_STATUS
11604 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11605 rm -f conftest.defines
11606 mv conftest.tail conftest.defines
11607 done
11608 rm -f conftest.defines
11609 echo ' fi # grep' >>$CONFIG_STATUS
11610 echo >>$CONFIG_STATUS
11611
11612 # Break up conftest.undefs because some shells have a limit on the size
11613 # of here documents, and old seds have small limits too (100 cmds).
11614 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11615 rm -f conftest.tail
11616 while grep . conftest.undefs >/dev/null
11617 do
11618 # Write a limited-size here document to $tmp/undefs.sed.
11619 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11620 # Speed up: don't consider the non `#undef'
11621 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11622 # Work around the forget-to-reset-the-flag bug.
11623 echo 't clr' >>$CONFIG_STATUS
11624 echo ': clr' >>$CONFIG_STATUS
11625 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11626 echo 'CEOF
11627 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11628 rm -f $tmp/in
11629 mv $tmp/out $tmp/in
11630 ' >>$CONFIG_STATUS
11631 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11632 rm -f conftest.undefs
11633 mv conftest.tail conftest.undefs
11634 done
11635 rm -f conftest.undefs
11636
11637 cat >>$CONFIG_STATUS <<\_ACEOF
11638 # Let's still pretend it is `configure' which instantiates (i.e., don't
11639 # use $as_me), people would be surprised to read:
11640 # /* config.h. Generated by config.status. */
11641 if test x"$ac_file" = x-; then
11642 echo "/* Generated by configure. */" >$tmp/config.h
11643 else
11644 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11645 fi
11646 cat $tmp/in >>$tmp/config.h
11647 rm -f $tmp/in
11648 if test x"$ac_file" != x-; then
11649 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11650 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11651 echo "$as_me: $ac_file is unchanged" >&6;}
11652 else
11653 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11655 X"$ac_file" : 'X\(//\)[^/]' \| \
11656 X"$ac_file" : 'X\(//\)$' \| \
11657 X"$ac_file" : 'X\(/\)' \| \
11658 . : '\(.\)' 2>/dev/null ||
11659 echo X"$ac_file" |
11660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11662 /^X\(\/\/\)$/{ s//\1/; q; }
11663 /^X\(\/\).*/{ s//\1/; q; }
11664 s/.*/./; q'`
11665 { if $as_mkdir_p; then
11666 mkdir -p "$ac_dir"
11667 else
11668 as_dir="$ac_dir"
11669 as_dirs=
11670 while test ! -d "$as_dir"; do
11671 as_dirs="$as_dir $as_dirs"
11672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11674 X"$as_dir" : 'X\(//\)[^/]' \| \
11675 X"$as_dir" : 'X\(//\)$' \| \
11676 X"$as_dir" : 'X\(/\)' \| \
11677 . : '\(.\)' 2>/dev/null ||
11678 echo X"$as_dir" |
11679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11681 /^X\(\/\/\)$/{ s//\1/; q; }
11682 /^X\(\/\).*/{ s//\1/; q; }
11683 s/.*/./; q'`
11684 done
11685 test ! -n "$as_dirs" || mkdir $as_dirs
11686 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11688 { (exit 1); exit 1; }; }; }
11689
11690 rm -f $ac_file
11691 mv $tmp/config.h $ac_file
11692 fi
11693 else
11694 cat $tmp/config.h
11695 rm -f $tmp/config.h
11696 fi
11697 # Compute $ac_file's index in $config_headers.
11698 _am_stamp_count=1
11699 for _am_header in $config_headers :; do
11700 case $_am_header in
11701 $ac_file | $ac_file:* )
11702 break ;;
11703 * )
11704 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11705 esac
11706 done
11707 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11708 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11709 X$ac_file : 'X\(//\)[^/]' \| \
11710 X$ac_file : 'X\(//\)$' \| \
11711 X$ac_file : 'X\(/\)' \| \
11712 . : '\(.\)' 2>/dev/null ||
11713 echo X$ac_file |
11714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11716 /^X\(\/\/\)$/{ s//\1/; q; }
11717 /^X\(\/\).*/{ s//\1/; q; }
11718 s/.*/./; q'`/stamp-h$_am_stamp_count
11719 done
11720 _ACEOF
11721 cat >>$CONFIG_STATUS <<\_ACEOF
11722
11723 #
11724 # CONFIG_COMMANDS section.
11725 #
11726 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11727 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11728 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11729 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11730 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11731 X"$ac_dest" : 'X\(//\)[^/]' \| \
11732 X"$ac_dest" : 'X\(//\)$' \| \
11733 X"$ac_dest" : 'X\(/\)' \| \
11734 . : '\(.\)' 2>/dev/null ||
11735 echo X"$ac_dest" |
11736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11738 /^X\(\/\/\)$/{ s//\1/; q; }
11739 /^X\(\/\).*/{ s//\1/; q; }
11740 s/.*/./; q'`
11741 { if $as_mkdir_p; then
11742 mkdir -p "$ac_dir"
11743 else
11744 as_dir="$ac_dir"
11745 as_dirs=
11746 while test ! -d "$as_dir"; do
11747 as_dirs="$as_dir $as_dirs"
11748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11750 X"$as_dir" : 'X\(//\)[^/]' \| \
11751 X"$as_dir" : 'X\(//\)$' \| \
11752 X"$as_dir" : 'X\(/\)' \| \
11753 . : '\(.\)' 2>/dev/null ||
11754 echo X"$as_dir" |
11755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11757 /^X\(\/\/\)$/{ s//\1/; q; }
11758 /^X\(\/\).*/{ s//\1/; q; }
11759 s/.*/./; q'`
11760 done
11761 test ! -n "$as_dirs" || mkdir $as_dirs
11762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11764 { (exit 1); exit 1; }; }; }
11765
11766 ac_builddir=.
11767
11768 if test "$ac_dir" != .; then
11769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11770 # A "../" for each directory in $ac_dir_suffix.
11771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11772 else
11773 ac_dir_suffix= ac_top_builddir=
11774 fi
11775
11776 case $srcdir in
11777 .) # No --srcdir option. We are building in place.
11778 ac_srcdir=.
11779 if test -z "$ac_top_builddir"; then
11780 ac_top_srcdir=.
11781 else
11782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11783 fi ;;
11784 [\\/]* | ?:[\\/]* ) # Absolute path.
11785 ac_srcdir=$srcdir$ac_dir_suffix;
11786 ac_top_srcdir=$srcdir ;;
11787 *) # Relative path.
11788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11790 esac
11791
11792 # Do not use `cd foo && pwd` to compute absolute paths, because
11793 # the directories may not exist.
11794 case `pwd` in
11795 .) ac_abs_builddir="$ac_dir";;
11796 *)
11797 case "$ac_dir" in
11798 .) ac_abs_builddir=`pwd`;;
11799 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11800 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11801 esac;;
11802 esac
11803 case $ac_abs_builddir in
11804 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11805 *)
11806 case ${ac_top_builddir}. in
11807 .) ac_abs_top_builddir=$ac_abs_builddir;;
11808 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11809 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11810 esac;;
11811 esac
11812 case $ac_abs_builddir in
11813 .) ac_abs_srcdir=$ac_srcdir;;
11814 *)
11815 case $ac_srcdir in
11816 .) ac_abs_srcdir=$ac_abs_builddir;;
11817 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11818 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11819 esac;;
11820 esac
11821 case $ac_abs_builddir in
11822 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11823 *)
11824 case $ac_top_srcdir in
11825 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11826 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11827 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11828 esac;;
11829 esac
11830
11831
11832 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11833 echo "$as_me: executing $ac_dest commands" >&6;}
11834 case $ac_dest in
11835 default-1 )
11836 # Only add multilib support code if we just rebuilt the top-level
11837 # Makefile.
11838 case " $CONFIG_FILES " in
11839 *" Makefile "*)
11840 ac_file=Makefile . ${multi_basedir}/config-ml.in
11841 ;;
11842 esac ;;
11843 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11844 # Strip MF so we end up with the name of the file.
11845 mf=`echo "$mf" | sed -e 's/:.*$//'`
11846 # Check whether this is an Automake generated Makefile or not.
11847 # We used to match only the files named `Makefile.in', but
11848 # some people rename them; so instead we look at the file content.
11849 # Grep'ing the first line is not enough: some people post-process
11850 # each Makefile.in and add a new line on top of each file to say so.
11851 # So let's grep whole file.
11852 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11853 dirpart=`(dirname "$mf") 2>/dev/null ||
11854 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11855 X"$mf" : 'X\(//\)[^/]' \| \
11856 X"$mf" : 'X\(//\)$' \| \
11857 X"$mf" : 'X\(/\)' \| \
11858 . : '\(.\)' 2>/dev/null ||
11859 echo X"$mf" |
11860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11862 /^X\(\/\/\)$/{ s//\1/; q; }
11863 /^X\(\/\).*/{ s//\1/; q; }
11864 s/.*/./; q'`
11865 else
11866 continue
11867 fi
11868 # Extract the definition of DEPDIR, am__include, and am__quote
11869 # from the Makefile without running `make'.
11870 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11871 test -z "$DEPDIR" && continue
11872 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11873 test -z "am__include" && continue
11874 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11875 # When using ansi2knr, U may be empty or an underscore; expand it
11876 U=`sed -n 's/^U = //p' < "$mf"`
11877 # Find all dependency output files, they are included files with
11878 # $(DEPDIR) in their names. We invoke sed twice because it is the
11879 # simplest approach to changing $(DEPDIR) to its actual value in the
11880 # expansion.
11881 for file in `sed -n "
11882 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11883 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11884 # Make sure the directory exists.
11885 test -f "$dirpart/$file" && continue
11886 fdir=`(dirname "$file") 2>/dev/null ||
11887 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11888 X"$file" : 'X\(//\)[^/]' \| \
11889 X"$file" : 'X\(//\)$' \| \
11890 X"$file" : 'X\(/\)' \| \
11891 . : '\(.\)' 2>/dev/null ||
11892 echo X"$file" |
11893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11895 /^X\(\/\/\)$/{ s//\1/; q; }
11896 /^X\(\/\).*/{ s//\1/; q; }
11897 s/.*/./; q'`
11898 { if $as_mkdir_p; then
11899 mkdir -p $dirpart/$fdir
11900 else
11901 as_dir=$dirpart/$fdir
11902 as_dirs=
11903 while test ! -d "$as_dir"; do
11904 as_dirs="$as_dir $as_dirs"
11905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11907 X"$as_dir" : 'X\(//\)[^/]' \| \
11908 X"$as_dir" : 'X\(//\)$' \| \
11909 X"$as_dir" : 'X\(/\)' \| \
11910 . : '\(.\)' 2>/dev/null ||
11911 echo X"$as_dir" |
11912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11914 /^X\(\/\/\)$/{ s//\1/; q; }
11915 /^X\(\/\).*/{ s//\1/; q; }
11916 s/.*/./; q'`
11917 done
11918 test ! -n "$as_dirs" || mkdir $as_dirs
11919 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11920 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11921 { (exit 1); exit 1; }; }; }
11922
11923 # echo "creating $dirpart/$file"
11924 echo '# dummy' > "$dirpart/$file"
11925 done
11926 done
11927 ;;
11928 libtool )
11929
11930 # See if we are running on zsh, and set the options which allow our
11931 # commands through without removal of \ escapes.
11932 if test -n "${ZSH_VERSION+set}" ; then
11933 setopt NO_GLOB_SUBST
11934 fi
11935
11936 cfgfile="${ofile}T"
11937 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11938 $RM "$cfgfile"
11939
11940 cat <<_LT_EOF >> "$cfgfile"
11941 #! $SHELL
11942
11943 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11944 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
11945 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11946 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11947 #
11948 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11949 # 2006, 2007 Free Software Foundation, Inc.
11950 #
11951 # This file is part of GNU Libtool:
11952 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11953 #
11954 # This program is free software; you can redistribute it and/or modify
11955 # it under the terms of the GNU General Public License as published by
11956 # the Free Software Foundation; either version 2 of the License, or
11957 # (at your option) any later version.
11958 #
11959 # This program is distributed in the hope that it will be useful, but
11960 # WITHOUT ANY WARRANTY; without even the implied warranty of
11961 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11962 # General Public License for more details.
11963 #
11964 # You should have received a copy of the GNU General Public License
11965 # along with this program; if not, a copy can be downloaded from
11966 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
11967 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
11968 # MA 02110-1301, USA.
11969 #
11970 # As a special exception to the GNU General Public License, if you
11971 # distribute this file as part of a program that contains a
11972 # configuration script generated by Autoconf, you may include it under
11973 # the same distribution terms that you use for the rest of that program.
11974
11975
11976 # The names of the tagged configurations supported by this script.
11977 available_tags=""
11978
11979 # ### BEGIN LIBTOOL CONFIG
11980
11981 # Which release of libtool.m4 was used?
11982 macro_version=$macro_version
11983 macro_revision=$macro_revision
11984
11985 # Whether or not to build shared libraries.
11986 build_libtool_libs=$enable_shared
11987
11988 # Whether or not to build static libraries.
11989 build_old_libs=$enable_static
11990
11991 # What type of objects to build.
11992 pic_mode=$pic_mode
11993
11994 # Whether or not to optimize for fast installation.
11995 fast_install=$enable_fast_install
11996
11997 # The host system.
11998 host_alias=$host_alias
11999 host=$host
12000 host_os=$host_os
12001
12002 # The build system.
12003 build_alias=$build_alias
12004 build=$build
12005 build_os=$build_os
12006
12007 # A sed program that does not truncate output.
12008 SED=$lt_SED
12009
12010 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12011 Xsed="\$SED -e 1s/^X//"
12012
12013 # A grep program that handles long lines.
12014 GREP=$lt_GREP
12015
12016 # An ERE matcher.
12017 EGREP=$lt_EGREP
12018
12019 # A literal string matcher.
12020 FGREP=$lt_FGREP
12021
12022 # A BSD- or MS-compatible name lister.
12023 NM=$lt_NM
12024
12025 # Whether we need soft or hard links.
12026 LN_S=$lt_LN_S
12027
12028 # What is the maximum length of a command?
12029 max_cmd_len=$max_cmd_len
12030
12031 # Object file suffix (normally "o").
12032 objext=$ac_objext
12033
12034 # Executable file suffix (normally "").
12035 exeext=$exeext
12036
12037 # whether the shell understands "unset".
12038 lt_unset=$lt_unset
12039
12040 # turn spaces into newlines.
12041 SP2NL=$lt_lt_SP2NL
12042
12043 # turn newlines into spaces.
12044 NL2SP=$lt_lt_NL2SP
12045
12046 # How to create reloadable object files.
12047 reload_flag=$lt_reload_flag
12048 reload_cmds=$lt_reload_cmds
12049
12050 # Method to check whether dependent libraries are shared objects.
12051 deplibs_check_method=$lt_deplibs_check_method
12052
12053 # Command to use when deplibs_check_method == "file_magic".
12054 file_magic_cmd=$lt_file_magic_cmd
12055
12056 # The archiver.
12057 AR=$lt_AR
12058 AR_FLAGS=$lt_AR_FLAGS
12059
12060 # A symbol stripping program.
12061 STRIP=$lt_STRIP
12062
12063 # Commands used to install an old-style archive.
12064 RANLIB=$lt_RANLIB
12065 old_postinstall_cmds=$lt_old_postinstall_cmds
12066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12067
12068 # A C compiler.
12069 LTCC=$lt_CC
12070
12071 # LTCC compiler flags.
12072 LTCFLAGS=$lt_CFLAGS
12073
12074 # Take the output of nm and produce a listing of raw symbols and C names.
12075 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12076
12077 # Transform the output of nm in a proper C declaration.
12078 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12079
12080 # Transform the output of nm in a C name address pair.
12081 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12082
12083 # The name of the directory that contains temporary libtool files.
12084 objdir=$objdir
12085
12086 # Shell to use when invoking shell scripts.
12087 SHELL=$lt_SHELL
12088
12089 # An echo program that does not interpret backslashes.
12090 ECHO=$lt_ECHO
12091
12092 # Used to examine libraries when file_magic_cmd begins with "file".
12093 MAGIC_CMD=$MAGIC_CMD
12094
12095 # Must we lock files when doing compilation?
12096 need_locks=$lt_need_locks
12097
12098 # Old archive suffix (normally "a").
12099 libext=$libext
12100
12101 # Shared library suffix (normally ".so").
12102 shrext_cmds=$lt_shrext_cmds
12103
12104 # The commands to extract the exported symbol list from a shared archive.
12105 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12106
12107 # Variables whose values should be saved in libtool wrapper scripts and
12108 # restored at link time.
12109 variables_saved_for_relink=$lt_variables_saved_for_relink
12110
12111 # Do we need the "lib" prefix for modules?
12112 need_lib_prefix=$need_lib_prefix
12113
12114 # Do we need a version for libraries?
12115 need_version=$need_version
12116
12117 # Library versioning type.
12118 version_type=$version_type
12119
12120 # Shared library runtime path variable.
12121 runpath_var=$runpath_var
12122
12123 # Shared library path variable.
12124 shlibpath_var=$shlibpath_var
12125
12126 # Is shlibpath searched before the hard-coded library search path?
12127 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12128
12129 # Format of library name prefix.
12130 libname_spec=$lt_libname_spec
12131
12132 # List of archive names. First name is the real one, the rest are links.
12133 # The last name is the one that the linker finds with -lNAME
12134 library_names_spec=$lt_library_names_spec
12135
12136 # The coded name of the library, if different from the real name.
12137 soname_spec=$lt_soname_spec
12138
12139 # Command to use after installation of a shared archive.
12140 postinstall_cmds=$lt_postinstall_cmds
12141
12142 # Command to use after uninstallation of a shared archive.
12143 postuninstall_cmds=$lt_postuninstall_cmds
12144
12145 # Commands used to finish a libtool library installation in a directory.
12146 finish_cmds=$lt_finish_cmds
12147
12148 # As "finish_cmds", except a single script fragment to be evaled but
12149 # not shown.
12150 finish_eval=$lt_finish_eval
12151
12152 # Whether we should hardcode library paths into libraries.
12153 hardcode_into_libs=$hardcode_into_libs
12154
12155 # Compile-time system search path for libraries.
12156 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12157
12158 # Run-time system search path for libraries.
12159 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12160
12161 # Whether dlopen is supported.
12162 dlopen_support=$enable_dlopen
12163
12164 # Whether dlopen of programs is supported.
12165 dlopen_self=$enable_dlopen_self
12166
12167 # Whether dlopen of statically linked programs is supported.
12168 dlopen_self_static=$enable_dlopen_self_static
12169
12170 # Commands to strip libraries.
12171 old_striplib=$lt_old_striplib
12172 striplib=$lt_striplib
12173
12174
12175 # The linker used to build libraries.
12176 LD=$lt_LD
12177
12178 # Commands used to build an old-style archive.
12179 old_archive_cmds=$lt_old_archive_cmds
12180
12181 # A language specific compiler.
12182 CC=$lt_compiler
12183
12184 # Is the compiler the GNU compiler?
12185 with_gcc=$GCC
12186
12187 # Compiler flag to turn off builtin functions.
12188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12189
12190 # How to pass a linker flag through the compiler.
12191 wl=$lt_lt_prog_compiler_wl
12192
12193 # Additional compiler flags for building library objects.
12194 pic_flag=$lt_lt_prog_compiler_pic
12195
12196 # Compiler flag to prevent dynamic linking.
12197 link_static_flag=$lt_lt_prog_compiler_static
12198
12199 # Does compiler simultaneously support -c and -o options?
12200 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12201
12202 # Whether or not to add -lc for building shared libraries.
12203 build_libtool_need_lc=$archive_cmds_need_lc
12204
12205 # Whether or not to disallow shared libs when runtime libs are static.
12206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12207
12208 # Compiler flag to allow reflexive dlopens.
12209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12210
12211 # Compiler flag to generate shared objects directly from archives.
12212 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12213
12214 # Whether the compiler copes with passing no objects directly.
12215 compiler_needs_object=$lt_compiler_needs_object
12216
12217 # Create an old-style archive from a shared archive.
12218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12219
12220 # Create a temporary old-style archive to link instead of a shared archive.
12221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12222
12223 # Commands used to build a shared archive.
12224 archive_cmds=$lt_archive_cmds
12225 archive_expsym_cmds=$lt_archive_expsym_cmds
12226
12227 # Commands used to build a loadable module if different from building
12228 # a shared archive.
12229 module_cmds=$lt_module_cmds
12230 module_expsym_cmds=$lt_module_expsym_cmds
12231
12232 # Whether we are building with GNU ld or not.
12233 with_gnu_ld=$lt_with_gnu_ld
12234
12235 # Flag that allows shared libraries with undefined symbols to be built.
12236 allow_undefined_flag=$lt_allow_undefined_flag
12237
12238 # Flag that enforces no undefined symbols.
12239 no_undefined_flag=$lt_no_undefined_flag
12240
12241 # Flag to hardcode \$libdir into a binary during linking.
12242 # This must work even if \$libdir does not exist
12243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12244
12245 # If ld is used when linking, flag to hardcode \$libdir into a binary
12246 # during linking. This must work even if \$libdir does not exist.
12247 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12248
12249 # Whether we need a single "-rpath" flag with a separated argument.
12250 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12251
12252 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12253 # DIR into the resulting binary.
12254 hardcode_direct=$hardcode_direct
12255
12256 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12257 # DIR into the resulting binary and the resulting library dependency is
12258 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12259 # library is relocated.
12260 hardcode_direct_absolute=$hardcode_direct_absolute
12261
12262 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12263 # into the resulting binary.
12264 hardcode_minus_L=$hardcode_minus_L
12265
12266 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12267 # into the resulting binary.
12268 hardcode_shlibpath_var=$hardcode_shlibpath_var
12269
12270 # Set to "yes" if building a shared library automatically hardcodes DIR
12271 # into the library and all subsequent libraries and executables linked
12272 # against it.
12273 hardcode_automatic=$hardcode_automatic
12274
12275 # Set to yes if linker adds runtime paths of dependent libraries
12276 # to runtime path list.
12277 inherit_rpath=$inherit_rpath
12278
12279 # Whether libtool must link a program against all its dependency libraries.
12280 link_all_deplibs=$link_all_deplibs
12281
12282 # Fix the shell variable \$srcfile for the compiler.
12283 fix_srcfile_path=$lt_fix_srcfile_path
12284
12285 # Set to "yes" if exported symbols are required.
12286 always_export_symbols=$always_export_symbols
12287
12288 # The commands to list exported symbols.
12289 export_symbols_cmds=$lt_export_symbols_cmds
12290
12291 # Symbols that should not be listed in the preloaded symbols.
12292 exclude_expsyms=$lt_exclude_expsyms
12293
12294 # Symbols that must always be exported.
12295 include_expsyms=$lt_include_expsyms
12296
12297 # Commands necessary for linking programs (against libraries) with templates.
12298 prelink_cmds=$lt_prelink_cmds
12299
12300 # Specify filename containing input files.
12301 file_list_spec=$lt_file_list_spec
12302
12303 # How to hardcode a shared library path into an executable.
12304 hardcode_action=$hardcode_action
12305
12306 # ### END LIBTOOL CONFIG
12307
12308 _LT_EOF
12309
12310 case $host_os in
12311 aix3*)
12312 cat <<\_LT_EOF >> "$cfgfile"
12313 # AIX sometimes has problems with the GCC collect2 program. For some
12314 # reason, if we set the COLLECT_NAMES environment variable, the problems
12315 # vanish in a puff of smoke.
12316 if test "X${COLLECT_NAMES+set}" != Xset; then
12317 COLLECT_NAMES=
12318 export COLLECT_NAMES
12319 fi
12320 _LT_EOF
12321 ;;
12322 esac
12323
12324
12325 ltmain="$ac_aux_dir/ltmain.sh"
12326
12327
12328 # We use sed instead of cat because bash on DJGPP gets confused if
12329 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12330 # text mode, it properly converts lines to CR/LF. This bash problem
12331 # is reportedly fixed, but why not run on old versions too?
12332 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12333 || (rm -f "$cfgfile"; exit 1)
12334
12335 case $xsi_shell in
12336 yes)
12337 cat << \_LT_EOF >> "$cfgfile"
12338 # func_dirname file append nondir_replacement
12339 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12340 # otherwise set result to NONDIR_REPLACEMENT.
12341 func_dirname ()
12342 {
12343 case ${1} in
12344 */*) func_dirname_result="${1%/*}${2}" ;;
12345 * ) func_dirname_result="${3}" ;;
12346 esac
12347 }
12348
12349 # func_basename file
12350 func_basename ()
12351 {
12352 func_basename_result="${1##*/}"
12353 }
12354
12355 # func_stripname prefix suffix name
12356 # strip PREFIX and SUFFIX off of NAME.
12357 # PREFIX and SUFFIX must not contain globbing or regex special
12358 # characters, hashes, percent signs, but SUFFIX may contain a leading
12359 # dot (in which case that matches only a dot).
12360 func_stripname ()
12361 {
12362 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12363 # positional parameters, so assign one to ordinary parameter first.
12364 func_stripname_result=${3}
12365 func_stripname_result=${func_stripname_result#"${1}"}
12366 func_stripname_result=${func_stripname_result%"${2}"}
12367 }
12368
12369 # func_opt_split
12370 func_opt_split ()
12371 {
12372 func_opt_split_opt=${1%%=*}
12373 func_opt_split_arg=${1#*=}
12374 }
12375
12376 # func_lo2o object
12377 func_lo2o ()
12378 {
12379 case ${1} in
12380 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12381 *) func_lo2o_result=${1} ;;
12382 esac
12383 }
12384 _LT_EOF
12385 ;;
12386 *) # Bourne compatible functions.
12387 cat << \_LT_EOF >> "$cfgfile"
12388 # func_dirname file append nondir_replacement
12389 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12390 # otherwise set result to NONDIR_REPLACEMENT.
12391 func_dirname ()
12392 {
12393 # Extract subdirectory from the argument.
12394 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12395 if test "X$func_dirname_result" = "X${1}"; then
12396 func_dirname_result="${3}"
12397 else
12398 func_dirname_result="$func_dirname_result${2}"
12399 fi
12400 }
12401
12402 # func_basename file
12403 func_basename ()
12404 {
12405 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12406 }
12407
12408 # func_stripname prefix suffix name
12409 # strip PREFIX and SUFFIX off of NAME.
12410 # PREFIX and SUFFIX must not contain globbing or regex special
12411 # characters, hashes, percent signs, but SUFFIX may contain a leading
12412 # dot (in which case that matches only a dot).
12413 # func_strip_suffix prefix name
12414 func_stripname ()
12415 {
12416 case ${2} in
12417 .*) func_stripname_result=`$ECHO "X${3}" \
12418 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12419 *) func_stripname_result=`$ECHO "X${3}" \
12420 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12421 esac
12422 }
12423
12424 # sed scripts:
12425 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12426 my_sed_long_arg='1s/^-[^=]*=//'
12427
12428 # func_opt_split
12429 func_opt_split ()
12430 {
12431 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12432 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12433 }
12434
12435 # func_lo2o object
12436 func_lo2o ()
12437 {
12438 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12439 }
12440 _LT_EOF
12441 esac
12442
12443 case $lt_shell_append in
12444 yes)
12445 cat << \_LT_EOF >> "$cfgfile"
12446
12447 # func_append var value
12448 # Append VALUE to the end of shell variable VAR.
12449 func_append ()
12450 {
12451 eval "$1+=\$2"
12452 }
12453 _LT_EOF
12454 ;;
12455 *)
12456 cat << \_LT_EOF >> "$cfgfile"
12457
12458 # func_append var value
12459 # Append VALUE to the end of shell variable VAR.
12460 func_append ()
12461 {
12462 eval "$1=\$$1\$2"
12463 }
12464 _LT_EOF
12465 ;;
12466 esac
12467
12468
12469 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12470 || (rm -f "$cfgfile"; exit 1)
12471
12472 mv -f "$cfgfile" "$ofile" ||
12473 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12474 chmod +x "$ofile"
12475
12476 ;;
12477 esac
12478 done
12479 _ACEOF
12480
12481 cat >>$CONFIG_STATUS <<\_ACEOF
12482
12483 { (exit 0); exit 0; }
12484 _ACEOF
12485 chmod +x $CONFIG_STATUS
12486 ac_clean_files=$ac_clean_files_save
12487
12488
12489 # configure is writing to config.log, and then calls config.status.
12490 # config.status does its own redirection, appending to config.log.
12491 # Unfortunately, on DOS this fails, as config.log is still kept open
12492 # by configure, so config.status won't be able to write to it; its
12493 # output is simply discarded. So we exec the FD to /dev/null,
12494 # effectively closing config.log, so it can be properly (re)opened and
12495 # appended to by config.status. When coming back to configure, we
12496 # need to make the FD available again.
12497 if test "$no_create" != yes; then
12498 ac_cs_success=:
12499 ac_config_status_args=
12500 test "$silent" = yes &&
12501 ac_config_status_args="$ac_config_status_args --quiet"
12502 exec 5>/dev/null
12503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12504 exec 5>>config.log
12505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12506 # would make configure fail if this is the last instruction.
12507 $ac_cs_success || { (exit 1); exit 1; }
12508 fi
12509