userdb: Allow "+", ":", and "_" in usernames.
[hcoop/debian/courier-authlib.git] / sha1 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libsha1 1.21.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libsha1'
425PACKAGE_TARNAME='libsha1'
426PACKAGE_VERSION='1.21'
427PACKAGE_STRING='libsha1 1.21'
428PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430ac_unique_file="hmac.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 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 HMACC_TRUE HMACC_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures libsha1 1.21 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libsha1 1.21:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1049 ( default is 'unsigned')
1050
1051Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068Report bugs to <courier-users@lists.sourceforge.net>.
1069_ACEOF
1070fi
1071
1072if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1074 ac_popdir=`pwd`
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1077 ac_builddir=.
1078
1079if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083else
1084 ac_dir_suffix= ac_top_builddir=
1085fi
1086
1087case $srcdir in
1088 .) # No --srcdir option. We are building in place.
1089 ac_srcdir=.
1090 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=.
1092 else
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 fi ;;
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1098 *) # Relative path.
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101esac
1102
1103# Do not use `cd foo && pwd` to compute absolute paths, because
1104# the directories may not exist.
1105case `pwd` in
1106.) ac_abs_builddir="$ac_dir";;
1107*)
1108 case "$ac_dir" in
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_builddir=${ac_top_builddir}.;;
1116*)
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_srcdir=$ac_srcdir;;
1125*)
1126 case $ac_srcdir in
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_srcdir=$ac_top_srcdir;;
1134*)
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 esac;;
1140esac
1141
1142 cd $ac_dir
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1145 echo
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1148 echo
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1152 echo
1153 $ac_configure --help
1154 else
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156 fi
1157 cd $ac_popdir
1158 done
1159fi
1160
1161test -n "$ac_init_help" && exit 0
1162if $ac_init_version; then
1163 cat <<\_ACEOF
1164libsha1 configure 1.21
1165generated by GNU Autoconf 2.59
1166
1167Copyright (C) 2003 Free Software Foundation, Inc.
1168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
1170_ACEOF
1171 exit 0
1172fi
1173exec 5>config.log
1174cat >&5 <<_ACEOF
1175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by libsha1 $as_me 1.21, which was
1179generated by GNU Autoconf 2.59. Invocation command line was
1180
1181 $ $0 $@
1182
1183_ACEOF
1184{
1185cat <<_ASUNAME
1186## --------- ##
1187## Platform. ##
1188## --------- ##
1189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198
1199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
1207_ASUNAME
1208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215done
1216
1217} >&5
1218
1219cat >&5 <<_ACEOF
1220
1221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
1228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
1231# Strip out --silent because we don't want to record it for future runs.
1232# Also quote any args containing shell meta-characters.
1233# Make two passes to allow for proper duplicate-argument suppression.
1234ac_configure_args=
1235ac_configure_args0=
1236ac_configure_args1=
1237ac_sep=
1238ac_must_keep_next=false
1239for ac_pass in 1 2
1240do
1241 for ac_arg
1242 do
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 2)
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1257 else
1258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1266 ;;
1267 -* ) ac_must_keep_next=true ;;
1268 esac
1269 fi
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1273 ;;
1274 esac
1275 done
1276done
1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log. We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
1283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
1285trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1287 {
1288 echo
1289
1290 cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
1297{
1298 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1301 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 ;;
1305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310}
1311 echo
1312
1313 cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1320 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1325
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
1328## ------------- ##
1329## Output files. ##
1330## ------------- ##
1331_ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339 fi
1340
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347 echo
1348 sed "/^$/d" confdefs.h | sort
1349 echo
1350 fi
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 exit $exit_status
1358 ' 0
1359for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
1368
1369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
1396# Let the site file select an alternate cache file if it wants to.
1397# Prefer explicitly selected file to automatically selected ones.
1398if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
1404fi
1405for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1410 . "$ac_site_file"
1411 fi
1412done
1413
1414if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1423 esac
1424 fi
1425else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
1434for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1441 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1450 *)
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1459 fi;;
1460 esac
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 esac
1472 fi
1473done
1474if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1480fi
1481
1482ac_ext=c
1483ac_cpp='$CPP $CPPFLAGS'
1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515>confdefs.h # Kill PACKAGE_ macros
1516
1517
1518 ac_config_headers="$ac_config_headers config.h"
1519
1520am__api_version="1.9"
1521ac_aux_dir=
1522for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1523 if test -f $ac_dir/install-sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 break
1527 elif test -f $ac_dir/install.sh; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 break
1531 elif test -f $ac_dir/shtool; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 break
1535 fi
1536done
1537if test -z "$ac_aux_dir"; then
1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1539echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1540 { (exit 1); exit 1; }; }
1541fi
1542ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545
1546# Find a good install program. We prefer a C program (faster),
1547# so one script is as good as another. But avoid the broken or
1548# incompatible versions:
1549# SysV /etc/install, /usr/sbin/install
1550# SunOS /usr/etc/install
1551# IRIX /sbin/install
1552# AIX /bin/install
1553# AmigaOS /C/install, which installs bootblocks on floppy discs
1554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1557# OS/2's system install, which has a completely different semantic
1558# ./install, which can be erroneously created by make from ./install.sh.
1559echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1560echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1561if test -z "$INSTALL"; then
1562if test "${ac_cv_path_install+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566for as_dir in $PATH
1567do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 # Account for people who put trailing slashes in PATH elements.
1571case $as_dir/ in
1572 ./ | .// | /cC/* | \
1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575 /usr/ucb/* ) ;;
1576 *)
1577 # OSF1 and SCO ODT 3.0 have their own names for install.
1578 # Don't use installbsd from OSF since it installs stuff as root
1579 # by default.
1580 for ac_prog in ginstall scoinst install; do
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583 if test $ac_prog = install &&
1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 :
1587 elif test $ac_prog = install &&
1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589 # program-specific install script used by HP pwplus--don't use.
1590 :
1591 else
1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593 break 3
1594 fi
1595 fi
1596 done
1597 done
1598 ;;
1599esac
1600done
1601
1602
1603fi
1604 if test "${ac_cv_path_install+set}" = set; then
1605 INSTALL=$ac_cv_path_install
1606 else
1607 # As a last resort, use the slow shell script. We don't cache a
1608 # path for INSTALL within a source directory, because that will
1609 # break other packages using the cache if that directory is
1610 # removed, or if the path is relative.
1611 INSTALL=$ac_install_sh
1612 fi
1613fi
1614echo "$as_me:$LINENO: result: $INSTALL" >&5
1615echo "${ECHO_T}$INSTALL" >&6
1616
1617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618# It thinks the first close brace ends the variable substitution.
1619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627# Just in case
1628sleep 1
1629echo timestamp > conftest.file
1630# Do `set' in a subshell so we don't clobber the current shell's
1631# arguments. Must try -L first in case configure is actually a
1632# symlink; some systems play weird games with the mod time of symlinks
1633# (eg FreeBSD returns the mod time of the symlink's containing
1634# directory).
1635if (
1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637 if test "$*" = "X"; then
1638 # -L didn't work.
1639 set X `ls -t $srcdir/configure conftest.file`
1640 fi
1641 rm -f conftest.file
1642 if test "$*" != "X $srcdir/configure conftest.file" \
1643 && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645 # If neither matched, then we have a broken ls. This can happen
1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
1647 # broken ls alias from the environment. This has actually
1648 # happened. Such a system could not be considered "sane".
1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1650alias in your environment" >&5
1651echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1652alias in your environment" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 test "$2" = conftest.file
1657 )
1658then
1659 # Ok.
1660 :
1661else
1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663Check your system clock" >&5
1664echo "$as_me: error: newly created file is older than distributed files!
1665Check your system clock" >&2;}
1666 { (exit 1); exit 1; }; }
1667fi
1668echo "$as_me:$LINENO: result: yes" >&5
1669echo "${ECHO_T}yes" >&6
1670test "$program_prefix" != NONE &&
1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672# Use a double $ so make ignores it.
1673test "$program_suffix" != NONE &&
1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675# Double any \ or $. echo might interpret backslashes.
1676# By default was `s,x,x', remove it if useless.
1677cat <<\_ACEOF >conftest.sed
1678s/[\\$]/&&/g;s/;s,x,x,$//
1679_ACEOF
1680program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681rm conftest.sed
1682
1683# expand $ac_aux_dir to an absolute path
1684am_aux_dir=`cd $ac_aux_dir && pwd`
1685
1686test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1687# Use eval to expand $SHELL
1688if eval "$MISSING --run true"; then
1689 am_missing_run="$MISSING --run "
1690else
1691 am_missing_run=
1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1693echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694fi
1695
1696if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1697 # We used to keeping the `.' as first argument, in order to
1698 # allow $(mkdir_p) to be used without argument. As in
1699 # $(mkdir_p) $(somedir)
1700 # where $(somedir) is conditionally defined. However this is wrong
1701 # for two reasons:
1702 # 1. if the package is installed by a user who cannot write `.'
1703 # make install will fail,
1704 # 2. the above comment should most certainly read
1705 # $(mkdir_p) $(DESTDIR)$(somedir)
1706 # so it does not work when $(somedir) is undefined and
1707 # $(DESTDIR) is not.
1708 # To support the latter case, we have to write
1709 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1710 # so the `.' trick is pointless.
1711 mkdir_p='mkdir -p --'
1712else
1713 # On NextStep and OpenStep, the `mkdir' command does not
1714 # recognize any option. It will interpret all options as
1715 # directories to create, and then abort because `.' already
1716 # exists.
1717 for d in ./-p ./--version;
1718 do
1719 test -d $d && rmdir $d
1720 done
1721 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1722 if test -f "$ac_aux_dir/mkinstalldirs"; then
1723 mkdir_p='$(mkinstalldirs)'
1724 else
1725 mkdir_p='$(install_sh) -d'
1726 fi
1727fi
1728
1729for ac_prog in gawk mawk nawk awk
1730do
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732set dummy $ac_prog; ac_word=$2
1733echo "$as_me:$LINENO: checking for $ac_word" >&5
1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735if test "${ac_cv_prog_AWK+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738 if test -n "$AWK"; then
1739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740else
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_AWK="$ac_prog"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752done
1753done
1754
1755fi
1756fi
1757AWK=$ac_cv_prog_AWK
1758if test -n "$AWK"; then
1759 echo "$as_me:$LINENO: result: $AWK" >&5
1760echo "${ECHO_T}$AWK" >&6
1761else
1762 echo "$as_me:$LINENO: result: no" >&5
1763echo "${ECHO_T}no" >&6
1764fi
1765
1766 test -n "$AWK" && break
1767done
1768
1769echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1770echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1771set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1772if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 cat >conftest.make <<\_ACEOF
1776all:
1777 @echo 'ac_maketemp="$(MAKE)"'
1778_ACEOF
1779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1780eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1781if test -n "$ac_maketemp"; then
1782 eval ac_cv_prog_make_${ac_make}_set=yes
1783else
1784 eval ac_cv_prog_make_${ac_make}_set=no
1785fi
1786rm -f conftest.make
1787fi
1788if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
1791 SET_MAKE=
1792else
1793 echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795 SET_MAKE="MAKE=${MAKE-make}"
1796fi
1797
1798rm -rf .tst 2>/dev/null
1799mkdir .tst 2>/dev/null
1800if test -d .tst; then
1801 am__leading_dot=.
1802else
1803 am__leading_dot=_
1804fi
1805rmdir .tst 2>/dev/null
1806
1807# test to see if srcdir already configured
1808if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809 test -f $srcdir/config.status; then
1810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812 { (exit 1); exit 1; }; }
1813fi
1814
1815# test whether we have cygpath
1816if test -z "$CYGPATH_W"; then
1817 if (cygpath --version) >/dev/null 2>/dev/null; then
1818 CYGPATH_W='cygpath -w'
1819 else
1820 CYGPATH_W=echo
1821 fi
1822fi
1823
1824
1825# Define the identity of the package.
1826 PACKAGE='libsha1'
1827 VERSION='1.21'
1828
1829
1830# Some tools Automake needs.
1831
1832ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1833
1834
1835AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1836
1837
1838AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1839
1840
1841AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1842
1843
1844MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1845
1846install_sh=${install_sh-"$am_aux_dir/install-sh"}
1847
1848# Installed binaries are usually stripped using `strip' when the user
1849# run `make install-strip'. However `strip' might not be the right
1850# tool to use in cross-compilation environments, therefore Automake
1851# will honor the `STRIP' environment variable to overrule this program.
1852if test "$cross_compiling" != no; then
1853 if test -n "$ac_tool_prefix"; then
1854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1855set dummy ${ac_tool_prefix}strip; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_STRIP+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861 if test -n "$STRIP"; then
1862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1863else
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875done
1876done
1877
1878fi
1879fi
1880STRIP=$ac_cv_prog_STRIP
1881if test -n "$STRIP"; then
1882 echo "$as_me:$LINENO: result: $STRIP" >&5
1883echo "${ECHO_T}$STRIP" >&6
1884else
1885 echo "$as_me:$LINENO: result: no" >&5
1886echo "${ECHO_T}no" >&6
1887fi
1888
1889fi
1890if test -z "$ac_cv_prog_STRIP"; then
1891 ac_ct_STRIP=$STRIP
1892 # Extract the first word of "strip", so it can be a program name with args.
1893set dummy strip; ac_word=$2
1894echo "$as_me:$LINENO: checking for $ac_word" >&5
1895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898else
1899 if test -n "$ac_ct_STRIP"; then
1900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1901else
1902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903for as_dir in $PATH
1904do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_STRIP="strip"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1912 fi
1913done
1914done
1915
1916 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1917fi
1918fi
1919ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1920if test -n "$ac_ct_STRIP"; then
1921 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1922echo "${ECHO_T}$ac_ct_STRIP" >&6
1923else
1924 echo "$as_me:$LINENO: result: no" >&5
1925echo "${ECHO_T}no" >&6
1926fi
1927
1928 STRIP=$ac_ct_STRIP
1929else
1930 STRIP="$ac_cv_prog_STRIP"
1931fi
1932
1933fi
1934INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1935
1936# We need awk for the "check" target. The system "awk" is bad on
1937# some platforms.
1938# Always define AMTAR for backward compatibility.
1939
1940AMTAR=${AMTAR-"${am_missing_run}tar"}
1941
1942am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1943
1944
1945
1946
1947
1948
1949
1950
1951if test -d ${srcdir}/../libhmac; then
1952 HMACC_TRUE=
1953 HMACC_FALSE='#'
1954else
1955 HMACC_TRUE='#'
1956 HMACC_FALSE=
1957fi
1958
1959
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987done
1988done
1989
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997 echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$ac_cv_prog_CC"; then
2003 ac_ct_CC=$CC
2004 # Extract the first word of "gcc", so it can be a program name with args.
2005set dummy gcc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_ac_ct_CC="gcc"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 break 2
2024 fi
2025done
2026done
2027
2028fi
2029fi
2030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6
2034else
2035 echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6
2037fi
2038
2039 CC=$ac_ct_CC
2040else
2041 CC="$ac_cv_prog_CC"
2042fi
2043
2044if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2066 fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077 echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081fi
2082if test -z "$ac_cv_prog_CC"; then
2083 ac_ct_CC=$CC
2084 # Extract the first word of "cc", so it can be a program name with args.
2085set dummy cc; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_ac_ct_CC="cc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105done
2106done
2107
2108fi
2109fi
2110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
2114else
2115 echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
2119 CC=$ac_ct_CC
2120else
2121 CC="$ac_cv_prog_CC"
2122fi
2123
2124fi
2125if test -z "$CC"; then
2126 # Extract the first word of "cc", so it can be a program name with args.
2127set dummy cc; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136 ac_prog_rejected=no
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145 ac_prog_rejected=yes
2146 continue
2147 fi
2148 ac_cv_prog_CC="cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152done
2153done
2154
2155if test $ac_prog_rejected = yes; then
2156 # We found a bogon in the path, so make sure we never use it.
2157 set dummy $ac_cv_prog_CC
2158 shift
2159 if test $# != 0; then
2160 # We chose a different compiler from the bogus one.
2161 # However, it has the same basename, so the bogon will be chosen
2162 # first if we set CC to just the basename; use the full file name.
2163 shift
2164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2165 fi
2166fi
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171 echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6
2173else
2174 echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178fi
2179if test -z "$CC"; then
2180 if test -n "$ac_tool_prefix"; then
2181 for ac_prog in cl
2182 do
2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204done
2205done
2206
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6
2213else
2214 echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218 test -n "$CC" && break
2219 done
2220fi
2221if test -z "$CC"; then
2222 ac_ct_CC=$CC
2223 for ac_prog in cl
2224do
2225 # Extract the first word of "$ac_prog", so it can be a program name with args.
2226set dummy $ac_prog; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 if test -n "$ac_ct_CC"; then
2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_ac_ct_CC="$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246done
2247done
2248
2249fi
2250fi
2251ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252if test -n "$ac_ct_CC"; then
2253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254echo "${ECHO_T}$ac_ct_CC" >&6
2255else
2256 echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260 test -n "$ac_ct_CC" && break
2261done
2262
2263 CC=$ac_ct_CC
2264fi
2265
2266fi
2267
2268
2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: no acceptable C compiler found in \$PATH
2272See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2274
2275# Provide some information about the compiler.
2276echo "$as_me:$LINENO:" \
2277 "checking for C compiler version" >&5
2278ac_compiler=`set X $ac_compile; echo $2`
2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280 (eval $ac_compiler --version </dev/null >&5) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285 (eval $ac_compiler -v </dev/null >&5) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }
2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290 (eval $ac_compiler -V </dev/null >&5) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2294
2295cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
2301
2302int
2303main ()
2304{
2305
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310ac_clean_files_save=$ac_clean_files
2311ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312# Try to create an executable without -o first, disregard a.out.
2313# It will help us diagnose broken compilers, and finding out an intuition
2314# of exeext.
2315echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2317ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319 (eval $ac_link_default) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # Find the output, starting from the most likely. This scheme is
2324# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325# resort.
2326
2327# Be careful to initialize this variable, since it used to be cached.
2328# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329ac_cv_exeext=
2330# b.out is created by i960 compilers.
2331for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332do
2333 test -f "$ac_file" || continue
2334 case $ac_file in
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336 ;;
2337 conftest.$ac_ext )
2338 # This is the source file.
2339 ;;
2340 [ab].out )
2341 # We found the default executable, but exeext='' is most
2342 # certainly right.
2343 break;;
2344 *.* )
2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346 # FIXME: I believe we export ac_cv_exeext for Libtool,
2347 # but it would be cool to find out if it's true. Does anybody
2348 # maintain Libtool? --akim.
2349 export ac_cv_exeext
2350 break;;
2351 * )
2352 break;;
2353 esac
2354done
2355else
2356 echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: C compiler cannot create executables
2362See \`config.log' for more details." >&2;}
2363 { (exit 77); exit 77; }; }
2364fi
2365
2366ac_exeext=$ac_cv_exeext
2367echo "$as_me:$LINENO: result: $ac_file" >&5
2368echo "${ECHO_T}$ac_file" >&6
2369
2370# Check the compiler produces executables we can run. If not, either
2371# the compiler is broken, or we cross compile.
2372echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375# If not cross compiling, check that we can run a simple program.
2376if test "$cross_compiling" != yes; then
2377 if { ac_try='./$ac_file'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 cross_compiling=no
2384 else
2385 if test "$cross_compiling" = maybe; then
2386 cross_compiling=yes
2387 else
2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389If you meant to cross compile, use \`--host'.
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: cannot run C compiled programs.
2392If you meant to cross compile, use \`--host'.
2393See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2395 fi
2396 fi
2397fi
2398echo "$as_me:$LINENO: result: yes" >&5
2399echo "${ECHO_T}yes" >&6
2400
2401rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402ac_clean_files=$ac_clean_files_save
2403# Check the compiler produces executables we can run. If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408echo "${ECHO_T}$cross_compiling" >&6
2409
2410echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413 (eval $ac_link) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; then
2417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2419# work properly (i.e., refer to `conftest.exe'), while it won't with
2420# `rm'.
2421for ac_file in conftest.exe conftest conftest.*; do
2422 test -f "$ac_file" || continue
2423 case $ac_file in
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 export ac_cv_exeext
2427 break;;
2428 * ) break;;
2429 esac
2430done
2431else
2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2437fi
2438
2439rm -f conftest$ac_cv_exeext
2440echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443rm -f conftest.$ac_ext
2444EXEEXT=$ac_cv_exeext
2445ac_exeext=$EXEEXT
2446echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448if test "${ac_cv_objext+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451 cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h. */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h. */
2457
2458int
2459main ()
2460{
2461
2462 ;
2463 return 0;
2464}
2465_ACEOF
2466rm -f conftest.o conftest.obj
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2473 case $ac_file in
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476 break;;
2477 esac
2478done
2479else
2480 echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2488fi
2489
2490rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493echo "${ECHO_T}$ac_cv_objext" >&6
2494OBJEXT=$ac_cv_objext
2495ac_objext=$OBJEXT
2496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2498if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511#ifndef __GNUC__
2512 choke me
2513#endif
2514
2515 ;
2516 return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2522 ac_status=$?
2523 grep -v '^ *+' conftest.er1 >conftest.err
2524 rm -f conftest.er1
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_c_werror_flag"
2529 || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 ac_compiler_gnu=yes
2542else
2543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_compiler_gnu=no
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550
2551fi
2552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2554GCC=`test $ac_compiler_gnu = yes && echo yes`
2555ac_test_CFLAGS=${CFLAGS+set}
2556ac_save_CFLAGS=$CFLAGS
2557CFLAGS="-g"
2558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2560if test "${ac_cv_prog_cc_g+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563 cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h. */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h. */
2569
2570int
2571main ()
2572{
2573
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_prog_cc_g=yes
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605ac_cv_prog_cc_g=no
2606fi
2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2611if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2615 CFLAGS="-g -O2"
2616 else
2617 CFLAGS="-g"
2618 fi
2619else
2620 if test "$GCC" = yes; then
2621 CFLAGS="-O2"
2622 else
2623 CFLAGS=
2624 fi
2625fi
2626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2628if test "${ac_cv_prog_cc_stdc+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631 ac_cv_prog_cc_stdc=no
2632ac_save_CC=$CC
2633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h. */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647 char **p;
2648 int i;
2649{
2650 return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654 char *s;
2655 va_list v;
2656 va_start (v,p);
2657 s = g (p, va_arg (v,int));
2658 va_end (v);
2659 return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2663 function prototypes and stuff, but not '\xHH' hex character constants.
2664 These don't provoke an error unfortunately, instead are silently treated
2665 as 'x'. The following induces an error, until -std1 is added to get
2666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2667 array size at least. It's necessary to write '\x00'==0 to get something
2668 that's true only with -std1. */
2669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671int test (int i, double x);
2672struct s1 {int (*f) (int a);};
2673struct s2 {int (*f) (double a);};
2674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675int argc;
2676char **argv;
2677int
2678main ()
2679{
2680return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681 ;
2682 return 0;
2683}
2684_ACEOF
2685# Don't try gcc -ansi; that turns off useful extensions and
2686# breaks some systems' header files.
2687# AIX -qlanglvl=ansi
2688# Ultrix and OSF/1 -std1
2689# HP-UX 10.20 and later -Ae
2690# HP-UX older versions -Aa -D_HPUX_SOURCE
2691# SVR4 -Xc -D__EXTENSIONS__
2692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693do
2694 CC="$ac_save_CC $ac_arg"
2695 rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_cv_prog_cc_stdc=$ac_arg
2718break
2719else
2720 echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.err conftest.$ac_objext
2725done
2726rm -f conftest.$ac_ext conftest.$ac_objext
2727CC=$ac_save_CC
2728
2729fi
2730
2731case "x$ac_cv_prog_cc_stdc" in
2732 x|xno)
2733 echo "$as_me:$LINENO: result: none needed" >&5
2734echo "${ECHO_T}none needed" >&6 ;;
2735 *)
2736 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2738 CC="$CC $ac_cv_prog_cc_stdc" ;;
2739esac
2740
2741# Some people use a C++ compiler to compile C. Since we use `exit',
2742# in C++ we need to declare it. In case someone uses the same compiler
2743# for both compiling C and C++ we need to have the C++ compiler decide
2744# the declaration of exit, since it's the most demanding environment.
2745cat >conftest.$ac_ext <<_ACEOF
2746#ifndef __cplusplus
2747 choke me
2748#endif
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>conftest.er1
2753 ac_status=$?
2754 grep -v '^ *+' conftest.er1 >conftest.err
2755 rm -f conftest.er1
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -z "$ac_c_werror_flag"
2760 || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2772 for ac_declaration in \
2773 '' \
2774 'extern "C" void std::exit (int) throw (); using std::exit;' \
2775 'extern "C" void std::exit (int); using std::exit;' \
2776 'extern "C" void exit (int) throw ();' \
2777 'extern "C" void exit (int);' \
2778 'void exit (int);'
2779do
2780 cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h. */
2786$ac_declaration
2787#include <stdlib.h>
2788int
2789main ()
2790{
2791exit (42);
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>conftest.er1
2799 ac_status=$?
2800 grep -v '^ *+' conftest.er1 >conftest.err
2801 rm -f conftest.er1
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -z "$ac_c_werror_flag"
2806 || test ! -s conftest.err'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; } &&
2812 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2818 :
2819else
2820 echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823continue
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826 cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h. */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h. */
2832$ac_declaration
2833int
2834main ()
2835{
2836exit (42);
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 break
2864else
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870done
2871rm -f conftest*
2872if test -n "$ac_declaration"; then
2873 echo '#ifdef __cplusplus' >>confdefs.h
2874 echo $ac_declaration >>confdefs.h
2875 echo '#endif' >>confdefs.h
2876fi
2877
2878else
2879 echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882fi
2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889DEPDIR="${am__leading_dot}deps"
2890
2891 ac_config_commands="$ac_config_commands depfiles"
2892
2893
2894am_make=${MAKE-make}
2895cat > confinc << 'END'
2896am__doit:
2897 @echo done
2898.PHONY: am__doit
2899END
2900# If we don't find an include directive, just comment out the code.
2901echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2902echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2903am__include="#"
2904am__quote=
2905_am_result=none
2906# First try GNU make style include.
2907echo "include confinc" > confmf
2908# We grep out `Entering directory' and `Leaving directory'
2909# messages which can occur if `w' ends up in MAKEFLAGS.
2910# In particular we don't look at `^make:' because GNU make might
2911# be invoked under some other name (usually "gmake"), in which
2912# case it prints its new name instead of `make'.
2913if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2914 am__include=include
2915 am__quote=
2916 _am_result=GNU
2917fi
2918# Now try BSD make style include.
2919if test "$am__include" = "#"; then
2920 echo '.include "confinc"' > confmf
2921 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2922 am__include=.include
2923 am__quote="\""
2924 _am_result=BSD
2925 fi
2926fi
2927
2928
2929echo "$as_me:$LINENO: result: $_am_result" >&5
2930echo "${ECHO_T}$_am_result" >&6
2931rm -f confinc confmf
2932
2933# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2934if test "${enable_dependency_tracking+set}" = set; then
2935 enableval="$enable_dependency_tracking"
2936
2937fi;
2938if test "x$enable_dependency_tracking" != xno; then
2939 am_depcomp="$ac_aux_dir/depcomp"
2940 AMDEPBACKSLASH='\'
2941fi
2942
2943
2944if test "x$enable_dependency_tracking" != xno; then
2945 AMDEP_TRUE=
2946 AMDEP_FALSE='#'
2947else
2948 AMDEP_TRUE='#'
2949 AMDEP_FALSE=
2950fi
2951
2952
2953
2954
2955depcc="$CC" am_compiler_list=
2956
2957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2963 # We make a subdir and do the tests there. Otherwise we can end up
2964 # making bogus files that we don't know about and never remove. For
2965 # instance it was reported that on HP-UX the gcc test will end up
2966 # making a dummy file named `D' -- because `-MD' means `put the output
2967 # in D'.
2968 mkdir conftest.dir
2969 # Copy depcomp to subdir because otherwise we won't find it if we're
2970 # using a relative directory.
2971 cp "$am_depcomp" conftest.dir
2972 cd conftest.dir
2973 # We will build objects and dependencies in a subdirectory because
2974 # it helps to detect inapplicable dependency modes. For instance
2975 # both Tru64's cc and ICC support -MD to output dependencies as a
2976 # side effect of compilation, but ICC will put the dependencies in
2977 # the current directory while Tru64 will put them in the object
2978 # directory.
2979 mkdir sub
2980
2981 am_cv_CC_dependencies_compiler_type=none
2982 if test "$am_compiler_list" = ""; then
2983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2984 fi
2985 for depmode in $am_compiler_list; do
2986 # Setup a source with many dependencies, because some compilers
2987 # like to wrap large dependency lists on column 80 (with \), and
2988 # we should not choose a depcomp mode which is confused by this.
2989 #
2990 # We need to recreate these files for each test, as the compiler may
2991 # overwrite some of them when testing with obscure command lines.
2992 # This happens at least with the AIX C compiler.
2993 : > sub/conftest.c
2994 for i in 1 2 3 4 5 6; do
2995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2997 # Solaris 8's {/usr,}/bin/sh.
2998 touch sub/conftst$i.h
2999 done
3000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3001
3002 case $depmode in
3003 nosideeffect)
3004 # after this tag, mechanisms are not by side-effect, so they'll
3005 # only be used when explicitly requested
3006 if test "x$enable_dependency_tracking" = xyes; then
3007 continue
3008 else
3009 break
3010 fi
3011 ;;
3012 none) break ;;
3013 esac
3014 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3015 # mode. It turns out that the SunPro C++ compiler does not properly
3016 # handle `-M -o', and we need to detect this.
3017 if depmode=$depmode \
3018 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3020 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3021 >/dev/null 2>conftest.err &&
3022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3023 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3025 # icc doesn't choke on unknown options, it will just issue warnings
3026 # or remarks (even with -Werror). So we grep stderr for any message
3027 # that says an option was ignored or not supported.
3028 # When given -MP, icc 7.0 and 7.1 complain thusly:
3029 # icc: Command line warning: ignoring option '-M'; no argument required
3030 # The diagnosis changed in icc 8.0:
3031 # icc: Command line remark: option '-MP' not supported
3032 if (grep 'ignoring option' conftest.err ||
3033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3034 am_cv_CC_dependencies_compiler_type=$depmode
3035 break
3036 fi
3037 fi
3038 done
3039
3040 cd ..
3041 rm -rf conftest.dir
3042else
3043 am_cv_CC_dependencies_compiler_type=none
3044fi
3045
3046fi
3047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050
3051
3052
3053if
3054 test "x$enable_dependency_tracking" != xno \
3055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3056 am__fastdepCC_TRUE=
3057 am__fastdepCC_FALSE='#'
3058else
3059 am__fastdepCC_TRUE='#'
3060 am__fastdepCC_FALSE=
3061fi
3062
3063
3064# Find a good install program. We prefer a C program (faster),
3065# so one script is as good as another. But avoid the broken or
3066# incompatible versions:
3067# SysV /etc/install, /usr/sbin/install
3068# SunOS /usr/etc/install
3069# IRIX /sbin/install
3070# AIX /bin/install
3071# AmigaOS /C/install, which installs bootblocks on floppy discs
3072# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3073# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3074# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3075# OS/2's system install, which has a completely different semantic
3076# ./install, which can be erroneously created by make from ./install.sh.
3077echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3078echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3079if test -z "$INSTALL"; then
3080if test "${ac_cv_path_install+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 # Account for people who put trailing slashes in PATH elements.
3089case $as_dir/ in
3090 ./ | .// | /cC/* | \
3091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3092 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3093 /usr/ucb/* ) ;;
3094 *)
3095 # OSF1 and SCO ODT 3.0 have their own names for install.
3096 # Don't use installbsd from OSF since it installs stuff as root
3097 # by default.
3098 for ac_prog in ginstall scoinst install; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3101 if test $ac_prog = install &&
3102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3103 # AIX install. It has an incompatible calling convention.
3104 :
3105 elif test $ac_prog = install &&
3106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3107 # program-specific install script used by HP pwplus--don't use.
3108 :
3109 else
3110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3111 break 3
3112 fi
3113 fi
3114 done
3115 done
3116 ;;
3117esac
3118done
3119
3120
3121fi
3122 if test "${ac_cv_path_install+set}" = set; then
3123 INSTALL=$ac_cv_path_install
3124 else
3125 # As a last resort, use the slow shell script. We don't cache a
3126 # path for INSTALL within a source directory, because that will
3127 # break other packages using the cache if that directory is
3128 # removed, or if the path is relative.
3129 INSTALL=$ac_install_sh
3130 fi
3131fi
3132echo "$as_me:$LINENO: result: $INSTALL" >&5
3133echo "${ECHO_T}$INSTALL" >&6
3134
3135# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3136# It thinks the first close brace ends the variable substitution.
3137test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3138
3139test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3140
3141test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3142
3143echo "$as_me:$LINENO: checking whether ln -s works" >&5
3144echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3145LN_S=$as_ln_s
3146if test "$LN_S" = "ln -s"; then
3147 echo "$as_me:$LINENO: result: yes" >&5
3148echo "${ECHO_T}yes" >&6
3149else
3150 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3151echo "${ECHO_T}no, using $LN_S" >&6
3152fi
3153
3154# Check whether --enable-shared or --disable-shared was given.
3155if test "${enable_shared+set}" = set; then
3156 enableval="$enable_shared"
3157 p=${PACKAGE-default}
3158 case $enableval in
3159 yes) enable_shared=yes ;;
3160 no) enable_shared=no ;;
3161 *)
3162 enable_shared=no
3163 # Look at the argument we got. We use all the common list separators.
3164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3165 for pkg in $enableval; do
3166 IFS="$lt_save_ifs"
3167 if test "X$pkg" = "X$p"; then
3168 enable_shared=yes
3169 fi
3170 done
3171 IFS="$lt_save_ifs"
3172 ;;
3173 esac
3174else
3175 enable_shared=yes
3176fi;
3177
3178# Check whether --enable-static or --disable-static was given.
3179if test "${enable_static+set}" = set; then
3180 enableval="$enable_static"
3181 p=${PACKAGE-default}
3182 case $enableval in
3183 yes) enable_static=yes ;;
3184 no) enable_static=no ;;
3185 *)
3186 enable_static=no
3187 # Look at the argument we got. We use all the common list separators.
3188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3189 for pkg in $enableval; do
3190 IFS="$lt_save_ifs"
3191 if test "X$pkg" = "X$p"; then
3192 enable_static=yes
3193 fi
3194 done
3195 IFS="$lt_save_ifs"
3196 ;;
3197 esac
3198else
3199 enable_static=yes
3200fi;
3201
3202# Check whether --enable-fast-install or --disable-fast-install was given.
3203if test "${enable_fast_install+set}" = set; then
3204 enableval="$enable_fast_install"
3205 p=${PACKAGE-default}
3206 case $enableval in
3207 yes) enable_fast_install=yes ;;
3208 no) enable_fast_install=no ;;
3209 *)
3210 enable_fast_install=no
3211 # Look at the argument we got. We use all the common list separators.
3212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3213 for pkg in $enableval; do
3214 IFS="$lt_save_ifs"
3215 if test "X$pkg" = "X$p"; then
3216 enable_fast_install=yes
3217 fi
3218 done
3219 IFS="$lt_save_ifs"
3220 ;;
3221 esac
3222else
3223 enable_fast_install=yes
3224fi;
3225
3226# Make sure we can run config.sub.
3227$ac_config_sub sun4 >/dev/null 2>&1 ||
3228 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3229echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3230 { (exit 1); exit 1; }; }
3231
3232echo "$as_me:$LINENO: checking build system type" >&5
3233echo $ECHO_N "checking build system type... $ECHO_C" >&6
3234if test "${ac_cv_build+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237 ac_cv_build_alias=$build_alias
3238test -z "$ac_cv_build_alias" &&
3239 ac_cv_build_alias=`$ac_config_guess`
3240test -z "$ac_cv_build_alias" &&
3241 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3242echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3243 { (exit 1); exit 1; }; }
3244ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3245 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3246echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3247 { (exit 1); exit 1; }; }
3248
3249fi
3250echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3251echo "${ECHO_T}$ac_cv_build" >&6
3252build=$ac_cv_build
3253build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3254build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3255build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3256
3257
3258echo "$as_me:$LINENO: checking host system type" >&5
3259echo $ECHO_N "checking host system type... $ECHO_C" >&6
3260if test "${ac_cv_host+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263 ac_cv_host_alias=$host_alias
3264test -z "$ac_cv_host_alias" &&
3265 ac_cv_host_alias=$ac_cv_build_alias
3266ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3267 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3268echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3269 { (exit 1); exit 1; }; }
3270
3271fi
3272echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3273echo "${ECHO_T}$ac_cv_host" >&6
3274host=$ac_cv_host
3275host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3276host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3277host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3278
3279
3280echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3281echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3282if test "${lt_cv_path_SED+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285 # Loop through the user's path and test for sed and gsed.
3286# Then use that list of sed's as ones to test for truncation.
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for lt_ac_prog in sed gsed; do
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3295 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3296 fi
3297 done
3298 done
3299done
3300IFS=$as_save_IFS
3301lt_ac_max=0
3302lt_ac_count=0
3303# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3304# along with /bin/sed that truncates output.
3305for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3306 test ! -f $lt_ac_sed && continue
3307 cat /dev/null > conftest.in
3308 lt_ac_count=0
3309 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3310 # Check for GNU sed and select it if it is found.
3311 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3312 lt_cv_path_SED=$lt_ac_sed
3313 break
3314 fi
3315 while true; do
3316 cat conftest.in conftest.in >conftest.tmp
3317 mv conftest.tmp conftest.in
3318 cp conftest.in conftest.nl
3319 echo >>conftest.nl
3320 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3321 cmp -s conftest.out conftest.nl || break
3322 # 10000 chars as input seems more than enough
3323 test $lt_ac_count -gt 10 && break
3324 lt_ac_count=`expr $lt_ac_count + 1`
3325 if test $lt_ac_count -gt $lt_ac_max; then
3326 lt_ac_max=$lt_ac_count
3327 lt_cv_path_SED=$lt_ac_sed
3328 fi
3329 done
3330done
3331
3332fi
3333
3334SED=$lt_cv_path_SED
3335
3336echo "$as_me:$LINENO: result: $SED" >&5
3337echo "${ECHO_T}$SED" >&6
3338
3339echo "$as_me:$LINENO: checking for egrep" >&5
3340echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3341if test "${ac_cv_prog_egrep+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
3344 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3345 then ac_cv_prog_egrep='grep -E'
3346 else ac_cv_prog_egrep='egrep'
3347 fi
3348fi
3349echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3350echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3351 EGREP=$ac_cv_prog_egrep
3352
3353
3354
3355# Check whether --with-gnu-ld or --without-gnu-ld was given.
3356if test "${with_gnu_ld+set}" = set; then
3357 withval="$with_gnu_ld"
3358 test "$withval" = no || with_gnu_ld=yes
3359else
3360 with_gnu_ld=no
3361fi;
3362ac_prog=ld
3363if test "$GCC" = yes; then
3364 # Check if gcc -print-prog-name=ld gives a path.
3365 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3366echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3367 case $host in
3368 *-*-mingw*)
3369 # gcc leaves a trailing carriage return which upsets mingw
3370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3371 *)
3372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3373 esac
3374 case $ac_prog in
3375 # Accept absolute paths.
3376 [\\/]* | ?:[\\/]*)
3377 re_direlt='/[^/][^/]*/\.\./'
3378 # Canonicalize the pathname of ld
3379 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3380 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3381 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3382 done
3383 test -z "$LD" && LD="$ac_prog"
3384 ;;
3385 "")
3386 # If it fails, then pretend we aren't using GCC.
3387 ac_prog=ld
3388 ;;
3389 *)
3390 # If it is relative, then search for the first ld in PATH.
3391 with_gnu_ld=unknown
3392 ;;
3393 esac
3394elif test "$with_gnu_ld" = yes; then
3395 echo "$as_me:$LINENO: checking for GNU ld" >&5
3396echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3397else
3398 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3399echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3400fi
3401if test "${lt_cv_path_LD+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404 if test -z "$LD"; then
3405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3406 for ac_dir in $PATH; do
3407 IFS="$lt_save_ifs"
3408 test -z "$ac_dir" && ac_dir=.
3409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3410 lt_cv_path_LD="$ac_dir/$ac_prog"
3411 # Check to see if the program is GNU ld. I'd rather use --version,
3412 # but apparently some variants of GNU ld only accept -v.
3413 # Break only if it was the GNU/non-GNU ld that we prefer.
3414 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3415 *GNU* | *'with BFD'*)
3416 test "$with_gnu_ld" != no && break
3417 ;;
3418 *)
3419 test "$with_gnu_ld" != yes && break
3420 ;;
3421 esac
3422 fi
3423 done
3424 IFS="$lt_save_ifs"
3425else
3426 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3427fi
3428fi
3429
3430LD="$lt_cv_path_LD"
3431if test -n "$LD"; then
3432 echo "$as_me:$LINENO: result: $LD" >&5
3433echo "${ECHO_T}$LD" >&6
3434else
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437fi
3438test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3439echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3440 { (exit 1); exit 1; }; }
3441echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3442echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3443if test "${lt_cv_prog_gnu_ld+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3447case `$LD -v 2>&1 </dev/null` in
3448*GNU* | *'with BFD'*)
3449 lt_cv_prog_gnu_ld=yes
3450 ;;
3451*)
3452 lt_cv_prog_gnu_ld=no
3453 ;;
3454esac
3455fi
3456echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3457echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3458with_gnu_ld=$lt_cv_prog_gnu_ld
3459
3460
3461echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3462echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3463if test "${lt_cv_ld_reload_flag+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 lt_cv_ld_reload_flag='-r'
3467fi
3468echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3469echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3470reload_flag=$lt_cv_ld_reload_flag
3471case $reload_flag in
3472"" | " "*) ;;
3473*) reload_flag=" $reload_flag" ;;
3474esac
3475reload_cmds='$LD$reload_flag -o $output$reload_objs'
3476case $host_os in
3477 darwin*)
3478 if test "$GCC" = yes; then
3479 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3480 else
3481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3482 fi
3483 ;;
3484esac
3485
3486echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3487echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3488if test "${lt_cv_path_NM+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490else
3491 if test -n "$NM"; then
3492 # Let the user override the test.
3493 lt_cv_path_NM="$NM"
3494else
3495 lt_nm_to_check="${ac_tool_prefix}nm"
3496 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3497 lt_nm_to_check="$lt_nm_to_check nm"
3498 fi
3499 for lt_tmp_nm in $lt_nm_to_check; do
3500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3501 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3502 IFS="$lt_save_ifs"
3503 test -z "$ac_dir" && ac_dir=.
3504 tmp_nm="$ac_dir/$lt_tmp_nm"
3505 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3506 # Check to see if the nm accepts a BSD-compat flag.
3507 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3508 # nm: unknown option "B" ignored
3509 # Tru64's nm complains that /dev/null is an invalid object file
3510 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3511 */dev/null* | *'Invalid file or object type'*)
3512 lt_cv_path_NM="$tmp_nm -B"
3513 break
3514 ;;
3515 *)
3516 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3517 */dev/null*)
3518 lt_cv_path_NM="$tmp_nm -p"
3519 break
3520 ;;
3521 *)
3522 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3523 continue # so that we can try to find one that supports BSD flags
3524 ;;
3525 esac
3526 ;;
3527 esac
3528 fi
3529 done
3530 IFS="$lt_save_ifs"
3531 done
3532 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3533fi
3534fi
3535echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3536echo "${ECHO_T}$lt_cv_path_NM" >&6
3537NM="$lt_cv_path_NM"
3538
3539echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3540echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3541if test "${lt_cv_deplibs_check_method+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 lt_cv_file_magic_cmd='$MAGIC_CMD'
3545lt_cv_file_magic_test_file=
3546lt_cv_deplibs_check_method='unknown'
3547# Need to set the preceding variable on all platforms that support
3548# interlibrary dependencies.
3549# 'none' -- dependencies not supported.
3550# `unknown' -- same as none, but documents that we really don't know.
3551# 'pass_all' -- all dependencies passed with no checks.
3552# 'test_compile' -- check by making test program.
3553# 'file_magic [[regex]]' -- check by looking for files in library path
3554# which responds to the $file_magic_cmd with a given extended regex.
3555# If you have `file' or equivalent on your system and you're not sure
3556# whether `pass_all' will *always* work, you probably want this one.
3557
3558case $host_os in
3559aix4* | aix5*)
3560 lt_cv_deplibs_check_method=pass_all
3561 ;;
3562
3563beos*)
3564 lt_cv_deplibs_check_method=pass_all
3565 ;;
3566
3567bsdi[45]*)
3568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3569 lt_cv_file_magic_cmd='/usr/bin/file -L'
3570 lt_cv_file_magic_test_file=/shlib/libc.so
3571 ;;
3572
3573cygwin*)
3574 # func_win32_libid is a shell function defined in ltmain.sh
3575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3576 lt_cv_file_magic_cmd='func_win32_libid'
3577 ;;
3578
3579mingw* | pw32*)
3580 # Base MSYS/MinGW do not provide the 'file' command needed by
3581 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3582 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3583 lt_cv_file_magic_cmd='$OBJDUMP -f'
3584 ;;
3585
3586darwin* | rhapsody*)
3587 lt_cv_deplibs_check_method=pass_all
3588 ;;
3589
3590freebsd* | kfreebsd*-gnu | dragonfly*)
3591 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3592 case $host_cpu in
3593 i*86 )
3594 # Not sure whether the presence of OpenBSD here was a mistake.
3595 # Let's accept both of them until this is cleared up.
3596 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3597 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3599 ;;
3600 esac
3601 else
3602 lt_cv_deplibs_check_method=pass_all
3603 fi
3604 ;;
3605
3606gnu*)
3607 lt_cv_deplibs_check_method=pass_all
3608 ;;
3609
3610hpux10.20* | hpux11*)
3611 lt_cv_file_magic_cmd=/usr/bin/file
3612 case $host_cpu in
3613 ia64*)
3614 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3615 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3616 ;;
3617 hppa*64*)
3618 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]'
3619 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3620 ;;
3621 *)
3622 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3623 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3624 ;;
3625 esac
3626 ;;
3627
3628interix3*)
3629 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3631 ;;
3632
3633irix5* | irix6* | nonstopux*)
3634 case $LD in
3635 *-32|*"-32 ") libmagic=32-bit;;
3636 *-n32|*"-n32 ") libmagic=N32;;
3637 *-64|*"-64 ") libmagic=64-bit;;
3638 *) libmagic=never-match;;
3639 esac
3640 lt_cv_deplibs_check_method=pass_all
3641 ;;
3642
3643# This must be Linux ELF.
3644linux*)
3645 lt_cv_deplibs_check_method=pass_all
3646 ;;
3647
3648netbsd*)
3649 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3651 else
3652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3653 fi
3654 ;;
3655
3656newos6*)
3657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3658 lt_cv_file_magic_cmd=/usr/bin/file
3659 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3660 ;;
3661
3662nto-qnx*)
3663 lt_cv_deplibs_check_method=unknown
3664 ;;
3665
3666openbsd*)
3667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3669 else
3670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3671 fi
3672 ;;
3673
3674osf3* | osf4* | osf5*)
3675 lt_cv_deplibs_check_method=pass_all
3676 ;;
3677
3678solaris*)
3679 lt_cv_deplibs_check_method=pass_all
3680 ;;
3681
3682sysv4 | sysv4.3*)
3683 case $host_vendor in
3684 motorola)
3685 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]'
3686 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3687 ;;
3688 ncr)
3689 lt_cv_deplibs_check_method=pass_all
3690 ;;
3691 sequent)
3692 lt_cv_file_magic_cmd='/bin/file'
3693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3694 ;;
3695 sni)
3696 lt_cv_file_magic_cmd='/bin/file'
3697 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3698 lt_cv_file_magic_test_file=/lib/libc.so
3699 ;;
3700 siemens)
3701 lt_cv_deplibs_check_method=pass_all
3702 ;;
3703 pc)
3704 lt_cv_deplibs_check_method=pass_all
3705 ;;
3706 esac
3707 ;;
3708
3709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3710 lt_cv_deplibs_check_method=pass_all
3711 ;;
3712esac
3713
3714fi
3715echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3716echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3717file_magic_cmd=$lt_cv_file_magic_cmd
3718deplibs_check_method=$lt_cv_deplibs_check_method
3719test -z "$deplibs_check_method" && deplibs_check_method=unknown
3720
3721
3722
3723
3724# If no C compiler was specified, use CC.
3725LTCC=${LTCC-"$CC"}
3726
3727# If no C compiler flags were specified, use CFLAGS.
3728LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3729
3730# Allow CC to be a program name with arguments.
3731compiler=$CC
3732
3733
3734# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3735if test "${enable_libtool_lock+set}" = set; then
3736 enableval="$enable_libtool_lock"
3737
3738fi;
3739test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3740
3741# Some flags need to be propagated to the compiler or linker for good
3742# libtool support.
3743case $host in
3744ia64-*-hpux*)
3745 # Find out which ABI we are using.
3746 echo 'int i;' > conftest.$ac_ext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3748 (eval $ac_compile) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; then
3752 case `/usr/bin/file conftest.$ac_objext` in
3753 *ELF-32*)
3754 HPUX_IA64_MODE="32"
3755 ;;
3756 *ELF-64*)
3757 HPUX_IA64_MODE="64"
3758 ;;
3759 esac
3760 fi
3761 rm -rf conftest*
3762 ;;
3763*-*-irix6*)
3764 # Find out which ABI we are using.
3765 echo '#line 3765 "configure"' > conftest.$ac_ext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; then
3771 if test "$lt_cv_prog_gnu_ld" = yes; then
3772 case `/usr/bin/file conftest.$ac_objext` in
3773 *32-bit*)
3774 LD="${LD-ld} -melf32bsmip"
3775 ;;
3776 *N32*)
3777 LD="${LD-ld} -melf32bmipn32"
3778 ;;
3779 *64-bit*)
3780 LD="${LD-ld} -melf64bmip"
3781 ;;
3782 esac
3783 else
3784 case `/usr/bin/file conftest.$ac_objext` in
3785 *32-bit*)
3786 LD="${LD-ld} -32"
3787 ;;
3788 *N32*)
3789 LD="${LD-ld} -n32"
3790 ;;
3791 *64-bit*)
3792 LD="${LD-ld} -64"
3793 ;;
3794 esac
3795 fi
3796 fi
3797 rm -rf conftest*
3798 ;;
3799
3800x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3801 # Find out which ABI we are using.
3802 echo 'int i;' > conftest.$ac_ext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; then
3808 case `/usr/bin/file conftest.o` in
3809 *32-bit*)
3810 case $host in
3811 x86_64-*linux*)
3812 LD="${LD-ld} -m elf_i386"
3813 ;;
3814 ppc64-*linux*|powerpc64-*linux*)
3815 LD="${LD-ld} -m elf32ppclinux"
3816 ;;
3817 s390x-*linux*)
3818 LD="${LD-ld} -m elf_s390"
3819 ;;
3820 sparc64-*linux*)
3821 LD="${LD-ld} -m elf32_sparc"
3822 ;;
3823 esac
3824 ;;
3825 *64-bit*)
3826 case $host in
3827 x86_64-*linux*)
3828 LD="${LD-ld} -m elf_x86_64"
3829 ;;
3830 ppc*-*linux*|powerpc*-*linux*)
3831 LD="${LD-ld} -m elf64ppc"
3832 ;;
3833 s390*-*linux*)
3834 LD="${LD-ld} -m elf64_s390"
3835 ;;
3836 sparc*-*linux*)
3837 LD="${LD-ld} -m elf64_sparc"
3838 ;;
3839 esac
3840 ;;
3841 esac
3842 fi
3843 rm -rf conftest*
3844 ;;
3845
3846*-*-sco3.2v5*)
3847 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3848 SAVE_CFLAGS="$CFLAGS"
3849 CFLAGS="$CFLAGS -belf"
3850 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3851echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3852if test "${lt_cv_cc_needs_belf+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
3855 ac_ext=c
3856ac_cpp='$CPP $CPPFLAGS'
3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860
3861 cat >conftest.$ac_ext <<_ACEOF
3862/* confdefs.h. */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
3866/* end confdefs.h. */
3867
3868int
3869main ()
3870{
3871
3872 ;
3873 return 0;
3874}
3875_ACEOF
3876rm -f conftest.$ac_objext conftest$ac_exeext
3877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3878 (eval $ac_link) 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag"
3886 || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 lt_cv_cc_needs_belf=yes
3899else
3900 echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903lt_cv_cc_needs_belf=no
3904fi
3905rm -f conftest.err conftest.$ac_objext \
3906 conftest$ac_exeext conftest.$ac_ext
3907 ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912
3913fi
3914echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3915echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3918 CFLAGS="$SAVE_CFLAGS"
3919 fi
3920 ;;
3921sparc*-*solaris*)
3922 # Find out which ABI we are using.
3923 echo 'int i;' > conftest.$ac_ext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; then
3929 case `/usr/bin/file conftest.o` in
3930 *64-bit*)
3931 case $lt_cv_prog_gnu_ld in
3932 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3933 *) LD="${LD-ld} -64" ;;
3934 esac
3935 ;;
3936 esac
3937 fi
3938 rm -rf conftest*
3939 ;;
3940
3941
3942esac
3943
3944need_locks="$enable_libtool_lock"
3945
3946
3947ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3953echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3954# On Suns, sometimes $CPP names a directory.
3955if test -n "$CPP" && test -d "$CPP"; then
3956 CPP=
3957fi
3958if test -z "$CPP"; then
3959 if test "${ac_cv_prog_CPP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962 # Double quotes because CPP needs to be expanded
3963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3964 do
3965 ac_preproc_ok=false
3966for ac_c_preproc_warn_flag in '' yes
3967do
3968 # Use a header file that comes with gcc, so configuring glibc
3969 # with a fresh cross-compiler works.
3970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 # <limits.h> exists even on freestanding compilers.
3972 # On the NeXT, cc -E runs the code through the compiler's parser,
3973 # not just through cpp. "Syntax error" is here to catch this case.
3974 cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h. */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h. */
3980#ifdef __STDC__
3981# include <limits.h>
3982#else
3983# include <assert.h>
3984#endif
3985 Syntax error
3986_ACEOF
3987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null; then
3995 if test -s conftest.err; then
3996 ac_cpp_err=$ac_c_preproc_warn_flag
3997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3998 else
3999 ac_cpp_err=
4000 fi
4001else
4002 ac_cpp_err=yes
4003fi
4004if test -z "$ac_cpp_err"; then
4005 :
4006else
4007 echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 # Broken: fails on valid input.
4011continue
4012fi
4013rm -f conftest.err conftest.$ac_ext
4014
4015 # OK, works on sane cases. Now check whether non-existent headers
4016 # can be detected and how.
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023#include <ac_nonexistent.h>
4024_ACEOF
4025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } >/dev/null; then
4033 if test -s conftest.err; then
4034 ac_cpp_err=$ac_c_preproc_warn_flag
4035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4036 else
4037 ac_cpp_err=
4038 fi
4039else
4040 ac_cpp_err=yes
4041fi
4042if test -z "$ac_cpp_err"; then
4043 # Broken: success on invalid input.
4044continue
4045else
4046 echo "$as_me: failed program was:" >&5
4047sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 # Passes both tests.
4050ac_preproc_ok=:
4051break
4052fi
4053rm -f conftest.err conftest.$ac_ext
4054
4055done
4056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057rm -f conftest.err conftest.$ac_ext
4058if $ac_preproc_ok; then
4059 break
4060fi
4061
4062 done
4063 ac_cv_prog_CPP=$CPP
4064
4065fi
4066 CPP=$ac_cv_prog_CPP
4067else
4068 ac_cv_prog_CPP=$CPP
4069fi
4070echo "$as_me:$LINENO: result: $CPP" >&5
4071echo "${ECHO_T}$CPP" >&6
4072ac_preproc_ok=false
4073for ac_c_preproc_warn_flag in '' yes
4074do
4075 # Use a header file that comes with gcc, so configuring glibc
4076 # with a fresh cross-compiler works.
4077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4078 # <limits.h> exists even on freestanding compilers.
4079 # On the NeXT, cc -E runs the code through the compiler's parser,
4080 # not just through cpp. "Syntax error" is here to catch this case.
4081 cat >conftest.$ac_ext <<_ACEOF
4082/* confdefs.h. */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h. */
4087#ifdef __STDC__
4088# include <limits.h>
4089#else
4090# include <assert.h>
4091#endif
4092 Syntax error
4093_ACEOF
4094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } >/dev/null; then
4102 if test -s conftest.err; then
4103 ac_cpp_err=$ac_c_preproc_warn_flag
4104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4105 else
4106 ac_cpp_err=
4107 fi
4108else
4109 ac_cpp_err=yes
4110fi
4111if test -z "$ac_cpp_err"; then
4112 :
4113else
4114 echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 # Broken: fails on valid input.
4118continue
4119fi
4120rm -f conftest.err conftest.$ac_ext
4121
4122 # OK, works on sane cases. Now check whether non-existent headers
4123 # can be detected and how.
4124 cat >conftest.$ac_ext <<_ACEOF
4125/* confdefs.h. */
4126_ACEOF
4127cat confdefs.h >>conftest.$ac_ext
4128cat >>conftest.$ac_ext <<_ACEOF
4129/* end confdefs.h. */
4130#include <ac_nonexistent.h>
4131_ACEOF
4132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } >/dev/null; then
4140 if test -s conftest.err; then
4141 ac_cpp_err=$ac_c_preproc_warn_flag
4142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4143 else
4144 ac_cpp_err=
4145 fi
4146else
4147 ac_cpp_err=yes
4148fi
4149if test -z "$ac_cpp_err"; then
4150 # Broken: success on invalid input.
4151continue
4152else
4153 echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 # Passes both tests.
4157ac_preproc_ok=:
4158break
4159fi
4160rm -f conftest.err conftest.$ac_ext
4161
4162done
4163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4164rm -f conftest.err conftest.$ac_ext
4165if $ac_preproc_ok; then
4166 :
4167else
4168 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4169See \`config.log' for more details." >&5
4170echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4171See \`config.log' for more details." >&2;}
4172 { (exit 1); exit 1; }; }
4173fi
4174
4175ac_ext=c
4176ac_cpp='$CPP $CPPFLAGS'
4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
4181
4182echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4183echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4184if test "${ac_cv_header_stdc+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4187 cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h. */
4193#include <stdlib.h>
4194#include <stdarg.h>
4195#include <string.h>
4196#include <float.h>
4197
4198int
4199main ()
4200{
4201
4202 ;
4203 return 0;
4204}
4205_ACEOF
4206rm -f conftest.$ac_objext
4207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -z "$ac_c_werror_flag"
4216 || test ! -s conftest.err'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_header_stdc=yes
4229else
4230 echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233ac_cv_header_stdc=no
4234fi
4235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236
4237if test $ac_cv_header_stdc = yes; then
4238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239 cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h. */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h. */
4245#include <string.h>
4246
4247_ACEOF
4248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4249 $EGREP "memchr" >/dev/null 2>&1; then
4250 :
4251else
4252 ac_cv_header_stdc=no
4253fi
4254rm -f conftest*
4255
4256fi
4257
4258if test $ac_cv_header_stdc = yes; then
4259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266#include <stdlib.h>
4267
4268_ACEOF
4269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "free" >/dev/null 2>&1; then
4271 :
4272else
4273 ac_cv_header_stdc=no
4274fi
4275rm -f conftest*
4276
4277fi
4278
4279if test $ac_cv_header_stdc = yes; then
4280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281 if test "$cross_compiling" = yes; then
4282 :
4283else
4284 cat >conftest.$ac_ext <<_ACEOF
4285/* confdefs.h. */
4286_ACEOF
4287cat confdefs.h >>conftest.$ac_ext
4288cat >>conftest.$ac_ext <<_ACEOF
4289/* end confdefs.h. */
4290#include <ctype.h>
4291#if ((' ' & 0x0FF) == 0x020)
4292# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294#else
4295# define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4300#endif
4301
4302#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4303int
4304main ()
4305{
4306 int i;
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4310 exit(2);
4311 exit (0);
4312}
4313_ACEOF
4314rm -f conftest$ac_exeext
4315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4316 (eval $ac_link) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 :
4326else
4327 echo "$as_me: program exited with status $ac_status" >&5
4328echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331( exit $ac_status )
4332ac_cv_header_stdc=no
4333fi
4334rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4335fi
4336fi
4337fi
4338echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4339echo "${ECHO_T}$ac_cv_header_stdc" >&6
4340if test $ac_cv_header_stdc = yes; then
4341
4342cat >>confdefs.h <<\_ACEOF
4343#define STDC_HEADERS 1
4344_ACEOF
4345
4346fi
4347
4348# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4359 inttypes.h stdint.h unistd.h
4360do
4361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362echo "$as_me:$LINENO: checking for $ac_header" >&5
4363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373$ac_includes_default
4374
4375#include <$ac_header>
4376_ACEOF
4377rm -f conftest.$ac_objext
4378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 eval "$as_ac_Header=yes"
4400else
4401 echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404eval "$as_ac_Header=no"
4405fi
4406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407fi
4408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4410if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411 cat >>confdefs.h <<_ACEOF
4412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413_ACEOF
4414
4415fi
4416
4417done
4418
4419
4420
4421for ac_header in dlfcn.h
4422do
4423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425 echo "$as_me:$LINENO: checking for $ac_header" >&5
4426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429fi
4430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432else
4433 # Is the header compilable?
4434echo "$as_me:$LINENO: checking $ac_header usability" >&5
4435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4436cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442$ac_includes_default
4443#include <$ac_header>
4444_ACEOF
4445rm -f conftest.$ac_objext
4446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -z "$ac_c_werror_flag"
4455 || test ! -s conftest.err'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_header_compiler=yes
4468else
4469 echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472ac_header_compiler=no
4473fi
4474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4476echo "${ECHO_T}$ac_header_compiler" >&6
4477
4478# Is the header present?
4479echo "$as_me:$LINENO: checking $ac_header presence" >&5
4480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4481cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h. */
4487#include <$ac_header>
4488_ACEOF
4489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_c_preproc_warn_flag
4499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4500 else
4501 ac_cpp_err=
4502 fi
4503else
4504 ac_cpp_err=yes
4505fi
4506if test -z "$ac_cpp_err"; then
4507 ac_header_preproc=yes
4508else
4509 echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512 ac_header_preproc=no
4513fi
4514rm -f conftest.err conftest.$ac_ext
4515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4516echo "${ECHO_T}$ac_header_preproc" >&6
4517
4518# So? What about this header?
4519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4520 yes:no: )
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4525 ac_header_preproc=yes
4526 ;;
4527 no:yes:* )
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4540 (
4541 cat <<\_ASBOX
4542## -------------------------------------------------- ##
4543## Report this to courier-users@lists.sourceforge.net ##
4544## -------------------------------------------------- ##
4545_ASBOX
4546 ) |
4547 sed "s/^/$as_me: WARNING: /" >&2
4548 ;;
4549esac
4550echo "$as_me:$LINENO: checking for $ac_header" >&5
4551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4552if eval "test \"\${$as_ac_Header+set}\" = set"; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 eval "$as_ac_Header=\$ac_header_preproc"
4556fi
4557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4559
4560fi
4561if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<_ACEOF
4563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564_ACEOF
4565
4566fi
4567
4568done
4569
4570ac_ext=cc
4571ac_cpp='$CXXCPP $CPPFLAGS'
4572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575if test -n "$ac_tool_prefix"; then
4576 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4577 do
4578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4579set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4580echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582if test "${ac_cv_prog_CXX+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 if test -n "$CXX"; then
4586 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599done
4600done
4601
4602fi
4603fi
4604CXX=$ac_cv_prog_CXX
4605if test -n "$CXX"; then
4606 echo "$as_me:$LINENO: result: $CXX" >&5
4607echo "${ECHO_T}$CXX" >&6
4608else
4609 echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6
4611fi
4612
4613 test -n "$CXX" && break
4614 done
4615fi
4616if test -z "$CXX"; then
4617 ac_ct_CXX=$CXX
4618 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4619do
4620 # Extract the first word of "$ac_prog", so it can be a program name with args.
4621set dummy $ac_prog; ac_word=$2
4622echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627 if test -n "$ac_ct_CXX"; then
4628 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_prog_ac_ct_CXX="$ac_prog"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641done
4642done
4643
4644fi
4645fi
4646ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4647if test -n "$ac_ct_CXX"; then
4648 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4649echo "${ECHO_T}$ac_ct_CXX" >&6
4650else
4651 echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6
4653fi
4654
4655 test -n "$ac_ct_CXX" && break
4656done
4657test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4658
4659 CXX=$ac_ct_CXX
4660fi
4661
4662
4663# Provide some information about the compiler.
4664echo "$as_me:$LINENO:" \
4665 "checking for C++ compiler version" >&5
4666ac_compiler=`set X $ac_compile; echo $2`
4667{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4668 (eval $ac_compiler --version </dev/null >&5) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }
4672{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4673 (eval $ac_compiler -v </dev/null >&5) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }
4677{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4678 (eval $ac_compiler -V </dev/null >&5) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }
4682
4683echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4684echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4685if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688 cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
4694
4695int
4696main ()
4697{
4698#ifndef __GNUC__
4699 choke me
4700#endif
4701
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_cxx_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_compiler_gnu=yes
4729else
4730 echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733ac_compiler_gnu=no
4734fi
4735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4737
4738fi
4739echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4740echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4741GXX=`test $ac_compiler_gnu = yes && echo yes`
4742ac_test_CXXFLAGS=${CXXFLAGS+set}
4743ac_save_CXXFLAGS=$CXXFLAGS
4744CXXFLAGS="-g"
4745echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4746echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4747if test "${ac_cv_prog_cxx_g+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750 cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h. */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h. */
4756
4757int
4758main ()
4759{
4760
4761 ;
4762 return 0;
4763}
4764_ACEOF
4765rm -f conftest.$ac_objext
4766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_cxx_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_prog_cxx_g=yes
4788else
4789 echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792ac_cv_prog_cxx_g=no
4793fi
4794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795fi
4796echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4797echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4798if test "$ac_test_CXXFLAGS" = set; then
4799 CXXFLAGS=$ac_save_CXXFLAGS
4800elif test $ac_cv_prog_cxx_g = yes; then
4801 if test "$GXX" = yes; then
4802 CXXFLAGS="-g -O2"
4803 else
4804 CXXFLAGS="-g"
4805 fi
4806else
4807 if test "$GXX" = yes; then
4808 CXXFLAGS="-O2"
4809 else
4810 CXXFLAGS=
4811 fi
4812fi
4813for ac_declaration in \
4814 '' \
4815 'extern "C" void std::exit (int) throw (); using std::exit;' \
4816 'extern "C" void std::exit (int); using std::exit;' \
4817 'extern "C" void exit (int) throw ();' \
4818 'extern "C" void exit (int);' \
4819 'void exit (int);'
4820do
4821 cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827$ac_declaration
4828#include <stdlib.h>
4829int
4830main ()
4831{
4832exit (42);
4833 ;
4834 return 0;
4835}
4836_ACEOF
4837rm -f conftest.$ac_objext
4838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try='test -z "$ac_cxx_werror_flag"
4847 || test ! -s conftest.err'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; } &&
4853 { ac_try='test -s conftest.$ac_objext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 :
4860else
4861 echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864continue
4865fi
4866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4867 cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
4873$ac_declaration
4874int
4875main ()
4876{
4877exit (42);
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_cxx_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 break
4905else
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909fi
4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911done
4912rm -f conftest*
4913if test -n "$ac_declaration"; then
4914 echo '#ifdef __cplusplus' >>confdefs.h
4915 echo $ac_declaration >>confdefs.h
4916 echo '#endif' >>confdefs.h
4917fi
4918
4919ac_ext=cc
4920ac_cpp='$CXXCPP $CPPFLAGS'
4921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4924
4925depcc="$CXX" am_compiler_list=
4926
4927echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4928echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4929if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4933 # We make a subdir and do the tests there. Otherwise we can end up
4934 # making bogus files that we don't know about and never remove. For
4935 # instance it was reported that on HP-UX the gcc test will end up
4936 # making a dummy file named `D' -- because `-MD' means `put the output
4937 # in D'.
4938 mkdir conftest.dir
4939 # Copy depcomp to subdir because otherwise we won't find it if we're
4940 # using a relative directory.
4941 cp "$am_depcomp" conftest.dir
4942 cd conftest.dir
4943 # We will build objects and dependencies in a subdirectory because
4944 # it helps to detect inapplicable dependency modes. For instance
4945 # both Tru64's cc and ICC support -MD to output dependencies as a
4946 # side effect of compilation, but ICC will put the dependencies in
4947 # the current directory while Tru64 will put them in the object
4948 # directory.
4949 mkdir sub
4950
4951 am_cv_CXX_dependencies_compiler_type=none
4952 if test "$am_compiler_list" = ""; then
4953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4954 fi
4955 for depmode in $am_compiler_list; do
4956 # Setup a source with many dependencies, because some compilers
4957 # like to wrap large dependency lists on column 80 (with \), and
4958 # we should not choose a depcomp mode which is confused by this.
4959 #
4960 # We need to recreate these files for each test, as the compiler may
4961 # overwrite some of them when testing with obscure command lines.
4962 # This happens at least with the AIX C compiler.
4963 : > sub/conftest.c
4964 for i in 1 2 3 4 5 6; do
4965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4967 # Solaris 8's {/usr,}/bin/sh.
4968 touch sub/conftst$i.h
4969 done
4970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4971
4972 case $depmode in
4973 nosideeffect)
4974 # after this tag, mechanisms are not by side-effect, so they'll
4975 # only be used when explicitly requested
4976 if test "x$enable_dependency_tracking" = xyes; then
4977 continue
4978 else
4979 break
4980 fi
4981 ;;
4982 none) break ;;
4983 esac
4984 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4985 # mode. It turns out that the SunPro C++ compiler does not properly
4986 # handle `-M -o', and we need to detect this.
4987 if depmode=$depmode \
4988 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4989 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4990 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4991 >/dev/null 2>conftest.err &&
4992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4993 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4995 # icc doesn't choke on unknown options, it will just issue warnings
4996 # or remarks (even with -Werror). So we grep stderr for any message
4997 # that says an option was ignored or not supported.
4998 # When given -MP, icc 7.0 and 7.1 complain thusly:
4999 # icc: Command line warning: ignoring option '-M'; no argument required
5000 # The diagnosis changed in icc 8.0:
5001 # icc: Command line remark: option '-MP' not supported
5002 if (grep 'ignoring option' conftest.err ||
5003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5004 am_cv_CXX_dependencies_compiler_type=$depmode
5005 break
5006 fi
5007 fi
5008 done
5009
5010 cd ..
5011 rm -rf conftest.dir
5012else
5013 am_cv_CXX_dependencies_compiler_type=none
5014fi
5015
5016fi
5017echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5018echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5019CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5020
5021
5022
5023if
5024 test "x$enable_dependency_tracking" != xno \
5025 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5026 am__fastdepCXX_TRUE=
5027 am__fastdepCXX_FALSE='#'
5028else
5029 am__fastdepCXX_TRUE='#'
5030 am__fastdepCXX_FALSE=
5031fi
5032
5033
5034
5035
5036if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5037 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5038 (test "X$CXX" != "Xg++"))) ; then
5039 ac_ext=cc
5040ac_cpp='$CXXCPP $CPPFLAGS'
5041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5044echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5045echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5046if test -z "$CXXCPP"; then
5047 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049else
5050 # Double quotes because CXXCPP needs to be expanded
5051 for CXXCPP in "$CXX -E" "/lib/cpp"
5052 do
5053 ac_preproc_ok=false
5054for ac_cxx_preproc_warn_flag in '' yes
5055do
5056 # Use a header file that comes with gcc, so configuring glibc
5057 # with a fresh cross-compiler works.
5058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 # <limits.h> exists even on freestanding compilers.
5060 # On the NeXT, cc -E runs the code through the compiler's parser,
5061 # not just through cpp. "Syntax error" is here to catch this case.
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#ifdef __STDC__
5069# include <limits.h>
5070#else
5071# include <assert.h>
5072#endif
5073 Syntax error
5074_ACEOF
5075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_cxx_preproc_warn_flag
5085 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5086 else
5087 ac_cpp_err=
5088 fi
5089else
5090 ac_cpp_err=yes
5091fi
5092if test -z "$ac_cpp_err"; then
5093 :
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether non-existent headers
5104 # can be detected and how.
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <ac_nonexistent.h>
5112_ACEOF
5113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_cxx_preproc_warn_flag
5123 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5132continue
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # Passes both tests.
5138ac_preproc_ok=:
5139break
5140fi
5141rm -f conftest.err conftest.$ac_ext
5142
5143done
5144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145rm -f conftest.err conftest.$ac_ext
5146if $ac_preproc_ok; then
5147 break
5148fi
5149
5150 done
5151 ac_cv_prog_CXXCPP=$CXXCPP
5152
5153fi
5154 CXXCPP=$ac_cv_prog_CXXCPP
5155else
5156 ac_cv_prog_CXXCPP=$CXXCPP
5157fi
5158echo "$as_me:$LINENO: result: $CXXCPP" >&5
5159echo "${ECHO_T}$CXXCPP" >&6
5160ac_preproc_ok=false
5161for ac_cxx_preproc_warn_flag in '' yes
5162do
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#ifdef __STDC__
5176# include <limits.h>
5177#else
5178# include <assert.h>
5179#endif
5180 Syntax error
5181_ACEOF
5182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } >/dev/null; then
5190 if test -s conftest.err; then
5191 ac_cpp_err=$ac_cxx_preproc_warn_flag
5192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5193 else
5194 ac_cpp_err=
5195 fi
5196else
5197 ac_cpp_err=yes
5198fi
5199if test -z "$ac_cpp_err"; then
5200 :
5201else
5202 echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 # Broken: fails on valid input.
5206continue
5207fi
5208rm -f conftest.err conftest.$ac_ext
5209
5210 # OK, works on sane cases. Now check whether non-existent headers
5211 # can be detected and how.
5212 cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218#include <ac_nonexistent.h>
5219_ACEOF
5220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } >/dev/null; then
5228 if test -s conftest.err; then
5229 ac_cpp_err=$ac_cxx_preproc_warn_flag
5230 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5231 else
5232 ac_cpp_err=
5233 fi
5234else
5235 ac_cpp_err=yes
5236fi
5237if test -z "$ac_cpp_err"; then
5238 # Broken: success on invalid input.
5239continue
5240else
5241 echo "$as_me: failed program was:" >&5
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 # Passes both tests.
5245ac_preproc_ok=:
5246break
5247fi
5248rm -f conftest.err conftest.$ac_ext
5249
5250done
5251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5252rm -f conftest.err conftest.$ac_ext
5253if $ac_preproc_ok; then
5254 :
5255else
5256 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5257See \`config.log' for more details." >&5
5258echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5259See \`config.log' for more details." >&2;}
5260 { (exit 1); exit 1; }; }
5261fi
5262
5263ac_ext=cc
5264ac_cpp='$CXXCPP $CPPFLAGS'
5265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268
5269fi
5270
5271
5272ac_ext=f
5273ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5274ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5276if test -n "$ac_tool_prefix"; then
5277 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5278 do
5279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5281echo "$as_me:$LINENO: checking for $ac_word" >&5
5282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283if test "${ac_cv_prog_F77+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286 if test -n "$F77"; then
5287 ac_cv_prog_F77="$F77" # Let the user override the test.
5288else
5289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH
5291do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300done
5301done
5302
5303fi
5304fi
5305F77=$ac_cv_prog_F77
5306if test -n "$F77"; then
5307 echo "$as_me:$LINENO: result: $F77" >&5
5308echo "${ECHO_T}$F77" >&6
5309else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312fi
5313
5314 test -n "$F77" && break
5315 done
5316fi
5317if test -z "$F77"; then
5318 ac_ct_F77=$F77
5319 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5320do
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322set dummy $ac_prog; ac_word=$2
5323echo "$as_me:$LINENO: checking for $ac_word" >&5
5324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328 if test -n "$ac_ct_F77"; then
5329 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_F77="$ac_prog"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5341 fi
5342done
5343done
5344
5345fi
5346fi
5347ac_ct_F77=$ac_cv_prog_ac_ct_F77
5348if test -n "$ac_ct_F77"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5350echo "${ECHO_T}$ac_ct_F77" >&6
5351else
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354fi
5355
5356 test -n "$ac_ct_F77" && break
5357done
5358
5359 F77=$ac_ct_F77
5360fi
5361
5362
5363# Provide some information about the compiler.
5364echo "$as_me:5364:" \
5365 "checking for Fortran 77 compiler version" >&5
5366ac_compiler=`set X $ac_compile; echo $2`
5367{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5368 (eval $ac_compiler --version </dev/null >&5) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }
5372{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5373 (eval $ac_compiler -v </dev/null >&5) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }
5377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5378 (eval $ac_compiler -V </dev/null >&5) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }
5382rm -f a.out
5383
5384# If we don't use `.F' as extension, the preprocessor is not run on the
5385# input file. (Note that this only needs to work for GNU compilers.)
5386ac_save_ext=$ac_ext
5387ac_ext=F
5388echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5389echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5390if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393 cat >conftest.$ac_ext <<_ACEOF
5394 program main
5395#ifndef __GNUC__
5396 choke me
5397#endif
5398
5399 end
5400_ACEOF
5401rm -f conftest.$ac_objext
5402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_f77_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_compiler_gnu=yes
5424else
5425 echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428ac_compiler_gnu=no
5429fi
5430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5432
5433fi
5434echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5435echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5436ac_ext=$ac_save_ext
5437ac_test_FFLAGS=${FFLAGS+set}
5438ac_save_FFLAGS=$FFLAGS
5439FFLAGS=
5440echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5441echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5442if test "${ac_cv_prog_f77_g+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 FFLAGS=-g
5446cat >conftest.$ac_ext <<_ACEOF
5447 program main
5448
5449 end
5450_ACEOF
5451rm -f conftest.$ac_objext
5452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_f77_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_prog_f77_g=yes
5474else
5475 echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478ac_cv_prog_f77_g=no
5479fi
5480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481
5482fi
5483echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5484echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5485if test "$ac_test_FFLAGS" = set; then
5486 FFLAGS=$ac_save_FFLAGS
5487elif test $ac_cv_prog_f77_g = yes; then
5488 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5489 FFLAGS="-g -O2"
5490 else
5491 FFLAGS="-g"
5492 fi
5493else
5494 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5495 FFLAGS="-O2"
5496 else
5497 FFLAGS=
5498 fi
5499fi
5500
5501G77=`test $ac_compiler_gnu = yes && echo yes`
5502ac_ext=c
5503ac_cpp='$CPP $CPPFLAGS'
5504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507
5508
5509
5510# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5511
5512# find the maximum length of command line arguments
5513echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5514echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5515if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 i=0
5519 teststring="ABCD"
5520
5521 case $build_os in
5522 msdosdjgpp*)
5523 # On DJGPP, this test can blow up pretty badly due to problems in libc
5524 # (any single argument exceeding 2000 bytes causes a buffer overrun
5525 # during glob expansion). Even if it were fixed, the result of this
5526 # check would be larger than it should be.
5527 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5528 ;;
5529
5530 gnu*)
5531 # Under GNU Hurd, this test is not required because there is
5532 # no limit to the length of command line arguments.
5533 # Libtool will interpret -1 as no limit whatsoever
5534 lt_cv_sys_max_cmd_len=-1;
5535 ;;
5536
5537 cygwin* | mingw*)
5538 # On Win9x/ME, this test blows up -- it succeeds, but takes
5539 # about 5 minutes as the teststring grows exponentially.
5540 # Worse, since 9x/ME are not pre-emptively multitasking,
5541 # you end up with a "frozen" computer, even though with patience
5542 # the test eventually succeeds (with a max line length of 256k).
5543 # Instead, let's just punt: use the minimum linelength reported by
5544 # all of the supported platforms: 8192 (on NT/2K/XP).
5545 lt_cv_sys_max_cmd_len=8192;
5546 ;;
5547
5548 amigaos*)
5549 # On AmigaOS with pdksh, this test takes hours, literally.
5550 # So we just punt and use a minimum line length of 8192.
5551 lt_cv_sys_max_cmd_len=8192;
5552 ;;
5553
5554 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5555 # This has been around since 386BSD, at least. Likely further.
5556 if test -x /sbin/sysctl; then
5557 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5558 elif test -x /usr/sbin/sysctl; then
5559 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5560 else
5561 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5562 fi
5563 # And add a safety zone
5564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5566 ;;
5567
5568 interix*)
5569 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5570 lt_cv_sys_max_cmd_len=196608
5571 ;;
5572
5573 osf*)
5574 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5575 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5576 # nice to cause kernel panics so lets avoid the loop below.
5577 # First set a reasonable default.
5578 lt_cv_sys_max_cmd_len=16384
5579 #
5580 if test -x /sbin/sysconfig; then
5581 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5582 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5583 esac
5584 fi
5585 ;;
5586 sco3.2v5*)
5587 lt_cv_sys_max_cmd_len=102400
5588 ;;
5589 sysv5* | sco5v6* | sysv4.2uw2*)
5590 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5591 if test -n "$kargmax"; then
5592 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5593 else
5594 lt_cv_sys_max_cmd_len=32768
5595 fi
5596 ;;
5597 *)
5598 # If test is not a shell built-in, we'll probably end up computing a
5599 # maximum length that is only half of the actual maximum length, but
5600 # we can't tell.
5601 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5602 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5603 = "XX$teststring") >/dev/null 2>&1 &&
5604 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5605 lt_cv_sys_max_cmd_len=$new_result &&
5606 test $i != 17 # 1/2 MB should be enough
5607 do
5608 i=`expr $i + 1`
5609 teststring=$teststring$teststring
5610 done
5611 teststring=
5612 # Add a significant safety factor because C++ compilers can tack on massive
5613 # amounts of additional arguments before passing them to the linker.
5614 # It appears as though 1/2 is a usable value.
5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5616 ;;
5617 esac
5618
5619fi
5620
5621if test -n $lt_cv_sys_max_cmd_len ; then
5622 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5623echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5624else
5625 echo "$as_me:$LINENO: result: none" >&5
5626echo "${ECHO_T}none" >&6
5627fi
5628
5629
5630
5631
5632# Check for command to grab the raw symbol name followed by C symbol from nm.
5633echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5634echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5635if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638
5639# These are sane defaults that work on at least a few old systems.
5640# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5641
5642# Character class describing NM global symbol codes.
5643symcode='[BCDEGRST]'
5644
5645# Regexp to match symbols that can be accessed directly from C.
5646sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5647
5648# Transform an extracted symbol line into a proper C declaration
5649lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5650
5651# Transform an extracted symbol line into symbol name and symbol address
5652lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5653
5654# Define system-specific variables.
5655case $host_os in
5656aix*)
5657 symcode='[BCDT]'
5658 ;;
5659cygwin* | mingw* | pw32*)
5660 symcode='[ABCDGISTW]'
5661 ;;
5662hpux*) # Its linker distinguishes data from code symbols
5663 if test "$host_cpu" = ia64; then
5664 symcode='[ABCDEGRST]'
5665 fi
5666 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5667 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5668 ;;
5669linux*)
5670 if test "$host_cpu" = ia64; then
5671 symcode='[ABCDGIRSTW]'
5672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5673 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5674 fi
5675 ;;
5676irix* | nonstopux*)
5677 symcode='[BCDEGRST]'
5678 ;;
5679osf*)
5680 symcode='[BCDEGQRST]'
5681 ;;
5682solaris*)
5683 symcode='[BDRT]'
5684 ;;
5685sco3.2v5*)
5686 symcode='[DT]'
5687 ;;
5688sysv4.2uw2*)
5689 symcode='[DT]'
5690 ;;
5691sysv5* | sco5v6* | unixware* | OpenUNIX*)
5692 symcode='[ABDT]'
5693 ;;
5694sysv4)
5695 symcode='[DFNSTU]'
5696 ;;
5697esac
5698
5699# Handle CRLF in mingw tool chain
5700opt_cr=
5701case $build_os in
5702mingw*)
5703 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5704 ;;
5705esac
5706
5707# If we're using GNU nm, then use its standard symbol codes.
5708case `$NM -V 2>&1` in
5709*GNU* | *'with BFD'*)
5710 symcode='[ABCDGIRSTW]' ;;
5711esac
5712
5713# Try without a prefix undercore, then with it.
5714for ac_symprfx in "" "_"; do
5715
5716 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5717 symxfrm="\\1 $ac_symprfx\\2 \\2"
5718
5719 # Write the raw and C identifiers.
5720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5721
5722 # Check to see that the pipe works correctly.
5723 pipe_works=no
5724
5725 rm -f conftest*
5726 cat > conftest.$ac_ext <<EOF
5727#ifdef __cplusplus
5728extern "C" {
5729#endif
5730char nm_test_var;
5731void nm_test_func(){}
5732#ifdef __cplusplus
5733}
5734#endif
5735int main(){nm_test_var='a';nm_test_func();return(0);}
5736EOF
5737
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; then
5743 # Now try to grab the symbols.
5744 nlist=conftest.nm
5745 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5746 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && test -s "$nlist"; then
5750 # Try sorting and uniquifying the output.
5751 if sort "$nlist" | uniq > "$nlist"T; then
5752 mv -f "$nlist"T "$nlist"
5753 else
5754 rm -f "$nlist"T
5755 fi
5756
5757 # Make sure that we snagged all the symbols we need.
5758 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5759 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5760 cat <<EOF > conftest.$ac_ext
5761#ifdef __cplusplus
5762extern "C" {
5763#endif
5764
5765EOF
5766 # Now generate the symbol file.
5767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5768
5769 cat <<EOF >> conftest.$ac_ext
5770#if defined (__STDC__) && __STDC__
5771# define lt_ptr_t void *
5772#else
5773# define lt_ptr_t char *
5774# define const
5775#endif
5776
5777/* The mapping between symbol names and symbols. */
5778const struct {
5779 const char *name;
5780 lt_ptr_t address;
5781}
5782lt_preloaded_symbols[] =
5783{
5784EOF
5785 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5786 cat <<\EOF >> conftest.$ac_ext
5787 {0, (lt_ptr_t) 0}
5788};
5789
5790#ifdef __cplusplus
5791}
5792#endif
5793EOF
5794 # Now try linking the two files.
5795 mv conftest.$ac_objext conftstm.$ac_objext
5796 lt_save_LIBS="$LIBS"
5797 lt_save_CFLAGS="$CFLAGS"
5798 LIBS="conftstm.$ac_objext"
5799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5805 pipe_works=yes
5806 fi
5807 LIBS="$lt_save_LIBS"
5808 CFLAGS="$lt_save_CFLAGS"
5809 else
5810 echo "cannot find nm_test_func in $nlist" >&5
5811 fi
5812 else
5813 echo "cannot find nm_test_var in $nlist" >&5
5814 fi
5815 else
5816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5817 fi
5818 else
5819 echo "$progname: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5821 fi
5822 rm -f conftest* conftst*
5823
5824 # Do not use the global_symbol_pipe unless it works.
5825 if test "$pipe_works" = yes; then
5826 break
5827 else
5828 lt_cv_sys_global_symbol_pipe=
5829 fi
5830done
5831
5832fi
5833
5834if test -z "$lt_cv_sys_global_symbol_pipe"; then
5835 lt_cv_sys_global_symbol_to_cdecl=
5836fi
5837if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5838 echo "$as_me:$LINENO: result: failed" >&5
5839echo "${ECHO_T}failed" >&6
5840else
5841 echo "$as_me:$LINENO: result: ok" >&5
5842echo "${ECHO_T}ok" >&6
5843fi
5844
5845echo "$as_me:$LINENO: checking for objdir" >&5
5846echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5847if test "${lt_cv_objdir+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850 rm -f .libs 2>/dev/null
5851mkdir .libs 2>/dev/null
5852if test -d .libs; then
5853 lt_cv_objdir=.libs
5854else
5855 # MS-DOS does not allow filenames that begin with a dot.
5856 lt_cv_objdir=_libs
5857fi
5858rmdir .libs 2>/dev/null
5859fi
5860echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5861echo "${ECHO_T}$lt_cv_objdir" >&6
5862objdir=$lt_cv_objdir
5863
5864
5865
5866
5867
5868case $host_os in
5869aix3*)
5870 # AIX sometimes has problems with the GCC collect2 program. For some
5871 # reason, if we set the COLLECT_NAMES environment variable, the problems
5872 # vanish in a puff of smoke.
5873 if test "X${COLLECT_NAMES+set}" != Xset; then
5874 COLLECT_NAMES=
5875 export COLLECT_NAMES
5876 fi
5877 ;;
5878esac
5879
5880# Sed substitution that helps us do robust quoting. It backslashifies
5881# metacharacters that are still active within double-quoted strings.
5882Xsed='sed -e 1s/^X//'
5883sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5884
5885# Same as above, but do not quote variable references.
5886double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5887
5888# Sed substitution to delay expansion of an escaped shell variable in a
5889# double_quote_subst'ed string.
5890delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5891
5892# Sed substitution to avoid accidental globbing in evaled expressions
5893no_glob_subst='s/\*/\\\*/g'
5894
5895# Constants:
5896rm="rm -f"
5897
5898# Global variables:
5899default_ofile=libtool
5900can_build_shared=yes
5901
5902# All known linkers require a `.a' archive for static linking (except MSVC,
5903# which needs '.lib').
5904libext=a
5905ltmain="$ac_aux_dir/ltmain.sh"
5906ofile="$default_ofile"
5907with_gnu_ld="$lt_cv_prog_gnu_ld"
5908
5909if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5911set dummy ${ac_tool_prefix}ar; ac_word=$2
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914if test "${ac_cv_prog_AR+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 if test -n "$AR"; then
5918 ac_cv_prog_AR="$AR" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_AR="${ac_tool_prefix}ar"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932done
5933
5934fi
5935fi
5936AR=$ac_cv_prog_AR
5937if test -n "$AR"; then
5938 echo "$as_me:$LINENO: result: $AR" >&5
5939echo "${ECHO_T}$AR" >&6
5940else
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943fi
5944
5945fi
5946if test -z "$ac_cv_prog_AR"; then
5947 ac_ct_AR=$AR
5948 # Extract the first word of "ar", so it can be a program name with args.
5949set dummy ar; ac_word=$2
5950echo "$as_me:$LINENO: checking for $ac_word" >&5
5951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5952if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954else
5955 if test -n "$ac_ct_AR"; then
5956 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_ac_ct_AR="ar"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969done
5970done
5971
5972 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5973fi
5974fi
5975ac_ct_AR=$ac_cv_prog_ac_ct_AR
5976if test -n "$ac_ct_AR"; then
5977 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5978echo "${ECHO_T}$ac_ct_AR" >&6
5979else
5980 echo "$as_me:$LINENO: result: no" >&5
5981echo "${ECHO_T}no" >&6
5982fi
5983
5984 AR=$ac_ct_AR
5985else
5986 AR="$ac_cv_prog_AR"
5987fi
5988
5989if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5992echo "$as_me:$LINENO: checking for $ac_word" >&5
5993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994if test "${ac_cv_prog_RANLIB+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997 if test -n "$RANLIB"; then
5998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011done
6012done
6013
6014fi
6015fi
6016RANLIB=$ac_cv_prog_RANLIB
6017if test -n "$RANLIB"; then
6018 echo "$as_me:$LINENO: result: $RANLIB" >&5
6019echo "${ECHO_T}$RANLIB" >&6
6020else
6021 echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6
6023fi
6024
6025fi
6026if test -z "$ac_cv_prog_RANLIB"; then
6027 ac_ct_RANLIB=$RANLIB
6028 # Extract the first word of "ranlib", so it can be a program name with args.
6029set dummy ranlib; ac_word=$2
6030echo "$as_me:$LINENO: checking for $ac_word" >&5
6031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034else
6035 if test -n "$ac_ct_RANLIB"; then
6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_ac_ct_RANLIB="ranlib"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050done
6051
6052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6053fi
6054fi
6055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6056if test -n "$ac_ct_RANLIB"; then
6057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6058echo "${ECHO_T}$ac_ct_RANLIB" >&6
6059else
6060 echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6
6062fi
6063
6064 RANLIB=$ac_ct_RANLIB
6065else
6066 RANLIB="$ac_cv_prog_RANLIB"
6067fi
6068
6069if test -n "$ac_tool_prefix"; then
6070 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6071set dummy ${ac_tool_prefix}strip; ac_word=$2
6072echo "$as_me:$LINENO: checking for $ac_word" >&5
6073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074if test "${ac_cv_prog_STRIP+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077 if test -n "$STRIP"; then
6078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091done
6092done
6093
6094fi
6095fi
6096STRIP=$ac_cv_prog_STRIP
6097if test -n "$STRIP"; then
6098 echo "$as_me:$LINENO: result: $STRIP" >&5
6099echo "${ECHO_T}$STRIP" >&6
6100else
6101 echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6
6103fi
6104
6105fi
6106if test -z "$ac_cv_prog_STRIP"; then
6107 ac_ct_STRIP=$STRIP
6108 # Extract the first word of "strip", so it can be a program name with args.
6109set dummy strip; ac_word=$2
6110echo "$as_me:$LINENO: checking for $ac_word" >&5
6111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6112if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 if test -n "$ac_ct_STRIP"; then
6116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_ac_ct_STRIP="strip"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129done
6130done
6131
6132 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6133fi
6134fi
6135ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6136if test -n "$ac_ct_STRIP"; then
6137 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6138echo "${ECHO_T}$ac_ct_STRIP" >&6
6139else
6140 echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
6142fi
6143
6144 STRIP=$ac_ct_STRIP
6145else
6146 STRIP="$ac_cv_prog_STRIP"
6147fi
6148
6149
6150old_CC="$CC"
6151old_CFLAGS="$CFLAGS"
6152
6153# Set sane defaults for various variables
6154test -z "$AR" && AR=ar
6155test -z "$AR_FLAGS" && AR_FLAGS=cru
6156test -z "$AS" && AS=as
6157test -z "$CC" && CC=cc
6158test -z "$LTCC" && LTCC=$CC
6159test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6160test -z "$DLLTOOL" && DLLTOOL=dlltool
6161test -z "$LD" && LD=ld
6162test -z "$LN_S" && LN_S="ln -s"
6163test -z "$MAGIC_CMD" && MAGIC_CMD=file
6164test -z "$NM" && NM=nm
6165test -z "$SED" && SED=sed
6166test -z "$OBJDUMP" && OBJDUMP=objdump
6167test -z "$RANLIB" && RANLIB=:
6168test -z "$STRIP" && STRIP=:
6169test -z "$ac_objext" && ac_objext=o
6170
6171# Determine commands to create old-style static archives.
6172old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6173old_postinstall_cmds='chmod 644 $oldlib'
6174old_postuninstall_cmds=
6175
6176if test -n "$RANLIB"; then
6177 case $host_os in
6178 openbsd*)
6179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6180 ;;
6181 *)
6182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6183 ;;
6184 esac
6185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6186fi
6187
6188for cc_temp in $compiler""; do
6189 case $cc_temp in
6190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6192 \-*) ;;
6193 *) break;;
6194 esac
6195done
6196cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6197
6198
6199# Only perform the check for file, if the check method requires it
6200case $deplibs_check_method in
6201file_magic*)
6202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6203 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6204echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6205if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207else
6208 case $MAGIC_CMD in
6209[\\/*] | ?:[\\/]*)
6210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6211 ;;
6212*)
6213 lt_save_MAGIC_CMD="$MAGIC_CMD"
6214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6216 for ac_dir in $ac_dummy; do
6217 IFS="$lt_save_ifs"
6218 test -z "$ac_dir" && ac_dir=.
6219 if test -f $ac_dir/${ac_tool_prefix}file; then
6220 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6221 if test -n "$file_magic_test_file"; then
6222 case $deplibs_check_method in
6223 "file_magic "*)
6224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6227 $EGREP "$file_magic_regex" > /dev/null; then
6228 :
6229 else
6230 cat <<EOF 1>&2
6231
6232*** Warning: the command libtool uses to detect shared libraries,
6233*** $file_magic_cmd, produces output that libtool cannot recognize.
6234*** The result is that libtool may fail to recognize shared libraries
6235*** as such. This will affect the creation of libtool libraries that
6236*** depend on shared libraries, but programs linked with such libtool
6237*** libraries will work regardless of this problem. Nevertheless, you
6238*** may want to report the problem to your system manager and/or to
6239*** bug-libtool@gnu.org
6240
6241EOF
6242 fi ;;
6243 esac
6244 fi
6245 break
6246 fi
6247 done
6248 IFS="$lt_save_ifs"
6249 MAGIC_CMD="$lt_save_MAGIC_CMD"
6250 ;;
6251esac
6252fi
6253
6254MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6255if test -n "$MAGIC_CMD"; then
6256 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6257echo "${ECHO_T}$MAGIC_CMD" >&6
6258else
6259 echo "$as_me:$LINENO: result: no" >&5
6260echo "${ECHO_T}no" >&6
6261fi
6262
6263if test -z "$lt_cv_path_MAGIC_CMD"; then
6264 if test -n "$ac_tool_prefix"; then
6265 echo "$as_me:$LINENO: checking for file" >&5
6266echo $ECHO_N "checking for file... $ECHO_C" >&6
6267if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270 case $MAGIC_CMD in
6271[\\/*] | ?:[\\/]*)
6272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6273 ;;
6274*)
6275 lt_save_MAGIC_CMD="$MAGIC_CMD"
6276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6278 for ac_dir in $ac_dummy; do
6279 IFS="$lt_save_ifs"
6280 test -z "$ac_dir" && ac_dir=.
6281 if test -f $ac_dir/file; then
6282 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6283 if test -n "$file_magic_test_file"; then
6284 case $deplibs_check_method in
6285 "file_magic "*)
6286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6289 $EGREP "$file_magic_regex" > /dev/null; then
6290 :
6291 else
6292 cat <<EOF 1>&2
6293
6294*** Warning: the command libtool uses to detect shared libraries,
6295*** $file_magic_cmd, produces output that libtool cannot recognize.
6296*** The result is that libtool may fail to recognize shared libraries
6297*** as such. This will affect the creation of libtool libraries that
6298*** depend on shared libraries, but programs linked with such libtool
6299*** libraries will work regardless of this problem. Nevertheless, you
6300*** may want to report the problem to your system manager and/or to
6301*** bug-libtool@gnu.org
6302
6303EOF
6304 fi ;;
6305 esac
6306 fi
6307 break
6308 fi
6309 done
6310 IFS="$lt_save_ifs"
6311 MAGIC_CMD="$lt_save_MAGIC_CMD"
6312 ;;
6313esac
6314fi
6315
6316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6317if test -n "$MAGIC_CMD"; then
6318 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6319echo "${ECHO_T}$MAGIC_CMD" >&6
6320else
6321 echo "$as_me:$LINENO: result: no" >&5
6322echo "${ECHO_T}no" >&6
6323fi
6324
6325 else
6326 MAGIC_CMD=:
6327 fi
6328fi
6329
6330 fi
6331 ;;
6332esac
6333
6334enable_dlopen=no
6335enable_win32_dll=no
6336
6337# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6338if test "${enable_libtool_lock+set}" = set; then
6339 enableval="$enable_libtool_lock"
6340
6341fi;
6342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6343
6344
6345# Check whether --with-pic or --without-pic was given.
6346if test "${with_pic+set}" = set; then
6347 withval="$with_pic"
6348 pic_mode="$withval"
6349else
6350 pic_mode=default
6351fi;
6352test -z "$pic_mode" && pic_mode=default
6353
6354# Use C for the default configuration in the libtool script
6355tagname=
6356lt_save_CC="$CC"
6357ac_ext=c
6358ac_cpp='$CPP $CPPFLAGS'
6359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361ac_compiler_gnu=$ac_cv_c_compiler_gnu
6362
6363
6364# Source file extension for C test sources.
6365ac_ext=c
6366
6367# Object file extension for compiled C test sources.
6368objext=o
6369objext=$objext
6370
6371# Code to be used in simple compile tests
6372lt_simple_compile_test_code="int some_variable = 0;\n"
6373
6374# Code to be used in simple link tests
6375lt_simple_link_test_code='int main(){return(0);}\n'
6376
6377
6378# If no C compiler was specified, use CC.
6379LTCC=${LTCC-"$CC"}
6380
6381# If no C compiler flags were specified, use CFLAGS.
6382LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6383
6384# Allow CC to be a program name with arguments.
6385compiler=$CC
6386
6387
6388# save warnings/boilerplate of simple test code
6389ac_outfile=conftest.$ac_objext
6390printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6391eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6392_lt_compiler_boilerplate=`cat conftest.err`
6393$rm conftest*
6394
6395ac_outfile=conftest.$ac_objext
6396printf "$lt_simple_link_test_code" >conftest.$ac_ext
6397eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6398_lt_linker_boilerplate=`cat conftest.err`
6399$rm conftest*
6400
6401
6402
6403lt_prog_compiler_no_builtin_flag=
6404
6405if test "$GCC" = yes; then
6406 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6407
6408
6409echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6410echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6411if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414 lt_cv_prog_compiler_rtti_exceptions=no
6415 ac_outfile=conftest.$ac_objext
6416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6417 lt_compiler_flag="-fno-rtti -fno-exceptions"
6418 # Insert the option either (1) after the last *FLAGS variable, or
6419 # (2) before a word containing "conftest.", or (3) at the end.
6420 # Note that $ac_compile itself does not contain backslashes and begins
6421 # with a dollar sign (not a hyphen), so the echo should work correctly.
6422 # The option is referenced via a variable to avoid confusing sed.
6423 lt_compile=`echo "$ac_compile" | $SED \
6424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6426 -e 's:$: $lt_compiler_flag:'`
6427 (eval echo "\"\$as_me:6427: $lt_compile\"" >&5)
6428 (eval "$lt_compile" 2>conftest.err)
6429 ac_status=$?
6430 cat conftest.err >&5
6431 echo "$as_me:6431: \$? = $ac_status" >&5
6432 if (exit $ac_status) && test -s "$ac_outfile"; then
6433 # The compiler can only warn and ignore the option if not recognized
6434 # So say no if there are warnings other than the usual output.
6435 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6438 lt_cv_prog_compiler_rtti_exceptions=yes
6439 fi
6440 fi
6441 $rm conftest*
6442
6443fi
6444echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6445echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6446
6447if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6449else
6450 :
6451fi
6452
6453fi
6454
6455lt_prog_compiler_wl=
6456lt_prog_compiler_pic=
6457lt_prog_compiler_static=
6458
6459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6461
6462 if test "$GCC" = yes; then
6463 lt_prog_compiler_wl='-Wl,'
6464 lt_prog_compiler_static='-static'
6465
6466 case $host_os in
6467 aix*)
6468 # All AIX code is PIC.
6469 if test "$host_cpu" = ia64; then
6470 # AIX 5 now supports IA64 processor
6471 lt_prog_compiler_static='-Bstatic'
6472 fi
6473 ;;
6474
6475 amigaos*)
6476 # FIXME: we need at least 68020 code to build shared libraries, but
6477 # adding the `-m68020' flag to GCC prevents building anything better,
6478 # like `-m68040'.
6479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6480 ;;
6481
6482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6483 # PIC is the default for these OSes.
6484 ;;
6485
6486 mingw* | pw32* | os2*)
6487 # This hack is so that the source file can tell whether it is being
6488 # built for inclusion in a dll (and should export symbols for example).
6489 lt_prog_compiler_pic='-DDLL_EXPORT'
6490 ;;
6491
6492 darwin* | rhapsody*)
6493 # PIC is the default on this platform
6494 # Common symbols not allowed in MH_DYLIB files
6495 lt_prog_compiler_pic='-fno-common'
6496 ;;
6497
6498 interix3*)
6499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6500 # Instead, we relocate shared libraries at runtime.
6501 ;;
6502
6503 msdosdjgpp*)
6504 # Just because we use GCC doesn't mean we suddenly get shared libraries
6505 # on systems that don't support them.
6506 lt_prog_compiler_can_build_shared=no
6507 enable_shared=no
6508 ;;
6509
6510 sysv4*MP*)
6511 if test -d /usr/nec; then
6512 lt_prog_compiler_pic=-Kconform_pic
6513 fi
6514 ;;
6515
6516 hpux*)
6517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6518 # not for PA HP-UX.
6519 case $host_cpu in
6520 hppa*64*|ia64*)
6521 # +Z the default
6522 ;;
6523 *)
6524 lt_prog_compiler_pic='-fPIC'
6525 ;;
6526 esac
6527 ;;
6528
6529 *)
6530 lt_prog_compiler_pic='-fPIC'
6531 ;;
6532 esac
6533 else
6534 # PORTME Check for flag to pass linker flags through the system compiler.
6535 case $host_os in
6536 aix*)
6537 lt_prog_compiler_wl='-Wl,'
6538 if test "$host_cpu" = ia64; then
6539 # AIX 5 now supports IA64 processor
6540 lt_prog_compiler_static='-Bstatic'
6541 else
6542 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6543 fi
6544 ;;
6545 darwin*)
6546 # PIC is the default on this platform
6547 # Common symbols not allowed in MH_DYLIB files
6548 case $cc_basename in
6549 xlc*)
6550 lt_prog_compiler_pic='-qnocommon'
6551 lt_prog_compiler_wl='-Wl,'
6552 ;;
6553 esac
6554 ;;
6555
6556 mingw* | pw32* | os2*)
6557 # This hack is so that the source file can tell whether it is being
6558 # built for inclusion in a dll (and should export symbols for example).
6559 lt_prog_compiler_pic='-DDLL_EXPORT'
6560 ;;
6561
6562 hpux9* | hpux10* | hpux11*)
6563 lt_prog_compiler_wl='-Wl,'
6564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6565 # not for PA HP-UX.
6566 case $host_cpu in
6567 hppa*64*|ia64*)
6568 # +Z the default
6569 ;;
6570 *)
6571 lt_prog_compiler_pic='+Z'
6572 ;;
6573 esac
6574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6575 lt_prog_compiler_static='${wl}-a ${wl}archive'
6576 ;;
6577
6578 irix5* | irix6* | nonstopux*)
6579 lt_prog_compiler_wl='-Wl,'
6580 # PIC (with -KPIC) is the default.
6581 lt_prog_compiler_static='-non_shared'
6582 ;;
6583
6584 newsos6)
6585 lt_prog_compiler_pic='-KPIC'
6586 lt_prog_compiler_static='-Bstatic'
6587 ;;
6588
6589 linux*)
6590 case $cc_basename in
6591 icc* | ecc*)
6592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_pic='-KPIC'
6594 lt_prog_compiler_static='-static'
6595 ;;
6596 pgcc* | pgf77* | pgf90* | pgf95*)
6597 # Portland Group compilers (*not* the Pentium gcc compiler,
6598 # which looks to be a dead project)
6599 lt_prog_compiler_wl='-Wl,'
6600 lt_prog_compiler_pic='-fpic'
6601 lt_prog_compiler_static='-Bstatic'
6602 ;;
6603 ccc*)
6604 lt_prog_compiler_wl='-Wl,'
6605 # All Alpha code is PIC.
6606 lt_prog_compiler_static='-non_shared'
6607 ;;
6608 esac
6609 ;;
6610
6611 osf3* | osf4* | osf5*)
6612 lt_prog_compiler_wl='-Wl,'
6613 # All OSF/1 code is PIC.
6614 lt_prog_compiler_static='-non_shared'
6615 ;;
6616
6617 solaris*)
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6620 case $cc_basename in
6621 f77* | f90* | f95*)
6622 lt_prog_compiler_wl='-Qoption ld ';;
6623 *)
6624 lt_prog_compiler_wl='-Wl,';;
6625 esac
6626 ;;
6627
6628 sunos4*)
6629 lt_prog_compiler_wl='-Qoption ld '
6630 lt_prog_compiler_pic='-PIC'
6631 lt_prog_compiler_static='-Bstatic'
6632 ;;
6633
6634 sysv4 | sysv4.2uw2* | sysv4.3*)
6635 lt_prog_compiler_wl='-Wl,'
6636 lt_prog_compiler_pic='-KPIC'
6637 lt_prog_compiler_static='-Bstatic'
6638 ;;
6639
6640 sysv4*MP*)
6641 if test -d /usr/nec ;then
6642 lt_prog_compiler_pic='-Kconform_pic'
6643 lt_prog_compiler_static='-Bstatic'
6644 fi
6645 ;;
6646
6647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6648 lt_prog_compiler_wl='-Wl,'
6649 lt_prog_compiler_pic='-KPIC'
6650 lt_prog_compiler_static='-Bstatic'
6651 ;;
6652
6653 unicos*)
6654 lt_prog_compiler_wl='-Wl,'
6655 lt_prog_compiler_can_build_shared=no
6656 ;;
6657
6658 uts4*)
6659 lt_prog_compiler_pic='-pic'
6660 lt_prog_compiler_static='-Bstatic'
6661 ;;
6662
6663 *)
6664 lt_prog_compiler_can_build_shared=no
6665 ;;
6666 esac
6667 fi
6668
6669echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6670echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6671
6672#
6673# Check to make sure the PIC flag actually works.
6674#
6675if test -n "$lt_prog_compiler_pic"; then
6676
6677echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6678echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6679if test "${lt_prog_compiler_pic_works+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
6682 lt_prog_compiler_pic_works=no
6683 ac_outfile=conftest.$ac_objext
6684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6685 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6686 # Insert the option either (1) after the last *FLAGS variable, or
6687 # (2) before a word containing "conftest.", or (3) at the end.
6688 # Note that $ac_compile itself does not contain backslashes and begins
6689 # with a dollar sign (not a hyphen), so the echo should work correctly.
6690 # The option is referenced via a variable to avoid confusing sed.
6691 lt_compile=`echo "$ac_compile" | $SED \
6692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6694 -e 's:$: $lt_compiler_flag:'`
6695 (eval echo "\"\$as_me:6695: $lt_compile\"" >&5)
6696 (eval "$lt_compile" 2>conftest.err)
6697 ac_status=$?
6698 cat conftest.err >&5
6699 echo "$as_me:6699: \$? = $ac_status" >&5
6700 if (exit $ac_status) && test -s "$ac_outfile"; then
6701 # The compiler can only warn and ignore the option if not recognized
6702 # So say no if there are warnings other than the usual output.
6703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6706 lt_prog_compiler_pic_works=yes
6707 fi
6708 fi
6709 $rm conftest*
6710
6711fi
6712echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6713echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6714
6715if test x"$lt_prog_compiler_pic_works" = xyes; then
6716 case $lt_prog_compiler_pic in
6717 "" | " "*) ;;
6718 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6719 esac
6720else
6721 lt_prog_compiler_pic=
6722 lt_prog_compiler_can_build_shared=no
6723fi
6724
6725fi
6726case $host_os in
6727 # For platforms which do not support PIC, -DPIC is meaningless:
6728 *djgpp*)
6729 lt_prog_compiler_pic=
6730 ;;
6731 *)
6732 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6733 ;;
6734esac
6735
6736#
6737# Check to make sure the static flag actually works.
6738#
6739wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6740echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6741echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6742if test "${lt_prog_compiler_static_works+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745 lt_prog_compiler_static_works=no
6746 save_LDFLAGS="$LDFLAGS"
6747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6748 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6750 # The linker can only warn and ignore the option if not recognized
6751 # So say no if there are warnings
6752 if test -s conftest.err; then
6753 # Append any errors to the config.log.
6754 cat conftest.err 1>&5
6755 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6757 if diff conftest.exp conftest.er2 >/dev/null; then
6758 lt_prog_compiler_static_works=yes
6759 fi
6760 else
6761 lt_prog_compiler_static_works=yes
6762 fi
6763 fi
6764 $rm conftest*
6765 LDFLAGS="$save_LDFLAGS"
6766
6767fi
6768echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6769echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6770
6771if test x"$lt_prog_compiler_static_works" = xyes; then
6772 :
6773else
6774 lt_prog_compiler_static=
6775fi
6776
6777
6778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6780if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 lt_cv_prog_compiler_c_o=no
6784 $rm -r conftest 2>/dev/null
6785 mkdir conftest
6786 cd conftest
6787 mkdir out
6788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6789
6790 lt_compiler_flag="-o out/conftest2.$ac_objext"
6791 # Insert the option either (1) after the last *FLAGS variable, or
6792 # (2) before a word containing "conftest.", or (3) at the end.
6793 # Note that $ac_compile itself does not contain backslashes and begins
6794 # with a dollar sign (not a hyphen), so the echo should work correctly.
6795 lt_compile=`echo "$ac_compile" | $SED \
6796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6798 -e 's:$: $lt_compiler_flag:'`
6799 (eval echo "\"\$as_me:6799: $lt_compile\"" >&5)
6800 (eval "$lt_compile" 2>out/conftest.err)
6801 ac_status=$?
6802 cat out/conftest.err >&5
6803 echo "$as_me:6803: \$? = $ac_status" >&5
6804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6805 then
6806 # The compiler can only warn and ignore the option if not recognized
6807 # So say no if there are warnings
6808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6811 lt_cv_prog_compiler_c_o=yes
6812 fi
6813 fi
6814 chmod u+w . 2>&5
6815 $rm conftest*
6816 # SGI C++ compiler will create directory out/ii_files/ for
6817 # template instantiation
6818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6819 $rm out/* && rmdir out
6820 cd ..
6821 rmdir conftest
6822 $rm conftest*
6823
6824fi
6825echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6826echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6827
6828
6829hard_links="nottested"
6830if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6831 # do not overwrite the value of need_locks provided by the user
6832 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6833echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6834 hard_links=yes
6835 $rm conftest*
6836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6837 touch conftest.a
6838 ln conftest.a conftest.b 2>&5 || hard_links=no
6839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6840 echo "$as_me:$LINENO: result: $hard_links" >&5
6841echo "${ECHO_T}$hard_links" >&6
6842 if test "$hard_links" = no; then
6843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6844echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6845 need_locks=warn
6846 fi
6847else
6848 need_locks=no
6849fi
6850
6851echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6852echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6853
6854 runpath_var=
6855 allow_undefined_flag=
6856 enable_shared_with_static_runtimes=no
6857 archive_cmds=
6858 archive_expsym_cmds=
6859 old_archive_From_new_cmds=
6860 old_archive_from_expsyms_cmds=
6861 export_dynamic_flag_spec=
6862 whole_archive_flag_spec=
6863 thread_safe_flag_spec=
6864 hardcode_libdir_flag_spec=
6865 hardcode_libdir_flag_spec_ld=
6866 hardcode_libdir_separator=
6867 hardcode_direct=no
6868 hardcode_minus_L=no
6869 hardcode_shlibpath_var=unsupported
6870 link_all_deplibs=unknown
6871 hardcode_automatic=no
6872 module_cmds=
6873 module_expsym_cmds=
6874 always_export_symbols=no
6875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6876 # include_expsyms should be a list of space-separated symbols to be *always*
6877 # included in the symbol list
6878 include_expsyms=
6879 # exclude_expsyms can be an extended regexp of symbols to exclude
6880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6882 # as well as any symbol that contains `d'.
6883 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6885 # platforms (ab)use it in PIC code, but their linkers get confused if
6886 # the symbol is explicitly referenced. Since portable code cannot
6887 # rely on this symbol name, it's probably fine to never include it in
6888 # preloaded symbol tables.
6889 extract_expsyms_cmds=
6890 # Just being paranoid about ensuring that cc_basename is set.
6891 for cc_temp in $compiler""; do
6892 case $cc_temp in
6893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6895 \-*) ;;
6896 *) break;;
6897 esac
6898done
6899cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6900
6901 case $host_os in
6902 cygwin* | mingw* | pw32*)
6903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6904 # When not using gcc, we currently assume that we are using
6905 # Microsoft Visual C++.
6906 if test "$GCC" != yes; then
6907 with_gnu_ld=no
6908 fi
6909 ;;
6910 interix*)
6911 # we just hope/assume this is gcc and not c89 (= MSVC++)
6912 with_gnu_ld=yes
6913 ;;
6914 openbsd*)
6915 with_gnu_ld=no
6916 ;;
6917 esac
6918
6919 ld_shlibs=yes
6920 if test "$with_gnu_ld" = yes; then
6921 # If archive_cmds runs LD, not CC, wlarc should be empty
6922 wlarc='${wl}'
6923
6924 # Set some defaults for GNU ld with shared library support. These
6925 # are reset later if shared libraries are not supported. Putting them
6926 # here allows them to be overridden if necessary.
6927 runpath_var=LD_RUN_PATH
6928 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6929 export_dynamic_flag_spec='${wl}--export-dynamic'
6930 # ancient GNU ld didn't support --whole-archive et. al.
6931 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6932 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6933 else
6934 whole_archive_flag_spec=
6935 fi
6936 supports_anon_versioning=no
6937 case `$LD -v 2>/dev/null` in
6938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6941 *\ 2.11.*) ;; # other 2.11 versions
6942 *) supports_anon_versioning=yes ;;
6943 esac
6944
6945 # See if GNU ld supports shared libraries.
6946 case $host_os in
6947 aix3* | aix4* | aix5*)
6948 # On AIX/PPC, the GNU linker is very broken
6949 if test "$host_cpu" != ia64; then
6950 ld_shlibs=no
6951 cat <<EOF 1>&2
6952
6953*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6954*** to be unable to reliably create shared libraries on AIX.
6955*** Therefore, libtool is disabling shared libraries support. If you
6956*** really care for shared libraries, you may want to modify your PATH
6957*** so that a non-GNU linker is found, and then restart.
6958
6959EOF
6960 fi
6961 ;;
6962
6963 amigaos*)
6964 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)'
6965 hardcode_libdir_flag_spec='-L$libdir'
6966 hardcode_minus_L=yes
6967
6968 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6969 # that the semantics of dynamic libraries on AmigaOS, at least up
6970 # to version 4, is to share data among multiple programs linked
6971 # with the same dynamic library. Since this doesn't match the
6972 # behavior of shared libraries on other platforms, we can't use
6973 # them.
6974 ld_shlibs=no
6975 ;;
6976
6977 beos*)
6978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6979 allow_undefined_flag=unsupported
6980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6981 # support --undefined. This deserves some investigation. FIXME
6982 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983 else
6984 ld_shlibs=no
6985 fi
6986 ;;
6987
6988 cygwin* | mingw* | pw32*)
6989 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6990 # as there is no search path for DLLs.
6991 hardcode_libdir_flag_spec='-L$libdir'
6992 allow_undefined_flag=unsupported
6993 always_export_symbols=no
6994 enable_shared_with_static_runtimes=yes
6995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6996
6997 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6999 # If the export-symbols file already is a .def file (1st line
7000 # is EXPORTS), use it as is; otherwise, prepend...
7001 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7002 cp $export_symbols $output_objdir/$soname.def;
7003 else
7004 echo EXPORTS > $output_objdir/$soname.def;
7005 cat $export_symbols >> $output_objdir/$soname.def;
7006 fi~
7007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7008 else
7009 ld_shlibs=no
7010 fi
7011 ;;
7012
7013 interix3*)
7014 hardcode_direct=no
7015 hardcode_shlibpath_var=no
7016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7017 export_dynamic_flag_spec='${wl}-E'
7018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7019 # Instead, shared libraries are loaded at an image base (0x10000000 by
7020 # default) and relocated if they conflict, which is a slow very memory
7021 # consuming and fragmenting process. To avoid this, we pick a random,
7022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7025 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'
7026 ;;
7027
7028 linux*)
7029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7030 tmp_addflag=
7031 case $cc_basename,$host_cpu in
7032 pgcc*) # Portland Group C compiler
7033 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'
7034 tmp_addflag=' $pic_flag'
7035 ;;
7036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7037 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'
7038 tmp_addflag=' $pic_flag -Mnomain' ;;
7039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7040 tmp_addflag=' -i_dynamic' ;;
7041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7042 tmp_addflag=' -i_dynamic -nofor_main' ;;
7043 ifc* | ifort*) # Intel Fortran compiler
7044 tmp_addflag=' -nofor_main' ;;
7045 esac
7046 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7047
7048 if test $supports_anon_versioning = yes; then
7049 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7051 $echo "local: *; };" >> $output_objdir/$libname.ver~
7052 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7053 fi
7054 else
7055 ld_shlibs=no
7056 fi
7057 ;;
7058
7059 netbsd*)
7060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7061 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7062 wlarc=
7063 else
7064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7066 fi
7067 ;;
7068
7069 solaris*)
7070 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7071 ld_shlibs=no
7072 cat <<EOF 1>&2
7073
7074*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7075*** create shared libraries on Solaris systems. Therefore, libtool
7076*** is disabling shared libraries support. We urge you to upgrade GNU
7077*** binutils to release 2.9.1 or newer. Another option is to modify
7078*** your PATH or compiler configuration so that the native linker is
7079*** used, and then restart.
7080
7081EOF
7082 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7084 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7085 else
7086 ld_shlibs=no
7087 fi
7088 ;;
7089
7090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7091 case `$LD -v 2>&1` in
7092 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7093 ld_shlibs=no
7094 cat <<_LT_EOF 1>&2
7095
7096*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7097*** reliably create shared libraries on SCO systems. Therefore, libtool
7098*** is disabling shared libraries support. We urge you to upgrade GNU
7099*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7100*** your PATH or compiler configuration so that the native linker is
7101*** used, and then restart.
7102
7103_LT_EOF
7104 ;;
7105 *)
7106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7107 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7110 else
7111 ld_shlibs=no
7112 fi
7113 ;;
7114 esac
7115 ;;
7116
7117 sunos4*)
7118 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7119 wlarc=
7120 hardcode_direct=yes
7121 hardcode_shlibpath_var=no
7122 ;;
7123
7124 *)
7125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7128 else
7129 ld_shlibs=no
7130 fi
7131 ;;
7132 esac
7133
7134 if test "$ld_shlibs" = no; then
7135 runpath_var=
7136 hardcode_libdir_flag_spec=
7137 export_dynamic_flag_spec=
7138 whole_archive_flag_spec=
7139 fi
7140 else
7141 # PORTME fill in a description of your system's linker (not GNU ld)
7142 case $host_os in
7143 aix3*)
7144 allow_undefined_flag=unsupported
7145 always_export_symbols=yes
7146 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'
7147 # Note: this linker hardcodes the directories in LIBPATH if there
7148 # are no directories specified by -L.
7149 hardcode_minus_L=yes
7150 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7151 # Neither direct hardcoding nor static linking is supported with a
7152 # broken collect2.
7153 hardcode_direct=unsupported
7154 fi
7155 ;;
7156
7157 aix4* | aix5*)
7158 if test "$host_cpu" = ia64; then
7159 # On IA64, the linker does run time linking by default, so we don't
7160 # have to do anything special.
7161 aix_use_runtimelinking=no
7162 exp_sym_flag='-Bexport'
7163 no_entry_flag=""
7164 else
7165 # If we're using GNU nm, then we don't want the "-C" option.
7166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7167 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7168 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'
7169 else
7170 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'
7171 fi
7172 aix_use_runtimelinking=no
7173
7174 # Test if we are trying to use run time linking or normal
7175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7176 # need to do runtime linking.
7177 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7178 for ld_flag in $LDFLAGS; do
7179 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7180 aix_use_runtimelinking=yes
7181 break
7182 fi
7183 done
7184 ;;
7185 esac
7186
7187 exp_sym_flag='-bexport'
7188 no_entry_flag='-bnoentry'
7189 fi
7190
7191 # When large executables or shared objects are built, AIX ld can
7192 # have problems creating the table of contents. If linking a library
7193 # or program results in "error TOC overflow" add -mminimal-toc to
7194 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7195 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7196
7197 archive_cmds=''
7198 hardcode_direct=yes
7199 hardcode_libdir_separator=':'
7200 link_all_deplibs=yes
7201
7202 if test "$GCC" = yes; then
7203 case $host_os in aix4.[012]|aix4.[012].*)
7204 # We only want to do this on AIX 4.2 and lower, the check
7205 # below for broken collect2 doesn't work under 4.3+
7206 collect2name=`${CC} -print-prog-name=collect2`
7207 if test -f "$collect2name" && \
7208 strings "$collect2name" | grep resolve_lib_name >/dev/null
7209 then
7210 # We have reworked collect2
7211 hardcode_direct=yes
7212 else
7213 # We have old collect2
7214 hardcode_direct=unsupported
7215 # It fails to find uninstalled libraries when the uninstalled
7216 # path is not listed in the libpath. Setting hardcode_minus_L
7217 # to unsupported forces relinking
7218 hardcode_minus_L=yes
7219 hardcode_libdir_flag_spec='-L$libdir'
7220 hardcode_libdir_separator=
7221 fi
7222 ;;
7223 esac
7224 shared_flag='-shared'
7225 if test "$aix_use_runtimelinking" = yes; then
7226 shared_flag="$shared_flag "'${wl}-G'
7227 fi
7228 else
7229 # not using gcc
7230 if test "$host_cpu" = ia64; then
7231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7232 # chokes on -Wl,-G. The following line is correct:
7233 shared_flag='-G'
7234 else
7235 if test "$aix_use_runtimelinking" = yes; then
7236 shared_flag='${wl}-G'
7237 else
7238 shared_flag='${wl}-bM:SRE'
7239 fi
7240 fi
7241 fi
7242
7243 # It seems that -bexpall does not export symbols beginning with
7244 # underscore (_), so it is better to generate a list of symbols to export.
7245 always_export_symbols=yes
7246 if test "$aix_use_runtimelinking" = yes; then
7247 # Warning - without using the other runtime loading flags (-brtl),
7248 # -berok will link without error, but may produce a broken library.
7249 allow_undefined_flag='-berok'
7250 # Determine the default libpath from the value encoded in an empty executable.
7251 cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h. */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h. */
7257
7258int
7259main ()
7260{
7261
7262 ;
7263 return 0;
7264}
7265_ACEOF
7266rm -f conftest.$ac_objext conftest$ac_exeext
7267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268 (eval $ac_link) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest$ac_exeext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288
7289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7290}'`
7291# Check for a 64-bit object if we didn't find anything.
7292if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7293}'`; fi
7294else
7295 echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298fi
7299rm -f conftest.err conftest.$ac_objext \
7300 conftest$ac_exeext conftest.$ac_ext
7301if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7302
7303 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7304 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7305 else
7306 if test "$host_cpu" = ia64; then
7307 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7308 allow_undefined_flag="-z nodefs"
7309 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"
7310 else
7311 # Determine the default libpath from the value encoded in an empty executable.
7312 cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h. */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h. */
7318
7319int
7320main ()
7321{
7322
7323 ;
7324 return 0;
7325}
7326_ACEOF
7327rm -f conftest.$ac_objext conftest$ac_exeext
7328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329 (eval $ac_link) 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest$ac_exeext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349
7350aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7351}'`
7352# Check for a 64-bit object if we didn't find anything.
7353if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7354}'`; fi
7355else
7356 echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359fi
7360rm -f conftest.err conftest.$ac_objext \
7361 conftest$ac_exeext conftest.$ac_ext
7362if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7363
7364 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7365 # Warning - without using the other run time loading flags,
7366 # -berok will link without error, but may produce a broken library.
7367 no_undefined_flag=' ${wl}-bernotok'
7368 allow_undefined_flag=' ${wl}-berok'
7369 # Exported symbols can be pulled into shared objects from archives
7370 whole_archive_flag_spec='$convenience'
7371 archive_cmds_need_lc=yes
7372 # This is similar to how AIX traditionally builds its shared libraries.
7373 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'
7374 fi
7375 fi
7376 ;;
7377
7378 amigaos*)
7379 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)'
7380 hardcode_libdir_flag_spec='-L$libdir'
7381 hardcode_minus_L=yes
7382 # see comment about different semantics on the GNU ld section
7383 ld_shlibs=no
7384 ;;
7385
7386 bsdi[45]*)
7387 export_dynamic_flag_spec=-rdynamic
7388 ;;
7389
7390 cygwin* | mingw* | pw32*)
7391 # When not using gcc, we currently assume that we are using
7392 # Microsoft Visual C++.
7393 # hardcode_libdir_flag_spec is actually meaningless, as there is
7394 # no search path for DLLs.
7395 hardcode_libdir_flag_spec=' '
7396 allow_undefined_flag=unsupported
7397 # Tell ltmain to make .lib files, not .a files.
7398 libext=lib
7399 # Tell ltmain to make .dll files, not .so files.
7400 shrext_cmds=".dll"
7401 # FIXME: Setting linknames here is a bad hack.
7402 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7403 # The linker will automatically build a .lib file if we build a DLL.
7404 old_archive_From_new_cmds='true'
7405 # FIXME: Should let the user specify the lib program.
7406 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7407 fix_srcfile_path='`cygpath -w "$srcfile"`'
7408 enable_shared_with_static_runtimes=yes
7409 ;;
7410
7411 darwin* | rhapsody*)
7412 case $host_os in
7413 rhapsody* | darwin1.[012])
7414 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7415 ;;
7416 *) # Darwin 1.3 on
7417 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7418 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7419 else
7420 case ${MACOSX_DEPLOYMENT_TARGET} in
7421 10.[012])
7422 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7423 ;;
7424 10.*)
7425 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7426 ;;
7427 esac
7428 fi
7429 ;;
7430 esac
7431 archive_cmds_need_lc=no
7432 hardcode_direct=no
7433 hardcode_automatic=yes
7434 hardcode_shlibpath_var=unsupported
7435 whole_archive_flag_spec=''
7436 link_all_deplibs=yes
7437 if test "$GCC" = yes ; then
7438 output_verbose_link_cmd='echo'
7439 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7440 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7442 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7443 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7444 else
7445 case $cc_basename in
7446 xlc*)
7447 output_verbose_link_cmd='echo'
7448 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7449 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7451 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7452 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7453 ;;
7454 *)
7455 ld_shlibs=no
7456 ;;
7457 esac
7458 fi
7459 ;;
7460
7461 dgux*)
7462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7463 hardcode_libdir_flag_spec='-L$libdir'
7464 hardcode_shlibpath_var=no
7465 ;;
7466
7467 freebsd1*)
7468 ld_shlibs=no
7469 ;;
7470
7471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7472 # support. Future versions do this automatically, but an explicit c++rt0.o
7473 # does not break anything, and helps significantly (at the cost of a little
7474 # extra space).
7475 freebsd2.2*)
7476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7477 hardcode_libdir_flag_spec='-R$libdir'
7478 hardcode_direct=yes
7479 hardcode_shlibpath_var=no
7480 ;;
7481
7482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7483 freebsd2*)
7484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7485 hardcode_direct=yes
7486 hardcode_minus_L=yes
7487 hardcode_shlibpath_var=no
7488 ;;
7489
7490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7491 freebsd* | kfreebsd*-gnu | dragonfly*)
7492 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7493 hardcode_libdir_flag_spec='-R$libdir'
7494 hardcode_direct=yes
7495 hardcode_shlibpath_var=no
7496 ;;
7497
7498 hpux9*)
7499 if test "$GCC" = yes; then
7500 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'
7501 else
7502 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'
7503 fi
7504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7505 hardcode_libdir_separator=:
7506 hardcode_direct=yes
7507
7508 # hardcode_minus_L: Not really in the search PATH,
7509 # but as the default location of the library.
7510 hardcode_minus_L=yes
7511 export_dynamic_flag_spec='${wl}-E'
7512 ;;
7513
7514 hpux10*)
7515 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7516 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7517 else
7518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7519 fi
7520 if test "$with_gnu_ld" = no; then
7521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7522 hardcode_libdir_separator=:
7523
7524 hardcode_direct=yes
7525 export_dynamic_flag_spec='${wl}-E'
7526
7527 # hardcode_minus_L: Not really in the search PATH,
7528 # but as the default location of the library.
7529 hardcode_minus_L=yes
7530 fi
7531 ;;
7532
7533 hpux11*)
7534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7535 case $host_cpu in
7536 hppa*64*)
7537 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7538 ;;
7539 ia64*)
7540 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7541 ;;
7542 *)
7543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7544 ;;
7545 esac
7546 else
7547 case $host_cpu in
7548 hppa*64*)
7549 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7550 ;;
7551 ia64*)
7552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7553 ;;
7554 *)
7555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7556 ;;
7557 esac
7558 fi
7559 if test "$with_gnu_ld" = no; then
7560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7561 hardcode_libdir_separator=:
7562
7563 case $host_cpu in
7564 hppa*64*|ia64*)
7565 hardcode_libdir_flag_spec_ld='+b $libdir'
7566 hardcode_direct=no
7567 hardcode_shlibpath_var=no
7568 ;;
7569 *)
7570 hardcode_direct=yes
7571 export_dynamic_flag_spec='${wl}-E'
7572
7573 # hardcode_minus_L: Not really in the search PATH,
7574 # but as the default location of the library.
7575 hardcode_minus_L=yes
7576 ;;
7577 esac
7578 fi
7579 ;;
7580
7581 irix5* | irix6* | nonstopux*)
7582 if test "$GCC" = yes; then
7583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7584 else
7585 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7586 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7587 fi
7588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7589 hardcode_libdir_separator=:
7590 link_all_deplibs=yes
7591 ;;
7592
7593 netbsd*)
7594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7596 else
7597 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7598 fi
7599 hardcode_libdir_flag_spec='-R$libdir'
7600 hardcode_direct=yes
7601 hardcode_shlibpath_var=no
7602 ;;
7603
7604 newsos6)
7605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7606 hardcode_direct=yes
7607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7608 hardcode_libdir_separator=:
7609 hardcode_shlibpath_var=no
7610 ;;
7611
7612 openbsd*)
7613 hardcode_direct=yes
7614 hardcode_shlibpath_var=no
7615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7619 export_dynamic_flag_spec='${wl}-E'
7620 else
7621 case $host_os in
7622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7624 hardcode_libdir_flag_spec='-R$libdir'
7625 ;;
7626 *)
7627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7629 ;;
7630 esac
7631 fi
7632 ;;
7633
7634 os2*)
7635 hardcode_libdir_flag_spec='-L$libdir'
7636 hardcode_minus_L=yes
7637 allow_undefined_flag=unsupported
7638 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'
7639 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7640 ;;
7641
7642 osf3*)
7643 if test "$GCC" = yes; then
7644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7645 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7646 else
7647 allow_undefined_flag=' -expect_unresolved \*'
7648 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7649 fi
7650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7651 hardcode_libdir_separator=:
7652 ;;
7653
7654 osf4* | osf5*) # as osf3* with the addition of -msym flag
7655 if test "$GCC" = yes; then
7656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7657 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7659 else
7660 allow_undefined_flag=' -expect_unresolved \*'
7661 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7662 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7663 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7664
7665 # Both c and cxx compiler support -rpath directly
7666 hardcode_libdir_flag_spec='-rpath $libdir'
7667 fi
7668 hardcode_libdir_separator=:
7669 ;;
7670
7671 solaris*)
7672 no_undefined_flag=' -z text'
7673 if test "$GCC" = yes; then
7674 wlarc='${wl}'
7675 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7676 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7677 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7678 else
7679 wlarc=''
7680 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7682 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7683 fi
7684 hardcode_libdir_flag_spec='-R$libdir'
7685 hardcode_shlibpath_var=no
7686 case $host_os in
7687 solaris2.[0-5] | solaris2.[0-5].*) ;;
7688 *)
7689 # The compiler driver will combine linker options so we
7690 # cannot just pass the convience library names through
7691 # without $wl, iff we do not link with $LD.
7692 # Luckily, gcc supports the same syntax we need for Sun Studio.
7693 # Supported since Solaris 2.6 (maybe 2.5.1?)
7694 case $wlarc in
7695 '')
7696 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7697 *)
7698 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7699 esac ;;
7700 esac
7701 link_all_deplibs=yes
7702 ;;
7703
7704 sunos4*)
7705 if test "x$host_vendor" = xsequent; then
7706 # Use $CC to link under sequent, because it throws in some extra .o
7707 # files that make .init and .fini sections work.
7708 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7709 else
7710 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7711 fi
7712 hardcode_libdir_flag_spec='-L$libdir'
7713 hardcode_direct=yes
7714 hardcode_minus_L=yes
7715 hardcode_shlibpath_var=no
7716 ;;
7717
7718 sysv4)
7719 case $host_vendor in
7720 sni)
7721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722 hardcode_direct=yes # is this really true???
7723 ;;
7724 siemens)
7725 ## LD is ld it makes a PLAMLIB
7726 ## CC just makes a GrossModule.
7727 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7728 reload_cmds='$CC -r -o $output$reload_objs'
7729 hardcode_direct=no
7730 ;;
7731 motorola)
7732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7733 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7734 ;;
7735 esac
7736 runpath_var='LD_RUN_PATH'
7737 hardcode_shlibpath_var=no
7738 ;;
7739
7740 sysv4.3*)
7741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7742 hardcode_shlibpath_var=no
7743 export_dynamic_flag_spec='-Bexport'
7744 ;;
7745
7746 sysv4*MP*)
7747 if test -d /usr/nec; then
7748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7749 hardcode_shlibpath_var=no
7750 runpath_var=LD_RUN_PATH
7751 hardcode_runpath_var=yes
7752 ld_shlibs=yes
7753 fi
7754 ;;
7755
7756 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7757 no_undefined_flag='${wl}-z,text'
7758 archive_cmds_need_lc=no
7759 hardcode_shlibpath_var=no
7760 runpath_var='LD_RUN_PATH'
7761
7762 if test "$GCC" = yes; then
7763 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7764 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7765 else
7766 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7767 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7768 fi
7769 ;;
7770
7771 sysv5* | sco3.2v5* | sco5v6*)
7772 # Note: We can NOT use -z defs as we might desire, because we do not
7773 # link with -lc, and that would cause any symbols used from libc to
7774 # always be unresolved, which means just about no library would
7775 # ever link correctly. If we're not using GNU ld we use -z text
7776 # though, which does catch some bad symbols but isn't as heavy-handed
7777 # as -z defs.
7778 no_undefined_flag='${wl}-z,text'
7779 allow_undefined_flag='${wl}-z,nodefs'
7780 archive_cmds_need_lc=no
7781 hardcode_shlibpath_var=no
7782 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7783 hardcode_libdir_separator=':'
7784 link_all_deplibs=yes
7785 export_dynamic_flag_spec='${wl}-Bexport'
7786 runpath_var='LD_RUN_PATH'
7787
7788 if test "$GCC" = yes; then
7789 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7790 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7791 else
7792 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7793 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7794 fi
7795 ;;
7796
7797 uts4*)
7798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7799 hardcode_libdir_flag_spec='-L$libdir'
7800 hardcode_shlibpath_var=no
7801 ;;
7802
7803 *)
7804 ld_shlibs=no
7805 ;;
7806 esac
7807 fi
7808
7809echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7810echo "${ECHO_T}$ld_shlibs" >&6
7811test "$ld_shlibs" = no && can_build_shared=no
7812
7813#
7814# Do we need to explicitly link libc?
7815#
7816case "x$archive_cmds_need_lc" in
7817x|xyes)
7818 # Assume -lc should be added
7819 archive_cmds_need_lc=yes
7820
7821 if test "$enable_shared" = yes && test "$GCC" = yes; then
7822 case $archive_cmds in
7823 *'~'*)
7824 # FIXME: we may have to deal with multi-command sequences.
7825 ;;
7826 '$CC '*)
7827 # Test whether the compiler implicitly links with -lc since on some
7828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7829 # to ld, don't add -lc before -lgcc.
7830 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7831echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7832 $rm conftest*
7833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7834
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } 2>conftest.err; then
7840 soname=conftest
7841 lib=conftest
7842 libobjs=conftest.$ac_objext
7843 deplibs=
7844 wl=$lt_prog_compiler_wl
7845 pic_flag=$lt_prog_compiler_pic
7846 compiler_flags=-v
7847 linker_flags=-v
7848 verstring=
7849 output_objdir=.
7850 libname=conftest
7851 lt_save_allow_undefined_flag=$allow_undefined_flag
7852 allow_undefined_flag=
7853 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7854 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }
7858 then
7859 archive_cmds_need_lc=no
7860 else
7861 archive_cmds_need_lc=yes
7862 fi
7863 allow_undefined_flag=$lt_save_allow_undefined_flag
7864 else
7865 cat conftest.err 1>&5
7866 fi
7867 $rm conftest*
7868 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7869echo "${ECHO_T}$archive_cmds_need_lc" >&6
7870 ;;
7871 esac
7872 fi
7873 ;;
7874esac
7875
7876echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7877echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7878library_names_spec=
7879libname_spec='lib$name'
7880soname_spec=
7881shrext_cmds=".so"
7882postinstall_cmds=
7883postuninstall_cmds=
7884finish_cmds=
7885finish_eval=
7886shlibpath_var=
7887shlibpath_overrides_runpath=unknown
7888version_type=none
7889dynamic_linker="$host_os ld.so"
7890sys_lib_dlsearch_path_spec="/lib /usr/lib"
7891if test "$GCC" = yes; then
7892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7893 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7894 # if the path contains ";" then we assume it to be the separator
7895 # otherwise default to the standard path separator (i.e. ":") - it is
7896 # assumed that no part of a normal pathname contains ";" but that should
7897 # okay in the real world where ";" in dirpaths is itself problematic.
7898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7899 else
7900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7901 fi
7902else
7903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7904fi
7905need_lib_prefix=unknown
7906hardcode_into_libs=no
7907
7908# when you set need_version to no, make sure it does not cause -set_version
7909# flags to be left without arguments
7910need_version=unknown
7911
7912case $host_os in
7913aix3*)
7914 version_type=linux
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7916 shlibpath_var=LIBPATH
7917
7918 # AIX 3 has no versioning support, so we append a major version to the name.
7919 soname_spec='${libname}${release}${shared_ext}$major'
7920 ;;
7921
7922aix4* | aix5*)
7923 version_type=linux
7924 need_lib_prefix=no
7925 need_version=no
7926 hardcode_into_libs=yes
7927 if test "$host_cpu" = ia64; then
7928 # AIX 5 supports IA64
7929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 else
7932 # With GCC up to 2.95.x, collect2 would create an import file
7933 # for dependence libraries. The import file would start with
7934 # the line `#! .'. This would cause the generated library to
7935 # depend on `.', always an invalid library. This was fixed in
7936 # development snapshots of GCC prior to 3.0.
7937 case $host_os in
7938 aix4 | aix4.[01] | aix4.[01].*)
7939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7940 echo ' yes '
7941 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7942 :
7943 else
7944 can_build_shared=no
7945 fi
7946 ;;
7947 esac
7948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7949 # soname into executable. Probably we can add versioning support to
7950 # collect2, so additional links can be useful in future.
7951 if test "$aix_use_runtimelinking" = yes; then
7952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7953 # instead of lib<name>.a to let people know that these are not
7954 # typical AIX shared libraries.
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 else
7957 # We preserve .a as extension for shared libraries through AIX4.2
7958 # and later when we are not doing run time linking.
7959 library_names_spec='${libname}${release}.a $libname.a'
7960 soname_spec='${libname}${release}${shared_ext}$major'
7961 fi
7962 shlibpath_var=LIBPATH
7963 fi
7964 ;;
7965
7966amigaos*)
7967 library_names_spec='$libname.ixlibrary $libname.a'
7968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7969 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'
7970 ;;
7971
7972beos*)
7973 library_names_spec='${libname}${shared_ext}'
7974 dynamic_linker="$host_os ld.so"
7975 shlibpath_var=LIBRARY_PATH
7976 ;;
7977
7978bsdi[45]*)
7979 version_type=linux
7980 need_version=no
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982 soname_spec='${libname}${release}${shared_ext}$major'
7983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7984 shlibpath_var=LD_LIBRARY_PATH
7985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7987 # the default ld.so.conf also contains /usr/contrib/lib and
7988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7989 # libtool to hard-code these into programs
7990 ;;
7991
7992cygwin* | mingw* | pw32*)
7993 version_type=windows
7994 shrext_cmds=".dll"
7995 need_version=no
7996 need_lib_prefix=no
7997
7998 case $GCC,$host_os in
7999 yes,cygwin* | yes,mingw* | yes,pw32*)
8000 library_names_spec='$libname.dll.a'
8001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8002 postinstall_cmds='base_file=`basename \${file}`~
8003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8004 dldir=$destdir/`dirname \$dlpath`~
8005 test -d \$dldir || mkdir -p \$dldir~
8006 $install_prog $dir/$dlname \$dldir/$dlname~
8007 chmod a+x \$dldir/$dlname'
8008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8009 dlpath=$dir/\$dldll~
8010 $rm \$dlpath'
8011 shlibpath_overrides_runpath=yes
8012
8013 case $host_os in
8014 cygwin*)
8015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8017 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8018 ;;
8019 mingw*)
8020 # MinGW DLLs use traditional 'lib' prefix
8021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8023 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8024 # It is most probably a Windows format PATH printed by
8025 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8026 # path with ; separators, and with drive letters. We can handle the
8027 # drive letters (cygwin fileutils understands them), so leave them,
8028 # especially as we might pass files found there to a mingw objdump,
8029 # which wouldn't understand a cygwinified path. Ahh.
8030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8031 else
8032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8033 fi
8034 ;;
8035 pw32*)
8036 # pw32 DLLs use 'pw' prefix rather than 'lib'
8037 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8038 ;;
8039 esac
8040 ;;
8041
8042 *)
8043 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8044 ;;
8045 esac
8046 dynamic_linker='Win32 ld.exe'
8047 # FIXME: first we should search . and the directory the executable is in
8048 shlibpath_var=PATH
8049 ;;
8050
8051darwin* | rhapsody*)
8052 dynamic_linker="$host_os dyld"
8053 version_type=darwin
8054 need_lib_prefix=no
8055 need_version=no
8056 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8057 soname_spec='${libname}${release}${major}$shared_ext'
8058 shlibpath_overrides_runpath=yes
8059 shlibpath_var=DYLD_LIBRARY_PATH
8060 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8061 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8062 if test "$GCC" = yes; then
8063 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8064 else
8065 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8066 fi
8067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8068 ;;
8069
8070dgux*)
8071 version_type=linux
8072 need_lib_prefix=no
8073 need_version=no
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 shlibpath_var=LD_LIBRARY_PATH
8077 ;;
8078
8079freebsd1*)
8080 dynamic_linker=no
8081 ;;
8082
8083kfreebsd*-gnu)
8084 version_type=linux
8085 need_lib_prefix=no
8086 need_version=no
8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8088 soname_spec='${libname}${release}${shared_ext}$major'
8089 shlibpath_var=LD_LIBRARY_PATH
8090 shlibpath_overrides_runpath=no
8091 hardcode_into_libs=yes
8092 dynamic_linker='GNU ld.so'
8093 ;;
8094
8095freebsd* | dragonfly*)
8096 # DragonFly does not have aout. When/if they implement a new
8097 # versioning mechanism, adjust this.
8098 if test -x /usr/bin/objformat; then
8099 objformat=`/usr/bin/objformat`
8100 else
8101 case $host_os in
8102 freebsd[123]*) objformat=aout ;;
8103 *) objformat=elf ;;
8104 esac
8105 fi
8106 version_type=freebsd-$objformat
8107 case $version_type in
8108 freebsd-elf*)
8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8110 need_version=no
8111 need_lib_prefix=no
8112 ;;
8113 freebsd-*)
8114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8115 need_version=yes
8116 ;;
8117 esac
8118 shlibpath_var=LD_LIBRARY_PATH
8119 case $host_os in
8120 freebsd2*)
8121 shlibpath_overrides_runpath=yes
8122 ;;
8123 freebsd3.[01]* | freebsdelf3.[01]*)
8124 shlibpath_overrides_runpath=yes
8125 hardcode_into_libs=yes
8126 ;;
8127 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8128 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8129 shlibpath_overrides_runpath=no
8130 hardcode_into_libs=yes
8131 ;;
8132 freebsd*) # from 4.6 on
8133 shlibpath_overrides_runpath=yes
8134 hardcode_into_libs=yes
8135 ;;
8136 esac
8137 ;;
8138
8139gnu*)
8140 version_type=linux
8141 need_lib_prefix=no
8142 need_version=no
8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8144 soname_spec='${libname}${release}${shared_ext}$major'
8145 shlibpath_var=LD_LIBRARY_PATH
8146 hardcode_into_libs=yes
8147 ;;
8148
8149hpux9* | hpux10* | hpux11*)
8150 # Give a soname corresponding to the major version so that dld.sl refuses to
8151 # link against other versions.
8152 version_type=sunos
8153 need_lib_prefix=no
8154 need_version=no
8155 case $host_cpu in
8156 ia64*)
8157 shrext_cmds='.so'
8158 hardcode_into_libs=yes
8159 dynamic_linker="$host_os dld.so"
8160 shlibpath_var=LD_LIBRARY_PATH
8161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8163 soname_spec='${libname}${release}${shared_ext}$major'
8164 if test "X$HPUX_IA64_MODE" = X32; then
8165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8166 else
8167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8168 fi
8169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8170 ;;
8171 hppa*64*)
8172 shrext_cmds='.sl'
8173 hardcode_into_libs=yes
8174 dynamic_linker="$host_os dld.sl"
8175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8178 soname_spec='${libname}${release}${shared_ext}$major'
8179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8181 ;;
8182 *)
8183 shrext_cmds='.sl'
8184 dynamic_linker="$host_os dld.sl"
8185 shlibpath_var=SHLIB_PATH
8186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8188 soname_spec='${libname}${release}${shared_ext}$major'
8189 ;;
8190 esac
8191 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8192 postinstall_cmds='chmod 555 $lib'
8193 ;;
8194
8195interix3*)
8196 version_type=linux
8197 need_lib_prefix=no
8198 need_version=no
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200 soname_spec='${libname}${release}${shared_ext}$major'
8201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8202 shlibpath_var=LD_LIBRARY_PATH
8203 shlibpath_overrides_runpath=no
8204 hardcode_into_libs=yes
8205 ;;
8206
8207irix5* | irix6* | nonstopux*)
8208 case $host_os in
8209 nonstopux*) version_type=nonstopux ;;
8210 *)
8211 if test "$lt_cv_prog_gnu_ld" = yes; then
8212 version_type=linux
8213 else
8214 version_type=irix
8215 fi ;;
8216 esac
8217 need_lib_prefix=no
8218 need_version=no
8219 soname_spec='${libname}${release}${shared_ext}$major'
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8221 case $host_os in
8222 irix5* | nonstopux*)
8223 libsuff= shlibsuff=
8224 ;;
8225 *)
8226 case $LD in # libtool.m4 will add one of these switches to LD
8227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8228 libsuff= shlibsuff= libmagic=32-bit;;
8229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8230 libsuff=32 shlibsuff=N32 libmagic=N32;;
8231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8233 *) libsuff= shlibsuff= libmagic=never-match;;
8234 esac
8235 ;;
8236 esac
8237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8238 shlibpath_overrides_runpath=no
8239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8241 hardcode_into_libs=yes
8242 ;;
8243
8244# No shared lib support for Linux oldld, aout, or coff.
8245linux*oldld* | linux*aout* | linux*coff*)
8246 dynamic_linker=no
8247 ;;
8248
8249# This must be Linux ELF.
8250linux*)
8251 version_type=linux
8252 need_lib_prefix=no
8253 need_version=no
8254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8255 soname_spec='${libname}${release}${shared_ext}$major'
8256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8257 shlibpath_var=LD_LIBRARY_PATH
8258 shlibpath_overrides_runpath=no
8259 # This implies no fast_install, which is unacceptable.
8260 # Some rework will be needed to allow for fast_install
8261 # before this can be enabled.
8262 hardcode_into_libs=yes
8263
8264 # find out which ABI we are using
8265 libsuff=
8266 case "$host_cpu" in
8267 x86_64*|s390x*|powerpc64*)
8268 echo '#line 8268 "configure"' > conftest.$ac_ext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; then
8274 case `/usr/bin/file conftest.$ac_objext` in
8275 *64-bit*)
8276 libsuff=64
8277 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8278 ;;
8279 esac
8280 fi
8281 rm -rf conftest*
8282 ;;
8283 esac
8284
8285 # Append ld.so.conf contents to the search path
8286 if test -f /etc/ld.so.conf; then
8287 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' ' '`
8288 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8289 fi
8290
8291 # We used to test for /lib/ld.so.1 and disable shared libraries on
8292 # powerpc, because MkLinux only supported shared libraries with the
8293 # GNU dynamic linker. Since this was broken with cross compilers,
8294 # most powerpc-linux boxes support dynamic linking these days and
8295 # people can always --disable-shared, the test was removed, and we
8296 # assume the GNU/Linux dynamic linker is in use.
8297 dynamic_linker='GNU/Linux ld.so'
8298 ;;
8299
8300knetbsd*-gnu)
8301 version_type=linux
8302 need_lib_prefix=no
8303 need_version=no
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8305 soname_spec='${libname}${release}${shared_ext}$major'
8306 shlibpath_var=LD_LIBRARY_PATH
8307 shlibpath_overrides_runpath=no
8308 hardcode_into_libs=yes
8309 dynamic_linker='GNU ld.so'
8310 ;;
8311
8312netbsd*)
8313 version_type=sunos
8314 need_lib_prefix=no
8315 need_version=no
8316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8319 dynamic_linker='NetBSD (a.out) ld.so'
8320 else
8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8322 soname_spec='${libname}${release}${shared_ext}$major'
8323 dynamic_linker='NetBSD ld.elf_so'
8324 fi
8325 shlibpath_var=LD_LIBRARY_PATH
8326 shlibpath_overrides_runpath=yes
8327 hardcode_into_libs=yes
8328 ;;
8329
8330newsos6)
8331 version_type=linux
8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8333 shlibpath_var=LD_LIBRARY_PATH
8334 shlibpath_overrides_runpath=yes
8335 ;;
8336
8337nto-qnx*)
8338 version_type=linux
8339 need_lib_prefix=no
8340 need_version=no
8341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342 soname_spec='${libname}${release}${shared_ext}$major'
8343 shlibpath_var=LD_LIBRARY_PATH
8344 shlibpath_overrides_runpath=yes
8345 ;;
8346
8347openbsd*)
8348 version_type=sunos
8349 sys_lib_dlsearch_path_spec="/usr/lib"
8350 need_lib_prefix=no
8351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8352 case $host_os in
8353 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8354 *) need_version=no ;;
8355 esac
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8358 shlibpath_var=LD_LIBRARY_PATH
8359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8360 case $host_os in
8361 openbsd2.[89] | openbsd2.[89].*)
8362 shlibpath_overrides_runpath=no
8363 ;;
8364 *)
8365 shlibpath_overrides_runpath=yes
8366 ;;
8367 esac
8368 else
8369 shlibpath_overrides_runpath=yes
8370 fi
8371 ;;
8372
8373os2*)
8374 libname_spec='$name'
8375 shrext_cmds=".dll"
8376 need_lib_prefix=no
8377 library_names_spec='$libname${shared_ext} $libname.a'
8378 dynamic_linker='OS/2 ld.exe'
8379 shlibpath_var=LIBPATH
8380 ;;
8381
8382osf3* | osf4* | osf5*)
8383 version_type=osf
8384 need_lib_prefix=no
8385 need_version=no
8386 soname_spec='${libname}${release}${shared_ext}$major'
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8391 ;;
8392
8393solaris*)
8394 version_type=linux
8395 need_lib_prefix=no
8396 need_version=no
8397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398 soname_spec='${libname}${release}${shared_ext}$major'
8399 shlibpath_var=LD_LIBRARY_PATH
8400 shlibpath_overrides_runpath=yes
8401 hardcode_into_libs=yes
8402 # ldd complains unless libraries are executable
8403 postinstall_cmds='chmod +x $lib'
8404 ;;
8405
8406sunos4*)
8407 version_type=sunos
8408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8409 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8410 shlibpath_var=LD_LIBRARY_PATH
8411 shlibpath_overrides_runpath=yes
8412 if test "$with_gnu_ld" = yes; then
8413 need_lib_prefix=no
8414 fi
8415 need_version=yes
8416 ;;
8417
8418sysv4 | sysv4.3*)
8419 version_type=linux
8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8421 soname_spec='${libname}${release}${shared_ext}$major'
8422 shlibpath_var=LD_LIBRARY_PATH
8423 case $host_vendor in
8424 sni)
8425 shlibpath_overrides_runpath=no
8426 need_lib_prefix=no
8427 export_dynamic_flag_spec='${wl}-Blargedynsym'
8428 runpath_var=LD_RUN_PATH
8429 ;;
8430 siemens)
8431 need_lib_prefix=no
8432 ;;
8433 motorola)
8434 need_lib_prefix=no
8435 need_version=no
8436 shlibpath_overrides_runpath=no
8437 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8438 ;;
8439 esac
8440 ;;
8441
8442sysv4*MP*)
8443 if test -d /usr/nec ;then
8444 version_type=linux
8445 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8446 soname_spec='$libname${shared_ext}.$major'
8447 shlibpath_var=LD_LIBRARY_PATH
8448 fi
8449 ;;
8450
8451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8452 version_type=freebsd-elf
8453 need_lib_prefix=no
8454 need_version=no
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 shlibpath_var=LD_LIBRARY_PATH
8458 hardcode_into_libs=yes
8459 if test "$with_gnu_ld" = yes; then
8460 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8461 shlibpath_overrides_runpath=no
8462 else
8463 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8464 shlibpath_overrides_runpath=yes
8465 case $host_os in
8466 sco3.2v5*)
8467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8468 ;;
8469 esac
8470 fi
8471 sys_lib_dlsearch_path_spec='/usr/lib'
8472 ;;
8473
8474uts4*)
8475 version_type=linux
8476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477 soname_spec='${libname}${release}${shared_ext}$major'
8478 shlibpath_var=LD_LIBRARY_PATH
8479 ;;
8480
8481*)
8482 dynamic_linker=no
8483 ;;
8484esac
8485echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8486echo "${ECHO_T}$dynamic_linker" >&6
8487test "$dynamic_linker" = no && can_build_shared=no
8488
8489variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8490if test "$GCC" = yes; then
8491 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8492fi
8493
8494echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8495echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8496hardcode_action=
8497if test -n "$hardcode_libdir_flag_spec" || \
8498 test -n "$runpath_var" || \
8499 test "X$hardcode_automatic" = "Xyes" ; then
8500
8501 # We can hardcode non-existant directories.
8502 if test "$hardcode_direct" != no &&
8503 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8504 # have to relink, otherwise we might link with an installed library
8505 # when we should be linking with a yet-to-be-installed one
8506 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8507 test "$hardcode_minus_L" != no; then
8508 # Linking always hardcodes the temporary library directory.
8509 hardcode_action=relink
8510 else
8511 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8512 hardcode_action=immediate
8513 fi
8514else
8515 # We cannot hardcode anything, or else we can only hardcode existing
8516 # directories.
8517 hardcode_action=unsupported
8518fi
8519echo "$as_me:$LINENO: result: $hardcode_action" >&5
8520echo "${ECHO_T}$hardcode_action" >&6
8521
8522if test "$hardcode_action" = relink; then
8523 # Fast installation is not supported
8524 enable_fast_install=no
8525elif test "$shlibpath_overrides_runpath" = yes ||
8526 test "$enable_shared" = no; then
8527 # Fast installation is not necessary
8528 enable_fast_install=needless
8529fi
8530
8531striplib=
8532old_striplib=
8533echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8534echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8535if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8536 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8537 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8538 echo "$as_me:$LINENO: result: yes" >&5
8539echo "${ECHO_T}yes" >&6
8540else
8541# FIXME - insert some real tests, host_os isn't really good enough
8542 case $host_os in
8543 darwin*)
8544 if test -n "$STRIP" ; then
8545 striplib="$STRIP -x"
8546 echo "$as_me:$LINENO: result: yes" >&5
8547echo "${ECHO_T}yes" >&6
8548 else
8549 echo "$as_me:$LINENO: result: no" >&5
8550echo "${ECHO_T}no" >&6
8551fi
8552 ;;
8553 *)
8554 echo "$as_me:$LINENO: result: no" >&5
8555echo "${ECHO_T}no" >&6
8556 ;;
8557 esac
8558fi
8559
8560if test "x$enable_dlopen" != xyes; then
8561 enable_dlopen=unknown
8562 enable_dlopen_self=unknown
8563 enable_dlopen_self_static=unknown
8564else
8565 lt_cv_dlopen=no
8566 lt_cv_dlopen_libs=
8567
8568 case $host_os in
8569 beos*)
8570 lt_cv_dlopen="load_add_on"
8571 lt_cv_dlopen_libs=
8572 lt_cv_dlopen_self=yes
8573 ;;
8574
8575 mingw* | pw32*)
8576 lt_cv_dlopen="LoadLibrary"
8577 lt_cv_dlopen_libs=
8578 ;;
8579
8580 cygwin*)
8581 lt_cv_dlopen="dlopen"
8582 lt_cv_dlopen_libs=
8583 ;;
8584
8585 darwin*)
8586 # if libdl is installed we need to link against it
8587 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8588echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8589if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591else
8592 ac_check_lib_save_LIBS=$LIBS
8593LIBS="-ldl $LIBS"
8594cat >conftest.$ac_ext <<_ACEOF
8595/* confdefs.h. */
8596_ACEOF
8597cat confdefs.h >>conftest.$ac_ext
8598cat >>conftest.$ac_ext <<_ACEOF
8599/* end confdefs.h. */
8600
8601/* Override any gcc2 internal prototype to avoid an error. */
8602#ifdef __cplusplus
8603extern "C"
8604#endif
8605/* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8607char dlopen ();
8608int
8609main ()
8610{
8611dlopen ();
8612 ;
8613 return 0;
8614}
8615_ACEOF
8616rm -f conftest.$ac_objext conftest$ac_exeext
8617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618 (eval $ac_link) 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest$ac_exeext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_cv_lib_dl_dlopen=yes
8639else
8640 echo "$as_me: failed program was:" >&5
8641sed 's/^/| /' conftest.$ac_ext >&5
8642
8643ac_cv_lib_dl_dlopen=no
8644fi
8645rm -f conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8647LIBS=$ac_check_lib_save_LIBS
8648fi
8649echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8650echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8651if test $ac_cv_lib_dl_dlopen = yes; then
8652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8653else
8654
8655 lt_cv_dlopen="dyld"
8656 lt_cv_dlopen_libs=
8657 lt_cv_dlopen_self=yes
8658
8659fi
8660
8661 ;;
8662
8663 *)
8664 echo "$as_me:$LINENO: checking for shl_load" >&5
8665echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8666if test "${ac_cv_func_shl_load+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668else
8669 cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h. */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h. */
8675/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8677#define shl_load innocuous_shl_load
8678
8679/* System header to define __stub macros and hopefully few prototypes,
8680 which can conflict with char shl_load (); below.
8681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8682 <limits.h> exists even on freestanding compilers. */
8683
8684#ifdef __STDC__
8685# include <limits.h>
8686#else
8687# include <assert.h>
8688#endif
8689
8690#undef shl_load
8691
8692/* Override any gcc2 internal prototype to avoid an error. */
8693#ifdef __cplusplus
8694extern "C"
8695{
8696#endif
8697/* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8699char shl_load ();
8700/* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703#if defined (__stub_shl_load) || defined (__stub___shl_load)
8704choke me
8705#else
8706char (*f) () = shl_load;
8707#endif
8708#ifdef __cplusplus
8709}
8710#endif
8711
8712int
8713main ()
8714{
8715return f != shl_load;
8716 ;
8717 return 0;
8718}
8719_ACEOF
8720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_func_shl_load=yes
8743else
8744 echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747ac_cv_func_shl_load=no
8748fi
8749rm -f conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751fi
8752echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8753echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8754if test $ac_cv_func_shl_load = yes; then
8755 lt_cv_dlopen="shl_load"
8756else
8757 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8758echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8759if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762 ac_check_lib_save_LIBS=$LIBS
8763LIBS="-ldld $LIBS"
8764cat >conftest.$ac_ext <<_ACEOF
8765/* confdefs.h. */
8766_ACEOF
8767cat confdefs.h >>conftest.$ac_ext
8768cat >>conftest.$ac_ext <<_ACEOF
8769/* end confdefs.h. */
8770
8771/* Override any gcc2 internal prototype to avoid an error. */
8772#ifdef __cplusplus
8773extern "C"
8774#endif
8775/* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8777char shl_load ();
8778int
8779main ()
8780{
8781shl_load ();
8782 ;
8783 return 0;
8784}
8785_ACEOF
8786rm -f conftest.$ac_objext conftest$ac_exeext
8787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_lib_dld_shl_load=yes
8809else
8810 echo "$as_me: failed program was:" >&5
8811sed 's/^/| /' conftest.$ac_ext >&5
8812
8813ac_cv_lib_dld_shl_load=no
8814fi
8815rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817LIBS=$ac_check_lib_save_LIBS
8818fi
8819echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8820echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8821if test $ac_cv_lib_dld_shl_load = yes; then
8822 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8823else
8824 echo "$as_me:$LINENO: checking for dlopen" >&5
8825echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8826if test "${ac_cv_func_dlopen+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8828else
8829 cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h. */
8835/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8837#define dlopen innocuous_dlopen
8838
8839/* System header to define __stub macros and hopefully few prototypes,
8840 which can conflict with char dlopen (); below.
8841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8842 <limits.h> exists even on freestanding compilers. */
8843
8844#ifdef __STDC__
8845# include <limits.h>
8846#else
8847# include <assert.h>
8848#endif
8849
8850#undef dlopen
8851
8852/* Override any gcc2 internal prototype to avoid an error. */
8853#ifdef __cplusplus
8854extern "C"
8855{
8856#endif
8857/* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8859char dlopen ();
8860/* The GNU C library defines this for functions which it implements
8861 to always fail with ENOSYS. Some functions are actually named
8862 something starting with __ and the normal name is an alias. */
8863#if defined (__stub_dlopen) || defined (__stub___dlopen)
8864choke me
8865#else
8866char (*f) () = dlopen;
8867#endif
8868#ifdef __cplusplus
8869}
8870#endif
8871
8872int
8873main ()
8874{
8875return f != dlopen;
8876 ;
8877 return 0;
8878}
8879_ACEOF
8880rm -f conftest.$ac_objext conftest$ac_exeext
8881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
8889 { ac_try='test -z "$ac_c_werror_flag"
8890 || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_func_dlopen=yes
8903else
8904 echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907ac_cv_func_dlopen=no
8908fi
8909rm -f conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911fi
8912echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8913echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8914if test $ac_cv_func_dlopen = yes; then
8915 lt_cv_dlopen="dlopen"
8916else
8917 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8918echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8919if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921else
8922 ac_check_lib_save_LIBS=$LIBS
8923LIBS="-ldl $LIBS"
8924cat >conftest.$ac_ext <<_ACEOF
8925/* confdefs.h. */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */
8930
8931/* Override any gcc2 internal prototype to avoid an error. */
8932#ifdef __cplusplus
8933extern "C"
8934#endif
8935/* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8937char dlopen ();
8938int
8939main ()
8940{
8941dlopen ();
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946rm -f conftest.$ac_objext conftest$ac_exeext
8947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_lib_dl_dlopen=yes
8969else
8970 echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973ac_cv_lib_dl_dlopen=no
8974fi
8975rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977LIBS=$ac_check_lib_save_LIBS
8978fi
8979echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8980echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8981if test $ac_cv_lib_dl_dlopen = yes; then
8982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8983else
8984 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8985echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8986if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989 ac_check_lib_save_LIBS=$LIBS
8990LIBS="-lsvld $LIBS"
8991cat >conftest.$ac_ext <<_ACEOF
8992/* confdefs.h. */
8993_ACEOF
8994cat confdefs.h >>conftest.$ac_ext
8995cat >>conftest.$ac_ext <<_ACEOF
8996/* end confdefs.h. */
8997
8998/* Override any gcc2 internal prototype to avoid an error. */
8999#ifdef __cplusplus
9000extern "C"
9001#endif
9002/* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9004char dlopen ();
9005int
9006main ()
9007{
9008dlopen ();
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext
9014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015 (eval $ac_link) 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -z "$ac_c_werror_flag"
9023 || test ! -s conftest.err'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest$ac_exeext'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 ac_cv_lib_svld_dlopen=yes
9036else
9037 echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040ac_cv_lib_svld_dlopen=no
9041fi
9042rm -f conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044LIBS=$ac_check_lib_save_LIBS
9045fi
9046echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9047echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9048if test $ac_cv_lib_svld_dlopen = yes; then
9049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9050else
9051 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9052echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9053if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055else
9056 ac_check_lib_save_LIBS=$LIBS
9057LIBS="-ldld $LIBS"
9058cat >conftest.$ac_ext <<_ACEOF
9059/* confdefs.h. */
9060_ACEOF
9061cat confdefs.h >>conftest.$ac_ext
9062cat >>conftest.$ac_ext <<_ACEOF
9063/* end confdefs.h. */
9064
9065/* Override any gcc2 internal prototype to avoid an error. */
9066#ifdef __cplusplus
9067extern "C"
9068#endif
9069/* We use char because int might match the return type of a gcc2
9070 builtin and then its argument prototype would still apply. */
9071char dld_link ();
9072int
9073main ()
9074{
9075dld_link ();
9076 ;
9077 return 0;
9078}
9079_ACEOF
9080rm -f conftest.$ac_objext conftest$ac_exeext
9081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082 (eval $ac_link) 2>conftest.er1
9083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_lib_dld_dld_link=yes
9103else
9104 echo "$as_me: failed program was:" >&5
9105sed 's/^/| /' conftest.$ac_ext >&5
9106
9107ac_cv_lib_dld_dld_link=no
9108fi
9109rm -f conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111LIBS=$ac_check_lib_save_LIBS
9112fi
9113echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9114echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9115if test $ac_cv_lib_dld_dld_link = yes; then
9116 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9117fi
9118
9119
9120fi
9121
9122
9123fi
9124
9125
9126fi
9127
9128
9129fi
9130
9131
9132fi
9133
9134 ;;
9135 esac
9136
9137 if test "x$lt_cv_dlopen" != xno; then
9138 enable_dlopen=yes
9139 else
9140 enable_dlopen=no
9141 fi
9142
9143 case $lt_cv_dlopen in
9144 dlopen)
9145 save_CPPFLAGS="$CPPFLAGS"
9146 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9147
9148 save_LDFLAGS="$LDFLAGS"
9149 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9150
9151 save_LIBS="$LIBS"
9152 LIBS="$lt_cv_dlopen_libs $LIBS"
9153
9154 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9155echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9156if test "${lt_cv_dlopen_self+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158else
9159 if test "$cross_compiling" = yes; then :
9160 lt_cv_dlopen_self=cross
9161else
9162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9163 lt_status=$lt_dlunknown
9164 cat > conftest.$ac_ext <<EOF
9165#line 9165 "configure"
9166#include "confdefs.h"
9167
9168#if HAVE_DLFCN_H
9169#include <dlfcn.h>
9170#endif
9171
9172#include <stdio.h>
9173
9174#ifdef RTLD_GLOBAL
9175# define LT_DLGLOBAL RTLD_GLOBAL
9176#else
9177# ifdef DL_GLOBAL
9178# define LT_DLGLOBAL DL_GLOBAL
9179# else
9180# define LT_DLGLOBAL 0
9181# endif
9182#endif
9183
9184/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9185 find out it does not work in some platform. */
9186#ifndef LT_DLLAZY_OR_NOW
9187# ifdef RTLD_LAZY
9188# define LT_DLLAZY_OR_NOW RTLD_LAZY
9189# else
9190# ifdef DL_LAZY
9191# define LT_DLLAZY_OR_NOW DL_LAZY
9192# else
9193# ifdef RTLD_NOW
9194# define LT_DLLAZY_OR_NOW RTLD_NOW
9195# else
9196# ifdef DL_NOW
9197# define LT_DLLAZY_OR_NOW DL_NOW
9198# else
9199# define LT_DLLAZY_OR_NOW 0
9200# endif
9201# endif
9202# endif
9203# endif
9204#endif
9205
9206#ifdef __cplusplus
9207extern "C" void exit (int);
9208#endif
9209
9210void fnord() { int i=42;}
9211int main ()
9212{
9213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9214 int status = $lt_dlunknown;
9215
9216 if (self)
9217 {
9218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9219 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9220 /* dlclose (self); */
9221 }
9222 else
9223 puts (dlerror ());
9224
9225 exit (status);
9226}
9227EOF
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9233 (./conftest; exit; ) >&5 2>/dev/null
9234 lt_status=$?
9235 case x$lt_status in
9236 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9237 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9238 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9239 esac
9240 else :
9241 # compilation failed
9242 lt_cv_dlopen_self=no
9243 fi
9244fi
9245rm -fr conftest*
9246
9247
9248fi
9249echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9250echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9251
9252 if test "x$lt_cv_dlopen_self" = xyes; then
9253 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9254 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9255echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9256if test "${lt_cv_dlopen_self_static+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258else
9259 if test "$cross_compiling" = yes; then :
9260 lt_cv_dlopen_self_static=cross
9261else
9262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9263 lt_status=$lt_dlunknown
9264 cat > conftest.$ac_ext <<EOF
9265#line 9265 "configure"
9266#include "confdefs.h"
9267
9268#if HAVE_DLFCN_H
9269#include <dlfcn.h>
9270#endif
9271
9272#include <stdio.h>
9273
9274#ifdef RTLD_GLOBAL
9275# define LT_DLGLOBAL RTLD_GLOBAL
9276#else
9277# ifdef DL_GLOBAL
9278# define LT_DLGLOBAL DL_GLOBAL
9279# else
9280# define LT_DLGLOBAL 0
9281# endif
9282#endif
9283
9284/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9285 find out it does not work in some platform. */
9286#ifndef LT_DLLAZY_OR_NOW
9287# ifdef RTLD_LAZY
9288# define LT_DLLAZY_OR_NOW RTLD_LAZY
9289# else
9290# ifdef DL_LAZY
9291# define LT_DLLAZY_OR_NOW DL_LAZY
9292# else
9293# ifdef RTLD_NOW
9294# define LT_DLLAZY_OR_NOW RTLD_NOW
9295# else
9296# ifdef DL_NOW
9297# define LT_DLLAZY_OR_NOW DL_NOW
9298# else
9299# define LT_DLLAZY_OR_NOW 0
9300# endif
9301# endif
9302# endif
9303# endif
9304#endif
9305
9306#ifdef __cplusplus
9307extern "C" void exit (int);
9308#endif
9309
9310void fnord() { int i=42;}
9311int main ()
9312{
9313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9314 int status = $lt_dlunknown;
9315
9316 if (self)
9317 {
9318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9319 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9320 /* dlclose (self); */
9321 }
9322 else
9323 puts (dlerror ());
9324
9325 exit (status);
9326}
9327EOF
9328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9329 (eval $ac_link) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9333 (./conftest; exit; ) >&5 2>/dev/null
9334 lt_status=$?
9335 case x$lt_status in
9336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9339 esac
9340 else :
9341 # compilation failed
9342 lt_cv_dlopen_self_static=no
9343 fi
9344fi
9345rm -fr conftest*
9346
9347
9348fi
9349echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9350echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9351 fi
9352
9353 CPPFLAGS="$save_CPPFLAGS"
9354 LDFLAGS="$save_LDFLAGS"
9355 LIBS="$save_LIBS"
9356 ;;
9357 esac
9358
9359 case $lt_cv_dlopen_self in
9360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9361 *) enable_dlopen_self=unknown ;;
9362 esac
9363
9364 case $lt_cv_dlopen_self_static in
9365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9366 *) enable_dlopen_self_static=unknown ;;
9367 esac
9368fi
9369
9370
9371# Report which library types will actually be built
9372echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9373echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9374echo "$as_me:$LINENO: result: $can_build_shared" >&5
9375echo "${ECHO_T}$can_build_shared" >&6
9376
9377echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9378echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9379test "$can_build_shared" = "no" && enable_shared=no
9380
9381# On AIX, shared libraries and static libraries use the same namespace, and
9382# are all built from PIC.
9383case $host_os in
9384aix3*)
9385 test "$enable_shared" = yes && enable_static=no
9386 if test -n "$RANLIB"; then
9387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9388 postinstall_cmds='$RANLIB $lib'
9389 fi
9390 ;;
9391
9392aix4* | aix5*)
9393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9394 test "$enable_shared" = yes && enable_static=no
9395 fi
9396 ;;
9397esac
9398echo "$as_me:$LINENO: result: $enable_shared" >&5
9399echo "${ECHO_T}$enable_shared" >&6
9400
9401echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9402echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9403# Make sure either enable_shared or enable_static is yes.
9404test "$enable_shared" = yes || enable_static=yes
9405echo "$as_me:$LINENO: result: $enable_static" >&5
9406echo "${ECHO_T}$enable_static" >&6
9407
9408# The else clause should only fire when bootstrapping the
9409# libtool distribution, otherwise you forgot to ship ltmain.sh
9410# with your package, and you will get complaints that there are
9411# no rules to generate ltmain.sh.
9412if test -f "$ltmain"; then
9413 # See if we are running on zsh, and set the options which allow our commands through
9414 # without removal of \ escapes.
9415 if test -n "${ZSH_VERSION+set}" ; then
9416 setopt NO_GLOB_SUBST
9417 fi
9418 # Now quote all the things that may contain metacharacters while being
9419 # careful not to overquote the AC_SUBSTed values. We take copies of the
9420 # variables and quote the copies for generation of the libtool script.
9421 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9422 SED SHELL STRIP \
9423 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9424 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9425 deplibs_check_method reload_flag reload_cmds need_locks \
9426 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9427 lt_cv_sys_global_symbol_to_c_name_address \
9428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9429 old_postinstall_cmds old_postuninstall_cmds \
9430 compiler \
9431 CC \
9432 LD \
9433 lt_prog_compiler_wl \
9434 lt_prog_compiler_pic \
9435 lt_prog_compiler_static \
9436 lt_prog_compiler_no_builtin_flag \
9437 export_dynamic_flag_spec \
9438 thread_safe_flag_spec \
9439 whole_archive_flag_spec \
9440 enable_shared_with_static_runtimes \
9441 old_archive_cmds \
9442 old_archive_from_new_cmds \
9443 predep_objects \
9444 postdep_objects \
9445 predeps \
9446 postdeps \
9447 compiler_lib_search_path \
9448 archive_cmds \
9449 archive_expsym_cmds \
9450 postinstall_cmds \
9451 postuninstall_cmds \
9452 old_archive_from_expsyms_cmds \
9453 allow_undefined_flag \
9454 no_undefined_flag \
9455 export_symbols_cmds \
9456 hardcode_libdir_flag_spec \
9457 hardcode_libdir_flag_spec_ld \
9458 hardcode_libdir_separator \
9459 hardcode_automatic \
9460 module_cmds \
9461 module_expsym_cmds \
9462 lt_cv_prog_compiler_c_o \
9463 exclude_expsyms \
9464 include_expsyms; do
9465
9466 case $var in
9467 old_archive_cmds | \
9468 old_archive_from_new_cmds | \
9469 archive_cmds | \
9470 archive_expsym_cmds | \
9471 module_cmds | \
9472 module_expsym_cmds | \
9473 old_archive_from_expsyms_cmds | \
9474 export_symbols_cmds | \
9475 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9476 postinstall_cmds | postuninstall_cmds | \
9477 old_postinstall_cmds | old_postuninstall_cmds | \
9478 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9479 # Double-quote double-evaled strings.
9480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9481 ;;
9482 *)
9483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9484 ;;
9485 esac
9486 done
9487
9488 case $lt_echo in
9489 *'\$0 --fallback-echo"')
9490 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9491 ;;
9492 esac
9493
9494cfgfile="${ofile}T"
9495 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9496 $rm -f "$cfgfile"
9497 { echo "$as_me:$LINENO: creating $ofile" >&5
9498echo "$as_me: creating $ofile" >&6;}
9499
9500 cat <<__EOF__ >> "$cfgfile"
9501#! $SHELL
9502
9503# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9504# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9505# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9506#
9507# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9508# Free Software Foundation, Inc.
9509#
9510# This file is part of GNU Libtool:
9511# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9512#
9513# This program is free software; you can redistribute it and/or modify
9514# it under the terms of the GNU General Public License as published by
9515# the Free Software Foundation; either version 2 of the License, or
9516# (at your option) any later version.
9517#
9518# This program is distributed in the hope that it will be useful, but
9519# WITHOUT ANY WARRANTY; without even the implied warranty of
9520# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9521# General Public License for more details.
9522#
9523# You should have received a copy of the GNU General Public License
9524# along with this program; if not, write to the Free Software
9525# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9526#
9527# As a special exception to the GNU General Public License, if you
9528# distribute this file as part of a program that contains a
9529# configuration script generated by Autoconf, you may include it under
9530# the same distribution terms that you use for the rest of that program.
9531
9532# A sed program that does not truncate output.
9533SED=$lt_SED
9534
9535# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9536Xsed="$SED -e 1s/^X//"
9537
9538# The HP-UX ksh and POSIX shell print the target directory to stdout
9539# if CDPATH is set.
9540(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9541
9542# The names of the tagged configurations supported by this script.
9543available_tags=
9544
9545# ### BEGIN LIBTOOL CONFIG
9546
9547# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9548
9549# Shell to use when invoking shell scripts.
9550SHELL=$lt_SHELL
9551
9552# Whether or not to build shared libraries.
9553build_libtool_libs=$enable_shared
9554
9555# Whether or not to build static libraries.
9556build_old_libs=$enable_static
9557
9558# Whether or not to add -lc for building shared libraries.
9559build_libtool_need_lc=$archive_cmds_need_lc
9560
9561# Whether or not to disallow shared libs when runtime libs are static
9562allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9563
9564# Whether or not to optimize for fast installation.
9565fast_install=$enable_fast_install
9566
9567# The host system.
9568host_alias=$host_alias
9569host=$host
9570host_os=$host_os
9571
9572# The build system.
9573build_alias=$build_alias
9574build=$build
9575build_os=$build_os
9576
9577# An echo program that does not interpret backslashes.
9578echo=$lt_echo
9579
9580# The archiver.
9581AR=$lt_AR
9582AR_FLAGS=$lt_AR_FLAGS
9583
9584# A C compiler.
9585LTCC=$lt_LTCC
9586
9587# LTCC compiler flags.
9588LTCFLAGS=$lt_LTCFLAGS
9589
9590# A language-specific compiler.
9591CC=$lt_compiler
9592
9593# Is the compiler the GNU C compiler?
9594with_gcc=$GCC
9595
9596gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9597gcc_ver=\`gcc -dumpversion\`
9598
9599# An ERE matcher.
9600EGREP=$lt_EGREP
9601
9602# The linker used to build libraries.
9603LD=$lt_LD
9604
9605# Whether we need hard or soft links.
9606LN_S=$lt_LN_S
9607
9608# A BSD-compatible nm program.
9609NM=$lt_NM
9610
9611# A symbol stripping program
9612STRIP=$lt_STRIP
9613
9614# Used to examine libraries when file_magic_cmd begins "file"
9615MAGIC_CMD=$MAGIC_CMD
9616
9617# Used on cygwin: DLL creation program.
9618DLLTOOL="$DLLTOOL"
9619
9620# Used on cygwin: object dumper.
9621OBJDUMP="$OBJDUMP"
9622
9623# Used on cygwin: assembler.
9624AS="$AS"
9625
9626# The name of the directory that contains temporary libtool files.
9627objdir=$objdir
9628
9629# How to create reloadable object files.
9630reload_flag=$lt_reload_flag
9631reload_cmds=$lt_reload_cmds
9632
9633# How to pass a linker flag through the compiler.
9634wl=$lt_lt_prog_compiler_wl
9635
9636# Object file suffix (normally "o").
9637objext="$ac_objext"
9638
9639# Old archive suffix (normally "a").
9640libext="$libext"
9641
9642# Shared library suffix (normally ".so").
9643shrext_cmds='$shrext_cmds'
9644
9645# Executable file suffix (normally "").
9646exeext="$exeext"
9647
9648# Additional compiler flags for building library objects.
9649pic_flag=$lt_lt_prog_compiler_pic
9650pic_mode=$pic_mode
9651
9652# What is the maximum length of a command?
9653max_cmd_len=$lt_cv_sys_max_cmd_len
9654
9655# Does compiler simultaneously support -c and -o options?
9656compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9657
9658# Must we lock files when doing compilation?
9659need_locks=$lt_need_locks
9660
9661# Do we need the lib prefix for modules?
9662need_lib_prefix=$need_lib_prefix
9663
9664# Do we need a version for libraries?
9665need_version=$need_version
9666
9667# Whether dlopen is supported.
9668dlopen_support=$enable_dlopen
9669
9670# Whether dlopen of programs is supported.
9671dlopen_self=$enable_dlopen_self
9672
9673# Whether dlopen of statically linked programs is supported.
9674dlopen_self_static=$enable_dlopen_self_static
9675
9676# Compiler flag to prevent dynamic linking.
9677link_static_flag=$lt_lt_prog_compiler_static
9678
9679# Compiler flag to turn off builtin functions.
9680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9681
9682# Compiler flag to allow reflexive dlopens.
9683export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9684
9685# Compiler flag to generate shared objects directly from archives.
9686whole_archive_flag_spec=$lt_whole_archive_flag_spec
9687
9688# Compiler flag to generate thread-safe objects.
9689thread_safe_flag_spec=$lt_thread_safe_flag_spec
9690
9691# Library versioning type.
9692version_type=$version_type
9693
9694# Format of library name prefix.
9695libname_spec=$lt_libname_spec
9696
9697# List of archive names. First name is the real one, the rest are links.
9698# The last name is the one that the linker finds with -lNAME.
9699library_names_spec=$lt_library_names_spec
9700
9701# The coded name of the library, if different from the real name.
9702soname_spec=$lt_soname_spec
9703
9704# Commands used to build and install an old-style archive.
9705RANLIB=$lt_RANLIB
9706old_archive_cmds=$lt_old_archive_cmds
9707old_postinstall_cmds=$lt_old_postinstall_cmds
9708old_postuninstall_cmds=$lt_old_postuninstall_cmds
9709
9710# Create an old-style archive from a shared archive.
9711old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9712
9713# Create a temporary old-style archive to link instead of a shared archive.
9714old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9715
9716# Commands used to build and install a shared archive.
9717archive_cmds=$lt_archive_cmds
9718archive_expsym_cmds=$lt_archive_expsym_cmds
9719postinstall_cmds=$lt_postinstall_cmds
9720postuninstall_cmds=$lt_postuninstall_cmds
9721
9722# Commands used to build a loadable module (assumed same as above if empty)
9723module_cmds=$lt_module_cmds
9724module_expsym_cmds=$lt_module_expsym_cmds
9725
9726# Commands to strip libraries.
9727old_striplib=$lt_old_striplib
9728striplib=$lt_striplib
9729
9730# Dependencies to place before the objects being linked to create a
9731# shared library.
9732predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9733
9734# Dependencies to place after the objects being linked to create a
9735# shared library.
9736postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9737
9738# Dependencies to place before the objects being linked to create a
9739# shared library.
9740predeps=$lt_predeps
9741
9742# Dependencies to place after the objects being linked to create a
9743# shared library.
9744postdeps=$lt_postdeps
9745
9746# The library search path used internally by the compiler when linking
9747# a shared library.
9748compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9749
9750# Method to check whether dependent libraries are shared objects.
9751deplibs_check_method=$lt_deplibs_check_method
9752
9753# Command to use when deplibs_check_method == file_magic.
9754file_magic_cmd=$lt_file_magic_cmd
9755
9756# Flag that allows shared libraries with undefined symbols to be built.
9757allow_undefined_flag=$lt_allow_undefined_flag
9758
9759# Flag that forces no undefined symbols.
9760no_undefined_flag=$lt_no_undefined_flag
9761
9762# Commands used to finish a libtool library installation in a directory.
9763finish_cmds=$lt_finish_cmds
9764
9765# Same as above, but a single script fragment to be evaled but not shown.
9766finish_eval=$lt_finish_eval
9767
9768# Take the output of nm and produce a listing of raw symbols and C names.
9769global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9770
9771# Transform the output of nm in a proper C declaration
9772global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9773
9774# Transform the output of nm in a C name address pair
9775global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9776
9777# This is the shared library runtime path variable.
9778runpath_var=$runpath_var
9779
9780# This is the shared library path variable.
9781shlibpath_var=$shlibpath_var
9782
9783# Is shlibpath searched before the hard-coded library search path?
9784shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9785
9786# How to hardcode a shared library path into an executable.
9787hardcode_action=$hardcode_action
9788
9789# Whether we should hardcode library paths into libraries.
9790hardcode_into_libs=$hardcode_into_libs
9791
9792# Flag to hardcode \$libdir into a binary during linking.
9793# This must work even if \$libdir does not exist.
9794hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9795
9796# If ld is used when linking, flag to hardcode \$libdir into
9797# a binary during linking. This must work even if \$libdir does
9798# not exist.
9799hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9800
9801# Whether we need a single -rpath flag with a separated argument.
9802hardcode_libdir_separator=$lt_hardcode_libdir_separator
9803
9804# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9805# resulting binary.
9806hardcode_direct=$hardcode_direct
9807
9808# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9809# resulting binary.
9810hardcode_minus_L=$hardcode_minus_L
9811
9812# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9813# the resulting binary.
9814hardcode_shlibpath_var=$hardcode_shlibpath_var
9815
9816# Set to yes if building a shared library automatically hardcodes DIR into the library
9817# and all subsequent libraries and executables linked against it.
9818hardcode_automatic=$hardcode_automatic
9819
9820# Variables whose values should be saved in libtool wrapper scripts and
9821# restored at relink time.
9822variables_saved_for_relink="$variables_saved_for_relink"
9823
9824# Whether libtool must link a program against all its dependency libraries.
9825link_all_deplibs=$link_all_deplibs
9826
9827# Compile-time system search path for libraries
9828sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9829
9830# Run-time system search path for libraries
9831sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9832
9833# Fix the shell variable \$srcfile for the compiler.
9834fix_srcfile_path="$fix_srcfile_path"
9835
9836# Set to yes if exported symbols are required.
9837always_export_symbols=$always_export_symbols
9838
9839# The commands to list exported symbols.
9840export_symbols_cmds=$lt_export_symbols_cmds
9841
9842# The commands to extract the exported symbol list from a shared archive.
9843extract_expsyms_cmds=$lt_extract_expsyms_cmds
9844
9845# Symbols that should not be listed in the preloaded symbols.
9846exclude_expsyms=$lt_exclude_expsyms
9847
9848# Symbols that must always be exported.
9849include_expsyms=$lt_include_expsyms
9850
9851# ### END LIBTOOL CONFIG
9852
9853__EOF__
9854
9855
9856 case $host_os in
9857 aix3*)
9858 cat <<\EOF >> "$cfgfile"
9859
9860# AIX sometimes has problems with the GCC collect2 program. For some
9861# reason, if we set the COLLECT_NAMES environment variable, the problems
9862# vanish in a puff of smoke.
9863if test "X${COLLECT_NAMES+set}" != Xset; then
9864 COLLECT_NAMES=
9865 export COLLECT_NAMES
9866fi
9867EOF
9868 ;;
9869 esac
9870
9871 # We use sed instead of cat because bash on DJGPP gets confused if
9872 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9873 # text mode, it properly converts lines to CR/LF. This bash problem
9874 # is reportedly fixed, but why not run on old versions too?
9875 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9876
9877 mv -f "$cfgfile" "$ofile" || \
9878 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9879 chmod +x "$ofile"
9880
9881else
9882 # If there is no Makefile yet, we rely on a make rule to execute
9883 # `config.status --recheck' to rerun these tests and create the
9884 # libtool script then.
9885 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9886 if test -f "$ltmain_in"; then
9887 test -f Makefile && make "$ltmain"
9888 fi
9889fi
9890
9891
9892ac_ext=c
9893ac_cpp='$CPP $CPPFLAGS'
9894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9896ac_compiler_gnu=$ac_cv_c_compiler_gnu
9897
9898CC="$lt_save_CC"
9899
9900
9901# Check whether --with-tags or --without-tags was given.
9902if test "${with_tags+set}" = set; then
9903 withval="$with_tags"
9904 tagnames="$withval"
9905fi;
9906
9907if test -f "$ltmain" && test -n "$tagnames"; then
9908 if test ! -f "${ofile}"; then
9909 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9910echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9911 fi
9912
9913 if test -z "$LTCC"; then
9914 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9915 if test -z "$LTCC"; then
9916 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9917echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9918 else
9919 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9920echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9921 fi
9922 fi
9923 if test -z "$LTCFLAGS"; then
9924 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9925 fi
9926
9927 # Extract list of available tagged configurations in $ofile.
9928 # Note that this assumes the entire list is on one line.
9929 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9930
9931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9932 for tagname in $tagnames; do
9933 IFS="$lt_save_ifs"
9934 # Check whether tagname contains only valid characters
9935 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9936 "") ;;
9937 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9938echo "$as_me: error: invalid tag name: $tagname" >&2;}
9939 { (exit 1); exit 1; }; }
9940 ;;
9941 esac
9942
9943 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9944 then
9945 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9946echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9947 { (exit 1); exit 1; }; }
9948 fi
9949
9950 # Update the list of available tags.
9951 if test -n "$tagname"; then
9952 echo appending configuration tag \"$tagname\" to $ofile
9953
9954 case $tagname in
9955 CXX)
9956 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9957 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9958 (test "X$CXX" != "Xg++"))) ; then
9959 ac_ext=cc
9960ac_cpp='$CXXCPP $CPPFLAGS'
9961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9964
9965
9966
9967
9968archive_cmds_need_lc_CXX=no
9969allow_undefined_flag_CXX=
9970always_export_symbols_CXX=no
9971archive_expsym_cmds_CXX=
9972export_dynamic_flag_spec_CXX=
9973hardcode_direct_CXX=no
9974hardcode_libdir_flag_spec_CXX=
9975hardcode_libdir_flag_spec_ld_CXX=
9976hardcode_libdir_separator_CXX=
9977hardcode_minus_L_CXX=no
9978hardcode_shlibpath_var_CXX=unsupported
9979hardcode_automatic_CXX=no
9980module_cmds_CXX=
9981module_expsym_cmds_CXX=
9982link_all_deplibs_CXX=unknown
9983old_archive_cmds_CXX=$old_archive_cmds
9984no_undefined_flag_CXX=
9985whole_archive_flag_spec_CXX=
9986enable_shared_with_static_runtimes_CXX=no
9987
9988# Dependencies to place before and after the object being linked:
9989predep_objects_CXX=
9990postdep_objects_CXX=
9991predeps_CXX=
9992postdeps_CXX=
9993compiler_lib_search_path_CXX=
9994
9995# Source file extension for C++ test sources.
9996ac_ext=cpp
9997
9998# Object file extension for compiled C++ test sources.
9999objext=o
10000objext_CXX=$objext
10001
10002# Code to be used in simple compile tests
10003lt_simple_compile_test_code="int some_variable = 0;\n"
10004
10005# Code to be used in simple link tests
10006lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10007
10008# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10009
10010# If no C compiler was specified, use CC.
10011LTCC=${LTCC-"$CC"}
10012
10013# If no C compiler flags were specified, use CFLAGS.
10014LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10015
10016# Allow CC to be a program name with arguments.
10017compiler=$CC
10018
10019
10020# save warnings/boilerplate of simple test code
10021ac_outfile=conftest.$ac_objext
10022printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10023eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10024_lt_compiler_boilerplate=`cat conftest.err`
10025$rm conftest*
10026
10027ac_outfile=conftest.$ac_objext
10028printf "$lt_simple_link_test_code" >conftest.$ac_ext
10029eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10030_lt_linker_boilerplate=`cat conftest.err`
10031$rm conftest*
10032
10033
10034# Allow CC to be a program name with arguments.
10035lt_save_CC=$CC
10036lt_save_LD=$LD
10037lt_save_GCC=$GCC
10038GCC=$GXX
10039lt_save_with_gnu_ld=$with_gnu_ld
10040lt_save_path_LD=$lt_cv_path_LD
10041if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10042 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10043else
10044 $as_unset lt_cv_prog_gnu_ld
10045fi
10046if test -n "${lt_cv_path_LDCXX+set}"; then
10047 lt_cv_path_LD=$lt_cv_path_LDCXX
10048else
10049 $as_unset lt_cv_path_LD
10050fi
10051test -z "${LDCXX+set}" || LD=$LDCXX
10052CC=${CXX-"c++"}
10053compiler=$CC
10054compiler_CXX=$CC
10055for cc_temp in $compiler""; do
10056 case $cc_temp in
10057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10059 \-*) ;;
10060 *) break;;
10061 esac
10062done
10063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10064
10065
10066# We don't want -fno-exception wen compiling C++ code, so set the
10067# no_builtin_flag separately
10068if test "$GXX" = yes; then
10069 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10070else
10071 lt_prog_compiler_no_builtin_flag_CXX=
10072fi
10073
10074if test "$GXX" = yes; then
10075 # Set up default GNU C++ configuration
10076
10077
10078# Check whether --with-gnu-ld or --without-gnu-ld was given.
10079if test "${with_gnu_ld+set}" = set; then
10080 withval="$with_gnu_ld"
10081 test "$withval" = no || with_gnu_ld=yes
10082else
10083 with_gnu_ld=no
10084fi;
10085ac_prog=ld
10086if test "$GCC" = yes; then
10087 # Check if gcc -print-prog-name=ld gives a path.
10088 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10089echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10090 case $host in
10091 *-*-mingw*)
10092 # gcc leaves a trailing carriage return which upsets mingw
10093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10094 *)
10095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10096 esac
10097 case $ac_prog in
10098 # Accept absolute paths.
10099 [\\/]* | ?:[\\/]*)
10100 re_direlt='/[^/][^/]*/\.\./'
10101 # Canonicalize the pathname of ld
10102 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10104 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10105 done
10106 test -z "$LD" && LD="$ac_prog"
10107 ;;
10108 "")
10109 # If it fails, then pretend we aren't using GCC.
10110 ac_prog=ld
10111 ;;
10112 *)
10113 # If it is relative, then search for the first ld in PATH.
10114 with_gnu_ld=unknown
10115 ;;
10116 esac
10117elif test "$with_gnu_ld" = yes; then
10118 echo "$as_me:$LINENO: checking for GNU ld" >&5
10119echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10120else
10121 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10122echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10123fi
10124if test "${lt_cv_path_LD+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127 if test -z "$LD"; then
10128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10129 for ac_dir in $PATH; do
10130 IFS="$lt_save_ifs"
10131 test -z "$ac_dir" && ac_dir=.
10132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10133 lt_cv_path_LD="$ac_dir/$ac_prog"
10134 # Check to see if the program is GNU ld. I'd rather use --version,
10135 # but apparently some variants of GNU ld only accept -v.
10136 # Break only if it was the GNU/non-GNU ld that we prefer.
10137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10138 *GNU* | *'with BFD'*)
10139 test "$with_gnu_ld" != no && break
10140 ;;
10141 *)
10142 test "$with_gnu_ld" != yes && break
10143 ;;
10144 esac
10145 fi
10146 done
10147 IFS="$lt_save_ifs"
10148else
10149 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10150fi
10151fi
10152
10153LD="$lt_cv_path_LD"
10154if test -n "$LD"; then
10155 echo "$as_me:$LINENO: result: $LD" >&5
10156echo "${ECHO_T}$LD" >&6
10157else
10158 echo "$as_me:$LINENO: result: no" >&5
10159echo "${ECHO_T}no" >&6
10160fi
10161test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10162echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10163 { (exit 1); exit 1; }; }
10164echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10165echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10166if test "${lt_cv_prog_gnu_ld+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10170case `$LD -v 2>&1 </dev/null` in
10171*GNU* | *'with BFD'*)
10172 lt_cv_prog_gnu_ld=yes
10173 ;;
10174*)
10175 lt_cv_prog_gnu_ld=no
10176 ;;
10177esac
10178fi
10179echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10180echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10181with_gnu_ld=$lt_cv_prog_gnu_ld
10182
10183
10184
10185 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10186 # archiving commands below assume that GNU ld is being used.
10187 if test "$with_gnu_ld" = yes; then
10188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10189 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10190
10191 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10193
10194 # If archive_cmds runs LD, not CC, wlarc should be empty
10195 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10196 # investigate it a little bit more. (MM)
10197 wlarc='${wl}'
10198
10199 # ancient GNU ld didn't support --whole-archive et. al.
10200 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10201 grep 'no-whole-archive' > /dev/null; then
10202 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10203 else
10204 whole_archive_flag_spec_CXX=
10205 fi
10206 else
10207 with_gnu_ld=no
10208 wlarc=
10209
10210 # A generic and very simple default shared library creation
10211 # command for GNU C++ for the case where it uses the native
10212 # linker, instead of GNU ld. If possible, this setting should
10213 # overridden to take advantage of the native linker features on
10214 # the platform it is being used on.
10215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10216 fi
10217
10218 # Commands to make compiler produce verbose output that lists
10219 # what "hidden" libraries, object files and flags are used when
10220 # linking a shared library.
10221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10222
10223else
10224 GXX=no
10225 with_gnu_ld=no
10226 wlarc=
10227fi
10228
10229# PORTME: fill in a description of your system's C++ link characteristics
10230echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10231echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10232ld_shlibs_CXX=yes
10233case $host_os in
10234 aix3*)
10235 # FIXME: insert proper C++ library support
10236 ld_shlibs_CXX=no
10237 ;;
10238 aix4* | aix5*)
10239 if test "$host_cpu" = ia64; then
10240 # On IA64, the linker does run time linking by default, so we don't
10241 # have to do anything special.
10242 aix_use_runtimelinking=no
10243 exp_sym_flag='-Bexport'
10244 no_entry_flag=""
10245 else
10246 aix_use_runtimelinking=no
10247
10248 # Test if we are trying to use run time linking or normal
10249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10250 # need to do runtime linking.
10251 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10252 for ld_flag in $LDFLAGS; do
10253 case $ld_flag in
10254 *-brtl*)
10255 aix_use_runtimelinking=yes
10256 break
10257 ;;
10258 esac
10259 done
10260 ;;
10261 esac
10262
10263 exp_sym_flag='-bexport'
10264 no_entry_flag='-bnoentry'
10265 fi
10266
10267 # When large executables or shared objects are built, AIX ld can
10268 # have problems creating the table of contents. If linking a library
10269 # or program results in "error TOC overflow" add -mminimal-toc to
10270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10272
10273 archive_cmds_CXX=''
10274 hardcode_direct_CXX=yes
10275 hardcode_libdir_separator_CXX=':'
10276 link_all_deplibs_CXX=yes
10277
10278 if test "$GXX" = yes; then
10279 case $host_os in aix4.[012]|aix4.[012].*)
10280 # We only want to do this on AIX 4.2 and lower, the check
10281 # below for broken collect2 doesn't work under 4.3+
10282 collect2name=`${CC} -print-prog-name=collect2`
10283 if test -f "$collect2name" && \
10284 strings "$collect2name" | grep resolve_lib_name >/dev/null
10285 then
10286 # We have reworked collect2
10287 hardcode_direct_CXX=yes
10288 else
10289 # We have old collect2
10290 hardcode_direct_CXX=unsupported
10291 # It fails to find uninstalled libraries when the uninstalled
10292 # path is not listed in the libpath. Setting hardcode_minus_L
10293 # to unsupported forces relinking
10294 hardcode_minus_L_CXX=yes
10295 hardcode_libdir_flag_spec_CXX='-L$libdir'
10296 hardcode_libdir_separator_CXX=
10297 fi
10298 ;;
10299 esac
10300 shared_flag='-shared'
10301 if test "$aix_use_runtimelinking" = yes; then
10302 shared_flag="$shared_flag "'${wl}-G'
10303 fi
10304 else
10305 # not using gcc
10306 if test "$host_cpu" = ia64; then
10307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10308 # chokes on -Wl,-G. The following line is correct:
10309 shared_flag='-G'
10310 else
10311 if test "$aix_use_runtimelinking" = yes; then
10312 shared_flag='${wl}-G'
10313 else
10314 shared_flag='${wl}-bM:SRE'
10315 fi
10316 fi
10317 fi
10318
10319 # It seems that -bexpall does not export symbols beginning with
10320 # underscore (_), so it is better to generate a list of symbols to export.
10321 always_export_symbols_CXX=yes
10322 if test "$aix_use_runtimelinking" = yes; then
10323 # Warning - without using the other runtime loading flags (-brtl),
10324 # -berok will link without error, but may produce a broken library.
10325 allow_undefined_flag_CXX='-berok'
10326 # Determine the default libpath from the value encoded in an empty executable.
10327 cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
10333
10334int
10335main ()
10336{
10337
10338 ;
10339 return 0;
10340}
10341_ACEOF
10342rm -f conftest.$ac_objext conftest$ac_exeext
10343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_cxx_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364
10365aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10366}'`
10367# Check for a 64-bit object if we didn't find anything.
10368if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10369}'`; fi
10370else
10371 echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374fi
10375rm -f conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10377if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10378
10379 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10380
10381 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10382 else
10383 if test "$host_cpu" = ia64; then
10384 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10385 allow_undefined_flag_CXX="-z nodefs"
10386 archive_expsym_cmds_CXX="\$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"
10387 else
10388 # Determine the default libpath from the value encoded in an empty executable.
10389 cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395
10396int
10397main ()
10398{
10399
10400 ;
10401 return 0;
10402}
10403_ACEOF
10404rm -f conftest.$ac_objext conftest$ac_exeext
10405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406 (eval $ac_link) 2>conftest.er1
10407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
10413 { ac_try='test -z "$ac_cxx_werror_flag"
10414 || test ! -s conftest.err'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try='test -s conftest$ac_exeext'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
10426
10427aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10428}'`
10429# Check for a 64-bit object if we didn't find anything.
10430if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10431}'`; fi
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
10436fi
10437rm -f conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10440
10441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10442 # Warning - without using the other run time loading flags,
10443 # -berok will link without error, but may produce a broken library.
10444 no_undefined_flag_CXX=' ${wl}-bernotok'
10445 allow_undefined_flag_CXX=' ${wl}-berok'
10446 # Exported symbols can be pulled into shared objects from archives
10447 whole_archive_flag_spec_CXX='$convenience'
10448 archive_cmds_need_lc_CXX=yes
10449 # This is similar to how AIX traditionally builds its shared libraries.
10450 archive_expsym_cmds_CXX="\$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'
10451 fi
10452 fi
10453 ;;
10454
10455 beos*)
10456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10457 allow_undefined_flag_CXX=unsupported
10458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10459 # support --undefined. This deserves some investigation. FIXME
10460 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461 else
10462 ld_shlibs_CXX=no
10463 fi
10464 ;;
10465
10466 chorus*)
10467 case $cc_basename in
10468 *)
10469 # FIXME: insert proper C++ library support
10470 ld_shlibs_CXX=no
10471 ;;
10472 esac
10473 ;;
10474
10475 cygwin* | mingw* | pw32*)
10476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10477 # as there is no search path for DLLs.
10478 hardcode_libdir_flag_spec_CXX='-L$libdir'
10479 allow_undefined_flag_CXX=unsupported
10480 always_export_symbols_CXX=no
10481 enable_shared_with_static_runtimes_CXX=yes
10482
10483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10484 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10485 # If the export-symbols file already is a .def file (1st line
10486 # is EXPORTS), use it as is; otherwise, prepend...
10487 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10488 cp $export_symbols $output_objdir/$soname.def;
10489 else
10490 echo EXPORTS > $output_objdir/$soname.def;
10491 cat $export_symbols >> $output_objdir/$soname.def;
10492 fi~
10493 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10494 else
10495 ld_shlibs_CXX=no
10496 fi
10497 ;;
10498 darwin* | rhapsody*)
10499 case $host_os in
10500 rhapsody* | darwin1.[012])
10501 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10502 ;;
10503 *) # Darwin 1.3 on
10504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10505 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10506 else
10507 case ${MACOSX_DEPLOYMENT_TARGET} in
10508 10.[012])
10509 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10510 ;;
10511 10.*)
10512 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10513 ;;
10514 esac
10515 fi
10516 ;;
10517 esac
10518 archive_cmds_need_lc_CXX=no
10519 hardcode_direct_CXX=no
10520 hardcode_automatic_CXX=yes
10521 hardcode_shlibpath_var_CXX=unsupported
10522 whole_archive_flag_spec_CXX=''
10523 link_all_deplibs_CXX=yes
10524
10525 if test "$GXX" = yes ; then
10526 lt_int_apple_cc_single_mod=no
10527 output_verbose_link_cmd='echo'
10528 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10529 lt_int_apple_cc_single_mod=yes
10530 fi
10531 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10532 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10533 else
10534 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10535 fi
10536 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10539 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10540 else
10541 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10542 fi
10543 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10544 else
10545 case $cc_basename in
10546 xlc*)
10547 output_verbose_link_cmd='echo'
10548 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10549 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10550 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10551 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10552 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10553 ;;
10554 *)
10555 ld_shlibs_CXX=no
10556 ;;
10557 esac
10558 fi
10559 ;;
10560
10561 dgux*)
10562 case $cc_basename in
10563 ec++*)
10564 # FIXME: insert proper C++ library support
10565 ld_shlibs_CXX=no
10566 ;;
10567 ghcx*)
10568 # Green Hills C++ Compiler
10569 # FIXME: insert proper C++ library support
10570 ld_shlibs_CXX=no
10571 ;;
10572 *)
10573 # FIXME: insert proper C++ library support
10574 ld_shlibs_CXX=no
10575 ;;
10576 esac
10577 ;;
10578 freebsd[12]*)
10579 # C++ shared libraries reported to be fairly broken before switch to ELF
10580 ld_shlibs_CXX=no
10581 ;;
10582 freebsd-elf*)
10583 archive_cmds_need_lc_CXX=no
10584 ;;
10585 freebsd* | kfreebsd*-gnu | dragonfly*)
10586 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10587 # conventions
10588 ld_shlibs_CXX=yes
10589 ;;
10590 gnu*)
10591 ;;
10592 hpux9*)
10593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10594 hardcode_libdir_separator_CXX=:
10595 export_dynamic_flag_spec_CXX='${wl}-E'
10596 hardcode_direct_CXX=yes
10597 hardcode_minus_L_CXX=yes # Not in the search PATH,
10598 # but as the default
10599 # location of the library.
10600
10601 case $cc_basename in
10602 CC*)
10603 # FIXME: insert proper C++ library support
10604 ld_shlibs_CXX=no
10605 ;;
10606 aCC*)
10607 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10608 # Commands to make compiler produce verbose output that lists
10609 # what "hidden" libraries, object files and flags are used when
10610 # linking a shared library.
10611 #
10612 # There doesn't appear to be a way to prevent this compiler from
10613 # explicitly linking system object files so we need to strip them
10614 # from the output so that they don't get included in the library
10615 # dependencies.
10616 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10617 ;;
10618 *)
10619 if test "$GXX" = yes; then
10620 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10621 else
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10624 fi
10625 ;;
10626 esac
10627 ;;
10628 hpux10*|hpux11*)
10629 if test $with_gnu_ld = no; then
10630 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10631 hardcode_libdir_separator_CXX=:
10632
10633 case $host_cpu in
10634 hppa*64*|ia64*)
10635 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10636 ;;
10637 *)
10638 export_dynamic_flag_spec_CXX='${wl}-E'
10639 ;;
10640 esac
10641 fi
10642 case $host_cpu in
10643 hppa*64*|ia64*)
10644 hardcode_direct_CXX=no
10645 hardcode_shlibpath_var_CXX=no
10646 ;;
10647 *)
10648 hardcode_direct_CXX=yes
10649 hardcode_minus_L_CXX=yes # Not in the search PATH,
10650 # but as the default
10651 # location of the library.
10652 ;;
10653 esac
10654
10655 case $cc_basename in
10656 CC*)
10657 # FIXME: insert proper C++ library support
10658 ld_shlibs_CXX=no
10659 ;;
10660 aCC*)
10661 case $host_cpu in
10662 hppa*64*)
10663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10664 ;;
10665 ia64*)
10666 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10667 ;;
10668 *)
10669 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10670 ;;
10671 esac
10672 # Commands to make compiler produce verbose output that lists
10673 # what "hidden" libraries, object files and flags are used when
10674 # linking a shared library.
10675 #
10676 # There doesn't appear to be a way to prevent this compiler from
10677 # explicitly linking system object files so we need to strip them
10678 # from the output so that they don't get included in the library
10679 # dependencies.
10680 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10681 ;;
10682 *)
10683 if test "$GXX" = yes; then
10684 if test $with_gnu_ld = no; then
10685 case $host_cpu in
10686 hppa*64*)
10687 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10688 ;;
10689 ia64*)
10690 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10691 ;;
10692 *)
10693 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10694 ;;
10695 esac
10696 fi
10697 else
10698 # FIXME: insert proper C++ library support
10699 ld_shlibs_CXX=no
10700 fi
10701 ;;
10702 esac
10703 ;;
10704 interix3*)
10705 hardcode_direct_CXX=no
10706 hardcode_shlibpath_var_CXX=no
10707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10708 export_dynamic_flag_spec_CXX='${wl}-E'
10709 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10710 # Instead, shared libraries are loaded at an image base (0x10000000 by
10711 # default) and relocated if they conflict, which is a slow very memory
10712 # consuming and fragmenting process. To avoid this, we pick a random,
10713 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10714 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10715 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10716 archive_expsym_cmds_CXX='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'
10717 ;;
10718 irix5* | irix6*)
10719 case $cc_basename in
10720 CC*)
10721 # SGI C++
10722 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10723
10724 # Archives containing C++ object files must be created using
10725 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10726 # necessary to make sure instantiated templates are included
10727 # in the archive.
10728 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10729 ;;
10730 *)
10731 if test "$GXX" = yes; then
10732 if test "$with_gnu_ld" = no; then
10733 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10734 else
10735 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10736 fi
10737 fi
10738 link_all_deplibs_CXX=yes
10739 ;;
10740 esac
10741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10742 hardcode_libdir_separator_CXX=:
10743 ;;
10744 linux*)
10745 case $cc_basename in
10746 KCC*)
10747 # Kuck and Associates, Inc. (KAI) C++ Compiler
10748
10749 # KCC will only create a shared library if the output file
10750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10751 # to its proper name (with version) after linking.
10752 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10753 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10754 # Commands to make compiler produce verbose output that lists
10755 # what "hidden" libraries, object files and flags are used when
10756 # linking a shared library.
10757 #
10758 # There doesn't appear to be a way to prevent this compiler from
10759 # explicitly linking system object files so we need to strip them
10760 # from the output so that they don't get included in the library
10761 # dependencies.
10762 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10763
10764 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10766
10767 # Archives containing C++ object files must be created using
10768 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10769 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10770 ;;
10771 icpc*)
10772 # Intel C++
10773 with_gnu_ld=yes
10774 # version 8.0 and above of icpc choke on multiply defined symbols
10775 # if we add $predep_objects and $postdep_objects, however 7.1 and
10776 # earlier do not add the objects themselves.
10777 case `$CC -V 2>&1` in
10778 *"Version 7."*)
10779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10780 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10781 ;;
10782 *) # Version 8.0 or newer
10783 tmp_idyn=
10784 case $host_cpu in
10785 ia64*) tmp_idyn=' -i_dynamic';;
10786 esac
10787 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10788 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10789 ;;
10790 esac
10791 archive_cmds_need_lc_CXX=no
10792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10794 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10795 ;;
10796 pgCC*)
10797 # Portland Group C++ compiler
10798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10799 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10800
10801 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10803 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10804 ;;
10805 cxx*)
10806 # Compaq C++
10807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10808 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10809
10810 runpath_var=LD_RUN_PATH
10811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10812 hardcode_libdir_separator_CXX=:
10813
10814 # Commands to make compiler produce verbose output that lists
10815 # what "hidden" libraries, object files and flags are used when
10816 # linking a shared library.
10817 #
10818 # There doesn't appear to be a way to prevent this compiler from
10819 # explicitly linking system object files so we need to strip them
10820 # from the output so that they don't get included in the library
10821 # dependencies.
10822 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10823 ;;
10824 esac
10825 ;;
10826 lynxos*)
10827 # FIXME: insert proper C++ library support
10828 ld_shlibs_CXX=no
10829 ;;
10830 m88k*)
10831 # FIXME: insert proper C++ library support
10832 ld_shlibs_CXX=no
10833 ;;
10834 mvs*)
10835 case $cc_basename in
10836 cxx*)
10837 # FIXME: insert proper C++ library support
10838 ld_shlibs_CXX=no
10839 ;;
10840 *)
10841 # FIXME: insert proper C++ library support
10842 ld_shlibs_CXX=no
10843 ;;
10844 esac
10845 ;;
10846 netbsd*)
10847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10848 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10849 wlarc=
10850 hardcode_libdir_flag_spec_CXX='-R$libdir'
10851 hardcode_direct_CXX=yes
10852 hardcode_shlibpath_var_CXX=no
10853 fi
10854 # Workaround some broken pre-1.5 toolchains
10855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10856 ;;
10857 openbsd2*)
10858 # C++ shared libraries are fairly broken
10859 ld_shlibs_CXX=no
10860 ;;
10861 openbsd*)
10862 hardcode_direct_CXX=yes
10863 hardcode_shlibpath_var_CXX=no
10864 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10867 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10868 export_dynamic_flag_spec_CXX='${wl}-E'
10869 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10870 fi
10871 output_verbose_link_cmd='echo'
10872 ;;
10873 osf3*)
10874 case $cc_basename in
10875 KCC*)
10876 # Kuck and Associates, Inc. (KAI) C++ Compiler
10877
10878 # KCC will only create a shared library if the output file
10879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10880 # to its proper name (with version) after linking.
10881 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10882
10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10884 hardcode_libdir_separator_CXX=:
10885
10886 # Archives containing C++ object files must be created using
10887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10889
10890 ;;
10891 RCC*)
10892 # Rational C++ 2.4.1
10893 # FIXME: insert proper C++ library support
10894 ld_shlibs_CXX=no
10895 ;;
10896 cxx*)
10897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10898 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10899
10900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10901 hardcode_libdir_separator_CXX=:
10902
10903 # Commands to make compiler produce verbose output that lists
10904 # what "hidden" libraries, object files and flags are used when
10905 # linking a shared library.
10906 #
10907 # There doesn't appear to be a way to prevent this compiler from
10908 # explicitly linking system object files so we need to strip them
10909 # from the output so that they don't get included in the library
10910 # dependencies.
10911 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10912 ;;
10913 *)
10914 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10915 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10916 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10917
10918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10919 hardcode_libdir_separator_CXX=:
10920
10921 # Commands to make compiler produce verbose output that lists
10922 # what "hidden" libraries, object files and flags are used when
10923 # linking a shared library.
10924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10925
10926 else
10927 # FIXME: insert proper C++ library support
10928 ld_shlibs_CXX=no
10929 fi
10930 ;;
10931 esac
10932 ;;
10933 osf4* | osf5*)
10934 case $cc_basename in
10935 KCC*)
10936 # Kuck and Associates, Inc. (KAI) C++ Compiler
10937
10938 # KCC will only create a shared library if the output file
10939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10940 # to its proper name (with version) after linking.
10941 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10942
10943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10944 hardcode_libdir_separator_CXX=:
10945
10946 # Archives containing C++ object files must be created using
10947 # the KAI C++ compiler.
10948 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10949 ;;
10950 RCC*)
10951 # Rational C++ 2.4.1
10952 # FIXME: insert proper C++ library support
10953 ld_shlibs_CXX=no
10954 ;;
10955 cxx*)
10956 allow_undefined_flag_CXX=' -expect_unresolved \*'
10957 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10958 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10959 echo "-hidden">> $lib.exp~
10960 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10961 $rm $lib.exp'
10962
10963 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10964 hardcode_libdir_separator_CXX=:
10965
10966 # Commands to make compiler produce verbose output that lists
10967 # what "hidden" libraries, object files and flags are used when
10968 # linking a shared library.
10969 #
10970 # There doesn't appear to be a way to prevent this compiler from
10971 # explicitly linking system object files so we need to strip them
10972 # from the output so that they don't get included in the library
10973 # dependencies.
10974 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10975 ;;
10976 *)
10977 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10978 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10979 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10980
10981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10982 hardcode_libdir_separator_CXX=:
10983
10984 # Commands to make compiler produce verbose output that lists
10985 # what "hidden" libraries, object files and flags are used when
10986 # linking a shared library.
10987 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10988
10989 else
10990 # FIXME: insert proper C++ library support
10991 ld_shlibs_CXX=no
10992 fi
10993 ;;
10994 esac
10995 ;;
10996 psos*)
10997 # FIXME: insert proper C++ library support
10998 ld_shlibs_CXX=no
10999 ;;
11000 sunos4*)
11001 case $cc_basename in
11002 CC*)
11003 # Sun C++ 4.x
11004 # FIXME: insert proper C++ library support
11005 ld_shlibs_CXX=no
11006 ;;
11007 lcc*)
11008 # Lucid
11009 # FIXME: insert proper C++ library support
11010 ld_shlibs_CXX=no
11011 ;;
11012 *)
11013 # FIXME: insert proper C++ library support
11014 ld_shlibs_CXX=no
11015 ;;
11016 esac
11017 ;;
11018 solaris*)
11019 case $cc_basename in
11020 CC*)
11021 # Sun C++ 4.2, 5.x and Centerline C++
11022 archive_cmds_need_lc_CXX=yes
11023 no_undefined_flag_CXX=' -zdefs'
11024 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11025 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11026 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11027
11028 hardcode_libdir_flag_spec_CXX='-R$libdir'
11029 hardcode_shlibpath_var_CXX=no
11030 case $host_os in
11031 solaris2.[0-5] | solaris2.[0-5].*) ;;
11032 *)
11033 # The C++ compiler is used as linker so we must use $wl
11034 # flag to pass the commands to the underlying system
11035 # linker. We must also pass each convience library through
11036 # to the system linker between allextract/defaultextract.
11037 # The C++ compiler will combine linker options so we
11038 # cannot just pass the convience library names through
11039 # without $wl.
11040 # Supported since Solaris 2.6 (maybe 2.5.1?)
11041 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11042 ;;
11043 esac
11044 link_all_deplibs_CXX=yes
11045
11046 output_verbose_link_cmd='echo'
11047
11048 # Archives containing C++ object files must be created using
11049 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11050 # necessary to make sure instantiated templates are included
11051 # in the archive.
11052 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11053 ;;
11054 gcx*)
11055 # Green Hills C++ Compiler
11056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11057
11058 # The C++ compiler must be used to create the archive.
11059 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11060 ;;
11061 *)
11062 # GNU C++ compiler with Solaris linker
11063 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11064 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11065 if $CC --version | grep -v '^2\.7' > /dev/null; then
11066 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11067 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11068 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11069
11070 # Commands to make compiler produce verbose output that lists
11071 # what "hidden" libraries, object files and flags are used when
11072 # linking a shared library.
11073 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11074 else
11075 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11076 # platform.
11077 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11078 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11079 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11080
11081 # Commands to make compiler produce verbose output that lists
11082 # what "hidden" libraries, object files and flags are used when
11083 # linking a shared library.
11084 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11085 fi
11086
11087 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11088 fi
11089 ;;
11090 esac
11091 ;;
11092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11093 no_undefined_flag_CXX='${wl}-z,text'
11094 archive_cmds_need_lc_CXX=no
11095 hardcode_shlibpath_var_CXX=no
11096 runpath_var='LD_RUN_PATH'
11097
11098 case $cc_basename in
11099 CC*)
11100 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11101 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11102 ;;
11103 *)
11104 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11106 ;;
11107 esac
11108 ;;
11109 sysv5* | sco3.2v5* | sco5v6*)
11110 # Note: We can NOT use -z defs as we might desire, because we do not
11111 # link with -lc, and that would cause any symbols used from libc to
11112 # always be unresolved, which means just about no library would
11113 # ever link correctly. If we're not using GNU ld we use -z text
11114 # though, which does catch some bad symbols but isn't as heavy-handed
11115 # as -z defs.
11116 # For security reasons, it is highly recommended that you always
11117 # use absolute paths for naming shared libraries, and exclude the
11118 # DT_RUNPATH tag from executables and libraries. But doing so
11119 # requires that you compile everything twice, which is a pain.
11120 # So that behaviour is only enabled if SCOABSPATH is set to a
11121 # non-empty value in the environment. Most likely only useful for
11122 # creating official distributions of packages.
11123 # This is a hack until libtool officially supports absolute path
11124 # names for shared libraries.
11125 no_undefined_flag_CXX='${wl}-z,text'
11126 allow_undefined_flag_CXX='${wl}-z,nodefs'
11127 archive_cmds_need_lc_CXX=no
11128 hardcode_shlibpath_var_CXX=no
11129 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11130 hardcode_libdir_separator_CXX=':'
11131 link_all_deplibs_CXX=yes
11132 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11133 runpath_var='LD_RUN_PATH'
11134
11135 case $cc_basename in
11136 CC*)
11137 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11138 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11139 ;;
11140 *)
11141 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11142 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11143 ;;
11144 esac
11145 ;;
11146 tandem*)
11147 case $cc_basename in
11148 NCC*)
11149 # NonStop-UX NCC 3.20
11150 # FIXME: insert proper C++ library support
11151 ld_shlibs_CXX=no
11152 ;;
11153 *)
11154 # FIXME: insert proper C++ library support
11155 ld_shlibs_CXX=no
11156 ;;
11157 esac
11158 ;;
11159 vxworks*)
11160 # FIXME: insert proper C++ library support
11161 ld_shlibs_CXX=no
11162 ;;
11163 *)
11164 # FIXME: insert proper C++ library support
11165 ld_shlibs_CXX=no
11166 ;;
11167esac
11168echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11169echo "${ECHO_T}$ld_shlibs_CXX" >&6
11170test "$ld_shlibs_CXX" = no && can_build_shared=no
11171
11172GCC_CXX="$GXX"
11173LD_CXX="$LD"
11174
11175
11176cat > conftest.$ac_ext <<EOF
11177class Foo
11178{
11179public:
11180 Foo (void) { a = 0; }
11181private:
11182 int a;
11183};
11184EOF
11185
11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; then
11191 # Parse the compiler output and extract the necessary
11192 # objects, libraries and library flags.
11193
11194 # Sentinel used to keep track of whether or not we are before
11195 # the conftest object file.
11196 pre_test_object_deps_done=no
11197
11198 # The `*' in the case matches for architectures that use `case' in
11199 # $output_verbose_cmd can trigger glob expansion during the loop
11200 # eval without this substitution.
11201 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11202
11203 for p in `eval $output_verbose_link_cmd`; do
11204 case $p in
11205
11206 -L* | -R* | -l*)
11207 # Some compilers place space between "-{L,R}" and the path.
11208 # Remove the space.
11209 if test $p = "-L" \
11210 || test $p = "-R"; then
11211 prev=$p
11212 continue
11213 else
11214 prev=
11215 fi
11216
11217 if test "$pre_test_object_deps_done" = no; then
11218 case $p in
11219 -L* | -R*)
11220 # Internal compiler library paths should come after those
11221 # provided the user. The postdeps already come after the
11222 # user supplied libs so there is no need to process them.
11223 if test -z "$compiler_lib_search_path_CXX"; then
11224 compiler_lib_search_path_CXX="${prev}${p}"
11225 else
11226 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11227 fi
11228 ;;
11229 # The "-l" case would never come before the object being
11230 # linked, so don't bother handling this case.
11231 esac
11232 else
11233 if test -z "$postdeps_CXX"; then
11234 postdeps_CXX="${prev}${p}"
11235 else
11236 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11237 fi
11238 fi
11239 ;;
11240
11241 *.$objext)
11242 # This assumes that the test object file only shows up
11243 # once in the compiler output.
11244 if test "$p" = "conftest.$objext"; then
11245 pre_test_object_deps_done=yes
11246 continue
11247 fi
11248
11249 if test "$pre_test_object_deps_done" = no; then
11250 if test -z "$predep_objects_CXX"; then
11251 predep_objects_CXX="$p"
11252 else
11253 predep_objects_CXX="$predep_objects_CXX $p"
11254 fi
11255 else
11256 if test -z "$postdep_objects_CXX"; then
11257 postdep_objects_CXX="$p"
11258 else
11259 postdep_objects_CXX="$postdep_objects_CXX $p"
11260 fi
11261 fi
11262 ;;
11263
11264 *) ;; # Ignore the rest.
11265
11266 esac
11267 done
11268
11269 # Clean up.
11270 rm -f a.out a.exe
11271else
11272 echo "libtool.m4: error: problem compiling CXX test program"
11273fi
11274
11275$rm -f confest.$objext
11276
11277# PORTME: override above test on systems where it is broken
11278case $host_os in
11279interix3*)
11280 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11281 # hack all around it, let's just trust "g++" to DTRT.
11282 predep_objects_CXX=
11283 postdep_objects_CXX=
11284 postdeps_CXX=
11285 ;;
11286
11287solaris*)
11288 case $cc_basename in
11289 CC*)
11290 # Adding this requires a known-good setup of shared libraries for
11291 # Sun compiler versions before 5.6, else PIC objects from an old
11292 # archive will be linked into the output, leading to subtle bugs.
11293 postdeps_CXX='-lCstd -lCrun'
11294 ;;
11295 esac
11296 ;;
11297esac
11298
11299
11300case " $postdeps_CXX " in
11301*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11302esac
11303
11304lt_prog_compiler_wl_CXX=
11305lt_prog_compiler_pic_CXX=
11306lt_prog_compiler_static_CXX=
11307
11308echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11309echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11310
11311 # C++ specific cases for pic, static, wl, etc.
11312 if test "$GXX" = yes; then
11313 lt_prog_compiler_wl_CXX='-Wl,'
11314 lt_prog_compiler_static_CXX='-static'
11315
11316 case $host_os in
11317 aix*)
11318 # All AIX code is PIC.
11319 if test "$host_cpu" = ia64; then
11320 # AIX 5 now supports IA64 processor
11321 lt_prog_compiler_static_CXX='-Bstatic'
11322 fi
11323 ;;
11324 amigaos*)
11325 # FIXME: we need at least 68020 code to build shared libraries, but
11326 # adding the `-m68020' flag to GCC prevents building anything better,
11327 # like `-m68040'.
11328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11329 ;;
11330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11331 # PIC is the default for these OSes.
11332 ;;
11333 mingw* | os2* | pw32*)
11334 # This hack is so that the source file can tell whether it is being
11335 # built for inclusion in a dll (and should export symbols for example).
11336 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11337 ;;
11338 darwin* | rhapsody*)
11339 # PIC is the default on this platform
11340 # Common symbols not allowed in MH_DYLIB files
11341 lt_prog_compiler_pic_CXX='-fno-common'
11342 ;;
11343 *djgpp*)
11344 # DJGPP does not support shared libraries at all
11345 lt_prog_compiler_pic_CXX=
11346 ;;
11347 interix3*)
11348 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11349 # Instead, we relocate shared libraries at runtime.
11350 ;;
11351 sysv4*MP*)
11352 if test -d /usr/nec; then
11353 lt_prog_compiler_pic_CXX=-Kconform_pic
11354 fi
11355 ;;
11356 hpux*)
11357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11358 # not for PA HP-UX.
11359 case $host_cpu in
11360 hppa*64*|ia64*)
11361 ;;
11362 *)
11363 lt_prog_compiler_pic_CXX='-fPIC'
11364 ;;
11365 esac
11366 ;;
11367 *)
11368 lt_prog_compiler_pic_CXX='-fPIC'
11369 ;;
11370 esac
11371 else
11372 case $host_os in
11373 aix4* | aix5*)
11374 # All AIX code is PIC.
11375 if test "$host_cpu" = ia64; then
11376 # AIX 5 now supports IA64 processor
11377 lt_prog_compiler_static_CXX='-Bstatic'
11378 else
11379 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11380 fi
11381 ;;
11382 chorus*)
11383 case $cc_basename in
11384 cxch68*)
11385 # Green Hills C++ Compiler
11386 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11387 ;;
11388 esac
11389 ;;
11390 darwin*)
11391 # PIC is the default on this platform
11392 # Common symbols not allowed in MH_DYLIB files
11393 case $cc_basename in
11394 xlc*)
11395 lt_prog_compiler_pic_CXX='-qnocommon'
11396 lt_prog_compiler_wl_CXX='-Wl,'
11397 ;;
11398 esac
11399 ;;
11400 dgux*)
11401 case $cc_basename in
11402 ec++*)
11403 lt_prog_compiler_pic_CXX='-KPIC'
11404 ;;
11405 ghcx*)
11406 # Green Hills C++ Compiler
11407 lt_prog_compiler_pic_CXX='-pic'
11408 ;;
11409 *)
11410 ;;
11411 esac
11412 ;;
11413 freebsd* | kfreebsd*-gnu | dragonfly*)
11414 # FreeBSD uses GNU C++
11415 ;;
11416 hpux9* | hpux10* | hpux11*)
11417 case $cc_basename in
11418 CC*)
11419 lt_prog_compiler_wl_CXX='-Wl,'
11420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11421 if test "$host_cpu" != ia64; then
11422 lt_prog_compiler_pic_CXX='+Z'
11423 fi
11424 ;;
11425 aCC*)
11426 lt_prog_compiler_wl_CXX='-Wl,'
11427 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11428 case $host_cpu in
11429 hppa*64*|ia64*)
11430 # +Z the default
11431 ;;
11432 *)
11433 lt_prog_compiler_pic_CXX='+Z'
11434 ;;
11435 esac
11436 ;;
11437 *)
11438 ;;
11439 esac
11440 ;;
11441 interix*)
11442 # This is c89, which is MS Visual C++ (no shared libs)
11443 # Anyone wants to do a port?
11444 ;;
11445 irix5* | irix6* | nonstopux*)
11446 case $cc_basename in
11447 CC*)
11448 lt_prog_compiler_wl_CXX='-Wl,'
11449 lt_prog_compiler_static_CXX='-non_shared'
11450 # CC pic flag -KPIC is the default.
11451 ;;
11452 *)
11453 ;;
11454 esac
11455 ;;
11456 linux*)
11457 case $cc_basename in
11458 KCC*)
11459 # KAI C++ Compiler
11460 lt_prog_compiler_wl_CXX='--backend -Wl,'
11461 lt_prog_compiler_pic_CXX='-fPIC'
11462 ;;
11463 icpc* | ecpc*)
11464 # Intel C++
11465 lt_prog_compiler_wl_CXX='-Wl,'
11466 lt_prog_compiler_pic_CXX='-KPIC'
11467 lt_prog_compiler_static_CXX='-static'
11468 ;;
11469 pgCC*)
11470 # Portland Group C++ compiler.
11471 lt_prog_compiler_wl_CXX='-Wl,'
11472 lt_prog_compiler_pic_CXX='-fpic'
11473 lt_prog_compiler_static_CXX='-Bstatic'
11474 ;;
11475 cxx*)
11476 # Compaq C++
11477 # Make sure the PIC flag is empty. It appears that all Alpha
11478 # Linux and Compaq Tru64 Unix objects are PIC.
11479 lt_prog_compiler_pic_CXX=
11480 lt_prog_compiler_static_CXX='-non_shared'
11481 ;;
11482 *)
11483 ;;
11484 esac
11485 ;;
11486 lynxos*)
11487 ;;
11488 m88k*)
11489 ;;
11490 mvs*)
11491 case $cc_basename in
11492 cxx*)
11493 lt_prog_compiler_pic_CXX='-W c,exportall'
11494 ;;
11495 *)
11496 ;;
11497 esac
11498 ;;
11499 netbsd*)
11500 ;;
11501 osf3* | osf4* | osf5*)
11502 case $cc_basename in
11503 KCC*)
11504 lt_prog_compiler_wl_CXX='--backend -Wl,'
11505 ;;
11506 RCC*)
11507 # Rational C++ 2.4.1
11508 lt_prog_compiler_pic_CXX='-pic'
11509 ;;
11510 cxx*)
11511 # Digital/Compaq C++
11512 lt_prog_compiler_wl_CXX='-Wl,'
11513 # Make sure the PIC flag is empty. It appears that all Alpha
11514 # Linux and Compaq Tru64 Unix objects are PIC.
11515 lt_prog_compiler_pic_CXX=
11516 lt_prog_compiler_static_CXX='-non_shared'
11517 ;;
11518 *)
11519 ;;
11520 esac
11521 ;;
11522 psos*)
11523 ;;
11524 solaris*)
11525 case $cc_basename in
11526 CC*)
11527 # Sun C++ 4.2, 5.x and Centerline C++
11528 lt_prog_compiler_pic_CXX='-KPIC'
11529 lt_prog_compiler_static_CXX='-Bstatic'
11530 lt_prog_compiler_wl_CXX='-Qoption ld '
11531 ;;
11532 gcx*)
11533 # Green Hills C++ Compiler
11534 lt_prog_compiler_pic_CXX='-PIC'
11535 ;;
11536 *)
11537 ;;
11538 esac
11539 ;;
11540 sunos4*)
11541 case $cc_basename in
11542 CC*)
11543 # Sun C++ 4.x
11544 lt_prog_compiler_pic_CXX='-pic'
11545 lt_prog_compiler_static_CXX='-Bstatic'
11546 ;;
11547 lcc*)
11548 # Lucid
11549 lt_prog_compiler_pic_CXX='-pic'
11550 ;;
11551 *)
11552 ;;
11553 esac
11554 ;;
11555 tandem*)
11556 case $cc_basename in
11557 NCC*)
11558 # NonStop-UX NCC 3.20
11559 lt_prog_compiler_pic_CXX='-KPIC'
11560 ;;
11561 *)
11562 ;;
11563 esac
11564 ;;
11565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11566 case $cc_basename in
11567 CC*)
11568 lt_prog_compiler_wl_CXX='-Wl,'
11569 lt_prog_compiler_pic_CXX='-KPIC'
11570 lt_prog_compiler_static_CXX='-Bstatic'
11571 ;;
11572 esac
11573 ;;
11574 vxworks*)
11575 ;;
11576 *)
11577 lt_prog_compiler_can_build_shared_CXX=no
11578 ;;
11579 esac
11580 fi
11581
11582echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11583echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11584
11585#
11586# Check to make sure the PIC flag actually works.
11587#
11588if test -n "$lt_prog_compiler_pic_CXX"; then
11589
11590echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11591echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11592if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594else
11595 lt_prog_compiler_pic_works_CXX=no
11596 ac_outfile=conftest.$ac_objext
11597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11599 # Insert the option either (1) after the last *FLAGS variable, or
11600 # (2) before a word containing "conftest.", or (3) at the end.
11601 # Note that $ac_compile itself does not contain backslashes and begins
11602 # with a dollar sign (not a hyphen), so the echo should work correctly.
11603 # The option is referenced via a variable to avoid confusing sed.
11604 lt_compile=`echo "$ac_compile" | $SED \
11605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11607 -e 's:$: $lt_compiler_flag:'`
11608 (eval echo "\"\$as_me:11608: $lt_compile\"" >&5)
11609 (eval "$lt_compile" 2>conftest.err)
11610 ac_status=$?
11611 cat conftest.err >&5
11612 echo "$as_me:11612: \$? = $ac_status" >&5
11613 if (exit $ac_status) && test -s "$ac_outfile"; then
11614 # The compiler can only warn and ignore the option if not recognized
11615 # So say no if there are warnings other than the usual output.
11616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11619 lt_prog_compiler_pic_works_CXX=yes
11620 fi
11621 fi
11622 $rm conftest*
11623
11624fi
11625echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11626echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11627
11628if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11629 case $lt_prog_compiler_pic_CXX in
11630 "" | " "*) ;;
11631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11632 esac
11633else
11634 lt_prog_compiler_pic_CXX=
11635 lt_prog_compiler_can_build_shared_CXX=no
11636fi
11637
11638fi
11639case $host_os in
11640 # For platforms which do not support PIC, -DPIC is meaningless:
11641 *djgpp*)
11642 lt_prog_compiler_pic_CXX=
11643 ;;
11644 *)
11645 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11646 ;;
11647esac
11648
11649#
11650# Check to make sure the static flag actually works.
11651#
11652wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11653echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11654echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11655if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 lt_prog_compiler_static_works_CXX=no
11659 save_LDFLAGS="$LDFLAGS"
11660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11661 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11663 # The linker can only warn and ignore the option if not recognized
11664 # So say no if there are warnings
11665 if test -s conftest.err; then
11666 # Append any errors to the config.log.
11667 cat conftest.err 1>&5
11668 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11670 if diff conftest.exp conftest.er2 >/dev/null; then
11671 lt_prog_compiler_static_works_CXX=yes
11672 fi
11673 else
11674 lt_prog_compiler_static_works_CXX=yes
11675 fi
11676 fi
11677 $rm conftest*
11678 LDFLAGS="$save_LDFLAGS"
11679
11680fi
11681echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11682echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11683
11684if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11685 :
11686else
11687 lt_prog_compiler_static_CXX=
11688fi
11689
11690
11691echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11692echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11693if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11695else
11696 lt_cv_prog_compiler_c_o_CXX=no
11697 $rm -r conftest 2>/dev/null
11698 mkdir conftest
11699 cd conftest
11700 mkdir out
11701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11702
11703 lt_compiler_flag="-o out/conftest2.$ac_objext"
11704 # Insert the option either (1) after the last *FLAGS variable, or
11705 # (2) before a word containing "conftest.", or (3) at the end.
11706 # Note that $ac_compile itself does not contain backslashes and begins
11707 # with a dollar sign (not a hyphen), so the echo should work correctly.
11708 lt_compile=`echo "$ac_compile" | $SED \
11709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11711 -e 's:$: $lt_compiler_flag:'`
11712 (eval echo "\"\$as_me:11712: $lt_compile\"" >&5)
11713 (eval "$lt_compile" 2>out/conftest.err)
11714 ac_status=$?
11715 cat out/conftest.err >&5
11716 echo "$as_me:11716: \$? = $ac_status" >&5
11717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11718 then
11719 # The compiler can only warn and ignore the option if not recognized
11720 # So say no if there are warnings
11721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11724 lt_cv_prog_compiler_c_o_CXX=yes
11725 fi
11726 fi
11727 chmod u+w . 2>&5
11728 $rm conftest*
11729 # SGI C++ compiler will create directory out/ii_files/ for
11730 # template instantiation
11731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11732 $rm out/* && rmdir out
11733 cd ..
11734 rmdir conftest
11735 $rm conftest*
11736
11737fi
11738echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11739echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11740
11741
11742hard_links="nottested"
11743if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11744 # do not overwrite the value of need_locks provided by the user
11745 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11746echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11747 hard_links=yes
11748 $rm conftest*
11749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11750 touch conftest.a
11751 ln conftest.a conftest.b 2>&5 || hard_links=no
11752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11753 echo "$as_me:$LINENO: result: $hard_links" >&5
11754echo "${ECHO_T}$hard_links" >&6
11755 if test "$hard_links" = no; then
11756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11757echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11758 need_locks=warn
11759 fi
11760else
11761 need_locks=no
11762fi
11763
11764echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11765echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11766
11767 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11768 case $host_os in
11769 aix4* | aix5*)
11770 # If we're using GNU nm, then we don't want the "-C" option.
11771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11773 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11774 else
11775 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11776 fi
11777 ;;
11778 pw32*)
11779 export_symbols_cmds_CXX="$ltdll_cmds"
11780 ;;
11781 cygwin* | mingw*)
11782 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11783 ;;
11784 *)
11785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11786 ;;
11787 esac
11788
11789echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11790echo "${ECHO_T}$ld_shlibs_CXX" >&6
11791test "$ld_shlibs_CXX" = no && can_build_shared=no
11792
11793#
11794# Do we need to explicitly link libc?
11795#
11796case "x$archive_cmds_need_lc_CXX" in
11797x|xyes)
11798 # Assume -lc should be added
11799 archive_cmds_need_lc_CXX=yes
11800
11801 if test "$enable_shared" = yes && test "$GCC" = yes; then
11802 case $archive_cmds_CXX in
11803 *'~'*)
11804 # FIXME: we may have to deal with multi-command sequences.
11805 ;;
11806 '$CC '*)
11807 # Test whether the compiler implicitly links with -lc since on some
11808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11809 # to ld, don't add -lc before -lgcc.
11810 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11812 $rm conftest*
11813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11814
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } 2>conftest.err; then
11820 soname=conftest
11821 lib=conftest
11822 libobjs=conftest.$ac_objext
11823 deplibs=
11824 wl=$lt_prog_compiler_wl_CXX
11825 pic_flag=$lt_prog_compiler_pic_CXX
11826 compiler_flags=-v
11827 linker_flags=-v
11828 verstring=
11829 output_objdir=.
11830 libname=conftest
11831 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11832 allow_undefined_flag_CXX=
11833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11834 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }
11838 then
11839 archive_cmds_need_lc_CXX=no
11840 else
11841 archive_cmds_need_lc_CXX=yes
11842 fi
11843 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11844 else
11845 cat conftest.err 1>&5
11846 fi
11847 $rm conftest*
11848 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11849echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11850 ;;
11851 esac
11852 fi
11853 ;;
11854esac
11855
11856echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11857echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11858library_names_spec=
11859libname_spec='lib$name'
11860soname_spec=
11861shrext_cmds=".so"
11862postinstall_cmds=
11863postuninstall_cmds=
11864finish_cmds=
11865finish_eval=
11866shlibpath_var=
11867shlibpath_overrides_runpath=unknown
11868version_type=none
11869dynamic_linker="$host_os ld.so"
11870sys_lib_dlsearch_path_spec="/lib /usr/lib"
11871if test "$GCC" = yes; then
11872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11873 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11874 # if the path contains ";" then we assume it to be the separator
11875 # otherwise default to the standard path separator (i.e. ":") - it is
11876 # assumed that no part of a normal pathname contains ";" but that should
11877 # okay in the real world where ";" in dirpaths is itself problematic.
11878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11879 else
11880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11881 fi
11882else
11883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11884fi
11885need_lib_prefix=unknown
11886hardcode_into_libs=no
11887
11888# when you set need_version to no, make sure it does not cause -set_version
11889# flags to be left without arguments
11890need_version=unknown
11891
11892case $host_os in
11893aix3*)
11894 version_type=linux
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11896 shlibpath_var=LIBPATH
11897
11898 # AIX 3 has no versioning support, so we append a major version to the name.
11899 soname_spec='${libname}${release}${shared_ext}$major'
11900 ;;
11901
11902aix4* | aix5*)
11903 version_type=linux
11904 need_lib_prefix=no
11905 need_version=no
11906 hardcode_into_libs=yes
11907 if test "$host_cpu" = ia64; then
11908 # AIX 5 supports IA64
11909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 else
11912 # With GCC up to 2.95.x, collect2 would create an import file
11913 # for dependence libraries. The import file would start with
11914 # the line `#! .'. This would cause the generated library to
11915 # depend on `.', always an invalid library. This was fixed in
11916 # development snapshots of GCC prior to 3.0.
11917 case $host_os in
11918 aix4 | aix4.[01] | aix4.[01].*)
11919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11920 echo ' yes '
11921 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11922 :
11923 else
11924 can_build_shared=no
11925 fi
11926 ;;
11927 esac
11928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11929 # soname into executable. Probably we can add versioning support to
11930 # collect2, so additional links can be useful in future.
11931 if test "$aix_use_runtimelinking" = yes; then
11932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11933 # instead of lib<name>.a to let people know that these are not
11934 # typical AIX shared libraries.
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936 else
11937 # We preserve .a as extension for shared libraries through AIX4.2
11938 # and later when we are not doing run time linking.
11939 library_names_spec='${libname}${release}.a $libname.a'
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 fi
11942 shlibpath_var=LIBPATH
11943 fi
11944 ;;
11945
11946amigaos*)
11947 library_names_spec='$libname.ixlibrary $libname.a'
11948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11949 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'
11950 ;;
11951
11952beos*)
11953 library_names_spec='${libname}${shared_ext}'
11954 dynamic_linker="$host_os ld.so"
11955 shlibpath_var=LIBRARY_PATH
11956 ;;
11957
11958bsdi[45]*)
11959 version_type=linux
11960 need_version=no
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962 soname_spec='${libname}${release}${shared_ext}$major'
11963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11967 # the default ld.so.conf also contains /usr/contrib/lib and
11968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11969 # libtool to hard-code these into programs
11970 ;;
11971
11972cygwin* | mingw* | pw32*)
11973 version_type=windows
11974 shrext_cmds=".dll"
11975 need_version=no
11976 need_lib_prefix=no
11977
11978 case $GCC,$host_os in
11979 yes,cygwin* | yes,mingw* | yes,pw32*)
11980 library_names_spec='$libname.dll.a'
11981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11982 postinstall_cmds='base_file=`basename \${file}`~
11983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11984 dldir=$destdir/`dirname \$dlpath`~
11985 test -d \$dldir || mkdir -p \$dldir~
11986 $install_prog $dir/$dlname \$dldir/$dlname~
11987 chmod a+x \$dldir/$dlname'
11988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11989 dlpath=$dir/\$dldll~
11990 $rm \$dlpath'
11991 shlibpath_overrides_runpath=yes
11992
11993 case $host_os in
11994 cygwin*)
11995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11997 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11998 ;;
11999 mingw*)
12000 # MinGW DLLs use traditional 'lib' prefix
12001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12003 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12004 # It is most probably a Windows format PATH printed by
12005 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12006 # path with ; separators, and with drive letters. We can handle the
12007 # drive letters (cygwin fileutils understands them), so leave them,
12008 # especially as we might pass files found there to a mingw objdump,
12009 # which wouldn't understand a cygwinified path. Ahh.
12010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12011 else
12012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12013 fi
12014 ;;
12015 pw32*)
12016 # pw32 DLLs use 'pw' prefix rather than 'lib'
12017 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12018 ;;
12019 esac
12020 ;;
12021
12022 *)
12023 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12024 ;;
12025 esac
12026 dynamic_linker='Win32 ld.exe'
12027 # FIXME: first we should search . and the directory the executable is in
12028 shlibpath_var=PATH
12029 ;;
12030
12031darwin* | rhapsody*)
12032 dynamic_linker="$host_os dyld"
12033 version_type=darwin
12034 need_lib_prefix=no
12035 need_version=no
12036 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12037 soname_spec='${libname}${release}${major}$shared_ext'
12038 shlibpath_overrides_runpath=yes
12039 shlibpath_var=DYLD_LIBRARY_PATH
12040 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12042 if test "$GCC" = yes; then
12043 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12044 else
12045 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12046 fi
12047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12048 ;;
12049
12050dgux*)
12051 version_type=linux
12052 need_lib_prefix=no
12053 need_version=no
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 ;;
12058
12059freebsd1*)
12060 dynamic_linker=no
12061 ;;
12062
12063kfreebsd*-gnu)
12064 version_type=linux
12065 need_lib_prefix=no
12066 need_version=no
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12068 soname_spec='${libname}${release}${shared_ext}$major'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=no
12071 hardcode_into_libs=yes
12072 dynamic_linker='GNU ld.so'
12073 ;;
12074
12075freebsd* | dragonfly*)
12076 # DragonFly does not have aout. When/if they implement a new
12077 # versioning mechanism, adjust this.
12078 if test -x /usr/bin/objformat; then
12079 objformat=`/usr/bin/objformat`
12080 else
12081 case $host_os in
12082 freebsd[123]*) objformat=aout ;;
12083 *) objformat=elf ;;
12084 esac
12085 fi
12086 version_type=freebsd-$objformat
12087 case $version_type in
12088 freebsd-elf*)
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12090 need_version=no
12091 need_lib_prefix=no
12092 ;;
12093 freebsd-*)
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12095 need_version=yes
12096 ;;
12097 esac
12098 shlibpath_var=LD_LIBRARY_PATH
12099 case $host_os in
12100 freebsd2*)
12101 shlibpath_overrides_runpath=yes
12102 ;;
12103 freebsd3.[01]* | freebsdelf3.[01]*)
12104 shlibpath_overrides_runpath=yes
12105 hardcode_into_libs=yes
12106 ;;
12107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12109 shlibpath_overrides_runpath=no
12110 hardcode_into_libs=yes
12111 ;;
12112 freebsd*) # from 4.6 on
12113 shlibpath_overrides_runpath=yes
12114 hardcode_into_libs=yes
12115 ;;
12116 esac
12117 ;;
12118
12119gnu*)
12120 version_type=linux
12121 need_lib_prefix=no
12122 need_version=no
12123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 hardcode_into_libs=yes
12127 ;;
12128
12129hpux9* | hpux10* | hpux11*)
12130 # Give a soname corresponding to the major version so that dld.sl refuses to
12131 # link against other versions.
12132 version_type=sunos
12133 need_lib_prefix=no
12134 need_version=no
12135 case $host_cpu in
12136 ia64*)
12137 shrext_cmds='.so'
12138 hardcode_into_libs=yes
12139 dynamic_linker="$host_os dld.so"
12140 shlibpath_var=LD_LIBRARY_PATH
12141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 if test "X$HPUX_IA64_MODE" = X32; then
12145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12146 else
12147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12148 fi
12149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12150 ;;
12151 hppa*64*)
12152 shrext_cmds='.sl'
12153 hardcode_into_libs=yes
12154 dynamic_linker="$host_os dld.sl"
12155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12161 ;;
12162 *)
12163 shrext_cmds='.sl'
12164 dynamic_linker="$host_os dld.sl"
12165 shlibpath_var=SHLIB_PATH
12166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 ;;
12170 esac
12171 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12172 postinstall_cmds='chmod 555 $lib'
12173 ;;
12174
12175interix3*)
12176 version_type=linux
12177 need_lib_prefix=no
12178 need_version=no
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12180 soname_spec='${libname}${release}${shared_ext}$major'
12181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12182 shlibpath_var=LD_LIBRARY_PATH
12183 shlibpath_overrides_runpath=no
12184 hardcode_into_libs=yes
12185 ;;
12186
12187irix5* | irix6* | nonstopux*)
12188 case $host_os in
12189 nonstopux*) version_type=nonstopux ;;
12190 *)
12191 if test "$lt_cv_prog_gnu_ld" = yes; then
12192 version_type=linux
12193 else
12194 version_type=irix
12195 fi ;;
12196 esac
12197 need_lib_prefix=no
12198 need_version=no
12199 soname_spec='${libname}${release}${shared_ext}$major'
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12201 case $host_os in
12202 irix5* | nonstopux*)
12203 libsuff= shlibsuff=
12204 ;;
12205 *)
12206 case $LD in # libtool.m4 will add one of these switches to LD
12207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12208 libsuff= shlibsuff= libmagic=32-bit;;
12209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12210 libsuff=32 shlibsuff=N32 libmagic=N32;;
12211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12213 *) libsuff= shlibsuff= libmagic=never-match;;
12214 esac
12215 ;;
12216 esac
12217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12218 shlibpath_overrides_runpath=no
12219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12221 hardcode_into_libs=yes
12222 ;;
12223
12224# No shared lib support for Linux oldld, aout, or coff.
12225linux*oldld* | linux*aout* | linux*coff*)
12226 dynamic_linker=no
12227 ;;
12228
12229# This must be Linux ELF.
12230linux*)
12231 version_type=linux
12232 need_lib_prefix=no
12233 need_version=no
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec='${libname}${release}${shared_ext}$major'
12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=no
12239 # This implies no fast_install, which is unacceptable.
12240 # Some rework will be needed to allow for fast_install
12241 # before this can be enabled.
12242 hardcode_into_libs=yes
12243
12244 # find out which ABI we are using
12245 libsuff=
12246 case "$host_cpu" in
12247 x86_64*|s390x*|powerpc64*)
12248 echo '#line 12248 "configure"' > conftest.$ac_ext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; then
12254 case `/usr/bin/file conftest.$ac_objext` in
12255 *64-bit*)
12256 libsuff=64
12257 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12258 ;;
12259 esac
12260 fi
12261 rm -rf conftest*
12262 ;;
12263 esac
12264
12265 # Append ld.so.conf contents to the search path
12266 if test -f /etc/ld.so.conf; then
12267 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' ' '`
12268 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12269 fi
12270
12271 # We used to test for /lib/ld.so.1 and disable shared libraries on
12272 # powerpc, because MkLinux only supported shared libraries with the
12273 # GNU dynamic linker. Since this was broken with cross compilers,
12274 # most powerpc-linux boxes support dynamic linking these days and
12275 # people can always --disable-shared, the test was removed, and we
12276 # assume the GNU/Linux dynamic linker is in use.
12277 dynamic_linker='GNU/Linux ld.so'
12278 ;;
12279
12280knetbsd*-gnu)
12281 version_type=linux
12282 need_lib_prefix=no
12283 need_version=no
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12285 soname_spec='${libname}${release}${shared_ext}$major'
12286 shlibpath_var=LD_LIBRARY_PATH
12287 shlibpath_overrides_runpath=no
12288 hardcode_into_libs=yes
12289 dynamic_linker='GNU ld.so'
12290 ;;
12291
12292netbsd*)
12293 version_type=sunos
12294 need_lib_prefix=no
12295 need_version=no
12296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12299 dynamic_linker='NetBSD (a.out) ld.so'
12300 else
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12302 soname_spec='${libname}${release}${shared_ext}$major'
12303 dynamic_linker='NetBSD ld.elf_so'
12304 fi
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=yes
12307 hardcode_into_libs=yes
12308 ;;
12309
12310newsos6)
12311 version_type=linux
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 shlibpath_overrides_runpath=yes
12315 ;;
12316
12317nto-qnx*)
12318 version_type=linux
12319 need_lib_prefix=no
12320 need_version=no
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322 soname_spec='${libname}${release}${shared_ext}$major'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 shlibpath_overrides_runpath=yes
12325 ;;
12326
12327openbsd*)
12328 version_type=sunos
12329 sys_lib_dlsearch_path_spec="/usr/lib"
12330 need_lib_prefix=no
12331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12332 case $host_os in
12333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12334 *) need_version=no ;;
12335 esac
12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12338 shlibpath_var=LD_LIBRARY_PATH
12339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12340 case $host_os in
12341 openbsd2.[89] | openbsd2.[89].*)
12342 shlibpath_overrides_runpath=no
12343 ;;
12344 *)
12345 shlibpath_overrides_runpath=yes
12346 ;;
12347 esac
12348 else
12349 shlibpath_overrides_runpath=yes
12350 fi
12351 ;;
12352
12353os2*)
12354 libname_spec='$name'
12355 shrext_cmds=".dll"
12356 need_lib_prefix=no
12357 library_names_spec='$libname${shared_ext} $libname.a'
12358 dynamic_linker='OS/2 ld.exe'
12359 shlibpath_var=LIBPATH
12360 ;;
12361
12362osf3* | osf4* | osf5*)
12363 version_type=osf
12364 need_lib_prefix=no
12365 need_version=no
12366 soname_spec='${libname}${release}${shared_ext}$major'
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12371 ;;
12372
12373solaris*)
12374 version_type=linux
12375 need_lib_prefix=no
12376 need_version=no
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=yes
12381 hardcode_into_libs=yes
12382 # ldd complains unless libraries are executable
12383 postinstall_cmds='chmod +x $lib'
12384 ;;
12385
12386sunos4*)
12387 version_type=sunos
12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=yes
12392 if test "$with_gnu_ld" = yes; then
12393 need_lib_prefix=no
12394 fi
12395 need_version=yes
12396 ;;
12397
12398sysv4 | sysv4.3*)
12399 version_type=linux
12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12401 soname_spec='${libname}${release}${shared_ext}$major'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 case $host_vendor in
12404 sni)
12405 shlibpath_overrides_runpath=no
12406 need_lib_prefix=no
12407 export_dynamic_flag_spec='${wl}-Blargedynsym'
12408 runpath_var=LD_RUN_PATH
12409 ;;
12410 siemens)
12411 need_lib_prefix=no
12412 ;;
12413 motorola)
12414 need_lib_prefix=no
12415 need_version=no
12416 shlibpath_overrides_runpath=no
12417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12418 ;;
12419 esac
12420 ;;
12421
12422sysv4*MP*)
12423 if test -d /usr/nec ;then
12424 version_type=linux
12425 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12426 soname_spec='$libname${shared_ext}.$major'
12427 shlibpath_var=LD_LIBRARY_PATH
12428 fi
12429 ;;
12430
12431sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12432 version_type=freebsd-elf
12433 need_lib_prefix=no
12434 need_version=no
12435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12436 soname_spec='${libname}${release}${shared_ext}$major'
12437 shlibpath_var=LD_LIBRARY_PATH
12438 hardcode_into_libs=yes
12439 if test "$with_gnu_ld" = yes; then
12440 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12441 shlibpath_overrides_runpath=no
12442 else
12443 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12444 shlibpath_overrides_runpath=yes
12445 case $host_os in
12446 sco3.2v5*)
12447 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12448 ;;
12449 esac
12450 fi
12451 sys_lib_dlsearch_path_spec='/usr/lib'
12452 ;;
12453
12454uts4*)
12455 version_type=linux
12456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12457 soname_spec='${libname}${release}${shared_ext}$major'
12458 shlibpath_var=LD_LIBRARY_PATH
12459 ;;
12460
12461*)
12462 dynamic_linker=no
12463 ;;
12464esac
12465echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12466echo "${ECHO_T}$dynamic_linker" >&6
12467test "$dynamic_linker" = no && can_build_shared=no
12468
12469variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12470if test "$GCC" = yes; then
12471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12472fi
12473
12474echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12475echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12476hardcode_action_CXX=
12477if test -n "$hardcode_libdir_flag_spec_CXX" || \
12478 test -n "$runpath_var_CXX" || \
12479 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12480
12481 # We can hardcode non-existant directories.
12482 if test "$hardcode_direct_CXX" != no &&
12483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12484 # have to relink, otherwise we might link with an installed library
12485 # when we should be linking with a yet-to-be-installed one
12486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12487 test "$hardcode_minus_L_CXX" != no; then
12488 # Linking always hardcodes the temporary library directory.
12489 hardcode_action_CXX=relink
12490 else
12491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12492 hardcode_action_CXX=immediate
12493 fi
12494else
12495 # We cannot hardcode anything, or else we can only hardcode existing
12496 # directories.
12497 hardcode_action_CXX=unsupported
12498fi
12499echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12500echo "${ECHO_T}$hardcode_action_CXX" >&6
12501
12502if test "$hardcode_action_CXX" = relink; then
12503 # Fast installation is not supported
12504 enable_fast_install=no
12505elif test "$shlibpath_overrides_runpath" = yes ||
12506 test "$enable_shared" = no; then
12507 # Fast installation is not necessary
12508 enable_fast_install=needless
12509fi
12510
12511
12512# The else clause should only fire when bootstrapping the
12513# libtool distribution, otherwise you forgot to ship ltmain.sh
12514# with your package, and you will get complaints that there are
12515# no rules to generate ltmain.sh.
12516if test -f "$ltmain"; then
12517 # See if we are running on zsh, and set the options which allow our commands through
12518 # without removal of \ escapes.
12519 if test -n "${ZSH_VERSION+set}" ; then
12520 setopt NO_GLOB_SUBST
12521 fi
12522 # Now quote all the things that may contain metacharacters while being
12523 # careful not to overquote the AC_SUBSTed values. We take copies of the
12524 # variables and quote the copies for generation of the libtool script.
12525 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12526 SED SHELL STRIP \
12527 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12528 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12529 deplibs_check_method reload_flag reload_cmds need_locks \
12530 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12531 lt_cv_sys_global_symbol_to_c_name_address \
12532 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12533 old_postinstall_cmds old_postuninstall_cmds \
12534 compiler_CXX \
12535 CC_CXX \
12536 LD_CXX \
12537 lt_prog_compiler_wl_CXX \
12538 lt_prog_compiler_pic_CXX \
12539 lt_prog_compiler_static_CXX \
12540 lt_prog_compiler_no_builtin_flag_CXX \
12541 export_dynamic_flag_spec_CXX \
12542 thread_safe_flag_spec_CXX \
12543 whole_archive_flag_spec_CXX \
12544 enable_shared_with_static_runtimes_CXX \
12545 old_archive_cmds_CXX \
12546 old_archive_from_new_cmds_CXX \
12547 predep_objects_CXX \
12548 postdep_objects_CXX \
12549 predeps_CXX \
12550 postdeps_CXX \
12551 compiler_lib_search_path_CXX \
12552 archive_cmds_CXX \
12553 archive_expsym_cmds_CXX \
12554 postinstall_cmds_CXX \
12555 postuninstall_cmds_CXX \
12556 old_archive_from_expsyms_cmds_CXX \
12557 allow_undefined_flag_CXX \
12558 no_undefined_flag_CXX \
12559 export_symbols_cmds_CXX \
12560 hardcode_libdir_flag_spec_CXX \
12561 hardcode_libdir_flag_spec_ld_CXX \
12562 hardcode_libdir_separator_CXX \
12563 hardcode_automatic_CXX \
12564 module_cmds_CXX \
12565 module_expsym_cmds_CXX \
12566 lt_cv_prog_compiler_c_o_CXX \
12567 exclude_expsyms_CXX \
12568 include_expsyms_CXX; do
12569
12570 case $var in
12571 old_archive_cmds_CXX | \
12572 old_archive_from_new_cmds_CXX | \
12573 archive_cmds_CXX | \
12574 archive_expsym_cmds_CXX | \
12575 module_cmds_CXX | \
12576 module_expsym_cmds_CXX | \
12577 old_archive_from_expsyms_cmds_CXX | \
12578 export_symbols_cmds_CXX | \
12579 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12580 postinstall_cmds | postuninstall_cmds | \
12581 old_postinstall_cmds | old_postuninstall_cmds | \
12582 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12583 # Double-quote double-evaled strings.
12584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12585 ;;
12586 *)
12587 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12588 ;;
12589 esac
12590 done
12591
12592 case $lt_echo in
12593 *'\$0 --fallback-echo"')
12594 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12595 ;;
12596 esac
12597
12598cfgfile="$ofile"
12599
12600 cat <<__EOF__ >> "$cfgfile"
12601# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12602
12603# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12604
12605# Shell to use when invoking shell scripts.
12606SHELL=$lt_SHELL
12607
12608# Whether or not to build shared libraries.
12609build_libtool_libs=$enable_shared
12610
12611# Whether or not to build static libraries.
12612build_old_libs=$enable_static
12613
12614# Whether or not to add -lc for building shared libraries.
12615build_libtool_need_lc=$archive_cmds_need_lc_CXX
12616
12617# Whether or not to disallow shared libs when runtime libs are static
12618allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12619
12620# Whether or not to optimize for fast installation.
12621fast_install=$enable_fast_install
12622
12623# The host system.
12624host_alias=$host_alias
12625host=$host
12626host_os=$host_os
12627
12628# The build system.
12629build_alias=$build_alias
12630build=$build
12631build_os=$build_os
12632
12633# An echo program that does not interpret backslashes.
12634echo=$lt_echo
12635
12636# The archiver.
12637AR=$lt_AR
12638AR_FLAGS=$lt_AR_FLAGS
12639
12640# A C compiler.
12641LTCC=$lt_LTCC
12642
12643# LTCC compiler flags.
12644LTCFLAGS=$lt_LTCFLAGS
12645
12646# A language-specific compiler.
12647CC=$lt_compiler_CXX
12648
12649# Is the compiler the GNU C compiler?
12650with_gcc=$GCC_CXX
12651
12652gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12653gcc_ver=\`gcc -dumpversion\`
12654
12655# An ERE matcher.
12656EGREP=$lt_EGREP
12657
12658# The linker used to build libraries.
12659LD=$lt_LD_CXX
12660
12661# Whether we need hard or soft links.
12662LN_S=$lt_LN_S
12663
12664# A BSD-compatible nm program.
12665NM=$lt_NM
12666
12667# A symbol stripping program
12668STRIP=$lt_STRIP
12669
12670# Used to examine libraries when file_magic_cmd begins "file"
12671MAGIC_CMD=$MAGIC_CMD
12672
12673# Used on cygwin: DLL creation program.
12674DLLTOOL="$DLLTOOL"
12675
12676# Used on cygwin: object dumper.
12677OBJDUMP="$OBJDUMP"
12678
12679# Used on cygwin: assembler.
12680AS="$AS"
12681
12682# The name of the directory that contains temporary libtool files.
12683objdir=$objdir
12684
12685# How to create reloadable object files.
12686reload_flag=$lt_reload_flag
12687reload_cmds=$lt_reload_cmds
12688
12689# How to pass a linker flag through the compiler.
12690wl=$lt_lt_prog_compiler_wl_CXX
12691
12692# Object file suffix (normally "o").
12693objext="$ac_objext"
12694
12695# Old archive suffix (normally "a").
12696libext="$libext"
12697
12698# Shared library suffix (normally ".so").
12699shrext_cmds='$shrext_cmds'
12700
12701# Executable file suffix (normally "").
12702exeext="$exeext"
12703
12704# Additional compiler flags for building library objects.
12705pic_flag=$lt_lt_prog_compiler_pic_CXX
12706pic_mode=$pic_mode
12707
12708# What is the maximum length of a command?
12709max_cmd_len=$lt_cv_sys_max_cmd_len
12710
12711# Does compiler simultaneously support -c and -o options?
12712compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12713
12714# Must we lock files when doing compilation?
12715need_locks=$lt_need_locks
12716
12717# Do we need the lib prefix for modules?
12718need_lib_prefix=$need_lib_prefix
12719
12720# Do we need a version for libraries?
12721need_version=$need_version
12722
12723# Whether dlopen is supported.
12724dlopen_support=$enable_dlopen
12725
12726# Whether dlopen of programs is supported.
12727dlopen_self=$enable_dlopen_self
12728
12729# Whether dlopen of statically linked programs is supported.
12730dlopen_self_static=$enable_dlopen_self_static
12731
12732# Compiler flag to prevent dynamic linking.
12733link_static_flag=$lt_lt_prog_compiler_static_CXX
12734
12735# Compiler flag to turn off builtin functions.
12736no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12737
12738# Compiler flag to allow reflexive dlopens.
12739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12740
12741# Compiler flag to generate shared objects directly from archives.
12742whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12743
12744# Compiler flag to generate thread-safe objects.
12745thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12746
12747# Library versioning type.
12748version_type=$version_type
12749
12750# Format of library name prefix.
12751libname_spec=$lt_libname_spec
12752
12753# List of archive names. First name is the real one, the rest are links.
12754# The last name is the one that the linker finds with -lNAME.
12755library_names_spec=$lt_library_names_spec
12756
12757# The coded name of the library, if different from the real name.
12758soname_spec=$lt_soname_spec
12759
12760# Commands used to build and install an old-style archive.
12761RANLIB=$lt_RANLIB
12762old_archive_cmds=$lt_old_archive_cmds_CXX
12763old_postinstall_cmds=$lt_old_postinstall_cmds
12764old_postuninstall_cmds=$lt_old_postuninstall_cmds
12765
12766# Create an old-style archive from a shared archive.
12767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12768
12769# Create a temporary old-style archive to link instead of a shared archive.
12770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12771
12772# Commands used to build and install a shared archive.
12773archive_cmds=$lt_archive_cmds_CXX
12774archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12775postinstall_cmds=$lt_postinstall_cmds
12776postuninstall_cmds=$lt_postuninstall_cmds
12777
12778# Commands used to build a loadable module (assumed same as above if empty)
12779module_cmds=$lt_module_cmds_CXX
12780module_expsym_cmds=$lt_module_expsym_cmds_CXX
12781
12782# Commands to strip libraries.
12783old_striplib=$lt_old_striplib
12784striplib=$lt_striplib
12785
12786# Dependencies to place before the objects being linked to create a
12787# shared library.
12788predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12789
12790# Dependencies to place after the objects being linked to create a
12791# shared library.
12792postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12793
12794# Dependencies to place before the objects being linked to create a
12795# shared library.
12796predeps=$lt_predeps_CXX
12797
12798# Dependencies to place after the objects being linked to create a
12799# shared library.
12800postdeps=$lt_postdeps_CXX
12801
12802# The library search path used internally by the compiler when linking
12803# a shared library.
12804compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12805
12806# Method to check whether dependent libraries are shared objects.
12807deplibs_check_method=$lt_deplibs_check_method
12808
12809# Command to use when deplibs_check_method == file_magic.
12810file_magic_cmd=$lt_file_magic_cmd
12811
12812# Flag that allows shared libraries with undefined symbols to be built.
12813allow_undefined_flag=$lt_allow_undefined_flag_CXX
12814
12815# Flag that forces no undefined symbols.
12816no_undefined_flag=$lt_no_undefined_flag_CXX
12817
12818# Commands used to finish a libtool library installation in a directory.
12819finish_cmds=$lt_finish_cmds
12820
12821# Same as above, but a single script fragment to be evaled but not shown.
12822finish_eval=$lt_finish_eval
12823
12824# Take the output of nm and produce a listing of raw symbols and C names.
12825global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12826
12827# Transform the output of nm in a proper C declaration
12828global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12829
12830# Transform the output of nm in a C name address pair
12831global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12832
12833# This is the shared library runtime path variable.
12834runpath_var=$runpath_var
12835
12836# This is the shared library path variable.
12837shlibpath_var=$shlibpath_var
12838
12839# Is shlibpath searched before the hard-coded library search path?
12840shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12841
12842# How to hardcode a shared library path into an executable.
12843hardcode_action=$hardcode_action_CXX
12844
12845# Whether we should hardcode library paths into libraries.
12846hardcode_into_libs=$hardcode_into_libs
12847
12848# Flag to hardcode \$libdir into a binary during linking.
12849# This must work even if \$libdir does not exist.
12850hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12851
12852# If ld is used when linking, flag to hardcode \$libdir into
12853# a binary during linking. This must work even if \$libdir does
12854# not exist.
12855hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12856
12857# Whether we need a single -rpath flag with a separated argument.
12858hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12859
12860# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12861# resulting binary.
12862hardcode_direct=$hardcode_direct_CXX
12863
12864# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12865# resulting binary.
12866hardcode_minus_L=$hardcode_minus_L_CXX
12867
12868# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12869# the resulting binary.
12870hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12871
12872# Set to yes if building a shared library automatically hardcodes DIR into the library
12873# and all subsequent libraries and executables linked against it.
12874hardcode_automatic=$hardcode_automatic_CXX
12875
12876# Variables whose values should be saved in libtool wrapper scripts and
12877# restored at relink time.
12878variables_saved_for_relink="$variables_saved_for_relink"
12879
12880# Whether libtool must link a program against all its dependency libraries.
12881link_all_deplibs=$link_all_deplibs_CXX
12882
12883# Compile-time system search path for libraries
12884sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12885
12886# Run-time system search path for libraries
12887sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12888
12889# Fix the shell variable \$srcfile for the compiler.
12890fix_srcfile_path="$fix_srcfile_path_CXX"
12891
12892# Set to yes if exported symbols are required.
12893always_export_symbols=$always_export_symbols_CXX
12894
12895# The commands to list exported symbols.
12896export_symbols_cmds=$lt_export_symbols_cmds_CXX
12897
12898# The commands to extract the exported symbol list from a shared archive.
12899extract_expsyms_cmds=$lt_extract_expsyms_cmds
12900
12901# Symbols that should not be listed in the preloaded symbols.
12902exclude_expsyms=$lt_exclude_expsyms_CXX
12903
12904# Symbols that must always be exported.
12905include_expsyms=$lt_include_expsyms_CXX
12906
12907# ### END LIBTOOL TAG CONFIG: $tagname
12908
12909__EOF__
12910
12911
12912else
12913 # If there is no Makefile yet, we rely on a make rule to execute
12914 # `config.status --recheck' to rerun these tests and create the
12915 # libtool script then.
12916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12917 if test -f "$ltmain_in"; then
12918 test -f Makefile && make "$ltmain"
12919 fi
12920fi
12921
12922
12923ac_ext=c
12924ac_cpp='$CPP $CPPFLAGS'
12925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927ac_compiler_gnu=$ac_cv_c_compiler_gnu
12928
12929CC=$lt_save_CC
12930LDCXX=$LD
12931LD=$lt_save_LD
12932GCC=$lt_save_GCC
12933with_gnu_ldcxx=$with_gnu_ld
12934with_gnu_ld=$lt_save_with_gnu_ld
12935lt_cv_path_LDCXX=$lt_cv_path_LD
12936lt_cv_path_LD=$lt_save_path_LD
12937lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12938lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12939
12940 else
12941 tagname=""
12942 fi
12943 ;;
12944
12945 F77)
12946 if test -n "$F77" && test "X$F77" != "Xno"; then
12947
12948ac_ext=f
12949ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12950ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12951ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12952
12953
12954archive_cmds_need_lc_F77=no
12955allow_undefined_flag_F77=
12956always_export_symbols_F77=no
12957archive_expsym_cmds_F77=
12958export_dynamic_flag_spec_F77=
12959hardcode_direct_F77=no
12960hardcode_libdir_flag_spec_F77=
12961hardcode_libdir_flag_spec_ld_F77=
12962hardcode_libdir_separator_F77=
12963hardcode_minus_L_F77=no
12964hardcode_automatic_F77=no
12965module_cmds_F77=
12966module_expsym_cmds_F77=
12967link_all_deplibs_F77=unknown
12968old_archive_cmds_F77=$old_archive_cmds
12969no_undefined_flag_F77=
12970whole_archive_flag_spec_F77=
12971enable_shared_with_static_runtimes_F77=no
12972
12973# Source file extension for f77 test sources.
12974ac_ext=f
12975
12976# Object file extension for compiled f77 test sources.
12977objext=o
12978objext_F77=$objext
12979
12980# Code to be used in simple compile tests
12981lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12982
12983# Code to be used in simple link tests
12984lt_simple_link_test_code=" program t\n end\n"
12985
12986# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12987
12988# If no C compiler was specified, use CC.
12989LTCC=${LTCC-"$CC"}
12990
12991# If no C compiler flags were specified, use CFLAGS.
12992LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12993
12994# Allow CC to be a program name with arguments.
12995compiler=$CC
12996
12997
12998# save warnings/boilerplate of simple test code
12999ac_outfile=conftest.$ac_objext
13000printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13001eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13002_lt_compiler_boilerplate=`cat conftest.err`
13003$rm conftest*
13004
13005ac_outfile=conftest.$ac_objext
13006printf "$lt_simple_link_test_code" >conftest.$ac_ext
13007eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13008_lt_linker_boilerplate=`cat conftest.err`
13009$rm conftest*
13010
13011
13012# Allow CC to be a program name with arguments.
13013lt_save_CC="$CC"
13014CC=${F77-"f77"}
13015compiler=$CC
13016compiler_F77=$CC
13017for cc_temp in $compiler""; do
13018 case $cc_temp in
13019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13021 \-*) ;;
13022 *) break;;
13023 esac
13024done
13025cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13026
13027
13028echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13029echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13030echo "$as_me:$LINENO: result: $can_build_shared" >&5
13031echo "${ECHO_T}$can_build_shared" >&6
13032
13033echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13034echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13035test "$can_build_shared" = "no" && enable_shared=no
13036
13037# On AIX, shared libraries and static libraries use the same namespace, and
13038# are all built from PIC.
13039case $host_os in
13040aix3*)
13041 test "$enable_shared" = yes && enable_static=no
13042 if test -n "$RANLIB"; then
13043 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13044 postinstall_cmds='$RANLIB $lib'
13045 fi
13046 ;;
13047aix4* | aix5*)
13048 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13049 test "$enable_shared" = yes && enable_static=no
13050 fi
13051 ;;
13052esac
13053echo "$as_me:$LINENO: result: $enable_shared" >&5
13054echo "${ECHO_T}$enable_shared" >&6
13055
13056echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13057echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13058# Make sure either enable_shared or enable_static is yes.
13059test "$enable_shared" = yes || enable_static=yes
13060echo "$as_me:$LINENO: result: $enable_static" >&5
13061echo "${ECHO_T}$enable_static" >&6
13062
13063GCC_F77="$G77"
13064LD_F77="$LD"
13065
13066lt_prog_compiler_wl_F77=
13067lt_prog_compiler_pic_F77=
13068lt_prog_compiler_static_F77=
13069
13070echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13071echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13072
13073 if test "$GCC" = yes; then
13074 lt_prog_compiler_wl_F77='-Wl,'
13075 lt_prog_compiler_static_F77='-static'
13076
13077 case $host_os in
13078 aix*)
13079 # All AIX code is PIC.
13080 if test "$host_cpu" = ia64; then
13081 # AIX 5 now supports IA64 processor
13082 lt_prog_compiler_static_F77='-Bstatic'
13083 fi
13084 ;;
13085
13086 amigaos*)
13087 # FIXME: we need at least 68020 code to build shared libraries, but
13088 # adding the `-m68020' flag to GCC prevents building anything better,
13089 # like `-m68040'.
13090 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13091 ;;
13092
13093 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13094 # PIC is the default for these OSes.
13095 ;;
13096
13097 mingw* | pw32* | os2*)
13098 # This hack is so that the source file can tell whether it is being
13099 # built for inclusion in a dll (and should export symbols for example).
13100 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13101 ;;
13102
13103 darwin* | rhapsody*)
13104 # PIC is the default on this platform
13105 # Common symbols not allowed in MH_DYLIB files
13106 lt_prog_compiler_pic_F77='-fno-common'
13107 ;;
13108
13109 interix3*)
13110 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13111 # Instead, we relocate shared libraries at runtime.
13112 ;;
13113
13114 msdosdjgpp*)
13115 # Just because we use GCC doesn't mean we suddenly get shared libraries
13116 # on systems that don't support them.
13117 lt_prog_compiler_can_build_shared_F77=no
13118 enable_shared=no
13119 ;;
13120
13121 sysv4*MP*)
13122 if test -d /usr/nec; then
13123 lt_prog_compiler_pic_F77=-Kconform_pic
13124 fi
13125 ;;
13126
13127 hpux*)
13128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13129 # not for PA HP-UX.
13130 case $host_cpu in
13131 hppa*64*|ia64*)
13132 # +Z the default
13133 ;;
13134 *)
13135 lt_prog_compiler_pic_F77='-fPIC'
13136 ;;
13137 esac
13138 ;;
13139
13140 *)
13141 lt_prog_compiler_pic_F77='-fPIC'
13142 ;;
13143 esac
13144 else
13145 # PORTME Check for flag to pass linker flags through the system compiler.
13146 case $host_os in
13147 aix*)
13148 lt_prog_compiler_wl_F77='-Wl,'
13149 if test "$host_cpu" = ia64; then
13150 # AIX 5 now supports IA64 processor
13151 lt_prog_compiler_static_F77='-Bstatic'
13152 else
13153 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13154 fi
13155 ;;
13156 darwin*)
13157 # PIC is the default on this platform
13158 # Common symbols not allowed in MH_DYLIB files
13159 case $cc_basename in
13160 xlc*)
13161 lt_prog_compiler_pic_F77='-qnocommon'
13162 lt_prog_compiler_wl_F77='-Wl,'
13163 ;;
13164 esac
13165 ;;
13166
13167 mingw* | pw32* | os2*)
13168 # This hack is so that the source file can tell whether it is being
13169 # built for inclusion in a dll (and should export symbols for example).
13170 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13171 ;;
13172
13173 hpux9* | hpux10* | hpux11*)
13174 lt_prog_compiler_wl_F77='-Wl,'
13175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13176 # not for PA HP-UX.
13177 case $host_cpu in
13178 hppa*64*|ia64*)
13179 # +Z the default
13180 ;;
13181 *)
13182 lt_prog_compiler_pic_F77='+Z'
13183 ;;
13184 esac
13185 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13186 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13187 ;;
13188
13189 irix5* | irix6* | nonstopux*)
13190 lt_prog_compiler_wl_F77='-Wl,'
13191 # PIC (with -KPIC) is the default.
13192 lt_prog_compiler_static_F77='-non_shared'
13193 ;;
13194
13195 newsos6)
13196 lt_prog_compiler_pic_F77='-KPIC'
13197 lt_prog_compiler_static_F77='-Bstatic'
13198 ;;
13199
13200 linux*)
13201 case $cc_basename in
13202 icc* | ecc*)
13203 lt_prog_compiler_wl_F77='-Wl,'
13204 lt_prog_compiler_pic_F77='-KPIC'
13205 lt_prog_compiler_static_F77='-static'
13206 ;;
13207 pgcc* | pgf77* | pgf90* | pgf95*)
13208 # Portland Group compilers (*not* the Pentium gcc compiler,
13209 # which looks to be a dead project)
13210 lt_prog_compiler_wl_F77='-Wl,'
13211 lt_prog_compiler_pic_F77='-fpic'
13212 lt_prog_compiler_static_F77='-Bstatic'
13213 ;;
13214 ccc*)
13215 lt_prog_compiler_wl_F77='-Wl,'
13216 # All Alpha code is PIC.
13217 lt_prog_compiler_static_F77='-non_shared'
13218 ;;
13219 esac
13220 ;;
13221
13222 osf3* | osf4* | osf5*)
13223 lt_prog_compiler_wl_F77='-Wl,'
13224 # All OSF/1 code is PIC.
13225 lt_prog_compiler_static_F77='-non_shared'
13226 ;;
13227
13228 solaris*)
13229 lt_prog_compiler_pic_F77='-KPIC'
13230 lt_prog_compiler_static_F77='-Bstatic'
13231 case $cc_basename in
13232 f77* | f90* | f95*)
13233 lt_prog_compiler_wl_F77='-Qoption ld ';;
13234 *)
13235 lt_prog_compiler_wl_F77='-Wl,';;
13236 esac
13237 ;;
13238
13239 sunos4*)
13240 lt_prog_compiler_wl_F77='-Qoption ld '
13241 lt_prog_compiler_pic_F77='-PIC'
13242 lt_prog_compiler_static_F77='-Bstatic'
13243 ;;
13244
13245 sysv4 | sysv4.2uw2* | sysv4.3*)
13246 lt_prog_compiler_wl_F77='-Wl,'
13247 lt_prog_compiler_pic_F77='-KPIC'
13248 lt_prog_compiler_static_F77='-Bstatic'
13249 ;;
13250
13251 sysv4*MP*)
13252 if test -d /usr/nec ;then
13253 lt_prog_compiler_pic_F77='-Kconform_pic'
13254 lt_prog_compiler_static_F77='-Bstatic'
13255 fi
13256 ;;
13257
13258 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13259 lt_prog_compiler_wl_F77='-Wl,'
13260 lt_prog_compiler_pic_F77='-KPIC'
13261 lt_prog_compiler_static_F77='-Bstatic'
13262 ;;
13263
13264 unicos*)
13265 lt_prog_compiler_wl_F77='-Wl,'
13266 lt_prog_compiler_can_build_shared_F77=no
13267 ;;
13268
13269 uts4*)
13270 lt_prog_compiler_pic_F77='-pic'
13271 lt_prog_compiler_static_F77='-Bstatic'
13272 ;;
13273
13274 *)
13275 lt_prog_compiler_can_build_shared_F77=no
13276 ;;
13277 esac
13278 fi
13279
13280echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13281echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13282
13283#
13284# Check to make sure the PIC flag actually works.
13285#
13286if test -n "$lt_prog_compiler_pic_F77"; then
13287
13288echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13289echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13290if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293 lt_prog_compiler_pic_works_F77=no
13294 ac_outfile=conftest.$ac_objext
13295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13296 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13297 # Insert the option either (1) after the last *FLAGS variable, or
13298 # (2) before a word containing "conftest.", or (3) at the end.
13299 # Note that $ac_compile itself does not contain backslashes and begins
13300 # with a dollar sign (not a hyphen), so the echo should work correctly.
13301 # The option is referenced via a variable to avoid confusing sed.
13302 lt_compile=`echo "$ac_compile" | $SED \
13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13305 -e 's:$: $lt_compiler_flag:'`
13306 (eval echo "\"\$as_me:13306: $lt_compile\"" >&5)
13307 (eval "$lt_compile" 2>conftest.err)
13308 ac_status=$?
13309 cat conftest.err >&5
13310 echo "$as_me:13310: \$? = $ac_status" >&5
13311 if (exit $ac_status) && test -s "$ac_outfile"; then
13312 # The compiler can only warn and ignore the option if not recognized
13313 # So say no if there are warnings other than the usual output.
13314 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13317 lt_prog_compiler_pic_works_F77=yes
13318 fi
13319 fi
13320 $rm conftest*
13321
13322fi
13323echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13324echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13325
13326if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13327 case $lt_prog_compiler_pic_F77 in
13328 "" | " "*) ;;
13329 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13330 esac
13331else
13332 lt_prog_compiler_pic_F77=
13333 lt_prog_compiler_can_build_shared_F77=no
13334fi
13335
13336fi
13337case $host_os in
13338 # For platforms which do not support PIC, -DPIC is meaningless:
13339 *djgpp*)
13340 lt_prog_compiler_pic_F77=
13341 ;;
13342 *)
13343 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13344 ;;
13345esac
13346
13347#
13348# Check to make sure the static flag actually works.
13349#
13350wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13351echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13352echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13353if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355else
13356 lt_prog_compiler_static_works_F77=no
13357 save_LDFLAGS="$LDFLAGS"
13358 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13359 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13361 # The linker can only warn and ignore the option if not recognized
13362 # So say no if there are warnings
13363 if test -s conftest.err; then
13364 # Append any errors to the config.log.
13365 cat conftest.err 1>&5
13366 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13368 if diff conftest.exp conftest.er2 >/dev/null; then
13369 lt_prog_compiler_static_works_F77=yes
13370 fi
13371 else
13372 lt_prog_compiler_static_works_F77=yes
13373 fi
13374 fi
13375 $rm conftest*
13376 LDFLAGS="$save_LDFLAGS"
13377
13378fi
13379echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13380echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13381
13382if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13383 :
13384else
13385 lt_prog_compiler_static_F77=
13386fi
13387
13388
13389echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13390echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13391if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394 lt_cv_prog_compiler_c_o_F77=no
13395 $rm -r conftest 2>/dev/null
13396 mkdir conftest
13397 cd conftest
13398 mkdir out
13399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13400
13401 lt_compiler_flag="-o out/conftest2.$ac_objext"
13402 # Insert the option either (1) after the last *FLAGS variable, or
13403 # (2) before a word containing "conftest.", or (3) at the end.
13404 # Note that $ac_compile itself does not contain backslashes and begins
13405 # with a dollar sign (not a hyphen), so the echo should work correctly.
13406 lt_compile=`echo "$ac_compile" | $SED \
13407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13409 -e 's:$: $lt_compiler_flag:'`
13410 (eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
13411 (eval "$lt_compile" 2>out/conftest.err)
13412 ac_status=$?
13413 cat out/conftest.err >&5
13414 echo "$as_me:13414: \$? = $ac_status" >&5
13415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13416 then
13417 # The compiler can only warn and ignore the option if not recognized
13418 # So say no if there are warnings
13419 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13422 lt_cv_prog_compiler_c_o_F77=yes
13423 fi
13424 fi
13425 chmod u+w . 2>&5
13426 $rm conftest*
13427 # SGI C++ compiler will create directory out/ii_files/ for
13428 # template instantiation
13429 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13430 $rm out/* && rmdir out
13431 cd ..
13432 rmdir conftest
13433 $rm conftest*
13434
13435fi
13436echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13437echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13438
13439
13440hard_links="nottested"
13441if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13442 # do not overwrite the value of need_locks provided by the user
13443 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13444echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13445 hard_links=yes
13446 $rm conftest*
13447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13448 touch conftest.a
13449 ln conftest.a conftest.b 2>&5 || hard_links=no
13450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13451 echo "$as_me:$LINENO: result: $hard_links" >&5
13452echo "${ECHO_T}$hard_links" >&6
13453 if test "$hard_links" = no; then
13454 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13455echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13456 need_locks=warn
13457 fi
13458else
13459 need_locks=no
13460fi
13461
13462echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13463echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13464
13465 runpath_var=
13466 allow_undefined_flag_F77=
13467 enable_shared_with_static_runtimes_F77=no
13468 archive_cmds_F77=
13469 archive_expsym_cmds_F77=
13470 old_archive_From_new_cmds_F77=
13471 old_archive_from_expsyms_cmds_F77=
13472 export_dynamic_flag_spec_F77=
13473 whole_archive_flag_spec_F77=
13474 thread_safe_flag_spec_F77=
13475 hardcode_libdir_flag_spec_F77=
13476 hardcode_libdir_flag_spec_ld_F77=
13477 hardcode_libdir_separator_F77=
13478 hardcode_direct_F77=no
13479 hardcode_minus_L_F77=no
13480 hardcode_shlibpath_var_F77=unsupported
13481 link_all_deplibs_F77=unknown
13482 hardcode_automatic_F77=no
13483 module_cmds_F77=
13484 module_expsym_cmds_F77=
13485 always_export_symbols_F77=no
13486 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13487 # include_expsyms should be a list of space-separated symbols to be *always*
13488 # included in the symbol list
13489 include_expsyms_F77=
13490 # exclude_expsyms can be an extended regexp of symbols to exclude
13491 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13492 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13493 # as well as any symbol that contains `d'.
13494 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13495 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13496 # platforms (ab)use it in PIC code, but their linkers get confused if
13497 # the symbol is explicitly referenced. Since portable code cannot
13498 # rely on this symbol name, it's probably fine to never include it in
13499 # preloaded symbol tables.
13500 extract_expsyms_cmds=
13501 # Just being paranoid about ensuring that cc_basename is set.
13502 for cc_temp in $compiler""; do
13503 case $cc_temp in
13504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13506 \-*) ;;
13507 *) break;;
13508 esac
13509done
13510cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13511
13512 case $host_os in
13513 cygwin* | mingw* | pw32*)
13514 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13515 # When not using gcc, we currently assume that we are using
13516 # Microsoft Visual C++.
13517 if test "$GCC" != yes; then
13518 with_gnu_ld=no
13519 fi
13520 ;;
13521 interix*)
13522 # we just hope/assume this is gcc and not c89 (= MSVC++)
13523 with_gnu_ld=yes
13524 ;;
13525 openbsd*)
13526 with_gnu_ld=no
13527 ;;
13528 esac
13529
13530 ld_shlibs_F77=yes
13531 if test "$with_gnu_ld" = yes; then
13532 # If archive_cmds runs LD, not CC, wlarc should be empty
13533 wlarc='${wl}'
13534
13535 # Set some defaults for GNU ld with shared library support. These
13536 # are reset later if shared libraries are not supported. Putting them
13537 # here allows them to be overridden if necessary.
13538 runpath_var=LD_RUN_PATH
13539 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13540 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13541 # ancient GNU ld didn't support --whole-archive et. al.
13542 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13543 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13544 else
13545 whole_archive_flag_spec_F77=
13546 fi
13547 supports_anon_versioning=no
13548 case `$LD -v 2>/dev/null` in
13549 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13550 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13551 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13552 *\ 2.11.*) ;; # other 2.11 versions
13553 *) supports_anon_versioning=yes ;;
13554 esac
13555
13556 # See if GNU ld supports shared libraries.
13557 case $host_os in
13558 aix3* | aix4* | aix5*)
13559 # On AIX/PPC, the GNU linker is very broken
13560 if test "$host_cpu" != ia64; then
13561 ld_shlibs_F77=no
13562 cat <<EOF 1>&2
13563
13564*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13565*** to be unable to reliably create shared libraries on AIX.
13566*** Therefore, libtool is disabling shared libraries support. If you
13567*** really care for shared libraries, you may want to modify your PATH
13568*** so that a non-GNU linker is found, and then restart.
13569
13570EOF
13571 fi
13572 ;;
13573
13574 amigaos*)
13575 archive_cmds_F77='$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)'
13576 hardcode_libdir_flag_spec_F77='-L$libdir'
13577 hardcode_minus_L_F77=yes
13578
13579 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13580 # that the semantics of dynamic libraries on AmigaOS, at least up
13581 # to version 4, is to share data among multiple programs linked
13582 # with the same dynamic library. Since this doesn't match the
13583 # behavior of shared libraries on other platforms, we can't use
13584 # them.
13585 ld_shlibs_F77=no
13586 ;;
13587
13588 beos*)
13589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13590 allow_undefined_flag_F77=unsupported
13591 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13592 # support --undefined. This deserves some investigation. FIXME
13593 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13594 else
13595 ld_shlibs_F77=no
13596 fi
13597 ;;
13598
13599 cygwin* | mingw* | pw32*)
13600 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13601 # as there is no search path for DLLs.
13602 hardcode_libdir_flag_spec_F77='-L$libdir'
13603 allow_undefined_flag_F77=unsupported
13604 always_export_symbols_F77=no
13605 enable_shared_with_static_runtimes_F77=yes
13606 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13607
13608 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13610 # If the export-symbols file already is a .def file (1st line
13611 # is EXPORTS), use it as is; otherwise, prepend...
13612 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13613 cp $export_symbols $output_objdir/$soname.def;
13614 else
13615 echo EXPORTS > $output_objdir/$soname.def;
13616 cat $export_symbols >> $output_objdir/$soname.def;
13617 fi~
13618 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13619 else
13620 ld_shlibs_F77=no
13621 fi
13622 ;;
13623
13624 interix3*)
13625 hardcode_direct_F77=no
13626 hardcode_shlibpath_var_F77=no
13627 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13628 export_dynamic_flag_spec_F77='${wl}-E'
13629 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13630 # Instead, shared libraries are loaded at an image base (0x10000000 by
13631 # default) and relocated if they conflict, which is a slow very memory
13632 # consuming and fragmenting process. To avoid this, we pick a random,
13633 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13634 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13635 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13636 archive_expsym_cmds_F77='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'
13637 ;;
13638
13639 linux*)
13640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13641 tmp_addflag=
13642 case $cc_basename,$host_cpu in
13643 pgcc*) # Portland Group C compiler
13644 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13645 tmp_addflag=' $pic_flag'
13646 ;;
13647 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13648 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13649 tmp_addflag=' $pic_flag -Mnomain' ;;
13650 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13651 tmp_addflag=' -i_dynamic' ;;
13652 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13653 tmp_addflag=' -i_dynamic -nofor_main' ;;
13654 ifc* | ifort*) # Intel Fortran compiler
13655 tmp_addflag=' -nofor_main' ;;
13656 esac
13657 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13658
13659 if test $supports_anon_versioning = yes; then
13660 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13661 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13662 $echo "local: *; };" >> $output_objdir/$libname.ver~
13663 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13664 fi
13665 else
13666 ld_shlibs_F77=no
13667 fi
13668 ;;
13669
13670 netbsd*)
13671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13672 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13673 wlarc=
13674 else
13675 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13676 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13677 fi
13678 ;;
13679
13680 solaris*)
13681 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13682 ld_shlibs_F77=no
13683 cat <<EOF 1>&2
13684
13685*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13686*** create shared libraries on Solaris systems. Therefore, libtool
13687*** is disabling shared libraries support. We urge you to upgrade GNU
13688*** binutils to release 2.9.1 or newer. Another option is to modify
13689*** your PATH or compiler configuration so that the native linker is
13690*** used, and then restart.
13691
13692EOF
13693 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13695 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13696 else
13697 ld_shlibs_F77=no
13698 fi
13699 ;;
13700
13701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13702 case `$LD -v 2>&1` in
13703 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13704 ld_shlibs_F77=no
13705 cat <<_LT_EOF 1>&2
13706
13707*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13708*** reliably create shared libraries on SCO systems. Therefore, libtool
13709*** is disabling shared libraries support. We urge you to upgrade GNU
13710*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13711*** your PATH or compiler configuration so that the native linker is
13712*** used, and then restart.
13713
13714_LT_EOF
13715 ;;
13716 *)
13717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13718 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13719 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13720 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13721 else
13722 ld_shlibs_F77=no
13723 fi
13724 ;;
13725 esac
13726 ;;
13727
13728 sunos4*)
13729 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13730 wlarc=
13731 hardcode_direct_F77=yes
13732 hardcode_shlibpath_var_F77=no
13733 ;;
13734
13735 *)
13736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13737 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13738 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13739 else
13740 ld_shlibs_F77=no
13741 fi
13742 ;;
13743 esac
13744
13745 if test "$ld_shlibs_F77" = no; then
13746 runpath_var=
13747 hardcode_libdir_flag_spec_F77=
13748 export_dynamic_flag_spec_F77=
13749 whole_archive_flag_spec_F77=
13750 fi
13751 else
13752 # PORTME fill in a description of your system's linker (not GNU ld)
13753 case $host_os in
13754 aix3*)
13755 allow_undefined_flag_F77=unsupported
13756 always_export_symbols_F77=yes
13757 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13758 # Note: this linker hardcodes the directories in LIBPATH if there
13759 # are no directories specified by -L.
13760 hardcode_minus_L_F77=yes
13761 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13762 # Neither direct hardcoding nor static linking is supported with a
13763 # broken collect2.
13764 hardcode_direct_F77=unsupported
13765 fi
13766 ;;
13767
13768 aix4* | aix5*)
13769 if test "$host_cpu" = ia64; then
13770 # On IA64, the linker does run time linking by default, so we don't
13771 # have to do anything special.
13772 aix_use_runtimelinking=no
13773 exp_sym_flag='-Bexport'
13774 no_entry_flag=""
13775 else
13776 # If we're using GNU nm, then we don't want the "-C" option.
13777 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13778 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13779 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13780 else
13781 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13782 fi
13783 aix_use_runtimelinking=no
13784
13785 # Test if we are trying to use run time linking or normal
13786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13787 # need to do runtime linking.
13788 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13789 for ld_flag in $LDFLAGS; do
13790 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13791 aix_use_runtimelinking=yes
13792 break
13793 fi
13794 done
13795 ;;
13796 esac
13797
13798 exp_sym_flag='-bexport'
13799 no_entry_flag='-bnoentry'
13800 fi
13801
13802 # When large executables or shared objects are built, AIX ld can
13803 # have problems creating the table of contents. If linking a library
13804 # or program results in "error TOC overflow" add -mminimal-toc to
13805 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13806 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13807
13808 archive_cmds_F77=''
13809 hardcode_direct_F77=yes
13810 hardcode_libdir_separator_F77=':'
13811 link_all_deplibs_F77=yes
13812
13813 if test "$GCC" = yes; then
13814 case $host_os in aix4.[012]|aix4.[012].*)
13815 # We only want to do this on AIX 4.2 and lower, the check
13816 # below for broken collect2 doesn't work under 4.3+
13817 collect2name=`${CC} -print-prog-name=collect2`
13818 if test -f "$collect2name" && \
13819 strings "$collect2name" | grep resolve_lib_name >/dev/null
13820 then
13821 # We have reworked collect2
13822 hardcode_direct_F77=yes
13823 else
13824 # We have old collect2
13825 hardcode_direct_F77=unsupported
13826 # It fails to find uninstalled libraries when the uninstalled
13827 # path is not listed in the libpath. Setting hardcode_minus_L
13828 # to unsupported forces relinking
13829 hardcode_minus_L_F77=yes
13830 hardcode_libdir_flag_spec_F77='-L$libdir'
13831 hardcode_libdir_separator_F77=
13832 fi
13833 ;;
13834 esac
13835 shared_flag='-shared'
13836 if test "$aix_use_runtimelinking" = yes; then
13837 shared_flag="$shared_flag "'${wl}-G'
13838 fi
13839 else
13840 # not using gcc
13841 if test "$host_cpu" = ia64; then
13842 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13843 # chokes on -Wl,-G. The following line is correct:
13844 shared_flag='-G'
13845 else
13846 if test "$aix_use_runtimelinking" = yes; then
13847 shared_flag='${wl}-G'
13848 else
13849 shared_flag='${wl}-bM:SRE'
13850 fi
13851 fi
13852 fi
13853
13854 # It seems that -bexpall does not export symbols beginning with
13855 # underscore (_), so it is better to generate a list of symbols to export.
13856 always_export_symbols_F77=yes
13857 if test "$aix_use_runtimelinking" = yes; then
13858 # Warning - without using the other runtime loading flags (-brtl),
13859 # -berok will link without error, but may produce a broken library.
13860 allow_undefined_flag_F77='-berok'
13861 # Determine the default libpath from the value encoded in an empty executable.
13862 cat >conftest.$ac_ext <<_ACEOF
13863 program main
13864
13865 end
13866_ACEOF
13867rm -f conftest.$ac_objext conftest$ac_exeext
13868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13869 (eval $ac_link) 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -z "$ac_f77_werror_flag"
13877 || test ! -s conftest.err'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; } &&
13883 { ac_try='test -s conftest$ac_exeext'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13889
13890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13891}'`
13892# Check for a 64-bit object if we didn't find anything.
13893if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13894}'`; fi
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899fi
13900rm -f conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13903
13904 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13905 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13906 else
13907 if test "$host_cpu" = ia64; then
13908 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13909 allow_undefined_flag_F77="-z nodefs"
13910 archive_expsym_cmds_F77="\$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"
13911 else
13912 # Determine the default libpath from the value encoded in an empty executable.
13913 cat >conftest.$ac_ext <<_ACEOF
13914 program main
13915
13916 end
13917_ACEOF
13918rm -f conftest.$ac_objext conftest$ac_exeext
13919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920 (eval $ac_link) 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_f77_werror_flag"
13928 || test ! -s conftest.err'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; } &&
13934 { ac_try='test -s conftest$ac_exeext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940
13941aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13942}'`
13943# Check for a 64-bit object if we didn't find anything.
13944if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13945}'`; fi
13946else
13947 echo "$as_me: failed program was:" >&5
13948sed 's/^/| /' conftest.$ac_ext >&5
13949
13950fi
13951rm -f conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13954
13955 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13956 # Warning - without using the other run time loading flags,
13957 # -berok will link without error, but may produce a broken library.
13958 no_undefined_flag_F77=' ${wl}-bernotok'
13959 allow_undefined_flag_F77=' ${wl}-berok'
13960 # Exported symbols can be pulled into shared objects from archives
13961 whole_archive_flag_spec_F77='$convenience'
13962 archive_cmds_need_lc_F77=yes
13963 # This is similar to how AIX traditionally builds its shared libraries.
13964 archive_expsym_cmds_F77="\$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'
13965 fi
13966 fi
13967 ;;
13968
13969 amigaos*)
13970 archive_cmds_F77='$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)'
13971 hardcode_libdir_flag_spec_F77='-L$libdir'
13972 hardcode_minus_L_F77=yes
13973 # see comment about different semantics on the GNU ld section
13974 ld_shlibs_F77=no
13975 ;;
13976
13977 bsdi[45]*)
13978 export_dynamic_flag_spec_F77=-rdynamic
13979 ;;
13980
13981 cygwin* | mingw* | pw32*)
13982 # When not using gcc, we currently assume that we are using
13983 # Microsoft Visual C++.
13984 # hardcode_libdir_flag_spec is actually meaningless, as there is
13985 # no search path for DLLs.
13986 hardcode_libdir_flag_spec_F77=' '
13987 allow_undefined_flag_F77=unsupported
13988 # Tell ltmain to make .lib files, not .a files.
13989 libext=lib
13990 # Tell ltmain to make .dll files, not .so files.
13991 shrext_cmds=".dll"
13992 # FIXME: Setting linknames here is a bad hack.
13993 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13994 # The linker will automatically build a .lib file if we build a DLL.
13995 old_archive_From_new_cmds_F77='true'
13996 # FIXME: Should let the user specify the lib program.
13997 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13998 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13999 enable_shared_with_static_runtimes_F77=yes
14000 ;;
14001
14002 darwin* | rhapsody*)
14003 case $host_os in
14004 rhapsody* | darwin1.[012])
14005 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14006 ;;
14007 *) # Darwin 1.3 on
14008 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14009 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14010 else
14011 case ${MACOSX_DEPLOYMENT_TARGET} in
14012 10.[012])
14013 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14014 ;;
14015 10.*)
14016 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14017 ;;
14018 esac
14019 fi
14020 ;;
14021 esac
14022 archive_cmds_need_lc_F77=no
14023 hardcode_direct_F77=no
14024 hardcode_automatic_F77=yes
14025 hardcode_shlibpath_var_F77=unsupported
14026 whole_archive_flag_spec_F77=''
14027 link_all_deplibs_F77=yes
14028 if test "$GCC" = yes ; then
14029 output_verbose_link_cmd='echo'
14030 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14031 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14033 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
14034 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
14035 else
14036 case $cc_basename in
14037 xlc*)
14038 output_verbose_link_cmd='echo'
14039 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14040 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14041 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14042 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
14043 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
14044 ;;
14045 *)
14046 ld_shlibs_F77=no
14047 ;;
14048 esac
14049 fi
14050 ;;
14051
14052 dgux*)
14053 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14054 hardcode_libdir_flag_spec_F77='-L$libdir'
14055 hardcode_shlibpath_var_F77=no
14056 ;;
14057
14058 freebsd1*)
14059 ld_shlibs_F77=no
14060 ;;
14061
14062 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14063 # support. Future versions do this automatically, but an explicit c++rt0.o
14064 # does not break anything, and helps significantly (at the cost of a little
14065 # extra space).
14066 freebsd2.2*)
14067 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14068 hardcode_libdir_flag_spec_F77='-R$libdir'
14069 hardcode_direct_F77=yes
14070 hardcode_shlibpath_var_F77=no
14071 ;;
14072
14073 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14074 freebsd2*)
14075 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14076 hardcode_direct_F77=yes
14077 hardcode_minus_L_F77=yes
14078 hardcode_shlibpath_var_F77=no
14079 ;;
14080
14081 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14082 freebsd* | kfreebsd*-gnu | dragonfly*)
14083 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14084 hardcode_libdir_flag_spec_F77='-R$libdir'
14085 hardcode_direct_F77=yes
14086 hardcode_shlibpath_var_F77=no
14087 ;;
14088
14089 hpux9*)
14090 if test "$GCC" = yes; then
14091 archive_cmds_F77='$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'
14092 else
14093 archive_cmds_F77='$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'
14094 fi
14095 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14096 hardcode_libdir_separator_F77=:
14097 hardcode_direct_F77=yes
14098
14099 # hardcode_minus_L: Not really in the search PATH,
14100 # but as the default location of the library.
14101 hardcode_minus_L_F77=yes
14102 export_dynamic_flag_spec_F77='${wl}-E'
14103 ;;
14104
14105 hpux10*)
14106 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14107 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14108 else
14109 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14110 fi
14111 if test "$with_gnu_ld" = no; then
14112 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14113 hardcode_libdir_separator_F77=:
14114
14115 hardcode_direct_F77=yes
14116 export_dynamic_flag_spec_F77='${wl}-E'
14117
14118 # hardcode_minus_L: Not really in the search PATH,
14119 # but as the default location of the library.
14120 hardcode_minus_L_F77=yes
14121 fi
14122 ;;
14123
14124 hpux11*)
14125 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14126 case $host_cpu in
14127 hppa*64*)
14128 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14129 ;;
14130 ia64*)
14131 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14132 ;;
14133 *)
14134 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14135 ;;
14136 esac
14137 else
14138 case $host_cpu in
14139 hppa*64*)
14140 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14141 ;;
14142 ia64*)
14143 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14144 ;;
14145 *)
14146 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14147 ;;
14148 esac
14149 fi
14150 if test "$with_gnu_ld" = no; then
14151 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14152 hardcode_libdir_separator_F77=:
14153
14154 case $host_cpu in
14155 hppa*64*|ia64*)
14156 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14157 hardcode_direct_F77=no
14158 hardcode_shlibpath_var_F77=no
14159 ;;
14160 *)
14161 hardcode_direct_F77=yes
14162 export_dynamic_flag_spec_F77='${wl}-E'
14163
14164 # hardcode_minus_L: Not really in the search PATH,
14165 # but as the default location of the library.
14166 hardcode_minus_L_F77=yes
14167 ;;
14168 esac
14169 fi
14170 ;;
14171
14172 irix5* | irix6* | nonstopux*)
14173 if test "$GCC" = yes; then
14174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14175 else
14176 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14177 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14178 fi
14179 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14180 hardcode_libdir_separator_F77=:
14181 link_all_deplibs_F77=yes
14182 ;;
14183
14184 netbsd*)
14185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14186 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14187 else
14188 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14189 fi
14190 hardcode_libdir_flag_spec_F77='-R$libdir'
14191 hardcode_direct_F77=yes
14192 hardcode_shlibpath_var_F77=no
14193 ;;
14194
14195 newsos6)
14196 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14197 hardcode_direct_F77=yes
14198 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14199 hardcode_libdir_separator_F77=:
14200 hardcode_shlibpath_var_F77=no
14201 ;;
14202
14203 openbsd*)
14204 hardcode_direct_F77=yes
14205 hardcode_shlibpath_var_F77=no
14206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14207 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14209 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14210 export_dynamic_flag_spec_F77='${wl}-E'
14211 else
14212 case $host_os in
14213 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14214 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14215 hardcode_libdir_flag_spec_F77='-R$libdir'
14216 ;;
14217 *)
14218 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14219 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14220 ;;
14221 esac
14222 fi
14223 ;;
14224
14225 os2*)
14226 hardcode_libdir_flag_spec_F77='-L$libdir'
14227 hardcode_minus_L_F77=yes
14228 allow_undefined_flag_F77=unsupported
14229 archive_cmds_F77='$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'
14230 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14231 ;;
14232
14233 osf3*)
14234 if test "$GCC" = yes; then
14235 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14236 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14237 else
14238 allow_undefined_flag_F77=' -expect_unresolved \*'
14239 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14240 fi
14241 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14242 hardcode_libdir_separator_F77=:
14243 ;;
14244
14245 osf4* | osf5*) # as osf3* with the addition of -msym flag
14246 if test "$GCC" = yes; then
14247 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14248 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14249 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14250 else
14251 allow_undefined_flag_F77=' -expect_unresolved \*'
14252 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14253 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14254 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14255
14256 # Both c and cxx compiler support -rpath directly
14257 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14258 fi
14259 hardcode_libdir_separator_F77=:
14260 ;;
14261
14262 solaris*)
14263 no_undefined_flag_F77=' -z text'
14264 if test "$GCC" = yes; then
14265 wlarc='${wl}'
14266 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14267 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14268 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14269 else
14270 wlarc=''
14271 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14273 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14274 fi
14275 hardcode_libdir_flag_spec_F77='-R$libdir'
14276 hardcode_shlibpath_var_F77=no
14277 case $host_os in
14278 solaris2.[0-5] | solaris2.[0-5].*) ;;
14279 *)
14280 # The compiler driver will combine linker options so we
14281 # cannot just pass the convience library names through
14282 # without $wl, iff we do not link with $LD.
14283 # Luckily, gcc supports the same syntax we need for Sun Studio.
14284 # Supported since Solaris 2.6 (maybe 2.5.1?)
14285 case $wlarc in
14286 '')
14287 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14288 *)
14289 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14290 esac ;;
14291 esac
14292 link_all_deplibs_F77=yes
14293 ;;
14294
14295 sunos4*)
14296 if test "x$host_vendor" = xsequent; then
14297 # Use $CC to link under sequent, because it throws in some extra .o
14298 # files that make .init and .fini sections work.
14299 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14300 else
14301 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14302 fi
14303 hardcode_libdir_flag_spec_F77='-L$libdir'
14304 hardcode_direct_F77=yes
14305 hardcode_minus_L_F77=yes
14306 hardcode_shlibpath_var_F77=no
14307 ;;
14308
14309 sysv4)
14310 case $host_vendor in
14311 sni)
14312 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313 hardcode_direct_F77=yes # is this really true???
14314 ;;
14315 siemens)
14316 ## LD is ld it makes a PLAMLIB
14317 ## CC just makes a GrossModule.
14318 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14319 reload_cmds_F77='$CC -r -o $output$reload_objs'
14320 hardcode_direct_F77=no
14321 ;;
14322 motorola)
14323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14325 ;;
14326 esac
14327 runpath_var='LD_RUN_PATH'
14328 hardcode_shlibpath_var_F77=no
14329 ;;
14330
14331 sysv4.3*)
14332 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14333 hardcode_shlibpath_var_F77=no
14334 export_dynamic_flag_spec_F77='-Bexport'
14335 ;;
14336
14337 sysv4*MP*)
14338 if test -d /usr/nec; then
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_shlibpath_var_F77=no
14341 runpath_var=LD_RUN_PATH
14342 hardcode_runpath_var=yes
14343 ld_shlibs_F77=yes
14344 fi
14345 ;;
14346
14347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14348 no_undefined_flag_F77='${wl}-z,text'
14349 archive_cmds_need_lc_F77=no
14350 hardcode_shlibpath_var_F77=no
14351 runpath_var='LD_RUN_PATH'
14352
14353 if test "$GCC" = yes; then
14354 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14356 else
14357 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14359 fi
14360 ;;
14361
14362 sysv5* | sco3.2v5* | sco5v6*)
14363 # Note: We can NOT use -z defs as we might desire, because we do not
14364 # link with -lc, and that would cause any symbols used from libc to
14365 # always be unresolved, which means just about no library would
14366 # ever link correctly. If we're not using GNU ld we use -z text
14367 # though, which does catch some bad symbols but isn't as heavy-handed
14368 # as -z defs.
14369 no_undefined_flag_F77='${wl}-z,text'
14370 allow_undefined_flag_F77='${wl}-z,nodefs'
14371 archive_cmds_need_lc_F77=no
14372 hardcode_shlibpath_var_F77=no
14373 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14374 hardcode_libdir_separator_F77=':'
14375 link_all_deplibs_F77=yes
14376 export_dynamic_flag_spec_F77='${wl}-Bexport'
14377 runpath_var='LD_RUN_PATH'
14378
14379 if test "$GCC" = yes; then
14380 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14381 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14382 else
14383 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14384 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14385 fi
14386 ;;
14387
14388 uts4*)
14389 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14390 hardcode_libdir_flag_spec_F77='-L$libdir'
14391 hardcode_shlibpath_var_F77=no
14392 ;;
14393
14394 *)
14395 ld_shlibs_F77=no
14396 ;;
14397 esac
14398 fi
14399
14400echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14401echo "${ECHO_T}$ld_shlibs_F77" >&6
14402test "$ld_shlibs_F77" = no && can_build_shared=no
14403
14404#
14405# Do we need to explicitly link libc?
14406#
14407case "x$archive_cmds_need_lc_F77" in
14408x|xyes)
14409 # Assume -lc should be added
14410 archive_cmds_need_lc_F77=yes
14411
14412 if test "$enable_shared" = yes && test "$GCC" = yes; then
14413 case $archive_cmds_F77 in
14414 *'~'*)
14415 # FIXME: we may have to deal with multi-command sequences.
14416 ;;
14417 '$CC '*)
14418 # Test whether the compiler implicitly links with -lc since on some
14419 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14420 # to ld, don't add -lc before -lgcc.
14421 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14422echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14423 $rm conftest*
14424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14425
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } 2>conftest.err; then
14431 soname=conftest
14432 lib=conftest
14433 libobjs=conftest.$ac_objext
14434 deplibs=
14435 wl=$lt_prog_compiler_wl_F77
14436 pic_flag=$lt_prog_compiler_pic_F77
14437 compiler_flags=-v
14438 linker_flags=-v
14439 verstring=
14440 output_objdir=.
14441 libname=conftest
14442 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14443 allow_undefined_flag_F77=
14444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14445 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }
14449 then
14450 archive_cmds_need_lc_F77=no
14451 else
14452 archive_cmds_need_lc_F77=yes
14453 fi
14454 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14455 else
14456 cat conftest.err 1>&5
14457 fi
14458 $rm conftest*
14459 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14460echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14461 ;;
14462 esac
14463 fi
14464 ;;
14465esac
14466
14467echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14468echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14469library_names_spec=
14470libname_spec='lib$name'
14471soname_spec=
14472shrext_cmds=".so"
14473postinstall_cmds=
14474postuninstall_cmds=
14475finish_cmds=
14476finish_eval=
14477shlibpath_var=
14478shlibpath_overrides_runpath=unknown
14479version_type=none
14480dynamic_linker="$host_os ld.so"
14481sys_lib_dlsearch_path_spec="/lib /usr/lib"
14482if test "$GCC" = yes; then
14483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14484 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14485 # if the path contains ";" then we assume it to be the separator
14486 # otherwise default to the standard path separator (i.e. ":") - it is
14487 # assumed that no part of a normal pathname contains ";" but that should
14488 # okay in the real world where ";" in dirpaths is itself problematic.
14489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14490 else
14491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14492 fi
14493else
14494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14495fi
14496need_lib_prefix=unknown
14497hardcode_into_libs=no
14498
14499# when you set need_version to no, make sure it does not cause -set_version
14500# flags to be left without arguments
14501need_version=unknown
14502
14503case $host_os in
14504aix3*)
14505 version_type=linux
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14507 shlibpath_var=LIBPATH
14508
14509 # AIX 3 has no versioning support, so we append a major version to the name.
14510 soname_spec='${libname}${release}${shared_ext}$major'
14511 ;;
14512
14513aix4* | aix5*)
14514 version_type=linux
14515 need_lib_prefix=no
14516 need_version=no
14517 hardcode_into_libs=yes
14518 if test "$host_cpu" = ia64; then
14519 # AIX 5 supports IA64
14520 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 else
14523 # With GCC up to 2.95.x, collect2 would create an import file
14524 # for dependence libraries. The import file would start with
14525 # the line `#! .'. This would cause the generated library to
14526 # depend on `.', always an invalid library. This was fixed in
14527 # development snapshots of GCC prior to 3.0.
14528 case $host_os in
14529 aix4 | aix4.[01] | aix4.[01].*)
14530 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14531 echo ' yes '
14532 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14533 :
14534 else
14535 can_build_shared=no
14536 fi
14537 ;;
14538 esac
14539 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14540 # soname into executable. Probably we can add versioning support to
14541 # collect2, so additional links can be useful in future.
14542 if test "$aix_use_runtimelinking" = yes; then
14543 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14544 # instead of lib<name>.a to let people know that these are not
14545 # typical AIX shared libraries.
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 else
14548 # We preserve .a as extension for shared libraries through AIX4.2
14549 # and later when we are not doing run time linking.
14550 library_names_spec='${libname}${release}.a $libname.a'
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 fi
14553 shlibpath_var=LIBPATH
14554 fi
14555 ;;
14556
14557amigaos*)
14558 library_names_spec='$libname.ixlibrary $libname.a'
14559 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14560 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'
14561 ;;
14562
14563beos*)
14564 library_names_spec='${libname}${shared_ext}'
14565 dynamic_linker="$host_os ld.so"
14566 shlibpath_var=LIBRARY_PATH
14567 ;;
14568
14569bsdi[45]*)
14570 version_type=linux
14571 need_version=no
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14577 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14578 # the default ld.so.conf also contains /usr/contrib/lib and
14579 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14580 # libtool to hard-code these into programs
14581 ;;
14582
14583cygwin* | mingw* | pw32*)
14584 version_type=windows
14585 shrext_cmds=".dll"
14586 need_version=no
14587 need_lib_prefix=no
14588
14589 case $GCC,$host_os in
14590 yes,cygwin* | yes,mingw* | yes,pw32*)
14591 library_names_spec='$libname.dll.a'
14592 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14593 postinstall_cmds='base_file=`basename \${file}`~
14594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14595 dldir=$destdir/`dirname \$dlpath`~
14596 test -d \$dldir || mkdir -p \$dldir~
14597 $install_prog $dir/$dlname \$dldir/$dlname~
14598 chmod a+x \$dldir/$dlname'
14599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14600 dlpath=$dir/\$dldll~
14601 $rm \$dlpath'
14602 shlibpath_overrides_runpath=yes
14603
14604 case $host_os in
14605 cygwin*)
14606 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14607 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14608 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14609 ;;
14610 mingw*)
14611 # MinGW DLLs use traditional 'lib' prefix
14612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14614 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14615 # It is most probably a Windows format PATH printed by
14616 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14617 # path with ; separators, and with drive letters. We can handle the
14618 # drive letters (cygwin fileutils understands them), so leave them,
14619 # especially as we might pass files found there to a mingw objdump,
14620 # which wouldn't understand a cygwinified path. Ahh.
14621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14622 else
14623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14624 fi
14625 ;;
14626 pw32*)
14627 # pw32 DLLs use 'pw' prefix rather than 'lib'
14628 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14629 ;;
14630 esac
14631 ;;
14632
14633 *)
14634 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14635 ;;
14636 esac
14637 dynamic_linker='Win32 ld.exe'
14638 # FIXME: first we should search . and the directory the executable is in
14639 shlibpath_var=PATH
14640 ;;
14641
14642darwin* | rhapsody*)
14643 dynamic_linker="$host_os dyld"
14644 version_type=darwin
14645 need_lib_prefix=no
14646 need_version=no
14647 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14648 soname_spec='${libname}${release}${major}$shared_ext'
14649 shlibpath_overrides_runpath=yes
14650 shlibpath_var=DYLD_LIBRARY_PATH
14651 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14652 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14653 if test "$GCC" = yes; then
14654 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14655 else
14656 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14657 fi
14658 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14659 ;;
14660
14661dgux*)
14662 version_type=linux
14663 need_lib_prefix=no
14664 need_version=no
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 ;;
14669
14670freebsd1*)
14671 dynamic_linker=no
14672 ;;
14673
14674kfreebsd*-gnu)
14675 version_type=linux
14676 need_lib_prefix=no
14677 need_version=no
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14679 soname_spec='${libname}${release}${shared_ext}$major'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=no
14682 hardcode_into_libs=yes
14683 dynamic_linker='GNU ld.so'
14684 ;;
14685
14686freebsd* | dragonfly*)
14687 # DragonFly does not have aout. When/if they implement a new
14688 # versioning mechanism, adjust this.
14689 if test -x /usr/bin/objformat; then
14690 objformat=`/usr/bin/objformat`
14691 else
14692 case $host_os in
14693 freebsd[123]*) objformat=aout ;;
14694 *) objformat=elf ;;
14695 esac
14696 fi
14697 version_type=freebsd-$objformat
14698 case $version_type in
14699 freebsd-elf*)
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14701 need_version=no
14702 need_lib_prefix=no
14703 ;;
14704 freebsd-*)
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14706 need_version=yes
14707 ;;
14708 esac
14709 shlibpath_var=LD_LIBRARY_PATH
14710 case $host_os in
14711 freebsd2*)
14712 shlibpath_overrides_runpath=yes
14713 ;;
14714 freebsd3.[01]* | freebsdelf3.[01]*)
14715 shlibpath_overrides_runpath=yes
14716 hardcode_into_libs=yes
14717 ;;
14718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14720 shlibpath_overrides_runpath=no
14721 hardcode_into_libs=yes
14722 ;;
14723 freebsd*) # from 4.6 on
14724 shlibpath_overrides_runpath=yes
14725 hardcode_into_libs=yes
14726 ;;
14727 esac
14728 ;;
14729
14730gnu*)
14731 version_type=linux
14732 need_lib_prefix=no
14733 need_version=no
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 hardcode_into_libs=yes
14738 ;;
14739
14740hpux9* | hpux10* | hpux11*)
14741 # Give a soname corresponding to the major version so that dld.sl refuses to
14742 # link against other versions.
14743 version_type=sunos
14744 need_lib_prefix=no
14745 need_version=no
14746 case $host_cpu in
14747 ia64*)
14748 shrext_cmds='.so'
14749 hardcode_into_libs=yes
14750 dynamic_linker="$host_os dld.so"
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 if test "X$HPUX_IA64_MODE" = X32; then
14756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14757 else
14758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14759 fi
14760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14761 ;;
14762 hppa*64*)
14763 shrext_cmds='.sl'
14764 hardcode_into_libs=yes
14765 dynamic_linker="$host_os dld.sl"
14766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14772 ;;
14773 *)
14774 shrext_cmds='.sl'
14775 dynamic_linker="$host_os dld.sl"
14776 shlibpath_var=SHLIB_PATH
14777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 ;;
14781 esac
14782 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14783 postinstall_cmds='chmod 555 $lib'
14784 ;;
14785
14786interix3*)
14787 version_type=linux
14788 need_lib_prefix=no
14789 need_version=no
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=no
14795 hardcode_into_libs=yes
14796 ;;
14797
14798irix5* | irix6* | nonstopux*)
14799 case $host_os in
14800 nonstopux*) version_type=nonstopux ;;
14801 *)
14802 if test "$lt_cv_prog_gnu_ld" = yes; then
14803 version_type=linux
14804 else
14805 version_type=irix
14806 fi ;;
14807 esac
14808 need_lib_prefix=no
14809 need_version=no
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14812 case $host_os in
14813 irix5* | nonstopux*)
14814 libsuff= shlibsuff=
14815 ;;
14816 *)
14817 case $LD in # libtool.m4 will add one of these switches to LD
14818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14819 libsuff= shlibsuff= libmagic=32-bit;;
14820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14821 libsuff=32 shlibsuff=N32 libmagic=N32;;
14822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14823 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14824 *) libsuff= shlibsuff= libmagic=never-match;;
14825 esac
14826 ;;
14827 esac
14828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14829 shlibpath_overrides_runpath=no
14830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14832 hardcode_into_libs=yes
14833 ;;
14834
14835# No shared lib support for Linux oldld, aout, or coff.
14836linux*oldld* | linux*aout* | linux*coff*)
14837 dynamic_linker=no
14838 ;;
14839
14840# This must be Linux ELF.
14841linux*)
14842 version_type=linux
14843 need_lib_prefix=no
14844 need_version=no
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=no
14850 # This implies no fast_install, which is unacceptable.
14851 # Some rework will be needed to allow for fast_install
14852 # before this can be enabled.
14853 hardcode_into_libs=yes
14854
14855 # find out which ABI we are using
14856 libsuff=
14857 case "$host_cpu" in
14858 x86_64*|s390x*|powerpc64*)
14859 echo '#line 14859 "configure"' > conftest.$ac_ext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14861 (eval $ac_compile) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; then
14865 case `/usr/bin/file conftest.$ac_objext` in
14866 *64-bit*)
14867 libsuff=64
14868 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14869 ;;
14870 esac
14871 fi
14872 rm -rf conftest*
14873 ;;
14874 esac
14875
14876 # Append ld.so.conf contents to the search path
14877 if test -f /etc/ld.so.conf; then
14878 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' ' '`
14879 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14880 fi
14881
14882 # We used to test for /lib/ld.so.1 and disable shared libraries on
14883 # powerpc, because MkLinux only supported shared libraries with the
14884 # GNU dynamic linker. Since this was broken with cross compilers,
14885 # most powerpc-linux boxes support dynamic linking these days and
14886 # people can always --disable-shared, the test was removed, and we
14887 # assume the GNU/Linux dynamic linker is in use.
14888 dynamic_linker='GNU/Linux ld.so'
14889 ;;
14890
14891knetbsd*-gnu)
14892 version_type=linux
14893 need_lib_prefix=no
14894 need_version=no
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=no
14899 hardcode_into_libs=yes
14900 dynamic_linker='GNU ld.so'
14901 ;;
14902
14903netbsd*)
14904 version_type=sunos
14905 need_lib_prefix=no
14906 need_version=no
14907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14910 dynamic_linker='NetBSD (a.out) ld.so'
14911 else
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 dynamic_linker='NetBSD ld.elf_so'
14915 fi
14916 shlibpath_var=LD_LIBRARY_PATH
14917 shlibpath_overrides_runpath=yes
14918 hardcode_into_libs=yes
14919 ;;
14920
14921newsos6)
14922 version_type=linux
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 shlibpath_var=LD_LIBRARY_PATH
14925 shlibpath_overrides_runpath=yes
14926 ;;
14927
14928nto-qnx*)
14929 version_type=linux
14930 need_lib_prefix=no
14931 need_version=no
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes
14936 ;;
14937
14938openbsd*)
14939 version_type=sunos
14940 sys_lib_dlsearch_path_spec="/usr/lib"
14941 need_lib_prefix=no
14942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14943 case $host_os in
14944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14945 *) need_version=no ;;
14946 esac
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14951 case $host_os in
14952 openbsd2.[89] | openbsd2.[89].*)
14953 shlibpath_overrides_runpath=no
14954 ;;
14955 *)
14956 shlibpath_overrides_runpath=yes
14957 ;;
14958 esac
14959 else
14960 shlibpath_overrides_runpath=yes
14961 fi
14962 ;;
14963
14964os2*)
14965 libname_spec='$name'
14966 shrext_cmds=".dll"
14967 need_lib_prefix=no
14968 library_names_spec='$libname${shared_ext} $libname.a'
14969 dynamic_linker='OS/2 ld.exe'
14970 shlibpath_var=LIBPATH
14971 ;;
14972
14973osf3* | osf4* | osf5*)
14974 version_type=osf
14975 need_lib_prefix=no
14976 need_version=no
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14982 ;;
14983
14984solaris*)
14985 version_type=linux
14986 need_lib_prefix=no
14987 need_version=no
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 shlibpath_var=LD_LIBRARY_PATH
14991 shlibpath_overrides_runpath=yes
14992 hardcode_into_libs=yes
14993 # ldd complains unless libraries are executable
14994 postinstall_cmds='chmod +x $lib'
14995 ;;
14996
14997sunos4*)
14998 version_type=sunos
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15001 shlibpath_var=LD_LIBRARY_PATH
15002 shlibpath_overrides_runpath=yes
15003 if test "$with_gnu_ld" = yes; then
15004 need_lib_prefix=no
15005 fi
15006 need_version=yes
15007 ;;
15008
15009sysv4 | sysv4.3*)
15010 version_type=linux
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 case $host_vendor in
15015 sni)
15016 shlibpath_overrides_runpath=no
15017 need_lib_prefix=no
15018 export_dynamic_flag_spec='${wl}-Blargedynsym'
15019 runpath_var=LD_RUN_PATH
15020 ;;
15021 siemens)
15022 need_lib_prefix=no
15023 ;;
15024 motorola)
15025 need_lib_prefix=no
15026 need_version=no
15027 shlibpath_overrides_runpath=no
15028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15029 ;;
15030 esac
15031 ;;
15032
15033sysv4*MP*)
15034 if test -d /usr/nec ;then
15035 version_type=linux
15036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15037 soname_spec='$libname${shared_ext}.$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 fi
15040 ;;
15041
15042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15043 version_type=freebsd-elf
15044 need_lib_prefix=no
15045 need_version=no
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 hardcode_into_libs=yes
15050 if test "$with_gnu_ld" = yes; then
15051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15052 shlibpath_overrides_runpath=no
15053 else
15054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15055 shlibpath_overrides_runpath=yes
15056 case $host_os in
15057 sco3.2v5*)
15058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15059 ;;
15060 esac
15061 fi
15062 sys_lib_dlsearch_path_spec='/usr/lib'
15063 ;;
15064
15065uts4*)
15066 version_type=linux
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15070 ;;
15071
15072*)
15073 dynamic_linker=no
15074 ;;
15075esac
15076echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15077echo "${ECHO_T}$dynamic_linker" >&6
15078test "$dynamic_linker" = no && can_build_shared=no
15079
15080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15081if test "$GCC" = yes; then
15082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15083fi
15084
15085echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15086echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15087hardcode_action_F77=
15088if test -n "$hardcode_libdir_flag_spec_F77" || \
15089 test -n "$runpath_var_F77" || \
15090 test "X$hardcode_automatic_F77" = "Xyes" ; then
15091
15092 # We can hardcode non-existant directories.
15093 if test "$hardcode_direct_F77" != no &&
15094 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15095 # have to relink, otherwise we might link with an installed library
15096 # when we should be linking with a yet-to-be-installed one
15097 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15098 test "$hardcode_minus_L_F77" != no; then
15099 # Linking always hardcodes the temporary library directory.
15100 hardcode_action_F77=relink
15101 else
15102 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15103 hardcode_action_F77=immediate
15104 fi
15105else
15106 # We cannot hardcode anything, or else we can only hardcode existing
15107 # directories.
15108 hardcode_action_F77=unsupported
15109fi
15110echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15111echo "${ECHO_T}$hardcode_action_F77" >&6
15112
15113if test "$hardcode_action_F77" = relink; then
15114 # Fast installation is not supported
15115 enable_fast_install=no
15116elif test "$shlibpath_overrides_runpath" = yes ||
15117 test "$enable_shared" = no; then
15118 # Fast installation is not necessary
15119 enable_fast_install=needless
15120fi
15121
15122
15123# The else clause should only fire when bootstrapping the
15124# libtool distribution, otherwise you forgot to ship ltmain.sh
15125# with your package, and you will get complaints that there are
15126# no rules to generate ltmain.sh.
15127if test -f "$ltmain"; then
15128 # See if we are running on zsh, and set the options which allow our commands through
15129 # without removal of \ escapes.
15130 if test -n "${ZSH_VERSION+set}" ; then
15131 setopt NO_GLOB_SUBST
15132 fi
15133 # Now quote all the things that may contain metacharacters while being
15134 # careful not to overquote the AC_SUBSTed values. We take copies of the
15135 # variables and quote the copies for generation of the libtool script.
15136 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15137 SED SHELL STRIP \
15138 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15139 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15140 deplibs_check_method reload_flag reload_cmds need_locks \
15141 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15142 lt_cv_sys_global_symbol_to_c_name_address \
15143 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15144 old_postinstall_cmds old_postuninstall_cmds \
15145 compiler_F77 \
15146 CC_F77 \
15147 LD_F77 \
15148 lt_prog_compiler_wl_F77 \
15149 lt_prog_compiler_pic_F77 \
15150 lt_prog_compiler_static_F77 \
15151 lt_prog_compiler_no_builtin_flag_F77 \
15152 export_dynamic_flag_spec_F77 \
15153 thread_safe_flag_spec_F77 \
15154 whole_archive_flag_spec_F77 \
15155 enable_shared_with_static_runtimes_F77 \
15156 old_archive_cmds_F77 \
15157 old_archive_from_new_cmds_F77 \
15158 predep_objects_F77 \
15159 postdep_objects_F77 \
15160 predeps_F77 \
15161 postdeps_F77 \
15162 compiler_lib_search_path_F77 \
15163 archive_cmds_F77 \
15164 archive_expsym_cmds_F77 \
15165 postinstall_cmds_F77 \
15166 postuninstall_cmds_F77 \
15167 old_archive_from_expsyms_cmds_F77 \
15168 allow_undefined_flag_F77 \
15169 no_undefined_flag_F77 \
15170 export_symbols_cmds_F77 \
15171 hardcode_libdir_flag_spec_F77 \
15172 hardcode_libdir_flag_spec_ld_F77 \
15173 hardcode_libdir_separator_F77 \
15174 hardcode_automatic_F77 \
15175 module_cmds_F77 \
15176 module_expsym_cmds_F77 \
15177 lt_cv_prog_compiler_c_o_F77 \
15178 exclude_expsyms_F77 \
15179 include_expsyms_F77; do
15180
15181 case $var in
15182 old_archive_cmds_F77 | \
15183 old_archive_from_new_cmds_F77 | \
15184 archive_cmds_F77 | \
15185 archive_expsym_cmds_F77 | \
15186 module_cmds_F77 | \
15187 module_expsym_cmds_F77 | \
15188 old_archive_from_expsyms_cmds_F77 | \
15189 export_symbols_cmds_F77 | \
15190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15191 postinstall_cmds | postuninstall_cmds | \
15192 old_postinstall_cmds | old_postuninstall_cmds | \
15193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15194 # Double-quote double-evaled strings.
15195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15196 ;;
15197 *)
15198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15199 ;;
15200 esac
15201 done
15202
15203 case $lt_echo in
15204 *'\$0 --fallback-echo"')
15205 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15206 ;;
15207 esac
15208
15209cfgfile="$ofile"
15210
15211 cat <<__EOF__ >> "$cfgfile"
15212# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15213
15214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15215
15216# Shell to use when invoking shell scripts.
15217SHELL=$lt_SHELL
15218
15219# Whether or not to build shared libraries.
15220build_libtool_libs=$enable_shared
15221
15222# Whether or not to build static libraries.
15223build_old_libs=$enable_static
15224
15225# Whether or not to add -lc for building shared libraries.
15226build_libtool_need_lc=$archive_cmds_need_lc_F77
15227
15228# Whether or not to disallow shared libs when runtime libs are static
15229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15230
15231# Whether or not to optimize for fast installation.
15232fast_install=$enable_fast_install
15233
15234# The host system.
15235host_alias=$host_alias
15236host=$host
15237host_os=$host_os
15238
15239# The build system.
15240build_alias=$build_alias
15241build=$build
15242build_os=$build_os
15243
15244# An echo program that does not interpret backslashes.
15245echo=$lt_echo
15246
15247# The archiver.
15248AR=$lt_AR
15249AR_FLAGS=$lt_AR_FLAGS
15250
15251# A C compiler.
15252LTCC=$lt_LTCC
15253
15254# LTCC compiler flags.
15255LTCFLAGS=$lt_LTCFLAGS
15256
15257# A language-specific compiler.
15258CC=$lt_compiler_F77
15259
15260# Is the compiler the GNU C compiler?
15261with_gcc=$GCC_F77
15262
15263gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15264gcc_ver=\`gcc -dumpversion\`
15265
15266# An ERE matcher.
15267EGREP=$lt_EGREP
15268
15269# The linker used to build libraries.
15270LD=$lt_LD_F77
15271
15272# Whether we need hard or soft links.
15273LN_S=$lt_LN_S
15274
15275# A BSD-compatible nm program.
15276NM=$lt_NM
15277
15278# A symbol stripping program
15279STRIP=$lt_STRIP
15280
15281# Used to examine libraries when file_magic_cmd begins "file"
15282MAGIC_CMD=$MAGIC_CMD
15283
15284# Used on cygwin: DLL creation program.
15285DLLTOOL="$DLLTOOL"
15286
15287# Used on cygwin: object dumper.
15288OBJDUMP="$OBJDUMP"
15289
15290# Used on cygwin: assembler.
15291AS="$AS"
15292
15293# The name of the directory that contains temporary libtool files.
15294objdir=$objdir
15295
15296# How to create reloadable object files.
15297reload_flag=$lt_reload_flag
15298reload_cmds=$lt_reload_cmds
15299
15300# How to pass a linker flag through the compiler.
15301wl=$lt_lt_prog_compiler_wl_F77
15302
15303# Object file suffix (normally "o").
15304objext="$ac_objext"
15305
15306# Old archive suffix (normally "a").
15307libext="$libext"
15308
15309# Shared library suffix (normally ".so").
15310shrext_cmds='$shrext_cmds'
15311
15312# Executable file suffix (normally "").
15313exeext="$exeext"
15314
15315# Additional compiler flags for building library objects.
15316pic_flag=$lt_lt_prog_compiler_pic_F77
15317pic_mode=$pic_mode
15318
15319# What is the maximum length of a command?
15320max_cmd_len=$lt_cv_sys_max_cmd_len
15321
15322# Does compiler simultaneously support -c and -o options?
15323compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15324
15325# Must we lock files when doing compilation?
15326need_locks=$lt_need_locks
15327
15328# Do we need the lib prefix for modules?
15329need_lib_prefix=$need_lib_prefix
15330
15331# Do we need a version for libraries?
15332need_version=$need_version
15333
15334# Whether dlopen is supported.
15335dlopen_support=$enable_dlopen
15336
15337# Whether dlopen of programs is supported.
15338dlopen_self=$enable_dlopen_self
15339
15340# Whether dlopen of statically linked programs is supported.
15341dlopen_self_static=$enable_dlopen_self_static
15342
15343# Compiler flag to prevent dynamic linking.
15344link_static_flag=$lt_lt_prog_compiler_static_F77
15345
15346# Compiler flag to turn off builtin functions.
15347no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15348
15349# Compiler flag to allow reflexive dlopens.
15350export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15351
15352# Compiler flag to generate shared objects directly from archives.
15353whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15354
15355# Compiler flag to generate thread-safe objects.
15356thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15357
15358# Library versioning type.
15359version_type=$version_type
15360
15361# Format of library name prefix.
15362libname_spec=$lt_libname_spec
15363
15364# List of archive names. First name is the real one, the rest are links.
15365# The last name is the one that the linker finds with -lNAME.
15366library_names_spec=$lt_library_names_spec
15367
15368# The coded name of the library, if different from the real name.
15369soname_spec=$lt_soname_spec
15370
15371# Commands used to build and install an old-style archive.
15372RANLIB=$lt_RANLIB
15373old_archive_cmds=$lt_old_archive_cmds_F77
15374old_postinstall_cmds=$lt_old_postinstall_cmds
15375old_postuninstall_cmds=$lt_old_postuninstall_cmds
15376
15377# Create an old-style archive from a shared archive.
15378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15379
15380# Create a temporary old-style archive to link instead of a shared archive.
15381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15382
15383# Commands used to build and install a shared archive.
15384archive_cmds=$lt_archive_cmds_F77
15385archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15386postinstall_cmds=$lt_postinstall_cmds
15387postuninstall_cmds=$lt_postuninstall_cmds
15388
15389# Commands used to build a loadable module (assumed same as above if empty)
15390module_cmds=$lt_module_cmds_F77
15391module_expsym_cmds=$lt_module_expsym_cmds_F77
15392
15393# Commands to strip libraries.
15394old_striplib=$lt_old_striplib
15395striplib=$lt_striplib
15396
15397# Dependencies to place before the objects being linked to create a
15398# shared library.
15399predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15400
15401# Dependencies to place after the objects being linked to create a
15402# shared library.
15403postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15404
15405# Dependencies to place before the objects being linked to create a
15406# shared library.
15407predeps=$lt_predeps_F77
15408
15409# Dependencies to place after the objects being linked to create a
15410# shared library.
15411postdeps=$lt_postdeps_F77
15412
15413# The library search path used internally by the compiler when linking
15414# a shared library.
15415compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15416
15417# Method to check whether dependent libraries are shared objects.
15418deplibs_check_method=$lt_deplibs_check_method
15419
15420# Command to use when deplibs_check_method == file_magic.
15421file_magic_cmd=$lt_file_magic_cmd
15422
15423# Flag that allows shared libraries with undefined symbols to be built.
15424allow_undefined_flag=$lt_allow_undefined_flag_F77
15425
15426# Flag that forces no undefined symbols.
15427no_undefined_flag=$lt_no_undefined_flag_F77
15428
15429# Commands used to finish a libtool library installation in a directory.
15430finish_cmds=$lt_finish_cmds
15431
15432# Same as above, but a single script fragment to be evaled but not shown.
15433finish_eval=$lt_finish_eval
15434
15435# Take the output of nm and produce a listing of raw symbols and C names.
15436global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15437
15438# Transform the output of nm in a proper C declaration
15439global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15440
15441# Transform the output of nm in a C name address pair
15442global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15443
15444# This is the shared library runtime path variable.
15445runpath_var=$runpath_var
15446
15447# This is the shared library path variable.
15448shlibpath_var=$shlibpath_var
15449
15450# Is shlibpath searched before the hard-coded library search path?
15451shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15452
15453# How to hardcode a shared library path into an executable.
15454hardcode_action=$hardcode_action_F77
15455
15456# Whether we should hardcode library paths into libraries.
15457hardcode_into_libs=$hardcode_into_libs
15458
15459# Flag to hardcode \$libdir into a binary during linking.
15460# This must work even if \$libdir does not exist.
15461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15462
15463# If ld is used when linking, flag to hardcode \$libdir into
15464# a binary during linking. This must work even if \$libdir does
15465# not exist.
15466hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15467
15468# Whether we need a single -rpath flag with a separated argument.
15469hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15470
15471# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15472# resulting binary.
15473hardcode_direct=$hardcode_direct_F77
15474
15475# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15476# resulting binary.
15477hardcode_minus_L=$hardcode_minus_L_F77
15478
15479# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15480# the resulting binary.
15481hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15482
15483# Set to yes if building a shared library automatically hardcodes DIR into the library
15484# and all subsequent libraries and executables linked against it.
15485hardcode_automatic=$hardcode_automatic_F77
15486
15487# Variables whose values should be saved in libtool wrapper scripts and
15488# restored at relink time.
15489variables_saved_for_relink="$variables_saved_for_relink"
15490
15491# Whether libtool must link a program against all its dependency libraries.
15492link_all_deplibs=$link_all_deplibs_F77
15493
15494# Compile-time system search path for libraries
15495sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15496
15497# Run-time system search path for libraries
15498sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15499
15500# Fix the shell variable \$srcfile for the compiler.
15501fix_srcfile_path="$fix_srcfile_path_F77"
15502
15503# Set to yes if exported symbols are required.
15504always_export_symbols=$always_export_symbols_F77
15505
15506# The commands to list exported symbols.
15507export_symbols_cmds=$lt_export_symbols_cmds_F77
15508
15509# The commands to extract the exported symbol list from a shared archive.
15510extract_expsyms_cmds=$lt_extract_expsyms_cmds
15511
15512# Symbols that should not be listed in the preloaded symbols.
15513exclude_expsyms=$lt_exclude_expsyms_F77
15514
15515# Symbols that must always be exported.
15516include_expsyms=$lt_include_expsyms_F77
15517
15518# ### END LIBTOOL TAG CONFIG: $tagname
15519
15520__EOF__
15521
15522
15523else
15524 # If there is no Makefile yet, we rely on a make rule to execute
15525 # `config.status --recheck' to rerun these tests and create the
15526 # libtool script then.
15527 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15528 if test -f "$ltmain_in"; then
15529 test -f Makefile && make "$ltmain"
15530 fi
15531fi
15532
15533
15534ac_ext=c
15535ac_cpp='$CPP $CPPFLAGS'
15536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15538ac_compiler_gnu=$ac_cv_c_compiler_gnu
15539
15540CC="$lt_save_CC"
15541
15542 else
15543 tagname=""
15544 fi
15545 ;;
15546
15547 GCJ)
15548 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15549
15550
15551
15552# Source file extension for Java test sources.
15553ac_ext=java
15554
15555# Object file extension for compiled Java test sources.
15556objext=o
15557objext_GCJ=$objext
15558
15559# Code to be used in simple compile tests
15560lt_simple_compile_test_code="class foo {}\n"
15561
15562# Code to be used in simple link tests
15563lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15564
15565# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15566
15567# If no C compiler was specified, use CC.
15568LTCC=${LTCC-"$CC"}
15569
15570# If no C compiler flags were specified, use CFLAGS.
15571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15572
15573# Allow CC to be a program name with arguments.
15574compiler=$CC
15575
15576
15577# save warnings/boilerplate of simple test code
15578ac_outfile=conftest.$ac_objext
15579printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15581_lt_compiler_boilerplate=`cat conftest.err`
15582$rm conftest*
15583
15584ac_outfile=conftest.$ac_objext
15585printf "$lt_simple_link_test_code" >conftest.$ac_ext
15586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15587_lt_linker_boilerplate=`cat conftest.err`
15588$rm conftest*
15589
15590
15591# Allow CC to be a program name with arguments.
15592lt_save_CC="$CC"
15593CC=${GCJ-"gcj"}
15594compiler=$CC
15595compiler_GCJ=$CC
15596for cc_temp in $compiler""; do
15597 case $cc_temp in
15598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15600 \-*) ;;
15601 *) break;;
15602 esac
15603done
15604cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15605
15606
15607# GCJ did not exist at the time GCC didn't implicitly link libc in.
15608archive_cmds_need_lc_GCJ=no
15609
15610old_archive_cmds_GCJ=$old_archive_cmds
15611
15612
15613lt_prog_compiler_no_builtin_flag_GCJ=
15614
15615if test "$GCC" = yes; then
15616 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15617
15618
15619echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15620echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15621if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else
15624 lt_cv_prog_compiler_rtti_exceptions=no
15625 ac_outfile=conftest.$ac_objext
15626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15627 lt_compiler_flag="-fno-rtti -fno-exceptions"
15628 # Insert the option either (1) after the last *FLAGS variable, or
15629 # (2) before a word containing "conftest.", or (3) at the end.
15630 # Note that $ac_compile itself does not contain backslashes and begins
15631 # with a dollar sign (not a hyphen), so the echo should work correctly.
15632 # The option is referenced via a variable to avoid confusing sed.
15633 lt_compile=`echo "$ac_compile" | $SED \
15634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15636 -e 's:$: $lt_compiler_flag:'`
15637 (eval echo "\"\$as_me:15637: $lt_compile\"" >&5)
15638 (eval "$lt_compile" 2>conftest.err)
15639 ac_status=$?
15640 cat conftest.err >&5
15641 echo "$as_me:15641: \$? = $ac_status" >&5
15642 if (exit $ac_status) && test -s "$ac_outfile"; then
15643 # The compiler can only warn and ignore the option if not recognized
15644 # So say no if there are warnings other than the usual output.
15645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15648 lt_cv_prog_compiler_rtti_exceptions=yes
15649 fi
15650 fi
15651 $rm conftest*
15652
15653fi
15654echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15655echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15656
15657if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15658 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15659else
15660 :
15661fi
15662
15663fi
15664
15665lt_prog_compiler_wl_GCJ=
15666lt_prog_compiler_pic_GCJ=
15667lt_prog_compiler_static_GCJ=
15668
15669echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15670echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15671
15672 if test "$GCC" = yes; then
15673 lt_prog_compiler_wl_GCJ='-Wl,'
15674 lt_prog_compiler_static_GCJ='-static'
15675
15676 case $host_os in
15677 aix*)
15678 # All AIX code is PIC.
15679 if test "$host_cpu" = ia64; then
15680 # AIX 5 now supports IA64 processor
15681 lt_prog_compiler_static_GCJ='-Bstatic'
15682 fi
15683 ;;
15684
15685 amigaos*)
15686 # FIXME: we need at least 68020 code to build shared libraries, but
15687 # adding the `-m68020' flag to GCC prevents building anything better,
15688 # like `-m68040'.
15689 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15690 ;;
15691
15692 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15693 # PIC is the default for these OSes.
15694 ;;
15695
15696 mingw* | pw32* | os2*)
15697 # This hack is so that the source file can tell whether it is being
15698 # built for inclusion in a dll (and should export symbols for example).
15699 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15700 ;;
15701
15702 darwin* | rhapsody*)
15703 # PIC is the default on this platform
15704 # Common symbols not allowed in MH_DYLIB files
15705 lt_prog_compiler_pic_GCJ='-fno-common'
15706 ;;
15707
15708 interix3*)
15709 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15710 # Instead, we relocate shared libraries at runtime.
15711 ;;
15712
15713 msdosdjgpp*)
15714 # Just because we use GCC doesn't mean we suddenly get shared libraries
15715 # on systems that don't support them.
15716 lt_prog_compiler_can_build_shared_GCJ=no
15717 enable_shared=no
15718 ;;
15719
15720 sysv4*MP*)
15721 if test -d /usr/nec; then
15722 lt_prog_compiler_pic_GCJ=-Kconform_pic
15723 fi
15724 ;;
15725
15726 hpux*)
15727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15728 # not for PA HP-UX.
15729 case $host_cpu in
15730 hppa*64*|ia64*)
15731 # +Z the default
15732 ;;
15733 *)
15734 lt_prog_compiler_pic_GCJ='-fPIC'
15735 ;;
15736 esac
15737 ;;
15738
15739 *)
15740 lt_prog_compiler_pic_GCJ='-fPIC'
15741 ;;
15742 esac
15743 else
15744 # PORTME Check for flag to pass linker flags through the system compiler.
15745 case $host_os in
15746 aix*)
15747 lt_prog_compiler_wl_GCJ='-Wl,'
15748 if test "$host_cpu" = ia64; then
15749 # AIX 5 now supports IA64 processor
15750 lt_prog_compiler_static_GCJ='-Bstatic'
15751 else
15752 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15753 fi
15754 ;;
15755 darwin*)
15756 # PIC is the default on this platform
15757 # Common symbols not allowed in MH_DYLIB files
15758 case $cc_basename in
15759 xlc*)
15760 lt_prog_compiler_pic_GCJ='-qnocommon'
15761 lt_prog_compiler_wl_GCJ='-Wl,'
15762 ;;
15763 esac
15764 ;;
15765
15766 mingw* | pw32* | os2*)
15767 # This hack is so that the source file can tell whether it is being
15768 # built for inclusion in a dll (and should export symbols for example).
15769 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15770 ;;
15771
15772 hpux9* | hpux10* | hpux11*)
15773 lt_prog_compiler_wl_GCJ='-Wl,'
15774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15775 # not for PA HP-UX.
15776 case $host_cpu in
15777 hppa*64*|ia64*)
15778 # +Z the default
15779 ;;
15780 *)
15781 lt_prog_compiler_pic_GCJ='+Z'
15782 ;;
15783 esac
15784 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15785 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15786 ;;
15787
15788 irix5* | irix6* | nonstopux*)
15789 lt_prog_compiler_wl_GCJ='-Wl,'
15790 # PIC (with -KPIC) is the default.
15791 lt_prog_compiler_static_GCJ='-non_shared'
15792 ;;
15793
15794 newsos6)
15795 lt_prog_compiler_pic_GCJ='-KPIC'
15796 lt_prog_compiler_static_GCJ='-Bstatic'
15797 ;;
15798
15799 linux*)
15800 case $cc_basename in
15801 icc* | ecc*)
15802 lt_prog_compiler_wl_GCJ='-Wl,'
15803 lt_prog_compiler_pic_GCJ='-KPIC'
15804 lt_prog_compiler_static_GCJ='-static'
15805 ;;
15806 pgcc* | pgf77* | pgf90* | pgf95*)
15807 # Portland Group compilers (*not* the Pentium gcc compiler,
15808 # which looks to be a dead project)
15809 lt_prog_compiler_wl_GCJ='-Wl,'
15810 lt_prog_compiler_pic_GCJ='-fpic'
15811 lt_prog_compiler_static_GCJ='-Bstatic'
15812 ;;
15813 ccc*)
15814 lt_prog_compiler_wl_GCJ='-Wl,'
15815 # All Alpha code is PIC.
15816 lt_prog_compiler_static_GCJ='-non_shared'
15817 ;;
15818 esac
15819 ;;
15820
15821 osf3* | osf4* | osf5*)
15822 lt_prog_compiler_wl_GCJ='-Wl,'
15823 # All OSF/1 code is PIC.
15824 lt_prog_compiler_static_GCJ='-non_shared'
15825 ;;
15826
15827 solaris*)
15828 lt_prog_compiler_pic_GCJ='-KPIC'
15829 lt_prog_compiler_static_GCJ='-Bstatic'
15830 case $cc_basename in
15831 f77* | f90* | f95*)
15832 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15833 *)
15834 lt_prog_compiler_wl_GCJ='-Wl,';;
15835 esac
15836 ;;
15837
15838 sunos4*)
15839 lt_prog_compiler_wl_GCJ='-Qoption ld '
15840 lt_prog_compiler_pic_GCJ='-PIC'
15841 lt_prog_compiler_static_GCJ='-Bstatic'
15842 ;;
15843
15844 sysv4 | sysv4.2uw2* | sysv4.3*)
15845 lt_prog_compiler_wl_GCJ='-Wl,'
15846 lt_prog_compiler_pic_GCJ='-KPIC'
15847 lt_prog_compiler_static_GCJ='-Bstatic'
15848 ;;
15849
15850 sysv4*MP*)
15851 if test -d /usr/nec ;then
15852 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15853 lt_prog_compiler_static_GCJ='-Bstatic'
15854 fi
15855 ;;
15856
15857 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15858 lt_prog_compiler_wl_GCJ='-Wl,'
15859 lt_prog_compiler_pic_GCJ='-KPIC'
15860 lt_prog_compiler_static_GCJ='-Bstatic'
15861 ;;
15862
15863 unicos*)
15864 lt_prog_compiler_wl_GCJ='-Wl,'
15865 lt_prog_compiler_can_build_shared_GCJ=no
15866 ;;
15867
15868 uts4*)
15869 lt_prog_compiler_pic_GCJ='-pic'
15870 lt_prog_compiler_static_GCJ='-Bstatic'
15871 ;;
15872
15873 *)
15874 lt_prog_compiler_can_build_shared_GCJ=no
15875 ;;
15876 esac
15877 fi
15878
15879echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15880echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15881
15882#
15883# Check to make sure the PIC flag actually works.
15884#
15885if test -n "$lt_prog_compiler_pic_GCJ"; then
15886
15887echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15888echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15889if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891else
15892 lt_prog_compiler_pic_works_GCJ=no
15893 ac_outfile=conftest.$ac_objext
15894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15895 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15896 # Insert the option either (1) after the last *FLAGS variable, or
15897 # (2) before a word containing "conftest.", or (3) at the end.
15898 # Note that $ac_compile itself does not contain backslashes and begins
15899 # with a dollar sign (not a hyphen), so the echo should work correctly.
15900 # The option is referenced via a variable to avoid confusing sed.
15901 lt_compile=`echo "$ac_compile" | $SED \
15902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15904 -e 's:$: $lt_compiler_flag:'`
15905 (eval echo "\"\$as_me:15905: $lt_compile\"" >&5)
15906 (eval "$lt_compile" 2>conftest.err)
15907 ac_status=$?
15908 cat conftest.err >&5
15909 echo "$as_me:15909: \$? = $ac_status" >&5
15910 if (exit $ac_status) && test -s "$ac_outfile"; then
15911 # The compiler can only warn and ignore the option if not recognized
15912 # So say no if there are warnings other than the usual output.
15913 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15916 lt_prog_compiler_pic_works_GCJ=yes
15917 fi
15918 fi
15919 $rm conftest*
15920
15921fi
15922echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15923echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15924
15925if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15926 case $lt_prog_compiler_pic_GCJ in
15927 "" | " "*) ;;
15928 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15929 esac
15930else
15931 lt_prog_compiler_pic_GCJ=
15932 lt_prog_compiler_can_build_shared_GCJ=no
15933fi
15934
15935fi
15936case $host_os in
15937 # For platforms which do not support PIC, -DPIC is meaningless:
15938 *djgpp*)
15939 lt_prog_compiler_pic_GCJ=
15940 ;;
15941 *)
15942 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15943 ;;
15944esac
15945
15946#
15947# Check to make sure the static flag actually works.
15948#
15949wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15950echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15951echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15952if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954else
15955 lt_prog_compiler_static_works_GCJ=no
15956 save_LDFLAGS="$LDFLAGS"
15957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15958 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15960 # The linker can only warn and ignore the option if not recognized
15961 # So say no if there are warnings
15962 if test -s conftest.err; then
15963 # Append any errors to the config.log.
15964 cat conftest.err 1>&5
15965 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15967 if diff conftest.exp conftest.er2 >/dev/null; then
15968 lt_prog_compiler_static_works_GCJ=yes
15969 fi
15970 else
15971 lt_prog_compiler_static_works_GCJ=yes
15972 fi
15973 fi
15974 $rm conftest*
15975 LDFLAGS="$save_LDFLAGS"
15976
15977fi
15978echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15979echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15980
15981if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15982 :
15983else
15984 lt_prog_compiler_static_GCJ=
15985fi
15986
15987
15988echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15989echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15990if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992else
15993 lt_cv_prog_compiler_c_o_GCJ=no
15994 $rm -r conftest 2>/dev/null
15995 mkdir conftest
15996 cd conftest
15997 mkdir out
15998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15999
16000 lt_compiler_flag="-o out/conftest2.$ac_objext"
16001 # Insert the option either (1) after the last *FLAGS variable, or
16002 # (2) before a word containing "conftest.", or (3) at the end.
16003 # Note that $ac_compile itself does not contain backslashes and begins
16004 # with a dollar sign (not a hyphen), so the echo should work correctly.
16005 lt_compile=`echo "$ac_compile" | $SED \
16006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16008 -e 's:$: $lt_compiler_flag:'`
16009 (eval echo "\"\$as_me:16009: $lt_compile\"" >&5)
16010 (eval "$lt_compile" 2>out/conftest.err)
16011 ac_status=$?
16012 cat out/conftest.err >&5
16013 echo "$as_me:16013: \$? = $ac_status" >&5
16014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16015 then
16016 # The compiler can only warn and ignore the option if not recognized
16017 # So say no if there are warnings
16018 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16021 lt_cv_prog_compiler_c_o_GCJ=yes
16022 fi
16023 fi
16024 chmod u+w . 2>&5
16025 $rm conftest*
16026 # SGI C++ compiler will create directory out/ii_files/ for
16027 # template instantiation
16028 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16029 $rm out/* && rmdir out
16030 cd ..
16031 rmdir conftest
16032 $rm conftest*
16033
16034fi
16035echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16036echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16037
16038
16039hard_links="nottested"
16040if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16041 # do not overwrite the value of need_locks provided by the user
16042 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16043echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16044 hard_links=yes
16045 $rm conftest*
16046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16047 touch conftest.a
16048 ln conftest.a conftest.b 2>&5 || hard_links=no
16049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16050 echo "$as_me:$LINENO: result: $hard_links" >&5
16051echo "${ECHO_T}$hard_links" >&6
16052 if test "$hard_links" = no; then
16053 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16054echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16055 need_locks=warn
16056 fi
16057else
16058 need_locks=no
16059fi
16060
16061echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16062echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16063
16064 runpath_var=
16065 allow_undefined_flag_GCJ=
16066 enable_shared_with_static_runtimes_GCJ=no
16067 archive_cmds_GCJ=
16068 archive_expsym_cmds_GCJ=
16069 old_archive_From_new_cmds_GCJ=
16070 old_archive_from_expsyms_cmds_GCJ=
16071 export_dynamic_flag_spec_GCJ=
16072 whole_archive_flag_spec_GCJ=
16073 thread_safe_flag_spec_GCJ=
16074 hardcode_libdir_flag_spec_GCJ=
16075 hardcode_libdir_flag_spec_ld_GCJ=
16076 hardcode_libdir_separator_GCJ=
16077 hardcode_direct_GCJ=no
16078 hardcode_minus_L_GCJ=no
16079 hardcode_shlibpath_var_GCJ=unsupported
16080 link_all_deplibs_GCJ=unknown
16081 hardcode_automatic_GCJ=no
16082 module_cmds_GCJ=
16083 module_expsym_cmds_GCJ=
16084 always_export_symbols_GCJ=no
16085 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16086 # include_expsyms should be a list of space-separated symbols to be *always*
16087 # included in the symbol list
16088 include_expsyms_GCJ=
16089 # exclude_expsyms can be an extended regexp of symbols to exclude
16090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16092 # as well as any symbol that contains `d'.
16093 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16095 # platforms (ab)use it in PIC code, but their linkers get confused if
16096 # the symbol is explicitly referenced. Since portable code cannot
16097 # rely on this symbol name, it's probably fine to never include it in
16098 # preloaded symbol tables.
16099 extract_expsyms_cmds=
16100 # Just being paranoid about ensuring that cc_basename is set.
16101 for cc_temp in $compiler""; do
16102 case $cc_temp in
16103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16105 \-*) ;;
16106 *) break;;
16107 esac
16108done
16109cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16110
16111 case $host_os in
16112 cygwin* | mingw* | pw32*)
16113 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16114 # When not using gcc, we currently assume that we are using
16115 # Microsoft Visual C++.
16116 if test "$GCC" != yes; then
16117 with_gnu_ld=no
16118 fi
16119 ;;
16120 interix*)
16121 # we just hope/assume this is gcc and not c89 (= MSVC++)
16122 with_gnu_ld=yes
16123 ;;
16124 openbsd*)
16125 with_gnu_ld=no
16126 ;;
16127 esac
16128
16129 ld_shlibs_GCJ=yes
16130 if test "$with_gnu_ld" = yes; then
16131 # If archive_cmds runs LD, not CC, wlarc should be empty
16132 wlarc='${wl}'
16133
16134 # Set some defaults for GNU ld with shared library support. These
16135 # are reset later if shared libraries are not supported. Putting them
16136 # here allows them to be overridden if necessary.
16137 runpath_var=LD_RUN_PATH
16138 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16139 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16140 # ancient GNU ld didn't support --whole-archive et. al.
16141 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16142 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16143 else
16144 whole_archive_flag_spec_GCJ=
16145 fi
16146 supports_anon_versioning=no
16147 case `$LD -v 2>/dev/null` in
16148 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16149 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16150 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16151 *\ 2.11.*) ;; # other 2.11 versions
16152 *) supports_anon_versioning=yes ;;
16153 esac
16154
16155 # See if GNU ld supports shared libraries.
16156 case $host_os in
16157 aix3* | aix4* | aix5*)
16158 # On AIX/PPC, the GNU linker is very broken
16159 if test "$host_cpu" != ia64; then
16160 ld_shlibs_GCJ=no
16161 cat <<EOF 1>&2
16162
16163*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16164*** to be unable to reliably create shared libraries on AIX.
16165*** Therefore, libtool is disabling shared libraries support. If you
16166*** really care for shared libraries, you may want to modify your PATH
16167*** so that a non-GNU linker is found, and then restart.
16168
16169EOF
16170 fi
16171 ;;
16172
16173 amigaos*)
16174 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16176 hardcode_minus_L_GCJ=yes
16177
16178 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16179 # that the semantics of dynamic libraries on AmigaOS, at least up
16180 # to version 4, is to share data among multiple programs linked
16181 # with the same dynamic library. Since this doesn't match the
16182 # behavior of shared libraries on other platforms, we can't use
16183 # them.
16184 ld_shlibs_GCJ=no
16185 ;;
16186
16187 beos*)
16188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16189 allow_undefined_flag_GCJ=unsupported
16190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16191 # support --undefined. This deserves some investigation. FIXME
16192 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193 else
16194 ld_shlibs_GCJ=no
16195 fi
16196 ;;
16197
16198 cygwin* | mingw* | pw32*)
16199 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16200 # as there is no search path for DLLs.
16201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16202 allow_undefined_flag_GCJ=unsupported
16203 always_export_symbols_GCJ=no
16204 enable_shared_with_static_runtimes_GCJ=yes
16205 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16206
16207 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16208 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16209 # If the export-symbols file already is a .def file (1st line
16210 # is EXPORTS), use it as is; otherwise, prepend...
16211 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16212 cp $export_symbols $output_objdir/$soname.def;
16213 else
16214 echo EXPORTS > $output_objdir/$soname.def;
16215 cat $export_symbols >> $output_objdir/$soname.def;
16216 fi~
16217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16218 else
16219 ld_shlibs_GCJ=no
16220 fi
16221 ;;
16222
16223 interix3*)
16224 hardcode_direct_GCJ=no
16225 hardcode_shlibpath_var_GCJ=no
16226 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16227 export_dynamic_flag_spec_GCJ='${wl}-E'
16228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16229 # Instead, shared libraries are loaded at an image base (0x10000000 by
16230 # default) and relocated if they conflict, which is a slow very memory
16231 # consuming and fragmenting process. To avoid this, we pick a random,
16232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16234 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16235 archive_expsym_cmds_GCJ='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'
16236 ;;
16237
16238 linux*)
16239 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240 tmp_addflag=
16241 case $cc_basename,$host_cpu in
16242 pgcc*) # Portland Group C compiler
16243 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16244 tmp_addflag=' $pic_flag'
16245 ;;
16246 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16247 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16248 tmp_addflag=' $pic_flag -Mnomain' ;;
16249 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16250 tmp_addflag=' -i_dynamic' ;;
16251 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16252 tmp_addflag=' -i_dynamic -nofor_main' ;;
16253 ifc* | ifort*) # Intel Fortran compiler
16254 tmp_addflag=' -nofor_main' ;;
16255 esac
16256 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16257
16258 if test $supports_anon_versioning = yes; then
16259 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16261 $echo "local: *; };" >> $output_objdir/$libname.ver~
16262 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16263 fi
16264 else
16265 ld_shlibs_GCJ=no
16266 fi
16267 ;;
16268
16269 netbsd*)
16270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16271 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16272 wlarc=
16273 else
16274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16276 fi
16277 ;;
16278
16279 solaris*)
16280 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16281 ld_shlibs_GCJ=no
16282 cat <<EOF 1>&2
16283
16284*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16285*** create shared libraries on Solaris systems. Therefore, libtool
16286*** is disabling shared libraries support. We urge you to upgrade GNU
16287*** binutils to release 2.9.1 or newer. Another option is to modify
16288*** your PATH or compiler configuration so that the native linker is
16289*** used, and then restart.
16290
16291EOF
16292 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16293 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16294 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16295 else
16296 ld_shlibs_GCJ=no
16297 fi
16298 ;;
16299
16300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16301 case `$LD -v 2>&1` in
16302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16303 ld_shlibs_GCJ=no
16304 cat <<_LT_EOF 1>&2
16305
16306*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16307*** reliably create shared libraries on SCO systems. Therefore, libtool
16308*** is disabling shared libraries support. We urge you to upgrade GNU
16309*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16310*** your PATH or compiler configuration so that the native linker is
16311*** used, and then restart.
16312
16313_LT_EOF
16314 ;;
16315 *)
16316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16317 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16318 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16319 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16320 else
16321 ld_shlibs_GCJ=no
16322 fi
16323 ;;
16324 esac
16325 ;;
16326
16327 sunos4*)
16328 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16329 wlarc=
16330 hardcode_direct_GCJ=yes
16331 hardcode_shlibpath_var_GCJ=no
16332 ;;
16333
16334 *)
16335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16336 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16337 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16338 else
16339 ld_shlibs_GCJ=no
16340 fi
16341 ;;
16342 esac
16343
16344 if test "$ld_shlibs_GCJ" = no; then
16345 runpath_var=
16346 hardcode_libdir_flag_spec_GCJ=
16347 export_dynamic_flag_spec_GCJ=
16348 whole_archive_flag_spec_GCJ=
16349 fi
16350 else
16351 # PORTME fill in a description of your system's linker (not GNU ld)
16352 case $host_os in
16353 aix3*)
16354 allow_undefined_flag_GCJ=unsupported
16355 always_export_symbols_GCJ=yes
16356 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16357 # Note: this linker hardcodes the directories in LIBPATH if there
16358 # are no directories specified by -L.
16359 hardcode_minus_L_GCJ=yes
16360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16361 # Neither direct hardcoding nor static linking is supported with a
16362 # broken collect2.
16363 hardcode_direct_GCJ=unsupported
16364 fi
16365 ;;
16366
16367 aix4* | aix5*)
16368 if test "$host_cpu" = ia64; then
16369 # On IA64, the linker does run time linking by default, so we don't
16370 # have to do anything special.
16371 aix_use_runtimelinking=no
16372 exp_sym_flag='-Bexport'
16373 no_entry_flag=""
16374 else
16375 # If we're using GNU nm, then we don't want the "-C" option.
16376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16377 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16378 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16379 else
16380 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16381 fi
16382 aix_use_runtimelinking=no
16383
16384 # Test if we are trying to use run time linking or normal
16385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16386 # need to do runtime linking.
16387 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16388 for ld_flag in $LDFLAGS; do
16389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16390 aix_use_runtimelinking=yes
16391 break
16392 fi
16393 done
16394 ;;
16395 esac
16396
16397 exp_sym_flag='-bexport'
16398 no_entry_flag='-bnoentry'
16399 fi
16400
16401 # When large executables or shared objects are built, AIX ld can
16402 # have problems creating the table of contents. If linking a library
16403 # or program results in "error TOC overflow" add -mminimal-toc to
16404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16406
16407 archive_cmds_GCJ=''
16408 hardcode_direct_GCJ=yes
16409 hardcode_libdir_separator_GCJ=':'
16410 link_all_deplibs_GCJ=yes
16411
16412 if test "$GCC" = yes; then
16413 case $host_os in aix4.[012]|aix4.[012].*)
16414 # We only want to do this on AIX 4.2 and lower, the check
16415 # below for broken collect2 doesn't work under 4.3+
16416 collect2name=`${CC} -print-prog-name=collect2`
16417 if test -f "$collect2name" && \
16418 strings "$collect2name" | grep resolve_lib_name >/dev/null
16419 then
16420 # We have reworked collect2
16421 hardcode_direct_GCJ=yes
16422 else
16423 # We have old collect2
16424 hardcode_direct_GCJ=unsupported
16425 # It fails to find uninstalled libraries when the uninstalled
16426 # path is not listed in the libpath. Setting hardcode_minus_L
16427 # to unsupported forces relinking
16428 hardcode_minus_L_GCJ=yes
16429 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16430 hardcode_libdir_separator_GCJ=
16431 fi
16432 ;;
16433 esac
16434 shared_flag='-shared'
16435 if test "$aix_use_runtimelinking" = yes; then
16436 shared_flag="$shared_flag "'${wl}-G'
16437 fi
16438 else
16439 # not using gcc
16440 if test "$host_cpu" = ia64; then
16441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16442 # chokes on -Wl,-G. The following line is correct:
16443 shared_flag='-G'
16444 else
16445 if test "$aix_use_runtimelinking" = yes; then
16446 shared_flag='${wl}-G'
16447 else
16448 shared_flag='${wl}-bM:SRE'
16449 fi
16450 fi
16451 fi
16452
16453 # It seems that -bexpall does not export symbols beginning with
16454 # underscore (_), so it is better to generate a list of symbols to export.
16455 always_export_symbols_GCJ=yes
16456 if test "$aix_use_runtimelinking" = yes; then
16457 # Warning - without using the other runtime loading flags (-brtl),
16458 # -berok will link without error, but may produce a broken library.
16459 allow_undefined_flag_GCJ='-berok'
16460 # Determine the default libpath from the value encoded in an empty executable.
16461 cat >conftest.$ac_ext <<_ACEOF
16462/* confdefs.h. */
16463_ACEOF
16464cat confdefs.h >>conftest.$ac_ext
16465cat >>conftest.$ac_ext <<_ACEOF
16466/* end confdefs.h. */
16467
16468int
16469main ()
16470{
16471
16472 ;
16473 return 0;
16474}
16475_ACEOF
16476rm -f conftest.$ac_objext conftest$ac_exeext
16477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16478 (eval $ac_link) 2>conftest.er1
16479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -z "$ac_c_werror_flag"
16486 || test ! -s conftest.err'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try='test -s conftest$ac_exeext'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498
16499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16500}'`
16501# Check for a 64-bit object if we didn't find anything.
16502if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16503}'`; fi
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508fi
16509rm -f conftest.err conftest.$ac_objext \
16510 conftest$ac_exeext conftest.$ac_ext
16511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16512
16513 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16514 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16515 else
16516 if test "$host_cpu" = ia64; then
16517 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16518 allow_undefined_flag_GCJ="-z nodefs"
16519 archive_expsym_cmds_GCJ="\$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"
16520 else
16521 # Determine the default libpath from the value encoded in an empty executable.
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528
16529int
16530main ()
16531{
16532
16533 ;
16534 return 0;
16535}
16536_ACEOF
16537rm -f conftest.$ac_objext conftest$ac_exeext
16538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16539 (eval $ac_link) 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag"
16547 || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try='test -s conftest$ac_exeext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559
16560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16561}'`
16562# Check for a 64-bit object if we didn't find anything.
16563if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16564}'`; fi
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569fi
16570rm -f conftest.err conftest.$ac_objext \
16571 conftest$ac_exeext conftest.$ac_ext
16572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16573
16574 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16575 # Warning - without using the other run time loading flags,
16576 # -berok will link without error, but may produce a broken library.
16577 no_undefined_flag_GCJ=' ${wl}-bernotok'
16578 allow_undefined_flag_GCJ=' ${wl}-berok'
16579 # Exported symbols can be pulled into shared objects from archives
16580 whole_archive_flag_spec_GCJ='$convenience'
16581 archive_cmds_need_lc_GCJ=yes
16582 # This is similar to how AIX traditionally builds its shared libraries.
16583 archive_expsym_cmds_GCJ="\$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'
16584 fi
16585 fi
16586 ;;
16587
16588 amigaos*)
16589 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16591 hardcode_minus_L_GCJ=yes
16592 # see comment about different semantics on the GNU ld section
16593 ld_shlibs_GCJ=no
16594 ;;
16595
16596 bsdi[45]*)
16597 export_dynamic_flag_spec_GCJ=-rdynamic
16598 ;;
16599
16600 cygwin* | mingw* | pw32*)
16601 # When not using gcc, we currently assume that we are using
16602 # Microsoft Visual C++.
16603 # hardcode_libdir_flag_spec is actually meaningless, as there is
16604 # no search path for DLLs.
16605 hardcode_libdir_flag_spec_GCJ=' '
16606 allow_undefined_flag_GCJ=unsupported
16607 # Tell ltmain to make .lib files, not .a files.
16608 libext=lib
16609 # Tell ltmain to make .dll files, not .so files.
16610 shrext_cmds=".dll"
16611 # FIXME: Setting linknames here is a bad hack.
16612 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16613 # The linker will automatically build a .lib file if we build a DLL.
16614 old_archive_From_new_cmds_GCJ='true'
16615 # FIXME: Should let the user specify the lib program.
16616 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16617 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16618 enable_shared_with_static_runtimes_GCJ=yes
16619 ;;
16620
16621 darwin* | rhapsody*)
16622 case $host_os in
16623 rhapsody* | darwin1.[012])
16624 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16625 ;;
16626 *) # Darwin 1.3 on
16627 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16628 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16629 else
16630 case ${MACOSX_DEPLOYMENT_TARGET} in
16631 10.[012])
16632 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16633 ;;
16634 10.*)
16635 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16636 ;;
16637 esac
16638 fi
16639 ;;
16640 esac
16641 archive_cmds_need_lc_GCJ=no
16642 hardcode_direct_GCJ=no
16643 hardcode_automatic_GCJ=yes
16644 hardcode_shlibpath_var_GCJ=unsupported
16645 whole_archive_flag_spec_GCJ=''
16646 link_all_deplibs_GCJ=yes
16647 if test "$GCC" = yes ; then
16648 output_verbose_link_cmd='echo'
16649 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16650 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16652 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16653 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16654 else
16655 case $cc_basename in
16656 xlc*)
16657 output_verbose_link_cmd='echo'
16658 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16659 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16661 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16662 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16663 ;;
16664 *)
16665 ld_shlibs_GCJ=no
16666 ;;
16667 esac
16668 fi
16669 ;;
16670
16671 dgux*)
16672 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16674 hardcode_shlibpath_var_GCJ=no
16675 ;;
16676
16677 freebsd1*)
16678 ld_shlibs_GCJ=no
16679 ;;
16680
16681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16682 # support. Future versions do this automatically, but an explicit c++rt0.o
16683 # does not break anything, and helps significantly (at the cost of a little
16684 # extra space).
16685 freebsd2.2*)
16686 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16688 hardcode_direct_GCJ=yes
16689 hardcode_shlibpath_var_GCJ=no
16690 ;;
16691
16692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16693 freebsd2*)
16694 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16695 hardcode_direct_GCJ=yes
16696 hardcode_minus_L_GCJ=yes
16697 hardcode_shlibpath_var_GCJ=no
16698 ;;
16699
16700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16701 freebsd* | kfreebsd*-gnu | dragonfly*)
16702 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16703 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16704 hardcode_direct_GCJ=yes
16705 hardcode_shlibpath_var_GCJ=no
16706 ;;
16707
16708 hpux9*)
16709 if test "$GCC" = yes; then
16710 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16711 else
16712 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16713 fi
16714 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16715 hardcode_libdir_separator_GCJ=:
16716 hardcode_direct_GCJ=yes
16717
16718 # hardcode_minus_L: Not really in the search PATH,
16719 # but as the default location of the library.
16720 hardcode_minus_L_GCJ=yes
16721 export_dynamic_flag_spec_GCJ='${wl}-E'
16722 ;;
16723
16724 hpux10*)
16725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16726 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16727 else
16728 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16729 fi
16730 if test "$with_gnu_ld" = no; then
16731 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16732 hardcode_libdir_separator_GCJ=:
16733
16734 hardcode_direct_GCJ=yes
16735 export_dynamic_flag_spec_GCJ='${wl}-E'
16736
16737 # hardcode_minus_L: Not really in the search PATH,
16738 # but as the default location of the library.
16739 hardcode_minus_L_GCJ=yes
16740 fi
16741 ;;
16742
16743 hpux11*)
16744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16745 case $host_cpu in
16746 hppa*64*)
16747 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 ;;
16749 ia64*)
16750 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16751 ;;
16752 *)
16753 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16754 ;;
16755 esac
16756 else
16757 case $host_cpu in
16758 hppa*64*)
16759 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 ;;
16761 ia64*)
16762 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16763 ;;
16764 *)
16765 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16766 ;;
16767 esac
16768 fi
16769 if test "$with_gnu_ld" = no; then
16770 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16771 hardcode_libdir_separator_GCJ=:
16772
16773 case $host_cpu in
16774 hppa*64*|ia64*)
16775 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16776 hardcode_direct_GCJ=no
16777 hardcode_shlibpath_var_GCJ=no
16778 ;;
16779 *)
16780 hardcode_direct_GCJ=yes
16781 export_dynamic_flag_spec_GCJ='${wl}-E'
16782
16783 # hardcode_minus_L: Not really in the search PATH,
16784 # but as the default location of the library.
16785 hardcode_minus_L_GCJ=yes
16786 ;;
16787 esac
16788 fi
16789 ;;
16790
16791 irix5* | irix6* | nonstopux*)
16792 if test "$GCC" = yes; then
16793 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16794 else
16795 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16796 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16797 fi
16798 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16799 hardcode_libdir_separator_GCJ=:
16800 link_all_deplibs_GCJ=yes
16801 ;;
16802
16803 netbsd*)
16804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16805 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16806 else
16807 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16808 fi
16809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16810 hardcode_direct_GCJ=yes
16811 hardcode_shlibpath_var_GCJ=no
16812 ;;
16813
16814 newsos6)
16815 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_direct_GCJ=yes
16817 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16818 hardcode_libdir_separator_GCJ=:
16819 hardcode_shlibpath_var_GCJ=no
16820 ;;
16821
16822 openbsd*)
16823 hardcode_direct_GCJ=yes
16824 hardcode_shlibpath_var_GCJ=no
16825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16826 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16828 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16829 export_dynamic_flag_spec_GCJ='${wl}-E'
16830 else
16831 case $host_os in
16832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16833 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16835 ;;
16836 *)
16837 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16838 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16839 ;;
16840 esac
16841 fi
16842 ;;
16843
16844 os2*)
16845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16846 hardcode_minus_L_GCJ=yes
16847 allow_undefined_flag_GCJ=unsupported
16848 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16849 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16850 ;;
16851
16852 osf3*)
16853 if test "$GCC" = yes; then
16854 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16855 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16856 else
16857 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16858 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16859 fi
16860 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16861 hardcode_libdir_separator_GCJ=:
16862 ;;
16863
16864 osf4* | osf5*) # as osf3* with the addition of -msym flag
16865 if test "$GCC" = yes; then
16866 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16867 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16869 else
16870 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16871 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16872 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16873 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16874
16875 # Both c and cxx compiler support -rpath directly
16876 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16877 fi
16878 hardcode_libdir_separator_GCJ=:
16879 ;;
16880
16881 solaris*)
16882 no_undefined_flag_GCJ=' -z text'
16883 if test "$GCC" = yes; then
16884 wlarc='${wl}'
16885 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16886 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16888 else
16889 wlarc=''
16890 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16893 fi
16894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16895 hardcode_shlibpath_var_GCJ=no
16896 case $host_os in
16897 solaris2.[0-5] | solaris2.[0-5].*) ;;
16898 *)
16899 # The compiler driver will combine linker options so we
16900 # cannot just pass the convience library names through
16901 # without $wl, iff we do not link with $LD.
16902 # Luckily, gcc supports the same syntax we need for Sun Studio.
16903 # Supported since Solaris 2.6 (maybe 2.5.1?)
16904 case $wlarc in
16905 '')
16906 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16907 *)
16908 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16909 esac ;;
16910 esac
16911 link_all_deplibs_GCJ=yes
16912 ;;
16913
16914 sunos4*)
16915 if test "x$host_vendor" = xsequent; then
16916 # Use $CC to link under sequent, because it throws in some extra .o
16917 # files that make .init and .fini sections work.
16918 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16919 else
16920 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16921 fi
16922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16923 hardcode_direct_GCJ=yes
16924 hardcode_minus_L_GCJ=yes
16925 hardcode_shlibpath_var_GCJ=no
16926 ;;
16927
16928 sysv4)
16929 case $host_vendor in
16930 sni)
16931 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932 hardcode_direct_GCJ=yes # is this really true???
16933 ;;
16934 siemens)
16935 ## LD is ld it makes a PLAMLIB
16936 ## CC just makes a GrossModule.
16937 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16938 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16939 hardcode_direct_GCJ=no
16940 ;;
16941 motorola)
16942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16943 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16944 ;;
16945 esac
16946 runpath_var='LD_RUN_PATH'
16947 hardcode_shlibpath_var_GCJ=no
16948 ;;
16949
16950 sysv4.3*)
16951 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16952 hardcode_shlibpath_var_GCJ=no
16953 export_dynamic_flag_spec_GCJ='-Bexport'
16954 ;;
16955
16956 sysv4*MP*)
16957 if test -d /usr/nec; then
16958 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16959 hardcode_shlibpath_var_GCJ=no
16960 runpath_var=LD_RUN_PATH
16961 hardcode_runpath_var=yes
16962 ld_shlibs_GCJ=yes
16963 fi
16964 ;;
16965
16966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16967 no_undefined_flag_GCJ='${wl}-z,text'
16968 archive_cmds_need_lc_GCJ=no
16969 hardcode_shlibpath_var_GCJ=no
16970 runpath_var='LD_RUN_PATH'
16971
16972 if test "$GCC" = yes; then
16973 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 else
16976 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 fi
16979 ;;
16980
16981 sysv5* | sco3.2v5* | sco5v6*)
16982 # Note: We can NOT use -z defs as we might desire, because we do not
16983 # link with -lc, and that would cause any symbols used from libc to
16984 # always be unresolved, which means just about no library would
16985 # ever link correctly. If we're not using GNU ld we use -z text
16986 # though, which does catch some bad symbols but isn't as heavy-handed
16987 # as -z defs.
16988 no_undefined_flag_GCJ='${wl}-z,text'
16989 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16990 archive_cmds_need_lc_GCJ=no
16991 hardcode_shlibpath_var_GCJ=no
16992 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16993 hardcode_libdir_separator_GCJ=':'
16994 link_all_deplibs_GCJ=yes
16995 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16996 runpath_var='LD_RUN_PATH'
16997
16998 if test "$GCC" = yes; then
16999 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17000 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17001 else
17002 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17003 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17004 fi
17005 ;;
17006
17007 uts4*)
17008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17010 hardcode_shlibpath_var_GCJ=no
17011 ;;
17012
17013 *)
17014 ld_shlibs_GCJ=no
17015 ;;
17016 esac
17017 fi
17018
17019echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17020echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17021test "$ld_shlibs_GCJ" = no && can_build_shared=no
17022
17023#
17024# Do we need to explicitly link libc?
17025#
17026case "x$archive_cmds_need_lc_GCJ" in
17027x|xyes)
17028 # Assume -lc should be added
17029 archive_cmds_need_lc_GCJ=yes
17030
17031 if test "$enable_shared" = yes && test "$GCC" = yes; then
17032 case $archive_cmds_GCJ in
17033 *'~'*)
17034 # FIXME: we may have to deal with multi-command sequences.
17035 ;;
17036 '$CC '*)
17037 # Test whether the compiler implicitly links with -lc since on some
17038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17039 # to ld, don't add -lc before -lgcc.
17040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17041echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17042 $rm conftest*
17043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17044
17045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17046 (eval $ac_compile) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } 2>conftest.err; then
17050 soname=conftest
17051 lib=conftest
17052 libobjs=conftest.$ac_objext
17053 deplibs=
17054 wl=$lt_prog_compiler_wl_GCJ
17055 pic_flag=$lt_prog_compiler_pic_GCJ
17056 compiler_flags=-v
17057 linker_flags=-v
17058 verstring=
17059 output_objdir=.
17060 libname=conftest
17061 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17062 allow_undefined_flag_GCJ=
17063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17064 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }
17068 then
17069 archive_cmds_need_lc_GCJ=no
17070 else
17071 archive_cmds_need_lc_GCJ=yes
17072 fi
17073 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17074 else
17075 cat conftest.err 1>&5
17076 fi
17077 $rm conftest*
17078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17079echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17080 ;;
17081 esac
17082 fi
17083 ;;
17084esac
17085
17086echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17087echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17088library_names_spec=
17089libname_spec='lib$name'
17090soname_spec=
17091shrext_cmds=".so"
17092postinstall_cmds=
17093postuninstall_cmds=
17094finish_cmds=
17095finish_eval=
17096shlibpath_var=
17097shlibpath_overrides_runpath=unknown
17098version_type=none
17099dynamic_linker="$host_os ld.so"
17100sys_lib_dlsearch_path_spec="/lib /usr/lib"
17101if test "$GCC" = yes; then
17102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17104 # if the path contains ";" then we assume it to be the separator
17105 # otherwise default to the standard path separator (i.e. ":") - it is
17106 # assumed that no part of a normal pathname contains ";" but that should
17107 # okay in the real world where ";" in dirpaths is itself problematic.
17108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17109 else
17110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17111 fi
17112else
17113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17114fi
17115need_lib_prefix=unknown
17116hardcode_into_libs=no
17117
17118# when you set need_version to no, make sure it does not cause -set_version
17119# flags to be left without arguments
17120need_version=unknown
17121
17122case $host_os in
17123aix3*)
17124 version_type=linux
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17126 shlibpath_var=LIBPATH
17127
17128 # AIX 3 has no versioning support, so we append a major version to the name.
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 ;;
17131
17132aix4* | aix5*)
17133 version_type=linux
17134 need_lib_prefix=no
17135 need_version=no
17136 hardcode_into_libs=yes
17137 if test "$host_cpu" = ia64; then
17138 # AIX 5 supports IA64
17139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 else
17142 # With GCC up to 2.95.x, collect2 would create an import file
17143 # for dependence libraries. The import file would start with
17144 # the line `#! .'. This would cause the generated library to
17145 # depend on `.', always an invalid library. This was fixed in
17146 # development snapshots of GCC prior to 3.0.
17147 case $host_os in
17148 aix4 | aix4.[01] | aix4.[01].*)
17149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17150 echo ' yes '
17151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17152 :
17153 else
17154 can_build_shared=no
17155 fi
17156 ;;
17157 esac
17158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17159 # soname into executable. Probably we can add versioning support to
17160 # collect2, so additional links can be useful in future.
17161 if test "$aix_use_runtimelinking" = yes; then
17162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17163 # instead of lib<name>.a to let people know that these are not
17164 # typical AIX shared libraries.
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 else
17167 # We preserve .a as extension for shared libraries through AIX4.2
17168 # and later when we are not doing run time linking.
17169 library_names_spec='${libname}${release}.a $libname.a'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 fi
17172 shlibpath_var=LIBPATH
17173 fi
17174 ;;
17175
17176amigaos*)
17177 library_names_spec='$libname.ixlibrary $libname.a'
17178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17179 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'
17180 ;;
17181
17182beos*)
17183 library_names_spec='${libname}${shared_ext}'
17184 dynamic_linker="$host_os ld.so"
17185 shlibpath_var=LIBRARY_PATH
17186 ;;
17187
17188bsdi[45]*)
17189 version_type=linux
17190 need_version=no
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17194 shlibpath_var=LD_LIBRARY_PATH
17195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17197 # the default ld.so.conf also contains /usr/contrib/lib and
17198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17199 # libtool to hard-code these into programs
17200 ;;
17201
17202cygwin* | mingw* | pw32*)
17203 version_type=windows
17204 shrext_cmds=".dll"
17205 need_version=no
17206 need_lib_prefix=no
17207
17208 case $GCC,$host_os in
17209 yes,cygwin* | yes,mingw* | yes,pw32*)
17210 library_names_spec='$libname.dll.a'
17211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17212 postinstall_cmds='base_file=`basename \${file}`~
17213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17214 dldir=$destdir/`dirname \$dlpath`~
17215 test -d \$dldir || mkdir -p \$dldir~
17216 $install_prog $dir/$dlname \$dldir/$dlname~
17217 chmod a+x \$dldir/$dlname'
17218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17219 dlpath=$dir/\$dldll~
17220 $rm \$dlpath'
17221 shlibpath_overrides_runpath=yes
17222
17223 case $host_os in
17224 cygwin*)
17225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17228 ;;
17229 mingw*)
17230 # MinGW DLLs use traditional 'lib' prefix
17231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17234 # It is most probably a Windows format PATH printed by
17235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17236 # path with ; separators, and with drive letters. We can handle the
17237 # drive letters (cygwin fileutils understands them), so leave them,
17238 # especially as we might pass files found there to a mingw objdump,
17239 # which wouldn't understand a cygwinified path. Ahh.
17240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17241 else
17242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17243 fi
17244 ;;
17245 pw32*)
17246 # pw32 DLLs use 'pw' prefix rather than 'lib'
17247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17248 ;;
17249 esac
17250 ;;
17251
17252 *)
17253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17254 ;;
17255 esac
17256 dynamic_linker='Win32 ld.exe'
17257 # FIXME: first we should search . and the directory the executable is in
17258 shlibpath_var=PATH
17259 ;;
17260
17261darwin* | rhapsody*)
17262 dynamic_linker="$host_os dyld"
17263 version_type=darwin
17264 need_lib_prefix=no
17265 need_version=no
17266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17267 soname_spec='${libname}${release}${major}$shared_ext'
17268 shlibpath_overrides_runpath=yes
17269 shlibpath_var=DYLD_LIBRARY_PATH
17270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17272 if test "$GCC" = yes; then
17273 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17274 else
17275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17276 fi
17277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17278 ;;
17279
17280dgux*)
17281 version_type=linux
17282 need_lib_prefix=no
17283 need_version=no
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 ;;
17288
17289freebsd1*)
17290 dynamic_linker=no
17291 ;;
17292
17293kfreebsd*-gnu)
17294 version_type=linux
17295 need_lib_prefix=no
17296 need_version=no
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=no
17301 hardcode_into_libs=yes
17302 dynamic_linker='GNU ld.so'
17303 ;;
17304
17305freebsd* | dragonfly*)
17306 # DragonFly does not have aout. When/if they implement a new
17307 # versioning mechanism, adjust this.
17308 if test -x /usr/bin/objformat; then
17309 objformat=`/usr/bin/objformat`
17310 else
17311 case $host_os in
17312 freebsd[123]*) objformat=aout ;;
17313 *) objformat=elf ;;
17314 esac
17315 fi
17316 version_type=freebsd-$objformat
17317 case $version_type in
17318 freebsd-elf*)
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17320 need_version=no
17321 need_lib_prefix=no
17322 ;;
17323 freebsd-*)
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17325 need_version=yes
17326 ;;
17327 esac
17328 shlibpath_var=LD_LIBRARY_PATH
17329 case $host_os in
17330 freebsd2*)
17331 shlibpath_overrides_runpath=yes
17332 ;;
17333 freebsd3.[01]* | freebsdelf3.[01]*)
17334 shlibpath_overrides_runpath=yes
17335 hardcode_into_libs=yes
17336 ;;
17337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17339 shlibpath_overrides_runpath=no
17340 hardcode_into_libs=yes
17341 ;;
17342 freebsd*) # from 4.6 on
17343 shlibpath_overrides_runpath=yes
17344 hardcode_into_libs=yes
17345 ;;
17346 esac
17347 ;;
17348
17349gnu*)
17350 version_type=linux
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 hardcode_into_libs=yes
17357 ;;
17358
17359hpux9* | hpux10* | hpux11*)
17360 # Give a soname corresponding to the major version so that dld.sl refuses to
17361 # link against other versions.
17362 version_type=sunos
17363 need_lib_prefix=no
17364 need_version=no
17365 case $host_cpu in
17366 ia64*)
17367 shrext_cmds='.so'
17368 hardcode_into_libs=yes
17369 dynamic_linker="$host_os dld.so"
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 if test "X$HPUX_IA64_MODE" = X32; then
17375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17376 else
17377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17378 fi
17379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17380 ;;
17381 hppa*64*)
17382 shrext_cmds='.sl'
17383 hardcode_into_libs=yes
17384 dynamic_linker="$host_os dld.sl"
17385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17391 ;;
17392 *)
17393 shrext_cmds='.sl'
17394 dynamic_linker="$host_os dld.sl"
17395 shlibpath_var=SHLIB_PATH
17396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 ;;
17400 esac
17401 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17402 postinstall_cmds='chmod 555 $lib'
17403 ;;
17404
17405interix3*)
17406 version_type=linux
17407 need_lib_prefix=no
17408 need_version=no
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17410 soname_spec='${libname}${release}${shared_ext}$major'
17411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=no
17414 hardcode_into_libs=yes
17415 ;;
17416
17417irix5* | irix6* | nonstopux*)
17418 case $host_os in
17419 nonstopux*) version_type=nonstopux ;;
17420 *)
17421 if test "$lt_cv_prog_gnu_ld" = yes; then
17422 version_type=linux
17423 else
17424 version_type=irix
17425 fi ;;
17426 esac
17427 need_lib_prefix=no
17428 need_version=no
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17431 case $host_os in
17432 irix5* | nonstopux*)
17433 libsuff= shlibsuff=
17434 ;;
17435 *)
17436 case $LD in # libtool.m4 will add one of these switches to LD
17437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17438 libsuff= shlibsuff= libmagic=32-bit;;
17439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17440 libsuff=32 shlibsuff=N32 libmagic=N32;;
17441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17443 *) libsuff= shlibsuff= libmagic=never-match;;
17444 esac
17445 ;;
17446 esac
17447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17448 shlibpath_overrides_runpath=no
17449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17451 hardcode_into_libs=yes
17452 ;;
17453
17454# No shared lib support for Linux oldld, aout, or coff.
17455linux*oldld* | linux*aout* | linux*coff*)
17456 dynamic_linker=no
17457 ;;
17458
17459# This must be Linux ELF.
17460linux*)
17461 version_type=linux
17462 need_lib_prefix=no
17463 need_version=no
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 soname_spec='${libname}${release}${shared_ext}$major'
17466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=no
17469 # This implies no fast_install, which is unacceptable.
17470 # Some rework will be needed to allow for fast_install
17471 # before this can be enabled.
17472 hardcode_into_libs=yes
17473
17474 # find out which ABI we are using
17475 libsuff=
17476 case "$host_cpu" in
17477 x86_64*|s390x*|powerpc64*)
17478 echo '#line 17478 "configure"' > conftest.$ac_ext
17479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17480 (eval $ac_compile) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; then
17484 case `/usr/bin/file conftest.$ac_objext` in
17485 *64-bit*)
17486 libsuff=64
17487 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17488 ;;
17489 esac
17490 fi
17491 rm -rf conftest*
17492 ;;
17493 esac
17494
17495 # Append ld.so.conf contents to the search path
17496 if test -f /etc/ld.so.conf; then
17497 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' ' '`
17498 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17499 fi
17500
17501 # We used to test for /lib/ld.so.1 and disable shared libraries on
17502 # powerpc, because MkLinux only supported shared libraries with the
17503 # GNU dynamic linker. Since this was broken with cross compilers,
17504 # most powerpc-linux boxes support dynamic linking these days and
17505 # people can always --disable-shared, the test was removed, and we
17506 # assume the GNU/Linux dynamic linker is in use.
17507 dynamic_linker='GNU/Linux ld.so'
17508 ;;
17509
17510knetbsd*-gnu)
17511 version_type=linux
17512 need_lib_prefix=no
17513 need_version=no
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17515 soname_spec='${libname}${release}${shared_ext}$major'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 shlibpath_overrides_runpath=no
17518 hardcode_into_libs=yes
17519 dynamic_linker='GNU ld.so'
17520 ;;
17521
17522netbsd*)
17523 version_type=sunos
17524 need_lib_prefix=no
17525 need_version=no
17526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17529 dynamic_linker='NetBSD (a.out) ld.so'
17530 else
17531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17532 soname_spec='${libname}${release}${shared_ext}$major'
17533 dynamic_linker='NetBSD ld.elf_so'
17534 fi
17535 shlibpath_var=LD_LIBRARY_PATH
17536 shlibpath_overrides_runpath=yes
17537 hardcode_into_libs=yes
17538 ;;
17539
17540newsos6)
17541 version_type=linux
17542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 shlibpath_overrides_runpath=yes
17545 ;;
17546
17547nto-qnx*)
17548 version_type=linux
17549 need_lib_prefix=no
17550 need_version=no
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=yes
17555 ;;
17556
17557openbsd*)
17558 version_type=sunos
17559 sys_lib_dlsearch_path_spec="/usr/lib"
17560 need_lib_prefix=no
17561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17562 case $host_os in
17563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17564 *) need_version=no ;;
17565 esac
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17568 shlibpath_var=LD_LIBRARY_PATH
17569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17570 case $host_os in
17571 openbsd2.[89] | openbsd2.[89].*)
17572 shlibpath_overrides_runpath=no
17573 ;;
17574 *)
17575 shlibpath_overrides_runpath=yes
17576 ;;
17577 esac
17578 else
17579 shlibpath_overrides_runpath=yes
17580 fi
17581 ;;
17582
17583os2*)
17584 libname_spec='$name'
17585 shrext_cmds=".dll"
17586 need_lib_prefix=no
17587 library_names_spec='$libname${shared_ext} $libname.a'
17588 dynamic_linker='OS/2 ld.exe'
17589 shlibpath_var=LIBPATH
17590 ;;
17591
17592osf3* | osf4* | osf5*)
17593 version_type=osf
17594 need_lib_prefix=no
17595 need_version=no
17596 soname_spec='${libname}${release}${shared_ext}$major'
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17601 ;;
17602
17603solaris*)
17604 version_type=linux
17605 need_lib_prefix=no
17606 need_version=no
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 shlibpath_overrides_runpath=yes
17611 hardcode_into_libs=yes
17612 # ldd complains unless libraries are executable
17613 postinstall_cmds='chmod +x $lib'
17614 ;;
17615
17616sunos4*)
17617 version_type=sunos
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17620 shlibpath_var=LD_LIBRARY_PATH
17621 shlibpath_overrides_runpath=yes
17622 if test "$with_gnu_ld" = yes; then
17623 need_lib_prefix=no
17624 fi
17625 need_version=yes
17626 ;;
17627
17628sysv4 | sysv4.3*)
17629 version_type=linux
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 shlibpath_var=LD_LIBRARY_PATH
17633 case $host_vendor in
17634 sni)
17635 shlibpath_overrides_runpath=no
17636 need_lib_prefix=no
17637 export_dynamic_flag_spec='${wl}-Blargedynsym'
17638 runpath_var=LD_RUN_PATH
17639 ;;
17640 siemens)
17641 need_lib_prefix=no
17642 ;;
17643 motorola)
17644 need_lib_prefix=no
17645 need_version=no
17646 shlibpath_overrides_runpath=no
17647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17648 ;;
17649 esac
17650 ;;
17651
17652sysv4*MP*)
17653 if test -d /usr/nec ;then
17654 version_type=linux
17655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17656 soname_spec='$libname${shared_ext}.$major'
17657 shlibpath_var=LD_LIBRARY_PATH
17658 fi
17659 ;;
17660
17661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17662 version_type=freebsd-elf
17663 need_lib_prefix=no
17664 need_version=no
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17666 soname_spec='${libname}${release}${shared_ext}$major'
17667 shlibpath_var=LD_LIBRARY_PATH
17668 hardcode_into_libs=yes
17669 if test "$with_gnu_ld" = yes; then
17670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17671 shlibpath_overrides_runpath=no
17672 else
17673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17674 shlibpath_overrides_runpath=yes
17675 case $host_os in
17676 sco3.2v5*)
17677 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17678 ;;
17679 esac
17680 fi
17681 sys_lib_dlsearch_path_spec='/usr/lib'
17682 ;;
17683
17684uts4*)
17685 version_type=linux
17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17687 soname_spec='${libname}${release}${shared_ext}$major'
17688 shlibpath_var=LD_LIBRARY_PATH
17689 ;;
17690
17691*)
17692 dynamic_linker=no
17693 ;;
17694esac
17695echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17696echo "${ECHO_T}$dynamic_linker" >&6
17697test "$dynamic_linker" = no && can_build_shared=no
17698
17699variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17700if test "$GCC" = yes; then
17701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17702fi
17703
17704echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17705echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17706hardcode_action_GCJ=
17707if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17708 test -n "$runpath_var_GCJ" || \
17709 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17710
17711 # We can hardcode non-existant directories.
17712 if test "$hardcode_direct_GCJ" != no &&
17713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17714 # have to relink, otherwise we might link with an installed library
17715 # when we should be linking with a yet-to-be-installed one
17716 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17717 test "$hardcode_minus_L_GCJ" != no; then
17718 # Linking always hardcodes the temporary library directory.
17719 hardcode_action_GCJ=relink
17720 else
17721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17722 hardcode_action_GCJ=immediate
17723 fi
17724else
17725 # We cannot hardcode anything, or else we can only hardcode existing
17726 # directories.
17727 hardcode_action_GCJ=unsupported
17728fi
17729echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17730echo "${ECHO_T}$hardcode_action_GCJ" >&6
17731
17732if test "$hardcode_action_GCJ" = relink; then
17733 # Fast installation is not supported
17734 enable_fast_install=no
17735elif test "$shlibpath_overrides_runpath" = yes ||
17736 test "$enable_shared" = no; then
17737 # Fast installation is not necessary
17738 enable_fast_install=needless
17739fi
17740
17741
17742# The else clause should only fire when bootstrapping the
17743# libtool distribution, otherwise you forgot to ship ltmain.sh
17744# with your package, and you will get complaints that there are
17745# no rules to generate ltmain.sh.
17746if test -f "$ltmain"; then
17747 # See if we are running on zsh, and set the options which allow our commands through
17748 # without removal of \ escapes.
17749 if test -n "${ZSH_VERSION+set}" ; then
17750 setopt NO_GLOB_SUBST
17751 fi
17752 # Now quote all the things that may contain metacharacters while being
17753 # careful not to overquote the AC_SUBSTed values. We take copies of the
17754 # variables and quote the copies for generation of the libtool script.
17755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17756 SED SHELL STRIP \
17757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17759 deplibs_check_method reload_flag reload_cmds need_locks \
17760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17761 lt_cv_sys_global_symbol_to_c_name_address \
17762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17763 old_postinstall_cmds old_postuninstall_cmds \
17764 compiler_GCJ \
17765 CC_GCJ \
17766 LD_GCJ \
17767 lt_prog_compiler_wl_GCJ \
17768 lt_prog_compiler_pic_GCJ \
17769 lt_prog_compiler_static_GCJ \
17770 lt_prog_compiler_no_builtin_flag_GCJ \
17771 export_dynamic_flag_spec_GCJ \
17772 thread_safe_flag_spec_GCJ \
17773 whole_archive_flag_spec_GCJ \
17774 enable_shared_with_static_runtimes_GCJ \
17775 old_archive_cmds_GCJ \
17776 old_archive_from_new_cmds_GCJ \
17777 predep_objects_GCJ \
17778 postdep_objects_GCJ \
17779 predeps_GCJ \
17780 postdeps_GCJ \
17781 compiler_lib_search_path_GCJ \
17782 archive_cmds_GCJ \
17783 archive_expsym_cmds_GCJ \
17784 postinstall_cmds_GCJ \
17785 postuninstall_cmds_GCJ \
17786 old_archive_from_expsyms_cmds_GCJ \
17787 allow_undefined_flag_GCJ \
17788 no_undefined_flag_GCJ \
17789 export_symbols_cmds_GCJ \
17790 hardcode_libdir_flag_spec_GCJ \
17791 hardcode_libdir_flag_spec_ld_GCJ \
17792 hardcode_libdir_separator_GCJ \
17793 hardcode_automatic_GCJ \
17794 module_cmds_GCJ \
17795 module_expsym_cmds_GCJ \
17796 lt_cv_prog_compiler_c_o_GCJ \
17797 exclude_expsyms_GCJ \
17798 include_expsyms_GCJ; do
17799
17800 case $var in
17801 old_archive_cmds_GCJ | \
17802 old_archive_from_new_cmds_GCJ | \
17803 archive_cmds_GCJ | \
17804 archive_expsym_cmds_GCJ | \
17805 module_cmds_GCJ | \
17806 module_expsym_cmds_GCJ | \
17807 old_archive_from_expsyms_cmds_GCJ | \
17808 export_symbols_cmds_GCJ | \
17809 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17810 postinstall_cmds | postuninstall_cmds | \
17811 old_postinstall_cmds | old_postuninstall_cmds | \
17812 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17813 # Double-quote double-evaled strings.
17814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17815 ;;
17816 *)
17817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17818 ;;
17819 esac
17820 done
17821
17822 case $lt_echo in
17823 *'\$0 --fallback-echo"')
17824 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17825 ;;
17826 esac
17827
17828cfgfile="$ofile"
17829
17830 cat <<__EOF__ >> "$cfgfile"
17831# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17832
17833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17834
17835# Shell to use when invoking shell scripts.
17836SHELL=$lt_SHELL
17837
17838# Whether or not to build shared libraries.
17839build_libtool_libs=$enable_shared
17840
17841# Whether or not to build static libraries.
17842build_old_libs=$enable_static
17843
17844# Whether or not to add -lc for building shared libraries.
17845build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17846
17847# Whether or not to disallow shared libs when runtime libs are static
17848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17849
17850# Whether or not to optimize for fast installation.
17851fast_install=$enable_fast_install
17852
17853# The host system.
17854host_alias=$host_alias
17855host=$host
17856host_os=$host_os
17857
17858# The build system.
17859build_alias=$build_alias
17860build=$build
17861build_os=$build_os
17862
17863# An echo program that does not interpret backslashes.
17864echo=$lt_echo
17865
17866# The archiver.
17867AR=$lt_AR
17868AR_FLAGS=$lt_AR_FLAGS
17869
17870# A C compiler.
17871LTCC=$lt_LTCC
17872
17873# LTCC compiler flags.
17874LTCFLAGS=$lt_LTCFLAGS
17875
17876# A language-specific compiler.
17877CC=$lt_compiler_GCJ
17878
17879# Is the compiler the GNU C compiler?
17880with_gcc=$GCC_GCJ
17881
17882gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17883gcc_ver=\`gcc -dumpversion\`
17884
17885# An ERE matcher.
17886EGREP=$lt_EGREP
17887
17888# The linker used to build libraries.
17889LD=$lt_LD_GCJ
17890
17891# Whether we need hard or soft links.
17892LN_S=$lt_LN_S
17893
17894# A BSD-compatible nm program.
17895NM=$lt_NM
17896
17897# A symbol stripping program
17898STRIP=$lt_STRIP
17899
17900# Used to examine libraries when file_magic_cmd begins "file"
17901MAGIC_CMD=$MAGIC_CMD
17902
17903# Used on cygwin: DLL creation program.
17904DLLTOOL="$DLLTOOL"
17905
17906# Used on cygwin: object dumper.
17907OBJDUMP="$OBJDUMP"
17908
17909# Used on cygwin: assembler.
17910AS="$AS"
17911
17912# The name of the directory that contains temporary libtool files.
17913objdir=$objdir
17914
17915# How to create reloadable object files.
17916reload_flag=$lt_reload_flag
17917reload_cmds=$lt_reload_cmds
17918
17919# How to pass a linker flag through the compiler.
17920wl=$lt_lt_prog_compiler_wl_GCJ
17921
17922# Object file suffix (normally "o").
17923objext="$ac_objext"
17924
17925# Old archive suffix (normally "a").
17926libext="$libext"
17927
17928# Shared library suffix (normally ".so").
17929shrext_cmds='$shrext_cmds'
17930
17931# Executable file suffix (normally "").
17932exeext="$exeext"
17933
17934# Additional compiler flags for building library objects.
17935pic_flag=$lt_lt_prog_compiler_pic_GCJ
17936pic_mode=$pic_mode
17937
17938# What is the maximum length of a command?
17939max_cmd_len=$lt_cv_sys_max_cmd_len
17940
17941# Does compiler simultaneously support -c and -o options?
17942compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17943
17944# Must we lock files when doing compilation?
17945need_locks=$lt_need_locks
17946
17947# Do we need the lib prefix for modules?
17948need_lib_prefix=$need_lib_prefix
17949
17950# Do we need a version for libraries?
17951need_version=$need_version
17952
17953# Whether dlopen is supported.
17954dlopen_support=$enable_dlopen
17955
17956# Whether dlopen of programs is supported.
17957dlopen_self=$enable_dlopen_self
17958
17959# Whether dlopen of statically linked programs is supported.
17960dlopen_self_static=$enable_dlopen_self_static
17961
17962# Compiler flag to prevent dynamic linking.
17963link_static_flag=$lt_lt_prog_compiler_static_GCJ
17964
17965# Compiler flag to turn off builtin functions.
17966no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17967
17968# Compiler flag to allow reflexive dlopens.
17969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17970
17971# Compiler flag to generate shared objects directly from archives.
17972whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17973
17974# Compiler flag to generate thread-safe objects.
17975thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17976
17977# Library versioning type.
17978version_type=$version_type
17979
17980# Format of library name prefix.
17981libname_spec=$lt_libname_spec
17982
17983# List of archive names. First name is the real one, the rest are links.
17984# The last name is the one that the linker finds with -lNAME.
17985library_names_spec=$lt_library_names_spec
17986
17987# The coded name of the library, if different from the real name.
17988soname_spec=$lt_soname_spec
17989
17990# Commands used to build and install an old-style archive.
17991RANLIB=$lt_RANLIB
17992old_archive_cmds=$lt_old_archive_cmds_GCJ
17993old_postinstall_cmds=$lt_old_postinstall_cmds
17994old_postuninstall_cmds=$lt_old_postuninstall_cmds
17995
17996# Create an old-style archive from a shared archive.
17997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17998
17999# Create a temporary old-style archive to link instead of a shared archive.
18000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18001
18002# Commands used to build and install a shared archive.
18003archive_cmds=$lt_archive_cmds_GCJ
18004archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18005postinstall_cmds=$lt_postinstall_cmds
18006postuninstall_cmds=$lt_postuninstall_cmds
18007
18008# Commands used to build a loadable module (assumed same as above if empty)
18009module_cmds=$lt_module_cmds_GCJ
18010module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18011
18012# Commands to strip libraries.
18013old_striplib=$lt_old_striplib
18014striplib=$lt_striplib
18015
18016# Dependencies to place before the objects being linked to create a
18017# shared library.
18018predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18019
18020# Dependencies to place after the objects being linked to create a
18021# shared library.
18022postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18023
18024# Dependencies to place before the objects being linked to create a
18025# shared library.
18026predeps=$lt_predeps_GCJ
18027
18028# Dependencies to place after the objects being linked to create a
18029# shared library.
18030postdeps=$lt_postdeps_GCJ
18031
18032# The library search path used internally by the compiler when linking
18033# a shared library.
18034compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18035
18036# Method to check whether dependent libraries are shared objects.
18037deplibs_check_method=$lt_deplibs_check_method
18038
18039# Command to use when deplibs_check_method == file_magic.
18040file_magic_cmd=$lt_file_magic_cmd
18041
18042# Flag that allows shared libraries with undefined symbols to be built.
18043allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18044
18045# Flag that forces no undefined symbols.
18046no_undefined_flag=$lt_no_undefined_flag_GCJ
18047
18048# Commands used to finish a libtool library installation in a directory.
18049finish_cmds=$lt_finish_cmds
18050
18051# Same as above, but a single script fragment to be evaled but not shown.
18052finish_eval=$lt_finish_eval
18053
18054# Take the output of nm and produce a listing of raw symbols and C names.
18055global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18056
18057# Transform the output of nm in a proper C declaration
18058global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18059
18060# Transform the output of nm in a C name address pair
18061global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18062
18063# This is the shared library runtime path variable.
18064runpath_var=$runpath_var
18065
18066# This is the shared library path variable.
18067shlibpath_var=$shlibpath_var
18068
18069# Is shlibpath searched before the hard-coded library search path?
18070shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18071
18072# How to hardcode a shared library path into an executable.
18073hardcode_action=$hardcode_action_GCJ
18074
18075# Whether we should hardcode library paths into libraries.
18076hardcode_into_libs=$hardcode_into_libs
18077
18078# Flag to hardcode \$libdir into a binary during linking.
18079# This must work even if \$libdir does not exist.
18080hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18081
18082# If ld is used when linking, flag to hardcode \$libdir into
18083# a binary during linking. This must work even if \$libdir does
18084# not exist.
18085hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18086
18087# Whether we need a single -rpath flag with a separated argument.
18088hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18089
18090# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18091# resulting binary.
18092hardcode_direct=$hardcode_direct_GCJ
18093
18094# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18095# resulting binary.
18096hardcode_minus_L=$hardcode_minus_L_GCJ
18097
18098# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18099# the resulting binary.
18100hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18101
18102# Set to yes if building a shared library automatically hardcodes DIR into the library
18103# and all subsequent libraries and executables linked against it.
18104hardcode_automatic=$hardcode_automatic_GCJ
18105
18106# Variables whose values should be saved in libtool wrapper scripts and
18107# restored at relink time.
18108variables_saved_for_relink="$variables_saved_for_relink"
18109
18110# Whether libtool must link a program against all its dependency libraries.
18111link_all_deplibs=$link_all_deplibs_GCJ
18112
18113# Compile-time system search path for libraries
18114sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18115
18116# Run-time system search path for libraries
18117sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18118
18119# Fix the shell variable \$srcfile for the compiler.
18120fix_srcfile_path="$fix_srcfile_path_GCJ"
18121
18122# Set to yes if exported symbols are required.
18123always_export_symbols=$always_export_symbols_GCJ
18124
18125# The commands to list exported symbols.
18126export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18127
18128# The commands to extract the exported symbol list from a shared archive.
18129extract_expsyms_cmds=$lt_extract_expsyms_cmds
18130
18131# Symbols that should not be listed in the preloaded symbols.
18132exclude_expsyms=$lt_exclude_expsyms_GCJ
18133
18134# Symbols that must always be exported.
18135include_expsyms=$lt_include_expsyms_GCJ
18136
18137# ### END LIBTOOL TAG CONFIG: $tagname
18138
18139__EOF__
18140
18141
18142else
18143 # If there is no Makefile yet, we rely on a make rule to execute
18144 # `config.status --recheck' to rerun these tests and create the
18145 # libtool script then.
18146 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18147 if test -f "$ltmain_in"; then
18148 test -f Makefile && make "$ltmain"
18149 fi
18150fi
18151
18152
18153ac_ext=c
18154ac_cpp='$CPP $CPPFLAGS'
18155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159CC="$lt_save_CC"
18160
18161 else
18162 tagname=""
18163 fi
18164 ;;
18165
18166 RC)
18167
18168
18169
18170# Source file extension for RC test sources.
18171ac_ext=rc
18172
18173# Object file extension for compiled RC test sources.
18174objext=o
18175objext_RC=$objext
18176
18177# Code to be used in simple compile tests
18178lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18179
18180# Code to be used in simple link tests
18181lt_simple_link_test_code="$lt_simple_compile_test_code"
18182
18183# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18184
18185# If no C compiler was specified, use CC.
18186LTCC=${LTCC-"$CC"}
18187
18188# If no C compiler flags were specified, use CFLAGS.
18189LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18190
18191# Allow CC to be a program name with arguments.
18192compiler=$CC
18193
18194
18195# save warnings/boilerplate of simple test code
18196ac_outfile=conftest.$ac_objext
18197printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18198eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18199_lt_compiler_boilerplate=`cat conftest.err`
18200$rm conftest*
18201
18202ac_outfile=conftest.$ac_objext
18203printf "$lt_simple_link_test_code" >conftest.$ac_ext
18204eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18205_lt_linker_boilerplate=`cat conftest.err`
18206$rm conftest*
18207
18208
18209# Allow CC to be a program name with arguments.
18210lt_save_CC="$CC"
18211CC=${RC-"windres"}
18212compiler=$CC
18213compiler_RC=$CC
18214for cc_temp in $compiler""; do
18215 case $cc_temp in
18216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18218 \-*) ;;
18219 *) break;;
18220 esac
18221done
18222cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18223
18224lt_cv_prog_compiler_c_o_RC=yes
18225
18226# The else clause should only fire when bootstrapping the
18227# libtool distribution, otherwise you forgot to ship ltmain.sh
18228# with your package, and you will get complaints that there are
18229# no rules to generate ltmain.sh.
18230if test -f "$ltmain"; then
18231 # See if we are running on zsh, and set the options which allow our commands through
18232 # without removal of \ escapes.
18233 if test -n "${ZSH_VERSION+set}" ; then
18234 setopt NO_GLOB_SUBST
18235 fi
18236 # Now quote all the things that may contain metacharacters while being
18237 # careful not to overquote the AC_SUBSTed values. We take copies of the
18238 # variables and quote the copies for generation of the libtool script.
18239 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18240 SED SHELL STRIP \
18241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18243 deplibs_check_method reload_flag reload_cmds need_locks \
18244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18245 lt_cv_sys_global_symbol_to_c_name_address \
18246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18247 old_postinstall_cmds old_postuninstall_cmds \
18248 compiler_RC \
18249 CC_RC \
18250 LD_RC \
18251 lt_prog_compiler_wl_RC \
18252 lt_prog_compiler_pic_RC \
18253 lt_prog_compiler_static_RC \
18254 lt_prog_compiler_no_builtin_flag_RC \
18255 export_dynamic_flag_spec_RC \
18256 thread_safe_flag_spec_RC \
18257 whole_archive_flag_spec_RC \
18258 enable_shared_with_static_runtimes_RC \
18259 old_archive_cmds_RC \
18260 old_archive_from_new_cmds_RC \
18261 predep_objects_RC \
18262 postdep_objects_RC \
18263 predeps_RC \
18264 postdeps_RC \
18265 compiler_lib_search_path_RC \
18266 archive_cmds_RC \
18267 archive_expsym_cmds_RC \
18268 postinstall_cmds_RC \
18269 postuninstall_cmds_RC \
18270 old_archive_from_expsyms_cmds_RC \
18271 allow_undefined_flag_RC \
18272 no_undefined_flag_RC \
18273 export_symbols_cmds_RC \
18274 hardcode_libdir_flag_spec_RC \
18275 hardcode_libdir_flag_spec_ld_RC \
18276 hardcode_libdir_separator_RC \
18277 hardcode_automatic_RC \
18278 module_cmds_RC \
18279 module_expsym_cmds_RC \
18280 lt_cv_prog_compiler_c_o_RC \
18281 exclude_expsyms_RC \
18282 include_expsyms_RC; do
18283
18284 case $var in
18285 old_archive_cmds_RC | \
18286 old_archive_from_new_cmds_RC | \
18287 archive_cmds_RC | \
18288 archive_expsym_cmds_RC | \
18289 module_cmds_RC | \
18290 module_expsym_cmds_RC | \
18291 old_archive_from_expsyms_cmds_RC | \
18292 export_symbols_cmds_RC | \
18293 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18294 postinstall_cmds | postuninstall_cmds | \
18295 old_postinstall_cmds | old_postuninstall_cmds | \
18296 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18297 # Double-quote double-evaled strings.
18298 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18299 ;;
18300 *)
18301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18302 ;;
18303 esac
18304 done
18305
18306 case $lt_echo in
18307 *'\$0 --fallback-echo"')
18308 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18309 ;;
18310 esac
18311
18312cfgfile="$ofile"
18313
18314 cat <<__EOF__ >> "$cfgfile"
18315# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18316
18317# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18318
18319# Shell to use when invoking shell scripts.
18320SHELL=$lt_SHELL
18321
18322# Whether or not to build shared libraries.
18323build_libtool_libs=$enable_shared
18324
18325# Whether or not to build static libraries.
18326build_old_libs=$enable_static
18327
18328# Whether or not to add -lc for building shared libraries.
18329build_libtool_need_lc=$archive_cmds_need_lc_RC
18330
18331# Whether or not to disallow shared libs when runtime libs are static
18332allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18333
18334# Whether or not to optimize for fast installation.
18335fast_install=$enable_fast_install
18336
18337# The host system.
18338host_alias=$host_alias
18339host=$host
18340host_os=$host_os
18341
18342# The build system.
18343build_alias=$build_alias
18344build=$build
18345build_os=$build_os
18346
18347# An echo program that does not interpret backslashes.
18348echo=$lt_echo
18349
18350# The archiver.
18351AR=$lt_AR
18352AR_FLAGS=$lt_AR_FLAGS
18353
18354# A C compiler.
18355LTCC=$lt_LTCC
18356
18357# LTCC compiler flags.
18358LTCFLAGS=$lt_LTCFLAGS
18359
18360# A language-specific compiler.
18361CC=$lt_compiler_RC
18362
18363# Is the compiler the GNU C compiler?
18364with_gcc=$GCC_RC
18365
18366gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18367gcc_ver=\`gcc -dumpversion\`
18368
18369# An ERE matcher.
18370EGREP=$lt_EGREP
18371
18372# The linker used to build libraries.
18373LD=$lt_LD_RC
18374
18375# Whether we need hard or soft links.
18376LN_S=$lt_LN_S
18377
18378# A BSD-compatible nm program.
18379NM=$lt_NM
18380
18381# A symbol stripping program
18382STRIP=$lt_STRIP
18383
18384# Used to examine libraries when file_magic_cmd begins "file"
18385MAGIC_CMD=$MAGIC_CMD
18386
18387# Used on cygwin: DLL creation program.
18388DLLTOOL="$DLLTOOL"
18389
18390# Used on cygwin: object dumper.
18391OBJDUMP="$OBJDUMP"
18392
18393# Used on cygwin: assembler.
18394AS="$AS"
18395
18396# The name of the directory that contains temporary libtool files.
18397objdir=$objdir
18398
18399# How to create reloadable object files.
18400reload_flag=$lt_reload_flag
18401reload_cmds=$lt_reload_cmds
18402
18403# How to pass a linker flag through the compiler.
18404wl=$lt_lt_prog_compiler_wl_RC
18405
18406# Object file suffix (normally "o").
18407objext="$ac_objext"
18408
18409# Old archive suffix (normally "a").
18410libext="$libext"
18411
18412# Shared library suffix (normally ".so").
18413shrext_cmds='$shrext_cmds'
18414
18415# Executable file suffix (normally "").
18416exeext="$exeext"
18417
18418# Additional compiler flags for building library objects.
18419pic_flag=$lt_lt_prog_compiler_pic_RC
18420pic_mode=$pic_mode
18421
18422# What is the maximum length of a command?
18423max_cmd_len=$lt_cv_sys_max_cmd_len
18424
18425# Does compiler simultaneously support -c and -o options?
18426compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18427
18428# Must we lock files when doing compilation?
18429need_locks=$lt_need_locks
18430
18431# Do we need the lib prefix for modules?
18432need_lib_prefix=$need_lib_prefix
18433
18434# Do we need a version for libraries?
18435need_version=$need_version
18436
18437# Whether dlopen is supported.
18438dlopen_support=$enable_dlopen
18439
18440# Whether dlopen of programs is supported.
18441dlopen_self=$enable_dlopen_self
18442
18443# Whether dlopen of statically linked programs is supported.
18444dlopen_self_static=$enable_dlopen_self_static
18445
18446# Compiler flag to prevent dynamic linking.
18447link_static_flag=$lt_lt_prog_compiler_static_RC
18448
18449# Compiler flag to turn off builtin functions.
18450no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18451
18452# Compiler flag to allow reflexive dlopens.
18453export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18454
18455# Compiler flag to generate shared objects directly from archives.
18456whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18457
18458# Compiler flag to generate thread-safe objects.
18459thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18460
18461# Library versioning type.
18462version_type=$version_type
18463
18464# Format of library name prefix.
18465libname_spec=$lt_libname_spec
18466
18467# List of archive names. First name is the real one, the rest are links.
18468# The last name is the one that the linker finds with -lNAME.
18469library_names_spec=$lt_library_names_spec
18470
18471# The coded name of the library, if different from the real name.
18472soname_spec=$lt_soname_spec
18473
18474# Commands used to build and install an old-style archive.
18475RANLIB=$lt_RANLIB
18476old_archive_cmds=$lt_old_archive_cmds_RC
18477old_postinstall_cmds=$lt_old_postinstall_cmds
18478old_postuninstall_cmds=$lt_old_postuninstall_cmds
18479
18480# Create an old-style archive from a shared archive.
18481old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18482
18483# Create a temporary old-style archive to link instead of a shared archive.
18484old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18485
18486# Commands used to build and install a shared archive.
18487archive_cmds=$lt_archive_cmds_RC
18488archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18489postinstall_cmds=$lt_postinstall_cmds
18490postuninstall_cmds=$lt_postuninstall_cmds
18491
18492# Commands used to build a loadable module (assumed same as above if empty)
18493module_cmds=$lt_module_cmds_RC
18494module_expsym_cmds=$lt_module_expsym_cmds_RC
18495
18496# Commands to strip libraries.
18497old_striplib=$lt_old_striplib
18498striplib=$lt_striplib
18499
18500# Dependencies to place before the objects being linked to create a
18501# shared library.
18502predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18503
18504# Dependencies to place after the objects being linked to create a
18505# shared library.
18506postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18507
18508# Dependencies to place before the objects being linked to create a
18509# shared library.
18510predeps=$lt_predeps_RC
18511
18512# Dependencies to place after the objects being linked to create a
18513# shared library.
18514postdeps=$lt_postdeps_RC
18515
18516# The library search path used internally by the compiler when linking
18517# a shared library.
18518compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18519
18520# Method to check whether dependent libraries are shared objects.
18521deplibs_check_method=$lt_deplibs_check_method
18522
18523# Command to use when deplibs_check_method == file_magic.
18524file_magic_cmd=$lt_file_magic_cmd
18525
18526# Flag that allows shared libraries with undefined symbols to be built.
18527allow_undefined_flag=$lt_allow_undefined_flag_RC
18528
18529# Flag that forces no undefined symbols.
18530no_undefined_flag=$lt_no_undefined_flag_RC
18531
18532# Commands used to finish a libtool library installation in a directory.
18533finish_cmds=$lt_finish_cmds
18534
18535# Same as above, but a single script fragment to be evaled but not shown.
18536finish_eval=$lt_finish_eval
18537
18538# Take the output of nm and produce a listing of raw symbols and C names.
18539global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18540
18541# Transform the output of nm in a proper C declaration
18542global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18543
18544# Transform the output of nm in a C name address pair
18545global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18546
18547# This is the shared library runtime path variable.
18548runpath_var=$runpath_var
18549
18550# This is the shared library path variable.
18551shlibpath_var=$shlibpath_var
18552
18553# Is shlibpath searched before the hard-coded library search path?
18554shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18555
18556# How to hardcode a shared library path into an executable.
18557hardcode_action=$hardcode_action_RC
18558
18559# Whether we should hardcode library paths into libraries.
18560hardcode_into_libs=$hardcode_into_libs
18561
18562# Flag to hardcode \$libdir into a binary during linking.
18563# This must work even if \$libdir does not exist.
18564hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18565
18566# If ld is used when linking, flag to hardcode \$libdir into
18567# a binary during linking. This must work even if \$libdir does
18568# not exist.
18569hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18570
18571# Whether we need a single -rpath flag with a separated argument.
18572hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18573
18574# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18575# resulting binary.
18576hardcode_direct=$hardcode_direct_RC
18577
18578# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18579# resulting binary.
18580hardcode_minus_L=$hardcode_minus_L_RC
18581
18582# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18583# the resulting binary.
18584hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18585
18586# Set to yes if building a shared library automatically hardcodes DIR into the library
18587# and all subsequent libraries and executables linked against it.
18588hardcode_automatic=$hardcode_automatic_RC
18589
18590# Variables whose values should be saved in libtool wrapper scripts and
18591# restored at relink time.
18592variables_saved_for_relink="$variables_saved_for_relink"
18593
18594# Whether libtool must link a program against all its dependency libraries.
18595link_all_deplibs=$link_all_deplibs_RC
18596
18597# Compile-time system search path for libraries
18598sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18599
18600# Run-time system search path for libraries
18601sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18602
18603# Fix the shell variable \$srcfile for the compiler.
18604fix_srcfile_path="$fix_srcfile_path_RC"
18605
18606# Set to yes if exported symbols are required.
18607always_export_symbols=$always_export_symbols_RC
18608
18609# The commands to list exported symbols.
18610export_symbols_cmds=$lt_export_symbols_cmds_RC
18611
18612# The commands to extract the exported symbol list from a shared archive.
18613extract_expsyms_cmds=$lt_extract_expsyms_cmds
18614
18615# Symbols that should not be listed in the preloaded symbols.
18616exclude_expsyms=$lt_exclude_expsyms_RC
18617
18618# Symbols that must always be exported.
18619include_expsyms=$lt_include_expsyms_RC
18620
18621# ### END LIBTOOL TAG CONFIG: $tagname
18622
18623__EOF__
18624
18625
18626else
18627 # If there is no Makefile yet, we rely on a make rule to execute
18628 # `config.status --recheck' to rerun these tests and create the
18629 # libtool script then.
18630 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18631 if test -f "$ltmain_in"; then
18632 test -f Makefile && make "$ltmain"
18633 fi
18634fi
18635
18636
18637ac_ext=c
18638ac_cpp='$CPP $CPPFLAGS'
18639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642
18643CC="$lt_save_CC"
18644
18645 ;;
18646
18647 *)
18648 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18649echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18650 { (exit 1); exit 1; }; }
18651 ;;
18652 esac
18653
18654 # Append the new tag name to the list of available tags.
18655 if test -n "$tagname" ; then
18656 available_tags="$available_tags $tagname"
18657 fi
18658 fi
18659 done
18660 IFS="$lt_save_ifs"
18661
18662 # Now substitute the updated list of available tags.
18663 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18664 mv "${ofile}T" "$ofile"
18665 chmod +x "$ofile"
18666 else
18667 rm -f "${ofile}T"
18668 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18669echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18670 { (exit 1); exit 1; }; }
18671 fi
18672fi
18673
18674
18675
18676# This can be used to rebuild libtool when needed
18677LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18678
18679# Always use our own libtool.
18680LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18681
18682# Prevent multiple expansion
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704if test "$GCC" = yes
18705then
18706 CFLAGS="-Wall $CFLAGS"
18707fi
18708CFLAGS="$CFLAGS -I$srcdir/.. -I.."
18709
18710
18711
18712
18713for ac_header in sys/types.h
18714do
18715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18716if eval "test \"\${$as_ac_Header+set}\" = set"; then
18717 echo "$as_me:$LINENO: checking for $ac_header" >&5
18718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18719if eval "test \"\${$as_ac_Header+set}\" = set"; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18721fi
18722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18724else
18725 # Is the header compilable?
18726echo "$as_me:$LINENO: checking $ac_header usability" >&5
18727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18728cat >conftest.$ac_ext <<_ACEOF
18729/* confdefs.h. */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h. */
18734$ac_includes_default
18735#include <$ac_header>
18736_ACEOF
18737rm -f conftest.$ac_objext
18738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18739 (eval $ac_compile) 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -z "$ac_c_werror_flag"
18747 || test ! -s conftest.err'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; } &&
18753 { ac_try='test -s conftest.$ac_objext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_header_compiler=yes
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764ac_header_compiler=no
18765fi
18766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18767echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18768echo "${ECHO_T}$ac_header_compiler" >&6
18769
18770# Is the header present?
18771echo "$as_me:$LINENO: checking $ac_header presence" >&5
18772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18773cat >conftest.$ac_ext <<_ACEOF
18774/* confdefs.h. */
18775_ACEOF
18776cat confdefs.h >>conftest.$ac_ext
18777cat >>conftest.$ac_ext <<_ACEOF
18778/* end confdefs.h. */
18779#include <$ac_header>
18780_ACEOF
18781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } >/dev/null; then
18789 if test -s conftest.err; then
18790 ac_cpp_err=$ac_c_preproc_warn_flag
18791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18792 else
18793 ac_cpp_err=
18794 fi
18795else
18796 ac_cpp_err=yes
18797fi
18798if test -z "$ac_cpp_err"; then
18799 ac_header_preproc=yes
18800else
18801 echo "$as_me: failed program was:" >&5
18802sed 's/^/| /' conftest.$ac_ext >&5
18803
18804 ac_header_preproc=no
18805fi
18806rm -f conftest.err conftest.$ac_ext
18807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18808echo "${ECHO_T}$ac_header_preproc" >&6
18809
18810# So? What about this header?
18811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18812 yes:no: )
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18817 ac_header_preproc=yes
18818 ;;
18819 no:yes:* )
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18832 (
18833 cat <<\_ASBOX
18834## -------------------------------------------------- ##
18835## Report this to courier-users@lists.sourceforge.net ##
18836## -------------------------------------------------- ##
18837_ASBOX
18838 ) |
18839 sed "s/^/$as_me: WARNING: /" >&2
18840 ;;
18841esac
18842echo "$as_me:$LINENO: checking for $ac_header" >&5
18843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18844if eval "test \"\${$as_ac_Header+set}\" = set"; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847 eval "$as_ac_Header=\$ac_header_preproc"
18848fi
18849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18851
18852fi
18853if test `eval echo '${'$as_ac_Header'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18856_ACEOF
18857
18858fi
18859
18860done
18861
18862
18863
18864# Check whether --with-int32 or --without-int32 was given.
18865if test "${with_int32+set}" = set; then
18866 withval="$with_int32"
18867 int32="$withval"
18868else
18869
18870
18871 echo "$as_me:$LINENO: checking for uint32_t" >&5
18872echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
18873
18874 cat >conftest.$ac_ext <<_ACEOF
18875/* confdefs.h. */
18876_ACEOF
18877cat confdefs.h >>conftest.$ac_ext
18878cat >>conftest.$ac_ext <<_ACEOF
18879/* end confdefs.h. */
18880
18881#if HAVE_SYS_TYPES_H
18882#include <sys/types.h>
18883#endif
18884
18885int
18886main ()
18887{
18888
18889 uint32_t i=0;
18890
18891 ;
18892 return 0;
18893}
18894_ACEOF
18895rm -f conftest.$ac_objext
18896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18897 (eval $ac_compile) 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag"
18905 || test ! -s conftest.err'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest.$ac_objext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 echo "$as_me:$LINENO: result: yes" >&5
18918echo "${ECHO_T}yes" >&6 ; int32="uint32_t"
18919else
18920 echo "$as_me: failed program was:" >&5
18921sed 's/^/| /' conftest.$ac_ext >&5
18922
18923
18924
18925 echo "$as_me:$LINENO: result: no" >&5
18926echo "${ECHO_T}no" >&6
18927 echo "$as_me:$LINENO: checking for u_int_32_t" >&5
18928echo $ECHO_N "checking for u_int_32_t... $ECHO_C" >&6
18929
18930 cat >conftest.$ac_ext <<_ACEOF
18931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
18936
18937#if HAVE_SYS_TYPES_H
18938#include <sys/types.h>
18939#endif
18940
18941int
18942main ()
18943{
18944
18945 u_int32_t i=0;
18946
18947 ;
18948 return 0;
18949}
18950_ACEOF
18951rm -f conftest.$ac_objext
18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>conftest.er1
18954 ac_status=$?
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -z "$ac_c_werror_flag"
18961 || test ! -s conftest.err'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 echo "$as_me:$LINENO: result: yes" >&5
18974echo "${ECHO_T}yes" >&6; int32="u_int32_t"
18975else
18976 echo "$as_me: failed program was:" >&5
18977sed 's/^/| /' conftest.$ac_ext >&5
18978
18979
18980
18981 echo "$as_me:$LINENO: result: no" >&5
18982echo "${ECHO_T}no" >&6
18983
18984 echo "$as_me:$LINENO: checking for unsigned" >&5
18985echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
18986if test "${ac_cv_type_unsigned+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988else
18989 cat >conftest.$ac_ext <<_ACEOF
18990/* confdefs.h. */
18991_ACEOF
18992cat confdefs.h >>conftest.$ac_ext
18993cat >>conftest.$ac_ext <<_ACEOF
18994/* end confdefs.h. */
18995$ac_includes_default
18996int
18997main ()
18998{
18999if ((unsigned *) 0)
19000 return 0;
19001if (sizeof (unsigned))
19002 return 0;
19003 ;
19004 return 0;
19005}
19006_ACEOF
19007rm -f conftest.$ac_objext
19008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19009 (eval $ac_compile) 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } &&
19016 { ac_try='test -z "$ac_c_werror_flag"
19017 || test ! -s conftest.err'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; } &&
19023 { ac_try='test -s conftest.$ac_objext'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
19029 ac_cv_type_unsigned=yes
19030else
19031 echo "$as_me: failed program was:" >&5
19032sed 's/^/| /' conftest.$ac_ext >&5
19033
19034ac_cv_type_unsigned=no
19035fi
19036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19037fi
19038echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
19039echo "${ECHO_T}$ac_cv_type_unsigned" >&6
19040
19041echo "$as_me:$LINENO: checking size of unsigned" >&5
19042echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
19043if test "${ac_cv_sizeof_unsigned+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19045else
19046 if test "$ac_cv_type_unsigned" = yes; then
19047 # The cast to unsigned long works around a bug in the HP C Compiler
19048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19050 # This bug is HP SR number 8606223364.
19051 if test "$cross_compiling" = yes; then
19052 # Depending upon the size, compute the lo and hi bounds.
19053cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
19059$ac_includes_default
19060int
19061main ()
19062{
19063static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
19064test_array [0] = 0
19065
19066 ;
19067 return 0;
19068}
19069_ACEOF
19070rm -f conftest.$ac_objext
19071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19072 (eval $ac_compile) 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_c_werror_flag"
19080 || test ! -s conftest.err'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; } &&
19086 { ac_try='test -s conftest.$ac_objext'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 ac_lo=0 ac_mid=0
19093 while :; do
19094 cat >conftest.$ac_ext <<_ACEOF
19095/* confdefs.h. */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h. */
19100$ac_includes_default
19101int
19102main ()
19103{
19104static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
19105test_array [0] = 0
19106
19107 ;
19108 return 0;
19109}
19110_ACEOF
19111rm -f conftest.$ac_objext
19112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113 (eval $ac_compile) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_hi=$ac_mid; break
19134else
19135 echo "$as_me: failed program was:" >&5
19136sed 's/^/| /' conftest.$ac_ext >&5
19137
19138ac_lo=`expr $ac_mid + 1`
19139 if test $ac_lo -le $ac_mid; then
19140 ac_lo= ac_hi=
19141 break
19142 fi
19143 ac_mid=`expr 2 '*' $ac_mid + 1`
19144fi
19145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19146 done
19147else
19148 echo "$as_me: failed program was:" >&5
19149sed 's/^/| /' conftest.$ac_ext >&5
19150
19151cat >conftest.$ac_ext <<_ACEOF
19152/* confdefs.h. */
19153_ACEOF
19154cat confdefs.h >>conftest.$ac_ext
19155cat >>conftest.$ac_ext <<_ACEOF
19156/* end confdefs.h. */
19157$ac_includes_default
19158int
19159main ()
19160{
19161static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
19162test_array [0] = 0
19163
19164 ;
19165 return 0;
19166}
19167_ACEOF
19168rm -f conftest.$ac_objext
19169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170 (eval $ac_compile) 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest.$ac_objext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_hi=-1 ac_mid=-1
19191 while :; do
19192 cat >conftest.$ac_ext <<_ACEOF
19193/* confdefs.h. */
19194_ACEOF
19195cat confdefs.h >>conftest.$ac_ext
19196cat >>conftest.$ac_ext <<_ACEOF
19197/* end confdefs.h. */
19198$ac_includes_default
19199int
19200main ()
19201{
19202static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
19203test_array [0] = 0
19204
19205 ;
19206 return 0;
19207}
19208_ACEOF
19209rm -f conftest.$ac_objext
19210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211 (eval $ac_compile) 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest.$ac_objext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 ac_lo=$ac_mid; break
19232else
19233 echo "$as_me: failed program was:" >&5
19234sed 's/^/| /' conftest.$ac_ext >&5
19235
19236ac_hi=`expr '(' $ac_mid ')' - 1`
19237 if test $ac_mid -le $ac_hi; then
19238 ac_lo= ac_hi=
19239 break
19240 fi
19241 ac_mid=`expr 2 '*' $ac_mid`
19242fi
19243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244 done
19245else
19246 echo "$as_me: failed program was:" >&5
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
19249ac_lo= ac_hi=
19250fi
19251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19252fi
19253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19254# Binary search between lo and hi bounds.
19255while test "x$ac_lo" != "x$ac_hi"; do
19256 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19257 cat >conftest.$ac_ext <<_ACEOF
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263$ac_includes_default
19264int
19265main ()
19266{
19267static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
19268test_array [0] = 0
19269
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -z "$ac_c_werror_flag"
19284 || test ! -s conftest.err'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_hi=$ac_mid
19297else
19298 echo "$as_me: failed program was:" >&5
19299sed 's/^/| /' conftest.$ac_ext >&5
19300
19301ac_lo=`expr '(' $ac_mid ')' + 1`
19302fi
19303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19304done
19305case $ac_lo in
19306?*) ac_cv_sizeof_unsigned=$ac_lo;;
19307'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
19308See \`config.log' for more details." >&5
19309echo "$as_me: error: cannot compute sizeof (unsigned), 77
19310See \`config.log' for more details." >&2;}
19311 { (exit 1); exit 1; }; } ;;
19312esac
19313else
19314 if test "$cross_compiling" = yes; then
19315 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19316See \`config.log' for more details." >&5
19317echo "$as_me: error: cannot run test program while cross compiling
19318See \`config.log' for more details." >&2;}
19319 { (exit 1); exit 1; }; }
19320else
19321 cat >conftest.$ac_ext <<_ACEOF
19322/* confdefs.h. */
19323_ACEOF
19324cat confdefs.h >>conftest.$ac_ext
19325cat >>conftest.$ac_ext <<_ACEOF
19326/* end confdefs.h. */
19327$ac_includes_default
19328long longval () { return (long) (sizeof (unsigned)); }
19329unsigned long ulongval () { return (long) (sizeof (unsigned)); }
19330#include <stdio.h>
19331#include <stdlib.h>
19332int
19333main ()
19334{
19335
19336 FILE *f = fopen ("conftest.val", "w");
19337 if (! f)
19338 exit (1);
19339 if (((long) (sizeof (unsigned))) < 0)
19340 {
19341 long i = longval ();
19342 if (i != ((long) (sizeof (unsigned))))
19343 exit (1);
19344 fprintf (f, "%ld\n", i);
19345 }
19346 else
19347 {
19348 unsigned long i = ulongval ();
19349 if (i != ((long) (sizeof (unsigned))))
19350 exit (1);
19351 fprintf (f, "%lu\n", i);
19352 }
19353 exit (ferror (f) || fclose (f) != 0);
19354
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest$ac_exeext
19360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19361 (eval $ac_link) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_cv_sizeof_unsigned=`cat conftest.val`
19371else
19372 echo "$as_me: program exited with status $ac_status" >&5
19373echo "$as_me: failed program was:" >&5
19374sed 's/^/| /' conftest.$ac_ext >&5
19375
19376( exit $ac_status )
19377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
19378See \`config.log' for more details." >&5
19379echo "$as_me: error: cannot compute sizeof (unsigned), 77
19380See \`config.log' for more details." >&2;}
19381 { (exit 1); exit 1; }; }
19382fi
19383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19384fi
19385fi
19386rm -f conftest.val
19387else
19388 ac_cv_sizeof_unsigned=0
19389fi
19390fi
19391echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
19392echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
19393cat >>confdefs.h <<_ACEOF
19394#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
19395_ACEOF
19396
19397
19398 if test "$ac_cv_sizeof_unsigned" != 4
19399 then
19400 echo "$as_me:$LINENO: checking for unsigned long" >&5
19401echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19402if test "${ac_cv_type_unsigned_long+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404else
19405 cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
19411$ac_includes_default
19412int
19413main ()
19414{
19415if ((unsigned long *) 0)
19416 return 0;
19417if (sizeof (unsigned long))
19418 return 0;
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext
19424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425 (eval $ac_compile) 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag"
19433 || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest.$ac_objext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_cv_type_unsigned_long=yes
19446else
19447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450ac_cv_type_unsigned_long=no
19451fi
19452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19453fi
19454echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19455echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19456
19457echo "$as_me:$LINENO: checking size of unsigned long" >&5
19458echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19459if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461else
19462 if test "$ac_cv_type_unsigned_long" = yes; then
19463 # The cast to unsigned long works around a bug in the HP C Compiler
19464 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19465 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19466 # This bug is HP SR number 8606223364.
19467 if test "$cross_compiling" = yes; then
19468 # Depending upon the size, compute the lo and hi bounds.
19469cat >conftest.$ac_ext <<_ACEOF
19470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
19475$ac_includes_default
19476int
19477main ()
19478{
19479static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19480test_array [0] = 0
19481
19482 ;
19483 return 0;
19484}
19485_ACEOF
19486rm -f conftest.$ac_objext
19487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488 (eval $ac_compile) 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_lo=0 ac_mid=0
19509 while :; do
19510 cat >conftest.$ac_ext <<_ACEOF
19511/* confdefs.h. */
19512_ACEOF
19513cat confdefs.h >>conftest.$ac_ext
19514cat >>conftest.$ac_ext <<_ACEOF
19515/* end confdefs.h. */
19516$ac_includes_default
19517int
19518main ()
19519{
19520static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19521test_array [0] = 0
19522
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext
19528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529 (eval $ac_compile) 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -z "$ac_c_werror_flag"
19537 || test ! -s conftest.err'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; } &&
19543 { ac_try='test -s conftest.$ac_objext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_hi=$ac_mid; break
19550else
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
19554ac_lo=`expr $ac_mid + 1`
19555 if test $ac_lo -le $ac_mid; then
19556 ac_lo= ac_hi=
19557 break
19558 fi
19559 ac_mid=`expr 2 '*' $ac_mid + 1`
19560fi
19561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19562 done
19563else
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567cat >conftest.$ac_ext <<_ACEOF
19568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
19572/* end confdefs.h. */
19573$ac_includes_default
19574int
19575main ()
19576{
19577static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19578test_array [0] = 0
19579
19580 ;
19581 return 0;
19582}
19583_ACEOF
19584rm -f conftest.$ac_objext
19585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19586 (eval $ac_compile) 2>conftest.er1
19587 ac_status=$?
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -z "$ac_c_werror_flag"
19594 || test ! -s conftest.err'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; } &&
19600 { ac_try='test -s conftest.$ac_objext'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_hi=-1 ac_mid=-1
19607 while :; do
19608 cat >conftest.$ac_ext <<_ACEOF
19609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
19614$ac_includes_default
19615int
19616main ()
19617{
19618static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19619test_array [0] = 0
19620
19621 ;
19622 return 0;
19623}
19624_ACEOF
19625rm -f conftest.$ac_objext
19626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19627 (eval $ac_compile) 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -z "$ac_c_werror_flag"
19635 || test ! -s conftest.err'
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest.$ac_objext'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 ac_lo=$ac_mid; break
19648else
19649 echo "$as_me: failed program was:" >&5
19650sed 's/^/| /' conftest.$ac_ext >&5
19651
19652ac_hi=`expr '(' $ac_mid ')' - 1`
19653 if test $ac_mid -le $ac_hi; then
19654 ac_lo= ac_hi=
19655 break
19656 fi
19657 ac_mid=`expr 2 '*' $ac_mid`
19658fi
19659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 done
19661else
19662 echo "$as_me: failed program was:" >&5
19663sed 's/^/| /' conftest.$ac_ext >&5
19664
19665ac_lo= ac_hi=
19666fi
19667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668fi
19669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670# Binary search between lo and hi bounds.
19671while test "x$ac_lo" != "x$ac_hi"; do
19672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19673 cat >conftest.$ac_ext <<_ACEOF
19674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
19679$ac_includes_default
19680int
19681main ()
19682{
19683static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19684test_array [0] = 0
19685
19686 ;
19687 return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext
19691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try='test -z "$ac_c_werror_flag"
19700 || test ! -s conftest.err'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest.$ac_objext'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_hi=$ac_mid
19713else
19714 echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
19717ac_lo=`expr '(' $ac_mid ')' + 1`
19718fi
19719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19720done
19721case $ac_lo in
19722?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
19723'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19724See \`config.log' for more details." >&5
19725echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19726See \`config.log' for more details." >&2;}
19727 { (exit 1); exit 1; }; } ;;
19728esac
19729else
19730 if test "$cross_compiling" = yes; then
19731 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19732See \`config.log' for more details." >&5
19733echo "$as_me: error: cannot run test program while cross compiling
19734See \`config.log' for more details." >&2;}
19735 { (exit 1); exit 1; }; }
19736else
19737 cat >conftest.$ac_ext <<_ACEOF
19738/* confdefs.h. */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
19742/* end confdefs.h. */
19743$ac_includes_default
19744long longval () { return (long) (sizeof (unsigned long)); }
19745unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
19746#include <stdio.h>
19747#include <stdlib.h>
19748int
19749main ()
19750{
19751
19752 FILE *f = fopen ("conftest.val", "w");
19753 if (! f)
19754 exit (1);
19755 if (((long) (sizeof (unsigned long))) < 0)
19756 {
19757 long i = longval ();
19758 if (i != ((long) (sizeof (unsigned long))))
19759 exit (1);
19760 fprintf (f, "%ld\n", i);
19761 }
19762 else
19763 {
19764 unsigned long i = ulongval ();
19765 if (i != ((long) (sizeof (unsigned long))))
19766 exit (1);
19767 fprintf (f, "%lu\n", i);
19768 }
19769 exit (ferror (f) || fclose (f) != 0);
19770
19771 ;
19772 return 0;
19773}
19774_ACEOF
19775rm -f conftest$ac_exeext
19776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777 (eval $ac_link) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_cv_sizeof_unsigned_long=`cat conftest.val`
19787else
19788 echo "$as_me: program exited with status $ac_status" >&5
19789echo "$as_me: failed program was:" >&5
19790sed 's/^/| /' conftest.$ac_ext >&5
19791
19792( exit $ac_status )
19793{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19794See \`config.log' for more details." >&5
19795echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19796See \`config.log' for more details." >&2;}
19797 { (exit 1); exit 1; }; }
19798fi
19799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19800fi
19801fi
19802rm -f conftest.val
19803else
19804 ac_cv_sizeof_unsigned_long=0
19805fi
19806fi
19807echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
19808echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
19809cat >>confdefs.h <<_ACEOF
19810#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19811_ACEOF
19812
19813
19814 if test "$ac_cv_sizeof_unsigned_long" != 4
19815 then
19816 echo "$as_me:$LINENO: checking for unsigned short" >&5
19817echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
19818if test "${ac_cv_type_unsigned_short+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820else
19821 cat >conftest.$ac_ext <<_ACEOF
19822/* confdefs.h. */
19823_ACEOF
19824cat confdefs.h >>conftest.$ac_ext
19825cat >>conftest.$ac_ext <<_ACEOF
19826/* end confdefs.h. */
19827$ac_includes_default
19828int
19829main ()
19830{
19831if ((unsigned short *) 0)
19832 return 0;
19833if (sizeof (unsigned short))
19834 return 0;
19835 ;
19836 return 0;
19837}
19838_ACEOF
19839rm -f conftest.$ac_objext
19840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19841 (eval $ac_compile) 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_c_werror_flag"
19849 || test ! -s conftest.err'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; } &&
19855 { ac_try='test -s conftest.$ac_objext'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_cv_type_unsigned_short=yes
19862else
19863 echo "$as_me: failed program was:" >&5
19864sed 's/^/| /' conftest.$ac_ext >&5
19865
19866ac_cv_type_unsigned_short=no
19867fi
19868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19869fi
19870echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
19871echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
19872
19873echo "$as_me:$LINENO: checking size of unsigned short" >&5
19874echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
19875if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877else
19878 if test "$ac_cv_type_unsigned_short" = yes; then
19879 # The cast to unsigned long works around a bug in the HP C Compiler
19880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19882 # This bug is HP SR number 8606223364.
19883 if test "$cross_compiling" = yes; then
19884 # Depending upon the size, compute the lo and hi bounds.
19885cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
19891$ac_includes_default
19892int
19893main ()
19894{
19895static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
19896test_array [0] = 0
19897
19898 ;
19899 return 0;
19900}
19901_ACEOF
19902rm -f conftest.$ac_objext
19903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19904 (eval $ac_compile) 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
19911 { ac_try='test -z "$ac_c_werror_flag"
19912 || test ! -s conftest.err'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; } &&
19918 { ac_try='test -s conftest.$ac_objext'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 ac_lo=0 ac_mid=0
19925 while :; do
19926 cat >conftest.$ac_ext <<_ACEOF
19927/* confdefs.h. */
19928_ACEOF
19929cat confdefs.h >>conftest.$ac_ext
19930cat >>conftest.$ac_ext <<_ACEOF
19931/* end confdefs.h. */
19932$ac_includes_default
19933int
19934main ()
19935{
19936static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
19937test_array [0] = 0
19938
19939 ;
19940 return 0;
19941}
19942_ACEOF
19943rm -f conftest.$ac_objext
19944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19945 (eval $ac_compile) 2>conftest.er1
19946 ac_status=$?
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } &&
19952 { ac_try='test -z "$ac_c_werror_flag"
19953 || test ! -s conftest.err'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19956 ac_status=$?
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; } &&
19959 { ac_try='test -s conftest.$ac_objext'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 ac_hi=$ac_mid; break
19966else
19967 echo "$as_me: failed program was:" >&5
19968sed 's/^/| /' conftest.$ac_ext >&5
19969
19970ac_lo=`expr $ac_mid + 1`
19971 if test $ac_lo -le $ac_mid; then
19972 ac_lo= ac_hi=
19973 break
19974 fi
19975 ac_mid=`expr 2 '*' $ac_mid + 1`
19976fi
19977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19978 done
19979else
19980 echo "$as_me: failed program was:" >&5
19981sed 's/^/| /' conftest.$ac_ext >&5
19982
19983cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h. */
19989$ac_includes_default
19990int
19991main ()
19992{
19993static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
19994test_array [0] = 0
19995
19996 ;
19997 return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002 (eval $ac_compile) 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
20009 { ac_try='test -z "$ac_c_werror_flag"
20010 || test ! -s conftest.err'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest.$ac_objext'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 ac_hi=-1 ac_mid=-1
20023 while :; do
20024 cat >conftest.$ac_ext <<_ACEOF
20025/* confdefs.h. */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h. */
20030$ac_includes_default
20031int
20032main ()
20033{
20034static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
20035test_array [0] = 0
20036
20037 ;
20038 return 0;
20039}
20040_ACEOF
20041rm -f conftest.$ac_objext
20042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20043 (eval $ac_compile) 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
20050 { ac_try='test -z "$ac_c_werror_flag"
20051 || test ! -s conftest.err'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try='test -s conftest.$ac_objext'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_lo=$ac_mid; break
20064else
20065 echo "$as_me: failed program was:" >&5
20066sed 's/^/| /' conftest.$ac_ext >&5
20067
20068ac_hi=`expr '(' $ac_mid ')' - 1`
20069 if test $ac_mid -le $ac_hi; then
20070 ac_lo= ac_hi=
20071 break
20072 fi
20073 ac_mid=`expr 2 '*' $ac_mid`
20074fi
20075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20076 done
20077else
20078 echo "$as_me: failed program was:" >&5
20079sed 's/^/| /' conftest.$ac_ext >&5
20080
20081ac_lo= ac_hi=
20082fi
20083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20084fi
20085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20086# Binary search between lo and hi bounds.
20087while test "x$ac_lo" != "x$ac_hi"; do
20088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20089 cat >conftest.$ac_ext <<_ACEOF
20090/* confdefs.h. */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h. */
20095$ac_includes_default
20096int
20097main ()
20098{
20099static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
20100test_array [0] = 0
20101
20102 ;
20103 return 0;
20104}
20105_ACEOF
20106rm -f conftest.$ac_objext
20107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } &&
20115 { ac_try='test -z "$ac_c_werror_flag"
20116 || test ! -s conftest.err'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_hi=$ac_mid
20129else
20130 echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
20133ac_lo=`expr '(' $ac_mid ')' + 1`
20134fi
20135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20136done
20137case $ac_lo in
20138?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
20139'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
20140See \`config.log' for more details." >&5
20141echo "$as_me: error: cannot compute sizeof (unsigned short), 77
20142See \`config.log' for more details." >&2;}
20143 { (exit 1); exit 1; }; } ;;
20144esac
20145else
20146 if test "$cross_compiling" = yes; then
20147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20148See \`config.log' for more details." >&5
20149echo "$as_me: error: cannot run test program while cross compiling
20150See \`config.log' for more details." >&2;}
20151 { (exit 1); exit 1; }; }
20152else
20153 cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159$ac_includes_default
20160long longval () { return (long) (sizeof (unsigned short)); }
20161unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
20162#include <stdio.h>
20163#include <stdlib.h>
20164int
20165main ()
20166{
20167
20168 FILE *f = fopen ("conftest.val", "w");
20169 if (! f)
20170 exit (1);
20171 if (((long) (sizeof (unsigned short))) < 0)
20172 {
20173 long i = longval ();
20174 if (i != ((long) (sizeof (unsigned short))))
20175 exit (1);
20176 fprintf (f, "%ld\n", i);
20177 }
20178 else
20179 {
20180 unsigned long i = ulongval ();
20181 if (i != ((long) (sizeof (unsigned short))))
20182 exit (1);
20183 fprintf (f, "%lu\n", i);
20184 }
20185 exit (ferror (f) || fclose (f) != 0);
20186
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191rm -f conftest$ac_exeext
20192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20193 (eval $ac_link) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_cv_sizeof_unsigned_short=`cat conftest.val`
20203else
20204 echo "$as_me: program exited with status $ac_status" >&5
20205echo "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
20208( exit $ac_status )
20209{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
20210See \`config.log' for more details." >&5
20211echo "$as_me: error: cannot compute sizeof (unsigned short), 77
20212See \`config.log' for more details." >&2;}
20213 { (exit 1); exit 1; }; }
20214fi
20215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20216fi
20217fi
20218rm -f conftest.val
20219else
20220 ac_cv_sizeof_unsigned_short=0
20221fi
20222fi
20223echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
20224echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
20225cat >>confdefs.h <<_ACEOF
20226#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20227_ACEOF
20228
20229
20230 if test "$ac_cv_sizeof_unsigned_short" != 4
20231 then
20232 { { echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
20233echo "$as_me: error: --with-int32 option is required" >&2;}
20234 { (exit 1); exit 1; }; }
20235 fi
20236 int32="unsigned short"
20237 else
20238 int32="unsigned long"
20239 fi
20240 else
20241 int32="unsigned"
20242 fi
20243
20244fi
20245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20246
20247fi
20248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20249
20250
20251fi;
20252UINT32="$int32"
20253
20254
20255cat >>confdefs.h <<_ACEOF
20256#define SHA1_WORD $UINT32
20257_ACEOF
20258
20259
20260echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20261echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20262if test "${ac_cv_c_const+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264else
20265 cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271
20272int
20273main ()
20274{
20275/* FIXME: Include the comments suggested by Paul. */
20276#ifndef __cplusplus
20277 /* Ultrix mips cc rejects this. */
20278 typedef int charset[2];
20279 const charset x;
20280 /* SunOS 4.1.1 cc rejects this. */
20281 char const *const *ccp;
20282 char **p;
20283 /* NEC SVR4.0.2 mips cc rejects this. */
20284 struct point {int x, y;};
20285 static struct point const zero = {0,0};
20286 /* AIX XL C 1.02.0.0 rejects this.
20287 It does not let you subtract one const X* pointer from another in
20288 an arm of an if-expression whose if-part is not a constant
20289 expression */
20290 const char *g = "string";
20291 ccp = &g + (g ? g-g : 0);
20292 /* HPUX 7.0 cc rejects these. */
20293 ++ccp;
20294 p = (char**) ccp;
20295 ccp = (char const *const *) p;
20296 { /* SCO 3.2v4 cc rejects this. */
20297 char *t;
20298 char const *s = 0 ? (char *) 0 : (char const *) 0;
20299
20300 *t++ = 0;
20301 }
20302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20303 int x[] = {25, 17};
20304 const int *foo = &x[0];
20305 ++foo;
20306 }
20307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20308 typedef const int *iptr;
20309 iptr p = 0;
20310 ++p;
20311 }
20312 { /* AIX XL C 1.02.0.0 rejects this saying
20313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20314 struct s { int j; const int *ap[3]; };
20315 struct s *b; b->j = 5;
20316 }
20317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20318 const int foo = 10;
20319 }
20320#endif
20321
20322 ;
20323 return 0;
20324}
20325_ACEOF
20326rm -f conftest.$ac_objext
20327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest.$ac_objext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_c_const=yes
20349else
20350 echo "$as_me: failed program was:" >&5
20351sed 's/^/| /' conftest.$ac_ext >&5
20352
20353ac_cv_c_const=no
20354fi
20355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20356fi
20357echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20358echo "${ECHO_T}$ac_cv_c_const" >&6
20359if test $ac_cv_c_const = no; then
20360
20361cat >>confdefs.h <<\_ACEOF
20362#define const
20363_ACEOF
20364
20365fi
20366
20367
20368echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20369echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20370if test "${ac_cv_header_stdc+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20372else
20373 cat >conftest.$ac_ext <<_ACEOF
20374/* confdefs.h. */
20375_ACEOF
20376cat confdefs.h >>conftest.$ac_ext
20377cat >>conftest.$ac_ext <<_ACEOF
20378/* end confdefs.h. */
20379#include <stdlib.h>
20380#include <stdarg.h>
20381#include <string.h>
20382#include <float.h>
20383
20384int
20385main ()
20386{
20387
20388 ;
20389 return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext
20393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394 (eval $ac_compile) 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } &&
20401 { ac_try='test -z "$ac_c_werror_flag"
20402 || test ! -s conftest.err'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; } &&
20408 { ac_try='test -s conftest.$ac_objext'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_header_stdc=yes
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419ac_cv_header_stdc=no
20420fi
20421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20422
20423if test $ac_cv_header_stdc = yes; then
20424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20425 cat >conftest.$ac_ext <<_ACEOF
20426/* confdefs.h. */
20427_ACEOF
20428cat confdefs.h >>conftest.$ac_ext
20429cat >>conftest.$ac_ext <<_ACEOF
20430/* end confdefs.h. */
20431#include <string.h>
20432
20433_ACEOF
20434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20435 $EGREP "memchr" >/dev/null 2>&1; then
20436 :
20437else
20438 ac_cv_header_stdc=no
20439fi
20440rm -f conftest*
20441
20442fi
20443
20444if test $ac_cv_header_stdc = yes; then
20445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20446 cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h. */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h. */
20452#include <stdlib.h>
20453
20454_ACEOF
20455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20456 $EGREP "free" >/dev/null 2>&1; then
20457 :
20458else
20459 ac_cv_header_stdc=no
20460fi
20461rm -f conftest*
20462
20463fi
20464
20465if test $ac_cv_header_stdc = yes; then
20466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20467 if test "$cross_compiling" = yes; then
20468 :
20469else
20470 cat >conftest.$ac_ext <<_ACEOF
20471/* confdefs.h. */
20472_ACEOF
20473cat confdefs.h >>conftest.$ac_ext
20474cat >>conftest.$ac_ext <<_ACEOF
20475/* end confdefs.h. */
20476#include <ctype.h>
20477#if ((' ' & 0x0FF) == 0x020)
20478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20480#else
20481# define ISLOWER(c) \
20482 (('a' <= (c) && (c) <= 'i') \
20483 || ('j' <= (c) && (c) <= 'r') \
20484 || ('s' <= (c) && (c) <= 'z'))
20485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20486#endif
20487
20488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20489int
20490main ()
20491{
20492 int i;
20493 for (i = 0; i < 256; i++)
20494 if (XOR (islower (i), ISLOWER (i))
20495 || toupper (i) != TOUPPER (i))
20496 exit(2);
20497 exit (0);
20498}
20499_ACEOF
20500rm -f conftest$ac_exeext
20501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 :
20512else
20513 echo "$as_me: program exited with status $ac_status" >&5
20514echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517( exit $ac_status )
20518ac_cv_header_stdc=no
20519fi
20520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20521fi
20522fi
20523fi
20524echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20525echo "${ECHO_T}$ac_cv_header_stdc" >&6
20526if test $ac_cv_header_stdc = yes; then
20527
20528cat >>confdefs.h <<\_ACEOF
20529#define STDC_HEADERS 1
20530_ACEOF
20531
20532fi
20533
20534
20535 ac_config_files="$ac_config_files Makefile"
20536cat >confcache <<\_ACEOF
20537# This file is a shell script that caches the results of configure
20538# tests run on this system so they can be shared between configure
20539# scripts and configure runs, see configure's option --config-cache.
20540# It is not useful on other systems. If it contains results you don't
20541# want to keep, you may remove or edit it.
20542#
20543# config.status only pays attention to the cache file if you give it
20544# the --recheck option to rerun configure.
20545#
20546# `ac_cv_env_foo' variables (set or unset) will be overridden when
20547# loading this file, other *unset* `ac_cv_foo' will be assigned the
20548# following values.
20549
20550_ACEOF
20551
20552# The following way of writing the cache mishandles newlines in values,
20553# but we know of no workaround that is simple, portable, and efficient.
20554# So, don't put newlines in cache variables' values.
20555# Ultrix sh set writes to stderr and can't be redirected directly,
20556# and sets the high bit in the cache file unless we assign to the vars.
20557{
20558 (set) 2>&1 |
20559 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20560 *ac_space=\ *)
20561 # `set' does not quote correctly, so add quotes (double-quote
20562 # substitution turns \\\\ into \\, and sed turns \\ into \).
20563 sed -n \
20564 "s/'/'\\\\''/g;
20565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20566 ;;
20567 *)
20568 # `set' quotes correctly as required by POSIX, so do not add quotes.
20569 sed -n \
20570 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20571 ;;
20572 esac;
20573} |
20574 sed '
20575 t clear
20576 : clear
20577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20578 t end
20579 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20580 : end' >>confcache
20581if diff $cache_file confcache >/dev/null 2>&1; then :; else
20582 if test -w $cache_file; then
20583 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20584 cat confcache >$cache_file
20585 else
20586 echo "not updating unwritable cache $cache_file"
20587 fi
20588fi
20589rm -f confcache
20590
20591test "x$prefix" = xNONE && prefix=$ac_default_prefix
20592# Let make expand exec_prefix.
20593test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20594
20595# VPATH may cause trouble with some makes, so we remove $(srcdir),
20596# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20597# trailing colons and then remove the whole line if VPATH becomes empty
20598# (actually we leave an empty line to preserve line numbers).
20599if test "x$srcdir" = x.; then
20600 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20601s/:*\$(srcdir):*/:/;
20602s/:*\${srcdir}:*/:/;
20603s/:*@srcdir@:*/:/;
20604s/^\([^=]*=[ ]*\):*/\1/;
20605s/:*$//;
20606s/^[^=]*=[ ]*$//;
20607}'
20608fi
20609
20610DEFS=-DHAVE_CONFIG_H
20611
20612ac_libobjs=
20613ac_ltlibobjs=
20614for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20615 # 1. Remove the extension, and $U if already installed.
20616 ac_i=`echo "$ac_i" |
20617 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20618 # 2. Add them.
20619 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20620 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20621done
20622LIBOBJS=$ac_libobjs
20623
20624LTLIBOBJS=$ac_ltlibobjs
20625
20626
20627if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
20628 { { echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
20629Usually this means the macro was only invoked conditionally." >&5
20630echo "$as_me: error: conditional \"HMACC\" was never defined.
20631Usually this means the macro was only invoked conditionally." >&2;}
20632 { (exit 1); exit 1; }; }
20633fi
20634if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20635 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20636Usually this means the macro was only invoked conditionally." >&5
20637echo "$as_me: error: conditional \"AMDEP\" was never defined.
20638Usually this means the macro was only invoked conditionally." >&2;}
20639 { (exit 1); exit 1; }; }
20640fi
20641if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20642 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20643Usually this means the macro was only invoked conditionally." >&5
20644echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20645Usually this means the macro was only invoked conditionally." >&2;}
20646 { (exit 1); exit 1; }; }
20647fi
20648if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20649 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20650Usually this means the macro was only invoked conditionally." >&5
20651echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20652Usually this means the macro was only invoked conditionally." >&2;}
20653 { (exit 1); exit 1; }; }
20654fi
20655
20656: ${CONFIG_STATUS=./config.status}
20657ac_clean_files_save=$ac_clean_files
20658ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20659{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20660echo "$as_me: creating $CONFIG_STATUS" >&6;}
20661cat >$CONFIG_STATUS <<_ACEOF
20662#! $SHELL
20663# Generated by $as_me.
20664# Run this file to recreate the current configuration.
20665# Compiler output produced by configure, useful for debugging
20666# configure, is in config.log if it exists.
20667
20668debug=false
20669ac_cs_recheck=false
20670ac_cs_silent=false
20671SHELL=\${CONFIG_SHELL-$SHELL}
20672_ACEOF
20673
20674cat >>$CONFIG_STATUS <<\_ACEOF
20675## --------------------- ##
20676## M4sh Initialization. ##
20677## --------------------- ##
20678
20679# Be Bourne compatible
20680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20681 emulate sh
20682 NULLCMD=:
20683 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20684 # is contrary to our usage. Disable this feature.
20685 alias -g '${1+"$@"}'='"$@"'
20686elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20687 set -o posix
20688fi
20689DUALCASE=1; export DUALCASE # for MKS sh
20690
20691# Support unset when possible.
20692if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20693 as_unset=unset
20694else
20695 as_unset=false
20696fi
20697
20698
20699# Work around bugs in pre-3.0 UWIN ksh.
20700$as_unset ENV MAIL MAILPATH
20701PS1='$ '
20702PS2='> '
20703PS4='+ '
20704
20705# NLS nuisances.
20706for as_var in \
20707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20709 LC_TELEPHONE LC_TIME
20710do
20711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20712 eval $as_var=C; export $as_var
20713 else
20714 $as_unset $as_var
20715 fi
20716done
20717
20718# Required to use basename.
20719if expr a : '\(a\)' >/dev/null 2>&1; then
20720 as_expr=expr
20721else
20722 as_expr=false
20723fi
20724
20725if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20726 as_basename=basename
20727else
20728 as_basename=false
20729fi
20730
20731
20732# Name of the executable.
20733as_me=`$as_basename "$0" ||
20734$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20735 X"$0" : 'X\(//\)$' \| \
20736 X"$0" : 'X\(/\)$' \| \
20737 . : '\(.\)' 2>/dev/null ||
20738echo X/"$0" |
20739 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20740 /^X\/\(\/\/\)$/{ s//\1/; q; }
20741 /^X\/\(\/\).*/{ s//\1/; q; }
20742 s/.*/./; q'`
20743
20744
20745# PATH needs CR, and LINENO needs CR and PATH.
20746# Avoid depending upon Character Ranges.
20747as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20748as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20749as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20750as_cr_digits='0123456789'
20751as_cr_alnum=$as_cr_Letters$as_cr_digits
20752
20753# The user is always right.
20754if test "${PATH_SEPARATOR+set}" != set; then
20755 echo "#! /bin/sh" >conf$$.sh
20756 echo "exit 0" >>conf$$.sh
20757 chmod +x conf$$.sh
20758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20759 PATH_SEPARATOR=';'
20760 else
20761 PATH_SEPARATOR=:
20762 fi
20763 rm -f conf$$.sh
20764fi
20765
20766
20767 as_lineno_1=$LINENO
20768 as_lineno_2=$LINENO
20769 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20770 test "x$as_lineno_1" != "x$as_lineno_2" &&
20771 test "x$as_lineno_3" = "x$as_lineno_2" || {
20772 # Find who we are. Look in the path if we contain no path at all
20773 # relative or not.
20774 case $0 in
20775 *[\\/]* ) as_myself=$0 ;;
20776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20777for as_dir in $PATH
20778do
20779 IFS=$as_save_IFS
20780 test -z "$as_dir" && as_dir=.
20781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20782done
20783
20784 ;;
20785 esac
20786 # We did not find ourselves, most probably we were run as `sh COMMAND'
20787 # in which case we are not to be found in the path.
20788 if test "x$as_myself" = x; then
20789 as_myself=$0
20790 fi
20791 if test ! -f "$as_myself"; then
20792 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20793echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20794 { (exit 1); exit 1; }; }
20795 fi
20796 case $CONFIG_SHELL in
20797 '')
20798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20799for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20800do
20801 IFS=$as_save_IFS
20802 test -z "$as_dir" && as_dir=.
20803 for as_base in sh bash ksh sh5; do
20804 case $as_dir in
20805 /*)
20806 if ("$as_dir/$as_base" -c '
20807 as_lineno_1=$LINENO
20808 as_lineno_2=$LINENO
20809 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20810 test "x$as_lineno_1" != "x$as_lineno_2" &&
20811 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20812 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20813 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20814 CONFIG_SHELL=$as_dir/$as_base
20815 export CONFIG_SHELL
20816 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20817 fi;;
20818 esac
20819 done
20820done
20821;;
20822 esac
20823
20824 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20825 # uniformly replaced by the line number. The first 'sed' inserts a
20826 # line-number line before each line; the second 'sed' does the real
20827 # work. The second script uses 'N' to pair each line-number line
20828 # with the numbered line, and appends trailing '-' during
20829 # substitution so that $LINENO is not a special case at line end.
20830 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20831 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20832 sed '=' <$as_myself |
20833 sed '
20834 N
20835 s,$,-,
20836 : loop
20837 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20838 t loop
20839 s,-$,,
20840 s,^['$as_cr_digits']*\n,,
20841 ' >$as_me.lineno &&
20842 chmod +x $as_me.lineno ||
20843 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20844echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20845 { (exit 1); exit 1; }; }
20846
20847 # Don't try to exec as it changes $[0], causing all sort of problems
20848 # (the dirname of $[0] is not the place where we might find the
20849 # original and so on. Autoconf is especially sensible to this).
20850 . ./$as_me.lineno
20851 # Exit status is that of the last command.
20852 exit
20853}
20854
20855
20856case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20857 *c*,-n*) ECHO_N= ECHO_C='
20858' ECHO_T=' ' ;;
20859 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20860 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20861esac
20862
20863if expr a : '\(a\)' >/dev/null 2>&1; then
20864 as_expr=expr
20865else
20866 as_expr=false
20867fi
20868
20869rm -f conf$$ conf$$.exe conf$$.file
20870echo >conf$$.file
20871if ln -s conf$$.file conf$$ 2>/dev/null; then
20872 # We could just check for DJGPP; but this test a) works b) is more generic
20873 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20874 if test -f conf$$.exe; then
20875 # Don't use ln at all; we don't have any links
20876 as_ln_s='cp -p'
20877 else
20878 as_ln_s='ln -s'
20879 fi
20880elif ln conf$$.file conf$$ 2>/dev/null; then
20881 as_ln_s=ln
20882else
20883 as_ln_s='cp -p'
20884fi
20885rm -f conf$$ conf$$.exe conf$$.file
20886
20887if mkdir -p . 2>/dev/null; then
20888 as_mkdir_p=:
20889else
20890 test -d ./-p && rmdir ./-p
20891 as_mkdir_p=false
20892fi
20893
20894as_executable_p="test -f"
20895
20896# Sed expression to map a string onto a valid CPP name.
20897as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20898
20899# Sed expression to map a string onto a valid variable name.
20900as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20901
20902
20903# IFS
20904# We need space, tab and new line, in precisely that order.
20905as_nl='
20906'
20907IFS=" $as_nl"
20908
20909# CDPATH.
20910$as_unset CDPATH
20911
20912exec 6>&1
20913
20914# Open the log real soon, to keep \$[0] and so on meaningful, and to
20915# report actual input values of CONFIG_FILES etc. instead of their
20916# values after options handling. Logging --version etc. is OK.
20917exec 5>>config.log
20918{
20919 echo
20920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20921## Running $as_me. ##
20922_ASBOX
20923} >&5
20924cat >&5 <<_CSEOF
20925
20926This file was extended by libsha1 $as_me 1.21, which was
20927generated by GNU Autoconf 2.59. Invocation command line was
20928
20929 CONFIG_FILES = $CONFIG_FILES
20930 CONFIG_HEADERS = $CONFIG_HEADERS
20931 CONFIG_LINKS = $CONFIG_LINKS
20932 CONFIG_COMMANDS = $CONFIG_COMMANDS
20933 $ $0 $@
20934
20935_CSEOF
20936echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20937echo >&5
20938_ACEOF
20939
20940# Files that config.status was made for.
20941if test -n "$ac_config_files"; then
20942 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20943fi
20944
20945if test -n "$ac_config_headers"; then
20946 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20947fi
20948
20949if test -n "$ac_config_links"; then
20950 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20951fi
20952
20953if test -n "$ac_config_commands"; then
20954 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20955fi
20956
20957cat >>$CONFIG_STATUS <<\_ACEOF
20958
20959ac_cs_usage="\
20960\`$as_me' instantiates files from templates according to the
20961current configuration.
20962
20963Usage: $0 [OPTIONS] [FILE]...
20964
20965 -h, --help print this help, then exit
20966 -V, --version print version number, then exit
20967 -q, --quiet do not print progress messages
20968 -d, --debug don't remove temporary files
20969 --recheck update $as_me by reconfiguring in the same conditions
20970 --file=FILE[:TEMPLATE]
20971 instantiate the configuration file FILE
20972 --header=FILE[:TEMPLATE]
20973 instantiate the configuration header FILE
20974
20975Configuration files:
20976$config_files
20977
20978Configuration headers:
20979$config_headers
20980
20981Configuration commands:
20982$config_commands
20983
20984Report bugs to <bug-autoconf@gnu.org>."
20985_ACEOF
20986
20987cat >>$CONFIG_STATUS <<_ACEOF
20988ac_cs_version="\\
20989libsha1 config.status 1.21
20990configured by $0, generated by GNU Autoconf 2.59,
20991 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20992
20993Copyright (C) 2003 Free Software Foundation, Inc.
20994This config.status script is free software; the Free Software Foundation
20995gives unlimited permission to copy, distribute and modify it."
20996srcdir=$srcdir
20997INSTALL="$INSTALL"
20998_ACEOF
20999
21000cat >>$CONFIG_STATUS <<\_ACEOF
21001# If no file are specified by the user, then we need to provide default
21002# value. By we need to know if files were specified by the user.
21003ac_need_defaults=:
21004while test $# != 0
21005do
21006 case $1 in
21007 --*=*)
21008 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21009 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21010 ac_shift=:
21011 ;;
21012 -*)
21013 ac_option=$1
21014 ac_optarg=$2
21015 ac_shift=shift
21016 ;;
21017 *) # This is not an option, so the user has probably given explicit
21018 # arguments.
21019 ac_option=$1
21020 ac_need_defaults=false;;
21021 esac
21022
21023 case $ac_option in
21024 # Handling of the options.
21025_ACEOF
21026cat >>$CONFIG_STATUS <<\_ACEOF
21027 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21028 ac_cs_recheck=: ;;
21029 --version | --vers* | -V )
21030 echo "$ac_cs_version"; exit 0 ;;
21031 --he | --h)
21032 # Conflict between --help and --header
21033 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21034Try \`$0 --help' for more information." >&5
21035echo "$as_me: error: ambiguous option: $1
21036Try \`$0 --help' for more information." >&2;}
21037 { (exit 1); exit 1; }; };;
21038 --help | --hel | -h )
21039 echo "$ac_cs_usage"; exit 0 ;;
21040 --debug | --d* | -d )
21041 debug=: ;;
21042 --file | --fil | --fi | --f )
21043 $ac_shift
21044 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21045 ac_need_defaults=false;;
21046 --header | --heade | --head | --hea )
21047 $ac_shift
21048 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21049 ac_need_defaults=false;;
21050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21052 ac_cs_silent=: ;;
21053
21054 # This is an error.
21055 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21056Try \`$0 --help' for more information." >&5
21057echo "$as_me: error: unrecognized option: $1
21058Try \`$0 --help' for more information." >&2;}
21059 { (exit 1); exit 1; }; } ;;
21060
21061 *) ac_config_targets="$ac_config_targets $1" ;;
21062
21063 esac
21064 shift
21065done
21066
21067ac_configure_extra_args=
21068
21069if $ac_cs_silent; then
21070 exec 6>/dev/null
21071 ac_configure_extra_args="$ac_configure_extra_args --silent"
21072fi
21073
21074_ACEOF
21075cat >>$CONFIG_STATUS <<_ACEOF
21076if \$ac_cs_recheck; then
21077 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21078 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21079fi
21080
21081_ACEOF
21082
21083cat >>$CONFIG_STATUS <<_ACEOF
21084#
21085# INIT-COMMANDS section.
21086#
21087
21088AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21089
21090_ACEOF
21091
21092
21093
21094cat >>$CONFIG_STATUS <<\_ACEOF
21095for ac_config_target in $ac_config_targets
21096do
21097 case "$ac_config_target" in
21098 # Handling of arguments.
21099 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21100 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21101 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21102 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21103echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21104 { (exit 1); exit 1; }; };;
21105 esac
21106done
21107
21108# If the user did not use the arguments to specify the items to instantiate,
21109# then the envvar interface is used. Set only those that are not.
21110# We use the long form for the default assignment because of an extremely
21111# bizarre bug on SunOS 4.1.3.
21112if $ac_need_defaults; then
21113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21116fi
21117
21118# Have a temporary directory for convenience. Make it in the build tree
21119# simply because there is no reason to put it here, and in addition,
21120# creating and moving files from /tmp can sometimes cause problems.
21121# Create a temporary directory, and hook for its removal unless debugging.
21122$debug ||
21123{
21124 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21125 trap '{ (exit 1); exit 1; }' 1 2 13 15
21126}
21127
21128# Create a (secure) tmp directory for tmp files.
21129
21130{
21131 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21132 test -n "$tmp" && test -d "$tmp"
21133} ||
21134{
21135 tmp=./confstat$$-$RANDOM
21136 (umask 077 && mkdir $tmp)
21137} ||
21138{
21139 echo "$me: cannot create a temporary directory in ." >&2
21140 { (exit 1); exit 1; }
21141}
21142
21143_ACEOF
21144
21145cat >>$CONFIG_STATUS <<_ACEOF
21146
21147#
21148# CONFIG_FILES section.
21149#
21150
21151# No need to generate the scripts if there are no CONFIG_FILES.
21152# This happens for instance when ./config.status config.h
21153if test -n "\$CONFIG_FILES"; then
21154 # Protect against being on the right side of a sed subst in config.status.
21155 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21156 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21157s,@SHELL@,$SHELL,;t t
21158s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21159s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21160s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21161s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21162s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21163s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21164s,@exec_prefix@,$exec_prefix,;t t
21165s,@prefix@,$prefix,;t t
21166s,@program_transform_name@,$program_transform_name,;t t
21167s,@bindir@,$bindir,;t t
21168s,@sbindir@,$sbindir,;t t
21169s,@libexecdir@,$libexecdir,;t t
21170s,@datadir@,$datadir,;t t
21171s,@sysconfdir@,$sysconfdir,;t t
21172s,@sharedstatedir@,$sharedstatedir,;t t
21173s,@localstatedir@,$localstatedir,;t t
21174s,@libdir@,$libdir,;t t
21175s,@includedir@,$includedir,;t t
21176s,@oldincludedir@,$oldincludedir,;t t
21177s,@infodir@,$infodir,;t t
21178s,@mandir@,$mandir,;t t
21179s,@build_alias@,$build_alias,;t t
21180s,@host_alias@,$host_alias,;t t
21181s,@target_alias@,$target_alias,;t t
21182s,@DEFS@,$DEFS,;t t
21183s,@ECHO_C@,$ECHO_C,;t t
21184s,@ECHO_N@,$ECHO_N,;t t
21185s,@ECHO_T@,$ECHO_T,;t t
21186s,@LIBS@,$LIBS,;t t
21187s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21188s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21189s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21190s,@CYGPATH_W@,$CYGPATH_W,;t t
21191s,@PACKAGE@,$PACKAGE,;t t
21192s,@VERSION@,$VERSION,;t t
21193s,@ACLOCAL@,$ACLOCAL,;t t
21194s,@AUTOCONF@,$AUTOCONF,;t t
21195s,@AUTOMAKE@,$AUTOMAKE,;t t
21196s,@AUTOHEADER@,$AUTOHEADER,;t t
21197s,@MAKEINFO@,$MAKEINFO,;t t
21198s,@install_sh@,$install_sh,;t t
21199s,@STRIP@,$STRIP,;t t
21200s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21201s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21202s,@mkdir_p@,$mkdir_p,;t t
21203s,@AWK@,$AWK,;t t
21204s,@SET_MAKE@,$SET_MAKE,;t t
21205s,@am__leading_dot@,$am__leading_dot,;t t
21206s,@AMTAR@,$AMTAR,;t t
21207s,@am__tar@,$am__tar,;t t
21208s,@am__untar@,$am__untar,;t t
21209s,@HMACC_TRUE@,$HMACC_TRUE,;t t
21210s,@HMACC_FALSE@,$HMACC_FALSE,;t t
21211s,@CC@,$CC,;t t
21212s,@CFLAGS@,$CFLAGS,;t t
21213s,@LDFLAGS@,$LDFLAGS,;t t
21214s,@CPPFLAGS@,$CPPFLAGS,;t t
21215s,@ac_ct_CC@,$ac_ct_CC,;t t
21216s,@EXEEXT@,$EXEEXT,;t t
21217s,@OBJEXT@,$OBJEXT,;t t
21218s,@DEPDIR@,$DEPDIR,;t t
21219s,@am__include@,$am__include,;t t
21220s,@am__quote@,$am__quote,;t t
21221s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21222s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21223s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21224s,@CCDEPMODE@,$CCDEPMODE,;t t
21225s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21226s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21227s,@LN_S@,$LN_S,;t t
21228s,@build@,$build,;t t
21229s,@build_cpu@,$build_cpu,;t t
21230s,@build_vendor@,$build_vendor,;t t
21231s,@build_os@,$build_os,;t t
21232s,@host@,$host,;t t
21233s,@host_cpu@,$host_cpu,;t t
21234s,@host_vendor@,$host_vendor,;t t
21235s,@host_os@,$host_os,;t t
21236s,@SED@,$SED,;t t
21237s,@EGREP@,$EGREP,;t t
21238s,@ECHO@,$ECHO,;t t
21239s,@AR@,$AR,;t t
21240s,@ac_ct_AR@,$ac_ct_AR,;t t
21241s,@RANLIB@,$RANLIB,;t t
21242s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21243s,@CPP@,$CPP,;t t
21244s,@CXX@,$CXX,;t t
21245s,@CXXFLAGS@,$CXXFLAGS,;t t
21246s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21247s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21248s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21249s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21250s,@CXXCPP@,$CXXCPP,;t t
21251s,@F77@,$F77,;t t
21252s,@FFLAGS@,$FFLAGS,;t t
21253s,@ac_ct_F77@,$ac_ct_F77,;t t
21254s,@LIBTOOL@,$LIBTOOL,;t t
21255s,@LIBOBJS@,$LIBOBJS,;t t
21256s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21257CEOF
21258
21259_ACEOF
21260
21261 cat >>$CONFIG_STATUS <<\_ACEOF
21262 # Split the substitutions into bite-sized pieces for seds with
21263 # small command number limits, like on Digital OSF/1 and HP-UX.
21264 ac_max_sed_lines=48
21265 ac_sed_frag=1 # Number of current file.
21266 ac_beg=1 # First line for current file.
21267 ac_end=$ac_max_sed_lines # Line after last line for current file.
21268 ac_more_lines=:
21269 ac_sed_cmds=
21270 while $ac_more_lines; do
21271 if test $ac_beg -gt 1; then
21272 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21273 else
21274 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21275 fi
21276 if test ! -s $tmp/subs.frag; then
21277 ac_more_lines=false
21278 else
21279 # The purpose of the label and of the branching condition is to
21280 # speed up the sed processing (if there are no `@' at all, there
21281 # is no need to browse any of the substitutions).
21282 # These are the two extra sed commands mentioned above.
21283 (echo ':t
21284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21285 if test -z "$ac_sed_cmds"; then
21286 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21287 else
21288 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21289 fi
21290 ac_sed_frag=`expr $ac_sed_frag + 1`
21291 ac_beg=$ac_end
21292 ac_end=`expr $ac_end + $ac_max_sed_lines`
21293 fi
21294 done
21295 if test -z "$ac_sed_cmds"; then
21296 ac_sed_cmds=cat
21297 fi
21298fi # test -n "$CONFIG_FILES"
21299
21300_ACEOF
21301cat >>$CONFIG_STATUS <<\_ACEOF
21302for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21304 case $ac_file in
21305 - | *:- | *:-:* ) # input from stdin
21306 cat >$tmp/stdin
21307 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21309 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21311 * ) ac_file_in=$ac_file.in ;;
21312 esac
21313
21314 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21317 X"$ac_file" : 'X\(//\)[^/]' \| \
21318 X"$ac_file" : 'X\(//\)$' \| \
21319 X"$ac_file" : 'X\(/\)' \| \
21320 . : '\(.\)' 2>/dev/null ||
21321echo X"$ac_file" |
21322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21324 /^X\(\/\/\)$/{ s//\1/; q; }
21325 /^X\(\/\).*/{ s//\1/; q; }
21326 s/.*/./; q'`
21327 { if $as_mkdir_p; then
21328 mkdir -p "$ac_dir"
21329 else
21330 as_dir="$ac_dir"
21331 as_dirs=
21332 while test ! -d "$as_dir"; do
21333 as_dirs="$as_dir $as_dirs"
21334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21336 X"$as_dir" : 'X\(//\)[^/]' \| \
21337 X"$as_dir" : 'X\(//\)$' \| \
21338 X"$as_dir" : 'X\(/\)' \| \
21339 . : '\(.\)' 2>/dev/null ||
21340echo X"$as_dir" |
21341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21343 /^X\(\/\/\)$/{ s//\1/; q; }
21344 /^X\(\/\).*/{ s//\1/; q; }
21345 s/.*/./; q'`
21346 done
21347 test ! -n "$as_dirs" || mkdir $as_dirs
21348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21349echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21350 { (exit 1); exit 1; }; }; }
21351
21352 ac_builddir=.
21353
21354if test "$ac_dir" != .; then
21355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21356 # A "../" for each directory in $ac_dir_suffix.
21357 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21358else
21359 ac_dir_suffix= ac_top_builddir=
21360fi
21361
21362case $srcdir in
21363 .) # No --srcdir option. We are building in place.
21364 ac_srcdir=.
21365 if test -z "$ac_top_builddir"; then
21366 ac_top_srcdir=.
21367 else
21368 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21369 fi ;;
21370 [\\/]* | ?:[\\/]* ) # Absolute path.
21371 ac_srcdir=$srcdir$ac_dir_suffix;
21372 ac_top_srcdir=$srcdir ;;
21373 *) # Relative path.
21374 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21375 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21376esac
21377
21378# Do not use `cd foo && pwd` to compute absolute paths, because
21379# the directories may not exist.
21380case `pwd` in
21381.) ac_abs_builddir="$ac_dir";;
21382*)
21383 case "$ac_dir" in
21384 .) ac_abs_builddir=`pwd`;;
21385 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21386 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21387 esac;;
21388esac
21389case $ac_abs_builddir in
21390.) ac_abs_top_builddir=${ac_top_builddir}.;;
21391*)
21392 case ${ac_top_builddir}. in
21393 .) ac_abs_top_builddir=$ac_abs_builddir;;
21394 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21395 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21396 esac;;
21397esac
21398case $ac_abs_builddir in
21399.) ac_abs_srcdir=$ac_srcdir;;
21400*)
21401 case $ac_srcdir in
21402 .) ac_abs_srcdir=$ac_abs_builddir;;
21403 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21404 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21405 esac;;
21406esac
21407case $ac_abs_builddir in
21408.) ac_abs_top_srcdir=$ac_top_srcdir;;
21409*)
21410 case $ac_top_srcdir in
21411 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21412 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21413 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21414 esac;;
21415esac
21416
21417
21418 case $INSTALL in
21419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21420 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21421 esac
21422
21423 if test x"$ac_file" != x-; then
21424 { echo "$as_me:$LINENO: creating $ac_file" >&5
21425echo "$as_me: creating $ac_file" >&6;}
21426 rm -f "$ac_file"
21427 fi
21428 # Let's still pretend it is `configure' which instantiates (i.e., don't
21429 # use $as_me), people would be surprised to read:
21430 # /* config.h. Generated by config.status. */
21431 if test x"$ac_file" = x-; then
21432 configure_input=
21433 else
21434 configure_input="$ac_file. "
21435 fi
21436 configure_input=$configure_input"Generated from `echo $ac_file_in |
21437 sed 's,.*/,,'` by configure."
21438
21439 # First look for the input files in the build tree, otherwise in the
21440 # src tree.
21441 ac_file_inputs=`IFS=:
21442 for f in $ac_file_in; do
21443 case $f in
21444 -) echo $tmp/stdin ;;
21445 [\\/$]*)
21446 # Absolute (can't be DOS-style, as IFS=:)
21447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21448echo "$as_me: error: cannot find input file: $f" >&2;}
21449 { (exit 1); exit 1; }; }
21450 echo "$f";;
21451 *) # Relative
21452 if test -f "$f"; then
21453 # Build tree
21454 echo "$f"
21455 elif test -f "$srcdir/$f"; then
21456 # Source tree
21457 echo "$srcdir/$f"
21458 else
21459 # /dev/null tree
21460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21461echo "$as_me: error: cannot find input file: $f" >&2;}
21462 { (exit 1); exit 1; }; }
21463 fi;;
21464 esac
21465 done` || { (exit 1); exit 1; }
21466_ACEOF
21467cat >>$CONFIG_STATUS <<_ACEOF
21468 sed "$ac_vpsub
21469$extrasub
21470_ACEOF
21471cat >>$CONFIG_STATUS <<\_ACEOF
21472:t
21473/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21474s,@configure_input@,$configure_input,;t t
21475s,@srcdir@,$ac_srcdir,;t t
21476s,@abs_srcdir@,$ac_abs_srcdir,;t t
21477s,@top_srcdir@,$ac_top_srcdir,;t t
21478s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21479s,@builddir@,$ac_builddir,;t t
21480s,@abs_builddir@,$ac_abs_builddir,;t t
21481s,@top_builddir@,$ac_top_builddir,;t t
21482s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21483s,@INSTALL@,$ac_INSTALL,;t t
21484" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21485 rm -f $tmp/stdin
21486 if test x"$ac_file" != x-; then
21487 mv $tmp/out $ac_file
21488 else
21489 cat $tmp/out
21490 rm -f $tmp/out
21491 fi
21492
21493done
21494_ACEOF
21495cat >>$CONFIG_STATUS <<\_ACEOF
21496
21497#
21498# CONFIG_HEADER section.
21499#
21500
21501# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21502# NAME is the cpp macro being defined and VALUE is the value it is being given.
21503#
21504# ac_d sets the value in "#define NAME VALUE" lines.
21505ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21506ac_dB='[ ].*$,\1#\2'
21507ac_dC=' '
21508ac_dD=',;t'
21509# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21510ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21511ac_uB='$,\1#\2define\3'
21512ac_uC=' '
21513ac_uD=',;t'
21514
21515for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21517 case $ac_file in
21518 - | *:- | *:-:* ) # input from stdin
21519 cat >$tmp/stdin
21520 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21521 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21522 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21524 * ) ac_file_in=$ac_file.in ;;
21525 esac
21526
21527 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21528echo "$as_me: creating $ac_file" >&6;}
21529
21530 # First look for the input files in the build tree, otherwise in the
21531 # src tree.
21532 ac_file_inputs=`IFS=:
21533 for f in $ac_file_in; do
21534 case $f in
21535 -) echo $tmp/stdin ;;
21536 [\\/$]*)
21537 # Absolute (can't be DOS-style, as IFS=:)
21538 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21539echo "$as_me: error: cannot find input file: $f" >&2;}
21540 { (exit 1); exit 1; }; }
21541 # Do quote $f, to prevent DOS paths from being IFS'd.
21542 echo "$f";;
21543 *) # Relative
21544 if test -f "$f"; then
21545 # Build tree
21546 echo "$f"
21547 elif test -f "$srcdir/$f"; then
21548 # Source tree
21549 echo "$srcdir/$f"
21550 else
21551 # /dev/null tree
21552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21553echo "$as_me: error: cannot find input file: $f" >&2;}
21554 { (exit 1); exit 1; }; }
21555 fi;;
21556 esac
21557 done` || { (exit 1); exit 1; }
21558 # Remove the trailing spaces.
21559 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21560
21561_ACEOF
21562
21563# Transform confdefs.h into two sed scripts, `conftest.defines' and
21564# `conftest.undefs', that substitutes the proper values into
21565# config.h.in to produce config.h. The first handles `#define'
21566# templates, and the second `#undef' templates.
21567# And first: Protect against being on the right side of a sed subst in
21568# config.status. Protect against being in an unquoted here document
21569# in config.status.
21570rm -f conftest.defines conftest.undefs
21571# Using a here document instead of a string reduces the quoting nightmare.
21572# Putting comments in sed scripts is not portable.
21573#
21574# `end' is used to avoid that the second main sed command (meant for
21575# 0-ary CPP macros) applies to n-ary macro definitions.
21576# See the Autoconf documentation for `clear'.
21577cat >confdef2sed.sed <<\_ACEOF
21578s/[\\&,]/\\&/g
21579s,[\\$`],\\&,g
21580t clear
21581: clear
21582s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21583t end
21584s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21585: end
21586_ACEOF
21587# If some macros were called several times there might be several times
21588# the same #defines, which is useless. Nevertheless, we may not want to
21589# sort them, since we want the *last* AC-DEFINE to be honored.
21590uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21591sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21592rm -f confdef2sed.sed
21593
21594# This sed command replaces #undef with comments. This is necessary, for
21595# example, in the case of _POSIX_SOURCE, which is predefined and required
21596# on some systems where configure will not decide to define it.
21597cat >>conftest.undefs <<\_ACEOF
21598s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21599_ACEOF
21600
21601# Break up conftest.defines because some shells have a limit on the size
21602# of here documents, and old seds have small limits too (100 cmds).
21603echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21604echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21605echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21606echo ' :' >>$CONFIG_STATUS
21607rm -f conftest.tail
21608while grep . conftest.defines >/dev/null
21609do
21610 # Write a limited-size here document to $tmp/defines.sed.
21611 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21612 # Speed up: don't consider the non `#define' lines.
21613 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21614 # Work around the forget-to-reset-the-flag bug.
21615 echo 't clr' >>$CONFIG_STATUS
21616 echo ': clr' >>$CONFIG_STATUS
21617 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21618 echo 'CEOF
21619 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21620 rm -f $tmp/in
21621 mv $tmp/out $tmp/in
21622' >>$CONFIG_STATUS
21623 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21624 rm -f conftest.defines
21625 mv conftest.tail conftest.defines
21626done
21627rm -f conftest.defines
21628echo ' fi # grep' >>$CONFIG_STATUS
21629echo >>$CONFIG_STATUS
21630
21631# Break up conftest.undefs because some shells have a limit on the size
21632# of here documents, and old seds have small limits too (100 cmds).
21633echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21634rm -f conftest.tail
21635while grep . conftest.undefs >/dev/null
21636do
21637 # Write a limited-size here document to $tmp/undefs.sed.
21638 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21639 # Speed up: don't consider the non `#undef'
21640 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21641 # Work around the forget-to-reset-the-flag bug.
21642 echo 't clr' >>$CONFIG_STATUS
21643 echo ': clr' >>$CONFIG_STATUS
21644 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21645 echo 'CEOF
21646 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21647 rm -f $tmp/in
21648 mv $tmp/out $tmp/in
21649' >>$CONFIG_STATUS
21650 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21651 rm -f conftest.undefs
21652 mv conftest.tail conftest.undefs
21653done
21654rm -f conftest.undefs
21655
21656cat >>$CONFIG_STATUS <<\_ACEOF
21657 # Let's still pretend it is `configure' which instantiates (i.e., don't
21658 # use $as_me), people would be surprised to read:
21659 # /* config.h. Generated by config.status. */
21660 if test x"$ac_file" = x-; then
21661 echo "/* Generated by configure. */" >$tmp/config.h
21662 else
21663 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21664 fi
21665 cat $tmp/in >>$tmp/config.h
21666 rm -f $tmp/in
21667 if test x"$ac_file" != x-; then
21668 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21669 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21670echo "$as_me: $ac_file is unchanged" >&6;}
21671 else
21672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21673$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21674 X"$ac_file" : 'X\(//\)[^/]' \| \
21675 X"$ac_file" : 'X\(//\)$' \| \
21676 X"$ac_file" : 'X\(/\)' \| \
21677 . : '\(.\)' 2>/dev/null ||
21678echo X"$ac_file" |
21679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21681 /^X\(\/\/\)$/{ s//\1/; q; }
21682 /^X\(\/\).*/{ s//\1/; q; }
21683 s/.*/./; q'`
21684 { if $as_mkdir_p; then
21685 mkdir -p "$ac_dir"
21686 else
21687 as_dir="$ac_dir"
21688 as_dirs=
21689 while test ! -d "$as_dir"; do
21690 as_dirs="$as_dir $as_dirs"
21691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21692$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21693 X"$as_dir" : 'X\(//\)[^/]' \| \
21694 X"$as_dir" : 'X\(//\)$' \| \
21695 X"$as_dir" : 'X\(/\)' \| \
21696 . : '\(.\)' 2>/dev/null ||
21697echo X"$as_dir" |
21698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21700 /^X\(\/\/\)$/{ s//\1/; q; }
21701 /^X\(\/\).*/{ s//\1/; q; }
21702 s/.*/./; q'`
21703 done
21704 test ! -n "$as_dirs" || mkdir $as_dirs
21705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21706echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21707 { (exit 1); exit 1; }; }; }
21708
21709 rm -f $ac_file
21710 mv $tmp/config.h $ac_file
21711 fi
21712 else
21713 cat $tmp/config.h
21714 rm -f $tmp/config.h
21715 fi
21716# Compute $ac_file's index in $config_headers.
21717_am_stamp_count=1
21718for _am_header in $config_headers :; do
21719 case $_am_header in
21720 $ac_file | $ac_file:* )
21721 break ;;
21722 * )
21723 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21724 esac
21725done
21726echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21727$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21728 X$ac_file : 'X\(//\)[^/]' \| \
21729 X$ac_file : 'X\(//\)$' \| \
21730 X$ac_file : 'X\(/\)' \| \
21731 . : '\(.\)' 2>/dev/null ||
21732echo X$ac_file |
21733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21735 /^X\(\/\/\)$/{ s//\1/; q; }
21736 /^X\(\/\).*/{ s//\1/; q; }
21737 s/.*/./; q'`/stamp-h$_am_stamp_count
21738done
21739_ACEOF
21740cat >>$CONFIG_STATUS <<\_ACEOF
21741
21742#
21743# CONFIG_COMMANDS section.
21744#
21745for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21746 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21747 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21748 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21749$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21750 X"$ac_dest" : 'X\(//\)[^/]' \| \
21751 X"$ac_dest" : 'X\(//\)$' \| \
21752 X"$ac_dest" : 'X\(/\)' \| \
21753 . : '\(.\)' 2>/dev/null ||
21754echo X"$ac_dest" |
21755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21757 /^X\(\/\/\)$/{ s//\1/; q; }
21758 /^X\(\/\).*/{ s//\1/; q; }
21759 s/.*/./; q'`
21760 { if $as_mkdir_p; then
21761 mkdir -p "$ac_dir"
21762 else
21763 as_dir="$ac_dir"
21764 as_dirs=
21765 while test ! -d "$as_dir"; do
21766 as_dirs="$as_dir $as_dirs"
21767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21769 X"$as_dir" : 'X\(//\)[^/]' \| \
21770 X"$as_dir" : 'X\(//\)$' \| \
21771 X"$as_dir" : 'X\(/\)' \| \
21772 . : '\(.\)' 2>/dev/null ||
21773echo X"$as_dir" |
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21776 /^X\(\/\/\)$/{ s//\1/; q; }
21777 /^X\(\/\).*/{ s//\1/; q; }
21778 s/.*/./; q'`
21779 done
21780 test ! -n "$as_dirs" || mkdir $as_dirs
21781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21782echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21783 { (exit 1); exit 1; }; }; }
21784
21785 ac_builddir=.
21786
21787if test "$ac_dir" != .; then
21788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21789 # A "../" for each directory in $ac_dir_suffix.
21790 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21791else
21792 ac_dir_suffix= ac_top_builddir=
21793fi
21794
21795case $srcdir in
21796 .) # No --srcdir option. We are building in place.
21797 ac_srcdir=.
21798 if test -z "$ac_top_builddir"; then
21799 ac_top_srcdir=.
21800 else
21801 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21802 fi ;;
21803 [\\/]* | ?:[\\/]* ) # Absolute path.
21804 ac_srcdir=$srcdir$ac_dir_suffix;
21805 ac_top_srcdir=$srcdir ;;
21806 *) # Relative path.
21807 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21808 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21809esac
21810
21811# Do not use `cd foo && pwd` to compute absolute paths, because
21812# the directories may not exist.
21813case `pwd` in
21814.) ac_abs_builddir="$ac_dir";;
21815*)
21816 case "$ac_dir" in
21817 .) ac_abs_builddir=`pwd`;;
21818 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21819 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21820 esac;;
21821esac
21822case $ac_abs_builddir in
21823.) ac_abs_top_builddir=${ac_top_builddir}.;;
21824*)
21825 case ${ac_top_builddir}. in
21826 .) ac_abs_top_builddir=$ac_abs_builddir;;
21827 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21828 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21829 esac;;
21830esac
21831case $ac_abs_builddir in
21832.) ac_abs_srcdir=$ac_srcdir;;
21833*)
21834 case $ac_srcdir in
21835 .) ac_abs_srcdir=$ac_abs_builddir;;
21836 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21837 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21838 esac;;
21839esac
21840case $ac_abs_builddir in
21841.) ac_abs_top_srcdir=$ac_top_srcdir;;
21842*)
21843 case $ac_top_srcdir in
21844 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21845 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21846 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21847 esac;;
21848esac
21849
21850
21851 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21852echo "$as_me: executing $ac_dest commands" >&6;}
21853 case $ac_dest in
21854 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21855 # Strip MF so we end up with the name of the file.
21856 mf=`echo "$mf" | sed -e 's/:.*$//'`
21857 # Check whether this is an Automake generated Makefile or not.
21858 # We used to match only the files named `Makefile.in', but
21859 # some people rename them; so instead we look at the file content.
21860 # Grep'ing the first line is not enough: some people post-process
21861 # each Makefile.in and add a new line on top of each file to say so.
21862 # So let's grep whole file.
21863 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21864 dirpart=`(dirname "$mf") 2>/dev/null ||
21865$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21866 X"$mf" : 'X\(//\)[^/]' \| \
21867 X"$mf" : 'X\(//\)$' \| \
21868 X"$mf" : 'X\(/\)' \| \
21869 . : '\(.\)' 2>/dev/null ||
21870echo X"$mf" |
21871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21873 /^X\(\/\/\)$/{ s//\1/; q; }
21874 /^X\(\/\).*/{ s//\1/; q; }
21875 s/.*/./; q'`
21876 else
21877 continue
21878 fi
21879 # Extract the definition of DEPDIR, am__include, and am__quote
21880 # from the Makefile without running `make'.
21881 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21882 test -z "$DEPDIR" && continue
21883 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21884 test -z "am__include" && continue
21885 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21886 # When using ansi2knr, U may be empty or an underscore; expand it
21887 U=`sed -n 's/^U = //p' < "$mf"`
21888 # Find all dependency output files, they are included files with
21889 # $(DEPDIR) in their names. We invoke sed twice because it is the
21890 # simplest approach to changing $(DEPDIR) to its actual value in the
21891 # expansion.
21892 for file in `sed -n "
21893 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21894 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21895 # Make sure the directory exists.
21896 test -f "$dirpart/$file" && continue
21897 fdir=`(dirname "$file") 2>/dev/null ||
21898$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899 X"$file" : 'X\(//\)[^/]' \| \
21900 X"$file" : 'X\(//\)$' \| \
21901 X"$file" : 'X\(/\)' \| \
21902 . : '\(.\)' 2>/dev/null ||
21903echo X"$file" |
21904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21906 /^X\(\/\/\)$/{ s//\1/; q; }
21907 /^X\(\/\).*/{ s//\1/; q; }
21908 s/.*/./; q'`
21909 { if $as_mkdir_p; then
21910 mkdir -p $dirpart/$fdir
21911 else
21912 as_dir=$dirpart/$fdir
21913 as_dirs=
21914 while test ! -d "$as_dir"; do
21915 as_dirs="$as_dir $as_dirs"
21916 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21918 X"$as_dir" : 'X\(//\)[^/]' \| \
21919 X"$as_dir" : 'X\(//\)$' \| \
21920 X"$as_dir" : 'X\(/\)' \| \
21921 . : '\(.\)' 2>/dev/null ||
21922echo X"$as_dir" |
21923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21925 /^X\(\/\/\)$/{ s//\1/; q; }
21926 /^X\(\/\).*/{ s//\1/; q; }
21927 s/.*/./; q'`
21928 done
21929 test ! -n "$as_dirs" || mkdir $as_dirs
21930 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21931echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21932 { (exit 1); exit 1; }; }; }
21933
21934 # echo "creating $dirpart/$file"
21935 echo '# dummy' > "$dirpart/$file"
21936 done
21937done
21938 ;;
21939 esac
21940done
21941_ACEOF
21942
21943cat >>$CONFIG_STATUS <<\_ACEOF
21944
21945{ (exit 0); exit 0; }
21946_ACEOF
21947chmod +x $CONFIG_STATUS
21948ac_clean_files=$ac_clean_files_save
21949
21950
21951# configure is writing to config.log, and then calls config.status.
21952# config.status does its own redirection, appending to config.log.
21953# Unfortunately, on DOS this fails, as config.log is still kept open
21954# by configure, so config.status won't be able to write to it; its
21955# output is simply discarded. So we exec the FD to /dev/null,
21956# effectively closing config.log, so it can be properly (re)opened and
21957# appended to by config.status. When coming back to configure, we
21958# need to make the FD available again.
21959if test "$no_create" != yes; then
21960 ac_cs_success=:
21961 ac_config_status_args=
21962 test "$silent" = yes &&
21963 ac_config_status_args="$ac_config_status_args --quiet"
21964 exec 5>/dev/null
21965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21966 exec 5>>config.log
21967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21968 # would make configure fail if this is the last instruction.
21969 $ac_cs_success || { (exit 1); exit 1; }
21970fi
21971