blob: 835f0e51cb919c43695c800fb3869174072e1181 [file] [log] [blame]
Heather Lee Wilsonbdd62c52013-12-28 15:12:39 -08001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for cmockery 0.1.2.
4#
5# Report bugs to <opensource@google.com>.
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='cmockery'
425PACKAGE_TARNAME='cmockery'
426PACKAGE_VERSION='0.1.2'
427PACKAGE_STRING='cmockery 0.1.2'
428PACKAGE_BUGREPORT='opensource@google.com'
429
430ac_unique_file="README"
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 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS 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 cmockery 0.1.2 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 cmockery 0.1.2:";;
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 --enable-namespace=FOO to define these Google
1040 classes in the FOO namespace. --disable-namespace
1041 to define them in the global namespace. Default
1042 is to define them in namespace google.
1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
1052
1053Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CPP C preprocessor
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1066
1067Use these variables to override the choices made by `configure' or to help
1068it to find libraries and programs with nonstandard names/locations.
1069
1070Report bugs to <opensource@google.com>.
1071_ACEOF
1072fi
1073
1074if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085else
1086 ac_dir_suffix= ac_top_builddir=
1087fi
1088
1089case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103esac
1104
1105# Do not use `cd foo && pwd` to compute absolute paths, because
1106# the directories may not exist.
1107case `pwd` in
1108.) ac_abs_builddir="$ac_dir";;
1109*)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_top_builddir=${ac_top_builddir}.;;
1118*)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_srcdir=$ac_srcdir;;
1127*)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_srcdir=$ac_top_srcdir;;
1136*)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
1159 cd "$ac_popdir"
1160 done
1161fi
1162
1163test -n "$ac_init_help" && exit 0
1164if $ac_init_version; then
1165 cat <<\_ACEOF
1166cmockery configure 0.1.2
1167generated by GNU Autoconf 2.59
1168
1169Copyright (C) 2003 Free Software Foundation, Inc.
1170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173 exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
1180It was created by cmockery $as_me 0.1.2, which was
1181generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
1233# Strip out --silent because we don't want to record it for future runs.
1234# Also quote any args containing shell meta-characters.
1235# Make two passes to allow for proper duplicate-argument suppression.
1236ac_configure_args=
1237ac_configure_args0=
1238ac_configure_args1=
1239ac_sep=
1240ac_must_keep_next=false
1241for ac_pass in 1 2
1242do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278done
1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log. We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299{
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312}
1313 echo
1314
1315 cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414done
1415
1416if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475done
1476if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1516# The argument here is just something that should be in the current directory
1517# (for sanity checking)
1518
1519am__api_version="1.9"
1520ac_aux_dir=
1521for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1522 if test -f $ac_dir/install-sh; then
1523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 break
1526 elif test -f $ac_dir/install.sh; then
1527 ac_aux_dir=$ac_dir
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 break
1530 elif test -f $ac_dir/shtool; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 break
1534 fi
1535done
1536if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539 { (exit 1); exit 1; }; }
1540fi
1541ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545# Find a good install program. We prefer a C program (faster),
1546# so one script is as good as another. But avoid the broken or
1547# incompatible versions:
1548# SysV /etc/install, /usr/sbin/install
1549# SunOS /usr/etc/install
1550# IRIX /sbin/install
1551# AIX /bin/install
1552# AmigaOS /C/install, which installs bootblocks on floppy discs
1553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556# OS/2's system install, which has a completely different semantic
1557# ./install, which can be erroneously created by make from ./install.sh.
1558echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1559echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1560if test -z "$INSTALL"; then
1561if test "${ac_cv_path_install+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 # Account for people who put trailing slashes in PATH elements.
1570case $as_dir/ in
1571 ./ | .// | /cC/* | \
1572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1574 /usr/ucb/* ) ;;
1575 *)
1576 # OSF1 and SCO ODT 3.0 have their own names for install.
1577 # Don't use installbsd from OSF since it installs stuff as root
1578 # by default.
1579 for ac_prog in ginstall scoinst install; do
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1582 if test $ac_prog = install &&
1583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # AIX install. It has an incompatible calling convention.
1585 :
1586 elif test $ac_prog = install &&
1587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588 # program-specific install script used by HP pwplus--don't use.
1589 :
1590 else
1591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1592 break 3
1593 fi
1594 fi
1595 done
1596 done
1597 ;;
1598esac
1599done
1600
1601
1602fi
1603 if test "${ac_cv_path_install+set}" = set; then
1604 INSTALL=$ac_cv_path_install
1605 else
1606 # As a last resort, use the slow shell script. We don't cache a
1607 # path for INSTALL within a source directory, because that will
1608 # break other packages using the cache if that directory is
1609 # removed, or if the path is relative.
1610 INSTALL=$ac_install_sh
1611 fi
1612fi
1613echo "$as_me:$LINENO: result: $INSTALL" >&5
1614echo "${ECHO_T}$INSTALL" >&6
1615
1616# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617# It thinks the first close brace ends the variable substitution.
1618test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619
1620test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621
1622test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623
1624echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1625echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1626# Just in case
1627sleep 1
1628echo timestamp > conftest.file
1629# Do `set' in a subshell so we don't clobber the current shell's
1630# arguments. Must try -L first in case configure is actually a
1631# symlink; some systems play weird games with the mod time of symlinks
1632# (eg FreeBSD returns the mod time of the symlink's containing
1633# directory).
1634if (
1635 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1636 if test "$*" = "X"; then
1637 # -L didn't work.
1638 set X `ls -t $srcdir/configure conftest.file`
1639 fi
1640 rm -f conftest.file
1641 if test "$*" != "X $srcdir/configure conftest.file" \
1642 && test "$*" != "X conftest.file $srcdir/configure"; then
1643
1644 # If neither matched, then we have a broken ls. This can happen
1645 # if, for instance, CONFIG_SHELL is bash and it inherits a
1646 # broken ls alias from the environment. This has actually
1647 # happened. Such a system could not be considered "sane".
1648 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1649alias in your environment" >&5
1650echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1651alias in your environment" >&2;}
1652 { (exit 1); exit 1; }; }
1653 fi
1654
1655 test "$2" = conftest.file
1656 )
1657then
1658 # Ok.
1659 :
1660else
1661 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1662Check your system clock" >&5
1663echo "$as_me: error: newly created file is older than distributed files!
1664Check your system clock" >&2;}
1665 { (exit 1); exit 1; }; }
1666fi
1667echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669test "$program_prefix" != NONE &&
1670 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1671# Use a double $ so make ignores it.
1672test "$program_suffix" != NONE &&
1673 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1674# Double any \ or $. echo might interpret backslashes.
1675# By default was `s,x,x', remove it if useless.
1676cat <<\_ACEOF >conftest.sed
1677s/[\\$]/&&/g;s/;s,x,x,$//
1678_ACEOF
1679program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680rm conftest.sed
1681
1682# expand $ac_aux_dir to an absolute path
1683am_aux_dir=`cd $ac_aux_dir && pwd`
1684
1685test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1686# Use eval to expand $SHELL
1687if eval "$MISSING --run true"; then
1688 am_missing_run="$MISSING --run "
1689else
1690 am_missing_run=
1691 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1692echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693fi
1694
1695if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1696 # We used to keeping the `.' as first argument, in order to
1697 # allow $(mkdir_p) to be used without argument. As in
1698 # $(mkdir_p) $(somedir)
1699 # where $(somedir) is conditionally defined. However this is wrong
1700 # for two reasons:
1701 # 1. if the package is installed by a user who cannot write `.'
1702 # make install will fail,
1703 # 2. the above comment should most certainly read
1704 # $(mkdir_p) $(DESTDIR)$(somedir)
1705 # so it does not work when $(somedir) is undefined and
1706 # $(DESTDIR) is not.
1707 # To support the latter case, we have to write
1708 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1709 # so the `.' trick is pointless.
1710 mkdir_p='mkdir -p --'
1711else
1712 # On NextStep and OpenStep, the `mkdir' command does not
1713 # recognize any option. It will interpret all options as
1714 # directories to create, and then abort because `.' already
1715 # exists.
1716 for d in ./-p ./--version;
1717 do
1718 test -d $d && rmdir $d
1719 done
1720 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1721 if test -f "$ac_aux_dir/mkinstalldirs"; then
1722 mkdir_p='$(mkinstalldirs)'
1723 else
1724 mkdir_p='$(install_sh) -d'
1725 fi
1726fi
1727
1728for ac_prog in gawk mawk nawk awk
1729do
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731set dummy $ac_prog; ac_word=$2
1732echo "$as_me:$LINENO: checking for $ac_word" >&5
1733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734if test "${ac_cv_prog_AWK+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736else
1737 if test -n "$AWK"; then
1738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739else
1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_AWK="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1750 fi
1751done
1752done
1753
1754fi
1755fi
1756AWK=$ac_cv_prog_AWK
1757if test -n "$AWK"; then
1758 echo "$as_me:$LINENO: result: $AWK" >&5
1759echo "${ECHO_T}$AWK" >&6
1760else
1761 echo "$as_me:$LINENO: result: no" >&5
1762echo "${ECHO_T}no" >&6
1763fi
1764
1765 test -n "$AWK" && break
1766done
1767
1768echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1769echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1770set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1771if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 cat >conftest.make <<\_ACEOF
1775all:
1776 @echo 'ac_maketemp="$(MAKE)"'
1777_ACEOF
1778# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1779eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1780if test -n "$ac_maketemp"; then
1781 eval ac_cv_prog_make_${ac_make}_set=yes
1782else
1783 eval ac_cv_prog_make_${ac_make}_set=no
1784fi
1785rm -f conftest.make
1786fi
1787if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1788 echo "$as_me:$LINENO: result: yes" >&5
1789echo "${ECHO_T}yes" >&6
1790 SET_MAKE=
1791else
1792 echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
1794 SET_MAKE="MAKE=${MAKE-make}"
1795fi
1796
1797rm -rf .tst 2>/dev/null
1798mkdir .tst 2>/dev/null
1799if test -d .tst; then
1800 am__leading_dot=.
1801else
1802 am__leading_dot=_
1803fi
1804rmdir .tst 2>/dev/null
1805
1806# test to see if srcdir already configured
1807if test "`cd $srcdir && pwd`" != "`pwd`" &&
1808 test -f $srcdir/config.status; then
1809 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1810echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1811 { (exit 1); exit 1; }; }
1812fi
1813
1814# test whether we have cygpath
1815if test -z "$CYGPATH_W"; then
1816 if (cygpath --version) >/dev/null 2>/dev/null; then
1817 CYGPATH_W='cygpath -w'
1818 else
1819 CYGPATH_W=echo
1820 fi
1821fi
1822
1823
1824# Define the identity of the package.
1825 PACKAGE='cmockery'
1826 VERSION='0.1.2'
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define PACKAGE "$PACKAGE"
1831_ACEOF
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define VERSION "$VERSION"
1836_ACEOF
1837
1838# Some tools Automake needs.
1839
1840ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1841
1842
1843AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1844
1845
1846AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1847
1848
1849AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1850
1851
1852MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853
1854install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855
1856# Installed binaries are usually stripped using `strip' when the user
1857# run `make install-strip'. However `strip' might not be the right
1858# tool to use in cross-compilation environments, therefore Automake
1859# will honor the `STRIP' environment variable to overrule this program.
1860if test "$cross_compiling" != no; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863set dummy ${ac_tool_prefix}strip; ac_word=$2
1864echo "$as_me:$LINENO: checking for $ac_word" >&5
1865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866if test "${ac_cv_prog_STRIP+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871else
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883done
1884done
1885
1886fi
1887fi
1888STRIP=$ac_cv_prog_STRIP
1889if test -n "$STRIP"; then
1890 echo "$as_me:$LINENO: result: $STRIP" >&5
1891echo "${ECHO_T}$STRIP" >&6
1892else
1893 echo "$as_me:$LINENO: result: no" >&5
1894echo "${ECHO_T}no" >&6
1895fi
1896
1897fi
1898if test -z "$ac_cv_prog_STRIP"; then
1899 ac_ct_STRIP=$STRIP
1900 # Extract the first word of "strip", so it can be a program name with args.
1901set dummy strip; ac_word=$2
1902echo "$as_me:$LINENO: checking for $ac_word" >&5
1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907 if test -n "$ac_ct_STRIP"; then
1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909else
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_STRIP="strip"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921done
1922done
1923
1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925fi
1926fi
1927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928if test -n "$ac_ct_STRIP"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930echo "${ECHO_T}$ac_ct_STRIP" >&6
1931else
1932 echo "$as_me:$LINENO: result: no" >&5
1933echo "${ECHO_T}no" >&6
1934fi
1935
1936 STRIP=$ac_ct_STRIP
1937else
1938 STRIP="$ac_cv_prog_STRIP"
1939fi
1940
1941fi
1942INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943
1944# We need awk for the "check" target. The system "awk" is bad on
1945# some platforms.
1946# Always define AMTAR for backward compatibility.
1947
1948AMTAR=${AMTAR-"${am_missing_run}tar"}
1949
1950am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1951
1952
1953
1954
1955
1956 ac_config_headers="$ac_config_headers src/config.h"
1957
1958
1959# Checks for programs.
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" || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_compiler_gnu=yes
2541else
2542 echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545ac_compiler_gnu=no
2546fi
2547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548ac_cv_c_compiler_gnu=$ac_compiler_gnu
2549
2550fi
2551echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2552echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2553GCC=`test $ac_compiler_gnu = yes && echo yes`
2554ac_test_CFLAGS=${CFLAGS+set}
2555ac_save_CFLAGS=$CFLAGS
2556CFLAGS="-g"
2557echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2558echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2559if test "${ac_cv_prog_cc_g+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568
2569int
2570main ()
2571{
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577rm -f conftest.$ac_objext
2578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_cv_prog_cc_g=yes
2599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603ac_cv_prog_cc_g=no
2604fi
2605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606fi
2607echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2608echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2609if test "$ac_test_CFLAGS" = set; then
2610 CFLAGS=$ac_save_CFLAGS
2611elif test $ac_cv_prog_cc_g = yes; then
2612 if test "$GCC" = yes; then
2613 CFLAGS="-g -O2"
2614 else
2615 CFLAGS="-g"
2616 fi
2617else
2618 if test "$GCC" = yes; then
2619 CFLAGS="-O2"
2620 else
2621 CFLAGS=
2622 fi
2623fi
2624echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2625echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2626if test "${ac_cv_prog_cc_stdc+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628else
2629 ac_cv_prog_cc_stdc=no
2630ac_save_CC=$CC
2631cat >conftest.$ac_ext <<_ACEOF
2632/* confdefs.h. */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h. */
2637#include <stdarg.h>
2638#include <stdio.h>
2639#include <sys/types.h>
2640#include <sys/stat.h>
2641/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2642struct buf { int x; };
2643FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644static char *e (p, i)
2645 char **p;
2646 int i;
2647{
2648 return p[i];
2649}
2650static char *f (char * (*g) (char **, int), char **p, ...)
2651{
2652 char *s;
2653 va_list v;
2654 va_start (v,p);
2655 s = g (p, va_arg (v,int));
2656 va_end (v);
2657 return s;
2658}
2659
2660/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2661 function prototypes and stuff, but not '\xHH' hex character constants.
2662 These don't provoke an error unfortunately, instead are silently treated
2663 as 'x'. The following induces an error, until -std1 is added to get
2664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2665 array size at least. It's necessary to write '\x00'==0 to get something
2666 that's true only with -std1. */
2667int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2668
2669int test (int i, double x);
2670struct s1 {int (*f) (int a);};
2671struct s2 {int (*f) (double a);};
2672int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2673int argc;
2674char **argv;
2675int
2676main ()
2677{
2678return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2679 ;
2680 return 0;
2681}
2682_ACEOF
2683# Don't try gcc -ansi; that turns off useful extensions and
2684# breaks some systems' header files.
2685# AIX -qlanglvl=ansi
2686# Ultrix and OSF/1 -std1
2687# HP-UX 10.20 and later -Ae
2688# HP-UX older versions -Aa -D_HPUX_SOURCE
2689# SVR4 -Xc -D__EXTENSIONS__
2690for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691do
2692 CC="$ac_save_CC $ac_arg"
2693 rm -f conftest.$ac_objext
2694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_prog_cc_stdc=$ac_arg
2715break
2716else
2717 echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
2720fi
2721rm -f conftest.err conftest.$ac_objext
2722done
2723rm -f conftest.$ac_ext conftest.$ac_objext
2724CC=$ac_save_CC
2725
2726fi
2727
2728case "x$ac_cv_prog_cc_stdc" in
2729 x|xno)
2730 echo "$as_me:$LINENO: result: none needed" >&5
2731echo "${ECHO_T}none needed" >&6 ;;
2732 *)
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2734echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2735 CC="$CC $ac_cv_prog_cc_stdc" ;;
2736esac
2737
2738# Some people use a C++ compiler to compile C. Since we use `exit',
2739# in C++ we need to declare it. In case someone uses the same compiler
2740# for both compiling C and C++ we need to have the C++ compiler decide
2741# the declaration of exit, since it's the most demanding environment.
2742cat >conftest.$ac_ext <<_ACEOF
2743#ifndef __cplusplus
2744 choke me
2745#endif
2746_ACEOF
2747rm -f conftest.$ac_objext
2748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 for ac_declaration in \
2769 '' \
2770 'extern "C" void std::exit (int) throw (); using std::exit;' \
2771 'extern "C" void std::exit (int); using std::exit;' \
2772 'extern "C" void exit (int) throw ();' \
2773 'extern "C" void exit (int);' \
2774 'void exit (int);'
2775do
2776 cat >conftest.$ac_ext <<_ACEOF
2777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h. */
2782$ac_declaration
2783#include <stdlib.h>
2784int
2785main ()
2786{
2787exit (42);
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792rm -f conftest.$ac_objext
2793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2795 ac_status=$?
2796 grep -v '^ *+' conftest.er1 >conftest.err
2797 rm -f conftest.er1
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; } &&
2807 { ac_try='test -s conftest.$ac_objext'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 :
2814else
2815 echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
2818continue
2819fi
2820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2821 cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h. */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h. */
2827$ac_declaration
2828int
2829main ()
2830{
2831exit (42);
2832 ;
2833 return 0;
2834}
2835_ACEOF
2836rm -f conftest.$ac_objext
2837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2857 break
2858else
2859 echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862fi
2863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864done
2865rm -f conftest*
2866if test -n "$ac_declaration"; then
2867 echo '#ifdef __cplusplus' >>confdefs.h
2868 echo $ac_declaration >>confdefs.h
2869 echo '#endif' >>confdefs.h
2870fi
2871
2872else
2873 echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876fi
2877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878ac_ext=c
2879ac_cpp='$CPP $CPPFLAGS'
2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883DEPDIR="${am__leading_dot}deps"
2884
2885 ac_config_commands="$ac_config_commands depfiles"
2886
2887
2888am_make=${MAKE-make}
2889cat > confinc << 'END'
2890am__doit:
2891 @echo done
2892.PHONY: am__doit
2893END
2894# If we don't find an include directive, just comment out the code.
2895echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2896echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2897am__include="#"
2898am__quote=
2899_am_result=none
2900# First try GNU make style include.
2901echo "include confinc" > confmf
2902# We grep out `Entering directory' and `Leaving directory'
2903# messages which can occur if `w' ends up in MAKEFLAGS.
2904# In particular we don't look at `^make:' because GNU make might
2905# be invoked under some other name (usually "gmake"), in which
2906# case it prints its new name instead of `make'.
2907if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2908 am__include=include
2909 am__quote=
2910 _am_result=GNU
2911fi
2912# Now try BSD make style include.
2913if test "$am__include" = "#"; then
2914 echo '.include "confinc"' > confmf
2915 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2916 am__include=.include
2917 am__quote="\""
2918 _am_result=BSD
2919 fi
2920fi
2921
2922
2923echo "$as_me:$LINENO: result: $_am_result" >&5
2924echo "${ECHO_T}$_am_result" >&6
2925rm -f confinc confmf
2926
2927# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2928if test "${enable_dependency_tracking+set}" = set; then
2929 enableval="$enable_dependency_tracking"
2930
2931fi;
2932if test "x$enable_dependency_tracking" != xno; then
2933 am_depcomp="$ac_aux_dir/depcomp"
2934 AMDEPBACKSLASH='\'
2935fi
2936
2937
2938if test "x$enable_dependency_tracking" != xno; then
2939 AMDEP_TRUE=
2940 AMDEP_FALSE='#'
2941else
2942 AMDEP_TRUE='#'
2943 AMDEP_FALSE=
2944fi
2945
2946
2947
2948
2949depcc="$CC" am_compiler_list=
2950
2951echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2952echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2953if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2957 # We make a subdir and do the tests there. Otherwise we can end up
2958 # making bogus files that we don't know about and never remove. For
2959 # instance it was reported that on HP-UX the gcc test will end up
2960 # making a dummy file named `D' -- because `-MD' means `put the output
2961 # in D'.
2962 mkdir conftest.dir
2963 # Copy depcomp to subdir because otherwise we won't find it if we're
2964 # using a relative directory.
2965 cp "$am_depcomp" conftest.dir
2966 cd conftest.dir
2967 # We will build objects and dependencies in a subdirectory because
2968 # it helps to detect inapplicable dependency modes. For instance
2969 # both Tru64's cc and ICC support -MD to output dependencies as a
2970 # side effect of compilation, but ICC will put the dependencies in
2971 # the current directory while Tru64 will put them in the object
2972 # directory.
2973 mkdir sub
2974
2975 am_cv_CC_dependencies_compiler_type=none
2976 if test "$am_compiler_list" = ""; then
2977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2978 fi
2979 for depmode in $am_compiler_list; do
2980 # Setup a source with many dependencies, because some compilers
2981 # like to wrap large dependency lists on column 80 (with \), and
2982 # we should not choose a depcomp mode which is confused by this.
2983 #
2984 # We need to recreate these files for each test, as the compiler may
2985 # overwrite some of them when testing with obscure command lines.
2986 # This happens at least with the AIX C compiler.
2987 : > sub/conftest.c
2988 for i in 1 2 3 4 5 6; do
2989 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2990 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2991 # Solaris 8's {/usr,}/bin/sh.
2992 touch sub/conftst$i.h
2993 done
2994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2995
2996 case $depmode in
2997 nosideeffect)
2998 # after this tag, mechanisms are not by side-effect, so they'll
2999 # only be used when explicitly requested
3000 if test "x$enable_dependency_tracking" = xyes; then
3001 continue
3002 else
3003 break
3004 fi
3005 ;;
3006 none) break ;;
3007 esac
3008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3009 # mode. It turns out that the SunPro C++ compiler does not properly
3010 # handle `-M -o', and we need to detect this.
3011 if depmode=$depmode \
3012 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3014 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3015 >/dev/null 2>conftest.err &&
3016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3017 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3019 # icc doesn't choke on unknown options, it will just issue warnings
3020 # or remarks (even with -Werror). So we grep stderr for any message
3021 # that says an option was ignored or not supported.
3022 # When given -MP, icc 7.0 and 7.1 complain thusly:
3023 # icc: Command line warning: ignoring option '-M'; no argument required
3024 # The diagnosis changed in icc 8.0:
3025 # icc: Command line remark: option '-MP' not supported
3026 if (grep 'ignoring option' conftest.err ||
3027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3028 am_cv_CC_dependencies_compiler_type=$depmode
3029 break
3030 fi
3031 fi
3032 done
3033
3034 cd ..
3035 rm -rf conftest.dir
3036else
3037 am_cv_CC_dependencies_compiler_type=none
3038fi
3039
3040fi
3041echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3042echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3043CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3044
3045
3046
3047if
3048 test "x$enable_dependency_tracking" != xno \
3049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3050 am__fastdepCC_TRUE=
3051 am__fastdepCC_FALSE='#'
3052else
3053 am__fastdepCC_TRUE='#'
3054 am__fastdepCC_FALSE=
3055fi
3056
3057
3058ac_ext=c
3059ac_cpp='$CPP $CPPFLAGS'
3060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3064echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3065# On Suns, sometimes $CPP names a directory.
3066if test -n "$CPP" && test -d "$CPP"; then
3067 CPP=
3068fi
3069if test -z "$CPP"; then
3070 if test "${ac_cv_prog_CPP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 # Double quotes because CPP needs to be expanded
3074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3075 do
3076 ac_preproc_ok=false
3077for ac_c_preproc_warn_flag in '' yes
3078do
3079 # Use a header file that comes with gcc, so configuring glibc
3080 # with a fresh cross-compiler works.
3081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3082 # <limits.h> exists even on freestanding compilers.
3083 # On the NeXT, cc -E runs the code through the compiler's parser,
3084 # not just through cpp. "Syntax error" is here to catch this case.
3085 cat >conftest.$ac_ext <<_ACEOF
3086/* confdefs.h. */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h. */
3091#ifdef __STDC__
3092# include <limits.h>
3093#else
3094# include <assert.h>
3095#endif
3096 Syntax error
3097_ACEOF
3098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 else
3110 ac_cpp_err=
3111 fi
3112else
3113 ac_cpp_err=yes
3114fi
3115if test -z "$ac_cpp_err"; then
3116 :
3117else
3118 echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 # Broken: fails on valid input.
3122continue
3123fi
3124rm -f conftest.err conftest.$ac_ext
3125
3126 # OK, works on sane cases. Now check whether non-existent headers
3127 # can be detected and how.
3128 cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
3134#include <ac_nonexistent.h>
3135_ACEOF
3136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null; then
3144 if test -s conftest.err; then
3145 ac_cpp_err=$ac_c_preproc_warn_flag
3146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3147 else
3148 ac_cpp_err=
3149 fi
3150else
3151 ac_cpp_err=yes
3152fi
3153if test -z "$ac_cpp_err"; then
3154 # Broken: success on invalid input.
3155continue
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 # Passes both tests.
3161ac_preproc_ok=:
3162break
3163fi
3164rm -f conftest.err conftest.$ac_ext
3165
3166done
3167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168rm -f conftest.err conftest.$ac_ext
3169if $ac_preproc_ok; then
3170 break
3171fi
3172
3173 done
3174 ac_cv_prog_CPP=$CPP
3175
3176fi
3177 CPP=$ac_cv_prog_CPP
3178else
3179 ac_cv_prog_CPP=$CPP
3180fi
3181echo "$as_me:$LINENO: result: $CPP" >&5
3182echo "${ECHO_T}$CPP" >&6
3183ac_preproc_ok=false
3184for ac_c_preproc_warn_flag in '' yes
3185do
3186 # Use a header file that comes with gcc, so configuring glibc
3187 # with a fresh cross-compiler works.
3188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3189 # <limits.h> exists even on freestanding compilers.
3190 # On the NeXT, cc -E runs the code through the compiler's parser,
3191 # not just through cpp. "Syntax error" is here to catch this case.
3192 cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h. */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h. */
3198#ifdef __STDC__
3199# include <limits.h>
3200#else
3201# include <assert.h>
3202#endif
3203 Syntax error
3204_ACEOF
3205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null; then
3213 if test -s conftest.err; then
3214 ac_cpp_err=$ac_c_preproc_warn_flag
3215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3216 else
3217 ac_cpp_err=
3218 fi
3219else
3220 ac_cpp_err=yes
3221fi
3222if test -z "$ac_cpp_err"; then
3223 :
3224else
3225 echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 # Broken: fails on valid input.
3229continue
3230fi
3231rm -f conftest.err conftest.$ac_ext
3232
3233 # OK, works on sane cases. Now check whether non-existent headers
3234 # can be detected and how.
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241#include <ac_nonexistent.h>
3242_ACEOF
3243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254 else
3255 ac_cpp_err=
3256 fi
3257else
3258 ac_cpp_err=yes
3259fi
3260if test -z "$ac_cpp_err"; then
3261 # Broken: success on invalid input.
3262continue
3263else
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 # Passes both tests.
3268ac_preproc_ok=:
3269break
3270fi
3271rm -f conftest.err conftest.$ac_ext
3272
3273done
3274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3275rm -f conftest.err conftest.$ac_ext
3276if $ac_preproc_ok; then
3277 :
3278else
3279 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3280See \`config.log' for more details." >&5
3281echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3282See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3284fi
3285
3286ac_ext=c
3287ac_cpp='$CPP $CPPFLAGS'
3288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
3292ac_ext=cc
3293ac_cpp='$CXXCPP $CPPFLAGS'
3294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3297if test -n "$ac_tool_prefix"; then
3298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3299 do
3300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302echo "$as_me:$LINENO: checking for $ac_word" >&5
3303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304if test "${ac_cv_prog_CXX+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307 if test -n "$CXX"; then
3308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3309else
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321done
3322done
3323
3324fi
3325fi
3326CXX=$ac_cv_prog_CXX
3327if test -n "$CXX"; then
3328 echo "$as_me:$LINENO: result: $CXX" >&5
3329echo "${ECHO_T}$CXX" >&6
3330else
3331 echo "$as_me:$LINENO: result: no" >&5
3332echo "${ECHO_T}no" >&6
3333fi
3334
3335 test -n "$CXX" && break
3336 done
3337fi
3338if test -z "$CXX"; then
3339 ac_ct_CXX=$CXX
3340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3341do
3342 # Extract the first word of "$ac_prog", so it can be a program name with args.
3343set dummy $ac_prog; ac_word=$2
3344echo "$as_me:$LINENO: checking for $ac_word" >&5
3345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349 if test -n "$ac_ct_CXX"; then
3350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_ac_ct_CXX="$ac_prog"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363done
3364done
3365
3366fi
3367fi
3368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3369if test -n "$ac_ct_CXX"; then
3370 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3371echo "${ECHO_T}$ac_ct_CXX" >&6
3372else
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375fi
3376
3377 test -n "$ac_ct_CXX" && break
3378done
3379test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3380
3381 CXX=$ac_ct_CXX
3382fi
3383
3384
3385# Provide some information about the compiler.
3386echo "$as_me:$LINENO:" \
3387 "checking for C++ compiler version" >&5
3388ac_compiler=`set X $ac_compile; echo $2`
3389{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3390 (eval $ac_compiler --version </dev/null >&5) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }
3394{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3395 (eval $ac_compiler -v </dev/null >&5) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }
3399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3400 (eval $ac_compiler -V </dev/null >&5) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3404
3405echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3406echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3407if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
3416
3417int
3418main ()
3419{
3420#ifndef __GNUC__
3421 choke me
3422#endif
3423
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext
3429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3449 ac_compiler_gnu=yes
3450else
3451 echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
3454ac_compiler_gnu=no
3455fi
3456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3457ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3458
3459fi
3460echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3461echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3462GXX=`test $ac_compiler_gnu = yes && echo yes`
3463ac_test_CXXFLAGS=${CXXFLAGS+set}
3464ac_save_CXXFLAGS=$CXXFLAGS
3465CXXFLAGS="-g"
3466echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3467echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3468if test "${ac_cv_prog_cxx_g+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470else
3471 cat >conftest.$ac_ext <<_ACEOF
3472/* confdefs.h. */
3473_ACEOF
3474cat confdefs.h >>conftest.$ac_ext
3475cat >>conftest.$ac_ext <<_ACEOF
3476/* end confdefs.h. */
3477
3478int
3479main ()
3480{
3481
3482 ;
3483 return 0;
3484}
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488 (eval $ac_compile) 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_cv_prog_cxx_g=yes
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512ac_cv_prog_cxx_g=no
3513fi
3514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3517echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3518if test "$ac_test_CXXFLAGS" = set; then
3519 CXXFLAGS=$ac_save_CXXFLAGS
3520elif test $ac_cv_prog_cxx_g = yes; then
3521 if test "$GXX" = yes; then
3522 CXXFLAGS="-g -O2"
3523 else
3524 CXXFLAGS="-g"
3525 fi
3526else
3527 if test "$GXX" = yes; then
3528 CXXFLAGS="-O2"
3529 else
3530 CXXFLAGS=
3531 fi
3532fi
3533for ac_declaration in \
3534 '' \
3535 'extern "C" void std::exit (int) throw (); using std::exit;' \
3536 'extern "C" void std::exit (int); using std::exit;' \
3537 'extern "C" void exit (int) throw ();' \
3538 'extern "C" void exit (int);' \
3539 'void exit (int);'
3540do
3541 cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h. */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h. */
3547$ac_declaration
3548#include <stdlib.h>
3549int
3550main ()
3551{
3552exit (42);
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 :
3579else
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583continue
3584fi
3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586 cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h. */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h. */
3592$ac_declaration
3593int
3594main ()
3595{
3596exit (42);
3597 ;
3598 return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>conftest.er1
3604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 break
3623else
3624 echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627fi
3628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629done
3630rm -f conftest*
3631if test -n "$ac_declaration"; then
3632 echo '#ifdef __cplusplus' >>confdefs.h
3633 echo $ac_declaration >>confdefs.h
3634 echo '#endif' >>confdefs.h
3635fi
3636
3637ac_ext=c
3638ac_cpp='$CPP $CPPFLAGS'
3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643depcc="$CXX" am_compiler_list=
3644
3645echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3646echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3647if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649else
3650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3651 # We make a subdir and do the tests there. Otherwise we can end up
3652 # making bogus files that we don't know about and never remove. For
3653 # instance it was reported that on HP-UX the gcc test will end up
3654 # making a dummy file named `D' -- because `-MD' means `put the output
3655 # in D'.
3656 mkdir conftest.dir
3657 # Copy depcomp to subdir because otherwise we won't find it if we're
3658 # using a relative directory.
3659 cp "$am_depcomp" conftest.dir
3660 cd conftest.dir
3661 # We will build objects and dependencies in a subdirectory because
3662 # it helps to detect inapplicable dependency modes. For instance
3663 # both Tru64's cc and ICC support -MD to output dependencies as a
3664 # side effect of compilation, but ICC will put the dependencies in
3665 # the current directory while Tru64 will put them in the object
3666 # directory.
3667 mkdir sub
3668
3669 am_cv_CXX_dependencies_compiler_type=none
3670 if test "$am_compiler_list" = ""; then
3671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672 fi
3673 for depmode in $am_compiler_list; do
3674 # Setup a source with many dependencies, because some compilers
3675 # like to wrap large dependency lists on column 80 (with \), and
3676 # we should not choose a depcomp mode which is confused by this.
3677 #
3678 # We need to recreate these files for each test, as the compiler may
3679 # overwrite some of them when testing with obscure command lines.
3680 # This happens at least with the AIX C compiler.
3681 : > sub/conftest.c
3682 for i in 1 2 3 4 5 6; do
3683 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3684 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3685 # Solaris 8's {/usr,}/bin/sh.
3686 touch sub/conftst$i.h
3687 done
3688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3689
3690 case $depmode in
3691 nosideeffect)
3692 # after this tag, mechanisms are not by side-effect, so they'll
3693 # only be used when explicitly requested
3694 if test "x$enable_dependency_tracking" = xyes; then
3695 continue
3696 else
3697 break
3698 fi
3699 ;;
3700 none) break ;;
3701 esac
3702 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3703 # mode. It turns out that the SunPro C++ compiler does not properly
3704 # handle `-M -o', and we need to detect this.
3705 if depmode=$depmode \
3706 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3707 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3708 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3709 >/dev/null 2>conftest.err &&
3710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3711 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3713 # icc doesn't choke on unknown options, it will just issue warnings
3714 # or remarks (even with -Werror). So we grep stderr for any message
3715 # that says an option was ignored or not supported.
3716 # When given -MP, icc 7.0 and 7.1 complain thusly:
3717 # icc: Command line warning: ignoring option '-M'; no argument required
3718 # The diagnosis changed in icc 8.0:
3719 # icc: Command line remark: option '-MP' not supported
3720 if (grep 'ignoring option' conftest.err ||
3721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3722 am_cv_CXX_dependencies_compiler_type=$depmode
3723 break
3724 fi
3725 fi
3726 done
3727
3728 cd ..
3729 rm -rf conftest.dir
3730else
3731 am_cv_CXX_dependencies_compiler_type=none
3732fi
3733
3734fi
3735echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3736echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3737CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3738
3739
3740
3741if
3742 test "x$enable_dependency_tracking" != xno \
3743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3744 am__fastdepCXX_TRUE=
3745 am__fastdepCXX_FALSE='#'
3746else
3747 am__fastdepCXX_TRUE='#'
3748 am__fastdepCXX_FALSE=
3749fi
3750
3751
3752
3753
3754if test "$GCC" = yes; then
3755 GCC_TRUE=
3756 GCC_FALSE='#'
3757else
3758 GCC_TRUE='#'
3759 GCC_FALSE=
3760fi
3761 # let the Makefile know if we're gcc
3762
3763# Uncomment this if you'll be exporting libraries (.so's)
3764# Check whether --enable-shared or --disable-shared was given.
3765if test "${enable_shared+set}" = set; then
3766 enableval="$enable_shared"
3767 p=${PACKAGE-default}
3768 case $enableval in
3769 yes) enable_shared=yes ;;
3770 no) enable_shared=no ;;
3771 *)
3772 enable_shared=no
3773 # Look at the argument we got. We use all the common list separators.
3774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775 for pkg in $enableval; do
3776 IFS="$lt_save_ifs"
3777 if test "X$pkg" = "X$p"; then
3778 enable_shared=yes
3779 fi
3780 done
3781 IFS="$lt_save_ifs"
3782 ;;
3783 esac
3784else
3785 enable_shared=yes
3786fi;
3787
3788# Check whether --enable-static or --disable-static was given.
3789if test "${enable_static+set}" = set; then
3790 enableval="$enable_static"
3791 p=${PACKAGE-default}
3792 case $enableval in
3793 yes) enable_static=yes ;;
3794 no) enable_static=no ;;
3795 *)
3796 enable_static=no
3797 # Look at the argument we got. We use all the common list separators.
3798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3799 for pkg in $enableval; do
3800 IFS="$lt_save_ifs"
3801 if test "X$pkg" = "X$p"; then
3802 enable_static=yes
3803 fi
3804 done
3805 IFS="$lt_save_ifs"
3806 ;;
3807 esac
3808else
3809 enable_static=yes
3810fi;
3811
3812# Check whether --enable-fast-install or --disable-fast-install was given.
3813if test "${enable_fast_install+set}" = set; then
3814 enableval="$enable_fast_install"
3815 p=${PACKAGE-default}
3816 case $enableval in
3817 yes) enable_fast_install=yes ;;
3818 no) enable_fast_install=no ;;
3819 *)
3820 enable_fast_install=no
3821 # Look at the argument we got. We use all the common list separators.
3822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3823 for pkg in $enableval; do
3824 IFS="$lt_save_ifs"
3825 if test "X$pkg" = "X$p"; then
3826 enable_fast_install=yes
3827 fi
3828 done
3829 IFS="$lt_save_ifs"
3830 ;;
3831 esac
3832else
3833 enable_fast_install=yes
3834fi;
3835
3836# Make sure we can run config.sub.
3837$ac_config_sub sun4 >/dev/null 2>&1 ||
3838 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3839echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3840 { (exit 1); exit 1; }; }
3841
3842echo "$as_me:$LINENO: checking build system type" >&5
3843echo $ECHO_N "checking build system type... $ECHO_C" >&6
3844if test "${ac_cv_build+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 ac_cv_build_alias=$build_alias
3848test -z "$ac_cv_build_alias" &&
3849 ac_cv_build_alias=`$ac_config_guess`
3850test -z "$ac_cv_build_alias" &&
3851 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3852echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3853 { (exit 1); exit 1; }; }
3854ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3855 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3856echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3857 { (exit 1); exit 1; }; }
3858
3859fi
3860echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3861echo "${ECHO_T}$ac_cv_build" >&6
3862build=$ac_cv_build
3863build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3864build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3865build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3866
3867
3868echo "$as_me:$LINENO: checking host system type" >&5
3869echo $ECHO_N "checking host system type... $ECHO_C" >&6
3870if test "${ac_cv_host+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 ac_cv_host_alias=$host_alias
3874test -z "$ac_cv_host_alias" &&
3875 ac_cv_host_alias=$ac_cv_build_alias
3876ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3877 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3878echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3879 { (exit 1); exit 1; }; }
3880
3881fi
3882echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3883echo "${ECHO_T}$ac_cv_host" >&6
3884host=$ac_cv_host
3885host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3886host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3887host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3888
3889
3890echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3891echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3892if test "${lt_cv_path_SED+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895 # Loop through the user's path and test for sed and gsed.
3896# Then use that list of sed's as ones to test for truncation.
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for lt_ac_prog in sed gsed; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3905 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3906 fi
3907 done
3908 done
3909done
3910lt_ac_max=0
3911lt_ac_count=0
3912# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3913# along with /bin/sed that truncates output.
3914for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3915 test ! -f $lt_ac_sed && continue
3916 cat /dev/null > conftest.in
3917 lt_ac_count=0
3918 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3919 # Check for GNU sed and select it if it is found.
3920 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3921 lt_cv_path_SED=$lt_ac_sed
3922 break
3923 fi
3924 while true; do
3925 cat conftest.in conftest.in >conftest.tmp
3926 mv conftest.tmp conftest.in
3927 cp conftest.in conftest.nl
3928 echo >>conftest.nl
3929 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3930 cmp -s conftest.out conftest.nl || break
3931 # 10000 chars as input seems more than enough
3932 test $lt_ac_count -gt 10 && break
3933 lt_ac_count=`expr $lt_ac_count + 1`
3934 if test $lt_ac_count -gt $lt_ac_max; then
3935 lt_ac_max=$lt_ac_count
3936 lt_cv_path_SED=$lt_ac_sed
3937 fi
3938 done
3939done
3940
3941fi
3942
3943SED=$lt_cv_path_SED
3944echo "$as_me:$LINENO: result: $SED" >&5
3945echo "${ECHO_T}$SED" >&6
3946
3947echo "$as_me:$LINENO: checking for egrep" >&5
3948echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3949if test "${ac_cv_prog_egrep+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3953 then ac_cv_prog_egrep='grep -E'
3954 else ac_cv_prog_egrep='egrep'
3955 fi
3956fi
3957echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3958echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3959 EGREP=$ac_cv_prog_egrep
3960
3961
3962
3963# Check whether --with-gnu-ld or --without-gnu-ld was given.
3964if test "${with_gnu_ld+set}" = set; then
3965 withval="$with_gnu_ld"
3966 test "$withval" = no || with_gnu_ld=yes
3967else
3968 with_gnu_ld=no
3969fi;
3970ac_prog=ld
3971if test "$GCC" = yes; then
3972 # Check if gcc -print-prog-name=ld gives a path.
3973 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3974echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3975 case $host in
3976 *-*-mingw*)
3977 # gcc leaves a trailing carriage return which upsets mingw
3978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3979 *)
3980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3981 esac
3982 case $ac_prog in
3983 # Accept absolute paths.
3984 [\\/]* | ?:[\\/]*)
3985 re_direlt='/[^/][^/]*/\.\./'
3986 # Canonicalize the pathname of ld
3987 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3988 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3989 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3990 done
3991 test -z "$LD" && LD="$ac_prog"
3992 ;;
3993 "")
3994 # If it fails, then pretend we aren't using GCC.
3995 ac_prog=ld
3996 ;;
3997 *)
3998 # If it is relative, then search for the first ld in PATH.
3999 with_gnu_ld=unknown
4000 ;;
4001 esac
4002elif test "$with_gnu_ld" = yes; then
4003 echo "$as_me:$LINENO: checking for GNU ld" >&5
4004echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4005else
4006 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4007echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4008fi
4009if test "${lt_cv_path_LD+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 if test -z "$LD"; then
4013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4014 for ac_dir in $PATH; do
4015 IFS="$lt_save_ifs"
4016 test -z "$ac_dir" && ac_dir=.
4017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4018 lt_cv_path_LD="$ac_dir/$ac_prog"
4019 # Check to see if the program is GNU ld. I'd rather use --version,
4020 # but apparently some variants of GNU ld only accept -v.
4021 # Break only if it was the GNU/non-GNU ld that we prefer.
4022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4023 *GNU* | *'with BFD'*)
4024 test "$with_gnu_ld" != no && break
4025 ;;
4026 *)
4027 test "$with_gnu_ld" != yes && break
4028 ;;
4029 esac
4030 fi
4031 done
4032 IFS="$lt_save_ifs"
4033else
4034 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4035fi
4036fi
4037
4038LD="$lt_cv_path_LD"
4039if test -n "$LD"; then
4040 echo "$as_me:$LINENO: result: $LD" >&5
4041echo "${ECHO_T}$LD" >&6
4042else
4043 echo "$as_me:$LINENO: result: no" >&5
4044echo "${ECHO_T}no" >&6
4045fi
4046test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4047echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4048 { (exit 1); exit 1; }; }
4049echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4050echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4051if test "${lt_cv_prog_gnu_ld+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
4054 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4055case `$LD -v 2>&1 </dev/null` in
4056*GNU* | *'with BFD'*)
4057 lt_cv_prog_gnu_ld=yes
4058 ;;
4059*)
4060 lt_cv_prog_gnu_ld=no
4061 ;;
4062esac
4063fi
4064echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4065echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4066with_gnu_ld=$lt_cv_prog_gnu_ld
4067
4068
4069echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4070echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4071if test "${lt_cv_ld_reload_flag+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 lt_cv_ld_reload_flag='-r'
4075fi
4076echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4077echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4078reload_flag=$lt_cv_ld_reload_flag
4079case $reload_flag in
4080"" | " "*) ;;
4081*) reload_flag=" $reload_flag" ;;
4082esac
4083reload_cmds='$LD$reload_flag -o $output$reload_objs'
4084case $host_os in
4085 darwin*)
4086 if test "$GCC" = yes; then
4087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4088 else
4089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090 fi
4091 ;;
4092esac
4093
4094echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4095echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4096if test "${lt_cv_path_NM+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 if test -n "$NM"; then
4100 # Let the user override the test.
4101 lt_cv_path_NM="$NM"
4102else
4103 lt_nm_to_check="${ac_tool_prefix}nm"
4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4105 lt_nm_to_check="$lt_nm_to_check nm"
4106 fi
4107 for lt_tmp_nm in $lt_nm_to_check; do
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4110 IFS="$lt_save_ifs"
4111 test -z "$ac_dir" && ac_dir=.
4112 tmp_nm="$ac_dir/$lt_tmp_nm"
4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4114 # Check to see if the nm accepts a BSD-compat flag.
4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116 # nm: unknown option "B" ignored
4117 # Tru64's nm complains that /dev/null is an invalid object file
4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119 */dev/null* | *'Invalid file or object type'*)
4120 lt_cv_path_NM="$tmp_nm -B"
4121 break
4122 ;;
4123 *)
4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4125 */dev/null*)
4126 lt_cv_path_NM="$tmp_nm -p"
4127 break
4128 ;;
4129 *)
4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131 continue # so that we can try to find one that supports BSD flags
4132 ;;
4133 esac
4134 ;;
4135 esac
4136 fi
4137 done
4138 IFS="$lt_save_ifs"
4139 done
4140 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4141fi
4142fi
4143echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4144echo "${ECHO_T}$lt_cv_path_NM" >&6
4145NM="$lt_cv_path_NM"
4146
4147echo "$as_me:$LINENO: checking whether ln -s works" >&5
4148echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4149LN_S=$as_ln_s
4150if test "$LN_S" = "ln -s"; then
4151 echo "$as_me:$LINENO: result: yes" >&5
4152echo "${ECHO_T}yes" >&6
4153else
4154 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4155echo "${ECHO_T}no, using $LN_S" >&6
4156fi
4157
4158echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4159echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4160if test "${lt_cv_deplibs_check_method+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 lt_cv_file_magic_cmd='$MAGIC_CMD'
4164lt_cv_file_magic_test_file=
4165lt_cv_deplibs_check_method='unknown'
4166# Need to set the preceding variable on all platforms that support
4167# interlibrary dependencies.
4168# 'none' -- dependencies not supported.
4169# `unknown' -- same as none, but documents that we really don't know.
4170# 'pass_all' -- all dependencies passed with no checks.
4171# 'test_compile' -- check by making test program.
4172# 'file_magic [[regex]]' -- check by looking for files in library path
4173# which responds to the $file_magic_cmd with a given extended regex.
4174# If you have `file' or equivalent on your system and you're not sure
4175# whether `pass_all' will *always* work, you probably want this one.
4176
4177case $host_os in
4178aix4* | aix5*)
4179 lt_cv_deplibs_check_method=pass_all
4180 ;;
4181
4182beos*)
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
4185
4186bsdi[45]*)
4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4188 lt_cv_file_magic_cmd='/usr/bin/file -L'
4189 lt_cv_file_magic_test_file=/shlib/libc.so
4190 ;;
4191
4192cygwin*)
4193 # func_win32_libid is a shell function defined in ltmain.sh
4194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4195 lt_cv_file_magic_cmd='func_win32_libid'
4196 ;;
4197
4198mingw* | pw32*)
4199 # Base MSYS/MinGW do not provide the 'file' command needed by
4200 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4201 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4202 lt_cv_file_magic_cmd='$OBJDUMP -f'
4203 ;;
4204
4205darwin* | rhapsody*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
4209freebsd* | kfreebsd*-gnu | dragonfly*)
4210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4211 case $host_cpu in
4212 i*86 )
4213 # Not sure whether the presence of OpenBSD here was a mistake.
4214 # Let's accept both of them until this is cleared up.
4215 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4216 lt_cv_file_magic_cmd=/usr/bin/file
4217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4218 ;;
4219 esac
4220 else
4221 lt_cv_deplibs_check_method=pass_all
4222 fi
4223 ;;
4224
4225gnu*)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228
4229hpux10.20* | hpux11*)
4230 lt_cv_file_magic_cmd=/usr/bin/file
4231 case $host_cpu in
4232 ia64*)
4233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4235 ;;
4236 hppa*64*)
4237 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]'
4238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4239 ;;
4240 *)
4241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4242 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4243 ;;
4244 esac
4245 ;;
4246
4247interix3*)
4248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4250 ;;
4251
4252irix5* | irix6* | nonstopux*)
4253 case $LD in
4254 *-32|*"-32 ") libmagic=32-bit;;
4255 *-n32|*"-n32 ") libmagic=N32;;
4256 *-64|*"-64 ") libmagic=64-bit;;
4257 *) libmagic=never-match;;
4258 esac
4259 lt_cv_deplibs_check_method=pass_all
4260 ;;
4261
4262# This must be Linux ELF.
4263linux*)
4264 lt_cv_deplibs_check_method=pass_all
4265 ;;
4266
4267netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4270 else
4271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4272 fi
4273 ;;
4274
4275newos6*)
4276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4277 lt_cv_file_magic_cmd=/usr/bin/file
4278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4279 ;;
4280
4281nto-qnx*)
4282 lt_cv_deplibs_check_method=unknown
4283 ;;
4284
4285openbsd*)
4286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4288 else
4289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4290 fi
4291 ;;
4292
4293osf3* | osf4* | osf5*)
4294 lt_cv_deplibs_check_method=pass_all
4295 ;;
4296
4297solaris*)
4298 lt_cv_deplibs_check_method=pass_all
4299 ;;
4300
4301sysv4 | sysv4.3*)
4302 case $host_vendor in
4303 motorola)
4304 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]'
4305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4306 ;;
4307 ncr)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310 sequent)
4311 lt_cv_file_magic_cmd='/bin/file'
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4313 ;;
4314 sni)
4315 lt_cv_file_magic_cmd='/bin/file'
4316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4317 lt_cv_file_magic_test_file=/lib/libc.so
4318 ;;
4319 siemens)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322 pc)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325 esac
4326 ;;
4327
4328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331esac
4332
4333fi
4334echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4335echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4336file_magic_cmd=$lt_cv_file_magic_cmd
4337deplibs_check_method=$lt_cv_deplibs_check_method
4338test -z "$deplibs_check_method" && deplibs_check_method=unknown
4339
4340
4341
4342
4343# If no C compiler was specified, use CC.
4344LTCC=${LTCC-"$CC"}
4345
4346# If no C compiler flags were specified, use CFLAGS.
4347LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4348
4349# Allow CC to be a program name with arguments.
4350compiler=$CC
4351
4352
4353# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4354if test "${enable_libtool_lock+set}" = set; then
4355 enableval="$enable_libtool_lock"
4356
4357fi;
4358test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4359
4360# Some flags need to be propagated to the compiler or linker for good
4361# libtool support.
4362case $host in
4363ia64-*-hpux*)
4364 # Find out which ABI we are using.
4365 echo 'int i;' > conftest.$ac_ext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; then
4371 case `/usr/bin/file conftest.$ac_objext` in
4372 *ELF-32*)
4373 HPUX_IA64_MODE="32"
4374 ;;
4375 *ELF-64*)
4376 HPUX_IA64_MODE="64"
4377 ;;
4378 esac
4379 fi
4380 rm -rf conftest*
4381 ;;
4382*-*-irix6*)
4383 # Find out which ABI we are using.
4384 echo '#line 4384 "configure"' > conftest.$ac_ext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; then
4390 if test "$lt_cv_prog_gnu_ld" = yes; then
4391 case `/usr/bin/file conftest.$ac_objext` in
4392 *32-bit*)
4393 LD="${LD-ld} -melf32bsmip"
4394 ;;
4395 *N32*)
4396 LD="${LD-ld} -melf32bmipn32"
4397 ;;
4398 *64-bit*)
4399 LD="${LD-ld} -melf64bmip"
4400 ;;
4401 esac
4402 else
4403 case `/usr/bin/file conftest.$ac_objext` in
4404 *32-bit*)
4405 LD="${LD-ld} -32"
4406 ;;
4407 *N32*)
4408 LD="${LD-ld} -n32"
4409 ;;
4410 *64-bit*)
4411 LD="${LD-ld} -64"
4412 ;;
4413 esac
4414 fi
4415 fi
4416 rm -rf conftest*
4417 ;;
4418
4419x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4420 # Find out which ABI we are using.
4421 echo 'int i;' > conftest.$ac_ext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; then
4427 case `/usr/bin/file conftest.o` in
4428 *32-bit*)
4429 case $host in
4430 x86_64-*linux*)
4431 LD="${LD-ld} -m elf_i386"
4432 ;;
4433 ppc64-*linux*|powerpc64-*linux*)
4434 LD="${LD-ld} -m elf32ppclinux"
4435 ;;
4436 s390x-*linux*)
4437 LD="${LD-ld} -m elf_s390"
4438 ;;
4439 sparc64-*linux*)
4440 LD="${LD-ld} -m elf32_sparc"
4441 ;;
4442 esac
4443 ;;
4444 *64-bit*)
4445 case $host in
4446 x86_64-*linux*)
4447 LD="${LD-ld} -m elf_x86_64"
4448 ;;
4449 ppc*-*linux*|powerpc*-*linux*)
4450 LD="${LD-ld} -m elf64ppc"
4451 ;;
4452 s390*-*linux*)
4453 LD="${LD-ld} -m elf64_s390"
4454 ;;
4455 sparc*-*linux*)
4456 LD="${LD-ld} -m elf64_sparc"
4457 ;;
4458 esac
4459 ;;
4460 esac
4461 fi
4462 rm -rf conftest*
4463 ;;
4464
4465*-*-sco3.2v5*)
4466 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4467 SAVE_CFLAGS="$CFLAGS"
4468 CFLAGS="$CFLAGS -belf"
4469 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4470echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4471if test "${lt_cv_cc_needs_belf+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 ac_ext=c
4475ac_cpp='$CPP $CPPFLAGS'
4476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479
4480 cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486
4487int
4488main ()
4489{
4490
4491 ;
4492 return 0;
4493}
4494_ACEOF
4495rm -f conftest.$ac_objext conftest$ac_exeext
4496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4497 (eval $ac_link) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest$ac_exeext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 lt_cv_cc_needs_belf=yes
4517else
4518 echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
4520
4521lt_cv_cc_needs_belf=no
4522fi
4523rm -f conftest.err conftest.$ac_objext \
4524 conftest$ac_exeext conftest.$ac_ext
4525 ac_ext=c
4526ac_cpp='$CPP $CPPFLAGS'
4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531fi
4532echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4533echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4536 CFLAGS="$SAVE_CFLAGS"
4537 fi
4538 ;;
4539sparc*-*solaris*)
4540 # Find out which ABI we are using.
4541 echo 'int i;' > conftest.$ac_ext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; then
4547 case `/usr/bin/file conftest.o` in
4548 *64-bit*)
4549 case $lt_cv_prog_gnu_ld in
4550 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4551 *) LD="${LD-ld} -64" ;;
4552 esac
4553 ;;
4554 esac
4555 fi
4556 rm -rf conftest*
4557 ;;
4558
4559
4560esac
4561
4562need_locks="$enable_libtool_lock"
4563
4564
4565
4566echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4567echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4568if test "${ac_cv_header_stdc+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h. */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h. */
4577#include <stdlib.h>
4578#include <stdarg.h>
4579#include <string.h>
4580#include <float.h>
4581
4582int
4583main ()
4584{
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_header_stdc=yes
4612else
4613 echo "$as_me: failed program was:" >&5
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616ac_cv_header_stdc=no
4617fi
4618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619
4620if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
4628#include <string.h>
4629
4630_ACEOF
4631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "memchr" >/dev/null 2>&1; then
4633 :
4634else
4635 ac_cv_header_stdc=no
4636fi
4637rm -f conftest*
4638
4639fi
4640
4641if test $ac_cv_header_stdc = yes; then
4642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4643 cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
4649#include <stdlib.h>
4650
4651_ACEOF
4652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "free" >/dev/null 2>&1; then
4654 :
4655else
4656 ac_cv_header_stdc=no
4657fi
4658rm -f conftest*
4659
4660fi
4661
4662if test $ac_cv_header_stdc = yes; then
4663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4664 if test "$cross_compiling" = yes; then
4665 :
4666else
4667 cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h. */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h. */
4673#include <ctype.h>
4674#if ((' ' & 0x0FF) == 0x020)
4675# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4676# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4677#else
4678# define ISLOWER(c) \
4679 (('a' <= (c) && (c) <= 'i') \
4680 || ('j' <= (c) && (c) <= 'r') \
4681 || ('s' <= (c) && (c) <= 'z'))
4682# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4683#endif
4684
4685#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4686int
4687main ()
4688{
4689 int i;
4690 for (i = 0; i < 256; i++)
4691 if (XOR (islower (i), ISLOWER (i))
4692 || toupper (i) != TOUPPER (i))
4693 exit(2);
4694 exit (0);
4695}
4696_ACEOF
4697rm -f conftest$ac_exeext
4698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4699 (eval $ac_link) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 :
4709else
4710 echo "$as_me: program exited with status $ac_status" >&5
4711echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714( exit $ac_status )
4715ac_cv_header_stdc=no
4716fi
4717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4718fi
4719fi
4720fi
4721echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4722echo "${ECHO_T}$ac_cv_header_stdc" >&6
4723if test $ac_cv_header_stdc = yes; then
4724
4725cat >>confdefs.h <<\_ACEOF
4726#define STDC_HEADERS 1
4727_ACEOF
4728
4729fi
4730
4731# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4742 inttypes.h stdint.h unistd.h
4743do
4744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4745echo "$as_me:$LINENO: checking for $ac_header" >&5
4746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4747if eval "test \"\${$as_ac_Header+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$ac_includes_default
4757
4758#include <$ac_header>
4759_ACEOF
4760rm -f conftest.$ac_objext
4761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4781 eval "$as_ac_Header=yes"
4782else
4783 echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
4786eval "$as_ac_Header=no"
4787fi
4788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789fi
4790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792if test `eval echo '${'$as_ac_Header'}'` = yes; then
4793 cat >>confdefs.h <<_ACEOF
4794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795_ACEOF
4796
4797fi
4798
4799done
4800
4801
4802
4803for ac_header in dlfcn.h
4804do
4805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo "$as_me:$LINENO: checking for $ac_header" >&5
4808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4809if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811fi
4812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4814else
4815 # Is the header compilable?
4816echo "$as_me:$LINENO: checking $ac_header usability" >&5
4817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4818cat >conftest.$ac_ext <<_ACEOF
4819/* confdefs.h. */
4820_ACEOF
4821cat confdefs.h >>conftest.$ac_ext
4822cat >>conftest.$ac_ext <<_ACEOF
4823/* end confdefs.h. */
4824$ac_includes_default
4825#include <$ac_header>
4826_ACEOF
4827rm -f conftest.$ac_objext
4828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; } &&
4842 { ac_try='test -s conftest.$ac_objext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 ac_header_compiler=yes
4849else
4850 echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853ac_header_compiler=no
4854fi
4855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4857echo "${ECHO_T}$ac_header_compiler" >&6
4858
4859# Is the header present?
4860echo "$as_me:$LINENO: checking $ac_header presence" >&5
4861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4862cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h. */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h. */
4868#include <$ac_header>
4869_ACEOF
4870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null; then
4878 if test -s conftest.err; then
4879 ac_cpp_err=$ac_c_preproc_warn_flag
4880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881 else
4882 ac_cpp_err=
4883 fi
4884else
4885 ac_cpp_err=yes
4886fi
4887if test -z "$ac_cpp_err"; then
4888 ac_header_preproc=yes
4889else
4890 echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ac_header_preproc=no
4894fi
4895rm -f conftest.err conftest.$ac_ext
4896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4897echo "${ECHO_T}$ac_header_preproc" >&6
4898
4899# So? What about this header?
4900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4901 yes:no: )
4902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4906 ac_header_preproc=yes
4907 ;;
4908 no:yes:* )
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4921 (
4922 cat <<\_ASBOX
4923## ------------------------------------ ##
4924## Report this to opensource@google.com ##
4925## ------------------------------------ ##
4926_ASBOX
4927 ) |
4928 sed "s/^/$as_me: WARNING: /" >&2
4929 ;;
4930esac
4931echo "$as_me:$LINENO: checking for $ac_header" >&5
4932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4933if eval "test \"\${$as_ac_Header+set}\" = set"; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936 eval "$as_ac_Header=\$ac_header_preproc"
4937fi
4938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940
4941fi
4942if test `eval echo '${'$as_ac_Header'}'` = yes; then
4943 cat >>confdefs.h <<_ACEOF
4944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4945_ACEOF
4946
4947fi
4948
4949done
4950
4951
4952
4953if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4954 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4955 (test "X$CXX" != "Xg++"))) ; then
4956 ac_ext=cc
4957ac_cpp='$CXXCPP $CPPFLAGS'
4958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4962echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4963if test -z "$CXXCPP"; then
4964 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967 # Double quotes because CXXCPP needs to be expanded
4968 for CXXCPP in "$CXX -E" "/lib/cpp"
4969 do
4970 ac_preproc_ok=false
4971for ac_cxx_preproc_warn_flag in '' yes
4972do
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#ifdef __STDC__
4986# include <limits.h>
4987#else
4988# include <assert.h>
4989#endif
4990 Syntax error
4991_ACEOF
4992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null; then
5000 if test -s conftest.err; then
5001 ac_cpp_err=$ac_cxx_preproc_warn_flag
5002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5003 else
5004 ac_cpp_err=
5005 fi
5006else
5007 ac_cpp_err=yes
5008fi
5009if test -z "$ac_cpp_err"; then
5010 :
5011else
5012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 # Broken: fails on valid input.
5016continue
5017fi
5018rm -f conftest.err conftest.$ac_ext
5019
5020 # OK, works on sane cases. Now check whether non-existent headers
5021 # can be detected and how.
5022 cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h. */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h. */
5028#include <ac_nonexistent.h>
5029_ACEOF
5030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null; then
5038 if test -s conftest.err; then
5039 ac_cpp_err=$ac_cxx_preproc_warn_flag
5040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5041 else
5042 ac_cpp_err=
5043 fi
5044else
5045 ac_cpp_err=yes
5046fi
5047if test -z "$ac_cpp_err"; then
5048 # Broken: success on invalid input.
5049continue
5050else
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 # Passes both tests.
5055ac_preproc_ok=:
5056break
5057fi
5058rm -f conftest.err conftest.$ac_ext
5059
5060done
5061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062rm -f conftest.err conftest.$ac_ext
5063if $ac_preproc_ok; then
5064 break
5065fi
5066
5067 done
5068 ac_cv_prog_CXXCPP=$CXXCPP
5069
5070fi
5071 CXXCPP=$ac_cv_prog_CXXCPP
5072else
5073 ac_cv_prog_CXXCPP=$CXXCPP
5074fi
5075echo "$as_me:$LINENO: result: $CXXCPP" >&5
5076echo "${ECHO_T}$CXXCPP" >&6
5077ac_preproc_ok=false
5078for ac_cxx_preproc_warn_flag in '' yes
5079do
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
5086 cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
5092#ifdef __STDC__
5093# include <limits.h>
5094#else
5095# include <assert.h>
5096#endif
5097 Syntax error
5098_ACEOF
5099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_cxx_preproc_warn_flag
5109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5110 else
5111 ac_cpp_err=
5112 fi
5113else
5114 ac_cpp_err=yes
5115fi
5116if test -z "$ac_cpp_err"; then
5117 :
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122 # Broken: fails on valid input.
5123continue
5124fi
5125rm -f conftest.err conftest.$ac_ext
5126
5127 # OK, works on sane cases. Now check whether non-existent headers
5128 # can be detected and how.
5129 cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h. */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h. */
5135#include <ac_nonexistent.h>
5136_ACEOF
5137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null; then
5145 if test -s conftest.err; then
5146 ac_cpp_err=$ac_cxx_preproc_warn_flag
5147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5148 else
5149 ac_cpp_err=
5150 fi
5151else
5152 ac_cpp_err=yes
5153fi
5154if test -z "$ac_cpp_err"; then
5155 # Broken: success on invalid input.
5156continue
5157else
5158 echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161 # Passes both tests.
5162ac_preproc_ok=:
5163break
5164fi
5165rm -f conftest.err conftest.$ac_ext
5166
5167done
5168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5169rm -f conftest.err conftest.$ac_ext
5170if $ac_preproc_ok; then
5171 :
5172else
5173 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5174See \`config.log' for more details." >&5
5175echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5176See \`config.log' for more details." >&2;}
5177 { (exit 1); exit 1; }; }
5178fi
5179
5180ac_ext=cc
5181ac_cpp='$CXXCPP $CPPFLAGS'
5182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5185
5186fi
5187
5188
5189ac_ext=f
5190ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5191ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5193if test -n "$ac_tool_prefix"; then
5194 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5195 do
5196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198echo "$as_me:$LINENO: checking for $ac_word" >&5
5199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5200if test "${ac_cv_prog_F77+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203 if test -n "$F77"; then
5204 ac_cv_prog_F77="$F77" # Let the user override the test.
5205else
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217done
5218done
5219
5220fi
5221fi
5222F77=$ac_cv_prog_F77
5223if test -n "$F77"; then
5224 echo "$as_me:$LINENO: result: $F77" >&5
5225echo "${ECHO_T}$F77" >&6
5226else
5227 echo "$as_me:$LINENO: result: no" >&5
5228echo "${ECHO_T}no" >&6
5229fi
5230
5231 test -n "$F77" && break
5232 done
5233fi
5234if test -z "$F77"; then
5235 ac_ct_F77=$F77
5236 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5237do
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239set dummy $ac_prog; ac_word=$2
5240echo "$as_me:$LINENO: checking for $ac_word" >&5
5241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5242if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245 if test -n "$ac_ct_F77"; then
5246 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_ac_ct_F77="$ac_prog"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259done
5260done
5261
5262fi
5263fi
5264ac_ct_F77=$ac_cv_prog_ac_ct_F77
5265if test -n "$ac_ct_F77"; then
5266 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5267echo "${ECHO_T}$ac_ct_F77" >&6
5268else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271fi
5272
5273 test -n "$ac_ct_F77" && break
5274done
5275
5276 F77=$ac_ct_F77
5277fi
5278
5279
5280# Provide some information about the compiler.
5281echo "$as_me:5281:" \
5282 "checking for Fortran 77 compiler version" >&5
5283ac_compiler=`set X $ac_compile; echo $2`
5284{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5285 (eval $ac_compiler --version </dev/null >&5) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }
5289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5290 (eval $ac_compiler -v </dev/null >&5) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5295 (eval $ac_compiler -V </dev/null >&5) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }
5299rm -f a.out
5300
5301# If we don't use `.F' as extension, the preprocessor is not run on the
5302# input file. (Note that this only needs to work for GNU compilers.)
5303ac_save_ext=$ac_ext
5304ac_ext=F
5305echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5306echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5307if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 cat >conftest.$ac_ext <<_ACEOF
5311 program main
5312#ifndef __GNUC__
5313 choke me
5314#endif
5315
5316 end
5317_ACEOF
5318rm -f conftest.$ac_objext
5319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320 (eval $ac_compile) 2>conftest.er1
5321 ac_status=$?
5322 grep -v '^ *+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_compiler_gnu=yes
5340else
5341 echo "$as_me: failed program was:" >&5
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
5344ac_compiler_gnu=no
5345fi
5346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5348
5349fi
5350echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5351echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5352ac_ext=$ac_save_ext
5353ac_test_FFLAGS=${FFLAGS+set}
5354ac_save_FFLAGS=$FFLAGS
5355FFLAGS=
5356echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5357echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5358if test "${ac_cv_prog_f77_g+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 FFLAGS=-g
5362cat >conftest.$ac_ext <<_ACEOF
5363 program main
5364
5365 end
5366_ACEOF
5367rm -f conftest.$ac_objext
5368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; } &&
5382 { ac_try='test -s conftest.$ac_objext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_prog_f77_g=yes
5389else
5390 echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393ac_cv_prog_f77_g=no
5394fi
5395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5396
5397fi
5398echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5399echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5400if test "$ac_test_FFLAGS" = set; then
5401 FFLAGS=$ac_save_FFLAGS
5402elif test $ac_cv_prog_f77_g = yes; then
5403 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5404 FFLAGS="-g -O2"
5405 else
5406 FFLAGS="-g"
5407 fi
5408else
5409 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5410 FFLAGS="-O2"
5411 else
5412 FFLAGS=
5413 fi
5414fi
5415
5416G77=`test $ac_compiler_gnu = yes && echo yes`
5417ac_ext=c
5418ac_cpp='$CPP $CPPFLAGS'
5419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421ac_compiler_gnu=$ac_cv_c_compiler_gnu
5422
5423
5424
5425# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5426
5427# find the maximum length of command line arguments
5428echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5429echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5430if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433 i=0
5434 teststring="ABCD"
5435
5436 case $build_os in
5437 msdosdjgpp*)
5438 # On DJGPP, this test can blow up pretty badly due to problems in libc
5439 # (any single argument exceeding 2000 bytes causes a buffer overrun
5440 # during glob expansion). Even if it were fixed, the result of this
5441 # check would be larger than it should be.
5442 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5443 ;;
5444
5445 gnu*)
5446 # Under GNU Hurd, this test is not required because there is
5447 # no limit to the length of command line arguments.
5448 # Libtool will interpret -1 as no limit whatsoever
5449 lt_cv_sys_max_cmd_len=-1;
5450 ;;
5451
5452 cygwin* | mingw*)
5453 # On Win9x/ME, this test blows up -- it succeeds, but takes
5454 # about 5 minutes as the teststring grows exponentially.
5455 # Worse, since 9x/ME are not pre-emptively multitasking,
5456 # you end up with a "frozen" computer, even though with patience
5457 # the test eventually succeeds (with a max line length of 256k).
5458 # Instead, let's just punt: use the minimum linelength reported by
5459 # all of the supported platforms: 8192 (on NT/2K/XP).
5460 lt_cv_sys_max_cmd_len=8192;
5461 ;;
5462
5463 amigaos*)
5464 # On AmigaOS with pdksh, this test takes hours, literally.
5465 # So we just punt and use a minimum line length of 8192.
5466 lt_cv_sys_max_cmd_len=8192;
5467 ;;
5468
5469 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5470 # This has been around since 386BSD, at least. Likely further.
5471 if test -x /sbin/sysctl; then
5472 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5473 elif test -x /usr/sbin/sysctl; then
5474 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5475 else
5476 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5477 fi
5478 # And add a safety zone
5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5481 ;;
5482
5483 interix*)
5484 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5485 lt_cv_sys_max_cmd_len=196608
5486 ;;
5487
5488 osf*)
5489 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5490 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5491 # nice to cause kernel panics so lets avoid the loop below.
5492 # First set a reasonable default.
5493 lt_cv_sys_max_cmd_len=16384
5494 #
5495 if test -x /sbin/sysconfig; then
5496 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5497 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5498 esac
5499 fi
5500 ;;
5501 sco3.2v5*)
5502 lt_cv_sys_max_cmd_len=102400
5503 ;;
5504 sysv5* | sco5v6* | sysv4.2uw2*)
5505 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5506 if test -n "$kargmax"; then
5507 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5508 else
5509 lt_cv_sys_max_cmd_len=32768
5510 fi
5511 ;;
5512 *)
5513 # If test is not a shell built-in, we'll probably end up computing a
5514 # maximum length that is only half of the actual maximum length, but
5515 # we can't tell.
5516 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5517 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5518 = "XX$teststring") >/dev/null 2>&1 &&
5519 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5520 lt_cv_sys_max_cmd_len=$new_result &&
5521 test $i != 17 # 1/2 MB should be enough
5522 do
5523 i=`expr $i + 1`
5524 teststring=$teststring$teststring
5525 done
5526 teststring=
5527 # Add a significant safety factor because C++ compilers can tack on massive
5528 # amounts of additional arguments before passing them to the linker.
5529 # It appears as though 1/2 is a usable value.
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5531 ;;
5532 esac
5533
5534fi
5535
5536if test -n $lt_cv_sys_max_cmd_len ; then
5537 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5538echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5539else
5540 echo "$as_me:$LINENO: result: none" >&5
5541echo "${ECHO_T}none" >&6
5542fi
5543
5544
5545
5546
5547# Check for command to grab the raw symbol name followed by C symbol from nm.
5548echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5549echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5550if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553
5554# These are sane defaults that work on at least a few old systems.
5555# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5556
5557# Character class describing NM global symbol codes.
5558symcode='[BCDEGRST]'
5559
5560# Regexp to match symbols that can be accessed directly from C.
5561sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5562
5563# Transform an extracted symbol line into a proper C declaration
5564lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5565
5566# Transform an extracted symbol line into symbol name and symbol address
5567lt_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'"
5568
5569# Define system-specific variables.
5570case $host_os in
5571aix*)
5572 symcode='[BCDT]'
5573 ;;
5574cygwin* | mingw* | pw32*)
5575 symcode='[ABCDGISTW]'
5576 ;;
5577hpux*) # Its linker distinguishes data from code symbols
5578 if test "$host_cpu" = ia64; then
5579 symcode='[ABCDEGRST]'
5580 fi
5581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5582 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'"
5583 ;;
5584linux*)
5585 if test "$host_cpu" = ia64; then
5586 symcode='[ABCDGIRSTW]'
5587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5588 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'"
5589 fi
5590 ;;
5591irix* | nonstopux*)
5592 symcode='[BCDEGRST]'
5593 ;;
5594osf*)
5595 symcode='[BCDEGQRST]'
5596 ;;
5597solaris*)
5598 symcode='[BDRT]'
5599 ;;
5600sco3.2v5*)
5601 symcode='[DT]'
5602 ;;
5603sysv4.2uw2*)
5604 symcode='[DT]'
5605 ;;
5606sysv5* | sco5v6* | unixware* | OpenUNIX*)
5607 symcode='[ABDT]'
5608 ;;
5609sysv4)
5610 symcode='[DFNSTU]'
5611 ;;
5612esac
5613
5614# Handle CRLF in mingw tool chain
5615opt_cr=
5616case $build_os in
5617mingw*)
5618 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5619 ;;
5620esac
5621
5622# If we're using GNU nm, then use its standard symbol codes.
5623case `$NM -V 2>&1` in
5624*GNU* | *'with BFD'*)
5625 symcode='[ABCDGIRSTW]' ;;
5626esac
5627
5628# Try without a prefix undercore, then with it.
5629for ac_symprfx in "" "_"; do
5630
5631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5632 symxfrm="\\1 $ac_symprfx\\2 \\2"
5633
5634 # Write the raw and C identifiers.
5635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5636
5637 # Check to see that the pipe works correctly.
5638 pipe_works=no
5639
5640 rm -f conftest*
5641 cat > conftest.$ac_ext <<EOF
5642#ifdef __cplusplus
5643extern "C" {
5644#endif
5645char nm_test_var;
5646void nm_test_func(){}
5647#ifdef __cplusplus
5648}
5649#endif
5650int main(){nm_test_var='a';nm_test_func();return(0);}
5651EOF
5652
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; then
5658 # Now try to grab the symbols.
5659 nlist=conftest.nm
5660 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5661 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && test -s "$nlist"; then
5665 # Try sorting and uniquifying the output.
5666 if sort "$nlist" | uniq > "$nlist"T; then
5667 mv -f "$nlist"T "$nlist"
5668 else
5669 rm -f "$nlist"T
5670 fi
5671
5672 # Make sure that we snagged all the symbols we need.
5673 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5674 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5675 cat <<EOF > conftest.$ac_ext
5676#ifdef __cplusplus
5677extern "C" {
5678#endif
5679
5680EOF
5681 # Now generate the symbol file.
5682 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5683
5684 cat <<EOF >> conftest.$ac_ext
5685#if defined (__STDC__) && __STDC__
5686# define lt_ptr_t void *
5687#else
5688# define lt_ptr_t char *
5689# define const
5690#endif
5691
5692/* The mapping between symbol names and symbols. */
5693const struct {
5694 const char *name;
5695 lt_ptr_t address;
5696}
5697lt_preloaded_symbols[] =
5698{
5699EOF
5700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5701 cat <<\EOF >> conftest.$ac_ext
5702 {0, (lt_ptr_t) 0}
5703};
5704
5705#ifdef __cplusplus
5706}
5707#endif
5708EOF
5709 # Now try linking the two files.
5710 mv conftest.$ac_objext conftstm.$ac_objext
5711 lt_save_LIBS="$LIBS"
5712 lt_save_CFLAGS="$CFLAGS"
5713 LIBS="conftstm.$ac_objext"
5714 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5720 pipe_works=yes
5721 fi
5722 LIBS="$lt_save_LIBS"
5723 CFLAGS="$lt_save_CFLAGS"
5724 else
5725 echo "cannot find nm_test_func in $nlist" >&5
5726 fi
5727 else
5728 echo "cannot find nm_test_var in $nlist" >&5
5729 fi
5730 else
5731 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5732 fi
5733 else
5734 echo "$progname: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5736 fi
5737 rm -f conftest* conftst*
5738
5739 # Do not use the global_symbol_pipe unless it works.
5740 if test "$pipe_works" = yes; then
5741 break
5742 else
5743 lt_cv_sys_global_symbol_pipe=
5744 fi
5745done
5746
5747fi
5748
5749if test -z "$lt_cv_sys_global_symbol_pipe"; then
5750 lt_cv_sys_global_symbol_to_cdecl=
5751fi
5752if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5753 echo "$as_me:$LINENO: result: failed" >&5
5754echo "${ECHO_T}failed" >&6
5755else
5756 echo "$as_me:$LINENO: result: ok" >&5
5757echo "${ECHO_T}ok" >&6
5758fi
5759
5760echo "$as_me:$LINENO: checking for objdir" >&5
5761echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5762if test "${lt_cv_objdir+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765 rm -f .libs 2>/dev/null
5766mkdir .libs 2>/dev/null
5767if test -d .libs; then
5768 lt_cv_objdir=.libs
5769else
5770 # MS-DOS does not allow filenames that begin with a dot.
5771 lt_cv_objdir=_libs
5772fi
5773rmdir .libs 2>/dev/null
5774fi
5775echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5776echo "${ECHO_T}$lt_cv_objdir" >&6
5777objdir=$lt_cv_objdir
5778
5779
5780
5781
5782
5783case $host_os in
5784aix3*)
5785 # AIX sometimes has problems with the GCC collect2 program. For some
5786 # reason, if we set the COLLECT_NAMES environment variable, the problems
5787 # vanish in a puff of smoke.
5788 if test "X${COLLECT_NAMES+set}" != Xset; then
5789 COLLECT_NAMES=
5790 export COLLECT_NAMES
5791 fi
5792 ;;
5793esac
5794
5795# Sed substitution that helps us do robust quoting. It backslashifies
5796# metacharacters that are still active within double-quoted strings.
5797Xsed='sed -e 1s/^X//'
5798sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5799
5800# Same as above, but do not quote variable references.
5801double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5802
5803# Sed substitution to delay expansion of an escaped shell variable in a
5804# double_quote_subst'ed string.
5805delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5806
5807# Sed substitution to avoid accidental globbing in evaled expressions
5808no_glob_subst='s/\*/\\\*/g'
5809
5810# Constants:
5811rm="rm -f"
5812
5813# Global variables:
5814default_ofile=libtool
5815can_build_shared=yes
5816
5817# All known linkers require a `.a' archive for static linking (except MSVC,
5818# which needs '.lib').
5819libext=a
5820ltmain="$ac_aux_dir/ltmain.sh"
5821ofile="$default_ofile"
5822with_gnu_ld="$lt_cv_prog_gnu_ld"
5823
5824if test -n "$ac_tool_prefix"; then
5825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5826set dummy ${ac_tool_prefix}ar; ac_word=$2
5827echo "$as_me:$LINENO: checking for $ac_word" >&5
5828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829if test "${ac_cv_prog_AR+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832 if test -n "$AR"; then
5833 ac_cv_prog_AR="$AR" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_AR="${ac_tool_prefix}ar"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846done
5847done
5848
5849fi
5850fi
5851AR=$ac_cv_prog_AR
5852if test -n "$AR"; then
5853 echo "$as_me:$LINENO: result: $AR" >&5
5854echo "${ECHO_T}$AR" >&6
5855else
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
5858fi
5859
5860fi
5861if test -z "$ac_cv_prog_AR"; then
5862 ac_ct_AR=$AR
5863 # Extract the first word of "ar", so it can be a program name with args.
5864set dummy ar; ac_word=$2
5865echo "$as_me:$LINENO: checking for $ac_word" >&5
5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870 if test -n "$ac_ct_AR"; then
5871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_AR="ar"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885done
5886
5887 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5888fi
5889fi
5890ac_ct_AR=$ac_cv_prog_ac_ct_AR
5891if test -n "$ac_ct_AR"; then
5892 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5893echo "${ECHO_T}$ac_ct_AR" >&6
5894else
5895 echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
5897fi
5898
5899 AR=$ac_ct_AR
5900else
5901 AR="$ac_cv_prog_AR"
5902fi
5903
5904if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5906set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5907echo "$as_me:$LINENO: checking for $ac_word" >&5
5908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909if test "${ac_cv_prog_RANLIB+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912 if test -n "$RANLIB"; then
5913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926done
5927done
5928
5929fi
5930fi
5931RANLIB=$ac_cv_prog_RANLIB
5932if test -n "$RANLIB"; then
5933 echo "$as_me:$LINENO: result: $RANLIB" >&5
5934echo "${ECHO_T}$RANLIB" >&6
5935else
5936 echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6
5938fi
5939
5940fi
5941if test -z "$ac_cv_prog_RANLIB"; then
5942 ac_ct_RANLIB=$RANLIB
5943 # Extract the first word of "ranlib", so it can be a program name with args.
5944set dummy ranlib; ac_word=$2
5945echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5947if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 if test -n "$ac_ct_RANLIB"; then
5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_RANLIB="ranlib"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965done
5966
5967 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5968fi
5969fi
5970ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5971if test -n "$ac_ct_RANLIB"; then
5972 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5973echo "${ECHO_T}$ac_ct_RANLIB" >&6
5974else
5975 echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6
5977fi
5978
5979 RANLIB=$ac_ct_RANLIB
5980else
5981 RANLIB="$ac_cv_prog_RANLIB"
5982fi
5983
5984if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5986set dummy ${ac_tool_prefix}strip; ac_word=$2
5987echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989if test "${ac_cv_prog_STRIP+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 if test -n "$STRIP"; then
5993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007done
6008
6009fi
6010fi
6011STRIP=$ac_cv_prog_STRIP
6012if test -n "$STRIP"; then
6013 echo "$as_me:$LINENO: result: $STRIP" >&5
6014echo "${ECHO_T}$STRIP" >&6
6015else
6016 echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6
6018fi
6019
6020fi
6021if test -z "$ac_cv_prog_STRIP"; then
6022 ac_ct_STRIP=$STRIP
6023 # Extract the first word of "strip", so it can be a program name with args.
6024set dummy strip; ac_word=$2
6025echo "$as_me:$LINENO: checking for $ac_word" >&5
6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029else
6030 if test -n "$ac_ct_STRIP"; then
6031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_STRIP="strip"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044done
6045done
6046
6047 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6048fi
6049fi
6050ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6051if test -n "$ac_ct_STRIP"; then
6052 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6053echo "${ECHO_T}$ac_ct_STRIP" >&6
6054else
6055 echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6
6057fi
6058
6059 STRIP=$ac_ct_STRIP
6060else
6061 STRIP="$ac_cv_prog_STRIP"
6062fi
6063
6064
6065old_CC="$CC"
6066old_CFLAGS="$CFLAGS"
6067
6068# Set sane defaults for various variables
6069test -z "$AR" && AR=ar
6070test -z "$AR_FLAGS" && AR_FLAGS=cru
6071test -z "$AS" && AS=as
6072test -z "$CC" && CC=cc
6073test -z "$LTCC" && LTCC=$CC
6074test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6075test -z "$DLLTOOL" && DLLTOOL=dlltool
6076test -z "$LD" && LD=ld
6077test -z "$LN_S" && LN_S="ln -s"
6078test -z "$MAGIC_CMD" && MAGIC_CMD=file
6079test -z "$NM" && NM=nm
6080test -z "$SED" && SED=sed
6081test -z "$OBJDUMP" && OBJDUMP=objdump
6082test -z "$RANLIB" && RANLIB=:
6083test -z "$STRIP" && STRIP=:
6084test -z "$ac_objext" && ac_objext=o
6085
6086# Determine commands to create old-style static archives.
6087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6088old_postinstall_cmds='chmod 644 $oldlib'
6089old_postuninstall_cmds=
6090
6091if test -n "$RANLIB"; then
6092 case $host_os in
6093 openbsd*)
6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6095 ;;
6096 *)
6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6098 ;;
6099 esac
6100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6101fi
6102
6103for cc_temp in $compiler""; do
6104 case $cc_temp in
6105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6107 \-*) ;;
6108 *) break;;
6109 esac
6110done
6111cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6112
6113
6114# Only perform the check for file, if the check method requires it
6115case $deplibs_check_method in
6116file_magic*)
6117 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6118 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6119echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6120if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 case $MAGIC_CMD in
6124[\\/*] | ?:[\\/]*)
6125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6126 ;;
6127*)
6128 lt_save_MAGIC_CMD="$MAGIC_CMD"
6129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6131 for ac_dir in $ac_dummy; do
6132 IFS="$lt_save_ifs"
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f $ac_dir/${ac_tool_prefix}file; then
6135 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6136 if test -n "$file_magic_test_file"; then
6137 case $deplibs_check_method in
6138 "file_magic "*)
6139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6142 $EGREP "$file_magic_regex" > /dev/null; then
6143 :
6144 else
6145 cat <<EOF 1>&2
6146
6147*** Warning: the command libtool uses to detect shared libraries,
6148*** $file_magic_cmd, produces output that libtool cannot recognize.
6149*** The result is that libtool may fail to recognize shared libraries
6150*** as such. This will affect the creation of libtool libraries that
6151*** depend on shared libraries, but programs linked with such libtool
6152*** libraries will work regardless of this problem. Nevertheless, you
6153*** may want to report the problem to your system manager and/or to
6154*** bug-libtool@gnu.org
6155
6156EOF
6157 fi ;;
6158 esac
6159 fi
6160 break
6161 fi
6162 done
6163 IFS="$lt_save_ifs"
6164 MAGIC_CMD="$lt_save_MAGIC_CMD"
6165 ;;
6166esac
6167fi
6168
6169MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170if test -n "$MAGIC_CMD"; then
6171 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6172echo "${ECHO_T}$MAGIC_CMD" >&6
6173else
6174 echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176fi
6177
6178if test -z "$lt_cv_path_MAGIC_CMD"; then
6179 if test -n "$ac_tool_prefix"; then
6180 echo "$as_me:$LINENO: checking for file" >&5
6181echo $ECHO_N "checking for file... $ECHO_C" >&6
6182if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185 case $MAGIC_CMD in
6186[\\/*] | ?:[\\/]*)
6187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6188 ;;
6189*)
6190 lt_save_MAGIC_CMD="$MAGIC_CMD"
6191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6192 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6193 for ac_dir in $ac_dummy; do
6194 IFS="$lt_save_ifs"
6195 test -z "$ac_dir" && ac_dir=.
6196 if test -f $ac_dir/file; then
6197 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6198 if test -n "$file_magic_test_file"; then
6199 case $deplibs_check_method in
6200 "file_magic "*)
6201 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6204 $EGREP "$file_magic_regex" > /dev/null; then
6205 :
6206 else
6207 cat <<EOF 1>&2
6208
6209*** Warning: the command libtool uses to detect shared libraries,
6210*** $file_magic_cmd, produces output that libtool cannot recognize.
6211*** The result is that libtool may fail to recognize shared libraries
6212*** as such. This will affect the creation of libtool libraries that
6213*** depend on shared libraries, but programs linked with such libtool
6214*** libraries will work regardless of this problem. Nevertheless, you
6215*** may want to report the problem to your system manager and/or to
6216*** bug-libtool@gnu.org
6217
6218EOF
6219 fi ;;
6220 esac
6221 fi
6222 break
6223 fi
6224 done
6225 IFS="$lt_save_ifs"
6226 MAGIC_CMD="$lt_save_MAGIC_CMD"
6227 ;;
6228esac
6229fi
6230
6231MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6232if test -n "$MAGIC_CMD"; then
6233 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6234echo "${ECHO_T}$MAGIC_CMD" >&6
6235else
6236 echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6
6238fi
6239
6240 else
6241 MAGIC_CMD=:
6242 fi
6243fi
6244
6245 fi
6246 ;;
6247esac
6248
6249enable_dlopen=no
6250enable_win32_dll=no
6251
6252# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6253if test "${enable_libtool_lock+set}" = set; then
6254 enableval="$enable_libtool_lock"
6255
6256fi;
6257test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6258
6259
6260# Check whether --with-pic or --without-pic was given.
6261if test "${with_pic+set}" = set; then
6262 withval="$with_pic"
6263 pic_mode="$withval"
6264else
6265 pic_mode=default
6266fi;
6267test -z "$pic_mode" && pic_mode=default
6268
6269# Use C for the default configuration in the libtool script
6270tagname=
6271lt_save_CC="$CC"
6272ac_ext=c
6273ac_cpp='$CPP $CPPFLAGS'
6274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277
6278
6279# Source file extension for C test sources.
6280ac_ext=c
6281
6282# Object file extension for compiled C test sources.
6283objext=o
6284objext=$objext
6285
6286# Code to be used in simple compile tests
6287lt_simple_compile_test_code="int some_variable = 0;\n"
6288
6289# Code to be used in simple link tests
6290lt_simple_link_test_code='int main(){return(0);}\n'
6291
6292
6293# If no C compiler was specified, use CC.
6294LTCC=${LTCC-"$CC"}
6295
6296# If no C compiler flags were specified, use CFLAGS.
6297LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6298
6299# Allow CC to be a program name with arguments.
6300compiler=$CC
6301
6302
6303# save warnings/boilerplate of simple test code
6304ac_outfile=conftest.$ac_objext
6305printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6306eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6307_lt_compiler_boilerplate=`cat conftest.err`
6308$rm conftest*
6309
6310ac_outfile=conftest.$ac_objext
6311printf "$lt_simple_link_test_code" >conftest.$ac_ext
6312eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6313_lt_linker_boilerplate=`cat conftest.err`
6314$rm conftest*
6315
6316
6317
6318lt_prog_compiler_no_builtin_flag=
6319
6320if test "$GCC" = yes; then
6321 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6322
6323
6324echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6325echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6326if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 lt_cv_prog_compiler_rtti_exceptions=no
6330 ac_outfile=conftest.$ac_objext
6331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6332 lt_compiler_flag="-fno-rtti -fno-exceptions"
6333 # Insert the option either (1) after the last *FLAGS variable, or
6334 # (2) before a word containing "conftest.", or (3) at the end.
6335 # Note that $ac_compile itself does not contain backslashes and begins
6336 # with a dollar sign (not a hyphen), so the echo should work correctly.
6337 # The option is referenced via a variable to avoid confusing sed.
6338 lt_compile=`echo "$ac_compile" | $SED \
6339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6341 -e 's:$: $lt_compiler_flag:'`
6342 (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
6343 (eval "$lt_compile" 2>conftest.err)
6344 ac_status=$?
6345 cat conftest.err >&5
6346 echo "$as_me:6346: \$? = $ac_status" >&5
6347 if (exit $ac_status) && test -s "$ac_outfile"; then
6348 # The compiler can only warn and ignore the option if not recognized
6349 # So say no if there are warnings other than the usual output.
6350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6353 lt_cv_prog_compiler_rtti_exceptions=yes
6354 fi
6355 fi
6356 $rm conftest*
6357
6358fi
6359echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6360echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6361
6362if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6364else
6365 :
6366fi
6367
6368fi
6369
6370lt_prog_compiler_wl=
6371lt_prog_compiler_pic=
6372lt_prog_compiler_static=
6373
6374echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6375echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6376
6377 if test "$GCC" = yes; then
6378 lt_prog_compiler_wl='-Wl,'
6379 lt_prog_compiler_static='-static'
6380
6381 case $host_os in
6382 aix*)
6383 # All AIX code is PIC.
6384 if test "$host_cpu" = ia64; then
6385 # AIX 5 now supports IA64 processor
6386 lt_prog_compiler_static='-Bstatic'
6387 fi
6388 ;;
6389
6390 amigaos*)
6391 # FIXME: we need at least 68020 code to build shared libraries, but
6392 # adding the `-m68020' flag to GCC prevents building anything better,
6393 # like `-m68040'.
6394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6395 ;;
6396
6397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6398 # PIC is the default for these OSes.
6399 ;;
6400
6401 mingw* | pw32* | os2*)
6402 # This hack is so that the source file can tell whether it is being
6403 # built for inclusion in a dll (and should export symbols for example).
6404 lt_prog_compiler_pic='-DDLL_EXPORT'
6405 ;;
6406
6407 darwin* | rhapsody*)
6408 # PIC is the default on this platform
6409 # Common symbols not allowed in MH_DYLIB files
6410 lt_prog_compiler_pic='-fno-common'
6411 ;;
6412
6413 interix3*)
6414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6415 # Instead, we relocate shared libraries at runtime.
6416 ;;
6417
6418 msdosdjgpp*)
6419 # Just because we use GCC doesn't mean we suddenly get shared libraries
6420 # on systems that don't support them.
6421 lt_prog_compiler_can_build_shared=no
6422 enable_shared=no
6423 ;;
6424
6425 sysv4*MP*)
6426 if test -d /usr/nec; then
6427 lt_prog_compiler_pic=-Kconform_pic
6428 fi
6429 ;;
6430
6431 hpux*)
6432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6433 # not for PA HP-UX.
6434 case $host_cpu in
6435 hppa*64*|ia64*)
6436 # +Z the default
6437 ;;
6438 *)
6439 lt_prog_compiler_pic='-fPIC'
6440 ;;
6441 esac
6442 ;;
6443
6444 *)
6445 lt_prog_compiler_pic='-fPIC'
6446 ;;
6447 esac
6448 else
6449 # PORTME Check for flag to pass linker flags through the system compiler.
6450 case $host_os in
6451 aix*)
6452 lt_prog_compiler_wl='-Wl,'
6453 if test "$host_cpu" = ia64; then
6454 # AIX 5 now supports IA64 processor
6455 lt_prog_compiler_static='-Bstatic'
6456 else
6457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6458 fi
6459 ;;
6460 darwin*)
6461 # PIC is the default on this platform
6462 # Common symbols not allowed in MH_DYLIB files
6463 case $cc_basename in
6464 xlc*)
6465 lt_prog_compiler_pic='-qnocommon'
6466 lt_prog_compiler_wl='-Wl,'
6467 ;;
6468 esac
6469 ;;
6470
6471 mingw* | pw32* | os2*)
6472 # This hack is so that the source file can tell whether it is being
6473 # built for inclusion in a dll (and should export symbols for example).
6474 lt_prog_compiler_pic='-DDLL_EXPORT'
6475 ;;
6476
6477 hpux9* | hpux10* | hpux11*)
6478 lt_prog_compiler_wl='-Wl,'
6479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6480 # not for PA HP-UX.
6481 case $host_cpu in
6482 hppa*64*|ia64*)
6483 # +Z the default
6484 ;;
6485 *)
6486 lt_prog_compiler_pic='+Z'
6487 ;;
6488 esac
6489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6490 lt_prog_compiler_static='${wl}-a ${wl}archive'
6491 ;;
6492
6493 irix5* | irix6* | nonstopux*)
6494 lt_prog_compiler_wl='-Wl,'
6495 # PIC (with -KPIC) is the default.
6496 lt_prog_compiler_static='-non_shared'
6497 ;;
6498
6499 newsos6)
6500 lt_prog_compiler_pic='-KPIC'
6501 lt_prog_compiler_static='-Bstatic'
6502 ;;
6503
6504 linux*)
6505 case $cc_basename in
6506 icc* | ecc*)
6507 lt_prog_compiler_wl='-Wl,'
6508 lt_prog_compiler_pic='-KPIC'
6509 lt_prog_compiler_static='-static'
6510 ;;
6511 pgcc* | pgf77* | pgf90* | pgf95*)
6512 # Portland Group compilers (*not* the Pentium gcc compiler,
6513 # which looks to be a dead project)
6514 lt_prog_compiler_wl='-Wl,'
6515 lt_prog_compiler_pic='-fpic'
6516 lt_prog_compiler_static='-Bstatic'
6517 ;;
6518 ccc*)
6519 lt_prog_compiler_wl='-Wl,'
6520 # All Alpha code is PIC.
6521 lt_prog_compiler_static='-non_shared'
6522 ;;
6523 esac
6524 ;;
6525
6526 osf3* | osf4* | osf5*)
6527 lt_prog_compiler_wl='-Wl,'
6528 # All OSF/1 code is PIC.
6529 lt_prog_compiler_static='-non_shared'
6530 ;;
6531
6532 solaris*)
6533 lt_prog_compiler_pic='-KPIC'
6534 lt_prog_compiler_static='-Bstatic'
6535 case $cc_basename in
6536 f77* | f90* | f95*)
6537 lt_prog_compiler_wl='-Qoption ld ';;
6538 *)
6539 lt_prog_compiler_wl='-Wl,';;
6540 esac
6541 ;;
6542
6543 sunos4*)
6544 lt_prog_compiler_wl='-Qoption ld '
6545 lt_prog_compiler_pic='-PIC'
6546 lt_prog_compiler_static='-Bstatic'
6547 ;;
6548
6549 sysv4 | sysv4.2uw2* | sysv4.3*)
6550 lt_prog_compiler_wl='-Wl,'
6551 lt_prog_compiler_pic='-KPIC'
6552 lt_prog_compiler_static='-Bstatic'
6553 ;;
6554
6555 sysv4*MP*)
6556 if test -d /usr/nec ;then
6557 lt_prog_compiler_pic='-Kconform_pic'
6558 lt_prog_compiler_static='-Bstatic'
6559 fi
6560 ;;
6561
6562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6563 lt_prog_compiler_wl='-Wl,'
6564 lt_prog_compiler_pic='-KPIC'
6565 lt_prog_compiler_static='-Bstatic'
6566 ;;
6567
6568 unicos*)
6569 lt_prog_compiler_wl='-Wl,'
6570 lt_prog_compiler_can_build_shared=no
6571 ;;
6572
6573 uts4*)
6574 lt_prog_compiler_pic='-pic'
6575 lt_prog_compiler_static='-Bstatic'
6576 ;;
6577
6578 *)
6579 lt_prog_compiler_can_build_shared=no
6580 ;;
6581 esac
6582 fi
6583
6584echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6585echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6586
6587#
6588# Check to make sure the PIC flag actually works.
6589#
6590if test -n "$lt_prog_compiler_pic"; then
6591
6592echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6593echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6594if test "${lt_prog_compiler_pic_works+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597 lt_prog_compiler_pic_works=no
6598 ac_outfile=conftest.$ac_objext
6599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6600 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6601 # Insert the option either (1) after the last *FLAGS variable, or
6602 # (2) before a word containing "conftest.", or (3) at the end.
6603 # Note that $ac_compile itself does not contain backslashes and begins
6604 # with a dollar sign (not a hyphen), so the echo should work correctly.
6605 # The option is referenced via a variable to avoid confusing sed.
6606 lt_compile=`echo "$ac_compile" | $SED \
6607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6609 -e 's:$: $lt_compiler_flag:'`
6610 (eval echo "\"\$as_me:6610: $lt_compile\"" >&5)
6611 (eval "$lt_compile" 2>conftest.err)
6612 ac_status=$?
6613 cat conftest.err >&5
6614 echo "$as_me:6614: \$? = $ac_status" >&5
6615 if (exit $ac_status) && test -s "$ac_outfile"; then
6616 # The compiler can only warn and ignore the option if not recognized
6617 # So say no if there are warnings other than the usual output.
6618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6621 lt_prog_compiler_pic_works=yes
6622 fi
6623 fi
6624 $rm conftest*
6625
6626fi
6627echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6628echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6629
6630if test x"$lt_prog_compiler_pic_works" = xyes; then
6631 case $lt_prog_compiler_pic in
6632 "" | " "*) ;;
6633 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6634 esac
6635else
6636 lt_prog_compiler_pic=
6637 lt_prog_compiler_can_build_shared=no
6638fi
6639
6640fi
6641case $host_os in
6642 # For platforms which do not support PIC, -DPIC is meaningless:
6643 *djgpp*)
6644 lt_prog_compiler_pic=
6645 ;;
6646 *)
6647 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6648 ;;
6649esac
6650
6651#
6652# Check to make sure the static flag actually works.
6653#
6654wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6655echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6656echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6657if test "${lt_prog_compiler_static_works+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660 lt_prog_compiler_static_works=no
6661 save_LDFLAGS="$LDFLAGS"
6662 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6663 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6665 # The linker can only warn and ignore the option if not recognized
6666 # So say no if there are warnings
6667 if test -s conftest.err; then
6668 # Append any errors to the config.log.
6669 cat conftest.err 1>&5
6670 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6672 if diff conftest.exp conftest.er2 >/dev/null; then
6673 lt_prog_compiler_static_works=yes
6674 fi
6675 else
6676 lt_prog_compiler_static_works=yes
6677 fi
6678 fi
6679 $rm conftest*
6680 LDFLAGS="$save_LDFLAGS"
6681
6682fi
6683echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6684echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6685
6686if test x"$lt_prog_compiler_static_works" = xyes; then
6687 :
6688else
6689 lt_prog_compiler_static=
6690fi
6691
6692
6693echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6694echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6695if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698 lt_cv_prog_compiler_c_o=no
6699 $rm -r conftest 2>/dev/null
6700 mkdir conftest
6701 cd conftest
6702 mkdir out
6703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6704
6705 lt_compiler_flag="-o out/conftest2.$ac_objext"
6706 # Insert the option either (1) after the last *FLAGS variable, or
6707 # (2) before a word containing "conftest.", or (3) at the end.
6708 # Note that $ac_compile itself does not contain backslashes and begins
6709 # with a dollar sign (not a hyphen), so the echo should work correctly.
6710 lt_compile=`echo "$ac_compile" | $SED \
6711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6713 -e 's:$: $lt_compiler_flag:'`
6714 (eval echo "\"\$as_me:6714: $lt_compile\"" >&5)
6715 (eval "$lt_compile" 2>out/conftest.err)
6716 ac_status=$?
6717 cat out/conftest.err >&5
6718 echo "$as_me:6718: \$? = $ac_status" >&5
6719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6720 then
6721 # The compiler can only warn and ignore the option if not recognized
6722 # So say no if there are warnings
6723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6726 lt_cv_prog_compiler_c_o=yes
6727 fi
6728 fi
6729 chmod u+w . 2>&5
6730 $rm conftest*
6731 # SGI C++ compiler will create directory out/ii_files/ for
6732 # template instantiation
6733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6734 $rm out/* && rmdir out
6735 cd ..
6736 rmdir conftest
6737 $rm conftest*
6738
6739fi
6740echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6741echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6742
6743
6744hard_links="nottested"
6745if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6746 # do not overwrite the value of need_locks provided by the user
6747 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6748echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6749 hard_links=yes
6750 $rm conftest*
6751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6752 touch conftest.a
6753 ln conftest.a conftest.b 2>&5 || hard_links=no
6754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6755 echo "$as_me:$LINENO: result: $hard_links" >&5
6756echo "${ECHO_T}$hard_links" >&6
6757 if test "$hard_links" = no; then
6758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6759echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6760 need_locks=warn
6761 fi
6762else
6763 need_locks=no
6764fi
6765
6766echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6767echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6768
6769 runpath_var=
6770 allow_undefined_flag=
6771 enable_shared_with_static_runtimes=no
6772 archive_cmds=
6773 archive_expsym_cmds=
6774 old_archive_From_new_cmds=
6775 old_archive_from_expsyms_cmds=
6776 export_dynamic_flag_spec=
6777 whole_archive_flag_spec=
6778 thread_safe_flag_spec=
6779 hardcode_libdir_flag_spec=
6780 hardcode_libdir_flag_spec_ld=
6781 hardcode_libdir_separator=
6782 hardcode_direct=no
6783 hardcode_minus_L=no
6784 hardcode_shlibpath_var=unsupported
6785 link_all_deplibs=unknown
6786 hardcode_automatic=no
6787 module_cmds=
6788 module_expsym_cmds=
6789 always_export_symbols=no
6790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6791 # include_expsyms should be a list of space-separated symbols to be *always*
6792 # included in the symbol list
6793 include_expsyms=
6794 # exclude_expsyms can be an extended regexp of symbols to exclude
6795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6797 # as well as any symbol that contains `d'.
6798 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6800 # platforms (ab)use it in PIC code, but their linkers get confused if
6801 # the symbol is explicitly referenced. Since portable code cannot
6802 # rely on this symbol name, it's probably fine to never include it in
6803 # preloaded symbol tables.
6804 extract_expsyms_cmds=
6805 # Just being paranoid about ensuring that cc_basename is set.
6806 for cc_temp in $compiler""; do
6807 case $cc_temp in
6808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6810 \-*) ;;
6811 *) break;;
6812 esac
6813done
6814cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6815
6816 case $host_os in
6817 cygwin* | mingw* | pw32*)
6818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6819 # When not using gcc, we currently assume that we are using
6820 # Microsoft Visual C++.
6821 if test "$GCC" != yes; then
6822 with_gnu_ld=no
6823 fi
6824 ;;
6825 interix*)
6826 # we just hope/assume this is gcc and not c89 (= MSVC++)
6827 with_gnu_ld=yes
6828 ;;
6829 openbsd*)
6830 with_gnu_ld=no
6831 ;;
6832 esac
6833
6834 ld_shlibs=yes
6835 if test "$with_gnu_ld" = yes; then
6836 # If archive_cmds runs LD, not CC, wlarc should be empty
6837 wlarc='${wl}'
6838
6839 # Set some defaults for GNU ld with shared library support. These
6840 # are reset later if shared libraries are not supported. Putting them
6841 # here allows them to be overridden if necessary.
6842 runpath_var=LD_RUN_PATH
6843 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6844 export_dynamic_flag_spec='${wl}--export-dynamic'
6845 # ancient GNU ld didn't support --whole-archive et. al.
6846 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6848 else
6849 whole_archive_flag_spec=
6850 fi
6851 supports_anon_versioning=no
6852 case `$LD -v 2>/dev/null` in
6853 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6854 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6855 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6856 *\ 2.11.*) ;; # other 2.11 versions
6857 *) supports_anon_versioning=yes ;;
6858 esac
6859
6860 # See if GNU ld supports shared libraries.
6861 case $host_os in
6862 aix3* | aix4* | aix5*)
6863 # On AIX/PPC, the GNU linker is very broken
6864 if test "$host_cpu" != ia64; then
6865 ld_shlibs=no
6866 cat <<EOF 1>&2
6867
6868*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6869*** to be unable to reliably create shared libraries on AIX.
6870*** Therefore, libtool is disabling shared libraries support. If you
6871*** really care for shared libraries, you may want to modify your PATH
6872*** so that a non-GNU linker is found, and then restart.
6873
6874EOF
6875 fi
6876 ;;
6877
6878 amigaos*)
6879 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)'
6880 hardcode_libdir_flag_spec='-L$libdir'
6881 hardcode_minus_L=yes
6882
6883 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6884 # that the semantics of dynamic libraries on AmigaOS, at least up
6885 # to version 4, is to share data among multiple programs linked
6886 # with the same dynamic library. Since this doesn't match the
6887 # behavior of shared libraries on other platforms, we can't use
6888 # them.
6889 ld_shlibs=no
6890 ;;
6891
6892 beos*)
6893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6894 allow_undefined_flag=unsupported
6895 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6896 # support --undefined. This deserves some investigation. FIXME
6897 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6898 else
6899 ld_shlibs=no
6900 fi
6901 ;;
6902
6903 cygwin* | mingw* | pw32*)
6904 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6905 # as there is no search path for DLLs.
6906 hardcode_libdir_flag_spec='-L$libdir'
6907 allow_undefined_flag=unsupported
6908 always_export_symbols=no
6909 enable_shared_with_static_runtimes=yes
6910 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6911
6912 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6914 # If the export-symbols file already is a .def file (1st line
6915 # is EXPORTS), use it as is; otherwise, prepend...
6916 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6917 cp $export_symbols $output_objdir/$soname.def;
6918 else
6919 echo EXPORTS > $output_objdir/$soname.def;
6920 cat $export_symbols >> $output_objdir/$soname.def;
6921 fi~
6922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6923 else
6924 ld_shlibs=no
6925 fi
6926 ;;
6927
6928 interix3*)
6929 hardcode_direct=no
6930 hardcode_shlibpath_var=no
6931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6932 export_dynamic_flag_spec='${wl}-E'
6933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6934 # Instead, shared libraries are loaded at an image base (0x10000000 by
6935 # default) and relocated if they conflict, which is a slow very memory
6936 # consuming and fragmenting process. To avoid this, we pick a random,
6937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6940 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'
6941 ;;
6942
6943 linux*)
6944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6945 tmp_addflag=
6946 case $cc_basename,$host_cpu in
6947 pgcc*) # Portland Group C compiler
6948 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'
6949 tmp_addflag=' $pic_flag'
6950 ;;
6951 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6952 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'
6953 tmp_addflag=' $pic_flag -Mnomain' ;;
6954 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6955 tmp_addflag=' -i_dynamic' ;;
6956 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6957 tmp_addflag=' -i_dynamic -nofor_main' ;;
6958 ifc* | ifort*) # Intel Fortran compiler
6959 tmp_addflag=' -nofor_main' ;;
6960 esac
6961 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6962
6963 if test $supports_anon_versioning = yes; then
6964 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6966 $echo "local: *; };" >> $output_objdir/$libname.ver~
6967 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6968 fi
6969 link_all_deplibs=no
6970 else
6971 ld_shlibs=no
6972 fi
6973 ;;
6974
6975 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6978 wlarc=
6979 else
6980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6982 fi
6983 ;;
6984
6985 solaris*)
6986 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6987 ld_shlibs=no
6988 cat <<EOF 1>&2
6989
6990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6991*** create shared libraries on Solaris systems. Therefore, libtool
6992*** is disabling shared libraries support. We urge you to upgrade GNU
6993*** binutils to release 2.9.1 or newer. Another option is to modify
6994*** your PATH or compiler configuration so that the native linker is
6995*** used, and then restart.
6996
6997EOF
6998 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7001 else
7002 ld_shlibs=no
7003 fi
7004 ;;
7005
7006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7007 case `$LD -v 2>&1` in
7008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7009 ld_shlibs=no
7010 cat <<_LT_EOF 1>&2
7011
7012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7013*** reliably create shared libraries on SCO systems. Therefore, libtool
7014*** is disabling shared libraries support. We urge you to upgrade GNU
7015*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7016*** your PATH or compiler configuration so that the native linker is
7017*** used, and then restart.
7018
7019_LT_EOF
7020 ;;
7021 *)
7022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7023 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7026 else
7027 ld_shlibs=no
7028 fi
7029 ;;
7030 esac
7031 ;;
7032
7033 sunos4*)
7034 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7035 wlarc=
7036 hardcode_direct=yes
7037 hardcode_shlibpath_var=no
7038 ;;
7039
7040 *)
7041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7044 else
7045 ld_shlibs=no
7046 fi
7047 ;;
7048 esac
7049
7050 if test "$ld_shlibs" = no; then
7051 runpath_var=
7052 hardcode_libdir_flag_spec=
7053 export_dynamic_flag_spec=
7054 whole_archive_flag_spec=
7055 fi
7056 else
7057 # PORTME fill in a description of your system's linker (not GNU ld)
7058 case $host_os in
7059 aix3*)
7060 allow_undefined_flag=unsupported
7061 always_export_symbols=yes
7062 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'
7063 # Note: this linker hardcodes the directories in LIBPATH if there
7064 # are no directories specified by -L.
7065 hardcode_minus_L=yes
7066 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7067 # Neither direct hardcoding nor static linking is supported with a
7068 # broken collect2.
7069 hardcode_direct=unsupported
7070 fi
7071 ;;
7072
7073 aix4* | aix5*)
7074 if test "$host_cpu" = ia64; then
7075 # On IA64, the linker does run time linking by default, so we don't
7076 # have to do anything special.
7077 aix_use_runtimelinking=no
7078 exp_sym_flag='-Bexport'
7079 no_entry_flag=""
7080 else
7081 # If we're using GNU nm, then we don't want the "-C" option.
7082 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7083 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7084 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'
7085 else
7086 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'
7087 fi
7088 aix_use_runtimelinking=no
7089
7090 # Test if we are trying to use run time linking or normal
7091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7092 # need to do runtime linking.
7093 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7094 for ld_flag in $LDFLAGS; do
7095 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7096 aix_use_runtimelinking=yes
7097 break
7098 fi
7099 done
7100 ;;
7101 esac
7102
7103 exp_sym_flag='-bexport'
7104 no_entry_flag='-bnoentry'
7105 fi
7106
7107 # When large executables or shared objects are built, AIX ld can
7108 # have problems creating the table of contents. If linking a library
7109 # or program results in "error TOC overflow" add -mminimal-toc to
7110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7112
7113 archive_cmds=''
7114 hardcode_direct=yes
7115 hardcode_libdir_separator=':'
7116 link_all_deplibs=yes
7117
7118 if test "$GCC" = yes; then
7119 case $host_os in aix4.[012]|aix4.[012].*)
7120 # We only want to do this on AIX 4.2 and lower, the check
7121 # below for broken collect2 doesn't work under 4.3+
7122 collect2name=`${CC} -print-prog-name=collect2`
7123 if test -f "$collect2name" && \
7124 strings "$collect2name" | grep resolve_lib_name >/dev/null
7125 then
7126 # We have reworked collect2
7127 hardcode_direct=yes
7128 else
7129 # We have old collect2
7130 hardcode_direct=unsupported
7131 # It fails to find uninstalled libraries when the uninstalled
7132 # path is not listed in the libpath. Setting hardcode_minus_L
7133 # to unsupported forces relinking
7134 hardcode_minus_L=yes
7135 hardcode_libdir_flag_spec='-L$libdir'
7136 hardcode_libdir_separator=
7137 fi
7138 ;;
7139 esac
7140 shared_flag='-shared'
7141 if test "$aix_use_runtimelinking" = yes; then
7142 shared_flag="$shared_flag "'${wl}-G'
7143 fi
7144 else
7145 # not using gcc
7146 if test "$host_cpu" = ia64; then
7147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7148 # chokes on -Wl,-G. The following line is correct:
7149 shared_flag='-G'
7150 else
7151 if test "$aix_use_runtimelinking" = yes; then
7152 shared_flag='${wl}-G'
7153 else
7154 shared_flag='${wl}-bM:SRE'
7155 fi
7156 fi
7157 fi
7158
7159 # It seems that -bexpall does not export symbols beginning with
7160 # underscore (_), so it is better to generate a list of symbols to export.
7161 always_export_symbols=yes
7162 if test "$aix_use_runtimelinking" = yes; then
7163 # Warning - without using the other runtime loading flags (-brtl),
7164 # -berok will link without error, but may produce a broken library.
7165 allow_undefined_flag='-berok'
7166 # Determine the default libpath from the value encoded in an empty executable.
7167 cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h. */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */
7173
7174int
7175main ()
7176{
7177
7178 ;
7179 return 0;
7180}
7181_ACEOF
7182rm -f conftest.$ac_objext conftest$ac_exeext
7183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7184 (eval $ac_link) 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203
7204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7205}'`
7206# Check for a 64-bit object if we didn't find anything.
7207if 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; }
7208}'`; fi
7209else
7210 echo "$as_me: failed program was:" >&5
7211sed 's/^/| /' conftest.$ac_ext >&5
7212
7213fi
7214rm -f conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7217
7218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7219 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"
7220 else
7221 if test "$host_cpu" = ia64; then
7222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7223 allow_undefined_flag="-z nodefs"
7224 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"
7225 else
7226 # Determine the default libpath from the value encoded in an empty executable.
7227 cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233
7234int
7235main ()
7236{
7237
7238 ;
7239 return 0;
7240}
7241_ACEOF
7242rm -f conftest.$ac_objext conftest$ac_exeext
7243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest$ac_exeext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263
7264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7265}'`
7266# Check for a 64-bit object if we didn't find anything.
7267if 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; }
7268}'`; fi
7269else
7270 echo "$as_me: failed program was:" >&5
7271sed 's/^/| /' conftest.$ac_ext >&5
7272
7273fi
7274rm -f conftest.err conftest.$ac_objext \
7275 conftest$ac_exeext conftest.$ac_ext
7276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7277
7278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7279 # Warning - without using the other run time loading flags,
7280 # -berok will link without error, but may produce a broken library.
7281 no_undefined_flag=' ${wl}-bernotok'
7282 allow_undefined_flag=' ${wl}-berok'
7283 # Exported symbols can be pulled into shared objects from archives
7284 whole_archive_flag_spec='$convenience'
7285 archive_cmds_need_lc=yes
7286 # This is similar to how AIX traditionally builds its shared libraries.
7287 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'
7288 fi
7289 fi
7290 ;;
7291
7292 amigaos*)
7293 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)'
7294 hardcode_libdir_flag_spec='-L$libdir'
7295 hardcode_minus_L=yes
7296 # see comment about different semantics on the GNU ld section
7297 ld_shlibs=no
7298 ;;
7299
7300 bsdi[45]*)
7301 export_dynamic_flag_spec=-rdynamic
7302 ;;
7303
7304 cygwin* | mingw* | pw32*)
7305 # When not using gcc, we currently assume that we are using
7306 # Microsoft Visual C++.
7307 # hardcode_libdir_flag_spec is actually meaningless, as there is
7308 # no search path for DLLs.
7309 hardcode_libdir_flag_spec=' '
7310 allow_undefined_flag=unsupported
7311 # Tell ltmain to make .lib files, not .a files.
7312 libext=lib
7313 # Tell ltmain to make .dll files, not .so files.
7314 shrext_cmds=".dll"
7315 # FIXME: Setting linknames here is a bad hack.
7316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7317 # The linker will automatically build a .lib file if we build a DLL.
7318 old_archive_From_new_cmds='true'
7319 # FIXME: Should let the user specify the lib program.
7320 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7321 fix_srcfile_path='`cygpath -w "$srcfile"`'
7322 enable_shared_with_static_runtimes=yes
7323 ;;
7324
7325 darwin* | rhapsody*)
7326 case $host_os in
7327 rhapsody* | darwin1.[012])
7328 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7329 ;;
7330 *) # Darwin 1.3 on
7331 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7332 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7333 else
7334 case ${MACOSX_DEPLOYMENT_TARGET} in
7335 10.[012])
7336 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7337 ;;
7338 10.*)
7339 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7340 ;;
7341 esac
7342 fi
7343 ;;
7344 esac
7345 archive_cmds_need_lc=no
7346 hardcode_direct=no
7347 hardcode_automatic=yes
7348 hardcode_shlibpath_var=unsupported
7349 whole_archive_flag_spec=''
7350 link_all_deplibs=yes
7351 if test "$GCC" = yes ; then
7352 output_verbose_link_cmd='echo'
7353 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7354 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7355 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7356 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}'
7357 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}'
7358 else
7359 case $cc_basename in
7360 xlc*)
7361 output_verbose_link_cmd='echo'
7362 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7363 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7364 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7365 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}'
7366 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}'
7367 ;;
7368 *)
7369 ld_shlibs=no
7370 ;;
7371 esac
7372 fi
7373 ;;
7374
7375 dgux*)
7376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7377 hardcode_libdir_flag_spec='-L$libdir'
7378 hardcode_shlibpath_var=no
7379 ;;
7380
7381 freebsd1*)
7382 ld_shlibs=no
7383 ;;
7384
7385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7386 # support. Future versions do this automatically, but an explicit c++rt0.o
7387 # does not break anything, and helps significantly (at the cost of a little
7388 # extra space).
7389 freebsd2.2*)
7390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7391 hardcode_libdir_flag_spec='-R$libdir'
7392 hardcode_direct=yes
7393 hardcode_shlibpath_var=no
7394 ;;
7395
7396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7397 freebsd2*)
7398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_direct=yes
7400 hardcode_minus_L=yes
7401 hardcode_shlibpath_var=no
7402 ;;
7403
7404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7405 freebsd* | dragonfly*)
7406 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7407 hardcode_libdir_flag_spec='-R$libdir'
7408 hardcode_direct=yes
7409 hardcode_shlibpath_var=no
7410 ;;
7411
7412 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7413 kfreebsd*-gnu)
7414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7415 hardcode_libdir_flag_spec='-R$libdir'
7416 hardcode_direct=yes
7417 hardcode_shlibpath_var=no
7418 link_all_deplibs=no
7419 ;;
7420
7421 hpux9*)
7422 if test "$GCC" = yes; then
7423 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'
7424 else
7425 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'
7426 fi
7427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7428 hardcode_libdir_separator=:
7429 hardcode_direct=yes
7430
7431 # hardcode_minus_L: Not really in the search PATH,
7432 # but as the default location of the library.
7433 hardcode_minus_L=yes
7434 export_dynamic_flag_spec='${wl}-E'
7435 ;;
7436
7437 hpux10*)
7438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7440 else
7441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7442 fi
7443 if test "$with_gnu_ld" = no; then
7444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7445 hardcode_libdir_separator=:
7446
7447 hardcode_direct=yes
7448 export_dynamic_flag_spec='${wl}-E'
7449
7450 # hardcode_minus_L: Not really in the search PATH,
7451 # but as the default location of the library.
7452 hardcode_minus_L=yes
7453 fi
7454 ;;
7455
7456 hpux11*)
7457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7458 case $host_cpu in
7459 hppa*64*)
7460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7461 ;;
7462 ia64*)
7463 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7464 ;;
7465 *)
7466 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7467 ;;
7468 esac
7469 else
7470 case $host_cpu in
7471 hppa*64*)
7472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7473 ;;
7474 ia64*)
7475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7476 ;;
7477 *)
7478 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7479 ;;
7480 esac
7481 fi
7482 if test "$with_gnu_ld" = no; then
7483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7484 hardcode_libdir_separator=:
7485
7486 case $host_cpu in
7487 hppa*64*|ia64*)
7488 hardcode_libdir_flag_spec_ld='+b $libdir'
7489 hardcode_direct=no
7490 hardcode_shlibpath_var=no
7491 ;;
7492 *)
7493 hardcode_direct=yes
7494 export_dynamic_flag_spec='${wl}-E'
7495
7496 # hardcode_minus_L: Not really in the search PATH,
7497 # but as the default location of the library.
7498 hardcode_minus_L=yes
7499 ;;
7500 esac
7501 fi
7502 ;;
7503
7504 irix5* | irix6* | nonstopux*)
7505 if test "$GCC" = yes; then
7506 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'
7507 else
7508 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'
7509 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7510 fi
7511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7512 hardcode_libdir_separator=:
7513 link_all_deplibs=yes
7514 ;;
7515
7516 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7519 else
7520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7521 fi
7522 hardcode_libdir_flag_spec='-R$libdir'
7523 hardcode_direct=yes
7524 hardcode_shlibpath_var=no
7525 ;;
7526
7527 newsos6)
7528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7529 hardcode_direct=yes
7530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7531 hardcode_libdir_separator=:
7532 hardcode_shlibpath_var=no
7533 ;;
7534
7535 openbsd*)
7536 hardcode_direct=yes
7537 hardcode_shlibpath_var=no
7538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7542 export_dynamic_flag_spec='${wl}-E'
7543 else
7544 case $host_os in
7545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7547 hardcode_libdir_flag_spec='-R$libdir'
7548 ;;
7549 *)
7550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7552 ;;
7553 esac
7554 fi
7555 ;;
7556
7557 os2*)
7558 hardcode_libdir_flag_spec='-L$libdir'
7559 hardcode_minus_L=yes
7560 allow_undefined_flag=unsupported
7561 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'
7562 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7563 ;;
7564
7565 osf3*)
7566 if test "$GCC" = yes; then
7567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7568 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'
7569 else
7570 allow_undefined_flag=' -expect_unresolved \*'
7571 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'
7572 fi
7573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7574 hardcode_libdir_separator=:
7575 ;;
7576
7577 osf4* | osf5*) # as osf3* with the addition of -msym flag
7578 if test "$GCC" = yes; then
7579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7580 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'
7581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7582 else
7583 allow_undefined_flag=' -expect_unresolved \*'
7584 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'
7585 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7586 $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'
7587
7588 # Both c and cxx compiler support -rpath directly
7589 hardcode_libdir_flag_spec='-rpath $libdir'
7590 fi
7591 hardcode_libdir_separator=:
7592 ;;
7593
7594 solaris*)
7595 no_undefined_flag=' -z text'
7596 if test "$GCC" = yes; then
7597 wlarc='${wl}'
7598 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7599 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7600 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7601 else
7602 wlarc=''
7603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7606 fi
7607 hardcode_libdir_flag_spec='-R$libdir'
7608 hardcode_shlibpath_var=no
7609 case $host_os in
7610 solaris2.[0-5] | solaris2.[0-5].*) ;;
7611 *)
7612 # The compiler driver will combine linker options so we
7613 # cannot just pass the convience library names through
7614 # without $wl, iff we do not link with $LD.
7615 # Luckily, gcc supports the same syntax we need for Sun Studio.
7616 # Supported since Solaris 2.6 (maybe 2.5.1?)
7617 case $wlarc in
7618 '')
7619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7620 *)
7621 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' ;;
7622 esac ;;
7623 esac
7624 link_all_deplibs=yes
7625 ;;
7626
7627 sunos4*)
7628 if test "x$host_vendor" = xsequent; then
7629 # Use $CC to link under sequent, because it throws in some extra .o
7630 # files that make .init and .fini sections work.
7631 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7632 else
7633 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7634 fi
7635 hardcode_libdir_flag_spec='-L$libdir'
7636 hardcode_direct=yes
7637 hardcode_minus_L=yes
7638 hardcode_shlibpath_var=no
7639 ;;
7640
7641 sysv4)
7642 case $host_vendor in
7643 sni)
7644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645 hardcode_direct=yes # is this really true???
7646 ;;
7647 siemens)
7648 ## LD is ld it makes a PLAMLIB
7649 ## CC just makes a GrossModule.
7650 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7651 reload_cmds='$CC -r -o $output$reload_objs'
7652 hardcode_direct=no
7653 ;;
7654 motorola)
7655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7657 ;;
7658 esac
7659 runpath_var='LD_RUN_PATH'
7660 hardcode_shlibpath_var=no
7661 ;;
7662
7663 sysv4.3*)
7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_shlibpath_var=no
7666 export_dynamic_flag_spec='-Bexport'
7667 ;;
7668
7669 sysv4*MP*)
7670 if test -d /usr/nec; then
7671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7672 hardcode_shlibpath_var=no
7673 runpath_var=LD_RUN_PATH
7674 hardcode_runpath_var=yes
7675 ld_shlibs=yes
7676 fi
7677 ;;
7678
7679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7680 no_undefined_flag='${wl}-z,text'
7681 archive_cmds_need_lc=no
7682 hardcode_shlibpath_var=no
7683 runpath_var='LD_RUN_PATH'
7684
7685 if test "$GCC" = yes; then
7686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7688 else
7689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7691 fi
7692 ;;
7693
7694 sysv5* | sco3.2v5* | sco5v6*)
7695 # Note: We can NOT use -z defs as we might desire, because we do not
7696 # link with -lc, and that would cause any symbols used from libc to
7697 # always be unresolved, which means just about no library would
7698 # ever link correctly. If we're not using GNU ld we use -z text
7699 # though, which does catch some bad symbols but isn't as heavy-handed
7700 # as -z defs.
7701 no_undefined_flag='${wl}-z,text'
7702 allow_undefined_flag='${wl}-z,nodefs'
7703 archive_cmds_need_lc=no
7704 hardcode_shlibpath_var=no
7705 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7706 hardcode_libdir_separator=':'
7707 link_all_deplibs=yes
7708 export_dynamic_flag_spec='${wl}-Bexport'
7709 runpath_var='LD_RUN_PATH'
7710
7711 if test "$GCC" = yes; then
7712 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7714 else
7715 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717 fi
7718 ;;
7719
7720 uts4*)
7721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722 hardcode_libdir_flag_spec='-L$libdir'
7723 hardcode_shlibpath_var=no
7724 ;;
7725
7726 *)
7727 ld_shlibs=no
7728 ;;
7729 esac
7730 fi
7731
7732echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7733echo "${ECHO_T}$ld_shlibs" >&6
7734test "$ld_shlibs" = no && can_build_shared=no
7735
7736#
7737# Do we need to explicitly link libc?
7738#
7739case "x$archive_cmds_need_lc" in
7740x|xyes)
7741 # Assume -lc should be added
7742 archive_cmds_need_lc=yes
7743
7744 if test "$enable_shared" = yes && test "$GCC" = yes; then
7745 case $archive_cmds in
7746 *'~'*)
7747 # FIXME: we may have to deal with multi-command sequences.
7748 ;;
7749 '$CC '*)
7750 # Test whether the compiler implicitly links with -lc since on some
7751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7752 # to ld, don't add -lc before -lgcc.
7753 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7754echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7755 $rm conftest*
7756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7757
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } 2>conftest.err; then
7763 soname=conftest
7764 lib=conftest
7765 libobjs=conftest.$ac_objext
7766 deplibs=
7767 wl=$lt_prog_compiler_wl
7768 pic_flag=$lt_prog_compiler_pic
7769 compiler_flags=-v
7770 linker_flags=-v
7771 verstring=
7772 output_objdir=.
7773 libname=conftest
7774 lt_save_allow_undefined_flag=$allow_undefined_flag
7775 allow_undefined_flag=
7776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7777 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }
7781 then
7782 archive_cmds_need_lc=no
7783 else
7784 archive_cmds_need_lc=yes
7785 fi
7786 allow_undefined_flag=$lt_save_allow_undefined_flag
7787 else
7788 cat conftest.err 1>&5
7789 fi
7790 $rm conftest*
7791 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7792echo "${ECHO_T}$archive_cmds_need_lc" >&6
7793 ;;
7794 esac
7795 fi
7796 ;;
7797esac
7798
7799echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7800echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7801library_names_spec=
7802libname_spec='lib$name'
7803soname_spec=
7804shrext_cmds=".so"
7805postinstall_cmds=
7806postuninstall_cmds=
7807finish_cmds=
7808finish_eval=
7809shlibpath_var=
7810shlibpath_overrides_runpath=unknown
7811version_type=none
7812dynamic_linker="$host_os ld.so"
7813sys_lib_dlsearch_path_spec="/lib /usr/lib"
7814if test "$GCC" = yes; then
7815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7817 # if the path contains ";" then we assume it to be the separator
7818 # otherwise default to the standard path separator (i.e. ":") - it is
7819 # assumed that no part of a normal pathname contains ";" but that should
7820 # okay in the real world where ";" in dirpaths is itself problematic.
7821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7822 else
7823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7824 fi
7825else
7826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7827fi
7828need_lib_prefix=unknown
7829hardcode_into_libs=no
7830
7831# when you set need_version to no, make sure it does not cause -set_version
7832# flags to be left without arguments
7833need_version=unknown
7834
7835case $host_os in
7836aix3*)
7837 version_type=linux
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7839 shlibpath_var=LIBPATH
7840
7841 # AIX 3 has no versioning support, so we append a major version to the name.
7842 soname_spec='${libname}${release}${shared_ext}$major'
7843 ;;
7844
7845aix4* | aix5*)
7846 version_type=linux
7847 need_lib_prefix=no
7848 need_version=no
7849 hardcode_into_libs=yes
7850 if test "$host_cpu" = ia64; then
7851 # AIX 5 supports IA64
7852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7853 shlibpath_var=LD_LIBRARY_PATH
7854 else
7855 # With GCC up to 2.95.x, collect2 would create an import file
7856 # for dependence libraries. The import file would start with
7857 # the line `#! .'. This would cause the generated library to
7858 # depend on `.', always an invalid library. This was fixed in
7859 # development snapshots of GCC prior to 3.0.
7860 case $host_os in
7861 aix4 | aix4.[01] | aix4.[01].*)
7862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7863 echo ' yes '
7864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7865 :
7866 else
7867 can_build_shared=no
7868 fi
7869 ;;
7870 esac
7871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7872 # soname into executable. Probably we can add versioning support to
7873 # collect2, so additional links can be useful in future.
7874 if test "$aix_use_runtimelinking" = yes; then
7875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7876 # instead of lib<name>.a to let people know that these are not
7877 # typical AIX shared libraries.
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7879 else
7880 # We preserve .a as extension for shared libraries through AIX4.2
7881 # and later when we are not doing run time linking.
7882 library_names_spec='${libname}${release}.a $libname.a'
7883 soname_spec='${libname}${release}${shared_ext}$major'
7884 fi
7885 shlibpath_var=LIBPATH
7886 fi
7887 ;;
7888
7889amigaos*)
7890 library_names_spec='$libname.ixlibrary $libname.a'
7891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7892 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'
7893 ;;
7894
7895beos*)
7896 library_names_spec='${libname}${shared_ext}'
7897 dynamic_linker="$host_os ld.so"
7898 shlibpath_var=LIBRARY_PATH
7899 ;;
7900
7901bsdi[45]*)
7902 version_type=linux
7903 need_version=no
7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905 soname_spec='${libname}${release}${shared_ext}$major'
7906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7907 shlibpath_var=LD_LIBRARY_PATH
7908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7910 # the default ld.so.conf also contains /usr/contrib/lib and
7911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7912 # libtool to hard-code these into programs
7913 ;;
7914
7915cygwin* | mingw* | pw32*)
7916 version_type=windows
7917 shrext_cmds=".dll"
7918 need_version=no
7919 need_lib_prefix=no
7920
7921 case $GCC,$host_os in
7922 yes,cygwin* | yes,mingw* | yes,pw32*)
7923 library_names_spec='$libname.dll.a'
7924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7925 postinstall_cmds='base_file=`basename \${file}`~
7926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7927 dldir=$destdir/`dirname \$dlpath`~
7928 test -d \$dldir || mkdir -p \$dldir~
7929 $install_prog $dir/$dlname \$dldir/$dlname~
7930 chmod a+x \$dldir/$dlname'
7931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7932 dlpath=$dir/\$dldll~
7933 $rm \$dlpath'
7934 shlibpath_overrides_runpath=yes
7935
7936 case $host_os in
7937 cygwin*)
7938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7941 ;;
7942 mingw*)
7943 # MinGW DLLs use traditional 'lib' prefix
7944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7946 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7947 # It is most probably a Windows format PATH printed by
7948 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7949 # path with ; separators, and with drive letters. We can handle the
7950 # drive letters (cygwin fileutils understands them), so leave them,
7951 # especially as we might pass files found there to a mingw objdump,
7952 # which wouldn't understand a cygwinified path. Ahh.
7953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7954 else
7955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7956 fi
7957 ;;
7958 pw32*)
7959 # pw32 DLLs use 'pw' prefix rather than 'lib'
7960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7961 ;;
7962 esac
7963 ;;
7964
7965 *)
7966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7967 ;;
7968 esac
7969 dynamic_linker='Win32 ld.exe'
7970 # FIXME: first we should search . and the directory the executable is in
7971 shlibpath_var=PATH
7972 ;;
7973
7974darwin* | rhapsody*)
7975 dynamic_linker="$host_os dyld"
7976 version_type=darwin
7977 need_lib_prefix=no
7978 need_version=no
7979 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7980 soname_spec='${libname}${release}${major}$shared_ext'
7981 shlibpath_overrides_runpath=yes
7982 shlibpath_var=DYLD_LIBRARY_PATH
7983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7984 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7985 if test "$GCC" = yes; then
7986 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"`
7987 else
7988 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7989 fi
7990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7991 ;;
7992
7993dgux*)
7994 version_type=linux
7995 need_lib_prefix=no
7996 need_version=no
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7998 soname_spec='${libname}${release}${shared_ext}$major'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 ;;
8001
8002freebsd1*)
8003 dynamic_linker=no
8004 ;;
8005
8006kfreebsd*-gnu)
8007 version_type=linux
8008 need_lib_prefix=no
8009 need_version=no
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 shlibpath_var=LD_LIBRARY_PATH
8013 shlibpath_overrides_runpath=no
8014 hardcode_into_libs=yes
8015 dynamic_linker='GNU ld.so'
8016 ;;
8017
8018freebsd* | dragonfly*)
8019 # DragonFly does not have aout. When/if they implement a new
8020 # versioning mechanism, adjust this.
8021 if test -x /usr/bin/objformat; then
8022 objformat=`/usr/bin/objformat`
8023 else
8024 case $host_os in
8025 freebsd[123]*) objformat=aout ;;
8026 *) objformat=elf ;;
8027 esac
8028 fi
8029 version_type=freebsd-$objformat
8030 case $version_type in
8031 freebsd-elf*)
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8033 need_version=no
8034 need_lib_prefix=no
8035 ;;
8036 freebsd-*)
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8038 need_version=yes
8039 ;;
8040 esac
8041 shlibpath_var=LD_LIBRARY_PATH
8042 case $host_os in
8043 freebsd2*)
8044 shlibpath_overrides_runpath=yes
8045 ;;
8046 freebsd3.[01]* | freebsdelf3.[01]*)
8047 shlibpath_overrides_runpath=yes
8048 hardcode_into_libs=yes
8049 ;;
8050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8052 shlibpath_overrides_runpath=no
8053 hardcode_into_libs=yes
8054 ;;
8055 freebsd*) # from 4.6 on
8056 shlibpath_overrides_runpath=yes
8057 hardcode_into_libs=yes
8058 ;;
8059 esac
8060 ;;
8061
8062gnu*)
8063 version_type=linux
8064 need_lib_prefix=no
8065 need_version=no
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8067 soname_spec='${libname}${release}${shared_ext}$major'
8068 shlibpath_var=LD_LIBRARY_PATH
8069 hardcode_into_libs=yes
8070 ;;
8071
8072hpux9* | hpux10* | hpux11*)
8073 # Give a soname corresponding to the major version so that dld.sl refuses to
8074 # link against other versions.
8075 version_type=sunos
8076 need_lib_prefix=no
8077 need_version=no
8078 case $host_cpu in
8079 ia64*)
8080 shrext_cmds='.so'
8081 hardcode_into_libs=yes
8082 dynamic_linker="$host_os dld.so"
8083 shlibpath_var=LD_LIBRARY_PATH
8084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8086 soname_spec='${libname}${release}${shared_ext}$major'
8087 if test "X$HPUX_IA64_MODE" = X32; then
8088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8089 else
8090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8091 fi
8092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8093 ;;
8094 hppa*64*)
8095 shrext_cmds='.sl'
8096 hardcode_into_libs=yes
8097 dynamic_linker="$host_os dld.sl"
8098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8101 soname_spec='${libname}${release}${shared_ext}$major'
8102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8104 ;;
8105 *)
8106 shrext_cmds='.sl'
8107 dynamic_linker="$host_os dld.sl"
8108 shlibpath_var=SHLIB_PATH
8109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111 soname_spec='${libname}${release}${shared_ext}$major'
8112 ;;
8113 esac
8114 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8115 postinstall_cmds='chmod 555 $lib'
8116 ;;
8117
8118interix3*)
8119 version_type=linux
8120 need_lib_prefix=no
8121 need_version=no
8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8123 soname_spec='${libname}${release}${shared_ext}$major'
8124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8125 shlibpath_var=LD_LIBRARY_PATH
8126 shlibpath_overrides_runpath=no
8127 hardcode_into_libs=yes
8128 ;;
8129
8130irix5* | irix6* | nonstopux*)
8131 case $host_os in
8132 nonstopux*) version_type=nonstopux ;;
8133 *)
8134 if test "$lt_cv_prog_gnu_ld" = yes; then
8135 version_type=linux
8136 else
8137 version_type=irix
8138 fi ;;
8139 esac
8140 need_lib_prefix=no
8141 need_version=no
8142 soname_spec='${libname}${release}${shared_ext}$major'
8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8144 case $host_os in
8145 irix5* | nonstopux*)
8146 libsuff= shlibsuff=
8147 ;;
8148 *)
8149 case $LD in # libtool.m4 will add one of these switches to LD
8150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8151 libsuff= shlibsuff= libmagic=32-bit;;
8152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8153 libsuff=32 shlibsuff=N32 libmagic=N32;;
8154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8156 *) libsuff= shlibsuff= libmagic=never-match;;
8157 esac
8158 ;;
8159 esac
8160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8161 shlibpath_overrides_runpath=no
8162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8164 hardcode_into_libs=yes
8165 ;;
8166
8167# No shared lib support for Linux oldld, aout, or coff.
8168linux*oldld* | linux*aout* | linux*coff*)
8169 dynamic_linker=no
8170 ;;
8171
8172# This must be Linux ELF.
8173linux*)
8174 version_type=linux
8175 need_lib_prefix=no
8176 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8180 shlibpath_var=LD_LIBRARY_PATH
8181 shlibpath_overrides_runpath=no
8182 # This implies no fast_install, which is unacceptable.
8183 # Some rework will be needed to allow for fast_install
8184 # before this can be enabled.
8185 hardcode_into_libs=yes
8186
8187 # Append ld.so.conf contents to the search path
8188 if test -f /etc/ld.so.conf; then
8189 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8191 fi
8192
8193 # We used to test for /lib/ld.so.1 and disable shared libraries on
8194 # powerpc, because MkLinux only supported shared libraries with the
8195 # GNU dynamic linker. Since this was broken with cross compilers,
8196 # most powerpc-linux boxes support dynamic linking these days and
8197 # people can always --disable-shared, the test was removed, and we
8198 # assume the GNU/Linux dynamic linker is in use.
8199 dynamic_linker='GNU/Linux ld.so'
8200 ;;
8201
8202netbsdelf*-gnu)
8203 version_type=linux
8204 need_lib_prefix=no
8205 need_version=no
8206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8207 soname_spec='${libname}${release}${shared_ext}$major'
8208 shlibpath_var=LD_LIBRARY_PATH
8209 shlibpath_overrides_runpath=no
8210 hardcode_into_libs=yes
8211 dynamic_linker='NetBSD ld.elf_so'
8212 ;;
8213
8214knetbsd*-gnu)
8215 version_type=linux
8216 need_lib_prefix=no
8217 need_version=no
8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8219 soname_spec='${libname}${release}${shared_ext}$major'
8220 shlibpath_var=LD_LIBRARY_PATH
8221 shlibpath_overrides_runpath=no
8222 hardcode_into_libs=yes
8223 dynamic_linker='GNU ld.so'
8224 ;;
8225
8226netbsd*)
8227 version_type=sunos
8228 need_lib_prefix=no
8229 need_version=no
8230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8233 dynamic_linker='NetBSD (a.out) ld.so'
8234 else
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8236 soname_spec='${libname}${release}${shared_ext}$major'
8237 dynamic_linker='NetBSD ld.elf_so'
8238 fi
8239 shlibpath_var=LD_LIBRARY_PATH
8240 shlibpath_overrides_runpath=yes
8241 hardcode_into_libs=yes
8242 ;;
8243
8244newsos6)
8245 version_type=linux
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8247 shlibpath_var=LD_LIBRARY_PATH
8248 shlibpath_overrides_runpath=yes
8249 ;;
8250
8251nto-qnx*)
8252 version_type=linux
8253 need_lib_prefix=no
8254 need_version=no
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8256 soname_spec='${libname}${release}${shared_ext}$major'
8257 shlibpath_var=LD_LIBRARY_PATH
8258 shlibpath_overrides_runpath=yes
8259 ;;
8260
8261openbsd*)
8262 version_type=sunos
8263 sys_lib_dlsearch_path_spec="/usr/lib"
8264 need_lib_prefix=no
8265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8266 case $host_os in
8267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8268 *) need_version=no ;;
8269 esac
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8272 shlibpath_var=LD_LIBRARY_PATH
8273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8274 case $host_os in
8275 openbsd2.[89] | openbsd2.[89].*)
8276 shlibpath_overrides_runpath=no
8277 ;;
8278 *)
8279 shlibpath_overrides_runpath=yes
8280 ;;
8281 esac
8282 else
8283 shlibpath_overrides_runpath=yes
8284 fi
8285 ;;
8286
8287os2*)
8288 libname_spec='$name'
8289 shrext_cmds=".dll"
8290 need_lib_prefix=no
8291 library_names_spec='$libname${shared_ext} $libname.a'
8292 dynamic_linker='OS/2 ld.exe'
8293 shlibpath_var=LIBPATH
8294 ;;
8295
8296osf3* | osf4* | osf5*)
8297 version_type=osf
8298 need_lib_prefix=no
8299 need_version=no
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8305 ;;
8306
8307solaris*)
8308 version_type=linux
8309 need_lib_prefix=no
8310 need_version=no
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=yes
8315 hardcode_into_libs=yes
8316 # ldd complains unless libraries are executable
8317 postinstall_cmds='chmod +x $lib'
8318 ;;
8319
8320sunos4*)
8321 version_type=sunos
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8324 shlibpath_var=LD_LIBRARY_PATH
8325 shlibpath_overrides_runpath=yes
8326 if test "$with_gnu_ld" = yes; then
8327 need_lib_prefix=no
8328 fi
8329 need_version=yes
8330 ;;
8331
8332sysv4 | sysv4.3*)
8333 version_type=linux
8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8335 soname_spec='${libname}${release}${shared_ext}$major'
8336 shlibpath_var=LD_LIBRARY_PATH
8337 case $host_vendor in
8338 sni)
8339 shlibpath_overrides_runpath=no
8340 need_lib_prefix=no
8341 export_dynamic_flag_spec='${wl}-Blargedynsym'
8342 runpath_var=LD_RUN_PATH
8343 ;;
8344 siemens)
8345 need_lib_prefix=no
8346 ;;
8347 motorola)
8348 need_lib_prefix=no
8349 need_version=no
8350 shlibpath_overrides_runpath=no
8351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8352 ;;
8353 esac
8354 ;;
8355
8356sysv4*MP*)
8357 if test -d /usr/nec ;then
8358 version_type=linux
8359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8360 soname_spec='$libname${shared_ext}.$major'
8361 shlibpath_var=LD_LIBRARY_PATH
8362 fi
8363 ;;
8364
8365sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8366 version_type=freebsd-elf
8367 need_lib_prefix=no
8368 need_version=no
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 hardcode_into_libs=yes
8373 if test "$with_gnu_ld" = yes; then
8374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8375 shlibpath_overrides_runpath=no
8376 else
8377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8378 shlibpath_overrides_runpath=yes
8379 case $host_os in
8380 sco3.2v5*)
8381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8382 ;;
8383 esac
8384 fi
8385 sys_lib_dlsearch_path_spec='/usr/lib'
8386 ;;
8387
8388uts4*)
8389 version_type=linux
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8391 soname_spec='${libname}${release}${shared_ext}$major'
8392 shlibpath_var=LD_LIBRARY_PATH
8393 ;;
8394
8395*)
8396 dynamic_linker=no
8397 ;;
8398esac
8399echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8400echo "${ECHO_T}$dynamic_linker" >&6
8401test "$dynamic_linker" = no && can_build_shared=no
8402
8403variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8404if test "$GCC" = yes; then
8405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8406fi
8407
8408echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8409echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8410hardcode_action=
8411if test -n "$hardcode_libdir_flag_spec" || \
8412 test -n "$runpath_var" || \
8413 test "X$hardcode_automatic" = "Xyes" ; then
8414
8415 # We can hardcode non-existant directories.
8416 if test "$hardcode_direct" != no &&
8417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8418 # have to relink, otherwise we might link with an installed library
8419 # when we should be linking with a yet-to-be-installed one
8420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8421 test "$hardcode_minus_L" != no; then
8422 # Linking always hardcodes the temporary library directory.
8423 hardcode_action=relink
8424 else
8425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8426 hardcode_action=immediate
8427 fi
8428else
8429 # We cannot hardcode anything, or else we can only hardcode existing
8430 # directories.
8431 hardcode_action=unsupported
8432fi
8433echo "$as_me:$LINENO: result: $hardcode_action" >&5
8434echo "${ECHO_T}$hardcode_action" >&6
8435
8436if test "$hardcode_action" = relink; then
8437 # Fast installation is not supported
8438 enable_fast_install=no
8439elif test "$shlibpath_overrides_runpath" = yes ||
8440 test "$enable_shared" = no; then
8441 # Fast installation is not necessary
8442 enable_fast_install=needless
8443fi
8444
8445striplib=
8446old_striplib=
8447echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8448echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8449if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8450 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8451 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8452 echo "$as_me:$LINENO: result: yes" >&5
8453echo "${ECHO_T}yes" >&6
8454else
8455# FIXME - insert some real tests, host_os isn't really good enough
8456 case $host_os in
8457 darwin*)
8458 if test -n "$STRIP" ; then
8459 striplib="$STRIP -x"
8460 echo "$as_me:$LINENO: result: yes" >&5
8461echo "${ECHO_T}yes" >&6
8462 else
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
8465fi
8466 ;;
8467 *)
8468 echo "$as_me:$LINENO: result: no" >&5
8469echo "${ECHO_T}no" >&6
8470 ;;
8471 esac
8472fi
8473
8474if test "x$enable_dlopen" != xyes; then
8475 enable_dlopen=unknown
8476 enable_dlopen_self=unknown
8477 enable_dlopen_self_static=unknown
8478else
8479 lt_cv_dlopen=no
8480 lt_cv_dlopen_libs=
8481
8482 case $host_os in
8483 beos*)
8484 lt_cv_dlopen="load_add_on"
8485 lt_cv_dlopen_libs=
8486 lt_cv_dlopen_self=yes
8487 ;;
8488
8489 mingw* | pw32*)
8490 lt_cv_dlopen="LoadLibrary"
8491 lt_cv_dlopen_libs=
8492 ;;
8493
8494 cygwin*)
8495 lt_cv_dlopen="dlopen"
8496 lt_cv_dlopen_libs=
8497 ;;
8498
8499 darwin*)
8500 # if libdl is installed we need to link against it
8501 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8502echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8503if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8505else
8506 ac_check_lib_save_LIBS=$LIBS
8507LIBS="-ldl $LIBS"
8508cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h. */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h. */
8514
8515/* Override any gcc2 internal prototype to avoid an error. */
8516#ifdef __cplusplus
8517extern "C"
8518#endif
8519/* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */
8521char dlopen ();
8522int
8523main ()
8524{
8525dlopen ();
8526 ;
8527 return 0;
8528}
8529_ACEOF
8530rm -f conftest.$ac_objext conftest$ac_exeext
8531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest$ac_exeext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_lib_dl_dlopen=yes
8552else
8553 echo "$as_me: failed program was:" >&5
8554sed 's/^/| /' conftest.$ac_ext >&5
8555
8556ac_cv_lib_dl_dlopen=no
8557fi
8558rm -f conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560LIBS=$ac_check_lib_save_LIBS
8561fi
8562echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8563echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8564if test $ac_cv_lib_dl_dlopen = yes; then
8565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8566else
8567
8568 lt_cv_dlopen="dyld"
8569 lt_cv_dlopen_libs=
8570 lt_cv_dlopen_self=yes
8571
8572fi
8573
8574 ;;
8575
8576 *)
8577 echo "$as_me:$LINENO: checking for shl_load" >&5
8578echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8579if test "${ac_cv_func_shl_load+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582 cat >conftest.$ac_ext <<_ACEOF
8583/* confdefs.h. */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h. */
8588/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8590#define shl_load innocuous_shl_load
8591
8592/* System header to define __stub macros and hopefully few prototypes,
8593 which can conflict with char shl_load (); below.
8594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8595 <limits.h> exists even on freestanding compilers. */
8596
8597#ifdef __STDC__
8598# include <limits.h>
8599#else
8600# include <assert.h>
8601#endif
8602
8603#undef shl_load
8604
8605/* Override any gcc2 internal prototype to avoid an error. */
8606#ifdef __cplusplus
8607extern "C"
8608{
8609#endif
8610/* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8612char shl_load ();
8613/* The GNU C library defines this for functions which it implements
8614 to always fail with ENOSYS. Some functions are actually named
8615 something starting with __ and the normal name is an alias. */
8616#if defined (__stub_shl_load) || defined (__stub___shl_load)
8617choke me
8618#else
8619char (*f) () = shl_load;
8620#endif
8621#ifdef __cplusplus
8622}
8623#endif
8624
8625int
8626main ()
8627{
8628return f != shl_load;
8629 ;
8630 return 0;
8631}
8632_ACEOF
8633rm -f conftest.$ac_objext conftest$ac_exeext
8634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_func_shl_load=yes
8655else
8656 echo "$as_me: failed program was:" >&5
8657sed 's/^/| /' conftest.$ac_ext >&5
8658
8659ac_cv_func_shl_load=no
8660fi
8661rm -f conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8663fi
8664echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8665echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8666if test $ac_cv_func_shl_load = yes; then
8667 lt_cv_dlopen="shl_load"
8668else
8669 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8670echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8671if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 ac_check_lib_save_LIBS=$LIBS
8675LIBS="-ldld $LIBS"
8676cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h. */
8682
8683/* Override any gcc2 internal prototype to avoid an error. */
8684#ifdef __cplusplus
8685extern "C"
8686#endif
8687/* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8689char shl_load ();
8690int
8691main ()
8692{
8693shl_load ();
8694 ;
8695 return 0;
8696}
8697_ACEOF
8698rm -f conftest.$ac_objext conftest$ac_exeext
8699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700 (eval $ac_link) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_lib_dld_shl_load=yes
8720else
8721 echo "$as_me: failed program was:" >&5
8722sed 's/^/| /' conftest.$ac_ext >&5
8723
8724ac_cv_lib_dld_shl_load=no
8725fi
8726rm -f conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728LIBS=$ac_check_lib_save_LIBS
8729fi
8730echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8731echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8732if test $ac_cv_lib_dld_shl_load = yes; then
8733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8734else
8735 echo "$as_me:$LINENO: checking for dlopen" >&5
8736echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8737if test "${ac_cv_func_dlopen+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8739else
8740 cat >conftest.$ac_ext <<_ACEOF
8741/* confdefs.h. */
8742_ACEOF
8743cat confdefs.h >>conftest.$ac_ext
8744cat >>conftest.$ac_ext <<_ACEOF
8745/* end confdefs.h. */
8746/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8748#define dlopen innocuous_dlopen
8749
8750/* System header to define __stub macros and hopefully few prototypes,
8751 which can conflict with char dlopen (); below.
8752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8753 <limits.h> exists even on freestanding compilers. */
8754
8755#ifdef __STDC__
8756# include <limits.h>
8757#else
8758# include <assert.h>
8759#endif
8760
8761#undef dlopen
8762
8763/* Override any gcc2 internal prototype to avoid an error. */
8764#ifdef __cplusplus
8765extern "C"
8766{
8767#endif
8768/* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8770char dlopen ();
8771/* The GNU C library defines this for functions which it implements
8772 to always fail with ENOSYS. Some functions are actually named
8773 something starting with __ and the normal name is an alias. */
8774#if defined (__stub_dlopen) || defined (__stub___dlopen)
8775choke me
8776#else
8777char (*f) () = dlopen;
8778#endif
8779#ifdef __cplusplus
8780}
8781#endif
8782
8783int
8784main ()
8785{
8786return f != dlopen;
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791rm -f conftest.$ac_objext conftest$ac_exeext
8792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793 (eval $ac_link) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 (eval $ac_try) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; } &&
8806 { ac_try='test -s conftest$ac_exeext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_func_dlopen=yes
8813else
8814 echo "$as_me: failed program was:" >&5
8815sed 's/^/| /' conftest.$ac_ext >&5
8816
8817ac_cv_func_dlopen=no
8818fi
8819rm -f conftest.err conftest.$ac_objext \
8820 conftest$ac_exeext conftest.$ac_ext
8821fi
8822echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8823echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8824if test $ac_cv_func_dlopen = yes; then
8825 lt_cv_dlopen="dlopen"
8826else
8827 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8828echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8829if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831else
8832 ac_check_lib_save_LIBS=$LIBS
8833LIBS="-ldl $LIBS"
8834cat >conftest.$ac_ext <<_ACEOF
8835/* confdefs.h. */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */
8840
8841/* Override any gcc2 internal prototype to avoid an error. */
8842#ifdef __cplusplus
8843extern "C"
8844#endif
8845/* We use char because int might match the return type of a gcc2
8846 builtin and then its argument prototype would still apply. */
8847char dlopen ();
8848int
8849main ()
8850{
8851dlopen ();
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856rm -f conftest.$ac_objext conftest$ac_exeext
8857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858 (eval $ac_link) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest$ac_exeext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 ac_cv_lib_dl_dlopen=yes
8878else
8879 echo "$as_me: failed program was:" >&5
8880sed 's/^/| /' conftest.$ac_ext >&5
8881
8882ac_cv_lib_dl_dlopen=no
8883fi
8884rm -f conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886LIBS=$ac_check_lib_save_LIBS
8887fi
8888echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8889echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8890if test $ac_cv_lib_dl_dlopen = yes; then
8891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8892else
8893 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8894echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8895if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898 ac_check_lib_save_LIBS=$LIBS
8899LIBS="-lsvld $LIBS"
8900cat >conftest.$ac_ext <<_ACEOF
8901/* confdefs.h. */
8902_ACEOF
8903cat confdefs.h >>conftest.$ac_ext
8904cat >>conftest.$ac_ext <<_ACEOF
8905/* end confdefs.h. */
8906
8907/* Override any gcc2 internal prototype to avoid an error. */
8908#ifdef __cplusplus
8909extern "C"
8910#endif
8911/* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8913char dlopen ();
8914int
8915main ()
8916{
8917dlopen ();
8918 ;
8919 return 0;
8920}
8921_ACEOF
8922rm -f conftest.$ac_objext conftest$ac_exeext
8923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 (eval $ac_try) 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_lib_svld_dlopen=yes
8944else
8945 echo "$as_me: failed program was:" >&5
8946sed 's/^/| /' conftest.$ac_ext >&5
8947
8948ac_cv_lib_svld_dlopen=no
8949fi
8950rm -f conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952LIBS=$ac_check_lib_save_LIBS
8953fi
8954echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8955echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8956if test $ac_cv_lib_svld_dlopen = yes; then
8957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8958else
8959 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8960echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8961if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8963else
8964 ac_check_lib_save_LIBS=$LIBS
8965LIBS="-ldld $LIBS"
8966cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */
8972
8973/* Override any gcc2 internal prototype to avoid an error. */
8974#ifdef __cplusplus
8975extern "C"
8976#endif
8977/* We use char because int might match the return type of a gcc2
8978 builtin and then its argument prototype would still apply. */
8979char dld_link ();
8980int
8981main ()
8982{
8983dld_link ();
8984 ;
8985 return 0;
8986}
8987_ACEOF
8988rm -f conftest.$ac_objext conftest$ac_exeext
8989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8990 (eval $ac_link) 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_lib_dld_dld_link=yes
9010else
9011 echo "$as_me: failed program was:" >&5
9012sed 's/^/| /' conftest.$ac_ext >&5
9013
9014ac_cv_lib_dld_dld_link=no
9015fi
9016rm -f conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018LIBS=$ac_check_lib_save_LIBS
9019fi
9020echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9021echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9022if test $ac_cv_lib_dld_dld_link = yes; then
9023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9024fi
9025
9026
9027fi
9028
9029
9030fi
9031
9032
9033fi
9034
9035
9036fi
9037
9038
9039fi
9040
9041 ;;
9042 esac
9043
9044 if test "x$lt_cv_dlopen" != xno; then
9045 enable_dlopen=yes
9046 else
9047 enable_dlopen=no
9048 fi
9049
9050 case $lt_cv_dlopen in
9051 dlopen)
9052 save_CPPFLAGS="$CPPFLAGS"
9053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9054
9055 save_LDFLAGS="$LDFLAGS"
9056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9057
9058 save_LIBS="$LIBS"
9059 LIBS="$lt_cv_dlopen_libs $LIBS"
9060
9061 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9062echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9063if test "${lt_cv_dlopen_self+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065else
9066 if test "$cross_compiling" = yes; then :
9067 lt_cv_dlopen_self=cross
9068else
9069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9070 lt_status=$lt_dlunknown
9071 cat > conftest.$ac_ext <<EOF
9072#line 9072 "configure"
9073#include "confdefs.h"
9074
9075#if HAVE_DLFCN_H
9076#include <dlfcn.h>
9077#endif
9078
9079#include <stdio.h>
9080
9081#ifdef RTLD_GLOBAL
9082# define LT_DLGLOBAL RTLD_GLOBAL
9083#else
9084# ifdef DL_GLOBAL
9085# define LT_DLGLOBAL DL_GLOBAL
9086# else
9087# define LT_DLGLOBAL 0
9088# endif
9089#endif
9090
9091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9092 find out it does not work in some platform. */
9093#ifndef LT_DLLAZY_OR_NOW
9094# ifdef RTLD_LAZY
9095# define LT_DLLAZY_OR_NOW RTLD_LAZY
9096# else
9097# ifdef DL_LAZY
9098# define LT_DLLAZY_OR_NOW DL_LAZY
9099# else
9100# ifdef RTLD_NOW
9101# define LT_DLLAZY_OR_NOW RTLD_NOW
9102# else
9103# ifdef DL_NOW
9104# define LT_DLLAZY_OR_NOW DL_NOW
9105# else
9106# define LT_DLLAZY_OR_NOW 0
9107# endif
9108# endif
9109# endif
9110# endif
9111#endif
9112
9113#ifdef __cplusplus
9114extern "C" void exit (int);
9115#endif
9116
9117void fnord() { int i=42;}
9118int main ()
9119{
9120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9121 int status = $lt_dlunknown;
9122
9123 if (self)
9124 {
9125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9127 /* dlclose (self); */
9128 }
9129 else
9130 puts (dlerror ());
9131
9132 exit (status);
9133}
9134EOF
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9140 (./conftest; exit; ) >&5 2>/dev/null
9141 lt_status=$?
9142 case x$lt_status in
9143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9146 esac
9147 else :
9148 # compilation failed
9149 lt_cv_dlopen_self=no
9150 fi
9151fi
9152rm -fr conftest*
9153
9154
9155fi
9156echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9157echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9158
9159 if test "x$lt_cv_dlopen_self" = xyes; then
9160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9161 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9162echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9163if test "${lt_cv_dlopen_self_static+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166 if test "$cross_compiling" = yes; then :
9167 lt_cv_dlopen_self_static=cross
9168else
9169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9170 lt_status=$lt_dlunknown
9171 cat > conftest.$ac_ext <<EOF
9172#line 9172 "configure"
9173#include "confdefs.h"
9174
9175#if HAVE_DLFCN_H
9176#include <dlfcn.h>
9177#endif
9178
9179#include <stdio.h>
9180
9181#ifdef RTLD_GLOBAL
9182# define LT_DLGLOBAL RTLD_GLOBAL
9183#else
9184# ifdef DL_GLOBAL
9185# define LT_DLGLOBAL DL_GLOBAL
9186# else
9187# define LT_DLGLOBAL 0
9188# endif
9189#endif
9190
9191/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9192 find out it does not work in some platform. */
9193#ifndef LT_DLLAZY_OR_NOW
9194# ifdef RTLD_LAZY
9195# define LT_DLLAZY_OR_NOW RTLD_LAZY
9196# else
9197# ifdef DL_LAZY
9198# define LT_DLLAZY_OR_NOW DL_LAZY
9199# else
9200# ifdef RTLD_NOW
9201# define LT_DLLAZY_OR_NOW RTLD_NOW
9202# else
9203# ifdef DL_NOW
9204# define LT_DLLAZY_OR_NOW DL_NOW
9205# else
9206# define LT_DLLAZY_OR_NOW 0
9207# endif
9208# endif
9209# endif
9210# endif
9211#endif
9212
9213#ifdef __cplusplus
9214extern "C" void exit (int);
9215#endif
9216
9217void fnord() { int i=42;}
9218int main ()
9219{
9220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9221 int status = $lt_dlunknown;
9222
9223 if (self)
9224 {
9225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9227 /* dlclose (self); */
9228 }
9229 else
9230 puts (dlerror ());
9231
9232 exit (status);
9233}
9234EOF
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9240 (./conftest; exit; ) >&5 2>/dev/null
9241 lt_status=$?
9242 case x$lt_status in
9243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9245 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9246 esac
9247 else :
9248 # compilation failed
9249 lt_cv_dlopen_self_static=no
9250 fi
9251fi
9252rm -fr conftest*
9253
9254
9255fi
9256echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9257echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9258 fi
9259
9260 CPPFLAGS="$save_CPPFLAGS"
9261 LDFLAGS="$save_LDFLAGS"
9262 LIBS="$save_LIBS"
9263 ;;
9264 esac
9265
9266 case $lt_cv_dlopen_self in
9267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9268 *) enable_dlopen_self=unknown ;;
9269 esac
9270
9271 case $lt_cv_dlopen_self_static in
9272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9273 *) enable_dlopen_self_static=unknown ;;
9274 esac
9275fi
9276
9277
9278# Report which library types will actually be built
9279echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9280echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9281echo "$as_me:$LINENO: result: $can_build_shared" >&5
9282echo "${ECHO_T}$can_build_shared" >&6
9283
9284echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9285echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9286test "$can_build_shared" = "no" && enable_shared=no
9287
9288# On AIX, shared libraries and static libraries use the same namespace, and
9289# are all built from PIC.
9290case $host_os in
9291aix3*)
9292 test "$enable_shared" = yes && enable_static=no
9293 if test -n "$RANLIB"; then
9294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9295 postinstall_cmds='$RANLIB $lib'
9296 fi
9297 ;;
9298
9299aix4* | aix5*)
9300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9301 test "$enable_shared" = yes && enable_static=no
9302 fi
9303 ;;
9304esac
9305echo "$as_me:$LINENO: result: $enable_shared" >&5
9306echo "${ECHO_T}$enable_shared" >&6
9307
9308echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9309echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9310# Make sure either enable_shared or enable_static is yes.
9311test "$enable_shared" = yes || enable_static=yes
9312echo "$as_me:$LINENO: result: $enable_static" >&5
9313echo "${ECHO_T}$enable_static" >&6
9314
9315# The else clause should only fire when bootstrapping the
9316# libtool distribution, otherwise you forgot to ship ltmain.sh
9317# with your package, and you will get complaints that there are
9318# no rules to generate ltmain.sh.
9319if test -f "$ltmain"; then
9320 # See if we are running on zsh, and set the options which allow our commands through
9321 # without removal of \ escapes.
9322 if test -n "${ZSH_VERSION+set}" ; then
9323 setopt NO_GLOB_SUBST
9324 fi
9325 # Now quote all the things that may contain metacharacters while being
9326 # careful not to overquote the AC_SUBSTed values. We take copies of the
9327 # variables and quote the copies for generation of the libtool script.
9328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9329 SED SHELL STRIP \
9330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9332 deplibs_check_method reload_flag reload_cmds need_locks \
9333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9334 lt_cv_sys_global_symbol_to_c_name_address \
9335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9336 old_postinstall_cmds old_postuninstall_cmds \
9337 compiler \
9338 CC \
9339 LD \
9340 lt_prog_compiler_wl \
9341 lt_prog_compiler_pic \
9342 lt_prog_compiler_static \
9343 lt_prog_compiler_no_builtin_flag \
9344 export_dynamic_flag_spec \
9345 thread_safe_flag_spec \
9346 whole_archive_flag_spec \
9347 enable_shared_with_static_runtimes \
9348 old_archive_cmds \
9349 old_archive_from_new_cmds \
9350 predep_objects \
9351 postdep_objects \
9352 predeps \
9353 postdeps \
9354 compiler_lib_search_path \
9355 archive_cmds \
9356 archive_expsym_cmds \
9357 postinstall_cmds \
9358 postuninstall_cmds \
9359 old_archive_from_expsyms_cmds \
9360 allow_undefined_flag \
9361 no_undefined_flag \
9362 export_symbols_cmds \
9363 hardcode_libdir_flag_spec \
9364 hardcode_libdir_flag_spec_ld \
9365 hardcode_libdir_separator \
9366 hardcode_automatic \
9367 module_cmds \
9368 module_expsym_cmds \
9369 lt_cv_prog_compiler_c_o \
9370 exclude_expsyms \
9371 include_expsyms; do
9372
9373 case $var in
9374 old_archive_cmds | \
9375 old_archive_from_new_cmds | \
9376 archive_cmds | \
9377 archive_expsym_cmds | \
9378 module_cmds | \
9379 module_expsym_cmds | \
9380 old_archive_from_expsyms_cmds | \
9381 export_symbols_cmds | \
9382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9383 postinstall_cmds | postuninstall_cmds | \
9384 old_postinstall_cmds | old_postuninstall_cmds | \
9385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9386 # Double-quote double-evaled strings.
9387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9388 ;;
9389 *)
9390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9391 ;;
9392 esac
9393 done
9394
9395 case $lt_echo in
9396 *'\$0 --fallback-echo"')
9397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9398 ;;
9399 esac
9400
9401cfgfile="${ofile}T"
9402 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9403 $rm -f "$cfgfile"
9404 { echo "$as_me:$LINENO: creating $ofile" >&5
9405echo "$as_me: creating $ofile" >&6;}
9406
9407 cat <<__EOF__ >> "$cfgfile"
9408#! $SHELL
9409
9410# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9411# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9412# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9413#
9414# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9415# Free Software Foundation, Inc.
9416#
9417# This file is part of GNU Libtool:
9418# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9419#
9420# This program is free software; you can redistribute it and/or modify
9421# it under the terms of the GNU General Public License as published by
9422# the Free Software Foundation; either version 2 of the License, or
9423# (at your option) any later version.
9424#
9425# This program is distributed in the hope that it will be useful, but
9426# WITHOUT ANY WARRANTY; without even the implied warranty of
9427# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9428# General Public License for more details.
9429#
9430# You should have received a copy of the GNU General Public License
9431# along with this program; if not, write to the Free Software
9432# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9433#
9434# As a special exception to the GNU General Public License, if you
9435# distribute this file as part of a program that contains a
9436# configuration script generated by Autoconf, you may include it under
9437# the same distribution terms that you use for the rest of that program.
9438
9439# A sed program that does not truncate output.
9440SED=$lt_SED
9441
9442# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9443Xsed="$SED -e 1s/^X//"
9444
9445# The HP-UX ksh and POSIX shell print the target directory to stdout
9446# if CDPATH is set.
9447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9448
9449# The names of the tagged configurations supported by this script.
9450available_tags=
9451
9452# ### BEGIN LIBTOOL CONFIG
9453
9454# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9455
9456# Shell to use when invoking shell scripts.
9457SHELL=$lt_SHELL
9458
9459# Whether or not to build shared libraries.
9460build_libtool_libs=$enable_shared
9461
9462# Whether or not to build static libraries.
9463build_old_libs=$enable_static
9464
9465# Whether or not to add -lc for building shared libraries.
9466build_libtool_need_lc=$archive_cmds_need_lc
9467
9468# Whether or not to disallow shared libs when runtime libs are static
9469allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9470
9471# Whether or not to optimize for fast installation.
9472fast_install=$enable_fast_install
9473
9474# The host system.
9475host_alias=$host_alias
9476host=$host
9477host_os=$host_os
9478
9479# The build system.
9480build_alias=$build_alias
9481build=$build
9482build_os=$build_os
9483
9484# An echo program that does not interpret backslashes.
9485echo=$lt_echo
9486
9487# The archiver.
9488AR=$lt_AR
9489AR_FLAGS=$lt_AR_FLAGS
9490
9491# A C compiler.
9492LTCC=$lt_LTCC
9493
9494# LTCC compiler flags.
9495LTCFLAGS=$lt_LTCFLAGS
9496
9497# A language-specific compiler.
9498CC=$lt_compiler
9499
9500# Is the compiler the GNU C compiler?
9501with_gcc=$GCC
9502
9503# An ERE matcher.
9504EGREP=$lt_EGREP
9505
9506# The linker used to build libraries.
9507LD=$lt_LD
9508
9509# Whether we need hard or soft links.
9510LN_S=$lt_LN_S
9511
9512# A BSD-compatible nm program.
9513NM=$lt_NM
9514
9515# A symbol stripping program
9516STRIP=$lt_STRIP
9517
9518# Used to examine libraries when file_magic_cmd begins "file"
9519MAGIC_CMD=$MAGIC_CMD
9520
9521# Used on cygwin: DLL creation program.
9522DLLTOOL="$DLLTOOL"
9523
9524# Used on cygwin: object dumper.
9525OBJDUMP="$OBJDUMP"
9526
9527# Used on cygwin: assembler.
9528AS="$AS"
9529
9530# The name of the directory that contains temporary libtool files.
9531objdir=$objdir
9532
9533# How to create reloadable object files.
9534reload_flag=$lt_reload_flag
9535reload_cmds=$lt_reload_cmds
9536
9537# How to pass a linker flag through the compiler.
9538wl=$lt_lt_prog_compiler_wl
9539
9540# Object file suffix (normally "o").
9541objext="$ac_objext"
9542
9543# Old archive suffix (normally "a").
9544libext="$libext"
9545
9546# Shared library suffix (normally ".so").
9547shrext_cmds='$shrext_cmds'
9548
9549# Executable file suffix (normally "").
9550exeext="$exeext"
9551
9552# Additional compiler flags for building library objects.
9553pic_flag=$lt_lt_prog_compiler_pic
9554pic_mode=$pic_mode
9555
9556# What is the maximum length of a command?
9557max_cmd_len=$lt_cv_sys_max_cmd_len
9558
9559# Does compiler simultaneously support -c and -o options?
9560compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9561
9562# Must we lock files when doing compilation?
9563need_locks=$lt_need_locks
9564
9565# Do we need the lib prefix for modules?
9566need_lib_prefix=$need_lib_prefix
9567
9568# Do we need a version for libraries?
9569need_version=$need_version
9570
9571# Whether dlopen is supported.
9572dlopen_support=$enable_dlopen
9573
9574# Whether dlopen of programs is supported.
9575dlopen_self=$enable_dlopen_self
9576
9577# Whether dlopen of statically linked programs is supported.
9578dlopen_self_static=$enable_dlopen_self_static
9579
9580# Compiler flag to prevent dynamic linking.
9581link_static_flag=$lt_lt_prog_compiler_static
9582
9583# Compiler flag to turn off builtin functions.
9584no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9585
9586# Compiler flag to allow reflexive dlopens.
9587export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9588
9589# Compiler flag to generate shared objects directly from archives.
9590whole_archive_flag_spec=$lt_whole_archive_flag_spec
9591
9592# Compiler flag to generate thread-safe objects.
9593thread_safe_flag_spec=$lt_thread_safe_flag_spec
9594
9595# Library versioning type.
9596version_type=$version_type
9597
9598# Format of library name prefix.
9599libname_spec=$lt_libname_spec
9600
9601# List of archive names. First name is the real one, the rest are links.
9602# The last name is the one that the linker finds with -lNAME.
9603library_names_spec=$lt_library_names_spec
9604
9605# The coded name of the library, if different from the real name.
9606soname_spec=$lt_soname_spec
9607
9608# Commands used to build and install an old-style archive.
9609RANLIB=$lt_RANLIB
9610old_archive_cmds=$lt_old_archive_cmds
9611old_postinstall_cmds=$lt_old_postinstall_cmds
9612old_postuninstall_cmds=$lt_old_postuninstall_cmds
9613
9614# Create an old-style archive from a shared archive.
9615old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9616
9617# Create a temporary old-style archive to link instead of a shared archive.
9618old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9619
9620# Commands used to build and install a shared archive.
9621archive_cmds=$lt_archive_cmds
9622archive_expsym_cmds=$lt_archive_expsym_cmds
9623postinstall_cmds=$lt_postinstall_cmds
9624postuninstall_cmds=$lt_postuninstall_cmds
9625
9626# Commands used to build a loadable module (assumed same as above if empty)
9627module_cmds=$lt_module_cmds
9628module_expsym_cmds=$lt_module_expsym_cmds
9629
9630# Commands to strip libraries.
9631old_striplib=$lt_old_striplib
9632striplib=$lt_striplib
9633
9634# Dependencies to place before the objects being linked to create a
9635# shared library.
9636predep_objects=$lt_predep_objects
9637
9638# Dependencies to place after the objects being linked to create a
9639# shared library.
9640postdep_objects=$lt_postdep_objects
9641
9642# Dependencies to place before the objects being linked to create a
9643# shared library.
9644predeps=$lt_predeps
9645
9646# Dependencies to place after the objects being linked to create a
9647# shared library.
9648postdeps=$lt_postdeps
9649
9650# The library search path used internally by the compiler when linking
9651# a shared library.
9652compiler_lib_search_path=$lt_compiler_lib_search_path
9653
9654# Method to check whether dependent libraries are shared objects.
9655deplibs_check_method=$lt_deplibs_check_method
9656
9657# Command to use when deplibs_check_method == file_magic.
9658file_magic_cmd=$lt_file_magic_cmd
9659
9660# Flag that allows shared libraries with undefined symbols to be built.
9661allow_undefined_flag=$lt_allow_undefined_flag
9662
9663# Flag that forces no undefined symbols.
9664no_undefined_flag=$lt_no_undefined_flag
9665
9666# Commands used to finish a libtool library installation in a directory.
9667finish_cmds=$lt_finish_cmds
9668
9669# Same as above, but a single script fragment to be evaled but not shown.
9670finish_eval=$lt_finish_eval
9671
9672# Take the output of nm and produce a listing of raw symbols and C names.
9673global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9674
9675# Transform the output of nm in a proper C declaration
9676global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9677
9678# Transform the output of nm in a C name address pair
9679global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9680
9681# This is the shared library runtime path variable.
9682runpath_var=$runpath_var
9683
9684# This is the shared library path variable.
9685shlibpath_var=$shlibpath_var
9686
9687# Is shlibpath searched before the hard-coded library search path?
9688shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9689
9690# How to hardcode a shared library path into an executable.
9691hardcode_action=$hardcode_action
9692
9693# Whether we should hardcode library paths into libraries.
9694hardcode_into_libs=$hardcode_into_libs
9695
9696# Flag to hardcode \$libdir into a binary during linking.
9697# This must work even if \$libdir does not exist.
9698hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9699
9700# If ld is used when linking, flag to hardcode \$libdir into
9701# a binary during linking. This must work even if \$libdir does
9702# not exist.
9703hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9704
9705# Whether we need a single -rpath flag with a separated argument.
9706hardcode_libdir_separator=$lt_hardcode_libdir_separator
9707
9708# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9709# resulting binary.
9710hardcode_direct=$hardcode_direct
9711
9712# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9713# resulting binary.
9714hardcode_minus_L=$hardcode_minus_L
9715
9716# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9717# the resulting binary.
9718hardcode_shlibpath_var=$hardcode_shlibpath_var
9719
9720# Set to yes if building a shared library automatically hardcodes DIR into the library
9721# and all subsequent libraries and executables linked against it.
9722hardcode_automatic=$hardcode_automatic
9723
9724# Variables whose values should be saved in libtool wrapper scripts and
9725# restored at relink time.
9726variables_saved_for_relink="$variables_saved_for_relink"
9727
9728# Whether libtool must link a program against all its dependency libraries.
9729link_all_deplibs=$link_all_deplibs
9730
9731# Compile-time system search path for libraries
9732sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9733
9734# Run-time system search path for libraries
9735sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9736
9737# Fix the shell variable \$srcfile for the compiler.
9738fix_srcfile_path="$fix_srcfile_path"
9739
9740# Set to yes if exported symbols are required.
9741always_export_symbols=$always_export_symbols
9742
9743# The commands to list exported symbols.
9744export_symbols_cmds=$lt_export_symbols_cmds
9745
9746# The commands to extract the exported symbol list from a shared archive.
9747extract_expsyms_cmds=$lt_extract_expsyms_cmds
9748
9749# Symbols that should not be listed in the preloaded symbols.
9750exclude_expsyms=$lt_exclude_expsyms
9751
9752# Symbols that must always be exported.
9753include_expsyms=$lt_include_expsyms
9754
9755# ### END LIBTOOL CONFIG
9756
9757__EOF__
9758
9759
9760 case $host_os in
9761 aix3*)
9762 cat <<\EOF >> "$cfgfile"
9763
9764# AIX sometimes has problems with the GCC collect2 program. For some
9765# reason, if we set the COLLECT_NAMES environment variable, the problems
9766# vanish in a puff of smoke.
9767if test "X${COLLECT_NAMES+set}" != Xset; then
9768 COLLECT_NAMES=
9769 export COLLECT_NAMES
9770fi
9771EOF
9772 ;;
9773 esac
9774
9775 # We use sed instead of cat because bash on DJGPP gets confused if
9776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9777 # text mode, it properly converts lines to CR/LF. This bash problem
9778 # is reportedly fixed, but why not run on old versions too?
9779 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9780
9781 mv -f "$cfgfile" "$ofile" || \
9782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9783 chmod +x "$ofile"
9784
9785else
9786 # If there is no Makefile yet, we rely on a make rule to execute
9787 # `config.status --recheck' to rerun these tests and create the
9788 # libtool script then.
9789 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9790 if test -f "$ltmain_in"; then
9791 test -f Makefile && make "$ltmain"
9792 fi
9793fi
9794
9795
9796ac_ext=c
9797ac_cpp='$CPP $CPPFLAGS'
9798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800ac_compiler_gnu=$ac_cv_c_compiler_gnu
9801
9802CC="$lt_save_CC"
9803
9804
9805# Check whether --with-tags or --without-tags was given.
9806if test "${with_tags+set}" = set; then
9807 withval="$with_tags"
9808 tagnames="$withval"
9809fi;
9810
9811if test -f "$ltmain" && test -n "$tagnames"; then
9812 if test ! -f "${ofile}"; then
9813 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9814echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9815 fi
9816
9817 if test -z "$LTCC"; then
9818 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9819 if test -z "$LTCC"; then
9820 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9821echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9822 else
9823 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9824echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9825 fi
9826 fi
9827 if test -z "$LTCFLAGS"; then
9828 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9829 fi
9830
9831 # Extract list of available tagged configurations in $ofile.
9832 # Note that this assumes the entire list is on one line.
9833 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9834
9835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9836 for tagname in $tagnames; do
9837 IFS="$lt_save_ifs"
9838 # Check whether tagname contains only valid characters
9839 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9840 "") ;;
9841 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9842echo "$as_me: error: invalid tag name: $tagname" >&2;}
9843 { (exit 1); exit 1; }; }
9844 ;;
9845 esac
9846
9847 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9848 then
9849 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9850echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9851 { (exit 1); exit 1; }; }
9852 fi
9853
9854 # Update the list of available tags.
9855 if test -n "$tagname"; then
9856 echo appending configuration tag \"$tagname\" to $ofile
9857
9858 case $tagname in
9859 CXX)
9860 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9862 (test "X$CXX" != "Xg++"))) ; then
9863 ac_ext=cc
9864ac_cpp='$CXXCPP $CPPFLAGS'
9865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9868
9869
9870
9871
9872archive_cmds_need_lc_CXX=no
9873allow_undefined_flag_CXX=
9874always_export_symbols_CXX=no
9875archive_expsym_cmds_CXX=
9876export_dynamic_flag_spec_CXX=
9877hardcode_direct_CXX=no
9878hardcode_libdir_flag_spec_CXX=
9879hardcode_libdir_flag_spec_ld_CXX=
9880hardcode_libdir_separator_CXX=
9881hardcode_minus_L_CXX=no
9882hardcode_shlibpath_var_CXX=unsupported
9883hardcode_automatic_CXX=no
9884module_cmds_CXX=
9885module_expsym_cmds_CXX=
9886link_all_deplibs_CXX=unknown
9887old_archive_cmds_CXX=$old_archive_cmds
9888no_undefined_flag_CXX=
9889whole_archive_flag_spec_CXX=
9890enable_shared_with_static_runtimes_CXX=no
9891
9892# Dependencies to place before and after the object being linked:
9893predep_objects_CXX=
9894postdep_objects_CXX=
9895predeps_CXX=
9896postdeps_CXX=
9897compiler_lib_search_path_CXX=
9898
9899# Source file extension for C++ test sources.
9900ac_ext=cpp
9901
9902# Object file extension for compiled C++ test sources.
9903objext=o
9904objext_CXX=$objext
9905
9906# Code to be used in simple compile tests
9907lt_simple_compile_test_code="int some_variable = 0;\n"
9908
9909# Code to be used in simple link tests
9910lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9911
9912# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9913
9914# If no C compiler was specified, use CC.
9915LTCC=${LTCC-"$CC"}
9916
9917# If no C compiler flags were specified, use CFLAGS.
9918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9919
9920# Allow CC to be a program name with arguments.
9921compiler=$CC
9922
9923
9924# save warnings/boilerplate of simple test code
9925ac_outfile=conftest.$ac_objext
9926printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9928_lt_compiler_boilerplate=`cat conftest.err`
9929$rm conftest*
9930
9931ac_outfile=conftest.$ac_objext
9932printf "$lt_simple_link_test_code" >conftest.$ac_ext
9933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9934_lt_linker_boilerplate=`cat conftest.err`
9935$rm conftest*
9936
9937
9938# Allow CC to be a program name with arguments.
9939lt_save_CC=$CC
9940lt_save_LD=$LD
9941lt_save_GCC=$GCC
9942GCC=$GXX
9943lt_save_with_gnu_ld=$with_gnu_ld
9944lt_save_path_LD=$lt_cv_path_LD
9945if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9947else
9948 $as_unset lt_cv_prog_gnu_ld
9949fi
9950if test -n "${lt_cv_path_LDCXX+set}"; then
9951 lt_cv_path_LD=$lt_cv_path_LDCXX
9952else
9953 $as_unset lt_cv_path_LD
9954fi
9955test -z "${LDCXX+set}" || LD=$LDCXX
9956CC=${CXX-"c++"}
9957compiler=$CC
9958compiler_CXX=$CC
9959for cc_temp in $compiler""; do
9960 case $cc_temp in
9961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9963 \-*) ;;
9964 *) break;;
9965 esac
9966done
9967cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9968
9969
9970# We don't want -fno-exception wen compiling C++ code, so set the
9971# no_builtin_flag separately
9972if test "$GXX" = yes; then
9973 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9974else
9975 lt_prog_compiler_no_builtin_flag_CXX=
9976fi
9977
9978if test "$GXX" = yes; then
9979 # Set up default GNU C++ configuration
9980
9981
9982# Check whether --with-gnu-ld or --without-gnu-ld was given.
9983if test "${with_gnu_ld+set}" = set; then
9984 withval="$with_gnu_ld"
9985 test "$withval" = no || with_gnu_ld=yes
9986else
9987 with_gnu_ld=no
9988fi;
9989ac_prog=ld
9990if test "$GCC" = yes; then
9991 # Check if gcc -print-prog-name=ld gives a path.
9992 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9993echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9994 case $host in
9995 *-*-mingw*)
9996 # gcc leaves a trailing carriage return which upsets mingw
9997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9998 *)
9999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10000 esac
10001 case $ac_prog in
10002 # Accept absolute paths.
10003 [\\/]* | ?:[\\/]*)
10004 re_direlt='/[^/][^/]*/\.\./'
10005 # Canonicalize the pathname of ld
10006 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10008 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10009 done
10010 test -z "$LD" && LD="$ac_prog"
10011 ;;
10012 "")
10013 # If it fails, then pretend we aren't using GCC.
10014 ac_prog=ld
10015 ;;
10016 *)
10017 # If it is relative, then search for the first ld in PATH.
10018 with_gnu_ld=unknown
10019 ;;
10020 esac
10021elif test "$with_gnu_ld" = yes; then
10022 echo "$as_me:$LINENO: checking for GNU ld" >&5
10023echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10024else
10025 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10026echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10027fi
10028if test "${lt_cv_path_LD+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030else
10031 if test -z "$LD"; then
10032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10033 for ac_dir in $PATH; do
10034 IFS="$lt_save_ifs"
10035 test -z "$ac_dir" && ac_dir=.
10036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10037 lt_cv_path_LD="$ac_dir/$ac_prog"
10038 # Check to see if the program is GNU ld. I'd rather use --version,
10039 # but apparently some variants of GNU ld only accept -v.
10040 # Break only if it was the GNU/non-GNU ld that we prefer.
10041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10042 *GNU* | *'with BFD'*)
10043 test "$with_gnu_ld" != no && break
10044 ;;
10045 *)
10046 test "$with_gnu_ld" != yes && break
10047 ;;
10048 esac
10049 fi
10050 done
10051 IFS="$lt_save_ifs"
10052else
10053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10054fi
10055fi
10056
10057LD="$lt_cv_path_LD"
10058if test -n "$LD"; then
10059 echo "$as_me:$LINENO: result: $LD" >&5
10060echo "${ECHO_T}$LD" >&6
10061else
10062 echo "$as_me:$LINENO: result: no" >&5
10063echo "${ECHO_T}no" >&6
10064fi
10065test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10066echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10067 { (exit 1); exit 1; }; }
10068echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10069echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10070if test "${lt_cv_prog_gnu_ld+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072else
10073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10074case `$LD -v 2>&1 </dev/null` in
10075*GNU* | *'with BFD'*)
10076 lt_cv_prog_gnu_ld=yes
10077 ;;
10078*)
10079 lt_cv_prog_gnu_ld=no
10080 ;;
10081esac
10082fi
10083echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10084echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10085with_gnu_ld=$lt_cv_prog_gnu_ld
10086
10087
10088
10089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10090 # archiving commands below assume that GNU ld is being used.
10091 if test "$with_gnu_ld" = yes; then
10092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093 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'
10094
10095 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10097
10098 # If archive_cmds runs LD, not CC, wlarc should be empty
10099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10100 # investigate it a little bit more. (MM)
10101 wlarc='${wl}'
10102
10103 # ancient GNU ld didn't support --whole-archive et. al.
10104 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10105 grep 'no-whole-archive' > /dev/null; then
10106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10107 else
10108 whole_archive_flag_spec_CXX=
10109 fi
10110 else
10111 with_gnu_ld=no
10112 wlarc=
10113
10114 # A generic and very simple default shared library creation
10115 # command for GNU C++ for the case where it uses the native
10116 # linker, instead of GNU ld. If possible, this setting should
10117 # overridden to take advantage of the native linker features on
10118 # the platform it is being used on.
10119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10120 fi
10121
10122 # Commands to make compiler produce verbose output that lists
10123 # what "hidden" libraries, object files and flags are used when
10124 # linking a shared library.
10125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10126
10127else
10128 GXX=no
10129 with_gnu_ld=no
10130 wlarc=
10131fi
10132
10133# PORTME: fill in a description of your system's C++ link characteristics
10134echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10135echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10136ld_shlibs_CXX=yes
10137case $host_os in
10138 aix3*)
10139 # FIXME: insert proper C++ library support
10140 ld_shlibs_CXX=no
10141 ;;
10142 aix4* | aix5*)
10143 if test "$host_cpu" = ia64; then
10144 # On IA64, the linker does run time linking by default, so we don't
10145 # have to do anything special.
10146 aix_use_runtimelinking=no
10147 exp_sym_flag='-Bexport'
10148 no_entry_flag=""
10149 else
10150 aix_use_runtimelinking=no
10151
10152 # Test if we are trying to use run time linking or normal
10153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10154 # need to do runtime linking.
10155 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10156 for ld_flag in $LDFLAGS; do
10157 case $ld_flag in
10158 *-brtl*)
10159 aix_use_runtimelinking=yes
10160 break
10161 ;;
10162 esac
10163 done
10164 ;;
10165 esac
10166
10167 exp_sym_flag='-bexport'
10168 no_entry_flag='-bnoentry'
10169 fi
10170
10171 # When large executables or shared objects are built, AIX ld can
10172 # have problems creating the table of contents. If linking a library
10173 # or program results in "error TOC overflow" add -mminimal-toc to
10174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10176
10177 archive_cmds_CXX=''
10178 hardcode_direct_CXX=yes
10179 hardcode_libdir_separator_CXX=':'
10180 link_all_deplibs_CXX=yes
10181
10182 if test "$GXX" = yes; then
10183 case $host_os in aix4.[012]|aix4.[012].*)
10184 # We only want to do this on AIX 4.2 and lower, the check
10185 # below for broken collect2 doesn't work under 4.3+
10186 collect2name=`${CC} -print-prog-name=collect2`
10187 if test -f "$collect2name" && \
10188 strings "$collect2name" | grep resolve_lib_name >/dev/null
10189 then
10190 # We have reworked collect2
10191 hardcode_direct_CXX=yes
10192 else
10193 # We have old collect2
10194 hardcode_direct_CXX=unsupported
10195 # It fails to find uninstalled libraries when the uninstalled
10196 # path is not listed in the libpath. Setting hardcode_minus_L
10197 # to unsupported forces relinking
10198 hardcode_minus_L_CXX=yes
10199 hardcode_libdir_flag_spec_CXX='-L$libdir'
10200 hardcode_libdir_separator_CXX=
10201 fi
10202 ;;
10203 esac
10204 shared_flag='-shared'
10205 if test "$aix_use_runtimelinking" = yes; then
10206 shared_flag="$shared_flag "'${wl}-G'
10207 fi
10208 else
10209 # not using gcc
10210 if test "$host_cpu" = ia64; then
10211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10212 # chokes on -Wl,-G. The following line is correct:
10213 shared_flag='-G'
10214 else
10215 if test "$aix_use_runtimelinking" = yes; then
10216 shared_flag='${wl}-G'
10217 else
10218 shared_flag='${wl}-bM:SRE'
10219 fi
10220 fi
10221 fi
10222
10223 # It seems that -bexpall does not export symbols beginning with
10224 # underscore (_), so it is better to generate a list of symbols to export.
10225 always_export_symbols_CXX=yes
10226 if test "$aix_use_runtimelinking" = yes; then
10227 # Warning - without using the other runtime loading flags (-brtl),
10228 # -berok will link without error, but may produce a broken library.
10229 allow_undefined_flag_CXX='-berok'
10230 # Determine the default libpath from the value encoded in an empty executable.
10231 cat >conftest.$ac_ext <<_ACEOF
10232/* confdefs.h. */
10233_ACEOF
10234cat confdefs.h >>conftest.$ac_ext
10235cat >>conftest.$ac_ext <<_ACEOF
10236/* end confdefs.h. */
10237
10238int
10239main ()
10240{
10241
10242 ;
10243 return 0;
10244}
10245_ACEOF
10246rm -f conftest.$ac_objext conftest$ac_exeext
10247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267
10268aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10269}'`
10270# Check for a 64-bit object if we didn't find anything.
10271if 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; }
10272}'`; fi
10273else
10274 echo "$as_me: failed program was:" >&5
10275sed 's/^/| /' conftest.$ac_ext >&5
10276
10277fi
10278rm -f conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10281
10282 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10283
10284 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"
10285 else
10286 if test "$host_cpu" = ia64; then
10287 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10288 allow_undefined_flag_CXX="-z nodefs"
10289 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"
10290 else
10291 # Determine the default libpath from the value encoded in an empty executable.
10292 cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h. */
10298
10299int
10300main ()
10301{
10302
10303 ;
10304 return 0;
10305}
10306_ACEOF
10307rm -f conftest.$ac_objext conftest$ac_exeext
10308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest$ac_exeext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328
10329aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10330}'`
10331# Check for a 64-bit object if we didn't find anything.
10332if 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; }
10333}'`; fi
10334else
10335 echo "$as_me: failed program was:" >&5
10336sed 's/^/| /' conftest.$ac_ext >&5
10337
10338fi
10339rm -f conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10342
10343 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10344 # Warning - without using the other run time loading flags,
10345 # -berok will link without error, but may produce a broken library.
10346 no_undefined_flag_CXX=' ${wl}-bernotok'
10347 allow_undefined_flag_CXX=' ${wl}-berok'
10348 # Exported symbols can be pulled into shared objects from archives
10349 whole_archive_flag_spec_CXX='$convenience'
10350 archive_cmds_need_lc_CXX=yes
10351 # This is similar to how AIX traditionally builds its shared libraries.
10352 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'
10353 fi
10354 fi
10355 ;;
10356
10357 beos*)
10358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10359 allow_undefined_flag_CXX=unsupported
10360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10361 # support --undefined. This deserves some investigation. FIXME
10362 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10363 else
10364 ld_shlibs_CXX=no
10365 fi
10366 ;;
10367
10368 chorus*)
10369 case $cc_basename in
10370 *)
10371 # FIXME: insert proper C++ library support
10372 ld_shlibs_CXX=no
10373 ;;
10374 esac
10375 ;;
10376
10377 cygwin* | mingw* | pw32*)
10378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10379 # as there is no search path for DLLs.
10380 hardcode_libdir_flag_spec_CXX='-L$libdir'
10381 allow_undefined_flag_CXX=unsupported
10382 always_export_symbols_CXX=no
10383 enable_shared_with_static_runtimes_CXX=yes
10384
10385 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10386 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'
10387 # If the export-symbols file already is a .def file (1st line
10388 # is EXPORTS), use it as is; otherwise, prepend...
10389 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10390 cp $export_symbols $output_objdir/$soname.def;
10391 else
10392 echo EXPORTS > $output_objdir/$soname.def;
10393 cat $export_symbols >> $output_objdir/$soname.def;
10394 fi~
10395 $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'
10396 else
10397 ld_shlibs_CXX=no
10398 fi
10399 ;;
10400 darwin* | rhapsody*)
10401 case $host_os in
10402 rhapsody* | darwin1.[012])
10403 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10404 ;;
10405 *) # Darwin 1.3 on
10406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10407 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10408 else
10409 case ${MACOSX_DEPLOYMENT_TARGET} in
10410 10.[012])
10411 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10412 ;;
10413 10.*)
10414 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10415 ;;
10416 esac
10417 fi
10418 ;;
10419 esac
10420 archive_cmds_need_lc_CXX=no
10421 hardcode_direct_CXX=no
10422 hardcode_automatic_CXX=yes
10423 hardcode_shlibpath_var_CXX=unsupported
10424 whole_archive_flag_spec_CXX=''
10425 link_all_deplibs_CXX=yes
10426
10427 if test "$GXX" = yes ; then
10428 lt_int_apple_cc_single_mod=no
10429 output_verbose_link_cmd='echo'
10430 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10431 lt_int_apple_cc_single_mod=yes
10432 fi
10433 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10434 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10435 else
10436 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'
10437 fi
10438 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10440 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10441 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}'
10442 else
10443 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}'
10444 fi
10445 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}'
10446 else
10447 case $cc_basename in
10448 xlc*)
10449 output_verbose_link_cmd='echo'
10450 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'
10451 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10453 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}'
10454 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}'
10455 ;;
10456 *)
10457 ld_shlibs_CXX=no
10458 ;;
10459 esac
10460 fi
10461 ;;
10462
10463 dgux*)
10464 case $cc_basename in
10465 ec++*)
10466 # FIXME: insert proper C++ library support
10467 ld_shlibs_CXX=no
10468 ;;
10469 ghcx*)
10470 # Green Hills C++ Compiler
10471 # FIXME: insert proper C++ library support
10472 ld_shlibs_CXX=no
10473 ;;
10474 *)
10475 # FIXME: insert proper C++ library support
10476 ld_shlibs_CXX=no
10477 ;;
10478 esac
10479 ;;
10480 freebsd[12]*)
10481 # C++ shared libraries reported to be fairly broken before switch to ELF
10482 ld_shlibs_CXX=no
10483 ;;
10484 freebsd-elf*)
10485 archive_cmds_need_lc_CXX=no
10486 ;;
10487 freebsd* | kfreebsd*-gnu | dragonfly*)
10488 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10489 # conventions
10490 ld_shlibs_CXX=yes
10491 ;;
10492 gnu*)
10493 ;;
10494 hpux9*)
10495 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10496 hardcode_libdir_separator_CXX=:
10497 export_dynamic_flag_spec_CXX='${wl}-E'
10498 hardcode_direct_CXX=yes
10499 hardcode_minus_L_CXX=yes # Not in the search PATH,
10500 # but as the default
10501 # location of the library.
10502
10503 case $cc_basename in
10504 CC*)
10505 # FIXME: insert proper C++ library support
10506 ld_shlibs_CXX=no
10507 ;;
10508 aCC*)
10509 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'
10510 # Commands to make compiler produce verbose output that lists
10511 # what "hidden" libraries, object files and flags are used when
10512 # linking a shared library.
10513 #
10514 # There doesn't appear to be a way to prevent this compiler from
10515 # explicitly linking system object files so we need to strip them
10516 # from the output so that they don't get included in the library
10517 # dependencies.
10518 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'
10519 ;;
10520 *)
10521 if test "$GXX" = yes; then
10522 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'
10523 else
10524 # FIXME: insert proper C++ library support
10525 ld_shlibs_CXX=no
10526 fi
10527 ;;
10528 esac
10529 ;;
10530 hpux10*|hpux11*)
10531 if test $with_gnu_ld = no; then
10532 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10533 hardcode_libdir_separator_CXX=:
10534
10535 case $host_cpu in
10536 hppa*64*|ia64*)
10537 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10538 ;;
10539 *)
10540 export_dynamic_flag_spec_CXX='${wl}-E'
10541 ;;
10542 esac
10543 fi
10544 case $host_cpu in
10545 hppa*64*|ia64*)
10546 hardcode_direct_CXX=no
10547 hardcode_shlibpath_var_CXX=no
10548 ;;
10549 *)
10550 hardcode_direct_CXX=yes
10551 hardcode_minus_L_CXX=yes # Not in the search PATH,
10552 # but as the default
10553 # location of the library.
10554 ;;
10555 esac
10556
10557 case $cc_basename in
10558 CC*)
10559 # FIXME: insert proper C++ library support
10560 ld_shlibs_CXX=no
10561 ;;
10562 aCC*)
10563 case $host_cpu in
10564 hppa*64*)
10565 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10566 ;;
10567 ia64*)
10568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10569 ;;
10570 *)
10571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10572 ;;
10573 esac
10574 # Commands to make compiler produce verbose output that lists
10575 # what "hidden" libraries, object files and flags are used when
10576 # linking a shared library.
10577 #
10578 # There doesn't appear to be a way to prevent this compiler from
10579 # explicitly linking system object files so we need to strip them
10580 # from the output so that they don't get included in the library
10581 # dependencies.
10582 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'
10583 ;;
10584 *)
10585 if test "$GXX" = yes; then
10586 if test $with_gnu_ld = no; then
10587 case $host_cpu in
10588 hppa*64*)
10589 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10590 ;;
10591 ia64*)
10592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10593 ;;
10594 *)
10595 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'
10596 ;;
10597 esac
10598 fi
10599 else
10600 # FIXME: insert proper C++ library support
10601 ld_shlibs_CXX=no
10602 fi
10603 ;;
10604 esac
10605 ;;
10606 interix3*)
10607 hardcode_direct_CXX=no
10608 hardcode_shlibpath_var_CXX=no
10609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10610 export_dynamic_flag_spec_CXX='${wl}-E'
10611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10612 # Instead, shared libraries are loaded at an image base (0x10000000 by
10613 # default) and relocated if they conflict, which is a slow very memory
10614 # consuming and fragmenting process. To avoid this, we pick a random,
10615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10617 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'
10618 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'
10619 ;;
10620 irix5* | irix6*)
10621 case $cc_basename in
10622 CC*)
10623 # SGI C++
10624 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'
10625
10626 # Archives containing C++ object files must be created using
10627 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10628 # necessary to make sure instantiated templates are included
10629 # in the archive.
10630 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10631 ;;
10632 *)
10633 if test "$GXX" = yes; then
10634 if test "$with_gnu_ld" = no; then
10635 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'
10636 else
10637 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'
10638 fi
10639 fi
10640 link_all_deplibs_CXX=yes
10641 ;;
10642 esac
10643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10644 hardcode_libdir_separator_CXX=:
10645 ;;
10646 linux*)
10647 case $cc_basename in
10648 KCC*)
10649 # Kuck and Associates, Inc. (KAI) C++ Compiler
10650
10651 # KCC will only create a shared library if the output file
10652 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10653 # to its proper name (with version) after linking.
10654 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'
10655 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'
10656 # Commands to make compiler produce verbose output that lists
10657 # what "hidden" libraries, object files and flags are used when
10658 # linking a shared library.
10659 #
10660 # There doesn't appear to be a way to prevent this compiler from
10661 # explicitly linking system object files so we need to strip them
10662 # from the output so that they don't get included in the library
10663 # dependencies.
10664 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'
10665
10666 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10668
10669 # Archives containing C++ object files must be created using
10670 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10671 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10672 ;;
10673 icpc*)
10674 # Intel C++
10675 with_gnu_ld=yes
10676 # version 8.0 and above of icpc choke on multiply defined symbols
10677 # if we add $predep_objects and $postdep_objects, however 7.1 and
10678 # earlier do not add the objects themselves.
10679 case `$CC -V 2>&1` in
10680 *"Version 7."*)
10681 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682 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'
10683 ;;
10684 *) # Version 8.0 or newer
10685 tmp_idyn=
10686 case $host_cpu in
10687 ia64*) tmp_idyn=' -i_dynamic';;
10688 esac
10689 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10690 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'
10691 ;;
10692 esac
10693 archive_cmds_need_lc_CXX=no
10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10696 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10697 ;;
10698 pgCC*)
10699 # Portland Group C++ compiler
10700 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10701 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'
10702
10703 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10705 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'
10706 ;;
10707 cxx*)
10708 # Compaq C++
10709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10710 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'
10711
10712 runpath_var=LD_RUN_PATH
10713 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10714 hardcode_libdir_separator_CXX=:
10715
10716 # Commands to make compiler produce verbose output that lists
10717 # what "hidden" libraries, object files and flags are used when
10718 # linking a shared library.
10719 #
10720 # There doesn't appear to be a way to prevent this compiler from
10721 # explicitly linking system object files so we need to strip them
10722 # from the output so that they don't get included in the library
10723 # dependencies.
10724 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'
10725 ;;
10726 esac
10727 ;;
10728 lynxos*)
10729 # FIXME: insert proper C++ library support
10730 ld_shlibs_CXX=no
10731 ;;
10732 m88k*)
10733 # FIXME: insert proper C++ library support
10734 ld_shlibs_CXX=no
10735 ;;
10736 mvs*)
10737 case $cc_basename in
10738 cxx*)
10739 # FIXME: insert proper C++ library support
10740 ld_shlibs_CXX=no
10741 ;;
10742 *)
10743 # FIXME: insert proper C++ library support
10744 ld_shlibs_CXX=no
10745 ;;
10746 esac
10747 ;;
10748 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10750 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10751 wlarc=
10752 hardcode_libdir_flag_spec_CXX='-R$libdir'
10753 hardcode_direct_CXX=yes
10754 hardcode_shlibpath_var_CXX=no
10755 fi
10756 # Workaround some broken pre-1.5 toolchains
10757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10758 ;;
10759 openbsd2*)
10760 # C++ shared libraries are fairly broken
10761 ld_shlibs_CXX=no
10762 ;;
10763 openbsd*)
10764 hardcode_direct_CXX=yes
10765 hardcode_shlibpath_var_CXX=no
10766 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10769 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10770 export_dynamic_flag_spec_CXX='${wl}-E'
10771 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10772 fi
10773 output_verbose_link_cmd='echo'
10774 ;;
10775 osf3*)
10776 case $cc_basename in
10777 KCC*)
10778 # Kuck and Associates, Inc. (KAI) C++ Compiler
10779
10780 # KCC will only create a shared library if the output file
10781 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10782 # to its proper name (with version) after linking.
10783 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'
10784
10785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10786 hardcode_libdir_separator_CXX=:
10787
10788 # Archives containing C++ object files must be created using
10789 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10790 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10791
10792 ;;
10793 RCC*)
10794 # Rational C++ 2.4.1
10795 # FIXME: insert proper C++ library support
10796 ld_shlibs_CXX=no
10797 ;;
10798 cxx*)
10799 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10800 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'
10801
10802 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10803 hardcode_libdir_separator_CXX=:
10804
10805 # Commands to make compiler produce verbose output that lists
10806 # what "hidden" libraries, object files and flags are used when
10807 # linking a shared library.
10808 #
10809 # There doesn't appear to be a way to prevent this compiler from
10810 # explicitly linking system object files so we need to strip them
10811 # from the output so that they don't get included in the library
10812 # dependencies.
10813 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'
10814 ;;
10815 *)
10816 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10817 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10818 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'
10819
10820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10821 hardcode_libdir_separator_CXX=:
10822
10823 # Commands to make compiler produce verbose output that lists
10824 # what "hidden" libraries, object files and flags are used when
10825 # linking a shared library.
10826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10827
10828 else
10829 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no
10831 fi
10832 ;;
10833 esac
10834 ;;
10835 osf4* | osf5*)
10836 case $cc_basename in
10837 KCC*)
10838 # Kuck and Associates, Inc. (KAI) C++ Compiler
10839
10840 # KCC will only create a shared library if the output file
10841 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10842 # to its proper name (with version) after linking.
10843 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'
10844
10845 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10846 hardcode_libdir_separator_CXX=:
10847
10848 # Archives containing C++ object files must be created using
10849 # the KAI C++ compiler.
10850 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10851 ;;
10852 RCC*)
10853 # Rational C++ 2.4.1
10854 # FIXME: insert proper C++ library support
10855 ld_shlibs_CXX=no
10856 ;;
10857 cxx*)
10858 allow_undefined_flag_CXX=' -expect_unresolved \*'
10859 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'
10860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10861 echo "-hidden">> $lib.exp~
10862 $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~
10863 $rm $lib.exp'
10864
10865 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10866 hardcode_libdir_separator_CXX=:
10867
10868 # Commands to make compiler produce verbose output that lists
10869 # what "hidden" libraries, object files and flags are used when
10870 # linking a shared library.
10871 #
10872 # There doesn't appear to be a way to prevent this compiler from
10873 # explicitly linking system object files so we need to strip them
10874 # from the output so that they don't get included in the library
10875 # dependencies.
10876 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'
10877 ;;
10878 *)
10879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10881 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'
10882
10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10884 hardcode_libdir_separator_CXX=:
10885
10886 # Commands to make compiler produce verbose output that lists
10887 # what "hidden" libraries, object files and flags are used when
10888 # linking a shared library.
10889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10890
10891 else
10892 # FIXME: insert proper C++ library support
10893 ld_shlibs_CXX=no
10894 fi
10895 ;;
10896 esac
10897 ;;
10898 psos*)
10899 # FIXME: insert proper C++ library support
10900 ld_shlibs_CXX=no
10901 ;;
10902 sunos4*)
10903 case $cc_basename in
10904 CC*)
10905 # Sun C++ 4.x
10906 # FIXME: insert proper C++ library support
10907 ld_shlibs_CXX=no
10908 ;;
10909 lcc*)
10910 # Lucid
10911 # FIXME: insert proper C++ library support
10912 ld_shlibs_CXX=no
10913 ;;
10914 *)
10915 # FIXME: insert proper C++ library support
10916 ld_shlibs_CXX=no
10917 ;;
10918 esac
10919 ;;
10920 solaris*)
10921 case $cc_basename in
10922 CC*)
10923 # Sun C++ 4.2, 5.x and Centerline C++
10924 archive_cmds_need_lc_CXX=yes
10925 no_undefined_flag_CXX=' -zdefs'
10926 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10927 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10928 $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'
10929
10930 hardcode_libdir_flag_spec_CXX='-R$libdir'
10931 hardcode_shlibpath_var_CXX=no
10932 case $host_os in
10933 solaris2.[0-5] | solaris2.[0-5].*) ;;
10934 *)
10935 # The C++ compiler is used as linker so we must use $wl
10936 # flag to pass the commands to the underlying system
10937 # linker. We must also pass each convience library through
10938 # to the system linker between allextract/defaultextract.
10939 # The C++ compiler will combine linker options so we
10940 # cannot just pass the convience library names through
10941 # without $wl.
10942 # Supported since Solaris 2.6 (maybe 2.5.1?)
10943 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'
10944 ;;
10945 esac
10946 link_all_deplibs_CXX=yes
10947
10948 output_verbose_link_cmd='echo'
10949
10950 # Archives containing C++ object files must be created using
10951 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10952 # necessary to make sure instantiated templates are included
10953 # in the archive.
10954 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10955 ;;
10956 gcx*)
10957 # Green Hills C++ Compiler
10958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10959
10960 # The C++ compiler must be used to create the archive.
10961 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10962 ;;
10963 *)
10964 # GNU C++ compiler with Solaris linker
10965 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10966 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10967 if $CC --version | grep -v '^2\.7' > /dev/null; then
10968 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10969 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10970 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10971
10972 # Commands to make compiler produce verbose output that lists
10973 # what "hidden" libraries, object files and flags are used when
10974 # linking a shared library.
10975 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10976 else
10977 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10978 # platform.
10979 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10981 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10982
10983 # Commands to make compiler produce verbose output that lists
10984 # what "hidden" libraries, object files and flags are used when
10985 # linking a shared library.
10986 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10987 fi
10988
10989 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10990 fi
10991 ;;
10992 esac
10993 ;;
10994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10995 no_undefined_flag_CXX='${wl}-z,text'
10996 archive_cmds_need_lc_CXX=no
10997 hardcode_shlibpath_var_CXX=no
10998 runpath_var='LD_RUN_PATH'
10999
11000 case $cc_basename in
11001 CC*)
11002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 ;;
11005 *)
11006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 ;;
11009 esac
11010 ;;
11011 sysv5* | sco3.2v5* | sco5v6*)
11012 # Note: We can NOT use -z defs as we might desire, because we do not
11013 # link with -lc, and that would cause any symbols used from libc to
11014 # always be unresolved, which means just about no library would
11015 # ever link correctly. If we're not using GNU ld we use -z text
11016 # though, which does catch some bad symbols but isn't as heavy-handed
11017 # as -z defs.
11018 # For security reasons, it is highly recommended that you always
11019 # use absolute paths for naming shared libraries, and exclude the
11020 # DT_RUNPATH tag from executables and libraries. But doing so
11021 # requires that you compile everything twice, which is a pain.
11022 # So that behaviour is only enabled if SCOABSPATH is set to a
11023 # non-empty value in the environment. Most likely only useful for
11024 # creating official distributions of packages.
11025 # This is a hack until libtool officially supports absolute path
11026 # names for shared libraries.
11027 no_undefined_flag_CXX='${wl}-z,text'
11028 allow_undefined_flag_CXX='${wl}-z,nodefs'
11029 archive_cmds_need_lc_CXX=no
11030 hardcode_shlibpath_var_CXX=no
11031 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11032 hardcode_libdir_separator_CXX=':'
11033 link_all_deplibs_CXX=yes
11034 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11035 runpath_var='LD_RUN_PATH'
11036
11037 case $cc_basename in
11038 CC*)
11039 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 ;;
11042 *)
11043 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 ;;
11046 esac
11047 ;;
11048 tandem*)
11049 case $cc_basename in
11050 NCC*)
11051 # NonStop-UX NCC 3.20
11052 # FIXME: insert proper C++ library support
11053 ld_shlibs_CXX=no
11054 ;;
11055 *)
11056 # FIXME: insert proper C++ library support
11057 ld_shlibs_CXX=no
11058 ;;
11059 esac
11060 ;;
11061 vxworks*)
11062 # FIXME: insert proper C++ library support
11063 ld_shlibs_CXX=no
11064 ;;
11065 *)
11066 # FIXME: insert proper C++ library support
11067 ld_shlibs_CXX=no
11068 ;;
11069esac
11070echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11071echo "${ECHO_T}$ld_shlibs_CXX" >&6
11072test "$ld_shlibs_CXX" = no && can_build_shared=no
11073
11074GCC_CXX="$GXX"
11075LD_CXX="$LD"
11076
11077
11078cat > conftest.$ac_ext <<EOF
11079class Foo
11080{
11081public:
11082 Foo (void) { a = 0; }
11083private:
11084 int a;
11085};
11086EOF
11087
11088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; then
11093 # Parse the compiler output and extract the necessary
11094 # objects, libraries and library flags.
11095
11096 # Sentinel used to keep track of whether or not we are before
11097 # the conftest object file.
11098 pre_test_object_deps_done=no
11099
11100 # The `*' in the case matches for architectures that use `case' in
11101 # $output_verbose_cmd can trigger glob expansion during the loop
11102 # eval without this substitution.
11103 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11104
11105 for p in `eval $output_verbose_link_cmd`; do
11106 case $p in
11107
11108 -L* | -R* | -l*)
11109 # Some compilers place space between "-{L,R}" and the path.
11110 # Remove the space.
11111 if test $p = "-L" \
11112 || test $p = "-R"; then
11113 prev=$p
11114 continue
11115 else
11116 prev=
11117 fi
11118
11119 if test "$pre_test_object_deps_done" = no; then
11120 case $p in
11121 -L* | -R*)
11122 # Internal compiler library paths should come after those
11123 # provided the user. The postdeps already come after the
11124 # user supplied libs so there is no need to process them.
11125 if test -z "$compiler_lib_search_path_CXX"; then
11126 compiler_lib_search_path_CXX="${prev}${p}"
11127 else
11128 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11129 fi
11130 ;;
11131 # The "-l" case would never come before the object being
11132 # linked, so don't bother handling this case.
11133 esac
11134 else
11135 if test -z "$postdeps_CXX"; then
11136 postdeps_CXX="${prev}${p}"
11137 else
11138 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11139 fi
11140 fi
11141 ;;
11142
11143 *.$objext)
11144 # This assumes that the test object file only shows up
11145 # once in the compiler output.
11146 if test "$p" = "conftest.$objext"; then
11147 pre_test_object_deps_done=yes
11148 continue
11149 fi
11150
11151 if test "$pre_test_object_deps_done" = no; then
11152 if test -z "$predep_objects_CXX"; then
11153 predep_objects_CXX="$p"
11154 else
11155 predep_objects_CXX="$predep_objects_CXX $p"
11156 fi
11157 else
11158 if test -z "$postdep_objects_CXX"; then
11159 postdep_objects_CXX="$p"
11160 else
11161 postdep_objects_CXX="$postdep_objects_CXX $p"
11162 fi
11163 fi
11164 ;;
11165
11166 *) ;; # Ignore the rest.
11167
11168 esac
11169 done
11170
11171 # Clean up.
11172 rm -f a.out a.exe
11173else
11174 echo "libtool.m4: error: problem compiling CXX test program"
11175fi
11176
11177$rm -f confest.$objext
11178
11179# PORTME: override above test on systems where it is broken
11180case $host_os in
11181interix3*)
11182 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11183 # hack all around it, let's just trust "g++" to DTRT.
11184 predep_objects_CXX=
11185 postdep_objects_CXX=
11186 postdeps_CXX=
11187 ;;
11188
11189solaris*)
11190 case $cc_basename in
11191 CC*)
11192 # Adding this requires a known-good setup of shared libraries for
11193 # Sun compiler versions before 5.6, else PIC objects from an old
11194 # archive will be linked into the output, leading to subtle bugs.
11195 postdeps_CXX='-lCstd -lCrun'
11196 ;;
11197 esac
11198 ;;
11199esac
11200
11201
11202case " $postdeps_CXX " in
11203*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11204esac
11205
11206lt_prog_compiler_wl_CXX=
11207lt_prog_compiler_pic_CXX=
11208lt_prog_compiler_static_CXX=
11209
11210echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11211echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11212
11213 # C++ specific cases for pic, static, wl, etc.
11214 if test "$GXX" = yes; then
11215 lt_prog_compiler_wl_CXX='-Wl,'
11216 lt_prog_compiler_static_CXX='-static'
11217
11218 case $host_os in
11219 aix*)
11220 # All AIX code is PIC.
11221 if test "$host_cpu" = ia64; then
11222 # AIX 5 now supports IA64 processor
11223 lt_prog_compiler_static_CXX='-Bstatic'
11224 fi
11225 ;;
11226 amigaos*)
11227 # FIXME: we need at least 68020 code to build shared libraries, but
11228 # adding the `-m68020' flag to GCC prevents building anything better,
11229 # like `-m68040'.
11230 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11231 ;;
11232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11233 # PIC is the default for these OSes.
11234 ;;
11235 mingw* | os2* | pw32*)
11236 # This hack is so that the source file can tell whether it is being
11237 # built for inclusion in a dll (and should export symbols for example).
11238 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11239 ;;
11240 darwin* | rhapsody*)
11241 # PIC is the default on this platform
11242 # Common symbols not allowed in MH_DYLIB files
11243 lt_prog_compiler_pic_CXX='-fno-common'
11244 ;;
11245 *djgpp*)
11246 # DJGPP does not support shared libraries at all
11247 lt_prog_compiler_pic_CXX=
11248 ;;
11249 interix3*)
11250 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11251 # Instead, we relocate shared libraries at runtime.
11252 ;;
11253 sysv4*MP*)
11254 if test -d /usr/nec; then
11255 lt_prog_compiler_pic_CXX=-Kconform_pic
11256 fi
11257 ;;
11258 hpux*)
11259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11260 # not for PA HP-UX.
11261 case $host_cpu in
11262 hppa*64*|ia64*)
11263 ;;
11264 *)
11265 lt_prog_compiler_pic_CXX='-fPIC'
11266 ;;
11267 esac
11268 ;;
11269 *)
11270 lt_prog_compiler_pic_CXX='-fPIC'
11271 ;;
11272 esac
11273 else
11274 case $host_os in
11275 aix4* | aix5*)
11276 # All AIX code is PIC.
11277 if test "$host_cpu" = ia64; then
11278 # AIX 5 now supports IA64 processor
11279 lt_prog_compiler_static_CXX='-Bstatic'
11280 else
11281 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11282 fi
11283 ;;
11284 chorus*)
11285 case $cc_basename in
11286 cxch68*)
11287 # Green Hills C++ Compiler
11288 # _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"
11289 ;;
11290 esac
11291 ;;
11292 darwin*)
11293 # PIC is the default on this platform
11294 # Common symbols not allowed in MH_DYLIB files
11295 case $cc_basename in
11296 xlc*)
11297 lt_prog_compiler_pic_CXX='-qnocommon'
11298 lt_prog_compiler_wl_CXX='-Wl,'
11299 ;;
11300 esac
11301 ;;
11302 dgux*)
11303 case $cc_basename in
11304 ec++*)
11305 lt_prog_compiler_pic_CXX='-KPIC'
11306 ;;
11307 ghcx*)
11308 # Green Hills C++ Compiler
11309 lt_prog_compiler_pic_CXX='-pic'
11310 ;;
11311 *)
11312 ;;
11313 esac
11314 ;;
11315 freebsd* | kfreebsd*-gnu | dragonfly*)
11316 # FreeBSD uses GNU C++
11317 ;;
11318 hpux9* | hpux10* | hpux11*)
11319 case $cc_basename in
11320 CC*)
11321 lt_prog_compiler_wl_CXX='-Wl,'
11322 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11323 if test "$host_cpu" != ia64; then
11324 lt_prog_compiler_pic_CXX='+Z'
11325 fi
11326 ;;
11327 aCC*)
11328 lt_prog_compiler_wl_CXX='-Wl,'
11329 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11330 case $host_cpu in
11331 hppa*64*|ia64*)
11332 # +Z the default
11333 ;;
11334 *)
11335 lt_prog_compiler_pic_CXX='+Z'
11336 ;;
11337 esac
11338 ;;
11339 *)
11340 ;;
11341 esac
11342 ;;
11343 interix*)
11344 # This is c89, which is MS Visual C++ (no shared libs)
11345 # Anyone wants to do a port?
11346 ;;
11347 irix5* | irix6* | nonstopux*)
11348 case $cc_basename in
11349 CC*)
11350 lt_prog_compiler_wl_CXX='-Wl,'
11351 lt_prog_compiler_static_CXX='-non_shared'
11352 # CC pic flag -KPIC is the default.
11353 ;;
11354 *)
11355 ;;
11356 esac
11357 ;;
11358 linux*)
11359 case $cc_basename in
11360 KCC*)
11361 # KAI C++ Compiler
11362 lt_prog_compiler_wl_CXX='--backend -Wl,'
11363 lt_prog_compiler_pic_CXX='-fPIC'
11364 ;;
11365 icpc* | ecpc*)
11366 # Intel C++
11367 lt_prog_compiler_wl_CXX='-Wl,'
11368 lt_prog_compiler_pic_CXX='-KPIC'
11369 lt_prog_compiler_static_CXX='-static'
11370 ;;
11371 pgCC*)
11372 # Portland Group C++ compiler.
11373 lt_prog_compiler_wl_CXX='-Wl,'
11374 lt_prog_compiler_pic_CXX='-fpic'
11375 lt_prog_compiler_static_CXX='-Bstatic'
11376 ;;
11377 cxx*)
11378 # Compaq C++
11379 # Make sure the PIC flag is empty. It appears that all Alpha
11380 # Linux and Compaq Tru64 Unix objects are PIC.
11381 lt_prog_compiler_pic_CXX=
11382 lt_prog_compiler_static_CXX='-non_shared'
11383 ;;
11384 *)
11385 ;;
11386 esac
11387 ;;
11388 lynxos*)
11389 ;;
11390 m88k*)
11391 ;;
11392 mvs*)
11393 case $cc_basename in
11394 cxx*)
11395 lt_prog_compiler_pic_CXX='-W c,exportall'
11396 ;;
11397 *)
11398 ;;
11399 esac
11400 ;;
11401 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11402 ;;
11403 osf3* | osf4* | osf5*)
11404 case $cc_basename in
11405 KCC*)
11406 lt_prog_compiler_wl_CXX='--backend -Wl,'
11407 ;;
11408 RCC*)
11409 # Rational C++ 2.4.1
11410 lt_prog_compiler_pic_CXX='-pic'
11411 ;;
11412 cxx*)
11413 # Digital/Compaq C++
11414 lt_prog_compiler_wl_CXX='-Wl,'
11415 # Make sure the PIC flag is empty. It appears that all Alpha
11416 # Linux and Compaq Tru64 Unix objects are PIC.
11417 lt_prog_compiler_pic_CXX=
11418 lt_prog_compiler_static_CXX='-non_shared'
11419 ;;
11420 *)
11421 ;;
11422 esac
11423 ;;
11424 psos*)
11425 ;;
11426 solaris*)
11427 case $cc_basename in
11428 CC*)
11429 # Sun C++ 4.2, 5.x and Centerline C++
11430 lt_prog_compiler_pic_CXX='-KPIC'
11431 lt_prog_compiler_static_CXX='-Bstatic'
11432 lt_prog_compiler_wl_CXX='-Qoption ld '
11433 ;;
11434 gcx*)
11435 # Green Hills C++ Compiler
11436 lt_prog_compiler_pic_CXX='-PIC'
11437 ;;
11438 *)
11439 ;;
11440 esac
11441 ;;
11442 sunos4*)
11443 case $cc_basename in
11444 CC*)
11445 # Sun C++ 4.x
11446 lt_prog_compiler_pic_CXX='-pic'
11447 lt_prog_compiler_static_CXX='-Bstatic'
11448 ;;
11449 lcc*)
11450 # Lucid
11451 lt_prog_compiler_pic_CXX='-pic'
11452 ;;
11453 *)
11454 ;;
11455 esac
11456 ;;
11457 tandem*)
11458 case $cc_basename in
11459 NCC*)
11460 # NonStop-UX NCC 3.20
11461 lt_prog_compiler_pic_CXX='-KPIC'
11462 ;;
11463 *)
11464 ;;
11465 esac
11466 ;;
11467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11468 case $cc_basename in
11469 CC*)
11470 lt_prog_compiler_wl_CXX='-Wl,'
11471 lt_prog_compiler_pic_CXX='-KPIC'
11472 lt_prog_compiler_static_CXX='-Bstatic'
11473 ;;
11474 esac
11475 ;;
11476 vxworks*)
11477 ;;
11478 *)
11479 lt_prog_compiler_can_build_shared_CXX=no
11480 ;;
11481 esac
11482 fi
11483
11484echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11485echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11486
11487#
11488# Check to make sure the PIC flag actually works.
11489#
11490if test -n "$lt_prog_compiler_pic_CXX"; then
11491
11492echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11493echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11494if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 lt_prog_compiler_pic_works_CXX=no
11498 ac_outfile=conftest.$ac_objext
11499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11500 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11501 # Insert the option either (1) after the last *FLAGS variable, or
11502 # (2) before a word containing "conftest.", or (3) at the end.
11503 # Note that $ac_compile itself does not contain backslashes and begins
11504 # with a dollar sign (not a hyphen), so the echo should work correctly.
11505 # The option is referenced via a variable to avoid confusing sed.
11506 lt_compile=`echo "$ac_compile" | $SED \
11507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11509 -e 's:$: $lt_compiler_flag:'`
11510 (eval echo "\"\$as_me:11510: $lt_compile\"" >&5)
11511 (eval "$lt_compile" 2>conftest.err)
11512 ac_status=$?
11513 cat conftest.err >&5
11514 echo "$as_me:11514: \$? = $ac_status" >&5
11515 if (exit $ac_status) && test -s "$ac_outfile"; then
11516 # The compiler can only warn and ignore the option if not recognized
11517 # So say no if there are warnings other than the usual output.
11518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11521 lt_prog_compiler_pic_works_CXX=yes
11522 fi
11523 fi
11524 $rm conftest*
11525
11526fi
11527echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11528echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11529
11530if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11531 case $lt_prog_compiler_pic_CXX in
11532 "" | " "*) ;;
11533 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11534 esac
11535else
11536 lt_prog_compiler_pic_CXX=
11537 lt_prog_compiler_can_build_shared_CXX=no
11538fi
11539
11540fi
11541case $host_os in
11542 # For platforms which do not support PIC, -DPIC is meaningless:
11543 *djgpp*)
11544 lt_prog_compiler_pic_CXX=
11545 ;;
11546 *)
11547 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11548 ;;
11549esac
11550
11551#
11552# Check to make sure the static flag actually works.
11553#
11554wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11555echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11556echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11557if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559else
11560 lt_prog_compiler_static_works_CXX=no
11561 save_LDFLAGS="$LDFLAGS"
11562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11563 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11565 # The linker can only warn and ignore the option if not recognized
11566 # So say no if there are warnings
11567 if test -s conftest.err; then
11568 # Append any errors to the config.log.
11569 cat conftest.err 1>&5
11570 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11572 if diff conftest.exp conftest.er2 >/dev/null; then
11573 lt_prog_compiler_static_works_CXX=yes
11574 fi
11575 else
11576 lt_prog_compiler_static_works_CXX=yes
11577 fi
11578 fi
11579 $rm conftest*
11580 LDFLAGS="$save_LDFLAGS"
11581
11582fi
11583echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11584echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11585
11586if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11587 :
11588else
11589 lt_prog_compiler_static_CXX=
11590fi
11591
11592
11593echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11594echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11595if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597else
11598 lt_cv_prog_compiler_c_o_CXX=no
11599 $rm -r conftest 2>/dev/null
11600 mkdir conftest
11601 cd conftest
11602 mkdir out
11603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11604
11605 lt_compiler_flag="-o out/conftest2.$ac_objext"
11606 # Insert the option either (1) after the last *FLAGS variable, or
11607 # (2) before a word containing "conftest.", or (3) at the end.
11608 # Note that $ac_compile itself does not contain backslashes and begins
11609 # with a dollar sign (not a hyphen), so the echo should work correctly.
11610 lt_compile=`echo "$ac_compile" | $SED \
11611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11613 -e 's:$: $lt_compiler_flag:'`
11614 (eval echo "\"\$as_me:11614: $lt_compile\"" >&5)
11615 (eval "$lt_compile" 2>out/conftest.err)
11616 ac_status=$?
11617 cat out/conftest.err >&5
11618 echo "$as_me:11618: \$? = $ac_status" >&5
11619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11620 then
11621 # The compiler can only warn and ignore the option if not recognized
11622 # So say no if there are warnings
11623 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11626 lt_cv_prog_compiler_c_o_CXX=yes
11627 fi
11628 fi
11629 chmod u+w . 2>&5
11630 $rm conftest*
11631 # SGI C++ compiler will create directory out/ii_files/ for
11632 # template instantiation
11633 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11634 $rm out/* && rmdir out
11635 cd ..
11636 rmdir conftest
11637 $rm conftest*
11638
11639fi
11640echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11641echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11642
11643
11644hard_links="nottested"
11645if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11646 # do not overwrite the value of need_locks provided by the user
11647 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11648echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11649 hard_links=yes
11650 $rm conftest*
11651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11652 touch conftest.a
11653 ln conftest.a conftest.b 2>&5 || hard_links=no
11654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11655 echo "$as_me:$LINENO: result: $hard_links" >&5
11656echo "${ECHO_T}$hard_links" >&6
11657 if test "$hard_links" = no; then
11658 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11659echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11660 need_locks=warn
11661 fi
11662else
11663 need_locks=no
11664fi
11665
11666echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11667echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11668
11669 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11670 case $host_os in
11671 aix4* | aix5*)
11672 # If we're using GNU nm, then we don't want the "-C" option.
11673 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11674 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11675 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'
11676 else
11677 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'
11678 fi
11679 ;;
11680 pw32*)
11681 export_symbols_cmds_CXX="$ltdll_cmds"
11682 ;;
11683 cygwin* | mingw*)
11684 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'
11685 ;;
11686 kfreebsd*-gnu)
11687 link_all_deplibs_CXX=no
11688 ;;
11689 linux*)
11690 link_all_deplibs_CXX=no
11691 ;;
11692 *)
11693 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11694 ;;
11695 esac
11696
11697echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11698echo "${ECHO_T}$ld_shlibs_CXX" >&6
11699test "$ld_shlibs_CXX" = no && can_build_shared=no
11700
11701#
11702# Do we need to explicitly link libc?
11703#
11704case "x$archive_cmds_need_lc_CXX" in
11705x|xyes)
11706 # Assume -lc should be added
11707 archive_cmds_need_lc_CXX=yes
11708
11709 if test "$enable_shared" = yes && test "$GCC" = yes; then
11710 case $archive_cmds_CXX in
11711 *'~'*)
11712 # FIXME: we may have to deal with multi-command sequences.
11713 ;;
11714 '$CC '*)
11715 # Test whether the compiler implicitly links with -lc since on some
11716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11717 # to ld, don't add -lc before -lgcc.
11718 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11719echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11720 $rm conftest*
11721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11722
11723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } 2>conftest.err; then
11728 soname=conftest
11729 lib=conftest
11730 libobjs=conftest.$ac_objext
11731 deplibs=
11732 wl=$lt_prog_compiler_wl_CXX
11733 pic_flag=$lt_prog_compiler_pic_CXX
11734 compiler_flags=-v
11735 linker_flags=-v
11736 verstring=
11737 output_objdir=.
11738 libname=conftest
11739 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11740 allow_undefined_flag_CXX=
11741 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11742 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }
11746 then
11747 archive_cmds_need_lc_CXX=no
11748 else
11749 archive_cmds_need_lc_CXX=yes
11750 fi
11751 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11752 else
11753 cat conftest.err 1>&5
11754 fi
11755 $rm conftest*
11756 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11757echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11758 ;;
11759 esac
11760 fi
11761 ;;
11762esac
11763
11764echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11765echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11766library_names_spec=
11767libname_spec='lib$name'
11768soname_spec=
11769shrext_cmds=".so"
11770postinstall_cmds=
11771postuninstall_cmds=
11772finish_cmds=
11773finish_eval=
11774shlibpath_var=
11775shlibpath_overrides_runpath=unknown
11776version_type=none
11777dynamic_linker="$host_os ld.so"
11778sys_lib_dlsearch_path_spec="/lib /usr/lib"
11779if test "$GCC" = yes; then
11780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11782 # if the path contains ";" then we assume it to be the separator
11783 # otherwise default to the standard path separator (i.e. ":") - it is
11784 # assumed that no part of a normal pathname contains ";" but that should
11785 # okay in the real world where ";" in dirpaths is itself problematic.
11786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11787 else
11788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11789 fi
11790else
11791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11792fi
11793need_lib_prefix=unknown
11794hardcode_into_libs=no
11795
11796# when you set need_version to no, make sure it does not cause -set_version
11797# flags to be left without arguments
11798need_version=unknown
11799
11800case $host_os in
11801aix3*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11804 shlibpath_var=LIBPATH
11805
11806 # AIX 3 has no versioning support, so we append a major version to the name.
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 ;;
11809
11810aix4* | aix5*)
11811 version_type=linux
11812 need_lib_prefix=no
11813 need_version=no
11814 hardcode_into_libs=yes
11815 if test "$host_cpu" = ia64; then
11816 # AIX 5 supports IA64
11817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 else
11820 # With GCC up to 2.95.x, collect2 would create an import file
11821 # for dependence libraries. The import file would start with
11822 # the line `#! .'. This would cause the generated library to
11823 # depend on `.', always an invalid library. This was fixed in
11824 # development snapshots of GCC prior to 3.0.
11825 case $host_os in
11826 aix4 | aix4.[01] | aix4.[01].*)
11827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11828 echo ' yes '
11829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11830 :
11831 else
11832 can_build_shared=no
11833 fi
11834 ;;
11835 esac
11836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11837 # soname into executable. Probably we can add versioning support to
11838 # collect2, so additional links can be useful in future.
11839 if test "$aix_use_runtimelinking" = yes; then
11840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11841 # instead of lib<name>.a to let people know that these are not
11842 # typical AIX shared libraries.
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 else
11845 # We preserve .a as extension for shared libraries through AIX4.2
11846 # and later when we are not doing run time linking.
11847 library_names_spec='${libname}${release}.a $libname.a'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 fi
11850 shlibpath_var=LIBPATH
11851 fi
11852 ;;
11853
11854amigaos*)
11855 library_names_spec='$libname.ixlibrary $libname.a'
11856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11857 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'
11858 ;;
11859
11860beos*)
11861 library_names_spec='${libname}${shared_ext}'
11862 dynamic_linker="$host_os ld.so"
11863 shlibpath_var=LIBRARY_PATH
11864 ;;
11865
11866bsdi[45]*)
11867 version_type=linux
11868 need_version=no
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11875 # the default ld.so.conf also contains /usr/contrib/lib and
11876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11877 # libtool to hard-code these into programs
11878 ;;
11879
11880cygwin* | mingw* | pw32*)
11881 version_type=windows
11882 shrext_cmds=".dll"
11883 need_version=no
11884 need_lib_prefix=no
11885
11886 case $GCC,$host_os in
11887 yes,cygwin* | yes,mingw* | yes,pw32*)
11888 library_names_spec='$libname.dll.a'
11889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11890 postinstall_cmds='base_file=`basename \${file}`~
11891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11892 dldir=$destdir/`dirname \$dlpath`~
11893 test -d \$dldir || mkdir -p \$dldir~
11894 $install_prog $dir/$dlname \$dldir/$dlname~
11895 chmod a+x \$dldir/$dlname'
11896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11897 dlpath=$dir/\$dldll~
11898 $rm \$dlpath'
11899 shlibpath_overrides_runpath=yes
11900
11901 case $host_os in
11902 cygwin*)
11903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11905 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11906 ;;
11907 mingw*)
11908 # MinGW DLLs use traditional 'lib' prefix
11909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11911 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11912 # It is most probably a Windows format PATH printed by
11913 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11914 # path with ; separators, and with drive letters. We can handle the
11915 # drive letters (cygwin fileutils understands them), so leave them,
11916 # especially as we might pass files found there to a mingw objdump,
11917 # which wouldn't understand a cygwinified path. Ahh.
11918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11919 else
11920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11921 fi
11922 ;;
11923 pw32*)
11924 # pw32 DLLs use 'pw' prefix rather than 'lib'
11925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11926 ;;
11927 esac
11928 ;;
11929
11930 *)
11931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11932 ;;
11933 esac
11934 dynamic_linker='Win32 ld.exe'
11935 # FIXME: first we should search . and the directory the executable is in
11936 shlibpath_var=PATH
11937 ;;
11938
11939darwin* | rhapsody*)
11940 dynamic_linker="$host_os dyld"
11941 version_type=darwin
11942 need_lib_prefix=no
11943 need_version=no
11944 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11945 soname_spec='${libname}${release}${major}$shared_ext'
11946 shlibpath_overrides_runpath=yes
11947 shlibpath_var=DYLD_LIBRARY_PATH
11948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11949 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11950 if test "$GCC" = yes; then
11951 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"`
11952 else
11953 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11954 fi
11955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11956 ;;
11957
11958dgux*)
11959 version_type=linux
11960 need_lib_prefix=no
11961 need_version=no
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 ;;
11966
11967freebsd1*)
11968 dynamic_linker=no
11969 ;;
11970
11971kfreebsd*-gnu)
11972 version_type=linux
11973 need_lib_prefix=no
11974 need_version=no
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=no
11979 hardcode_into_libs=yes
11980 dynamic_linker='GNU ld.so'
11981 ;;
11982
11983freebsd* | dragonfly*)
11984 # DragonFly does not have aout. When/if they implement a new
11985 # versioning mechanism, adjust this.
11986 if test -x /usr/bin/objformat; then
11987 objformat=`/usr/bin/objformat`
11988 else
11989 case $host_os in
11990 freebsd[123]*) objformat=aout ;;
11991 *) objformat=elf ;;
11992 esac
11993 fi
11994 version_type=freebsd-$objformat
11995 case $version_type in
11996 freebsd-elf*)
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11998 need_version=no
11999 need_lib_prefix=no
12000 ;;
12001 freebsd-*)
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12003 need_version=yes
12004 ;;
12005 esac
12006 shlibpath_var=LD_LIBRARY_PATH
12007 case $host_os in
12008 freebsd2*)
12009 shlibpath_overrides_runpath=yes
12010 ;;
12011 freebsd3.[01]* | freebsdelf3.[01]*)
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12014 ;;
12015 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12016 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12017 shlibpath_overrides_runpath=no
12018 hardcode_into_libs=yes
12019 ;;
12020 freebsd*) # from 4.6 on
12021 shlibpath_overrides_runpath=yes
12022 hardcode_into_libs=yes
12023 ;;
12024 esac
12025 ;;
12026
12027gnu*)
12028 version_type=linux
12029 need_lib_prefix=no
12030 need_version=no
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 hardcode_into_libs=yes
12035 ;;
12036
12037hpux9* | hpux10* | hpux11*)
12038 # Give a soname corresponding to the major version so that dld.sl refuses to
12039 # link against other versions.
12040 version_type=sunos
12041 need_lib_prefix=no
12042 need_version=no
12043 case $host_cpu in
12044 ia64*)
12045 shrext_cmds='.so'
12046 hardcode_into_libs=yes
12047 dynamic_linker="$host_os dld.so"
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 if test "X$HPUX_IA64_MODE" = X32; then
12053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12054 else
12055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12056 fi
12057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12058 ;;
12059 hppa*64*)
12060 shrext_cmds='.sl'
12061 hardcode_into_libs=yes
12062 dynamic_linker="$host_os dld.sl"
12063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12069 ;;
12070 *)
12071 shrext_cmds='.sl'
12072 dynamic_linker="$host_os dld.sl"
12073 shlibpath_var=SHLIB_PATH
12074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076 soname_spec='${libname}${release}${shared_ext}$major'
12077 ;;
12078 esac
12079 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12080 postinstall_cmds='chmod 555 $lib'
12081 ;;
12082
12083interix3*)
12084 version_type=linux
12085 need_lib_prefix=no
12086 need_version=no
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12088 soname_spec='${libname}${release}${shared_ext}$major'
12089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=no
12092 hardcode_into_libs=yes
12093 ;;
12094
12095irix5* | irix6* | nonstopux*)
12096 case $host_os in
12097 nonstopux*) version_type=nonstopux ;;
12098 *)
12099 if test "$lt_cv_prog_gnu_ld" = yes; then
12100 version_type=linux
12101 else
12102 version_type=irix
12103 fi ;;
12104 esac
12105 need_lib_prefix=no
12106 need_version=no
12107 soname_spec='${libname}${release}${shared_ext}$major'
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12109 case $host_os in
12110 irix5* | nonstopux*)
12111 libsuff= shlibsuff=
12112 ;;
12113 *)
12114 case $LD in # libtool.m4 will add one of these switches to LD
12115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12116 libsuff= shlibsuff= libmagic=32-bit;;
12117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12118 libsuff=32 shlibsuff=N32 libmagic=N32;;
12119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12121 *) libsuff= shlibsuff= libmagic=never-match;;
12122 esac
12123 ;;
12124 esac
12125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12126 shlibpath_overrides_runpath=no
12127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12129 hardcode_into_libs=yes
12130 ;;
12131
12132# No shared lib support for Linux oldld, aout, or coff.
12133linux*oldld* | linux*aout* | linux*coff*)
12134 dynamic_linker=no
12135 ;;
12136
12137# This must be Linux ELF.
12138linux*)
12139 version_type=linux
12140 need_lib_prefix=no
12141 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=no
12147 # This implies no fast_install, which is unacceptable.
12148 # Some rework will be needed to allow for fast_install
12149 # before this can be enabled.
12150 hardcode_into_libs=yes
12151
12152 # Append ld.so.conf contents to the search path
12153 if test -f /etc/ld.so.conf; then
12154 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12156 fi
12157
12158 # We used to test for /lib/ld.so.1 and disable shared libraries on
12159 # powerpc, because MkLinux only supported shared libraries with the
12160 # GNU dynamic linker. Since this was broken with cross compilers,
12161 # most powerpc-linux boxes support dynamic linking these days and
12162 # people can always --disable-shared, the test was removed, and we
12163 # assume the GNU/Linux dynamic linker is in use.
12164 dynamic_linker='GNU/Linux ld.so'
12165 ;;
12166
12167netbsdelf*-gnu)
12168 version_type=linux
12169 need_lib_prefix=no
12170 need_version=no
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12172 soname_spec='${libname}${release}${shared_ext}$major'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath=no
12175 hardcode_into_libs=yes
12176 dynamic_linker='NetBSD ld.elf_so'
12177 ;;
12178
12179knetbsd*-gnu)
12180 version_type=linux
12181 need_lib_prefix=no
12182 need_version=no
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12184 soname_spec='${libname}${release}${shared_ext}$major'
12185 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=no
12187 hardcode_into_libs=yes
12188 dynamic_linker='GNU ld.so'
12189 ;;
12190
12191netbsd*)
12192 version_type=sunos
12193 need_lib_prefix=no
12194 need_version=no
12195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12198 dynamic_linker='NetBSD (a.out) ld.so'
12199 else
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 dynamic_linker='NetBSD ld.elf_so'
12203 fi
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=yes
12206 hardcode_into_libs=yes
12207 ;;
12208
12209newsos6)
12210 version_type=linux
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=yes
12214 ;;
12215
12216nto-qnx*)
12217 version_type=linux
12218 need_lib_prefix=no
12219 need_version=no
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12224 ;;
12225
12226openbsd*)
12227 version_type=sunos
12228 sys_lib_dlsearch_path_spec="/usr/lib"
12229 need_lib_prefix=no
12230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12231 case $host_os in
12232 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12233 *) need_version=no ;;
12234 esac
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12239 case $host_os in
12240 openbsd2.[89] | openbsd2.[89].*)
12241 shlibpath_overrides_runpath=no
12242 ;;
12243 *)
12244 shlibpath_overrides_runpath=yes
12245 ;;
12246 esac
12247 else
12248 shlibpath_overrides_runpath=yes
12249 fi
12250 ;;
12251
12252os2*)
12253 libname_spec='$name'
12254 shrext_cmds=".dll"
12255 need_lib_prefix=no
12256 library_names_spec='$libname${shared_ext} $libname.a'
12257 dynamic_linker='OS/2 ld.exe'
12258 shlibpath_var=LIBPATH
12259 ;;
12260
12261osf3* | osf4* | osf5*)
12262 version_type=osf
12263 need_lib_prefix=no
12264 need_version=no
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12270 ;;
12271
12272solaris*)
12273 version_type=linux
12274 need_lib_prefix=no
12275 need_version=no
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277 soname_spec='${libname}${release}${shared_ext}$major'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=yes
12280 hardcode_into_libs=yes
12281 # ldd complains unless libraries are executable
12282 postinstall_cmds='chmod +x $lib'
12283 ;;
12284
12285sunos4*)
12286 version_type=sunos
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12288 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=yes
12291 if test "$with_gnu_ld" = yes; then
12292 need_lib_prefix=no
12293 fi
12294 need_version=yes
12295 ;;
12296
12297sysv4 | sysv4.3*)
12298 version_type=linux
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 case $host_vendor in
12303 sni)
12304 shlibpath_overrides_runpath=no
12305 need_lib_prefix=no
12306 export_dynamic_flag_spec='${wl}-Blargedynsym'
12307 runpath_var=LD_RUN_PATH
12308 ;;
12309 siemens)
12310 need_lib_prefix=no
12311 ;;
12312 motorola)
12313 need_lib_prefix=no
12314 need_version=no
12315 shlibpath_overrides_runpath=no
12316 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12317 ;;
12318 esac
12319 ;;
12320
12321sysv4*MP*)
12322 if test -d /usr/nec ;then
12323 version_type=linux
12324 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12325 soname_spec='$libname${shared_ext}.$major'
12326 shlibpath_var=LD_LIBRARY_PATH
12327 fi
12328 ;;
12329
12330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12331 version_type=freebsd-elf
12332 need_lib_prefix=no
12333 need_version=no
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12335 soname_spec='${libname}${release}${shared_ext}$major'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 hardcode_into_libs=yes
12338 if test "$with_gnu_ld" = yes; then
12339 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12340 shlibpath_overrides_runpath=no
12341 else
12342 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12343 shlibpath_overrides_runpath=yes
12344 case $host_os in
12345 sco3.2v5*)
12346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12347 ;;
12348 esac
12349 fi
12350 sys_lib_dlsearch_path_spec='/usr/lib'
12351 ;;
12352
12353uts4*)
12354 version_type=linux
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12357 shlibpath_var=LD_LIBRARY_PATH
12358 ;;
12359
12360*)
12361 dynamic_linker=no
12362 ;;
12363esac
12364echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12365echo "${ECHO_T}$dynamic_linker" >&6
12366test "$dynamic_linker" = no && can_build_shared=no
12367
12368variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12369if test "$GCC" = yes; then
12370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12371fi
12372
12373echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12374echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12375hardcode_action_CXX=
12376if test -n "$hardcode_libdir_flag_spec_CXX" || \
12377 test -n "$runpath_var_CXX" || \
12378 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12379
12380 # We can hardcode non-existant directories.
12381 if test "$hardcode_direct_CXX" != no &&
12382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12383 # have to relink, otherwise we might link with an installed library
12384 # when we should be linking with a yet-to-be-installed one
12385 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12386 test "$hardcode_minus_L_CXX" != no; then
12387 # Linking always hardcodes the temporary library directory.
12388 hardcode_action_CXX=relink
12389 else
12390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12391 hardcode_action_CXX=immediate
12392 fi
12393else
12394 # We cannot hardcode anything, or else we can only hardcode existing
12395 # directories.
12396 hardcode_action_CXX=unsupported
12397fi
12398echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12399echo "${ECHO_T}$hardcode_action_CXX" >&6
12400
12401if test "$hardcode_action_CXX" = relink; then
12402 # Fast installation is not supported
12403 enable_fast_install=no
12404elif test "$shlibpath_overrides_runpath" = yes ||
12405 test "$enable_shared" = no; then
12406 # Fast installation is not necessary
12407 enable_fast_install=needless
12408fi
12409
12410
12411# The else clause should only fire when bootstrapping the
12412# libtool distribution, otherwise you forgot to ship ltmain.sh
12413# with your package, and you will get complaints that there are
12414# no rules to generate ltmain.sh.
12415if test -f "$ltmain"; then
12416 # See if we are running on zsh, and set the options which allow our commands through
12417 # without removal of \ escapes.
12418 if test -n "${ZSH_VERSION+set}" ; then
12419 setopt NO_GLOB_SUBST
12420 fi
12421 # Now quote all the things that may contain metacharacters while being
12422 # careful not to overquote the AC_SUBSTed values. We take copies of the
12423 # variables and quote the copies for generation of the libtool script.
12424 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12425 SED SHELL STRIP \
12426 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12427 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12428 deplibs_check_method reload_flag reload_cmds need_locks \
12429 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12430 lt_cv_sys_global_symbol_to_c_name_address \
12431 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12432 old_postinstall_cmds old_postuninstall_cmds \
12433 compiler_CXX \
12434 CC_CXX \
12435 LD_CXX \
12436 lt_prog_compiler_wl_CXX \
12437 lt_prog_compiler_pic_CXX \
12438 lt_prog_compiler_static_CXX \
12439 lt_prog_compiler_no_builtin_flag_CXX \
12440 export_dynamic_flag_spec_CXX \
12441 thread_safe_flag_spec_CXX \
12442 whole_archive_flag_spec_CXX \
12443 enable_shared_with_static_runtimes_CXX \
12444 old_archive_cmds_CXX \
12445 old_archive_from_new_cmds_CXX \
12446 predep_objects_CXX \
12447 postdep_objects_CXX \
12448 predeps_CXX \
12449 postdeps_CXX \
12450 compiler_lib_search_path_CXX \
12451 archive_cmds_CXX \
12452 archive_expsym_cmds_CXX \
12453 postinstall_cmds_CXX \
12454 postuninstall_cmds_CXX \
12455 old_archive_from_expsyms_cmds_CXX \
12456 allow_undefined_flag_CXX \
12457 no_undefined_flag_CXX \
12458 export_symbols_cmds_CXX \
12459 hardcode_libdir_flag_spec_CXX \
12460 hardcode_libdir_flag_spec_ld_CXX \
12461 hardcode_libdir_separator_CXX \
12462 hardcode_automatic_CXX \
12463 module_cmds_CXX \
12464 module_expsym_cmds_CXX \
12465 lt_cv_prog_compiler_c_o_CXX \
12466 exclude_expsyms_CXX \
12467 include_expsyms_CXX; do
12468
12469 case $var in
12470 old_archive_cmds_CXX | \
12471 old_archive_from_new_cmds_CXX | \
12472 archive_cmds_CXX | \
12473 archive_expsym_cmds_CXX | \
12474 module_cmds_CXX | \
12475 module_expsym_cmds_CXX | \
12476 old_archive_from_expsyms_cmds_CXX | \
12477 export_symbols_cmds_CXX | \
12478 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12479 postinstall_cmds | postuninstall_cmds | \
12480 old_postinstall_cmds | old_postuninstall_cmds | \
12481 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12482 # Double-quote double-evaled strings.
12483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12484 ;;
12485 *)
12486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12487 ;;
12488 esac
12489 done
12490
12491 case $lt_echo in
12492 *'\$0 --fallback-echo"')
12493 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12494 ;;
12495 esac
12496
12497cfgfile="$ofile"
12498
12499 cat <<__EOF__ >> "$cfgfile"
12500# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12501
12502# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12503
12504# Shell to use when invoking shell scripts.
12505SHELL=$lt_SHELL
12506
12507# Whether or not to build shared libraries.
12508build_libtool_libs=$enable_shared
12509
12510# Whether or not to build static libraries.
12511build_old_libs=$enable_static
12512
12513# Whether or not to add -lc for building shared libraries.
12514build_libtool_need_lc=$archive_cmds_need_lc_CXX
12515
12516# Whether or not to disallow shared libs when runtime libs are static
12517allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12518
12519# Whether or not to optimize for fast installation.
12520fast_install=$enable_fast_install
12521
12522# The host system.
12523host_alias=$host_alias
12524host=$host
12525host_os=$host_os
12526
12527# The build system.
12528build_alias=$build_alias
12529build=$build
12530build_os=$build_os
12531
12532# An echo program that does not interpret backslashes.
12533echo=$lt_echo
12534
12535# The archiver.
12536AR=$lt_AR
12537AR_FLAGS=$lt_AR_FLAGS
12538
12539# A C compiler.
12540LTCC=$lt_LTCC
12541
12542# LTCC compiler flags.
12543LTCFLAGS=$lt_LTCFLAGS
12544
12545# A language-specific compiler.
12546CC=$lt_compiler_CXX
12547
12548# Is the compiler the GNU C compiler?
12549with_gcc=$GCC_CXX
12550
12551# An ERE matcher.
12552EGREP=$lt_EGREP
12553
12554# The linker used to build libraries.
12555LD=$lt_LD_CXX
12556
12557# Whether we need hard or soft links.
12558LN_S=$lt_LN_S
12559
12560# A BSD-compatible nm program.
12561NM=$lt_NM
12562
12563# A symbol stripping program
12564STRIP=$lt_STRIP
12565
12566# Used to examine libraries when file_magic_cmd begins "file"
12567MAGIC_CMD=$MAGIC_CMD
12568
12569# Used on cygwin: DLL creation program.
12570DLLTOOL="$DLLTOOL"
12571
12572# Used on cygwin: object dumper.
12573OBJDUMP="$OBJDUMP"
12574
12575# Used on cygwin: assembler.
12576AS="$AS"
12577
12578# The name of the directory that contains temporary libtool files.
12579objdir=$objdir
12580
12581# How to create reloadable object files.
12582reload_flag=$lt_reload_flag
12583reload_cmds=$lt_reload_cmds
12584
12585# How to pass a linker flag through the compiler.
12586wl=$lt_lt_prog_compiler_wl_CXX
12587
12588# Object file suffix (normally "o").
12589objext="$ac_objext"
12590
12591# Old archive suffix (normally "a").
12592libext="$libext"
12593
12594# Shared library suffix (normally ".so").
12595shrext_cmds='$shrext_cmds'
12596
12597# Executable file suffix (normally "").
12598exeext="$exeext"
12599
12600# Additional compiler flags for building library objects.
12601pic_flag=$lt_lt_prog_compiler_pic_CXX
12602pic_mode=$pic_mode
12603
12604# What is the maximum length of a command?
12605max_cmd_len=$lt_cv_sys_max_cmd_len
12606
12607# Does compiler simultaneously support -c and -o options?
12608compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12609
12610# Must we lock files when doing compilation?
12611need_locks=$lt_need_locks
12612
12613# Do we need the lib prefix for modules?
12614need_lib_prefix=$need_lib_prefix
12615
12616# Do we need a version for libraries?
12617need_version=$need_version
12618
12619# Whether dlopen is supported.
12620dlopen_support=$enable_dlopen
12621
12622# Whether dlopen of programs is supported.
12623dlopen_self=$enable_dlopen_self
12624
12625# Whether dlopen of statically linked programs is supported.
12626dlopen_self_static=$enable_dlopen_self_static
12627
12628# Compiler flag to prevent dynamic linking.
12629link_static_flag=$lt_lt_prog_compiler_static_CXX
12630
12631# Compiler flag to turn off builtin functions.
12632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12633
12634# Compiler flag to allow reflexive dlopens.
12635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12636
12637# Compiler flag to generate shared objects directly from archives.
12638whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12639
12640# Compiler flag to generate thread-safe objects.
12641thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12642
12643# Library versioning type.
12644version_type=$version_type
12645
12646# Format of library name prefix.
12647libname_spec=$lt_libname_spec
12648
12649# List of archive names. First name is the real one, the rest are links.
12650# The last name is the one that the linker finds with -lNAME.
12651library_names_spec=$lt_library_names_spec
12652
12653# The coded name of the library, if different from the real name.
12654soname_spec=$lt_soname_spec
12655
12656# Commands used to build and install an old-style archive.
12657RANLIB=$lt_RANLIB
12658old_archive_cmds=$lt_old_archive_cmds_CXX
12659old_postinstall_cmds=$lt_old_postinstall_cmds
12660old_postuninstall_cmds=$lt_old_postuninstall_cmds
12661
12662# Create an old-style archive from a shared archive.
12663old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12664
12665# Create a temporary old-style archive to link instead of a shared archive.
12666old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12667
12668# Commands used to build and install a shared archive.
12669archive_cmds=$lt_archive_cmds_CXX
12670archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12671postinstall_cmds=$lt_postinstall_cmds
12672postuninstall_cmds=$lt_postuninstall_cmds
12673
12674# Commands used to build a loadable module (assumed same as above if empty)
12675module_cmds=$lt_module_cmds_CXX
12676module_expsym_cmds=$lt_module_expsym_cmds_CXX
12677
12678# Commands to strip libraries.
12679old_striplib=$lt_old_striplib
12680striplib=$lt_striplib
12681
12682# Dependencies to place before the objects being linked to create a
12683# shared library.
12684predep_objects=$lt_predep_objects_CXX
12685
12686# Dependencies to place after the objects being linked to create a
12687# shared library.
12688postdep_objects=$lt_postdep_objects_CXX
12689
12690# Dependencies to place before the objects being linked to create a
12691# shared library.
12692predeps=$lt_predeps_CXX
12693
12694# Dependencies to place after the objects being linked to create a
12695# shared library.
12696postdeps=$lt_postdeps_CXX
12697
12698# The library search path used internally by the compiler when linking
12699# a shared library.
12700compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12701
12702# Method to check whether dependent libraries are shared objects.
12703deplibs_check_method=$lt_deplibs_check_method
12704
12705# Command to use when deplibs_check_method == file_magic.
12706file_magic_cmd=$lt_file_magic_cmd
12707
12708# Flag that allows shared libraries with undefined symbols to be built.
12709allow_undefined_flag=$lt_allow_undefined_flag_CXX
12710
12711# Flag that forces no undefined symbols.
12712no_undefined_flag=$lt_no_undefined_flag_CXX
12713
12714# Commands used to finish a libtool library installation in a directory.
12715finish_cmds=$lt_finish_cmds
12716
12717# Same as above, but a single script fragment to be evaled but not shown.
12718finish_eval=$lt_finish_eval
12719
12720# Take the output of nm and produce a listing of raw symbols and C names.
12721global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12722
12723# Transform the output of nm in a proper C declaration
12724global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12725
12726# Transform the output of nm in a C name address pair
12727global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12728
12729# This is the shared library runtime path variable.
12730runpath_var=$runpath_var
12731
12732# This is the shared library path variable.
12733shlibpath_var=$shlibpath_var
12734
12735# Is shlibpath searched before the hard-coded library search path?
12736shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12737
12738# How to hardcode a shared library path into an executable.
12739hardcode_action=$hardcode_action_CXX
12740
12741# Whether we should hardcode library paths into libraries.
12742hardcode_into_libs=$hardcode_into_libs
12743
12744# Flag to hardcode \$libdir into a binary during linking.
12745# This must work even if \$libdir does not exist.
12746hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12747
12748# If ld is used when linking, flag to hardcode \$libdir into
12749# a binary during linking. This must work even if \$libdir does
12750# not exist.
12751hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12752
12753# Whether we need a single -rpath flag with a separated argument.
12754hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12755
12756# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12757# resulting binary.
12758hardcode_direct=$hardcode_direct_CXX
12759
12760# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12761# resulting binary.
12762hardcode_minus_L=$hardcode_minus_L_CXX
12763
12764# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12765# the resulting binary.
12766hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12767
12768# Set to yes if building a shared library automatically hardcodes DIR into the library
12769# and all subsequent libraries and executables linked against it.
12770hardcode_automatic=$hardcode_automatic_CXX
12771
12772# Variables whose values should be saved in libtool wrapper scripts and
12773# restored at relink time.
12774variables_saved_for_relink="$variables_saved_for_relink"
12775
12776# Whether libtool must link a program against all its dependency libraries.
12777link_all_deplibs=$link_all_deplibs_CXX
12778
12779# Compile-time system search path for libraries
12780sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12781
12782# Run-time system search path for libraries
12783sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12784
12785# Fix the shell variable \$srcfile for the compiler.
12786fix_srcfile_path="$fix_srcfile_path_CXX"
12787
12788# Set to yes if exported symbols are required.
12789always_export_symbols=$always_export_symbols_CXX
12790
12791# The commands to list exported symbols.
12792export_symbols_cmds=$lt_export_symbols_cmds_CXX
12793
12794# The commands to extract the exported symbol list from a shared archive.
12795extract_expsyms_cmds=$lt_extract_expsyms_cmds
12796
12797# Symbols that should not be listed in the preloaded symbols.
12798exclude_expsyms=$lt_exclude_expsyms_CXX
12799
12800# Symbols that must always be exported.
12801include_expsyms=$lt_include_expsyms_CXX
12802
12803# ### END LIBTOOL TAG CONFIG: $tagname
12804
12805__EOF__
12806
12807
12808else
12809 # If there is no Makefile yet, we rely on a make rule to execute
12810 # `config.status --recheck' to rerun these tests and create the
12811 # libtool script then.
12812 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12813 if test -f "$ltmain_in"; then
12814 test -f Makefile && make "$ltmain"
12815 fi
12816fi
12817
12818
12819ac_ext=c
12820ac_cpp='$CPP $CPPFLAGS'
12821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825CC=$lt_save_CC
12826LDCXX=$LD
12827LD=$lt_save_LD
12828GCC=$lt_save_GCC
12829with_gnu_ldcxx=$with_gnu_ld
12830with_gnu_ld=$lt_save_with_gnu_ld
12831lt_cv_path_LDCXX=$lt_cv_path_LD
12832lt_cv_path_LD=$lt_save_path_LD
12833lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12834lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12835
12836 else
12837 tagname=""
12838 fi
12839 ;;
12840
12841 F77)
12842 if test -n "$F77" && test "X$F77" != "Xno"; then
12843
12844ac_ext=f
12845ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12846ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12848
12849
12850archive_cmds_need_lc_F77=no
12851allow_undefined_flag_F77=
12852always_export_symbols_F77=no
12853archive_expsym_cmds_F77=
12854export_dynamic_flag_spec_F77=
12855hardcode_direct_F77=no
12856hardcode_libdir_flag_spec_F77=
12857hardcode_libdir_flag_spec_ld_F77=
12858hardcode_libdir_separator_F77=
12859hardcode_minus_L_F77=no
12860hardcode_automatic_F77=no
12861module_cmds_F77=
12862module_expsym_cmds_F77=
12863link_all_deplibs_F77=unknown
12864old_archive_cmds_F77=$old_archive_cmds
12865no_undefined_flag_F77=
12866whole_archive_flag_spec_F77=
12867enable_shared_with_static_runtimes_F77=no
12868
12869# Source file extension for f77 test sources.
12870ac_ext=f
12871
12872# Object file extension for compiled f77 test sources.
12873objext=o
12874objext_F77=$objext
12875
12876# Code to be used in simple compile tests
12877lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12878
12879# Code to be used in simple link tests
12880lt_simple_link_test_code=" program t\n end\n"
12881
12882# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12883
12884# If no C compiler was specified, use CC.
12885LTCC=${LTCC-"$CC"}
12886
12887# If no C compiler flags were specified, use CFLAGS.
12888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12889
12890# Allow CC to be a program name with arguments.
12891compiler=$CC
12892
12893
12894# save warnings/boilerplate of simple test code
12895ac_outfile=conftest.$ac_objext
12896printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12897eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12898_lt_compiler_boilerplate=`cat conftest.err`
12899$rm conftest*
12900
12901ac_outfile=conftest.$ac_objext
12902printf "$lt_simple_link_test_code" >conftest.$ac_ext
12903eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12904_lt_linker_boilerplate=`cat conftest.err`
12905$rm conftest*
12906
12907
12908# Allow CC to be a program name with arguments.
12909lt_save_CC="$CC"
12910CC=${F77-"f77"}
12911compiler=$CC
12912compiler_F77=$CC
12913for cc_temp in $compiler""; do
12914 case $cc_temp in
12915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12917 \-*) ;;
12918 *) break;;
12919 esac
12920done
12921cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12922
12923
12924echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12925echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12926echo "$as_me:$LINENO: result: $can_build_shared" >&5
12927echo "${ECHO_T}$can_build_shared" >&6
12928
12929echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12930echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12931test "$can_build_shared" = "no" && enable_shared=no
12932
12933# On AIX, shared libraries and static libraries use the same namespace, and
12934# are all built from PIC.
12935case $host_os in
12936aix3*)
12937 test "$enable_shared" = yes && enable_static=no
12938 if test -n "$RANLIB"; then
12939 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12940 postinstall_cmds='$RANLIB $lib'
12941 fi
12942 ;;
12943aix4* | aix5*)
12944 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12945 test "$enable_shared" = yes && enable_static=no
12946 fi
12947 ;;
12948esac
12949echo "$as_me:$LINENO: result: $enable_shared" >&5
12950echo "${ECHO_T}$enable_shared" >&6
12951
12952echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12953echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12954# Make sure either enable_shared or enable_static is yes.
12955test "$enable_shared" = yes || enable_static=yes
12956echo "$as_me:$LINENO: result: $enable_static" >&5
12957echo "${ECHO_T}$enable_static" >&6
12958
12959GCC_F77="$G77"
12960LD_F77="$LD"
12961
12962lt_prog_compiler_wl_F77=
12963lt_prog_compiler_pic_F77=
12964lt_prog_compiler_static_F77=
12965
12966echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12967echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12968
12969 if test "$GCC" = yes; then
12970 lt_prog_compiler_wl_F77='-Wl,'
12971 lt_prog_compiler_static_F77='-static'
12972
12973 case $host_os in
12974 aix*)
12975 # All AIX code is PIC.
12976 if test "$host_cpu" = ia64; then
12977 # AIX 5 now supports IA64 processor
12978 lt_prog_compiler_static_F77='-Bstatic'
12979 fi
12980 ;;
12981
12982 amigaos*)
12983 # FIXME: we need at least 68020 code to build shared libraries, but
12984 # adding the `-m68020' flag to GCC prevents building anything better,
12985 # like `-m68040'.
12986 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12987 ;;
12988
12989 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12990 # PIC is the default for these OSes.
12991 ;;
12992
12993 mingw* | pw32* | os2*)
12994 # This hack is so that the source file can tell whether it is being
12995 # built for inclusion in a dll (and should export symbols for example).
12996 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12997 ;;
12998
12999 darwin* | rhapsody*)
13000 # PIC is the default on this platform
13001 # Common symbols not allowed in MH_DYLIB files
13002 lt_prog_compiler_pic_F77='-fno-common'
13003 ;;
13004
13005 interix3*)
13006 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13007 # Instead, we relocate shared libraries at runtime.
13008 ;;
13009
13010 msdosdjgpp*)
13011 # Just because we use GCC doesn't mean we suddenly get shared libraries
13012 # on systems that don't support them.
13013 lt_prog_compiler_can_build_shared_F77=no
13014 enable_shared=no
13015 ;;
13016
13017 sysv4*MP*)
13018 if test -d /usr/nec; then
13019 lt_prog_compiler_pic_F77=-Kconform_pic
13020 fi
13021 ;;
13022
13023 hpux*)
13024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13025 # not for PA HP-UX.
13026 case $host_cpu in
13027 hppa*64*|ia64*)
13028 # +Z the default
13029 ;;
13030 *)
13031 lt_prog_compiler_pic_F77='-fPIC'
13032 ;;
13033 esac
13034 ;;
13035
13036 *)
13037 lt_prog_compiler_pic_F77='-fPIC'
13038 ;;
13039 esac
13040 else
13041 # PORTME Check for flag to pass linker flags through the system compiler.
13042 case $host_os in
13043 aix*)
13044 lt_prog_compiler_wl_F77='-Wl,'
13045 if test "$host_cpu" = ia64; then
13046 # AIX 5 now supports IA64 processor
13047 lt_prog_compiler_static_F77='-Bstatic'
13048 else
13049 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13050 fi
13051 ;;
13052 darwin*)
13053 # PIC is the default on this platform
13054 # Common symbols not allowed in MH_DYLIB files
13055 case $cc_basename in
13056 xlc*)
13057 lt_prog_compiler_pic_F77='-qnocommon'
13058 lt_prog_compiler_wl_F77='-Wl,'
13059 ;;
13060 esac
13061 ;;
13062
13063 mingw* | pw32* | os2*)
13064 # This hack is so that the source file can tell whether it is being
13065 # built for inclusion in a dll (and should export symbols for example).
13066 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13067 ;;
13068
13069 hpux9* | hpux10* | hpux11*)
13070 lt_prog_compiler_wl_F77='-Wl,'
13071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13072 # not for PA HP-UX.
13073 case $host_cpu in
13074 hppa*64*|ia64*)
13075 # +Z the default
13076 ;;
13077 *)
13078 lt_prog_compiler_pic_F77='+Z'
13079 ;;
13080 esac
13081 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13082 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13083 ;;
13084
13085 irix5* | irix6* | nonstopux*)
13086 lt_prog_compiler_wl_F77='-Wl,'
13087 # PIC (with -KPIC) is the default.
13088 lt_prog_compiler_static_F77='-non_shared'
13089 ;;
13090
13091 newsos6)
13092 lt_prog_compiler_pic_F77='-KPIC'
13093 lt_prog_compiler_static_F77='-Bstatic'
13094 ;;
13095
13096 linux*)
13097 case $cc_basename in
13098 icc* | ecc*)
13099 lt_prog_compiler_wl_F77='-Wl,'
13100 lt_prog_compiler_pic_F77='-KPIC'
13101 lt_prog_compiler_static_F77='-static'
13102 ;;
13103 pgcc* | pgf77* | pgf90* | pgf95*)
13104 # Portland Group compilers (*not* the Pentium gcc compiler,
13105 # which looks to be a dead project)
13106 lt_prog_compiler_wl_F77='-Wl,'
13107 lt_prog_compiler_pic_F77='-fpic'
13108 lt_prog_compiler_static_F77='-Bstatic'
13109 ;;
13110 ccc*)
13111 lt_prog_compiler_wl_F77='-Wl,'
13112 # All Alpha code is PIC.
13113 lt_prog_compiler_static_F77='-non_shared'
13114 ;;
13115 esac
13116 ;;
13117
13118 osf3* | osf4* | osf5*)
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 # All OSF/1 code is PIC.
13121 lt_prog_compiler_static_F77='-non_shared'
13122 ;;
13123
13124 solaris*)
13125 lt_prog_compiler_pic_F77='-KPIC'
13126 lt_prog_compiler_static_F77='-Bstatic'
13127 case $cc_basename in
13128 f77* | f90* | f95*)
13129 lt_prog_compiler_wl_F77='-Qoption ld ';;
13130 *)
13131 lt_prog_compiler_wl_F77='-Wl,';;
13132 esac
13133 ;;
13134
13135 sunos4*)
13136 lt_prog_compiler_wl_F77='-Qoption ld '
13137 lt_prog_compiler_pic_F77='-PIC'
13138 lt_prog_compiler_static_F77='-Bstatic'
13139 ;;
13140
13141 sysv4 | sysv4.2uw2* | sysv4.3*)
13142 lt_prog_compiler_wl_F77='-Wl,'
13143 lt_prog_compiler_pic_F77='-KPIC'
13144 lt_prog_compiler_static_F77='-Bstatic'
13145 ;;
13146
13147 sysv4*MP*)
13148 if test -d /usr/nec ;then
13149 lt_prog_compiler_pic_F77='-Kconform_pic'
13150 lt_prog_compiler_static_F77='-Bstatic'
13151 fi
13152 ;;
13153
13154 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13155 lt_prog_compiler_wl_F77='-Wl,'
13156 lt_prog_compiler_pic_F77='-KPIC'
13157 lt_prog_compiler_static_F77='-Bstatic'
13158 ;;
13159
13160 unicos*)
13161 lt_prog_compiler_wl_F77='-Wl,'
13162 lt_prog_compiler_can_build_shared_F77=no
13163 ;;
13164
13165 uts4*)
13166 lt_prog_compiler_pic_F77='-pic'
13167 lt_prog_compiler_static_F77='-Bstatic'
13168 ;;
13169
13170 *)
13171 lt_prog_compiler_can_build_shared_F77=no
13172 ;;
13173 esac
13174 fi
13175
13176echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13177echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13178
13179#
13180# Check to make sure the PIC flag actually works.
13181#
13182if test -n "$lt_prog_compiler_pic_F77"; then
13183
13184echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13185echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13186if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188else
13189 lt_prog_compiler_pic_works_F77=no
13190 ac_outfile=conftest.$ac_objext
13191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13192 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13193 # Insert the option either (1) after the last *FLAGS variable, or
13194 # (2) before a word containing "conftest.", or (3) at the end.
13195 # Note that $ac_compile itself does not contain backslashes and begins
13196 # with a dollar sign (not a hyphen), so the echo should work correctly.
13197 # The option is referenced via a variable to avoid confusing sed.
13198 lt_compile=`echo "$ac_compile" | $SED \
13199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13201 -e 's:$: $lt_compiler_flag:'`
13202 (eval echo "\"\$as_me:13202: $lt_compile\"" >&5)
13203 (eval "$lt_compile" 2>conftest.err)
13204 ac_status=$?
13205 cat conftest.err >&5
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 if (exit $ac_status) && test -s "$ac_outfile"; then
13208 # The compiler can only warn and ignore the option if not recognized
13209 # So say no if there are warnings other than the usual output.
13210 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13213 lt_prog_compiler_pic_works_F77=yes
13214 fi
13215 fi
13216 $rm conftest*
13217
13218fi
13219echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13220echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13221
13222if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13223 case $lt_prog_compiler_pic_F77 in
13224 "" | " "*) ;;
13225 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13226 esac
13227else
13228 lt_prog_compiler_pic_F77=
13229 lt_prog_compiler_can_build_shared_F77=no
13230fi
13231
13232fi
13233case $host_os in
13234 # For platforms which do not support PIC, -DPIC is meaningless:
13235 *djgpp*)
13236 lt_prog_compiler_pic_F77=
13237 ;;
13238 *)
13239 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13240 ;;
13241esac
13242
13243#
13244# Check to make sure the static flag actually works.
13245#
13246wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13247echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13248echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13249if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251else
13252 lt_prog_compiler_static_works_F77=no
13253 save_LDFLAGS="$LDFLAGS"
13254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13255 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13257 # The linker can only warn and ignore the option if not recognized
13258 # So say no if there are warnings
13259 if test -s conftest.err; then
13260 # Append any errors to the config.log.
13261 cat conftest.err 1>&5
13262 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13264 if diff conftest.exp conftest.er2 >/dev/null; then
13265 lt_prog_compiler_static_works_F77=yes
13266 fi
13267 else
13268 lt_prog_compiler_static_works_F77=yes
13269 fi
13270 fi
13271 $rm conftest*
13272 LDFLAGS="$save_LDFLAGS"
13273
13274fi
13275echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13276echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13277
13278if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13279 :
13280else
13281 lt_prog_compiler_static_F77=
13282fi
13283
13284
13285echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13286echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13287if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289else
13290 lt_cv_prog_compiler_c_o_F77=no
13291 $rm -r conftest 2>/dev/null
13292 mkdir conftest
13293 cd conftest
13294 mkdir out
13295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13296
13297 lt_compiler_flag="-o out/conftest2.$ac_objext"
13298 # Insert the option either (1) after the last *FLAGS variable, or
13299 # (2) before a word containing "conftest.", or (3) at the end.
13300 # Note that $ac_compile itself does not contain backslashes and begins
13301 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
13308 ac_status=$?
13309 cat out/conftest.err >&5
13310 echo "$as_me:13310: \$? = $ac_status" >&5
13311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13312 then
13313 # The compiler can only warn and ignore the option if not recognized
13314 # So say no if there are warnings
13315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13318 lt_cv_prog_compiler_c_o_F77=yes
13319 fi
13320 fi
13321 chmod u+w . 2>&5
13322 $rm conftest*
13323 # SGI C++ compiler will create directory out/ii_files/ for
13324 # template instantiation
13325 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13326 $rm out/* && rmdir out
13327 cd ..
13328 rmdir conftest
13329 $rm conftest*
13330
13331fi
13332echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13333echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13334
13335
13336hard_links="nottested"
13337if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13338 # do not overwrite the value of need_locks provided by the user
13339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13340echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13341 hard_links=yes
13342 $rm conftest*
13343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13344 touch conftest.a
13345 ln conftest.a conftest.b 2>&5 || hard_links=no
13346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13347 echo "$as_me:$LINENO: result: $hard_links" >&5
13348echo "${ECHO_T}$hard_links" >&6
13349 if test "$hard_links" = no; then
13350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13351echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13352 need_locks=warn
13353 fi
13354else
13355 need_locks=no
13356fi
13357
13358echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13359echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13360
13361 runpath_var=
13362 allow_undefined_flag_F77=
13363 enable_shared_with_static_runtimes_F77=no
13364 archive_cmds_F77=
13365 archive_expsym_cmds_F77=
13366 old_archive_From_new_cmds_F77=
13367 old_archive_from_expsyms_cmds_F77=
13368 export_dynamic_flag_spec_F77=
13369 whole_archive_flag_spec_F77=
13370 thread_safe_flag_spec_F77=
13371 hardcode_libdir_flag_spec_F77=
13372 hardcode_libdir_flag_spec_ld_F77=
13373 hardcode_libdir_separator_F77=
13374 hardcode_direct_F77=no
13375 hardcode_minus_L_F77=no
13376 hardcode_shlibpath_var_F77=unsupported
13377 link_all_deplibs_F77=unknown
13378 hardcode_automatic_F77=no
13379 module_cmds_F77=
13380 module_expsym_cmds_F77=
13381 always_export_symbols_F77=no
13382 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13383 # include_expsyms should be a list of space-separated symbols to be *always*
13384 # included in the symbol list
13385 include_expsyms_F77=
13386 # exclude_expsyms can be an extended regexp of symbols to exclude
13387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13389 # as well as any symbol that contains `d'.
13390 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13392 # platforms (ab)use it in PIC code, but their linkers get confused if
13393 # the symbol is explicitly referenced. Since portable code cannot
13394 # rely on this symbol name, it's probably fine to never include it in
13395 # preloaded symbol tables.
13396 extract_expsyms_cmds=
13397 # Just being paranoid about ensuring that cc_basename is set.
13398 for cc_temp in $compiler""; do
13399 case $cc_temp in
13400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13402 \-*) ;;
13403 *) break;;
13404 esac
13405done
13406cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13407
13408 case $host_os in
13409 cygwin* | mingw* | pw32*)
13410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13411 # When not using gcc, we currently assume that we are using
13412 # Microsoft Visual C++.
13413 if test "$GCC" != yes; then
13414 with_gnu_ld=no
13415 fi
13416 ;;
13417 interix*)
13418 # we just hope/assume this is gcc and not c89 (= MSVC++)
13419 with_gnu_ld=yes
13420 ;;
13421 openbsd*)
13422 with_gnu_ld=no
13423 ;;
13424 esac
13425
13426 ld_shlibs_F77=yes
13427 if test "$with_gnu_ld" = yes; then
13428 # If archive_cmds runs LD, not CC, wlarc should be empty
13429 wlarc='${wl}'
13430
13431 # Set some defaults for GNU ld with shared library support. These
13432 # are reset later if shared libraries are not supported. Putting them
13433 # here allows them to be overridden if necessary.
13434 runpath_var=LD_RUN_PATH
13435 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13436 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13437 # ancient GNU ld didn't support --whole-archive et. al.
13438 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13439 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13440 else
13441 whole_archive_flag_spec_F77=
13442 fi
13443 supports_anon_versioning=no
13444 case `$LD -v 2>/dev/null` in
13445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13448 *\ 2.11.*) ;; # other 2.11 versions
13449 *) supports_anon_versioning=yes ;;
13450 esac
13451
13452 # See if GNU ld supports shared libraries.
13453 case $host_os in
13454 aix3* | aix4* | aix5*)
13455 # On AIX/PPC, the GNU linker is very broken
13456 if test "$host_cpu" != ia64; then
13457 ld_shlibs_F77=no
13458 cat <<EOF 1>&2
13459
13460*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13461*** to be unable to reliably create shared libraries on AIX.
13462*** Therefore, libtool is disabling shared libraries support. If you
13463*** really care for shared libraries, you may want to modify your PATH
13464*** so that a non-GNU linker is found, and then restart.
13465
13466EOF
13467 fi
13468 ;;
13469
13470 amigaos*)
13471 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)'
13472 hardcode_libdir_flag_spec_F77='-L$libdir'
13473 hardcode_minus_L_F77=yes
13474
13475 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13476 # that the semantics of dynamic libraries on AmigaOS, at least up
13477 # to version 4, is to share data among multiple programs linked
13478 # with the same dynamic library. Since this doesn't match the
13479 # behavior of shared libraries on other platforms, we can't use
13480 # them.
13481 ld_shlibs_F77=no
13482 ;;
13483
13484 beos*)
13485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13486 allow_undefined_flag_F77=unsupported
13487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13488 # support --undefined. This deserves some investigation. FIXME
13489 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490 else
13491 ld_shlibs_F77=no
13492 fi
13493 ;;
13494
13495 cygwin* | mingw* | pw32*)
13496 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13497 # as there is no search path for DLLs.
13498 hardcode_libdir_flag_spec_F77='-L$libdir'
13499 allow_undefined_flag_F77=unsupported
13500 always_export_symbols_F77=no
13501 enable_shared_with_static_runtimes_F77=yes
13502 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13503
13504 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13505 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13506 # If the export-symbols file already is a .def file (1st line
13507 # is EXPORTS), use it as is; otherwise, prepend...
13508 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13509 cp $export_symbols $output_objdir/$soname.def;
13510 else
13511 echo EXPORTS > $output_objdir/$soname.def;
13512 cat $export_symbols >> $output_objdir/$soname.def;
13513 fi~
13514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13515 else
13516 ld_shlibs_F77=no
13517 fi
13518 ;;
13519
13520 interix3*)
13521 hardcode_direct_F77=no
13522 hardcode_shlibpath_var_F77=no
13523 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13524 export_dynamic_flag_spec_F77='${wl}-E'
13525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13526 # Instead, shared libraries are loaded at an image base (0x10000000 by
13527 # default) and relocated if they conflict, which is a slow very memory
13528 # consuming and fragmenting process. To avoid this, we pick a random,
13529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13531 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'
13532 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'
13533 ;;
13534
13535 linux*)
13536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13537 tmp_addflag=
13538 case $cc_basename,$host_cpu in
13539 pgcc*) # Portland Group C compiler
13540 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'
13541 tmp_addflag=' $pic_flag'
13542 ;;
13543 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13544 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'
13545 tmp_addflag=' $pic_flag -Mnomain' ;;
13546 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13547 tmp_addflag=' -i_dynamic' ;;
13548 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13549 tmp_addflag=' -i_dynamic -nofor_main' ;;
13550 ifc* | ifort*) # Intel Fortran compiler
13551 tmp_addflag=' -nofor_main' ;;
13552 esac
13553 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13554
13555 if test $supports_anon_versioning = yes; then
13556 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13558 $echo "local: *; };" >> $output_objdir/$libname.ver~
13559 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13560 fi
13561 link_all_deplibs_F77=no
13562 else
13563 ld_shlibs_F77=no
13564 fi
13565 ;;
13566
13567 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13569 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13570 wlarc=
13571 else
13572 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13573 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13574 fi
13575 ;;
13576
13577 solaris*)
13578 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13579 ld_shlibs_F77=no
13580 cat <<EOF 1>&2
13581
13582*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13583*** create shared libraries on Solaris systems. Therefore, libtool
13584*** is disabling shared libraries support. We urge you to upgrade GNU
13585*** binutils to release 2.9.1 or newer. Another option is to modify
13586*** your PATH or compiler configuration so that the native linker is
13587*** used, and then restart.
13588
13589EOF
13590 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13592 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13593 else
13594 ld_shlibs_F77=no
13595 fi
13596 ;;
13597
13598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13599 case `$LD -v 2>&1` in
13600 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13601 ld_shlibs_F77=no
13602 cat <<_LT_EOF 1>&2
13603
13604*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13605*** reliably create shared libraries on SCO systems. Therefore, libtool
13606*** is disabling shared libraries support. We urge you to upgrade GNU
13607*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13608*** your PATH or compiler configuration so that the native linker is
13609*** used, and then restart.
13610
13611_LT_EOF
13612 ;;
13613 *)
13614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13616 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13617 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13618 else
13619 ld_shlibs_F77=no
13620 fi
13621 ;;
13622 esac
13623 ;;
13624
13625 sunos4*)
13626 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13627 wlarc=
13628 hardcode_direct_F77=yes
13629 hardcode_shlibpath_var_F77=no
13630 ;;
13631
13632 *)
13633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13636 else
13637 ld_shlibs_F77=no
13638 fi
13639 ;;
13640 esac
13641
13642 if test "$ld_shlibs_F77" = no; then
13643 runpath_var=
13644 hardcode_libdir_flag_spec_F77=
13645 export_dynamic_flag_spec_F77=
13646 whole_archive_flag_spec_F77=
13647 fi
13648 else
13649 # PORTME fill in a description of your system's linker (not GNU ld)
13650 case $host_os in
13651 aix3*)
13652 allow_undefined_flag_F77=unsupported
13653 always_export_symbols_F77=yes
13654 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'
13655 # Note: this linker hardcodes the directories in LIBPATH if there
13656 # are no directories specified by -L.
13657 hardcode_minus_L_F77=yes
13658 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13659 # Neither direct hardcoding nor static linking is supported with a
13660 # broken collect2.
13661 hardcode_direct_F77=unsupported
13662 fi
13663 ;;
13664
13665 aix4* | aix5*)
13666 if test "$host_cpu" = ia64; then
13667 # On IA64, the linker does run time linking by default, so we don't
13668 # have to do anything special.
13669 aix_use_runtimelinking=no
13670 exp_sym_flag='-Bexport'
13671 no_entry_flag=""
13672 else
13673 # If we're using GNU nm, then we don't want the "-C" option.
13674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13675 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13676 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'
13677 else
13678 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'
13679 fi
13680 aix_use_runtimelinking=no
13681
13682 # Test if we are trying to use run time linking or normal
13683 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13684 # need to do runtime linking.
13685 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13686 for ld_flag in $LDFLAGS; do
13687 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13688 aix_use_runtimelinking=yes
13689 break
13690 fi
13691 done
13692 ;;
13693 esac
13694
13695 exp_sym_flag='-bexport'
13696 no_entry_flag='-bnoentry'
13697 fi
13698
13699 # When large executables or shared objects are built, AIX ld can
13700 # have problems creating the table of contents. If linking a library
13701 # or program results in "error TOC overflow" add -mminimal-toc to
13702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13704
13705 archive_cmds_F77=''
13706 hardcode_direct_F77=yes
13707 hardcode_libdir_separator_F77=':'
13708 link_all_deplibs_F77=yes
13709
13710 if test "$GCC" = yes; then
13711 case $host_os in aix4.[012]|aix4.[012].*)
13712 # We only want to do this on AIX 4.2 and lower, the check
13713 # below for broken collect2 doesn't work under 4.3+
13714 collect2name=`${CC} -print-prog-name=collect2`
13715 if test -f "$collect2name" && \
13716 strings "$collect2name" | grep resolve_lib_name >/dev/null
13717 then
13718 # We have reworked collect2
13719 hardcode_direct_F77=yes
13720 else
13721 # We have old collect2
13722 hardcode_direct_F77=unsupported
13723 # It fails to find uninstalled libraries when the uninstalled
13724 # path is not listed in the libpath. Setting hardcode_minus_L
13725 # to unsupported forces relinking
13726 hardcode_minus_L_F77=yes
13727 hardcode_libdir_flag_spec_F77='-L$libdir'
13728 hardcode_libdir_separator_F77=
13729 fi
13730 ;;
13731 esac
13732 shared_flag='-shared'
13733 if test "$aix_use_runtimelinking" = yes; then
13734 shared_flag="$shared_flag "'${wl}-G'
13735 fi
13736 else
13737 # not using gcc
13738 if test "$host_cpu" = ia64; then
13739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13740 # chokes on -Wl,-G. The following line is correct:
13741 shared_flag='-G'
13742 else
13743 if test "$aix_use_runtimelinking" = yes; then
13744 shared_flag='${wl}-G'
13745 else
13746 shared_flag='${wl}-bM:SRE'
13747 fi
13748 fi
13749 fi
13750
13751 # It seems that -bexpall does not export symbols beginning with
13752 # underscore (_), so it is better to generate a list of symbols to export.
13753 always_export_symbols_F77=yes
13754 if test "$aix_use_runtimelinking" = yes; then
13755 # Warning - without using the other runtime loading flags (-brtl),
13756 # -berok will link without error, but may produce a broken library.
13757 allow_undefined_flag_F77='-berok'
13758 # Determine the default libpath from the value encoded in an empty executable.
13759 cat >conftest.$ac_ext <<_ACEOF
13760 program main
13761
13762 end
13763_ACEOF
13764rm -f conftest.$ac_objext conftest$ac_exeext
13765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785
13786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13787}'`
13788# Check for a 64-bit object if we didn't find anything.
13789if 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; }
13790}'`; fi
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
13795fi
13796rm -f conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13798if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13799
13800 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13801 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"
13802 else
13803 if test "$host_cpu" = ia64; then
13804 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13805 allow_undefined_flag_F77="-z nodefs"
13806 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"
13807 else
13808 # Determine the default libpath from the value encoded in an empty executable.
13809 cat >conftest.$ac_ext <<_ACEOF
13810 program main
13811
13812 end
13813_ACEOF
13814rm -f conftest.$ac_objext conftest$ac_exeext
13815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835
13836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13837}'`
13838# Check for a 64-bit object if we didn't find anything.
13839if 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; }
13840}'`; fi
13841else
13842 echo "$as_me: failed program was:" >&5
13843sed 's/^/| /' conftest.$ac_ext >&5
13844
13845fi
13846rm -f conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext conftest.$ac_ext
13848if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13849
13850 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13851 # Warning - without using the other run time loading flags,
13852 # -berok will link without error, but may produce a broken library.
13853 no_undefined_flag_F77=' ${wl}-bernotok'
13854 allow_undefined_flag_F77=' ${wl}-berok'
13855 # Exported symbols can be pulled into shared objects from archives
13856 whole_archive_flag_spec_F77='$convenience'
13857 archive_cmds_need_lc_F77=yes
13858 # This is similar to how AIX traditionally builds its shared libraries.
13859 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'
13860 fi
13861 fi
13862 ;;
13863
13864 amigaos*)
13865 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)'
13866 hardcode_libdir_flag_spec_F77='-L$libdir'
13867 hardcode_minus_L_F77=yes
13868 # see comment about different semantics on the GNU ld section
13869 ld_shlibs_F77=no
13870 ;;
13871
13872 bsdi[45]*)
13873 export_dynamic_flag_spec_F77=-rdynamic
13874 ;;
13875
13876 cygwin* | mingw* | pw32*)
13877 # When not using gcc, we currently assume that we are using
13878 # Microsoft Visual C++.
13879 # hardcode_libdir_flag_spec is actually meaningless, as there is
13880 # no search path for DLLs.
13881 hardcode_libdir_flag_spec_F77=' '
13882 allow_undefined_flag_F77=unsupported
13883 # Tell ltmain to make .lib files, not .a files.
13884 libext=lib
13885 # Tell ltmain to make .dll files, not .so files.
13886 shrext_cmds=".dll"
13887 # FIXME: Setting linknames here is a bad hack.
13888 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13889 # The linker will automatically build a .lib file if we build a DLL.
13890 old_archive_From_new_cmds_F77='true'
13891 # FIXME: Should let the user specify the lib program.
13892 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13893 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13894 enable_shared_with_static_runtimes_F77=yes
13895 ;;
13896
13897 darwin* | rhapsody*)
13898 case $host_os in
13899 rhapsody* | darwin1.[012])
13900 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13901 ;;
13902 *) # Darwin 1.3 on
13903 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13904 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13905 else
13906 case ${MACOSX_DEPLOYMENT_TARGET} in
13907 10.[012])
13908 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13909 ;;
13910 10.*)
13911 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13912 ;;
13913 esac
13914 fi
13915 ;;
13916 esac
13917 archive_cmds_need_lc_F77=no
13918 hardcode_direct_F77=no
13919 hardcode_automatic_F77=yes
13920 hardcode_shlibpath_var_F77=unsupported
13921 whole_archive_flag_spec_F77=''
13922 link_all_deplibs_F77=yes
13923 if test "$GCC" = yes ; then
13924 output_verbose_link_cmd='echo'
13925 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13926 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13927 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13928 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}'
13929 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}'
13930 else
13931 case $cc_basename in
13932 xlc*)
13933 output_verbose_link_cmd='echo'
13934 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13935 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13936 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13937 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}'
13938 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}'
13939 ;;
13940 *)
13941 ld_shlibs_F77=no
13942 ;;
13943 esac
13944 fi
13945 ;;
13946
13947 dgux*)
13948 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13949 hardcode_libdir_flag_spec_F77='-L$libdir'
13950 hardcode_shlibpath_var_F77=no
13951 ;;
13952
13953 freebsd1*)
13954 ld_shlibs_F77=no
13955 ;;
13956
13957 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13958 # support. Future versions do this automatically, but an explicit c++rt0.o
13959 # does not break anything, and helps significantly (at the cost of a little
13960 # extra space).
13961 freebsd2.2*)
13962 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13963 hardcode_libdir_flag_spec_F77='-R$libdir'
13964 hardcode_direct_F77=yes
13965 hardcode_shlibpath_var_F77=no
13966 ;;
13967
13968 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13969 freebsd2*)
13970 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13971 hardcode_direct_F77=yes
13972 hardcode_minus_L_F77=yes
13973 hardcode_shlibpath_var_F77=no
13974 ;;
13975
13976 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13977 freebsd* | dragonfly*)
13978 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13979 hardcode_libdir_flag_spec_F77='-R$libdir'
13980 hardcode_direct_F77=yes
13981 hardcode_shlibpath_var_F77=no
13982 ;;
13983
13984 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13985 kfreebsd*-gnu)
13986 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13987 hardcode_libdir_flag_spec_F77='-R$libdir'
13988 hardcode_direct_F77=yes
13989 hardcode_shlibpath_var_F77=no
13990 link_all_deplibs_F77=no
13991 ;;
13992
13993 hpux9*)
13994 if test "$GCC" = yes; then
13995 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'
13996 else
13997 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'
13998 fi
13999 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000 hardcode_libdir_separator_F77=:
14001 hardcode_direct_F77=yes
14002
14003 # hardcode_minus_L: Not really in the search PATH,
14004 # but as the default location of the library.
14005 hardcode_minus_L_F77=yes
14006 export_dynamic_flag_spec_F77='${wl}-E'
14007 ;;
14008
14009 hpux10*)
14010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14011 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14012 else
14013 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14014 fi
14015 if test "$with_gnu_ld" = no; then
14016 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14017 hardcode_libdir_separator_F77=:
14018
14019 hardcode_direct_F77=yes
14020 export_dynamic_flag_spec_F77='${wl}-E'
14021
14022 # hardcode_minus_L: Not really in the search PATH,
14023 # but as the default location of the library.
14024 hardcode_minus_L_F77=yes
14025 fi
14026 ;;
14027
14028 hpux11*)
14029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14030 case $host_cpu in
14031 hppa*64*)
14032 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033 ;;
14034 ia64*)
14035 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14036 ;;
14037 *)
14038 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14039 ;;
14040 esac
14041 else
14042 case $host_cpu in
14043 hppa*64*)
14044 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14045 ;;
14046 ia64*)
14047 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14048 ;;
14049 *)
14050 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14051 ;;
14052 esac
14053 fi
14054 if test "$with_gnu_ld" = no; then
14055 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14056 hardcode_libdir_separator_F77=:
14057
14058 case $host_cpu in
14059 hppa*64*|ia64*)
14060 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14061 hardcode_direct_F77=no
14062 hardcode_shlibpath_var_F77=no
14063 ;;
14064 *)
14065 hardcode_direct_F77=yes
14066 export_dynamic_flag_spec_F77='${wl}-E'
14067
14068 # hardcode_minus_L: Not really in the search PATH,
14069 # but as the default location of the library.
14070 hardcode_minus_L_F77=yes
14071 ;;
14072 esac
14073 fi
14074 ;;
14075
14076 irix5* | irix6* | nonstopux*)
14077 if test "$GCC" = yes; then
14078 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'
14079 else
14080 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'
14081 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14082 fi
14083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14084 hardcode_libdir_separator_F77=:
14085 link_all_deplibs_F77=yes
14086 ;;
14087
14088 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14091 else
14092 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14093 fi
14094 hardcode_libdir_flag_spec_F77='-R$libdir'
14095 hardcode_direct_F77=yes
14096 hardcode_shlibpath_var_F77=no
14097 ;;
14098
14099 newsos6)
14100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14101 hardcode_direct_F77=yes
14102 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14103 hardcode_libdir_separator_F77=:
14104 hardcode_shlibpath_var_F77=no
14105 ;;
14106
14107 openbsd*)
14108 hardcode_direct_F77=yes
14109 hardcode_shlibpath_var_F77=no
14110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14111 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14112 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14113 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14114 export_dynamic_flag_spec_F77='${wl}-E'
14115 else
14116 case $host_os in
14117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14118 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14119 hardcode_libdir_flag_spec_F77='-R$libdir'
14120 ;;
14121 *)
14122 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14123 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14124 ;;
14125 esac
14126 fi
14127 ;;
14128
14129 os2*)
14130 hardcode_libdir_flag_spec_F77='-L$libdir'
14131 hardcode_minus_L_F77=yes
14132 allow_undefined_flag_F77=unsupported
14133 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'
14134 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14135 ;;
14136
14137 osf3*)
14138 if test "$GCC" = yes; then
14139 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14140 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'
14141 else
14142 allow_undefined_flag_F77=' -expect_unresolved \*'
14143 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'
14144 fi
14145 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14146 hardcode_libdir_separator_F77=:
14147 ;;
14148
14149 osf4* | osf5*) # as osf3* with the addition of -msym flag
14150 if test "$GCC" = yes; then
14151 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14152 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'
14153 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14154 else
14155 allow_undefined_flag_F77=' -expect_unresolved \*'
14156 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'
14157 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~
14158 $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'
14159
14160 # Both c and cxx compiler support -rpath directly
14161 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14162 fi
14163 hardcode_libdir_separator_F77=:
14164 ;;
14165
14166 solaris*)
14167 no_undefined_flag_F77=' -z text'
14168 if test "$GCC" = yes; then
14169 wlarc='${wl}'
14170 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14171 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14172 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14173 else
14174 wlarc=''
14175 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14176 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14178 fi
14179 hardcode_libdir_flag_spec_F77='-R$libdir'
14180 hardcode_shlibpath_var_F77=no
14181 case $host_os in
14182 solaris2.[0-5] | solaris2.[0-5].*) ;;
14183 *)
14184 # The compiler driver will combine linker options so we
14185 # cannot just pass the convience library names through
14186 # without $wl, iff we do not link with $LD.
14187 # Luckily, gcc supports the same syntax we need for Sun Studio.
14188 # Supported since Solaris 2.6 (maybe 2.5.1?)
14189 case $wlarc in
14190 '')
14191 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14192 *)
14193 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' ;;
14194 esac ;;
14195 esac
14196 link_all_deplibs_F77=yes
14197 ;;
14198
14199 sunos4*)
14200 if test "x$host_vendor" = xsequent; then
14201 # Use $CC to link under sequent, because it throws in some extra .o
14202 # files that make .init and .fini sections work.
14203 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14204 else
14205 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14206 fi
14207 hardcode_libdir_flag_spec_F77='-L$libdir'
14208 hardcode_direct_F77=yes
14209 hardcode_minus_L_F77=yes
14210 hardcode_shlibpath_var_F77=no
14211 ;;
14212
14213 sysv4)
14214 case $host_vendor in
14215 sni)
14216 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217 hardcode_direct_F77=yes # is this really true???
14218 ;;
14219 siemens)
14220 ## LD is ld it makes a PLAMLIB
14221 ## CC just makes a GrossModule.
14222 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14223 reload_cmds_F77='$CC -r -o $output$reload_objs'
14224 hardcode_direct_F77=no
14225 ;;
14226 motorola)
14227 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14229 ;;
14230 esac
14231 runpath_var='LD_RUN_PATH'
14232 hardcode_shlibpath_var_F77=no
14233 ;;
14234
14235 sysv4.3*)
14236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237 hardcode_shlibpath_var_F77=no
14238 export_dynamic_flag_spec_F77='-Bexport'
14239 ;;
14240
14241 sysv4*MP*)
14242 if test -d /usr/nec; then
14243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244 hardcode_shlibpath_var_F77=no
14245 runpath_var=LD_RUN_PATH
14246 hardcode_runpath_var=yes
14247 ld_shlibs_F77=yes
14248 fi
14249 ;;
14250
14251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14252 no_undefined_flag_F77='${wl}-z,text'
14253 archive_cmds_need_lc_F77=no
14254 hardcode_shlibpath_var_F77=no
14255 runpath_var='LD_RUN_PATH'
14256
14257 if test "$GCC" = yes; then
14258 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14259 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14260 else
14261 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14262 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14263 fi
14264 ;;
14265
14266 sysv5* | sco3.2v5* | sco5v6*)
14267 # Note: We can NOT use -z defs as we might desire, because we do not
14268 # link with -lc, and that would cause any symbols used from libc to
14269 # always be unresolved, which means just about no library would
14270 # ever link correctly. If we're not using GNU ld we use -z text
14271 # though, which does catch some bad symbols but isn't as heavy-handed
14272 # as -z defs.
14273 no_undefined_flag_F77='${wl}-z,text'
14274 allow_undefined_flag_F77='${wl}-z,nodefs'
14275 archive_cmds_need_lc_F77=no
14276 hardcode_shlibpath_var_F77=no
14277 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14278 hardcode_libdir_separator_F77=':'
14279 link_all_deplibs_F77=yes
14280 export_dynamic_flag_spec_F77='${wl}-Bexport'
14281 runpath_var='LD_RUN_PATH'
14282
14283 if test "$GCC" = yes; then
14284 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14285 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14286 else
14287 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14288 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14289 fi
14290 ;;
14291
14292 uts4*)
14293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14294 hardcode_libdir_flag_spec_F77='-L$libdir'
14295 hardcode_shlibpath_var_F77=no
14296 ;;
14297
14298 *)
14299 ld_shlibs_F77=no
14300 ;;
14301 esac
14302 fi
14303
14304echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14305echo "${ECHO_T}$ld_shlibs_F77" >&6
14306test "$ld_shlibs_F77" = no && can_build_shared=no
14307
14308#
14309# Do we need to explicitly link libc?
14310#
14311case "x$archive_cmds_need_lc_F77" in
14312x|xyes)
14313 # Assume -lc should be added
14314 archive_cmds_need_lc_F77=yes
14315
14316 if test "$enable_shared" = yes && test "$GCC" = yes; then
14317 case $archive_cmds_F77 in
14318 *'~'*)
14319 # FIXME: we may have to deal with multi-command sequences.
14320 ;;
14321 '$CC '*)
14322 # Test whether the compiler implicitly links with -lc since on some
14323 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14324 # to ld, don't add -lc before -lgcc.
14325 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14326echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14327 $rm conftest*
14328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14329
14330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331 (eval $ac_compile) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } 2>conftest.err; then
14335 soname=conftest
14336 lib=conftest
14337 libobjs=conftest.$ac_objext
14338 deplibs=
14339 wl=$lt_prog_compiler_wl_F77
14340 pic_flag=$lt_prog_compiler_pic_F77
14341 compiler_flags=-v
14342 linker_flags=-v
14343 verstring=
14344 output_objdir=.
14345 libname=conftest
14346 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14347 allow_undefined_flag_F77=
14348 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14349 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }
14353 then
14354 archive_cmds_need_lc_F77=no
14355 else
14356 archive_cmds_need_lc_F77=yes
14357 fi
14358 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14359 else
14360 cat conftest.err 1>&5
14361 fi
14362 $rm conftest*
14363 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14364echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14365 ;;
14366 esac
14367 fi
14368 ;;
14369esac
14370
14371echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14372echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14373library_names_spec=
14374libname_spec='lib$name'
14375soname_spec=
14376shrext_cmds=".so"
14377postinstall_cmds=
14378postuninstall_cmds=
14379finish_cmds=
14380finish_eval=
14381shlibpath_var=
14382shlibpath_overrides_runpath=unknown
14383version_type=none
14384dynamic_linker="$host_os ld.so"
14385sys_lib_dlsearch_path_spec="/lib /usr/lib"
14386if test "$GCC" = yes; then
14387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14388 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14389 # if the path contains ";" then we assume it to be the separator
14390 # otherwise default to the standard path separator (i.e. ":") - it is
14391 # assumed that no part of a normal pathname contains ";" but that should
14392 # okay in the real world where ";" in dirpaths is itself problematic.
14393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14394 else
14395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14396 fi
14397else
14398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14399fi
14400need_lib_prefix=unknown
14401hardcode_into_libs=no
14402
14403# when you set need_version to no, make sure it does not cause -set_version
14404# flags to be left without arguments
14405need_version=unknown
14406
14407case $host_os in
14408aix3*)
14409 version_type=linux
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14411 shlibpath_var=LIBPATH
14412
14413 # AIX 3 has no versioning support, so we append a major version to the name.
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 ;;
14416
14417aix4* | aix5*)
14418 version_type=linux
14419 need_lib_prefix=no
14420 need_version=no
14421 hardcode_into_libs=yes
14422 if test "$host_cpu" = ia64; then
14423 # AIX 5 supports IA64
14424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 else
14427 # With GCC up to 2.95.x, collect2 would create an import file
14428 # for dependence libraries. The import file would start with
14429 # the line `#! .'. This would cause the generated library to
14430 # depend on `.', always an invalid library. This was fixed in
14431 # development snapshots of GCC prior to 3.0.
14432 case $host_os in
14433 aix4 | aix4.[01] | aix4.[01].*)
14434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14435 echo ' yes '
14436 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14437 :
14438 else
14439 can_build_shared=no
14440 fi
14441 ;;
14442 esac
14443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14444 # soname into executable. Probably we can add versioning support to
14445 # collect2, so additional links can be useful in future.
14446 if test "$aix_use_runtimelinking" = yes; then
14447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14448 # instead of lib<name>.a to let people know that these are not
14449 # typical AIX shared libraries.
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 else
14452 # We preserve .a as extension for shared libraries through AIX4.2
14453 # and later when we are not doing run time linking.
14454 library_names_spec='${libname}${release}.a $libname.a'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14456 fi
14457 shlibpath_var=LIBPATH
14458 fi
14459 ;;
14460
14461amigaos*)
14462 library_names_spec='$libname.ixlibrary $libname.a'
14463 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14464 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'
14465 ;;
14466
14467beos*)
14468 library_names_spec='${libname}${shared_ext}'
14469 dynamic_linker="$host_os ld.so"
14470 shlibpath_var=LIBRARY_PATH
14471 ;;
14472
14473bsdi[45]*)
14474 version_type=linux
14475 need_version=no
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14482 # the default ld.so.conf also contains /usr/contrib/lib and
14483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14484 # libtool to hard-code these into programs
14485 ;;
14486
14487cygwin* | mingw* | pw32*)
14488 version_type=windows
14489 shrext_cmds=".dll"
14490 need_version=no
14491 need_lib_prefix=no
14492
14493 case $GCC,$host_os in
14494 yes,cygwin* | yes,mingw* | yes,pw32*)
14495 library_names_spec='$libname.dll.a'
14496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14497 postinstall_cmds='base_file=`basename \${file}`~
14498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14499 dldir=$destdir/`dirname \$dlpath`~
14500 test -d \$dldir || mkdir -p \$dldir~
14501 $install_prog $dir/$dlname \$dldir/$dlname~
14502 chmod a+x \$dldir/$dlname'
14503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14504 dlpath=$dir/\$dldll~
14505 $rm \$dlpath'
14506 shlibpath_overrides_runpath=yes
14507
14508 case $host_os in
14509 cygwin*)
14510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14511 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14512 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14513 ;;
14514 mingw*)
14515 # MinGW DLLs use traditional 'lib' prefix
14516 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14518 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14519 # It is most probably a Windows format PATH printed by
14520 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14521 # path with ; separators, and with drive letters. We can handle the
14522 # drive letters (cygwin fileutils understands them), so leave them,
14523 # especially as we might pass files found there to a mingw objdump,
14524 # which wouldn't understand a cygwinified path. Ahh.
14525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14526 else
14527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14528 fi
14529 ;;
14530 pw32*)
14531 # pw32 DLLs use 'pw' prefix rather than 'lib'
14532 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14533 ;;
14534 esac
14535 ;;
14536
14537 *)
14538 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14539 ;;
14540 esac
14541 dynamic_linker='Win32 ld.exe'
14542 # FIXME: first we should search . and the directory the executable is in
14543 shlibpath_var=PATH
14544 ;;
14545
14546darwin* | rhapsody*)
14547 dynamic_linker="$host_os dyld"
14548 version_type=darwin
14549 need_lib_prefix=no
14550 need_version=no
14551 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14552 soname_spec='${libname}${release}${major}$shared_ext'
14553 shlibpath_overrides_runpath=yes
14554 shlibpath_var=DYLD_LIBRARY_PATH
14555 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14556 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14557 if test "$GCC" = yes; then
14558 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"`
14559 else
14560 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14561 fi
14562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14563 ;;
14564
14565dgux*)
14566 version_type=linux
14567 need_lib_prefix=no
14568 need_version=no
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 ;;
14573
14574freebsd1*)
14575 dynamic_linker=no
14576 ;;
14577
14578kfreebsd*-gnu)
14579 version_type=linux
14580 need_lib_prefix=no
14581 need_version=no
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=no
14586 hardcode_into_libs=yes
14587 dynamic_linker='GNU ld.so'
14588 ;;
14589
14590freebsd* | dragonfly*)
14591 # DragonFly does not have aout. When/if they implement a new
14592 # versioning mechanism, adjust this.
14593 if test -x /usr/bin/objformat; then
14594 objformat=`/usr/bin/objformat`
14595 else
14596 case $host_os in
14597 freebsd[123]*) objformat=aout ;;
14598 *) objformat=elf ;;
14599 esac
14600 fi
14601 version_type=freebsd-$objformat
14602 case $version_type in
14603 freebsd-elf*)
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14605 need_version=no
14606 need_lib_prefix=no
14607 ;;
14608 freebsd-*)
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14610 need_version=yes
14611 ;;
14612 esac
14613 shlibpath_var=LD_LIBRARY_PATH
14614 case $host_os in
14615 freebsd2*)
14616 shlibpath_overrides_runpath=yes
14617 ;;
14618 freebsd3.[01]* | freebsdelf3.[01]*)
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14621 ;;
14622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14624 shlibpath_overrides_runpath=no
14625 hardcode_into_libs=yes
14626 ;;
14627 freebsd*) # from 4.6 on
14628 shlibpath_overrides_runpath=yes
14629 hardcode_into_libs=yes
14630 ;;
14631 esac
14632 ;;
14633
14634gnu*)
14635 version_type=linux
14636 need_lib_prefix=no
14637 need_version=no
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 shlibpath_var=LD_LIBRARY_PATH
14641 hardcode_into_libs=yes
14642 ;;
14643
14644hpux9* | hpux10* | hpux11*)
14645 # Give a soname corresponding to the major version so that dld.sl refuses to
14646 # link against other versions.
14647 version_type=sunos
14648 need_lib_prefix=no
14649 need_version=no
14650 case $host_cpu in
14651 ia64*)
14652 shrext_cmds='.so'
14653 hardcode_into_libs=yes
14654 dynamic_linker="$host_os dld.so"
14655 shlibpath_var=LD_LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 if test "X$HPUX_IA64_MODE" = X32; then
14660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14661 else
14662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14663 fi
14664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14665 ;;
14666 hppa*64*)
14667 shrext_cmds='.sl'
14668 hardcode_into_libs=yes
14669 dynamic_linker="$host_os dld.sl"
14670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14676 ;;
14677 *)
14678 shrext_cmds='.sl'
14679 dynamic_linker="$host_os dld.sl"
14680 shlibpath_var=SHLIB_PATH
14681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 ;;
14685 esac
14686 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14687 postinstall_cmds='chmod 555 $lib'
14688 ;;
14689
14690interix3*)
14691 version_type=linux
14692 need_lib_prefix=no
14693 need_version=no
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=no
14699 hardcode_into_libs=yes
14700 ;;
14701
14702irix5* | irix6* | nonstopux*)
14703 case $host_os in
14704 nonstopux*) version_type=nonstopux ;;
14705 *)
14706 if test "$lt_cv_prog_gnu_ld" = yes; then
14707 version_type=linux
14708 else
14709 version_type=irix
14710 fi ;;
14711 esac
14712 need_lib_prefix=no
14713 need_version=no
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14716 case $host_os in
14717 irix5* | nonstopux*)
14718 libsuff= shlibsuff=
14719 ;;
14720 *)
14721 case $LD in # libtool.m4 will add one of these switches to LD
14722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14723 libsuff= shlibsuff= libmagic=32-bit;;
14724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14725 libsuff=32 shlibsuff=N32 libmagic=N32;;
14726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14728 *) libsuff= shlibsuff= libmagic=never-match;;
14729 esac
14730 ;;
14731 esac
14732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14733 shlibpath_overrides_runpath=no
14734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14736 hardcode_into_libs=yes
14737 ;;
14738
14739# No shared lib support for Linux oldld, aout, or coff.
14740linux*oldld* | linux*aout* | linux*coff*)
14741 dynamic_linker=no
14742 ;;
14743
14744# This must be Linux ELF.
14745linux*)
14746 version_type=linux
14747 need_lib_prefix=no
14748 need_version=no
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 shlibpath_overrides_runpath=no
14754 # This implies no fast_install, which is unacceptable.
14755 # Some rework will be needed to allow for fast_install
14756 # before this can be enabled.
14757 hardcode_into_libs=yes
14758
14759 # Append ld.so.conf contents to the search path
14760 if test -f /etc/ld.so.conf; then
14761 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14762 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14763 fi
14764
14765 # We used to test for /lib/ld.so.1 and disable shared libraries on
14766 # powerpc, because MkLinux only supported shared libraries with the
14767 # GNU dynamic linker. Since this was broken with cross compilers,
14768 # most powerpc-linux boxes support dynamic linking these days and
14769 # people can always --disable-shared, the test was removed, and we
14770 # assume the GNU/Linux dynamic linker is in use.
14771 dynamic_linker='GNU/Linux ld.so'
14772 ;;
14773
14774netbsdelf*-gnu)
14775 version_type=linux
14776 need_lib_prefix=no
14777 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
14781 shlibpath_overrides_runpath=no
14782 hardcode_into_libs=yes
14783 dynamic_linker='NetBSD ld.elf_so'
14784 ;;
14785
14786knetbsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
14793 shlibpath_overrides_runpath=no
14794 hardcode_into_libs=yes
14795 dynamic_linker='GNU ld.so'
14796 ;;
14797
14798netbsd*)
14799 version_type=sunos
14800 need_lib_prefix=no
14801 need_version=no
14802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14805 dynamic_linker='NetBSD (a.out) ld.so'
14806 else
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 dynamic_linker='NetBSD ld.elf_so'
14810 fi
14811 shlibpath_var=LD_LIBRARY_PATH
14812 shlibpath_overrides_runpath=yes
14813 hardcode_into_libs=yes
14814 ;;
14815
14816newsos6)
14817 version_type=linux
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14821 ;;
14822
14823nto-qnx*)
14824 version_type=linux
14825 need_lib_prefix=no
14826 need_version=no
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 shlibpath_overrides_runpath=yes
14831 ;;
14832
14833openbsd*)
14834 version_type=sunos
14835 sys_lib_dlsearch_path_spec="/usr/lib"
14836 need_lib_prefix=no
14837 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14838 case $host_os in
14839 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14840 *) need_version=no ;;
14841 esac
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14846 case $host_os in
14847 openbsd2.[89] | openbsd2.[89].*)
14848 shlibpath_overrides_runpath=no
14849 ;;
14850 *)
14851 shlibpath_overrides_runpath=yes
14852 ;;
14853 esac
14854 else
14855 shlibpath_overrides_runpath=yes
14856 fi
14857 ;;
14858
14859os2*)
14860 libname_spec='$name'
14861 shrext_cmds=".dll"
14862 need_lib_prefix=no
14863 library_names_spec='$libname${shared_ext} $libname.a'
14864 dynamic_linker='OS/2 ld.exe'
14865 shlibpath_var=LIBPATH
14866 ;;
14867
14868osf3* | osf4* | osf5*)
14869 version_type=osf
14870 need_lib_prefix=no
14871 need_version=no
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14877 ;;
14878
14879solaris*)
14880 version_type=linux
14881 need_lib_prefix=no
14882 need_version=no
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 shlibpath_overrides_runpath=yes
14887 hardcode_into_libs=yes
14888 # ldd complains unless libraries are executable
14889 postinstall_cmds='chmod +x $lib'
14890 ;;
14891
14892sunos4*)
14893 version_type=sunos
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14898 if test "$with_gnu_ld" = yes; then
14899 need_lib_prefix=no
14900 fi
14901 need_version=yes
14902 ;;
14903
14904sysv4 | sysv4.3*)
14905 version_type=linux
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 shlibpath_var=LD_LIBRARY_PATH
14909 case $host_vendor in
14910 sni)
14911 shlibpath_overrides_runpath=no
14912 need_lib_prefix=no
14913 export_dynamic_flag_spec='${wl}-Blargedynsym'
14914 runpath_var=LD_RUN_PATH
14915 ;;
14916 siemens)
14917 need_lib_prefix=no
14918 ;;
14919 motorola)
14920 need_lib_prefix=no
14921 need_version=no
14922 shlibpath_overrides_runpath=no
14923 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14924 ;;
14925 esac
14926 ;;
14927
14928sysv4*MP*)
14929 if test -d /usr/nec ;then
14930 version_type=linux
14931 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14932 soname_spec='$libname${shared_ext}.$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 fi
14935 ;;
14936
14937sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14938 version_type=freebsd-elf
14939 need_lib_prefix=no
14940 need_version=no
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 hardcode_into_libs=yes
14945 if test "$with_gnu_ld" = yes; then
14946 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14947 shlibpath_overrides_runpath=no
14948 else
14949 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14950 shlibpath_overrides_runpath=yes
14951 case $host_os in
14952 sco3.2v5*)
14953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14954 ;;
14955 esac
14956 fi
14957 sys_lib_dlsearch_path_spec='/usr/lib'
14958 ;;
14959
14960uts4*)
14961 version_type=linux
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 ;;
14966
14967*)
14968 dynamic_linker=no
14969 ;;
14970esac
14971echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14972echo "${ECHO_T}$dynamic_linker" >&6
14973test "$dynamic_linker" = no && can_build_shared=no
14974
14975variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14976if test "$GCC" = yes; then
14977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14978fi
14979
14980echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14981echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14982hardcode_action_F77=
14983if test -n "$hardcode_libdir_flag_spec_F77" || \
14984 test -n "$runpath_var_F77" || \
14985 test "X$hardcode_automatic_F77" = "Xyes" ; then
14986
14987 # We can hardcode non-existant directories.
14988 if test "$hardcode_direct_F77" != no &&
14989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14990 # have to relink, otherwise we might link with an installed library
14991 # when we should be linking with a yet-to-be-installed one
14992 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14993 test "$hardcode_minus_L_F77" != no; then
14994 # Linking always hardcodes the temporary library directory.
14995 hardcode_action_F77=relink
14996 else
14997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14998 hardcode_action_F77=immediate
14999 fi
15000else
15001 # We cannot hardcode anything, or else we can only hardcode existing
15002 # directories.
15003 hardcode_action_F77=unsupported
15004fi
15005echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15006echo "${ECHO_T}$hardcode_action_F77" >&6
15007
15008if test "$hardcode_action_F77" = relink; then
15009 # Fast installation is not supported
15010 enable_fast_install=no
15011elif test "$shlibpath_overrides_runpath" = yes ||
15012 test "$enable_shared" = no; then
15013 # Fast installation is not necessary
15014 enable_fast_install=needless
15015fi
15016
15017
15018# The else clause should only fire when bootstrapping the
15019# libtool distribution, otherwise you forgot to ship ltmain.sh
15020# with your package, and you will get complaints that there are
15021# no rules to generate ltmain.sh.
15022if test -f "$ltmain"; then
15023 # See if we are running on zsh, and set the options which allow our commands through
15024 # without removal of \ escapes.
15025 if test -n "${ZSH_VERSION+set}" ; then
15026 setopt NO_GLOB_SUBST
15027 fi
15028 # Now quote all the things that may contain metacharacters while being
15029 # careful not to overquote the AC_SUBSTed values. We take copies of the
15030 # variables and quote the copies for generation of the libtool script.
15031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15032 SED SHELL STRIP \
15033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15035 deplibs_check_method reload_flag reload_cmds need_locks \
15036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15037 lt_cv_sys_global_symbol_to_c_name_address \
15038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15039 old_postinstall_cmds old_postuninstall_cmds \
15040 compiler_F77 \
15041 CC_F77 \
15042 LD_F77 \
15043 lt_prog_compiler_wl_F77 \
15044 lt_prog_compiler_pic_F77 \
15045 lt_prog_compiler_static_F77 \
15046 lt_prog_compiler_no_builtin_flag_F77 \
15047 export_dynamic_flag_spec_F77 \
15048 thread_safe_flag_spec_F77 \
15049 whole_archive_flag_spec_F77 \
15050 enable_shared_with_static_runtimes_F77 \
15051 old_archive_cmds_F77 \
15052 old_archive_from_new_cmds_F77 \
15053 predep_objects_F77 \
15054 postdep_objects_F77 \
15055 predeps_F77 \
15056 postdeps_F77 \
15057 compiler_lib_search_path_F77 \
15058 archive_cmds_F77 \
15059 archive_expsym_cmds_F77 \
15060 postinstall_cmds_F77 \
15061 postuninstall_cmds_F77 \
15062 old_archive_from_expsyms_cmds_F77 \
15063 allow_undefined_flag_F77 \
15064 no_undefined_flag_F77 \
15065 export_symbols_cmds_F77 \
15066 hardcode_libdir_flag_spec_F77 \
15067 hardcode_libdir_flag_spec_ld_F77 \
15068 hardcode_libdir_separator_F77 \
15069 hardcode_automatic_F77 \
15070 module_cmds_F77 \
15071 module_expsym_cmds_F77 \
15072 lt_cv_prog_compiler_c_o_F77 \
15073 exclude_expsyms_F77 \
15074 include_expsyms_F77; do
15075
15076 case $var in
15077 old_archive_cmds_F77 | \
15078 old_archive_from_new_cmds_F77 | \
15079 archive_cmds_F77 | \
15080 archive_expsym_cmds_F77 | \
15081 module_cmds_F77 | \
15082 module_expsym_cmds_F77 | \
15083 old_archive_from_expsyms_cmds_F77 | \
15084 export_symbols_cmds_F77 | \
15085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15086 postinstall_cmds | postuninstall_cmds | \
15087 old_postinstall_cmds | old_postuninstall_cmds | \
15088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15089 # Double-quote double-evaled strings.
15090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15091 ;;
15092 *)
15093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15094 ;;
15095 esac
15096 done
15097
15098 case $lt_echo in
15099 *'\$0 --fallback-echo"')
15100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15101 ;;
15102 esac
15103
15104cfgfile="$ofile"
15105
15106 cat <<__EOF__ >> "$cfgfile"
15107# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15108
15109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15110
15111# Shell to use when invoking shell scripts.
15112SHELL=$lt_SHELL
15113
15114# Whether or not to build shared libraries.
15115build_libtool_libs=$enable_shared
15116
15117# Whether or not to build static libraries.
15118build_old_libs=$enable_static
15119
15120# Whether or not to add -lc for building shared libraries.
15121build_libtool_need_lc=$archive_cmds_need_lc_F77
15122
15123# Whether or not to disallow shared libs when runtime libs are static
15124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15125
15126# Whether or not to optimize for fast installation.
15127fast_install=$enable_fast_install
15128
15129# The host system.
15130host_alias=$host_alias
15131host=$host
15132host_os=$host_os
15133
15134# The build system.
15135build_alias=$build_alias
15136build=$build
15137build_os=$build_os
15138
15139# An echo program that does not interpret backslashes.
15140echo=$lt_echo
15141
15142# The archiver.
15143AR=$lt_AR
15144AR_FLAGS=$lt_AR_FLAGS
15145
15146# A C compiler.
15147LTCC=$lt_LTCC
15148
15149# LTCC compiler flags.
15150LTCFLAGS=$lt_LTCFLAGS
15151
15152# A language-specific compiler.
15153CC=$lt_compiler_F77
15154
15155# Is the compiler the GNU C compiler?
15156with_gcc=$GCC_F77
15157
15158# An ERE matcher.
15159EGREP=$lt_EGREP
15160
15161# The linker used to build libraries.
15162LD=$lt_LD_F77
15163
15164# Whether we need hard or soft links.
15165LN_S=$lt_LN_S
15166
15167# A BSD-compatible nm program.
15168NM=$lt_NM
15169
15170# A symbol stripping program
15171STRIP=$lt_STRIP
15172
15173# Used to examine libraries when file_magic_cmd begins "file"
15174MAGIC_CMD=$MAGIC_CMD
15175
15176# Used on cygwin: DLL creation program.
15177DLLTOOL="$DLLTOOL"
15178
15179# Used on cygwin: object dumper.
15180OBJDUMP="$OBJDUMP"
15181
15182# Used on cygwin: assembler.
15183AS="$AS"
15184
15185# The name of the directory that contains temporary libtool files.
15186objdir=$objdir
15187
15188# How to create reloadable object files.
15189reload_flag=$lt_reload_flag
15190reload_cmds=$lt_reload_cmds
15191
15192# How to pass a linker flag through the compiler.
15193wl=$lt_lt_prog_compiler_wl_F77
15194
15195# Object file suffix (normally "o").
15196objext="$ac_objext"
15197
15198# Old archive suffix (normally "a").
15199libext="$libext"
15200
15201# Shared library suffix (normally ".so").
15202shrext_cmds='$shrext_cmds'
15203
15204# Executable file suffix (normally "").
15205exeext="$exeext"
15206
15207# Additional compiler flags for building library objects.
15208pic_flag=$lt_lt_prog_compiler_pic_F77
15209pic_mode=$pic_mode
15210
15211# What is the maximum length of a command?
15212max_cmd_len=$lt_cv_sys_max_cmd_len
15213
15214# Does compiler simultaneously support -c and -o options?
15215compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15216
15217# Must we lock files when doing compilation?
15218need_locks=$lt_need_locks
15219
15220# Do we need the lib prefix for modules?
15221need_lib_prefix=$need_lib_prefix
15222
15223# Do we need a version for libraries?
15224need_version=$need_version
15225
15226# Whether dlopen is supported.
15227dlopen_support=$enable_dlopen
15228
15229# Whether dlopen of programs is supported.
15230dlopen_self=$enable_dlopen_self
15231
15232# Whether dlopen of statically linked programs is supported.
15233dlopen_self_static=$enable_dlopen_self_static
15234
15235# Compiler flag to prevent dynamic linking.
15236link_static_flag=$lt_lt_prog_compiler_static_F77
15237
15238# Compiler flag to turn off builtin functions.
15239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15240
15241# Compiler flag to allow reflexive dlopens.
15242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15243
15244# Compiler flag to generate shared objects directly from archives.
15245whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15246
15247# Compiler flag to generate thread-safe objects.
15248thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15249
15250# Library versioning type.
15251version_type=$version_type
15252
15253# Format of library name prefix.
15254libname_spec=$lt_libname_spec
15255
15256# List of archive names. First name is the real one, the rest are links.
15257# The last name is the one that the linker finds with -lNAME.
15258library_names_spec=$lt_library_names_spec
15259
15260# The coded name of the library, if different from the real name.
15261soname_spec=$lt_soname_spec
15262
15263# Commands used to build and install an old-style archive.
15264RANLIB=$lt_RANLIB
15265old_archive_cmds=$lt_old_archive_cmds_F77
15266old_postinstall_cmds=$lt_old_postinstall_cmds
15267old_postuninstall_cmds=$lt_old_postuninstall_cmds
15268
15269# Create an old-style archive from a shared archive.
15270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15271
15272# Create a temporary old-style archive to link instead of a shared archive.
15273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15274
15275# Commands used to build and install a shared archive.
15276archive_cmds=$lt_archive_cmds_F77
15277archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15278postinstall_cmds=$lt_postinstall_cmds
15279postuninstall_cmds=$lt_postuninstall_cmds
15280
15281# Commands used to build a loadable module (assumed same as above if empty)
15282module_cmds=$lt_module_cmds_F77
15283module_expsym_cmds=$lt_module_expsym_cmds_F77
15284
15285# Commands to strip libraries.
15286old_striplib=$lt_old_striplib
15287striplib=$lt_striplib
15288
15289# Dependencies to place before the objects being linked to create a
15290# shared library.
15291predep_objects=$lt_predep_objects_F77
15292
15293# Dependencies to place after the objects being linked to create a
15294# shared library.
15295postdep_objects=$lt_postdep_objects_F77
15296
15297# Dependencies to place before the objects being linked to create a
15298# shared library.
15299predeps=$lt_predeps_F77
15300
15301# Dependencies to place after the objects being linked to create a
15302# shared library.
15303postdeps=$lt_postdeps_F77
15304
15305# The library search path used internally by the compiler when linking
15306# a shared library.
15307compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15308
15309# Method to check whether dependent libraries are shared objects.
15310deplibs_check_method=$lt_deplibs_check_method
15311
15312# Command to use when deplibs_check_method == file_magic.
15313file_magic_cmd=$lt_file_magic_cmd
15314
15315# Flag that allows shared libraries with undefined symbols to be built.
15316allow_undefined_flag=$lt_allow_undefined_flag_F77
15317
15318# Flag that forces no undefined symbols.
15319no_undefined_flag=$lt_no_undefined_flag_F77
15320
15321# Commands used to finish a libtool library installation in a directory.
15322finish_cmds=$lt_finish_cmds
15323
15324# Same as above, but a single script fragment to be evaled but not shown.
15325finish_eval=$lt_finish_eval
15326
15327# Take the output of nm and produce a listing of raw symbols and C names.
15328global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15329
15330# Transform the output of nm in a proper C declaration
15331global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15332
15333# Transform the output of nm in a C name address pair
15334global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15335
15336# This is the shared library runtime path variable.
15337runpath_var=$runpath_var
15338
15339# This is the shared library path variable.
15340shlibpath_var=$shlibpath_var
15341
15342# Is shlibpath searched before the hard-coded library search path?
15343shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15344
15345# How to hardcode a shared library path into an executable.
15346hardcode_action=$hardcode_action_F77
15347
15348# Whether we should hardcode library paths into libraries.
15349hardcode_into_libs=$hardcode_into_libs
15350
15351# Flag to hardcode \$libdir into a binary during linking.
15352# This must work even if \$libdir does not exist.
15353hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15354
15355# If ld is used when linking, flag to hardcode \$libdir into
15356# a binary during linking. This must work even if \$libdir does
15357# not exist.
15358hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15359
15360# Whether we need a single -rpath flag with a separated argument.
15361hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15362
15363# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15364# resulting binary.
15365hardcode_direct=$hardcode_direct_F77
15366
15367# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15368# resulting binary.
15369hardcode_minus_L=$hardcode_minus_L_F77
15370
15371# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15372# the resulting binary.
15373hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15374
15375# Set to yes if building a shared library automatically hardcodes DIR into the library
15376# and all subsequent libraries and executables linked against it.
15377hardcode_automatic=$hardcode_automatic_F77
15378
15379# Variables whose values should be saved in libtool wrapper scripts and
15380# restored at relink time.
15381variables_saved_for_relink="$variables_saved_for_relink"
15382
15383# Whether libtool must link a program against all its dependency libraries.
15384link_all_deplibs=$link_all_deplibs_F77
15385
15386# Compile-time system search path for libraries
15387sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15388
15389# Run-time system search path for libraries
15390sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15391
15392# Fix the shell variable \$srcfile for the compiler.
15393fix_srcfile_path="$fix_srcfile_path_F77"
15394
15395# Set to yes if exported symbols are required.
15396always_export_symbols=$always_export_symbols_F77
15397
15398# The commands to list exported symbols.
15399export_symbols_cmds=$lt_export_symbols_cmds_F77
15400
15401# The commands to extract the exported symbol list from a shared archive.
15402extract_expsyms_cmds=$lt_extract_expsyms_cmds
15403
15404# Symbols that should not be listed in the preloaded symbols.
15405exclude_expsyms=$lt_exclude_expsyms_F77
15406
15407# Symbols that must always be exported.
15408include_expsyms=$lt_include_expsyms_F77
15409
15410# ### END LIBTOOL TAG CONFIG: $tagname
15411
15412__EOF__
15413
15414
15415else
15416 # If there is no Makefile yet, we rely on a make rule to execute
15417 # `config.status --recheck' to rerun these tests and create the
15418 # libtool script then.
15419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15420 if test -f "$ltmain_in"; then
15421 test -f Makefile && make "$ltmain"
15422 fi
15423fi
15424
15425
15426ac_ext=c
15427ac_cpp='$CPP $CPPFLAGS'
15428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15430ac_compiler_gnu=$ac_cv_c_compiler_gnu
15431
15432CC="$lt_save_CC"
15433
15434 else
15435 tagname=""
15436 fi
15437 ;;
15438
15439 GCJ)
15440 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15441
15442
15443
15444# Source file extension for Java test sources.
15445ac_ext=java
15446
15447# Object file extension for compiled Java test sources.
15448objext=o
15449objext_GCJ=$objext
15450
15451# Code to be used in simple compile tests
15452lt_simple_compile_test_code="class foo {}\n"
15453
15454# Code to be used in simple link tests
15455lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15456
15457# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15458
15459# If no C compiler was specified, use CC.
15460LTCC=${LTCC-"$CC"}
15461
15462# If no C compiler flags were specified, use CFLAGS.
15463LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15464
15465# Allow CC to be a program name with arguments.
15466compiler=$CC
15467
15468
15469# save warnings/boilerplate of simple test code
15470ac_outfile=conftest.$ac_objext
15471printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15472eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15473_lt_compiler_boilerplate=`cat conftest.err`
15474$rm conftest*
15475
15476ac_outfile=conftest.$ac_objext
15477printf "$lt_simple_link_test_code" >conftest.$ac_ext
15478eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15479_lt_linker_boilerplate=`cat conftest.err`
15480$rm conftest*
15481
15482
15483# Allow CC to be a program name with arguments.
15484lt_save_CC="$CC"
15485CC=${GCJ-"gcj"}
15486compiler=$CC
15487compiler_GCJ=$CC
15488for cc_temp in $compiler""; do
15489 case $cc_temp in
15490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15492 \-*) ;;
15493 *) break;;
15494 esac
15495done
15496cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15497
15498
15499# GCJ did not exist at the time GCC didn't implicitly link libc in.
15500archive_cmds_need_lc_GCJ=no
15501
15502old_archive_cmds_GCJ=$old_archive_cmds
15503
15504
15505lt_prog_compiler_no_builtin_flag_GCJ=
15506
15507if test "$GCC" = yes; then
15508 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15509
15510
15511echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15512echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15513if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15515else
15516 lt_cv_prog_compiler_rtti_exceptions=no
15517 ac_outfile=conftest.$ac_objext
15518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15519 lt_compiler_flag="-fno-rtti -fno-exceptions"
15520 # Insert the option either (1) after the last *FLAGS variable, or
15521 # (2) before a word containing "conftest.", or (3) at the end.
15522 # Note that $ac_compile itself does not contain backslashes and begins
15523 # with a dollar sign (not a hyphen), so the echo should work correctly.
15524 # The option is referenced via a variable to avoid confusing sed.
15525 lt_compile=`echo "$ac_compile" | $SED \
15526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15528 -e 's:$: $lt_compiler_flag:'`
15529 (eval echo "\"\$as_me:15529: $lt_compile\"" >&5)
15530 (eval "$lt_compile" 2>conftest.err)
15531 ac_status=$?
15532 cat conftest.err >&5
15533 echo "$as_me:15533: \$? = $ac_status" >&5
15534 if (exit $ac_status) && test -s "$ac_outfile"; then
15535 # The compiler can only warn and ignore the option if not recognized
15536 # So say no if there are warnings other than the usual output.
15537 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15540 lt_cv_prog_compiler_rtti_exceptions=yes
15541 fi
15542 fi
15543 $rm conftest*
15544
15545fi
15546echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15547echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15548
15549if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15550 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15551else
15552 :
15553fi
15554
15555fi
15556
15557lt_prog_compiler_wl_GCJ=
15558lt_prog_compiler_pic_GCJ=
15559lt_prog_compiler_static_GCJ=
15560
15561echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15562echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15563
15564 if test "$GCC" = yes; then
15565 lt_prog_compiler_wl_GCJ='-Wl,'
15566 lt_prog_compiler_static_GCJ='-static'
15567
15568 case $host_os in
15569 aix*)
15570 # All AIX code is PIC.
15571 if test "$host_cpu" = ia64; then
15572 # AIX 5 now supports IA64 processor
15573 lt_prog_compiler_static_GCJ='-Bstatic'
15574 fi
15575 ;;
15576
15577 amigaos*)
15578 # FIXME: we need at least 68020 code to build shared libraries, but
15579 # adding the `-m68020' flag to GCC prevents building anything better,
15580 # like `-m68040'.
15581 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15582 ;;
15583
15584 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15585 # PIC is the default for these OSes.
15586 ;;
15587
15588 mingw* | pw32* | os2*)
15589 # This hack is so that the source file can tell whether it is being
15590 # built for inclusion in a dll (and should export symbols for example).
15591 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15592 ;;
15593
15594 darwin* | rhapsody*)
15595 # PIC is the default on this platform
15596 # Common symbols not allowed in MH_DYLIB files
15597 lt_prog_compiler_pic_GCJ='-fno-common'
15598 ;;
15599
15600 interix3*)
15601 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15602 # Instead, we relocate shared libraries at runtime.
15603 ;;
15604
15605 msdosdjgpp*)
15606 # Just because we use GCC doesn't mean we suddenly get shared libraries
15607 # on systems that don't support them.
15608 lt_prog_compiler_can_build_shared_GCJ=no
15609 enable_shared=no
15610 ;;
15611
15612 sysv4*MP*)
15613 if test -d /usr/nec; then
15614 lt_prog_compiler_pic_GCJ=-Kconform_pic
15615 fi
15616 ;;
15617
15618 hpux*)
15619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15620 # not for PA HP-UX.
15621 case $host_cpu in
15622 hppa*64*|ia64*)
15623 # +Z the default
15624 ;;
15625 *)
15626 lt_prog_compiler_pic_GCJ='-fPIC'
15627 ;;
15628 esac
15629 ;;
15630
15631 *)
15632 lt_prog_compiler_pic_GCJ='-fPIC'
15633 ;;
15634 esac
15635 else
15636 # PORTME Check for flag to pass linker flags through the system compiler.
15637 case $host_os in
15638 aix*)
15639 lt_prog_compiler_wl_GCJ='-Wl,'
15640 if test "$host_cpu" = ia64; then
15641 # AIX 5 now supports IA64 processor
15642 lt_prog_compiler_static_GCJ='-Bstatic'
15643 else
15644 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15645 fi
15646 ;;
15647 darwin*)
15648 # PIC is the default on this platform
15649 # Common symbols not allowed in MH_DYLIB files
15650 case $cc_basename in
15651 xlc*)
15652 lt_prog_compiler_pic_GCJ='-qnocommon'
15653 lt_prog_compiler_wl_GCJ='-Wl,'
15654 ;;
15655 esac
15656 ;;
15657
15658 mingw* | pw32* | os2*)
15659 # This hack is so that the source file can tell whether it is being
15660 # built for inclusion in a dll (and should export symbols for example).
15661 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15662 ;;
15663
15664 hpux9* | hpux10* | hpux11*)
15665 lt_prog_compiler_wl_GCJ='-Wl,'
15666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15667 # not for PA HP-UX.
15668 case $host_cpu in
15669 hppa*64*|ia64*)
15670 # +Z the default
15671 ;;
15672 *)
15673 lt_prog_compiler_pic_GCJ='+Z'
15674 ;;
15675 esac
15676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15677 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15678 ;;
15679
15680 irix5* | irix6* | nonstopux*)
15681 lt_prog_compiler_wl_GCJ='-Wl,'
15682 # PIC (with -KPIC) is the default.
15683 lt_prog_compiler_static_GCJ='-non_shared'
15684 ;;
15685
15686 newsos6)
15687 lt_prog_compiler_pic_GCJ='-KPIC'
15688 lt_prog_compiler_static_GCJ='-Bstatic'
15689 ;;
15690
15691 linux*)
15692 case $cc_basename in
15693 icc* | ecc*)
15694 lt_prog_compiler_wl_GCJ='-Wl,'
15695 lt_prog_compiler_pic_GCJ='-KPIC'
15696 lt_prog_compiler_static_GCJ='-static'
15697 ;;
15698 pgcc* | pgf77* | pgf90* | pgf95*)
15699 # Portland Group compilers (*not* the Pentium gcc compiler,
15700 # which looks to be a dead project)
15701 lt_prog_compiler_wl_GCJ='-Wl,'
15702 lt_prog_compiler_pic_GCJ='-fpic'
15703 lt_prog_compiler_static_GCJ='-Bstatic'
15704 ;;
15705 ccc*)
15706 lt_prog_compiler_wl_GCJ='-Wl,'
15707 # All Alpha code is PIC.
15708 lt_prog_compiler_static_GCJ='-non_shared'
15709 ;;
15710 esac
15711 ;;
15712
15713 osf3* | osf4* | osf5*)
15714 lt_prog_compiler_wl_GCJ='-Wl,'
15715 # All OSF/1 code is PIC.
15716 lt_prog_compiler_static_GCJ='-non_shared'
15717 ;;
15718
15719 solaris*)
15720 lt_prog_compiler_pic_GCJ='-KPIC'
15721 lt_prog_compiler_static_GCJ='-Bstatic'
15722 case $cc_basename in
15723 f77* | f90* | f95*)
15724 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15725 *)
15726 lt_prog_compiler_wl_GCJ='-Wl,';;
15727 esac
15728 ;;
15729
15730 sunos4*)
15731 lt_prog_compiler_wl_GCJ='-Qoption ld '
15732 lt_prog_compiler_pic_GCJ='-PIC'
15733 lt_prog_compiler_static_GCJ='-Bstatic'
15734 ;;
15735
15736 sysv4 | sysv4.2uw2* | sysv4.3*)
15737 lt_prog_compiler_wl_GCJ='-Wl,'
15738 lt_prog_compiler_pic_GCJ='-KPIC'
15739 lt_prog_compiler_static_GCJ='-Bstatic'
15740 ;;
15741
15742 sysv4*MP*)
15743 if test -d /usr/nec ;then
15744 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15745 lt_prog_compiler_static_GCJ='-Bstatic'
15746 fi
15747 ;;
15748
15749 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15750 lt_prog_compiler_wl_GCJ='-Wl,'
15751 lt_prog_compiler_pic_GCJ='-KPIC'
15752 lt_prog_compiler_static_GCJ='-Bstatic'
15753 ;;
15754
15755 unicos*)
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 lt_prog_compiler_can_build_shared_GCJ=no
15758 ;;
15759
15760 uts4*)
15761 lt_prog_compiler_pic_GCJ='-pic'
15762 lt_prog_compiler_static_GCJ='-Bstatic'
15763 ;;
15764
15765 *)
15766 lt_prog_compiler_can_build_shared_GCJ=no
15767 ;;
15768 esac
15769 fi
15770
15771echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15772echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15773
15774#
15775# Check to make sure the PIC flag actually works.
15776#
15777if test -n "$lt_prog_compiler_pic_GCJ"; then
15778
15779echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15780echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15781if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783else
15784 lt_prog_compiler_pic_works_GCJ=no
15785 ac_outfile=conftest.$ac_objext
15786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15787 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15788 # Insert the option either (1) after the last *FLAGS variable, or
15789 # (2) before a word containing "conftest.", or (3) at the end.
15790 # Note that $ac_compile itself does not contain backslashes and begins
15791 # with a dollar sign (not a hyphen), so the echo should work correctly.
15792 # The option is referenced via a variable to avoid confusing sed.
15793 lt_compile=`echo "$ac_compile" | $SED \
15794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15796 -e 's:$: $lt_compiler_flag:'`
15797 (eval echo "\"\$as_me:15797: $lt_compile\"" >&5)
15798 (eval "$lt_compile" 2>conftest.err)
15799 ac_status=$?
15800 cat conftest.err >&5
15801 echo "$as_me:15801: \$? = $ac_status" >&5
15802 if (exit $ac_status) && test -s "$ac_outfile"; then
15803 # The compiler can only warn and ignore the option if not recognized
15804 # So say no if there are warnings other than the usual output.
15805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15808 lt_prog_compiler_pic_works_GCJ=yes
15809 fi
15810 fi
15811 $rm conftest*
15812
15813fi
15814echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15815echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15816
15817if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15818 case $lt_prog_compiler_pic_GCJ in
15819 "" | " "*) ;;
15820 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15821 esac
15822else
15823 lt_prog_compiler_pic_GCJ=
15824 lt_prog_compiler_can_build_shared_GCJ=no
15825fi
15826
15827fi
15828case $host_os in
15829 # For platforms which do not support PIC, -DPIC is meaningless:
15830 *djgpp*)
15831 lt_prog_compiler_pic_GCJ=
15832 ;;
15833 *)
15834 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15835 ;;
15836esac
15837
15838#
15839# Check to make sure the static flag actually works.
15840#
15841wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15842echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15843echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15844if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846else
15847 lt_prog_compiler_static_works_GCJ=no
15848 save_LDFLAGS="$LDFLAGS"
15849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15850 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15852 # The linker can only warn and ignore the option if not recognized
15853 # So say no if there are warnings
15854 if test -s conftest.err; then
15855 # Append any errors to the config.log.
15856 cat conftest.err 1>&5
15857 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15859 if diff conftest.exp conftest.er2 >/dev/null; then
15860 lt_prog_compiler_static_works_GCJ=yes
15861 fi
15862 else
15863 lt_prog_compiler_static_works_GCJ=yes
15864 fi
15865 fi
15866 $rm conftest*
15867 LDFLAGS="$save_LDFLAGS"
15868
15869fi
15870echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15871echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15872
15873if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15874 :
15875else
15876 lt_prog_compiler_static_GCJ=
15877fi
15878
15879
15880echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15881echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15882if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884else
15885 lt_cv_prog_compiler_c_o_GCJ=no
15886 $rm -r conftest 2>/dev/null
15887 mkdir conftest
15888 cd conftest
15889 mkdir out
15890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15891
15892 lt_compiler_flag="-o out/conftest2.$ac_objext"
15893 # Insert the option either (1) after the last *FLAGS variable, or
15894 # (2) before a word containing "conftest.", or (3) at the end.
15895 # Note that $ac_compile itself does not contain backslashes and begins
15896 # with a dollar sign (not a hyphen), so the echo should work correctly.
15897 lt_compile=`echo "$ac_compile" | $SED \
15898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15900 -e 's:$: $lt_compiler_flag:'`
15901 (eval echo "\"\$as_me:15901: $lt_compile\"" >&5)
15902 (eval "$lt_compile" 2>out/conftest.err)
15903 ac_status=$?
15904 cat out/conftest.err >&5
15905 echo "$as_me:15905: \$? = $ac_status" >&5
15906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15907 then
15908 # The compiler can only warn and ignore the option if not recognized
15909 # So say no if there are warnings
15910 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15913 lt_cv_prog_compiler_c_o_GCJ=yes
15914 fi
15915 fi
15916 chmod u+w . 2>&5
15917 $rm conftest*
15918 # SGI C++ compiler will create directory out/ii_files/ for
15919 # template instantiation
15920 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15921 $rm out/* && rmdir out
15922 cd ..
15923 rmdir conftest
15924 $rm conftest*
15925
15926fi
15927echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15928echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15929
15930
15931hard_links="nottested"
15932if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15933 # do not overwrite the value of need_locks provided by the user
15934 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15935echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15936 hard_links=yes
15937 $rm conftest*
15938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15939 touch conftest.a
15940 ln conftest.a conftest.b 2>&5 || hard_links=no
15941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15942 echo "$as_me:$LINENO: result: $hard_links" >&5
15943echo "${ECHO_T}$hard_links" >&6
15944 if test "$hard_links" = no; then
15945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15946echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15947 need_locks=warn
15948 fi
15949else
15950 need_locks=no
15951fi
15952
15953echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15954echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15955
15956 runpath_var=
15957 allow_undefined_flag_GCJ=
15958 enable_shared_with_static_runtimes_GCJ=no
15959 archive_cmds_GCJ=
15960 archive_expsym_cmds_GCJ=
15961 old_archive_From_new_cmds_GCJ=
15962 old_archive_from_expsyms_cmds_GCJ=
15963 export_dynamic_flag_spec_GCJ=
15964 whole_archive_flag_spec_GCJ=
15965 thread_safe_flag_spec_GCJ=
15966 hardcode_libdir_flag_spec_GCJ=
15967 hardcode_libdir_flag_spec_ld_GCJ=
15968 hardcode_libdir_separator_GCJ=
15969 hardcode_direct_GCJ=no
15970 hardcode_minus_L_GCJ=no
15971 hardcode_shlibpath_var_GCJ=unsupported
15972 link_all_deplibs_GCJ=unknown
15973 hardcode_automatic_GCJ=no
15974 module_cmds_GCJ=
15975 module_expsym_cmds_GCJ=
15976 always_export_symbols_GCJ=no
15977 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15978 # include_expsyms should be a list of space-separated symbols to be *always*
15979 # included in the symbol list
15980 include_expsyms_GCJ=
15981 # exclude_expsyms can be an extended regexp of symbols to exclude
15982 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15984 # as well as any symbol that contains `d'.
15985 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15987 # platforms (ab)use it in PIC code, but their linkers get confused if
15988 # the symbol is explicitly referenced. Since portable code cannot
15989 # rely on this symbol name, it's probably fine to never include it in
15990 # preloaded symbol tables.
15991 extract_expsyms_cmds=
15992 # Just being paranoid about ensuring that cc_basename is set.
15993 for cc_temp in $compiler""; do
15994 case $cc_temp in
15995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15997 \-*) ;;
15998 *) break;;
15999 esac
16000done
16001cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16002
16003 case $host_os in
16004 cygwin* | mingw* | pw32*)
16005 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16006 # When not using gcc, we currently assume that we are using
16007 # Microsoft Visual C++.
16008 if test "$GCC" != yes; then
16009 with_gnu_ld=no
16010 fi
16011 ;;
16012 interix*)
16013 # we just hope/assume this is gcc and not c89 (= MSVC++)
16014 with_gnu_ld=yes
16015 ;;
16016 openbsd*)
16017 with_gnu_ld=no
16018 ;;
16019 esac
16020
16021 ld_shlibs_GCJ=yes
16022 if test "$with_gnu_ld" = yes; then
16023 # If archive_cmds runs LD, not CC, wlarc should be empty
16024 wlarc='${wl}'
16025
16026 # Set some defaults for GNU ld with shared library support. These
16027 # are reset later if shared libraries are not supported. Putting them
16028 # here allows them to be overridden if necessary.
16029 runpath_var=LD_RUN_PATH
16030 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16031 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16032 # ancient GNU ld didn't support --whole-archive et. al.
16033 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16034 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16035 else
16036 whole_archive_flag_spec_GCJ=
16037 fi
16038 supports_anon_versioning=no
16039 case `$LD -v 2>/dev/null` in
16040 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16041 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16042 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16043 *\ 2.11.*) ;; # other 2.11 versions
16044 *) supports_anon_versioning=yes ;;
16045 esac
16046
16047 # See if GNU ld supports shared libraries.
16048 case $host_os in
16049 aix3* | aix4* | aix5*)
16050 # On AIX/PPC, the GNU linker is very broken
16051 if test "$host_cpu" != ia64; then
16052 ld_shlibs_GCJ=no
16053 cat <<EOF 1>&2
16054
16055*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16056*** to be unable to reliably create shared libraries on AIX.
16057*** Therefore, libtool is disabling shared libraries support. If you
16058*** really care for shared libraries, you may want to modify your PATH
16059*** so that a non-GNU linker is found, and then restart.
16060
16061EOF
16062 fi
16063 ;;
16064
16065 amigaos*)
16066 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)'
16067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16068 hardcode_minus_L_GCJ=yes
16069
16070 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16071 # that the semantics of dynamic libraries on AmigaOS, at least up
16072 # to version 4, is to share data among multiple programs linked
16073 # with the same dynamic library. Since this doesn't match the
16074 # behavior of shared libraries on other platforms, we can't use
16075 # them.
16076 ld_shlibs_GCJ=no
16077 ;;
16078
16079 beos*)
16080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16081 allow_undefined_flag_GCJ=unsupported
16082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16083 # support --undefined. This deserves some investigation. FIXME
16084 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16085 else
16086 ld_shlibs_GCJ=no
16087 fi
16088 ;;
16089
16090 cygwin* | mingw* | pw32*)
16091 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16092 # as there is no search path for DLLs.
16093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16094 allow_undefined_flag_GCJ=unsupported
16095 always_export_symbols_GCJ=no
16096 enable_shared_with_static_runtimes_GCJ=yes
16097 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16098
16099 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16100 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16101 # If the export-symbols file already is a .def file (1st line
16102 # is EXPORTS), use it as is; otherwise, prepend...
16103 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16104 cp $export_symbols $output_objdir/$soname.def;
16105 else
16106 echo EXPORTS > $output_objdir/$soname.def;
16107 cat $export_symbols >> $output_objdir/$soname.def;
16108 fi~
16109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16110 else
16111 ld_shlibs_GCJ=no
16112 fi
16113 ;;
16114
16115 interix3*)
16116 hardcode_direct_GCJ=no
16117 hardcode_shlibpath_var_GCJ=no
16118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16119 export_dynamic_flag_spec_GCJ='${wl}-E'
16120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16121 # Instead, shared libraries are loaded at an image base (0x10000000 by
16122 # default) and relocated if they conflict, which is a slow very memory
16123 # consuming and fragmenting process. To avoid this, we pick a random,
16124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16126 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'
16127 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'
16128 ;;
16129
16130 linux*)
16131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16132 tmp_addflag=
16133 case $cc_basename,$host_cpu in
16134 pgcc*) # Portland Group C compiler
16135 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'
16136 tmp_addflag=' $pic_flag'
16137 ;;
16138 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16139 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'
16140 tmp_addflag=' $pic_flag -Mnomain' ;;
16141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16142 tmp_addflag=' -i_dynamic' ;;
16143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16144 tmp_addflag=' -i_dynamic -nofor_main' ;;
16145 ifc* | ifort*) # Intel Fortran compiler
16146 tmp_addflag=' -nofor_main' ;;
16147 esac
16148 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16149
16150 if test $supports_anon_versioning = yes; then
16151 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16153 $echo "local: *; };" >> $output_objdir/$libname.ver~
16154 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16155 fi
16156 link_all_deplibs_GCJ=no
16157 else
16158 ld_shlibs_GCJ=no
16159 fi
16160 ;;
16161
16162 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16164 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16165 wlarc=
16166 else
16167 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16169 fi
16170 ;;
16171
16172 solaris*)
16173 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16174 ld_shlibs_GCJ=no
16175 cat <<EOF 1>&2
16176
16177*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16178*** create shared libraries on Solaris systems. Therefore, libtool
16179*** is disabling shared libraries support. We urge you to upgrade GNU
16180*** binutils to release 2.9.1 or newer. Another option is to modify
16181*** your PATH or compiler configuration so that the native linker is
16182*** used, and then restart.
16183
16184EOF
16185 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16188 else
16189 ld_shlibs_GCJ=no
16190 fi
16191 ;;
16192
16193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16194 case `$LD -v 2>&1` in
16195 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16196 ld_shlibs_GCJ=no
16197 cat <<_LT_EOF 1>&2
16198
16199*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16200*** reliably create shared libraries on SCO systems. Therefore, libtool
16201*** is disabling shared libraries support. We urge you to upgrade GNU
16202*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16203*** your PATH or compiler configuration so that the native linker is
16204*** used, and then restart.
16205
16206_LT_EOF
16207 ;;
16208 *)
16209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16210 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16211 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16212 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16213 else
16214 ld_shlibs_GCJ=no
16215 fi
16216 ;;
16217 esac
16218 ;;
16219
16220 sunos4*)
16221 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16222 wlarc=
16223 hardcode_direct_GCJ=yes
16224 hardcode_shlibpath_var_GCJ=no
16225 ;;
16226
16227 *)
16228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16229 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16230 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16231 else
16232 ld_shlibs_GCJ=no
16233 fi
16234 ;;
16235 esac
16236
16237 if test "$ld_shlibs_GCJ" = no; then
16238 runpath_var=
16239 hardcode_libdir_flag_spec_GCJ=
16240 export_dynamic_flag_spec_GCJ=
16241 whole_archive_flag_spec_GCJ=
16242 fi
16243 else
16244 # PORTME fill in a description of your system's linker (not GNU ld)
16245 case $host_os in
16246 aix3*)
16247 allow_undefined_flag_GCJ=unsupported
16248 always_export_symbols_GCJ=yes
16249 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'
16250 # Note: this linker hardcodes the directories in LIBPATH if there
16251 # are no directories specified by -L.
16252 hardcode_minus_L_GCJ=yes
16253 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16254 # Neither direct hardcoding nor static linking is supported with a
16255 # broken collect2.
16256 hardcode_direct_GCJ=unsupported
16257 fi
16258 ;;
16259
16260 aix4* | aix5*)
16261 if test "$host_cpu" = ia64; then
16262 # On IA64, the linker does run time linking by default, so we don't
16263 # have to do anything special.
16264 aix_use_runtimelinking=no
16265 exp_sym_flag='-Bexport'
16266 no_entry_flag=""
16267 else
16268 # If we're using GNU nm, then we don't want the "-C" option.
16269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16270 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16271 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'
16272 else
16273 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'
16274 fi
16275 aix_use_runtimelinking=no
16276
16277 # Test if we are trying to use run time linking or normal
16278 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16279 # need to do runtime linking.
16280 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16281 for ld_flag in $LDFLAGS; do
16282 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16283 aix_use_runtimelinking=yes
16284 break
16285 fi
16286 done
16287 ;;
16288 esac
16289
16290 exp_sym_flag='-bexport'
16291 no_entry_flag='-bnoentry'
16292 fi
16293
16294 # When large executables or shared objects are built, AIX ld can
16295 # have problems creating the table of contents. If linking a library
16296 # or program results in "error TOC overflow" add -mminimal-toc to
16297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16299
16300 archive_cmds_GCJ=''
16301 hardcode_direct_GCJ=yes
16302 hardcode_libdir_separator_GCJ=':'
16303 link_all_deplibs_GCJ=yes
16304
16305 if test "$GCC" = yes; then
16306 case $host_os in aix4.[012]|aix4.[012].*)
16307 # We only want to do this on AIX 4.2 and lower, the check
16308 # below for broken collect2 doesn't work under 4.3+
16309 collect2name=`${CC} -print-prog-name=collect2`
16310 if test -f "$collect2name" && \
16311 strings "$collect2name" | grep resolve_lib_name >/dev/null
16312 then
16313 # We have reworked collect2
16314 hardcode_direct_GCJ=yes
16315 else
16316 # We have old collect2
16317 hardcode_direct_GCJ=unsupported
16318 # It fails to find uninstalled libraries when the uninstalled
16319 # path is not listed in the libpath. Setting hardcode_minus_L
16320 # to unsupported forces relinking
16321 hardcode_minus_L_GCJ=yes
16322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323 hardcode_libdir_separator_GCJ=
16324 fi
16325 ;;
16326 esac
16327 shared_flag='-shared'
16328 if test "$aix_use_runtimelinking" = yes; then
16329 shared_flag="$shared_flag "'${wl}-G'
16330 fi
16331 else
16332 # not using gcc
16333 if test "$host_cpu" = ia64; then
16334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16335 # chokes on -Wl,-G. The following line is correct:
16336 shared_flag='-G'
16337 else
16338 if test "$aix_use_runtimelinking" = yes; then
16339 shared_flag='${wl}-G'
16340 else
16341 shared_flag='${wl}-bM:SRE'
16342 fi
16343 fi
16344 fi
16345
16346 # It seems that -bexpall does not export symbols beginning with
16347 # underscore (_), so it is better to generate a list of symbols to export.
16348 always_export_symbols_GCJ=yes
16349 if test "$aix_use_runtimelinking" = yes; then
16350 # Warning - without using the other runtime loading flags (-brtl),
16351 # -berok will link without error, but may produce a broken library.
16352 allow_undefined_flag_GCJ='-berok'
16353 # Determine the default libpath from the value encoded in an empty executable.
16354 cat >conftest.$ac_ext <<_ACEOF
16355/* confdefs.h. */
16356_ACEOF
16357cat confdefs.h >>conftest.$ac_ext
16358cat >>conftest.$ac_ext <<_ACEOF
16359/* end confdefs.h. */
16360
16361int
16362main ()
16363{
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369rm -f conftest.$ac_objext conftest$ac_exeext
16370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371 (eval $ac_link) 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest$ac_exeext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390
16391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16392}'`
16393# Check for a 64-bit object if we didn't find anything.
16394if 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; }
16395}'`; fi
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400fi
16401rm -f conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16404
16405 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16406 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"
16407 else
16408 if test "$host_cpu" = ia64; then
16409 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16410 allow_undefined_flag_GCJ="-z nodefs"
16411 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"
16412 else
16413 # Determine the default libpath from the value encoded in an empty executable.
16414 cat >conftest.$ac_ext <<_ACEOF
16415/* confdefs.h. */
16416_ACEOF
16417cat confdefs.h >>conftest.$ac_ext
16418cat >>conftest.$ac_ext <<_ACEOF
16419/* end confdefs.h. */
16420
16421int
16422main ()
16423{
16424
16425 ;
16426 return 0;
16427}
16428_ACEOF
16429rm -f conftest.$ac_objext conftest$ac_exeext
16430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16431 (eval $ac_link) 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } &&
16438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450
16451aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16452}'`
16453# Check for a 64-bit object if we didn't find anything.
16454if 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; }
16455}'`; fi
16456else
16457 echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
16460fi
16461rm -f conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16464
16465 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16466 # Warning - without using the other run time loading flags,
16467 # -berok will link without error, but may produce a broken library.
16468 no_undefined_flag_GCJ=' ${wl}-bernotok'
16469 allow_undefined_flag_GCJ=' ${wl}-berok'
16470 # Exported symbols can be pulled into shared objects from archives
16471 whole_archive_flag_spec_GCJ='$convenience'
16472 archive_cmds_need_lc_GCJ=yes
16473 # This is similar to how AIX traditionally builds its shared libraries.
16474 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'
16475 fi
16476 fi
16477 ;;
16478
16479 amigaos*)
16480 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)'
16481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16482 hardcode_minus_L_GCJ=yes
16483 # see comment about different semantics on the GNU ld section
16484 ld_shlibs_GCJ=no
16485 ;;
16486
16487 bsdi[45]*)
16488 export_dynamic_flag_spec_GCJ=-rdynamic
16489 ;;
16490
16491 cygwin* | mingw* | pw32*)
16492 # When not using gcc, we currently assume that we are using
16493 # Microsoft Visual C++.
16494 # hardcode_libdir_flag_spec is actually meaningless, as there is
16495 # no search path for DLLs.
16496 hardcode_libdir_flag_spec_GCJ=' '
16497 allow_undefined_flag_GCJ=unsupported
16498 # Tell ltmain to make .lib files, not .a files.
16499 libext=lib
16500 # Tell ltmain to make .dll files, not .so files.
16501 shrext_cmds=".dll"
16502 # FIXME: Setting linknames here is a bad hack.
16503 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16504 # The linker will automatically build a .lib file if we build a DLL.
16505 old_archive_From_new_cmds_GCJ='true'
16506 # FIXME: Should let the user specify the lib program.
16507 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16508 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16509 enable_shared_with_static_runtimes_GCJ=yes
16510 ;;
16511
16512 darwin* | rhapsody*)
16513 case $host_os in
16514 rhapsody* | darwin1.[012])
16515 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16516 ;;
16517 *) # Darwin 1.3 on
16518 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16519 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16520 else
16521 case ${MACOSX_DEPLOYMENT_TARGET} in
16522 10.[012])
16523 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16524 ;;
16525 10.*)
16526 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16527 ;;
16528 esac
16529 fi
16530 ;;
16531 esac
16532 archive_cmds_need_lc_GCJ=no
16533 hardcode_direct_GCJ=no
16534 hardcode_automatic_GCJ=yes
16535 hardcode_shlibpath_var_GCJ=unsupported
16536 whole_archive_flag_spec_GCJ=''
16537 link_all_deplibs_GCJ=yes
16538 if test "$GCC" = yes ; then
16539 output_verbose_link_cmd='echo'
16540 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16541 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16543 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}'
16544 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}'
16545 else
16546 case $cc_basename in
16547 xlc*)
16548 output_verbose_link_cmd='echo'
16549 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16550 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16551 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16552 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}'
16553 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}'
16554 ;;
16555 *)
16556 ld_shlibs_GCJ=no
16557 ;;
16558 esac
16559 fi
16560 ;;
16561
16562 dgux*)
16563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16565 hardcode_shlibpath_var_GCJ=no
16566 ;;
16567
16568 freebsd1*)
16569 ld_shlibs_GCJ=no
16570 ;;
16571
16572 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16573 # support. Future versions do this automatically, but an explicit c++rt0.o
16574 # does not break anything, and helps significantly (at the cost of a little
16575 # extra space).
16576 freebsd2.2*)
16577 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16578 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16579 hardcode_direct_GCJ=yes
16580 hardcode_shlibpath_var_GCJ=no
16581 ;;
16582
16583 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16584 freebsd2*)
16585 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_direct_GCJ=yes
16587 hardcode_minus_L_GCJ=yes
16588 hardcode_shlibpath_var_GCJ=no
16589 ;;
16590
16591 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16592 freebsd* | dragonfly*)
16593 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16594 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16595 hardcode_direct_GCJ=yes
16596 hardcode_shlibpath_var_GCJ=no
16597 ;;
16598
16599 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16600 kfreebsd*-gnu)
16601 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16602 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16603 hardcode_direct_GCJ=yes
16604 hardcode_shlibpath_var_GCJ=no
16605 link_all_deplibs_GCJ=no
16606 ;;
16607
16608 hpux9*)
16609 if test "$GCC" = yes; then
16610 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'
16611 else
16612 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'
16613 fi
16614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615 hardcode_libdir_separator_GCJ=:
16616 hardcode_direct_GCJ=yes
16617
16618 # hardcode_minus_L: Not really in the search PATH,
16619 # but as the default location of the library.
16620 hardcode_minus_L_GCJ=yes
16621 export_dynamic_flag_spec_GCJ='${wl}-E'
16622 ;;
16623
16624 hpux10*)
16625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16626 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16627 else
16628 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16629 fi
16630 if test "$with_gnu_ld" = no; then
16631 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16632 hardcode_libdir_separator_GCJ=:
16633
16634 hardcode_direct_GCJ=yes
16635 export_dynamic_flag_spec_GCJ='${wl}-E'
16636
16637 # hardcode_minus_L: Not really in the search PATH,
16638 # but as the default location of the library.
16639 hardcode_minus_L_GCJ=yes
16640 fi
16641 ;;
16642
16643 hpux11*)
16644 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16645 case $host_cpu in
16646 hppa*64*)
16647 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16648 ;;
16649 ia64*)
16650 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16651 ;;
16652 *)
16653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16654 ;;
16655 esac
16656 else
16657 case $host_cpu in
16658 hppa*64*)
16659 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16660 ;;
16661 ia64*)
16662 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16663 ;;
16664 *)
16665 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16666 ;;
16667 esac
16668 fi
16669 if test "$with_gnu_ld" = no; then
16670 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16671 hardcode_libdir_separator_GCJ=:
16672
16673 case $host_cpu in
16674 hppa*64*|ia64*)
16675 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16676 hardcode_direct_GCJ=no
16677 hardcode_shlibpath_var_GCJ=no
16678 ;;
16679 *)
16680 hardcode_direct_GCJ=yes
16681 export_dynamic_flag_spec_GCJ='${wl}-E'
16682
16683 # hardcode_minus_L: Not really in the search PATH,
16684 # but as the default location of the library.
16685 hardcode_minus_L_GCJ=yes
16686 ;;
16687 esac
16688 fi
16689 ;;
16690
16691 irix5* | irix6* | nonstopux*)
16692 if test "$GCC" = yes; then
16693 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'
16694 else
16695 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'
16696 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16697 fi
16698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16699 hardcode_libdir_separator_GCJ=:
16700 link_all_deplibs_GCJ=yes
16701 ;;
16702
16703 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16705 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16706 else
16707 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16708 fi
16709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16710 hardcode_direct_GCJ=yes
16711 hardcode_shlibpath_var_GCJ=no
16712 ;;
16713
16714 newsos6)
16715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_direct_GCJ=yes
16717 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16718 hardcode_libdir_separator_GCJ=:
16719 hardcode_shlibpath_var_GCJ=no
16720 ;;
16721
16722 openbsd*)
16723 hardcode_direct_GCJ=yes
16724 hardcode_shlibpath_var_GCJ=no
16725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16726 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16727 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16729 export_dynamic_flag_spec_GCJ='${wl}-E'
16730 else
16731 case $host_os in
16732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16734 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16735 ;;
16736 *)
16737 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16739 ;;
16740 esac
16741 fi
16742 ;;
16743
16744 os2*)
16745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16746 hardcode_minus_L_GCJ=yes
16747 allow_undefined_flag_GCJ=unsupported
16748 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'
16749 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16750 ;;
16751
16752 osf3*)
16753 if test "$GCC" = yes; then
16754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16755 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'
16756 else
16757 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16758 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'
16759 fi
16760 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16761 hardcode_libdir_separator_GCJ=:
16762 ;;
16763
16764 osf4* | osf5*) # as osf3* with the addition of -msym flag
16765 if test "$GCC" = yes; then
16766 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16767 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'
16768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16769 else
16770 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16771 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'
16772 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~
16773 $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'
16774
16775 # Both c and cxx compiler support -rpath directly
16776 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16777 fi
16778 hardcode_libdir_separator_GCJ=:
16779 ;;
16780
16781 solaris*)
16782 no_undefined_flag_GCJ=' -z text'
16783 if test "$GCC" = yes; then
16784 wlarc='${wl}'
16785 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16787 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16788 else
16789 wlarc=''
16790 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16791 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16792 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16793 fi
16794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16795 hardcode_shlibpath_var_GCJ=no
16796 case $host_os in
16797 solaris2.[0-5] | solaris2.[0-5].*) ;;
16798 *)
16799 # The compiler driver will combine linker options so we
16800 # cannot just pass the convience library names through
16801 # without $wl, iff we do not link with $LD.
16802 # Luckily, gcc supports the same syntax we need for Sun Studio.
16803 # Supported since Solaris 2.6 (maybe 2.5.1?)
16804 case $wlarc in
16805 '')
16806 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16807 *)
16808 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' ;;
16809 esac ;;
16810 esac
16811 link_all_deplibs_GCJ=yes
16812 ;;
16813
16814 sunos4*)
16815 if test "x$host_vendor" = xsequent; then
16816 # Use $CC to link under sequent, because it throws in some extra .o
16817 # files that make .init and .fini sections work.
16818 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16819 else
16820 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16821 fi
16822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16823 hardcode_direct_GCJ=yes
16824 hardcode_minus_L_GCJ=yes
16825 hardcode_shlibpath_var_GCJ=no
16826 ;;
16827
16828 sysv4)
16829 case $host_vendor in
16830 sni)
16831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 hardcode_direct_GCJ=yes # is this really true???
16833 ;;
16834 siemens)
16835 ## LD is ld it makes a PLAMLIB
16836 ## CC just makes a GrossModule.
16837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16838 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16839 hardcode_direct_GCJ=no
16840 ;;
16841 motorola)
16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16844 ;;
16845 esac
16846 runpath_var='LD_RUN_PATH'
16847 hardcode_shlibpath_var_GCJ=no
16848 ;;
16849
16850 sysv4.3*)
16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852 hardcode_shlibpath_var_GCJ=no
16853 export_dynamic_flag_spec_GCJ='-Bexport'
16854 ;;
16855
16856 sysv4*MP*)
16857 if test -d /usr/nec; then
16858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_shlibpath_var_GCJ=no
16860 runpath_var=LD_RUN_PATH
16861 hardcode_runpath_var=yes
16862 ld_shlibs_GCJ=yes
16863 fi
16864 ;;
16865
16866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16867 no_undefined_flag_GCJ='${wl}-z,text'
16868 archive_cmds_need_lc_GCJ=no
16869 hardcode_shlibpath_var_GCJ=no
16870 runpath_var='LD_RUN_PATH'
16871
16872 if test "$GCC" = yes; then
16873 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16875 else
16876 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16878 fi
16879 ;;
16880
16881 sysv5* | sco3.2v5* | sco5v6*)
16882 # Note: We can NOT use -z defs as we might desire, because we do not
16883 # link with -lc, and that would cause any symbols used from libc to
16884 # always be unresolved, which means just about no library would
16885 # ever link correctly. If we're not using GNU ld we use -z text
16886 # though, which does catch some bad symbols but isn't as heavy-handed
16887 # as -z defs.
16888 no_undefined_flag_GCJ='${wl}-z,text'
16889 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16890 archive_cmds_need_lc_GCJ=no
16891 hardcode_shlibpath_var_GCJ=no
16892 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16893 hardcode_libdir_separator_GCJ=':'
16894 link_all_deplibs_GCJ=yes
16895 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16896 runpath_var='LD_RUN_PATH'
16897
16898 if test "$GCC" = yes; then
16899 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16901 else
16902 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16904 fi
16905 ;;
16906
16907 uts4*)
16908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16910 hardcode_shlibpath_var_GCJ=no
16911 ;;
16912
16913 *)
16914 ld_shlibs_GCJ=no
16915 ;;
16916 esac
16917 fi
16918
16919echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16920echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16921test "$ld_shlibs_GCJ" = no && can_build_shared=no
16922
16923#
16924# Do we need to explicitly link libc?
16925#
16926case "x$archive_cmds_need_lc_GCJ" in
16927x|xyes)
16928 # Assume -lc should be added
16929 archive_cmds_need_lc_GCJ=yes
16930
16931 if test "$enable_shared" = yes && test "$GCC" = yes; then
16932 case $archive_cmds_GCJ in
16933 *'~'*)
16934 # FIXME: we may have to deal with multi-command sequences.
16935 ;;
16936 '$CC '*)
16937 # Test whether the compiler implicitly links with -lc since on some
16938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16939 # to ld, don't add -lc before -lgcc.
16940 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16941echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16942 $rm conftest*
16943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16944
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } 2>conftest.err; then
16950 soname=conftest
16951 lib=conftest
16952 libobjs=conftest.$ac_objext
16953 deplibs=
16954 wl=$lt_prog_compiler_wl_GCJ
16955 pic_flag=$lt_prog_compiler_pic_GCJ
16956 compiler_flags=-v
16957 linker_flags=-v
16958 verstring=
16959 output_objdir=.
16960 libname=conftest
16961 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16962 allow_undefined_flag_GCJ=
16963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16964 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }
16968 then
16969 archive_cmds_need_lc_GCJ=no
16970 else
16971 archive_cmds_need_lc_GCJ=yes
16972 fi
16973 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16974 else
16975 cat conftest.err 1>&5
16976 fi
16977 $rm conftest*
16978 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16979echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16980 ;;
16981 esac
16982 fi
16983 ;;
16984esac
16985
16986echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16987echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16988library_names_spec=
16989libname_spec='lib$name'
16990soname_spec=
16991shrext_cmds=".so"
16992postinstall_cmds=
16993postuninstall_cmds=
16994finish_cmds=
16995finish_eval=
16996shlibpath_var=
16997shlibpath_overrides_runpath=unknown
16998version_type=none
16999dynamic_linker="$host_os ld.so"
17000sys_lib_dlsearch_path_spec="/lib /usr/lib"
17001if test "$GCC" = yes; then
17002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17003 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17004 # if the path contains ";" then we assume it to be the separator
17005 # otherwise default to the standard path separator (i.e. ":") - it is
17006 # assumed that no part of a normal pathname contains ";" but that should
17007 # okay in the real world where ";" in dirpaths is itself problematic.
17008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17009 else
17010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17011 fi
17012else
17013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17014fi
17015need_lib_prefix=unknown
17016hardcode_into_libs=no
17017
17018# when you set need_version to no, make sure it does not cause -set_version
17019# flags to be left without arguments
17020need_version=unknown
17021
17022case $host_os in
17023aix3*)
17024 version_type=linux
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17026 shlibpath_var=LIBPATH
17027
17028 # AIX 3 has no versioning support, so we append a major version to the name.
17029 soname_spec='${libname}${release}${shared_ext}$major'
17030 ;;
17031
17032aix4* | aix5*)
17033 version_type=linux
17034 need_lib_prefix=no
17035 need_version=no
17036 hardcode_into_libs=yes
17037 if test "$host_cpu" = ia64; then
17038 # AIX 5 supports IA64
17039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 else
17042 # With GCC up to 2.95.x, collect2 would create an import file
17043 # for dependence libraries. The import file would start with
17044 # the line `#! .'. This would cause the generated library to
17045 # depend on `.', always an invalid library. This was fixed in
17046 # development snapshots of GCC prior to 3.0.
17047 case $host_os in
17048 aix4 | aix4.[01] | aix4.[01].*)
17049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17050 echo ' yes '
17051 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17052 :
17053 else
17054 can_build_shared=no
17055 fi
17056 ;;
17057 esac
17058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17059 # soname into executable. Probably we can add versioning support to
17060 # collect2, so additional links can be useful in future.
17061 if test "$aix_use_runtimelinking" = yes; then
17062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17063 # instead of lib<name>.a to let people know that these are not
17064 # typical AIX shared libraries.
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066 else
17067 # We preserve .a as extension for shared libraries through AIX4.2
17068 # and later when we are not doing run time linking.
17069 library_names_spec='${libname}${release}.a $libname.a'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17071 fi
17072 shlibpath_var=LIBPATH
17073 fi
17074 ;;
17075
17076amigaos*)
17077 library_names_spec='$libname.ixlibrary $libname.a'
17078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17079 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'
17080 ;;
17081
17082beos*)
17083 library_names_spec='${libname}${shared_ext}'
17084 dynamic_linker="$host_os ld.so"
17085 shlibpath_var=LIBRARY_PATH
17086 ;;
17087
17088bsdi[45]*)
17089 version_type=linux
17090 need_version=no
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17097 # the default ld.so.conf also contains /usr/contrib/lib and
17098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17099 # libtool to hard-code these into programs
17100 ;;
17101
17102cygwin* | mingw* | pw32*)
17103 version_type=windows
17104 shrext_cmds=".dll"
17105 need_version=no
17106 need_lib_prefix=no
17107
17108 case $GCC,$host_os in
17109 yes,cygwin* | yes,mingw* | yes,pw32*)
17110 library_names_spec='$libname.dll.a'
17111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17112 postinstall_cmds='base_file=`basename \${file}`~
17113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17114 dldir=$destdir/`dirname \$dlpath`~
17115 test -d \$dldir || mkdir -p \$dldir~
17116 $install_prog $dir/$dlname \$dldir/$dlname~
17117 chmod a+x \$dldir/$dlname'
17118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17119 dlpath=$dir/\$dldll~
17120 $rm \$dlpath'
17121 shlibpath_overrides_runpath=yes
17122
17123 case $host_os in
17124 cygwin*)
17125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17126 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17127 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17128 ;;
17129 mingw*)
17130 # MinGW DLLs use traditional 'lib' prefix
17131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17133 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17134 # It is most probably a Windows format PATH printed by
17135 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17136 # path with ; separators, and with drive letters. We can handle the
17137 # drive letters (cygwin fileutils understands them), so leave them,
17138 # especially as we might pass files found there to a mingw objdump,
17139 # which wouldn't understand a cygwinified path. Ahh.
17140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17141 else
17142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17143 fi
17144 ;;
17145 pw32*)
17146 # pw32 DLLs use 'pw' prefix rather than 'lib'
17147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17148 ;;
17149 esac
17150 ;;
17151
17152 *)
17153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17154 ;;
17155 esac
17156 dynamic_linker='Win32 ld.exe'
17157 # FIXME: first we should search . and the directory the executable is in
17158 shlibpath_var=PATH
17159 ;;
17160
17161darwin* | rhapsody*)
17162 dynamic_linker="$host_os dyld"
17163 version_type=darwin
17164 need_lib_prefix=no
17165 need_version=no
17166 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17167 soname_spec='${libname}${release}${major}$shared_ext'
17168 shlibpath_overrides_runpath=yes
17169 shlibpath_var=DYLD_LIBRARY_PATH
17170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17171 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17172 if test "$GCC" = yes; then
17173 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"`
17174 else
17175 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17176 fi
17177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17178 ;;
17179
17180dgux*)
17181 version_type=linux
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 ;;
17188
17189freebsd1*)
17190 dynamic_linker=no
17191 ;;
17192
17193kfreebsd*-gnu)
17194 version_type=linux
17195 need_lib_prefix=no
17196 need_version=no
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 shlibpath_var=LD_LIBRARY_PATH
17200 shlibpath_overrides_runpath=no
17201 hardcode_into_libs=yes
17202 dynamic_linker='GNU ld.so'
17203 ;;
17204
17205freebsd* | dragonfly*)
17206 # DragonFly does not have aout. When/if they implement a new
17207 # versioning mechanism, adjust this.
17208 if test -x /usr/bin/objformat; then
17209 objformat=`/usr/bin/objformat`
17210 else
17211 case $host_os in
17212 freebsd[123]*) objformat=aout ;;
17213 *) objformat=elf ;;
17214 esac
17215 fi
17216 version_type=freebsd-$objformat
17217 case $version_type in
17218 freebsd-elf*)
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17220 need_version=no
17221 need_lib_prefix=no
17222 ;;
17223 freebsd-*)
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17225 need_version=yes
17226 ;;
17227 esac
17228 shlibpath_var=LD_LIBRARY_PATH
17229 case $host_os in
17230 freebsd2*)
17231 shlibpath_overrides_runpath=yes
17232 ;;
17233 freebsd3.[01]* | freebsdelf3.[01]*)
17234 shlibpath_overrides_runpath=yes
17235 hardcode_into_libs=yes
17236 ;;
17237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17239 shlibpath_overrides_runpath=no
17240 hardcode_into_libs=yes
17241 ;;
17242 freebsd*) # from 4.6 on
17243 shlibpath_overrides_runpath=yes
17244 hardcode_into_libs=yes
17245 ;;
17246 esac
17247 ;;
17248
17249gnu*)
17250 version_type=linux
17251 need_lib_prefix=no
17252 need_version=no
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 hardcode_into_libs=yes
17257 ;;
17258
17259hpux9* | hpux10* | hpux11*)
17260 # Give a soname corresponding to the major version so that dld.sl refuses to
17261 # link against other versions.
17262 version_type=sunos
17263 need_lib_prefix=no
17264 need_version=no
17265 case $host_cpu in
17266 ia64*)
17267 shrext_cmds='.so'
17268 hardcode_into_libs=yes
17269 dynamic_linker="$host_os dld.so"
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 if test "X$HPUX_IA64_MODE" = X32; then
17275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17276 else
17277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17278 fi
17279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17280 ;;
17281 hppa*64*)
17282 shrext_cmds='.sl'
17283 hardcode_into_libs=yes
17284 dynamic_linker="$host_os dld.sl"
17285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17291 ;;
17292 *)
17293 shrext_cmds='.sl'
17294 dynamic_linker="$host_os dld.sl"
17295 shlibpath_var=SHLIB_PATH
17296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
17300 esac
17301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17302 postinstall_cmds='chmod 555 $lib'
17303 ;;
17304
17305interix3*)
17306 version_type=linux
17307 need_lib_prefix=no
17308 need_version=no
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=no
17314 hardcode_into_libs=yes
17315 ;;
17316
17317irix5* | irix6* | nonstopux*)
17318 case $host_os in
17319 nonstopux*) version_type=nonstopux ;;
17320 *)
17321 if test "$lt_cv_prog_gnu_ld" = yes; then
17322 version_type=linux
17323 else
17324 version_type=irix
17325 fi ;;
17326 esac
17327 need_lib_prefix=no
17328 need_version=no
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17331 case $host_os in
17332 irix5* | nonstopux*)
17333 libsuff= shlibsuff=
17334 ;;
17335 *)
17336 case $LD in # libtool.m4 will add one of these switches to LD
17337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17338 libsuff= shlibsuff= libmagic=32-bit;;
17339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17340 libsuff=32 shlibsuff=N32 libmagic=N32;;
17341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17343 *) libsuff= shlibsuff= libmagic=never-match;;
17344 esac
17345 ;;
17346 esac
17347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17348 shlibpath_overrides_runpath=no
17349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17351 hardcode_into_libs=yes
17352 ;;
17353
17354# No shared lib support for Linux oldld, aout, or coff.
17355linux*oldld* | linux*aout* | linux*coff*)
17356 dynamic_linker=no
17357 ;;
17358
17359# This must be Linux ELF.
17360linux*)
17361 version_type=linux
17362 need_lib_prefix=no
17363 need_version=no
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=no
17369 # This implies no fast_install, which is unacceptable.
17370 # Some rework will be needed to allow for fast_install
17371 # before this can be enabled.
17372 hardcode_into_libs=yes
17373
17374 # Append ld.so.conf contents to the search path
17375 if test -f /etc/ld.so.conf; then
17376 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17378 fi
17379
17380 # We used to test for /lib/ld.so.1 and disable shared libraries on
17381 # powerpc, because MkLinux only supported shared libraries with the
17382 # GNU dynamic linker. Since this was broken with cross compilers,
17383 # most powerpc-linux boxes support dynamic linking these days and
17384 # people can always --disable-shared, the test was removed, and we
17385 # assume the GNU/Linux dynamic linker is in use.
17386 dynamic_linker='GNU/Linux ld.so'
17387 ;;
17388
17389netbsdelf*-gnu)
17390 version_type=linux
17391 need_lib_prefix=no
17392 need_version=no
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath=no
17397 hardcode_into_libs=yes
17398 dynamic_linker='NetBSD ld.elf_so'
17399 ;;
17400
17401knetbsd*-gnu)
17402 version_type=linux
17403 need_lib_prefix=no
17404 need_version=no
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=no
17409 hardcode_into_libs=yes
17410 dynamic_linker='GNU ld.so'
17411 ;;
17412
17413netbsd*)
17414 version_type=sunos
17415 need_lib_prefix=no
17416 need_version=no
17417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17420 dynamic_linker='NetBSD (a.out) ld.so'
17421 else
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 dynamic_linker='NetBSD ld.elf_so'
17425 fi
17426 shlibpath_var=LD_LIBRARY_PATH
17427 shlibpath_overrides_runpath=yes
17428 hardcode_into_libs=yes
17429 ;;
17430
17431newsos6)
17432 version_type=linux
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 shlibpath_var=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath=yes
17436 ;;
17437
17438nto-qnx*)
17439 version_type=linux
17440 need_lib_prefix=no
17441 need_version=no
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17446 ;;
17447
17448openbsd*)
17449 version_type=sunos
17450 sys_lib_dlsearch_path_spec="/usr/lib"
17451 need_lib_prefix=no
17452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17453 case $host_os in
17454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17455 *) need_version=no ;;
17456 esac
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17459 shlibpath_var=LD_LIBRARY_PATH
17460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17461 case $host_os in
17462 openbsd2.[89] | openbsd2.[89].*)
17463 shlibpath_overrides_runpath=no
17464 ;;
17465 *)
17466 shlibpath_overrides_runpath=yes
17467 ;;
17468 esac
17469 else
17470 shlibpath_overrides_runpath=yes
17471 fi
17472 ;;
17473
17474os2*)
17475 libname_spec='$name'
17476 shrext_cmds=".dll"
17477 need_lib_prefix=no
17478 library_names_spec='$libname${shared_ext} $libname.a'
17479 dynamic_linker='OS/2 ld.exe'
17480 shlibpath_var=LIBPATH
17481 ;;
17482
17483osf3* | osf4* | osf5*)
17484 version_type=osf
17485 need_lib_prefix=no
17486 need_version=no
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17492 ;;
17493
17494solaris*)
17495 version_type=linux
17496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=yes
17502 hardcode_into_libs=yes
17503 # ldd complains unless libraries are executable
17504 postinstall_cmds='chmod +x $lib'
17505 ;;
17506
17507sunos4*)
17508 version_type=sunos
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 shlibpath_overrides_runpath=yes
17513 if test "$with_gnu_ld" = yes; then
17514 need_lib_prefix=no
17515 fi
17516 need_version=yes
17517 ;;
17518
17519sysv4 | sysv4.3*)
17520 version_type=linux
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 case $host_vendor in
17525 sni)
17526 shlibpath_overrides_runpath=no
17527 need_lib_prefix=no
17528 export_dynamic_flag_spec='${wl}-Blargedynsym'
17529 runpath_var=LD_RUN_PATH
17530 ;;
17531 siemens)
17532 need_lib_prefix=no
17533 ;;
17534 motorola)
17535 need_lib_prefix=no
17536 need_version=no
17537 shlibpath_overrides_runpath=no
17538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17539 ;;
17540 esac
17541 ;;
17542
17543sysv4*MP*)
17544 if test -d /usr/nec ;then
17545 version_type=linux
17546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17547 soname_spec='$libname${shared_ext}.$major'
17548 shlibpath_var=LD_LIBRARY_PATH
17549 fi
17550 ;;
17551
17552sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17553 version_type=freebsd-elf
17554 need_lib_prefix=no
17555 need_version=no
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17558 shlibpath_var=LD_LIBRARY_PATH
17559 hardcode_into_libs=yes
17560 if test "$with_gnu_ld" = yes; then
17561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17562 shlibpath_overrides_runpath=no
17563 else
17564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17565 shlibpath_overrides_runpath=yes
17566 case $host_os in
17567 sco3.2v5*)
17568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17569 ;;
17570 esac
17571 fi
17572 sys_lib_dlsearch_path_spec='/usr/lib'
17573 ;;
17574
17575uts4*)
17576 version_type=linux
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 ;;
17581
17582*)
17583 dynamic_linker=no
17584 ;;
17585esac
17586echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17587echo "${ECHO_T}$dynamic_linker" >&6
17588test "$dynamic_linker" = no && can_build_shared=no
17589
17590variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17591if test "$GCC" = yes; then
17592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17593fi
17594
17595echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17596echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17597hardcode_action_GCJ=
17598if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17599 test -n "$runpath_var_GCJ" || \
17600 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17601
17602 # We can hardcode non-existant directories.
17603 if test "$hardcode_direct_GCJ" != no &&
17604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17605 # have to relink, otherwise we might link with an installed library
17606 # when we should be linking with a yet-to-be-installed one
17607 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17608 test "$hardcode_minus_L_GCJ" != no; then
17609 # Linking always hardcodes the temporary library directory.
17610 hardcode_action_GCJ=relink
17611 else
17612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17613 hardcode_action_GCJ=immediate
17614 fi
17615else
17616 # We cannot hardcode anything, or else we can only hardcode existing
17617 # directories.
17618 hardcode_action_GCJ=unsupported
17619fi
17620echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17621echo "${ECHO_T}$hardcode_action_GCJ" >&6
17622
17623if test "$hardcode_action_GCJ" = relink; then
17624 # Fast installation is not supported
17625 enable_fast_install=no
17626elif test "$shlibpath_overrides_runpath" = yes ||
17627 test "$enable_shared" = no; then
17628 # Fast installation is not necessary
17629 enable_fast_install=needless
17630fi
17631
17632
17633# The else clause should only fire when bootstrapping the
17634# libtool distribution, otherwise you forgot to ship ltmain.sh
17635# with your package, and you will get complaints that there are
17636# no rules to generate ltmain.sh.
17637if test -f "$ltmain"; then
17638 # See if we are running on zsh, and set the options which allow our commands through
17639 # without removal of \ escapes.
17640 if test -n "${ZSH_VERSION+set}" ; then
17641 setopt NO_GLOB_SUBST
17642 fi
17643 # Now quote all the things that may contain metacharacters while being
17644 # careful not to overquote the AC_SUBSTed values. We take copies of the
17645 # variables and quote the copies for generation of the libtool script.
17646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17647 SED SHELL STRIP \
17648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17650 deplibs_check_method reload_flag reload_cmds need_locks \
17651 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17652 lt_cv_sys_global_symbol_to_c_name_address \
17653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17654 old_postinstall_cmds old_postuninstall_cmds \
17655 compiler_GCJ \
17656 CC_GCJ \
17657 LD_GCJ \
17658 lt_prog_compiler_wl_GCJ \
17659 lt_prog_compiler_pic_GCJ \
17660 lt_prog_compiler_static_GCJ \
17661 lt_prog_compiler_no_builtin_flag_GCJ \
17662 export_dynamic_flag_spec_GCJ \
17663 thread_safe_flag_spec_GCJ \
17664 whole_archive_flag_spec_GCJ \
17665 enable_shared_with_static_runtimes_GCJ \
17666 old_archive_cmds_GCJ \
17667 old_archive_from_new_cmds_GCJ \
17668 predep_objects_GCJ \
17669 postdep_objects_GCJ \
17670 predeps_GCJ \
17671 postdeps_GCJ \
17672 compiler_lib_search_path_GCJ \
17673 archive_cmds_GCJ \
17674 archive_expsym_cmds_GCJ \
17675 postinstall_cmds_GCJ \
17676 postuninstall_cmds_GCJ \
17677 old_archive_from_expsyms_cmds_GCJ \
17678 allow_undefined_flag_GCJ \
17679 no_undefined_flag_GCJ \
17680 export_symbols_cmds_GCJ \
17681 hardcode_libdir_flag_spec_GCJ \
17682 hardcode_libdir_flag_spec_ld_GCJ \
17683 hardcode_libdir_separator_GCJ \
17684 hardcode_automatic_GCJ \
17685 module_cmds_GCJ \
17686 module_expsym_cmds_GCJ \
17687 lt_cv_prog_compiler_c_o_GCJ \
17688 exclude_expsyms_GCJ \
17689 include_expsyms_GCJ; do
17690
17691 case $var in
17692 old_archive_cmds_GCJ | \
17693 old_archive_from_new_cmds_GCJ | \
17694 archive_cmds_GCJ | \
17695 archive_expsym_cmds_GCJ | \
17696 module_cmds_GCJ | \
17697 module_expsym_cmds_GCJ | \
17698 old_archive_from_expsyms_cmds_GCJ | \
17699 export_symbols_cmds_GCJ | \
17700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17701 postinstall_cmds | postuninstall_cmds | \
17702 old_postinstall_cmds | old_postuninstall_cmds | \
17703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17704 # Double-quote double-evaled strings.
17705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17706 ;;
17707 *)
17708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17709 ;;
17710 esac
17711 done
17712
17713 case $lt_echo in
17714 *'\$0 --fallback-echo"')
17715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17716 ;;
17717 esac
17718
17719cfgfile="$ofile"
17720
17721 cat <<__EOF__ >> "$cfgfile"
17722# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17723
17724# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17725
17726# Shell to use when invoking shell scripts.
17727SHELL=$lt_SHELL
17728
17729# Whether or not to build shared libraries.
17730build_libtool_libs=$enable_shared
17731
17732# Whether or not to build static libraries.
17733build_old_libs=$enable_static
17734
17735# Whether or not to add -lc for building shared libraries.
17736build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17737
17738# Whether or not to disallow shared libs when runtime libs are static
17739allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17740
17741# Whether or not to optimize for fast installation.
17742fast_install=$enable_fast_install
17743
17744# The host system.
17745host_alias=$host_alias
17746host=$host
17747host_os=$host_os
17748
17749# The build system.
17750build_alias=$build_alias
17751build=$build
17752build_os=$build_os
17753
17754# An echo program that does not interpret backslashes.
17755echo=$lt_echo
17756
17757# The archiver.
17758AR=$lt_AR
17759AR_FLAGS=$lt_AR_FLAGS
17760
17761# A C compiler.
17762LTCC=$lt_LTCC
17763
17764# LTCC compiler flags.
17765LTCFLAGS=$lt_LTCFLAGS
17766
17767# A language-specific compiler.
17768CC=$lt_compiler_GCJ
17769
17770# Is the compiler the GNU C compiler?
17771with_gcc=$GCC_GCJ
17772
17773# An ERE matcher.
17774EGREP=$lt_EGREP
17775
17776# The linker used to build libraries.
17777LD=$lt_LD_GCJ
17778
17779# Whether we need hard or soft links.
17780LN_S=$lt_LN_S
17781
17782# A BSD-compatible nm program.
17783NM=$lt_NM
17784
17785# A symbol stripping program
17786STRIP=$lt_STRIP
17787
17788# Used to examine libraries when file_magic_cmd begins "file"
17789MAGIC_CMD=$MAGIC_CMD
17790
17791# Used on cygwin: DLL creation program.
17792DLLTOOL="$DLLTOOL"
17793
17794# Used on cygwin: object dumper.
17795OBJDUMP="$OBJDUMP"
17796
17797# Used on cygwin: assembler.
17798AS="$AS"
17799
17800# The name of the directory that contains temporary libtool files.
17801objdir=$objdir
17802
17803# How to create reloadable object files.
17804reload_flag=$lt_reload_flag
17805reload_cmds=$lt_reload_cmds
17806
17807# How to pass a linker flag through the compiler.
17808wl=$lt_lt_prog_compiler_wl_GCJ
17809
17810# Object file suffix (normally "o").
17811objext="$ac_objext"
17812
17813# Old archive suffix (normally "a").
17814libext="$libext"
17815
17816# Shared library suffix (normally ".so").
17817shrext_cmds='$shrext_cmds'
17818
17819# Executable file suffix (normally "").
17820exeext="$exeext"
17821
17822# Additional compiler flags for building library objects.
17823pic_flag=$lt_lt_prog_compiler_pic_GCJ
17824pic_mode=$pic_mode
17825
17826# What is the maximum length of a command?
17827max_cmd_len=$lt_cv_sys_max_cmd_len
17828
17829# Does compiler simultaneously support -c and -o options?
17830compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17831
17832# Must we lock files when doing compilation?
17833need_locks=$lt_need_locks
17834
17835# Do we need the lib prefix for modules?
17836need_lib_prefix=$need_lib_prefix
17837
17838# Do we need a version for libraries?
17839need_version=$need_version
17840
17841# Whether dlopen is supported.
17842dlopen_support=$enable_dlopen
17843
17844# Whether dlopen of programs is supported.
17845dlopen_self=$enable_dlopen_self
17846
17847# Whether dlopen of statically linked programs is supported.
17848dlopen_self_static=$enable_dlopen_self_static
17849
17850# Compiler flag to prevent dynamic linking.
17851link_static_flag=$lt_lt_prog_compiler_static_GCJ
17852
17853# Compiler flag to turn off builtin functions.
17854no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17855
17856# Compiler flag to allow reflexive dlopens.
17857export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17858
17859# Compiler flag to generate shared objects directly from archives.
17860whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17861
17862# Compiler flag to generate thread-safe objects.
17863thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17864
17865# Library versioning type.
17866version_type=$version_type
17867
17868# Format of library name prefix.
17869libname_spec=$lt_libname_spec
17870
17871# List of archive names. First name is the real one, the rest are links.
17872# The last name is the one that the linker finds with -lNAME.
17873library_names_spec=$lt_library_names_spec
17874
17875# The coded name of the library, if different from the real name.
17876soname_spec=$lt_soname_spec
17877
17878# Commands used to build and install an old-style archive.
17879RANLIB=$lt_RANLIB
17880old_archive_cmds=$lt_old_archive_cmds_GCJ
17881old_postinstall_cmds=$lt_old_postinstall_cmds
17882old_postuninstall_cmds=$lt_old_postuninstall_cmds
17883
17884# Create an old-style archive from a shared archive.
17885old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17886
17887# Create a temporary old-style archive to link instead of a shared archive.
17888old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17889
17890# Commands used to build and install a shared archive.
17891archive_cmds=$lt_archive_cmds_GCJ
17892archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17893postinstall_cmds=$lt_postinstall_cmds
17894postuninstall_cmds=$lt_postuninstall_cmds
17895
17896# Commands used to build a loadable module (assumed same as above if empty)
17897module_cmds=$lt_module_cmds_GCJ
17898module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17899
17900# Commands to strip libraries.
17901old_striplib=$lt_old_striplib
17902striplib=$lt_striplib
17903
17904# Dependencies to place before the objects being linked to create a
17905# shared library.
17906predep_objects=$lt_predep_objects_GCJ
17907
17908# Dependencies to place after the objects being linked to create a
17909# shared library.
17910postdep_objects=$lt_postdep_objects_GCJ
17911
17912# Dependencies to place before the objects being linked to create a
17913# shared library.
17914predeps=$lt_predeps_GCJ
17915
17916# Dependencies to place after the objects being linked to create a
17917# shared library.
17918postdeps=$lt_postdeps_GCJ
17919
17920# The library search path used internally by the compiler when linking
17921# a shared library.
17922compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17923
17924# Method to check whether dependent libraries are shared objects.
17925deplibs_check_method=$lt_deplibs_check_method
17926
17927# Command to use when deplibs_check_method == file_magic.
17928file_magic_cmd=$lt_file_magic_cmd
17929
17930# Flag that allows shared libraries with undefined symbols to be built.
17931allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17932
17933# Flag that forces no undefined symbols.
17934no_undefined_flag=$lt_no_undefined_flag_GCJ
17935
17936# Commands used to finish a libtool library installation in a directory.
17937finish_cmds=$lt_finish_cmds
17938
17939# Same as above, but a single script fragment to be evaled but not shown.
17940finish_eval=$lt_finish_eval
17941
17942# Take the output of nm and produce a listing of raw symbols and C names.
17943global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17944
17945# Transform the output of nm in a proper C declaration
17946global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17947
17948# Transform the output of nm in a C name address pair
17949global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17950
17951# This is the shared library runtime path variable.
17952runpath_var=$runpath_var
17953
17954# This is the shared library path variable.
17955shlibpath_var=$shlibpath_var
17956
17957# Is shlibpath searched before the hard-coded library search path?
17958shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17959
17960# How to hardcode a shared library path into an executable.
17961hardcode_action=$hardcode_action_GCJ
17962
17963# Whether we should hardcode library paths into libraries.
17964hardcode_into_libs=$hardcode_into_libs
17965
17966# Flag to hardcode \$libdir into a binary during linking.
17967# This must work even if \$libdir does not exist.
17968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17969
17970# If ld is used when linking, flag to hardcode \$libdir into
17971# a binary during linking. This must work even if \$libdir does
17972# not exist.
17973hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17974
17975# Whether we need a single -rpath flag with a separated argument.
17976hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17977
17978# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17979# resulting binary.
17980hardcode_direct=$hardcode_direct_GCJ
17981
17982# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17983# resulting binary.
17984hardcode_minus_L=$hardcode_minus_L_GCJ
17985
17986# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17987# the resulting binary.
17988hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17989
17990# Set to yes if building a shared library automatically hardcodes DIR into the library
17991# and all subsequent libraries and executables linked against it.
17992hardcode_automatic=$hardcode_automatic_GCJ
17993
17994# Variables whose values should be saved in libtool wrapper scripts and
17995# restored at relink time.
17996variables_saved_for_relink="$variables_saved_for_relink"
17997
17998# Whether libtool must link a program against all its dependency libraries.
17999link_all_deplibs=$link_all_deplibs_GCJ
18000
18001# Compile-time system search path for libraries
18002sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18003
18004# Run-time system search path for libraries
18005sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18006
18007# Fix the shell variable \$srcfile for the compiler.
18008fix_srcfile_path="$fix_srcfile_path_GCJ"
18009
18010# Set to yes if exported symbols are required.
18011always_export_symbols=$always_export_symbols_GCJ
18012
18013# The commands to list exported symbols.
18014export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18015
18016# The commands to extract the exported symbol list from a shared archive.
18017extract_expsyms_cmds=$lt_extract_expsyms_cmds
18018
18019# Symbols that should not be listed in the preloaded symbols.
18020exclude_expsyms=$lt_exclude_expsyms_GCJ
18021
18022# Symbols that must always be exported.
18023include_expsyms=$lt_include_expsyms_GCJ
18024
18025# ### END LIBTOOL TAG CONFIG: $tagname
18026
18027__EOF__
18028
18029
18030else
18031 # If there is no Makefile yet, we rely on a make rule to execute
18032 # `config.status --recheck' to rerun these tests and create the
18033 # libtool script then.
18034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035 if test -f "$ltmain_in"; then
18036 test -f Makefile && make "$ltmain"
18037 fi
18038fi
18039
18040
18041ac_ext=c
18042ac_cpp='$CPP $CPPFLAGS'
18043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046
18047CC="$lt_save_CC"
18048
18049 else
18050 tagname=""
18051 fi
18052 ;;
18053
18054 RC)
18055
18056
18057
18058# Source file extension for RC test sources.
18059ac_ext=rc
18060
18061# Object file extension for compiled RC test sources.
18062objext=o
18063objext_RC=$objext
18064
18065# Code to be used in simple compile tests
18066lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18067
18068# Code to be used in simple link tests
18069lt_simple_link_test_code="$lt_simple_compile_test_code"
18070
18071# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18072
18073# If no C compiler was specified, use CC.
18074LTCC=${LTCC-"$CC"}
18075
18076# If no C compiler flags were specified, use CFLAGS.
18077LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18078
18079# Allow CC to be a program name with arguments.
18080compiler=$CC
18081
18082
18083# save warnings/boilerplate of simple test code
18084ac_outfile=conftest.$ac_objext
18085printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18087_lt_compiler_boilerplate=`cat conftest.err`
18088$rm conftest*
18089
18090ac_outfile=conftest.$ac_objext
18091printf "$lt_simple_link_test_code" >conftest.$ac_ext
18092eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18093_lt_linker_boilerplate=`cat conftest.err`
18094$rm conftest*
18095
18096
18097# Allow CC to be a program name with arguments.
18098lt_save_CC="$CC"
18099CC=${RC-"windres"}
18100compiler=$CC
18101compiler_RC=$CC
18102for cc_temp in $compiler""; do
18103 case $cc_temp in
18104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18106 \-*) ;;
18107 *) break;;
18108 esac
18109done
18110cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18111
18112lt_cv_prog_compiler_c_o_RC=yes
18113
18114# The else clause should only fire when bootstrapping the
18115# libtool distribution, otherwise you forgot to ship ltmain.sh
18116# with your package, and you will get complaints that there are
18117# no rules to generate ltmain.sh.
18118if test -f "$ltmain"; then
18119 # See if we are running on zsh, and set the options which allow our commands through
18120 # without removal of \ escapes.
18121 if test -n "${ZSH_VERSION+set}" ; then
18122 setopt NO_GLOB_SUBST
18123 fi
18124 # Now quote all the things that may contain metacharacters while being
18125 # careful not to overquote the AC_SUBSTed values. We take copies of the
18126 # variables and quote the copies for generation of the libtool script.
18127 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18128 SED SHELL STRIP \
18129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18131 deplibs_check_method reload_flag reload_cmds need_locks \
18132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18133 lt_cv_sys_global_symbol_to_c_name_address \
18134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18135 old_postinstall_cmds old_postuninstall_cmds \
18136 compiler_RC \
18137 CC_RC \
18138 LD_RC \
18139 lt_prog_compiler_wl_RC \
18140 lt_prog_compiler_pic_RC \
18141 lt_prog_compiler_static_RC \
18142 lt_prog_compiler_no_builtin_flag_RC \
18143 export_dynamic_flag_spec_RC \
18144 thread_safe_flag_spec_RC \
18145 whole_archive_flag_spec_RC \
18146 enable_shared_with_static_runtimes_RC \
18147 old_archive_cmds_RC \
18148 old_archive_from_new_cmds_RC \
18149 predep_objects_RC \
18150 postdep_objects_RC \
18151 predeps_RC \
18152 postdeps_RC \
18153 compiler_lib_search_path_RC \
18154 archive_cmds_RC \
18155 archive_expsym_cmds_RC \
18156 postinstall_cmds_RC \
18157 postuninstall_cmds_RC \
18158 old_archive_from_expsyms_cmds_RC \
18159 allow_undefined_flag_RC \
18160 no_undefined_flag_RC \
18161 export_symbols_cmds_RC \
18162 hardcode_libdir_flag_spec_RC \
18163 hardcode_libdir_flag_spec_ld_RC \
18164 hardcode_libdir_separator_RC \
18165 hardcode_automatic_RC \
18166 module_cmds_RC \
18167 module_expsym_cmds_RC \
18168 lt_cv_prog_compiler_c_o_RC \
18169 exclude_expsyms_RC \
18170 include_expsyms_RC; do
18171
18172 case $var in
18173 old_archive_cmds_RC | \
18174 old_archive_from_new_cmds_RC | \
18175 archive_cmds_RC | \
18176 archive_expsym_cmds_RC | \
18177 module_cmds_RC | \
18178 module_expsym_cmds_RC | \
18179 old_archive_from_expsyms_cmds_RC | \
18180 export_symbols_cmds_RC | \
18181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18182 postinstall_cmds | postuninstall_cmds | \
18183 old_postinstall_cmds | old_postuninstall_cmds | \
18184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18185 # Double-quote double-evaled strings.
18186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18187 ;;
18188 *)
18189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18190 ;;
18191 esac
18192 done
18193
18194 case $lt_echo in
18195 *'\$0 --fallback-echo"')
18196 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18197 ;;
18198 esac
18199
18200cfgfile="$ofile"
18201
18202 cat <<__EOF__ >> "$cfgfile"
18203# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18204
18205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18206
18207# Shell to use when invoking shell scripts.
18208SHELL=$lt_SHELL
18209
18210# Whether or not to build shared libraries.
18211build_libtool_libs=$enable_shared
18212
18213# Whether or not to build static libraries.
18214build_old_libs=$enable_static
18215
18216# Whether or not to add -lc for building shared libraries.
18217build_libtool_need_lc=$archive_cmds_need_lc_RC
18218
18219# Whether or not to disallow shared libs when runtime libs are static
18220allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18221
18222# Whether or not to optimize for fast installation.
18223fast_install=$enable_fast_install
18224
18225# The host system.
18226host_alias=$host_alias
18227host=$host
18228host_os=$host_os
18229
18230# The build system.
18231build_alias=$build_alias
18232build=$build
18233build_os=$build_os
18234
18235# An echo program that does not interpret backslashes.
18236echo=$lt_echo
18237
18238# The archiver.
18239AR=$lt_AR
18240AR_FLAGS=$lt_AR_FLAGS
18241
18242# A C compiler.
18243LTCC=$lt_LTCC
18244
18245# LTCC compiler flags.
18246LTCFLAGS=$lt_LTCFLAGS
18247
18248# A language-specific compiler.
18249CC=$lt_compiler_RC
18250
18251# Is the compiler the GNU C compiler?
18252with_gcc=$GCC_RC
18253
18254# An ERE matcher.
18255EGREP=$lt_EGREP
18256
18257# The linker used to build libraries.
18258LD=$lt_LD_RC
18259
18260# Whether we need hard or soft links.
18261LN_S=$lt_LN_S
18262
18263# A BSD-compatible nm program.
18264NM=$lt_NM
18265
18266# A symbol stripping program
18267STRIP=$lt_STRIP
18268
18269# Used to examine libraries when file_magic_cmd begins "file"
18270MAGIC_CMD=$MAGIC_CMD
18271
18272# Used on cygwin: DLL creation program.
18273DLLTOOL="$DLLTOOL"
18274
18275# Used on cygwin: object dumper.
18276OBJDUMP="$OBJDUMP"
18277
18278# Used on cygwin: assembler.
18279AS="$AS"
18280
18281# The name of the directory that contains temporary libtool files.
18282objdir=$objdir
18283
18284# How to create reloadable object files.
18285reload_flag=$lt_reload_flag
18286reload_cmds=$lt_reload_cmds
18287
18288# How to pass a linker flag through the compiler.
18289wl=$lt_lt_prog_compiler_wl_RC
18290
18291# Object file suffix (normally "o").
18292objext="$ac_objext"
18293
18294# Old archive suffix (normally "a").
18295libext="$libext"
18296
18297# Shared library suffix (normally ".so").
18298shrext_cmds='$shrext_cmds'
18299
18300# Executable file suffix (normally "").
18301exeext="$exeext"
18302
18303# Additional compiler flags for building library objects.
18304pic_flag=$lt_lt_prog_compiler_pic_RC
18305pic_mode=$pic_mode
18306
18307# What is the maximum length of a command?
18308max_cmd_len=$lt_cv_sys_max_cmd_len
18309
18310# Does compiler simultaneously support -c and -o options?
18311compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18312
18313# Must we lock files when doing compilation?
18314need_locks=$lt_need_locks
18315
18316# Do we need the lib prefix for modules?
18317need_lib_prefix=$need_lib_prefix
18318
18319# Do we need a version for libraries?
18320need_version=$need_version
18321
18322# Whether dlopen is supported.
18323dlopen_support=$enable_dlopen
18324
18325# Whether dlopen of programs is supported.
18326dlopen_self=$enable_dlopen_self
18327
18328# Whether dlopen of statically linked programs is supported.
18329dlopen_self_static=$enable_dlopen_self_static
18330
18331# Compiler flag to prevent dynamic linking.
18332link_static_flag=$lt_lt_prog_compiler_static_RC
18333
18334# Compiler flag to turn off builtin functions.
18335no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18336
18337# Compiler flag to allow reflexive dlopens.
18338export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18339
18340# Compiler flag to generate shared objects directly from archives.
18341whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18342
18343# Compiler flag to generate thread-safe objects.
18344thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18345
18346# Library versioning type.
18347version_type=$version_type
18348
18349# Format of library name prefix.
18350libname_spec=$lt_libname_spec
18351
18352# List of archive names. First name is the real one, the rest are links.
18353# The last name is the one that the linker finds with -lNAME.
18354library_names_spec=$lt_library_names_spec
18355
18356# The coded name of the library, if different from the real name.
18357soname_spec=$lt_soname_spec
18358
18359# Commands used to build and install an old-style archive.
18360RANLIB=$lt_RANLIB
18361old_archive_cmds=$lt_old_archive_cmds_RC
18362old_postinstall_cmds=$lt_old_postinstall_cmds
18363old_postuninstall_cmds=$lt_old_postuninstall_cmds
18364
18365# Create an old-style archive from a shared archive.
18366old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18367
18368# Create a temporary old-style archive to link instead of a shared archive.
18369old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18370
18371# Commands used to build and install a shared archive.
18372archive_cmds=$lt_archive_cmds_RC
18373archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18374postinstall_cmds=$lt_postinstall_cmds
18375postuninstall_cmds=$lt_postuninstall_cmds
18376
18377# Commands used to build a loadable module (assumed same as above if empty)
18378module_cmds=$lt_module_cmds_RC
18379module_expsym_cmds=$lt_module_expsym_cmds_RC
18380
18381# Commands to strip libraries.
18382old_striplib=$lt_old_striplib
18383striplib=$lt_striplib
18384
18385# Dependencies to place before the objects being linked to create a
18386# shared library.
18387predep_objects=$lt_predep_objects_RC
18388
18389# Dependencies to place after the objects being linked to create a
18390# shared library.
18391postdep_objects=$lt_postdep_objects_RC
18392
18393# Dependencies to place before the objects being linked to create a
18394# shared library.
18395predeps=$lt_predeps_RC
18396
18397# Dependencies to place after the objects being linked to create a
18398# shared library.
18399postdeps=$lt_postdeps_RC
18400
18401# The library search path used internally by the compiler when linking
18402# a shared library.
18403compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18404
18405# Method to check whether dependent libraries are shared objects.
18406deplibs_check_method=$lt_deplibs_check_method
18407
18408# Command to use when deplibs_check_method == file_magic.
18409file_magic_cmd=$lt_file_magic_cmd
18410
18411# Flag that allows shared libraries with undefined symbols to be built.
18412allow_undefined_flag=$lt_allow_undefined_flag_RC
18413
18414# Flag that forces no undefined symbols.
18415no_undefined_flag=$lt_no_undefined_flag_RC
18416
18417# Commands used to finish a libtool library installation in a directory.
18418finish_cmds=$lt_finish_cmds
18419
18420# Same as above, but a single script fragment to be evaled but not shown.
18421finish_eval=$lt_finish_eval
18422
18423# Take the output of nm and produce a listing of raw symbols and C names.
18424global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18425
18426# Transform the output of nm in a proper C declaration
18427global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18428
18429# Transform the output of nm in a C name address pair
18430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18431
18432# This is the shared library runtime path variable.
18433runpath_var=$runpath_var
18434
18435# This is the shared library path variable.
18436shlibpath_var=$shlibpath_var
18437
18438# Is shlibpath searched before the hard-coded library search path?
18439shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18440
18441# How to hardcode a shared library path into an executable.
18442hardcode_action=$hardcode_action_RC
18443
18444# Whether we should hardcode library paths into libraries.
18445hardcode_into_libs=$hardcode_into_libs
18446
18447# Flag to hardcode \$libdir into a binary during linking.
18448# This must work even if \$libdir does not exist.
18449hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18450
18451# If ld is used when linking, flag to hardcode \$libdir into
18452# a binary during linking. This must work even if \$libdir does
18453# not exist.
18454hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18455
18456# Whether we need a single -rpath flag with a separated argument.
18457hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18458
18459# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18460# resulting binary.
18461hardcode_direct=$hardcode_direct_RC
18462
18463# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18464# resulting binary.
18465hardcode_minus_L=$hardcode_minus_L_RC
18466
18467# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18468# the resulting binary.
18469hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18470
18471# Set to yes if building a shared library automatically hardcodes DIR into the library
18472# and all subsequent libraries and executables linked against it.
18473hardcode_automatic=$hardcode_automatic_RC
18474
18475# Variables whose values should be saved in libtool wrapper scripts and
18476# restored at relink time.
18477variables_saved_for_relink="$variables_saved_for_relink"
18478
18479# Whether libtool must link a program against all its dependency libraries.
18480link_all_deplibs=$link_all_deplibs_RC
18481
18482# Compile-time system search path for libraries
18483sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18484
18485# Run-time system search path for libraries
18486sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18487
18488# Fix the shell variable \$srcfile for the compiler.
18489fix_srcfile_path="$fix_srcfile_path_RC"
18490
18491# Set to yes if exported symbols are required.
18492always_export_symbols=$always_export_symbols_RC
18493
18494# The commands to list exported symbols.
18495export_symbols_cmds=$lt_export_symbols_cmds_RC
18496
18497# The commands to extract the exported symbol list from a shared archive.
18498extract_expsyms_cmds=$lt_extract_expsyms_cmds
18499
18500# Symbols that should not be listed in the preloaded symbols.
18501exclude_expsyms=$lt_exclude_expsyms_RC
18502
18503# Symbols that must always be exported.
18504include_expsyms=$lt_include_expsyms_RC
18505
18506# ### END LIBTOOL TAG CONFIG: $tagname
18507
18508__EOF__
18509
18510
18511else
18512 # If there is no Makefile yet, we rely on a make rule to execute
18513 # `config.status --recheck' to rerun these tests and create the
18514 # libtool script then.
18515 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18516 if test -f "$ltmain_in"; then
18517 test -f Makefile && make "$ltmain"
18518 fi
18519fi
18520
18521
18522ac_ext=c
18523ac_cpp='$CPP $CPPFLAGS'
18524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526ac_compiler_gnu=$ac_cv_c_compiler_gnu
18527
18528CC="$lt_save_CC"
18529
18530 ;;
18531
18532 *)
18533 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18534echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18535 { (exit 1); exit 1; }; }
18536 ;;
18537 esac
18538
18539 # Append the new tag name to the list of available tags.
18540 if test -n "$tagname" ; then
18541 available_tags="$available_tags $tagname"
18542 fi
18543 fi
18544 done
18545 IFS="$lt_save_ifs"
18546
18547 # Now substitute the updated list of available tags.
18548 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18549 mv "${ofile}T" "$ofile"
18550 chmod +x "$ofile"
18551 else
18552 rm -f "${ofile}T"
18553 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18554echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18555 { (exit 1); exit 1; }; }
18556 fi
18557fi
18558
18559
18560
18561# This can be used to rebuild libtool when needed
18562LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18563
18564# Always use our own libtool.
18565LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18566
18567# Prevent multiple expansion
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590# Check whether some low-level functions/files are available
18591echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18592echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18593if test "${ac_cv_header_stdc+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18595else
18596 cat >conftest.$ac_ext <<_ACEOF
18597/* confdefs.h. */
18598_ACEOF
18599cat confdefs.h >>conftest.$ac_ext
18600cat >>conftest.$ac_ext <<_ACEOF
18601/* end confdefs.h. */
18602#include <stdlib.h>
18603#include <stdarg.h>
18604#include <string.h>
18605#include <float.h>
18606
18607int
18608main ()
18609{
18610
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext
18616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18617 (eval $ac_compile) 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } &&
18630 { ac_try='test -s conftest.$ac_objext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_cv_header_stdc=yes
18637else
18638 echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641ac_cv_header_stdc=no
18642fi
18643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18644
18645if test $ac_cv_header_stdc = yes; then
18646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18647 cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h. */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h. */
18653#include <string.h>
18654
18655_ACEOF
18656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18657 $EGREP "memchr" >/dev/null 2>&1; then
18658 :
18659else
18660 ac_cv_header_stdc=no
18661fi
18662rm -f conftest*
18663
18664fi
18665
18666if test $ac_cv_header_stdc = yes; then
18667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674#include <stdlib.h>
18675
18676_ACEOF
18677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18678 $EGREP "free" >/dev/null 2>&1; then
18679 :
18680else
18681 ac_cv_header_stdc=no
18682fi
18683rm -f conftest*
18684
18685fi
18686
18687if test $ac_cv_header_stdc = yes; then
18688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18689 if test "$cross_compiling" = yes; then
18690 :
18691else
18692 cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698#include <ctype.h>
18699#if ((' ' & 0x0FF) == 0x020)
18700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18702#else
18703# define ISLOWER(c) \
18704 (('a' <= (c) && (c) <= 'i') \
18705 || ('j' <= (c) && (c) <= 'r') \
18706 || ('s' <= (c) && (c) <= 'z'))
18707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18708#endif
18709
18710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18711int
18712main ()
18713{
18714 int i;
18715 for (i = 0; i < 256; i++)
18716 if (XOR (islower (i), ISLOWER (i))
18717 || toupper (i) != TOUPPER (i))
18718 exit(2);
18719 exit (0);
18720}
18721_ACEOF
18722rm -f conftest$ac_exeext
18723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18724 (eval $ac_link) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 :
18734else
18735 echo "$as_me: program exited with status $ac_status" >&5
18736echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
18738
18739( exit $ac_status )
18740ac_cv_header_stdc=no
18741fi
18742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18743fi
18744fi
18745fi
18746echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18747echo "${ECHO_T}$ac_cv_header_stdc" >&6
18748if test $ac_cv_header_stdc = yes; then
18749
18750cat >>confdefs.h <<\_ACEOF
18751#define STDC_HEADERS 1
18752_ACEOF
18753
18754fi
18755
18756
18757# Here are some examples of how to check for the existence of a fn or file
18758##AC_CHECK_FUNCS(memmove)
18759##AC_CHECK_HEADERS(sys/resource.h)
18760
18761for ac_func in setjmp
18762do
18763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18764echo "$as_me:$LINENO: checking for $ac_func" >&5
18765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18766if eval "test \"\${$as_ac_var+set}\" = set"; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768else
18769 cat >conftest.$ac_ext <<_ACEOF
18770/* confdefs.h. */
18771_ACEOF
18772cat confdefs.h >>conftest.$ac_ext
18773cat >>conftest.$ac_ext <<_ACEOF
18774/* end confdefs.h. */
18775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18777#define $ac_func innocuous_$ac_func
18778
18779/* System header to define __stub macros and hopefully few prototypes,
18780 which can conflict with char $ac_func (); below.
18781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18782 <limits.h> exists even on freestanding compilers. */
18783
18784#ifdef __STDC__
18785# include <limits.h>
18786#else
18787# include <assert.h>
18788#endif
18789
18790#undef $ac_func
18791
18792/* Override any gcc2 internal prototype to avoid an error. */
18793#ifdef __cplusplus
18794extern "C"
18795{
18796#endif
18797/* We use char because int might match the return type of a gcc2
18798 builtin and then its argument prototype would still apply. */
18799char $ac_func ();
18800/* The GNU C library defines this for functions which it implements
18801 to always fail with ENOSYS. Some functions are actually named
18802 something starting with __ and the normal name is an alias. */
18803#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18804choke me
18805#else
18806char (*f) () = $ac_func;
18807#endif
18808#ifdef __cplusplus
18809}
18810#endif
18811
18812int
18813main ()
18814{
18815return f != $ac_func;
18816 ;
18817 return 0;
18818}
18819_ACEOF
18820rm -f conftest.$ac_objext conftest$ac_exeext
18821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18822 (eval $ac_link) 2>conftest.er1
18823 ac_status=$?
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
18829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest$ac_exeext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 eval "$as_ac_var=yes"
18842else
18843 echo "$as_me: failed program was:" >&5
18844sed 's/^/| /' conftest.$ac_ext >&5
18845
18846eval "$as_ac_var=no"
18847fi
18848rm -f conftest.err conftest.$ac_objext \
18849 conftest$ac_exeext conftest.$ac_ext
18850fi
18851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18852echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18853if test `eval echo '${'$as_ac_var'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18856_ACEOF
18857
18858fi
18859done
18860
18861
18862for ac_func in longjmp
18863do
18864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18865echo "$as_me:$LINENO: checking for $ac_func" >&5
18866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18867if eval "test \"\${$as_ac_var+set}\" = set"; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18869else
18870 cat >conftest.$ac_ext <<_ACEOF
18871/* confdefs.h. */
18872_ACEOF
18873cat confdefs.h >>conftest.$ac_ext
18874cat >>conftest.$ac_ext <<_ACEOF
18875/* end confdefs.h. */
18876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18878#define $ac_func innocuous_$ac_func
18879
18880/* System header to define __stub macros and hopefully few prototypes,
18881 which can conflict with char $ac_func (); below.
18882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 <limits.h> exists even on freestanding compilers. */
18884
18885#ifdef __STDC__
18886# include <limits.h>
18887#else
18888# include <assert.h>
18889#endif
18890
18891#undef $ac_func
18892
18893/* Override any gcc2 internal prototype to avoid an error. */
18894#ifdef __cplusplus
18895extern "C"
18896{
18897#endif
18898/* We use char because int might match the return type of a gcc2
18899 builtin and then its argument prototype would still apply. */
18900char $ac_func ();
18901/* The GNU C library defines this for functions which it implements
18902 to always fail with ENOSYS. Some functions are actually named
18903 something starting with __ and the normal name is an alias. */
18904#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18905choke me
18906#else
18907char (*f) () = $ac_func;
18908#endif
18909#ifdef __cplusplus
18910}
18911#endif
18912
18913int
18914main ()
18915{
18916return f != $ac_func;
18917 ;
18918 return 0;
18919}
18920_ACEOF
18921rm -f conftest.$ac_objext conftest$ac_exeext
18922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18923 (eval $ac_link) 2>conftest.er1
18924 ac_status=$?
18925 grep -v '^ *+' conftest.er1 >conftest.err
18926 rm -f conftest.er1
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; } &&
18936 { ac_try='test -s conftest$ac_exeext'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 eval "$as_ac_var=yes"
18943else
18944 echo "$as_me: failed program was:" >&5
18945sed 's/^/| /' conftest.$ac_ext >&5
18946
18947eval "$as_ac_var=no"
18948fi
18949rm -f conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951fi
18952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18953echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18954if test `eval echo '${'$as_ac_var'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18957_ACEOF
18958
18959fi
18960done
18961
18962
18963for ac_func in strcmp
18964do
18965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18966echo "$as_me:$LINENO: checking for $ac_func" >&5
18967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18968if eval "test \"\${$as_ac_var+set}\" = set"; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18970else
18971 cat >conftest.$ac_ext <<_ACEOF
18972/* confdefs.h. */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
18976/* end confdefs.h. */
18977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18979#define $ac_func innocuous_$ac_func
18980
18981/* System header to define __stub macros and hopefully few prototypes,
18982 which can conflict with char $ac_func (); below.
18983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18984 <limits.h> exists even on freestanding compilers. */
18985
18986#ifdef __STDC__
18987# include <limits.h>
18988#else
18989# include <assert.h>
18990#endif
18991
18992#undef $ac_func
18993
18994/* Override any gcc2 internal prototype to avoid an error. */
18995#ifdef __cplusplus
18996extern "C"
18997{
18998#endif
18999/* We use char because int might match the return type of a gcc2
19000 builtin and then its argument prototype would still apply. */
19001char $ac_func ();
19002/* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19006choke me
19007#else
19008char (*f) () = $ac_func;
19009#endif
19010#ifdef __cplusplus
19011}
19012#endif
19013
19014int
19015main ()
19016{
19017return f != $ac_func;
19018 ;
19019 return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext conftest$ac_exeext
19023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19024 (eval $ac_link) 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
19031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 eval "$as_ac_var=yes"
19044else
19045 echo "$as_me: failed program was:" >&5
19046sed 's/^/| /' conftest.$ac_ext >&5
19047
19048eval "$as_ac_var=no"
19049fi
19050rm -f conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052fi
19053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19054echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19055if test `eval echo '${'$as_ac_var'}'` = yes; then
19056 cat >>confdefs.h <<_ACEOF
19057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19058_ACEOF
19059
19060fi
19061done
19062
19063
19064for ac_func in strcpy
19065do
19066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19067echo "$as_me:$LINENO: checking for $ac_func" >&5
19068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19069if eval "test \"\${$as_ac_var+set}\" = set"; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19071else
19072 cat >conftest.$ac_ext <<_ACEOF
19073/* confdefs.h. */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h. */
19078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19080#define $ac_func innocuous_$ac_func
19081
19082/* System header to define __stub macros and hopefully few prototypes,
19083 which can conflict with char $ac_func (); below.
19084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19085 <limits.h> exists even on freestanding compilers. */
19086
19087#ifdef __STDC__
19088# include <limits.h>
19089#else
19090# include <assert.h>
19091#endif
19092
19093#undef $ac_func
19094
19095/* Override any gcc2 internal prototype to avoid an error. */
19096#ifdef __cplusplus
19097extern "C"
19098{
19099#endif
19100/* We use char because int might match the return type of a gcc2
19101 builtin and then its argument prototype would still apply. */
19102char $ac_func ();
19103/* The GNU C library defines this for functions which it implements
19104 to always fail with ENOSYS. Some functions are actually named
19105 something starting with __ and the normal name is an alias. */
19106#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19107choke me
19108#else
19109char (*f) () = $ac_func;
19110#endif
19111#ifdef __cplusplus
19112}
19113#endif
19114
19115int
19116main ()
19117{
19118return f != $ac_func;
19119 ;
19120 return 0;
19121}
19122_ACEOF
19123rm -f conftest.$ac_objext conftest$ac_exeext
19124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19125 (eval $ac_link) 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 eval "$as_ac_var=yes"
19145else
19146 echo "$as_me: failed program was:" >&5
19147sed 's/^/| /' conftest.$ac_ext >&5
19148
19149eval "$as_ac_var=no"
19150fi
19151rm -f conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153fi
19154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19156if test `eval echo '${'$as_ac_var'}'` = yes; then
19157 cat >>confdefs.h <<_ACEOF
19158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19159_ACEOF
19160
19161fi
19162done
19163
19164
19165for ac_func in memcpy
19166do
19167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19168echo "$as_me:$LINENO: checking for $ac_func" >&5
19169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19170if eval "test \"\${$as_ac_var+set}\" = set"; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172else
19173 cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19181#define $ac_func innocuous_$ac_func
19182
19183/* System header to define __stub macros and hopefully few prototypes,
19184 which can conflict with char $ac_func (); below.
19185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19186 <limits.h> exists even on freestanding compilers. */
19187
19188#ifdef __STDC__
19189# include <limits.h>
19190#else
19191# include <assert.h>
19192#endif
19193
19194#undef $ac_func
19195
19196/* Override any gcc2 internal prototype to avoid an error. */
19197#ifdef __cplusplus
19198extern "C"
19199{
19200#endif
19201/* We use char because int might match the return type of a gcc2
19202 builtin and then its argument prototype would still apply. */
19203char $ac_func ();
19204/* The GNU C library defines this for functions which it implements
19205 to always fail with ENOSYS. Some functions are actually named
19206 something starting with __ and the normal name is an alias. */
19207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19208choke me
19209#else
19210char (*f) () = $ac_func;
19211#endif
19212#ifdef __cplusplus
19213}
19214#endif
19215
19216int
19217main ()
19218{
19219return f != $ac_func;
19220 ;
19221 return 0;
19222}
19223_ACEOF
19224rm -f conftest.$ac_objext conftest$ac_exeext
19225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226 (eval $ac_link) 2>conftest.er1
19227 ac_status=$?
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 eval "$as_ac_var=yes"
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250eval "$as_ac_var=no"
19251fi
19252rm -f conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19254fi
19255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19256echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19257if test `eval echo '${'$as_ac_var'}'` = yes; then
19258 cat >>confdefs.h <<_ACEOF
19259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19260_ACEOF
19261
19262fi
19263done
19264
19265
19266for ac_func in memset
19267do
19268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269echo "$as_me:$LINENO: checking for $ac_func" >&5
19270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19271if eval "test \"\${$as_ac_var+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273else
19274 cat >conftest.$ac_ext <<_ACEOF
19275/* confdefs.h. */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h. */
19280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19282#define $ac_func innocuous_$ac_func
19283
19284/* System header to define __stub macros and hopefully few prototypes,
19285 which can conflict with char $ac_func (); below.
19286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287 <limits.h> exists even on freestanding compilers. */
19288
19289#ifdef __STDC__
19290# include <limits.h>
19291#else
19292# include <assert.h>
19293#endif
19294
19295#undef $ac_func
19296
19297/* Override any gcc2 internal prototype to avoid an error. */
19298#ifdef __cplusplus
19299extern "C"
19300{
19301#endif
19302/* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19304char $ac_func ();
19305/* The GNU C library defines this for functions which it implements
19306 to always fail with ENOSYS. Some functions are actually named
19307 something starting with __ and the normal name is an alias. */
19308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19309choke me
19310#else
19311char (*f) () = $ac_func;
19312#endif
19313#ifdef __cplusplus
19314}
19315#endif
19316
19317int
19318main ()
19319{
19320return f != $ac_func;
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext conftest$ac_exeext
19326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest$ac_exeext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 eval "$as_ac_var=yes"
19347else
19348 echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351eval "$as_ac_var=no"
19352fi
19353rm -f conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19355fi
19356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19358if test `eval echo '${'$as_ac_var'}'` = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19361_ACEOF
19362
19363fi
19364done
19365
19366
19367for ac_func in malloc
19368do
19369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19370echo "$as_me:$LINENO: checking for $ac_func" >&5
19371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19372if eval "test \"\${$as_ac_var+set}\" = set"; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374else
19375 cat >conftest.$ac_ext <<_ACEOF
19376/* confdefs.h. */
19377_ACEOF
19378cat confdefs.h >>conftest.$ac_ext
19379cat >>conftest.$ac_ext <<_ACEOF
19380/* end confdefs.h. */
19381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19383#define $ac_func innocuous_$ac_func
19384
19385/* System header to define __stub macros and hopefully few prototypes,
19386 which can conflict with char $ac_func (); below.
19387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19388 <limits.h> exists even on freestanding compilers. */
19389
19390#ifdef __STDC__
19391# include <limits.h>
19392#else
19393# include <assert.h>
19394#endif
19395
19396#undef $ac_func
19397
19398/* Override any gcc2 internal prototype to avoid an error. */
19399#ifdef __cplusplus
19400extern "C"
19401{
19402#endif
19403/* We use char because int might match the return type of a gcc2
19404 builtin and then its argument prototype would still apply. */
19405char $ac_func ();
19406/* The GNU C library defines this for functions which it implements
19407 to always fail with ENOSYS. Some functions are actually named
19408 something starting with __ and the normal name is an alias. */
19409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19410choke me
19411#else
19412char (*f) () = $ac_func;
19413#endif
19414#ifdef __cplusplus
19415}
19416#endif
19417
19418int
19419main ()
19420{
19421return f != $ac_func;
19422 ;
19423 return 0;
19424}
19425_ACEOF
19426rm -f conftest.$ac_objext conftest$ac_exeext
19427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19428 (eval $ac_link) 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
19435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest$ac_exeext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 eval "$as_ac_var=yes"
19448else
19449 echo "$as_me: failed program was:" >&5
19450sed 's/^/| /' conftest.$ac_ext >&5
19451
19452eval "$as_ac_var=no"
19453fi
19454rm -f conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19456fi
19457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19459if test `eval echo '${'$as_ac_var'}'` = yes; then
19460 cat >>confdefs.h <<_ACEOF
19461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19462_ACEOF
19463
19464fi
19465done
19466
19467
19468for ac_func in calloc
19469do
19470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19471echo "$as_me:$LINENO: checking for $ac_func" >&5
19472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19473if eval "test \"\${$as_ac_var+set}\" = set"; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476 cat >conftest.$ac_ext <<_ACEOF
19477/* confdefs.h. */
19478_ACEOF
19479cat confdefs.h >>conftest.$ac_ext
19480cat >>conftest.$ac_ext <<_ACEOF
19481/* end confdefs.h. */
19482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19484#define $ac_func innocuous_$ac_func
19485
19486/* System header to define __stub macros and hopefully few prototypes,
19487 which can conflict with char $ac_func (); below.
19488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19489 <limits.h> exists even on freestanding compilers. */
19490
19491#ifdef __STDC__
19492# include <limits.h>
19493#else
19494# include <assert.h>
19495#endif
19496
19497#undef $ac_func
19498
19499/* Override any gcc2 internal prototype to avoid an error. */
19500#ifdef __cplusplus
19501extern "C"
19502{
19503#endif
19504/* We use char because int might match the return type of a gcc2
19505 builtin and then its argument prototype would still apply. */
19506char $ac_func ();
19507/* The GNU C library defines this for functions which it implements
19508 to always fail with ENOSYS. Some functions are actually named
19509 something starting with __ and the normal name is an alias. */
19510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19511choke me
19512#else
19513char (*f) () = $ac_func;
19514#endif
19515#ifdef __cplusplus
19516}
19517#endif
19518
19519int
19520main ()
19521{
19522return f != $ac_func;
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext conftest$ac_exeext
19528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19529 (eval $ac_link) 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" || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest$ac_exeext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 eval "$as_ac_var=yes"
19549else
19550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553eval "$as_ac_var=no"
19554fi
19555rm -f conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19557fi
19558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19560if test `eval echo '${'$as_ac_var'}'` = yes; then
19561 cat >>confdefs.h <<_ACEOF
19562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19563_ACEOF
19564
19565fi
19566done
19567
19568
19569for ac_func in free
19570do
19571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19572echo "$as_me:$LINENO: checking for $ac_func" >&5
19573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19574if eval "test \"\${$as_ac_var+set}\" = set"; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576else
19577 cat >conftest.$ac_ext <<_ACEOF
19578/* confdefs.h. */
19579_ACEOF
19580cat confdefs.h >>conftest.$ac_ext
19581cat >>conftest.$ac_ext <<_ACEOF
19582/* end confdefs.h. */
19583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19585#define $ac_func innocuous_$ac_func
19586
19587/* System header to define __stub macros and hopefully few prototypes,
19588 which can conflict with char $ac_func (); below.
19589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19590 <limits.h> exists even on freestanding compilers. */
19591
19592#ifdef __STDC__
19593# include <limits.h>
19594#else
19595# include <assert.h>
19596#endif
19597
19598#undef $ac_func
19599
19600/* Override any gcc2 internal prototype to avoid an error. */
19601#ifdef __cplusplus
19602extern "C"
19603{
19604#endif
19605/* We use char because int might match the return type of a gcc2
19606 builtin and then its argument prototype would still apply. */
19607char $ac_func ();
19608/* The GNU C library defines this for functions which it implements
19609 to always fail with ENOSYS. Some functions are actually named
19610 something starting with __ and the normal name is an alias. */
19611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19612choke me
19613#else
19614char (*f) () = $ac_func;
19615#endif
19616#ifdef __cplusplus
19617}
19618#endif
19619
19620int
19621main ()
19622{
19623return f != $ac_func;
19624 ;
19625 return 0;
19626}
19627_ACEOF
19628rm -f conftest.$ac_objext conftest$ac_exeext
19629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19650else
19651 echo "$as_me: failed program was:" >&5
19652sed 's/^/| /' conftest.$ac_ext >&5
19653
19654eval "$as_ac_var=no"
19655fi
19656rm -f conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19658fi
19659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19661if test `eval echo '${'$as_ac_var'}'` = yes; then
19662 cat >>confdefs.h <<_ACEOF
19663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19664_ACEOF
19665
19666fi
19667done
19668
19669
19670for ac_func in exit
19671do
19672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19673echo "$as_me:$LINENO: checking for $ac_func" >&5
19674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19675if eval "test \"\${$as_ac_var+set}\" = set"; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19677else
19678 cat >conftest.$ac_ext <<_ACEOF
19679/* confdefs.h. */
19680_ACEOF
19681cat confdefs.h >>conftest.$ac_ext
19682cat >>conftest.$ac_ext <<_ACEOF
19683/* end confdefs.h. */
19684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19686#define $ac_func innocuous_$ac_func
19687
19688/* System header to define __stub macros and hopefully few prototypes,
19689 which can conflict with char $ac_func (); below.
19690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19691 <limits.h> exists even on freestanding compilers. */
19692
19693#ifdef __STDC__
19694# include <limits.h>
19695#else
19696# include <assert.h>
19697#endif
19698
19699#undef $ac_func
19700
19701/* Override any gcc2 internal prototype to avoid an error. */
19702#ifdef __cplusplus
19703extern "C"
19704{
19705#endif
19706/* We use char because int might match the return type of a gcc2
19707 builtin and then its argument prototype would still apply. */
19708char $ac_func ();
19709/* The GNU C library defines this for functions which it implements
19710 to always fail with ENOSYS. Some functions are actually named
19711 something starting with __ and the normal name is an alias. */
19712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19713choke me
19714#else
19715char (*f) () = $ac_func;
19716#endif
19717#ifdef __cplusplus
19718}
19719#endif
19720
19721int
19722main ()
19723{
19724return f != $ac_func;
19725 ;
19726 return 0;
19727}
19728_ACEOF
19729rm -f conftest.$ac_objext conftest$ac_exeext
19730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19731 (eval $ac_link) 2>conftest.er1
19732 ac_status=$?
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
19744 { ac_try='test -s conftest$ac_exeext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 eval "$as_ac_var=yes"
19751else
19752 echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755eval "$as_ac_var=no"
19756fi
19757rm -f conftest.err conftest.$ac_objext \
19758 conftest$ac_exeext conftest.$ac_ext
19759fi
19760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19761echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19762if test `eval echo '${'$as_ac_var'}'` = yes; then
19763 cat >>confdefs.h <<_ACEOF
19764#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19765_ACEOF
19766
19767fi
19768done
19769
19770
19771for ac_func in signal
19772do
19773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19774echo "$as_me:$LINENO: checking for $ac_func" >&5
19775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19776if eval "test \"\${$as_ac_var+set}\" = set"; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778else
19779 cat >conftest.$ac_ext <<_ACEOF
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19787#define $ac_func innocuous_$ac_func
19788
19789/* System header to define __stub macros and hopefully few prototypes,
19790 which can conflict with char $ac_func (); below.
19791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19792 <limits.h> exists even on freestanding compilers. */
19793
19794#ifdef __STDC__
19795# include <limits.h>
19796#else
19797# include <assert.h>
19798#endif
19799
19800#undef $ac_func
19801
19802/* Override any gcc2 internal prototype to avoid an error. */
19803#ifdef __cplusplus
19804extern "C"
19805{
19806#endif
19807/* We use char because int might match the return type of a gcc2
19808 builtin and then its argument prototype would still apply. */
19809char $ac_func ();
19810/* The GNU C library defines this for functions which it implements
19811 to always fail with ENOSYS. Some functions are actually named
19812 something starting with __ and the normal name is an alias. */
19813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19814choke me
19815#else
19816char (*f) () = $ac_func;
19817#endif
19818#ifdef __cplusplus
19819}
19820#endif
19821
19822int
19823main ()
19824{
19825return f != $ac_func;
19826 ;
19827 return 0;
19828}
19829_ACEOF
19830rm -f conftest.$ac_objext conftest$ac_exeext
19831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19832 (eval $ac_link) 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
19839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest$ac_exeext'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; }; then
19851 eval "$as_ac_var=yes"
19852else
19853 echo "$as_me: failed program was:" >&5
19854sed 's/^/| /' conftest.$ac_ext >&5
19855
19856eval "$as_ac_var=no"
19857fi
19858rm -f conftest.err conftest.$ac_objext \
19859 conftest$ac_exeext conftest.$ac_ext
19860fi
19861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19863if test `eval echo '${'$as_ac_var'}'` = yes; then
19864 cat >>confdefs.h <<_ACEOF
19865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19866_ACEOF
19867
19868fi
19869done
19870
19871
19872for ac_func in printf
19873do
19874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19875echo "$as_me:$LINENO: checking for $ac_func" >&5
19876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19877if eval "test \"\${$as_ac_var+set}\" = set"; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879else
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19888#define $ac_func innocuous_$ac_func
19889
19890/* System header to define __stub macros and hopefully few prototypes,
19891 which can conflict with char $ac_func (); below.
19892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19893 <limits.h> exists even on freestanding compilers. */
19894
19895#ifdef __STDC__
19896# include <limits.h>
19897#else
19898# include <assert.h>
19899#endif
19900
19901#undef $ac_func
19902
19903/* Override any gcc2 internal prototype to avoid an error. */
19904#ifdef __cplusplus
19905extern "C"
19906{
19907#endif
19908/* We use char because int might match the return type of a gcc2
19909 builtin and then its argument prototype would still apply. */
19910char $ac_func ();
19911/* The GNU C library defines this for functions which it implements
19912 to always fail with ENOSYS. Some functions are actually named
19913 something starting with __ and the normal name is an alias. */
19914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19915choke me
19916#else
19917char (*f) () = $ac_func;
19918#endif
19919#ifdef __cplusplus
19920}
19921#endif
19922
19923int
19924main ()
19925{
19926return f != $ac_func;
19927 ;
19928 return 0;
19929}
19930_ACEOF
19931rm -f conftest.$ac_objext conftest$ac_exeext
19932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19933 (eval $ac_link) 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest$ac_exeext'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 eval "$as_ac_var=yes"
19953else
19954 echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957eval "$as_ac_var=no"
19958fi
19959rm -f conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19961fi
19962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19964if test `eval echo '${'$as_ac_var'}'` = yes; then
19965 cat >>confdefs.h <<_ACEOF
19966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19967_ACEOF
19968
19969fi
19970done
19971
19972
19973for ac_func in fprintf
19974do
19975as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19976echo "$as_me:$LINENO: checking for $ac_func" >&5
19977echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19978if eval "test \"\${$as_ac_var+set}\" = set"; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19980else
19981 cat >conftest.$ac_ext <<_ACEOF
19982/* confdefs.h. */
19983_ACEOF
19984cat confdefs.h >>conftest.$ac_ext
19985cat >>conftest.$ac_ext <<_ACEOF
19986/* end confdefs.h. */
19987/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19989#define $ac_func innocuous_$ac_func
19990
19991/* System header to define __stub macros and hopefully few prototypes,
19992 which can conflict with char $ac_func (); below.
19993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19994 <limits.h> exists even on freestanding compilers. */
19995
19996#ifdef __STDC__
19997# include <limits.h>
19998#else
19999# include <assert.h>
20000#endif
20001
20002#undef $ac_func
20003
20004/* Override any gcc2 internal prototype to avoid an error. */
20005#ifdef __cplusplus
20006extern "C"
20007{
20008#endif
20009/* We use char because int might match the return type of a gcc2
20010 builtin and then its argument prototype would still apply. */
20011char $ac_func ();
20012/* The GNU C library defines this for functions which it implements
20013 to always fail with ENOSYS. Some functions are actually named
20014 something starting with __ and the normal name is an alias. */
20015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20016choke me
20017#else
20018char (*f) () = $ac_func;
20019#endif
20020#ifdef __cplusplus
20021}
20022#endif
20023
20024int
20025main ()
20026{
20027return f != $ac_func;
20028 ;
20029 return 0;
20030}
20031_ACEOF
20032rm -f conftest.$ac_objext conftest$ac_exeext
20033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20034 (eval $ac_link) 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest$ac_exeext'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 eval "$as_ac_var=yes"
20054else
20055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058eval "$as_ac_var=no"
20059fi
20060rm -f conftest.err conftest.$ac_objext \
20061 conftest$ac_exeext conftest.$ac_ext
20062fi
20063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20065if test `eval echo '${'$as_ac_var'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20068_ACEOF
20069
20070fi
20071done
20072
20073
20074for ac_func in snprintf
20075do
20076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20077echo "$as_me:$LINENO: checking for $ac_func" >&5
20078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20079if eval "test \"\${$as_ac_var+set}\" = set"; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081else
20082 cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
20088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20090#define $ac_func innocuous_$ac_func
20091
20092/* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char $ac_func (); below.
20094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20095 <limits.h> exists even on freestanding compilers. */
20096
20097#ifdef __STDC__
20098# include <limits.h>
20099#else
20100# include <assert.h>
20101#endif
20102
20103#undef $ac_func
20104
20105/* Override any gcc2 internal prototype to avoid an error. */
20106#ifdef __cplusplus
20107extern "C"
20108{
20109#endif
20110/* We use char because int might match the return type of a gcc2
20111 builtin and then its argument prototype would still apply. */
20112char $ac_func ();
20113/* The GNU C library defines this for functions which it implements
20114 to always fail with ENOSYS. Some functions are actually named
20115 something starting with __ and the normal name is an alias. */
20116#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20117choke me
20118#else
20119char (*f) () = $ac_func;
20120#endif
20121#ifdef __cplusplus
20122}
20123#endif
20124
20125int
20126main ()
20127{
20128return f != $ac_func;
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext conftest$ac_exeext
20134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 eval "$as_ac_var=yes"
20155else
20156 echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159eval "$as_ac_var=no"
20160fi
20161rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20163fi
20164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20165echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20166if test `eval echo '${'$as_ac_var'}'` = yes; then
20167 cat >>confdefs.h <<_ACEOF
20168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20169_ACEOF
20170
20171fi
20172done
20173
20174
20175for ac_func in vsnprintf
20176do
20177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178echo "$as_me:$LINENO: checking for $ac_func" >&5
20179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20180if eval "test \"\${$as_ac_var+set}\" = set"; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
20183 cat >conftest.$ac_ext <<_ACEOF
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
20189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191#define $ac_func innocuous_$ac_func
20192
20193/* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20197
20198#ifdef __STDC__
20199# include <limits.h>
20200#else
20201# include <assert.h>
20202#endif
20203
20204#undef $ac_func
20205
20206/* Override any gcc2 internal prototype to avoid an error. */
20207#ifdef __cplusplus
20208extern "C"
20209{
20210#endif
20211/* We use char because int might match the return type of a gcc2
20212 builtin and then its argument prototype would still apply. */
20213char $ac_func ();
20214/* The GNU C library defines this for functions which it implements
20215 to always fail with ENOSYS. Some functions are actually named
20216 something starting with __ and the normal name is an alias. */
20217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20218choke me
20219#else
20220char (*f) () = $ac_func;
20221#endif
20222#ifdef __cplusplus
20223}
20224#endif
20225
20226int
20227main ()
20228{
20229return f != $ac_func;
20230 ;
20231 return 0;
20232}
20233_ACEOF
20234rm -f conftest.$ac_objext conftest$ac_exeext
20235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20236 (eval $ac_link) 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
20243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest$ac_exeext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 eval "$as_ac_var=yes"
20256else
20257 echo "$as_me: failed program was:" >&5
20258sed 's/^/| /' conftest.$ac_ext >&5
20259
20260eval "$as_ac_var=no"
20261fi
20262rm -f conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20264fi
20265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20267if test `eval echo '${'$as_ac_var'}'` = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20270_ACEOF
20271
20272fi
20273done
20274
20275
20276for ac_header in assert.h
20277do
20278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20279if eval "test \"\${$as_ac_Header+set}\" = set"; then
20280 echo "$as_me:$LINENO: checking for $ac_header" >&5
20281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20282if eval "test \"\${$as_ac_Header+set}\" = set"; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284fi
20285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20287else
20288 # Is the header compilable?
20289echo "$as_me:$LINENO: checking $ac_header usability" >&5
20290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20291cat >conftest.$ac_ext <<_ACEOF
20292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h. */
20297$ac_includes_default
20298#include <$ac_header>
20299_ACEOF
20300rm -f conftest.$ac_objext
20301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20302 (eval $ac_compile) 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_header_compiler=yes
20322else
20323 echo "$as_me: failed program was:" >&5
20324sed 's/^/| /' conftest.$ac_ext >&5
20325
20326ac_header_compiler=no
20327fi
20328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20330echo "${ECHO_T}$ac_header_compiler" >&6
20331
20332# Is the header present?
20333echo "$as_me:$LINENO: checking $ac_header presence" >&5
20334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20335cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341#include <$ac_header>
20342_ACEOF
20343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } >/dev/null; then
20351 if test -s conftest.err; then
20352 ac_cpp_err=$ac_c_preproc_warn_flag
20353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20354 else
20355 ac_cpp_err=
20356 fi
20357else
20358 ac_cpp_err=yes
20359fi
20360if test -z "$ac_cpp_err"; then
20361 ac_header_preproc=yes
20362else
20363 echo "$as_me: failed program was:" >&5
20364sed 's/^/| /' conftest.$ac_ext >&5
20365
20366 ac_header_preproc=no
20367fi
20368rm -f conftest.err conftest.$ac_ext
20369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20370echo "${ECHO_T}$ac_header_preproc" >&6
20371
20372# So? What about this header?
20373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20374 yes:no: )
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20379 ac_header_preproc=yes
20380 ;;
20381 no:yes:* )
20382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20385echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20389echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20394 (
20395 cat <<\_ASBOX
20396## ------------------------------------ ##
20397## Report this to opensource@google.com ##
20398## ------------------------------------ ##
20399_ASBOX
20400 ) |
20401 sed "s/^/$as_me: WARNING: /" >&2
20402 ;;
20403esac
20404echo "$as_me:$LINENO: checking for $ac_header" >&5
20405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20406if eval "test \"\${$as_ac_Header+set}\" = set"; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20408else
20409 eval "$as_ac_Header=\$ac_header_preproc"
20410fi
20411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20413
20414fi
20415if test `eval echo '${'$as_ac_Header'}'` = yes; then
20416 cat >>confdefs.h <<_ACEOF
20417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20418_ACEOF
20419
20420fi
20421
20422done
20423
20424
20425for ac_header in malloc.h
20426do
20427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20428if eval "test \"\${$as_ac_Header+set}\" = set"; then
20429 echo "$as_me:$LINENO: checking for $ac_header" >&5
20430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20431if eval "test \"\${$as_ac_Header+set}\" = set"; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433fi
20434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20436else
20437 # Is the header compilable?
20438echo "$as_me:$LINENO: checking $ac_header usability" >&5
20439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20440cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446$ac_includes_default
20447#include <$ac_header>
20448_ACEOF
20449rm -f conftest.$ac_objext
20450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451 (eval $ac_compile) 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest.$ac_objext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_header_compiler=yes
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_header_compiler=no
20476fi
20477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20479echo "${ECHO_T}$ac_header_compiler" >&6
20480
20481# Is the header present?
20482echo "$as_me:$LINENO: checking $ac_header presence" >&5
20483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20484cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
20490#include <$ac_header>
20491_ACEOF
20492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20494 ac_status=$?
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } >/dev/null; then
20500 if test -s conftest.err; then
20501 ac_cpp_err=$ac_c_preproc_warn_flag
20502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20503 else
20504 ac_cpp_err=
20505 fi
20506else
20507 ac_cpp_err=yes
20508fi
20509if test -z "$ac_cpp_err"; then
20510 ac_header_preproc=yes
20511else
20512 echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 ac_header_preproc=no
20516fi
20517rm -f conftest.err conftest.$ac_ext
20518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20519echo "${ECHO_T}$ac_header_preproc" >&6
20520
20521# So? What about this header?
20522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20523 yes:no: )
20524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20528 ac_header_preproc=yes
20529 ;;
20530 no:yes:* )
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20543 (
20544 cat <<\_ASBOX
20545## ------------------------------------ ##
20546## Report this to opensource@google.com ##
20547## ------------------------------------ ##
20548_ASBOX
20549 ) |
20550 sed "s/^/$as_me: WARNING: /" >&2
20551 ;;
20552esac
20553echo "$as_me:$LINENO: checking for $ac_header" >&5
20554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20555if eval "test \"\${$as_ac_Header+set}\" = set"; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557else
20558 eval "$as_ac_Header=\$ac_header_preproc"
20559fi
20560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20562
20563fi
20564if test `eval echo '${'$as_ac_Header'}'` = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20567_ACEOF
20568
20569fi
20570
20571done
20572
20573
20574for ac_header in setjmp.h
20575do
20576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20577if eval "test \"\${$as_ac_Header+set}\" = set"; then
20578 echo "$as_me:$LINENO: checking for $ac_header" >&5
20579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20580if eval "test \"\${$as_ac_Header+set}\" = set"; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582fi
20583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20585else
20586 # Is the header compilable?
20587echo "$as_me:$LINENO: checking $ac_header usability" >&5
20588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20589cat >conftest.$ac_ext <<_ACEOF
20590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595$ac_includes_default
20596#include <$ac_header>
20597_ACEOF
20598rm -f conftest.$ac_objext
20599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600 (eval $ac_compile) 2>conftest.er1
20601 ac_status=$?
20602 grep -v '^ *+' conftest.er1 >conftest.err
20603 rm -f conftest.er1
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; } &&
20613 { ac_try='test -s conftest.$ac_objext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_header_compiler=yes
20620else
20621 echo "$as_me: failed program was:" >&5
20622sed 's/^/| /' conftest.$ac_ext >&5
20623
20624ac_header_compiler=no
20625fi
20626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628echo "${ECHO_T}$ac_header_compiler" >&6
20629
20630# Is the header present?
20631echo "$as_me:$LINENO: checking $ac_header presence" >&5
20632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20633cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
20639#include <$ac_header>
20640_ACEOF
20641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } >/dev/null; then
20649 if test -s conftest.err; then
20650 ac_cpp_err=$ac_c_preproc_warn_flag
20651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20652 else
20653 ac_cpp_err=
20654 fi
20655else
20656 ac_cpp_err=yes
20657fi
20658if test -z "$ac_cpp_err"; then
20659 ac_header_preproc=yes
20660else
20661 echo "$as_me: failed program was:" >&5
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 ac_header_preproc=no
20665fi
20666rm -f conftest.err conftest.$ac_ext
20667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20668echo "${ECHO_T}$ac_header_preproc" >&6
20669
20670# So? What about this header?
20671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20672 yes:no: )
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20677 ac_header_preproc=yes
20678 ;;
20679 no:yes:* )
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20692 (
20693 cat <<\_ASBOX
20694## ------------------------------------ ##
20695## Report this to opensource@google.com ##
20696## ------------------------------------ ##
20697_ASBOX
20698 ) |
20699 sed "s/^/$as_me: WARNING: /" >&2
20700 ;;
20701esac
20702echo "$as_me:$LINENO: checking for $ac_header" >&5
20703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20704if eval "test \"\${$as_ac_Header+set}\" = set"; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20706else
20707 eval "$as_ac_Header=\$ac_header_preproc"
20708fi
20709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20711
20712fi
20713if test `eval echo '${'$as_ac_Header'}'` = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20716_ACEOF
20717
20718fi
20719
20720done
20721
20722
20723for ac_header in stdarg.h
20724do
20725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20726if eval "test \"\${$as_ac_Header+set}\" = set"; then
20727 echo "$as_me:$LINENO: checking for $ac_header" >&5
20728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20729if eval "test \"\${$as_ac_Header+set}\" = set"; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731fi
20732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20734else
20735 # Is the header compilable?
20736echo "$as_me:$LINENO: checking $ac_header usability" >&5
20737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20738cat >conftest.$ac_ext <<_ACEOF
20739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
20744$ac_includes_default
20745#include <$ac_header>
20746_ACEOF
20747rm -f conftest.$ac_objext
20748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20749 (eval $ac_compile) 2>conftest.er1
20750 ac_status=$?
20751 grep -v '^ *+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
20756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_header_compiler=yes
20769else
20770 echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
20773ac_header_compiler=no
20774fi
20775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777echo "${ECHO_T}$ac_header_compiler" >&6
20778
20779# Is the header present?
20780echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782cat >conftest.$ac_ext <<_ACEOF
20783/* confdefs.h. */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h. */
20788#include <$ac_header>
20789_ACEOF
20790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } >/dev/null; then
20798 if test -s conftest.err; then
20799 ac_cpp_err=$ac_c_preproc_warn_flag
20800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20801 else
20802 ac_cpp_err=
20803 fi
20804else
20805 ac_cpp_err=yes
20806fi
20807if test -z "$ac_cpp_err"; then
20808 ac_header_preproc=yes
20809else
20810 echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 ac_header_preproc=no
20814fi
20815rm -f conftest.err conftest.$ac_ext
20816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817echo "${ECHO_T}$ac_header_preproc" >&6
20818
20819# So? What about this header?
20820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20821 yes:no: )
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20826 ac_header_preproc=yes
20827 ;;
20828 no:yes:* )
20829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20841 (
20842 cat <<\_ASBOX
20843## ------------------------------------ ##
20844## Report this to opensource@google.com ##
20845## ------------------------------------ ##
20846_ASBOX
20847 ) |
20848 sed "s/^/$as_me: WARNING: /" >&2
20849 ;;
20850esac
20851echo "$as_me:$LINENO: checking for $ac_header" >&5
20852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20853if eval "test \"\${$as_ac_Header+set}\" = set"; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20855else
20856 eval "$as_ac_Header=\$ac_header_preproc"
20857fi
20858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20860
20861fi
20862if test `eval echo '${'$as_ac_Header'}'` = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20865_ACEOF
20866
20867fi
20868
20869done
20870
20871
20872for ac_header in stddef.h
20873do
20874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20875if eval "test \"\${$as_ac_Header+set}\" = set"; then
20876 echo "$as_me:$LINENO: checking for $ac_header" >&5
20877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20878if eval "test \"\${$as_ac_Header+set}\" = set"; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20880fi
20881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20883else
20884 # Is the header compilable?
20885echo "$as_me:$LINENO: checking $ac_header usability" >&5
20886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20887cat >conftest.$ac_ext <<_ACEOF
20888/* confdefs.h. */
20889_ACEOF
20890cat confdefs.h >>conftest.$ac_ext
20891cat >>conftest.$ac_ext <<_ACEOF
20892/* end confdefs.h. */
20893$ac_includes_default
20894#include <$ac_header>
20895_ACEOF
20896rm -f conftest.$ac_objext
20897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20898 (eval $ac_compile) 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest.$ac_objext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 ac_header_compiler=yes
20918else
20919 echo "$as_me: failed program was:" >&5
20920sed 's/^/| /' conftest.$ac_ext >&5
20921
20922ac_header_compiler=no
20923fi
20924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20926echo "${ECHO_T}$ac_header_compiler" >&6
20927
20928# Is the header present?
20929echo "$as_me:$LINENO: checking $ac_header presence" >&5
20930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20931cat >conftest.$ac_ext <<_ACEOF
20932/* confdefs.h. */
20933_ACEOF
20934cat confdefs.h >>conftest.$ac_ext
20935cat >>conftest.$ac_ext <<_ACEOF
20936/* end confdefs.h. */
20937#include <$ac_header>
20938_ACEOF
20939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } >/dev/null; then
20947 if test -s conftest.err; then
20948 ac_cpp_err=$ac_c_preproc_warn_flag
20949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20950 else
20951 ac_cpp_err=
20952 fi
20953else
20954 ac_cpp_err=yes
20955fi
20956if test -z "$ac_cpp_err"; then
20957 ac_header_preproc=yes
20958else
20959 echo "$as_me: failed program was:" >&5
20960sed 's/^/| /' conftest.$ac_ext >&5
20961
20962 ac_header_preproc=no
20963fi
20964rm -f conftest.err conftest.$ac_ext
20965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20966echo "${ECHO_T}$ac_header_preproc" >&6
20967
20968# So? What about this header?
20969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20970 yes:no: )
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20975 ac_header_preproc=yes
20976 ;;
20977 no:yes:* )
20978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20990 (
20991 cat <<\_ASBOX
20992## ------------------------------------ ##
20993## Report this to opensource@google.com ##
20994## ------------------------------------ ##
20995_ASBOX
20996 ) |
20997 sed "s/^/$as_me: WARNING: /" >&2
20998 ;;
20999esac
21000echo "$as_me:$LINENO: checking for $ac_header" >&5
21001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21002if eval "test \"\${$as_ac_Header+set}\" = set"; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21004else
21005 eval "$as_ac_Header=\$ac_header_preproc"
21006fi
21007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21009
21010fi
21011if test `eval echo '${'$as_ac_Header'}'` = yes; then
21012 cat >>confdefs.h <<_ACEOF
21013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21014_ACEOF
21015
21016fi
21017
21018done
21019
21020
21021for ac_header in stdio.h
21022do
21023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21024if eval "test \"\${$as_ac_Header+set}\" = set"; then
21025 echo "$as_me:$LINENO: checking for $ac_header" >&5
21026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21027if eval "test \"\${$as_ac_Header+set}\" = set"; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21029fi
21030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21032else
21033 # Is the header compilable?
21034echo "$as_me:$LINENO: checking $ac_header usability" >&5
21035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21036cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
21042$ac_includes_default
21043#include <$ac_header>
21044_ACEOF
21045rm -f conftest.$ac_objext
21046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047 (eval $ac_compile) 2>conftest.er1
21048 ac_status=$?
21049 grep -v '^ *+' conftest.er1 >conftest.err
21050 rm -f conftest.er1
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_header_compiler=yes
21067else
21068 echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5
21070
21071ac_header_compiler=no
21072fi
21073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21075echo "${ECHO_T}$ac_header_compiler" >&6
21076
21077# Is the header present?
21078echo "$as_me:$LINENO: checking $ac_header presence" >&5
21079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21080cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h. */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h. */
21086#include <$ac_header>
21087_ACEOF
21088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } >/dev/null; then
21096 if test -s conftest.err; then
21097 ac_cpp_err=$ac_c_preproc_warn_flag
21098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21099 else
21100 ac_cpp_err=
21101 fi
21102else
21103 ac_cpp_err=yes
21104fi
21105if test -z "$ac_cpp_err"; then
21106 ac_header_preproc=yes
21107else
21108 echo "$as_me: failed program was:" >&5
21109sed 's/^/| /' conftest.$ac_ext >&5
21110
21111 ac_header_preproc=no
21112fi
21113rm -f conftest.err conftest.$ac_ext
21114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21115echo "${ECHO_T}$ac_header_preproc" >&6
21116
21117# So? What about this header?
21118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21119 yes:no: )
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21124 ac_header_preproc=yes
21125 ;;
21126 no:yes:* )
21127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21139 (
21140 cat <<\_ASBOX
21141## ------------------------------------ ##
21142## Report this to opensource@google.com ##
21143## ------------------------------------ ##
21144_ASBOX
21145 ) |
21146 sed "s/^/$as_me: WARNING: /" >&2
21147 ;;
21148esac
21149echo "$as_me:$LINENO: checking for $ac_header" >&5
21150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21151if eval "test \"\${$as_ac_Header+set}\" = set"; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153else
21154 eval "$as_ac_Header=\$ac_header_preproc"
21155fi
21156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21158
21159fi
21160if test `eval echo '${'$as_ac_Header'}'` = yes; then
21161 cat >>confdefs.h <<_ACEOF
21162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21163_ACEOF
21164
21165fi
21166
21167done
21168
21169
21170for ac_header in stdlib.h
21171do
21172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21173if eval "test \"\${$as_ac_Header+set}\" = set"; then
21174 echo "$as_me:$LINENO: checking for $ac_header" >&5
21175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21176if eval "test \"\${$as_ac_Header+set}\" = set"; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178fi
21179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21181else
21182 # Is the header compilable?
21183echo "$as_me:$LINENO: checking $ac_header usability" >&5
21184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21185cat >conftest.$ac_ext <<_ACEOF
21186/* confdefs.h. */
21187_ACEOF
21188cat confdefs.h >>conftest.$ac_ext
21189cat >>conftest.$ac_ext <<_ACEOF
21190/* end confdefs.h. */
21191$ac_includes_default
21192#include <$ac_header>
21193_ACEOF
21194rm -f conftest.$ac_objext
21195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196 (eval $ac_compile) 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try='test -s conftest.$ac_objext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_header_compiler=yes
21216else
21217 echo "$as_me: failed program was:" >&5
21218sed 's/^/| /' conftest.$ac_ext >&5
21219
21220ac_header_compiler=no
21221fi
21222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21224echo "${ECHO_T}$ac_header_compiler" >&6
21225
21226# Is the header present?
21227echo "$as_me:$LINENO: checking $ac_header presence" >&5
21228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21229cat >conftest.$ac_ext <<_ACEOF
21230/* confdefs.h. */
21231_ACEOF
21232cat confdefs.h >>conftest.$ac_ext
21233cat >>conftest.$ac_ext <<_ACEOF
21234/* end confdefs.h. */
21235#include <$ac_header>
21236_ACEOF
21237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21239 ac_status=$?
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } >/dev/null; then
21245 if test -s conftest.err; then
21246 ac_cpp_err=$ac_c_preproc_warn_flag
21247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21248 else
21249 ac_cpp_err=
21250 fi
21251else
21252 ac_cpp_err=yes
21253fi
21254if test -z "$ac_cpp_err"; then
21255 ac_header_preproc=yes
21256else
21257 echo "$as_me: failed program was:" >&5
21258sed 's/^/| /' conftest.$ac_ext >&5
21259
21260 ac_header_preproc=no
21261fi
21262rm -f conftest.err conftest.$ac_ext
21263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21264echo "${ECHO_T}$ac_header_preproc" >&6
21265
21266# So? What about this header?
21267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21268 yes:no: )
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21273 ac_header_preproc=yes
21274 ;;
21275 no:yes:* )
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21288 (
21289 cat <<\_ASBOX
21290## ------------------------------------ ##
21291## Report this to opensource@google.com ##
21292## ------------------------------------ ##
21293_ASBOX
21294 ) |
21295 sed "s/^/$as_me: WARNING: /" >&2
21296 ;;
21297esac
21298echo "$as_me:$LINENO: checking for $ac_header" >&5
21299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21300if eval "test \"\${$as_ac_Header+set}\" = set"; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21302else
21303 eval "$as_ac_Header=\$ac_header_preproc"
21304fi
21305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21307
21308fi
21309if test `eval echo '${'$as_ac_Header'}'` = yes; then
21310 cat >>confdefs.h <<_ACEOF
21311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21312_ACEOF
21313
21314fi
21315
21316done
21317
21318
21319for ac_header in string.h
21320do
21321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21322if eval "test \"\${$as_ac_Header+set}\" = set"; then
21323 echo "$as_me:$LINENO: checking for $ac_header" >&5
21324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21325if eval "test \"\${$as_ac_Header+set}\" = set"; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327fi
21328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21330else
21331 # Is the header compilable?
21332echo "$as_me:$LINENO: checking $ac_header usability" >&5
21333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21334cat >conftest.$ac_ext <<_ACEOF
21335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
21340$ac_includes_default
21341#include <$ac_header>
21342_ACEOF
21343rm -f conftest.$ac_objext
21344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345 (eval $ac_compile) 2>conftest.er1
21346 ac_status=$?
21347 grep -v '^ *+' conftest.er1 >conftest.err
21348 rm -f conftest.er1
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try='test -s conftest.$ac_objext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_header_compiler=yes
21365else
21366 echo "$as_me: failed program was:" >&5
21367sed 's/^/| /' conftest.$ac_ext >&5
21368
21369ac_header_compiler=no
21370fi
21371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21373echo "${ECHO_T}$ac_header_compiler" >&6
21374
21375# Is the header present?
21376echo "$as_me:$LINENO: checking $ac_header presence" >&5
21377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21378cat >conftest.$ac_ext <<_ACEOF
21379/* confdefs.h. */
21380_ACEOF
21381cat confdefs.h >>conftest.$ac_ext
21382cat >>conftest.$ac_ext <<_ACEOF
21383/* end confdefs.h. */
21384#include <$ac_header>
21385_ACEOF
21386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21388 ac_status=$?
21389 grep -v '^ *+' conftest.er1 >conftest.err
21390 rm -f conftest.er1
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } >/dev/null; then
21394 if test -s conftest.err; then
21395 ac_cpp_err=$ac_c_preproc_warn_flag
21396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21397 else
21398 ac_cpp_err=
21399 fi
21400else
21401 ac_cpp_err=yes
21402fi
21403if test -z "$ac_cpp_err"; then
21404 ac_header_preproc=yes
21405else
21406 echo "$as_me: failed program was:" >&5
21407sed 's/^/| /' conftest.$ac_ext >&5
21408
21409 ac_header_preproc=no
21410fi
21411rm -f conftest.err conftest.$ac_ext
21412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21413echo "${ECHO_T}$ac_header_preproc" >&6
21414
21415# So? What about this header?
21416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21417 yes:no: )
21418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21422 ac_header_preproc=yes
21423 ;;
21424 no:yes:* )
21425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21437 (
21438 cat <<\_ASBOX
21439## ------------------------------------ ##
21440## Report this to opensource@google.com ##
21441## ------------------------------------ ##
21442_ASBOX
21443 ) |
21444 sed "s/^/$as_me: WARNING: /" >&2
21445 ;;
21446esac
21447echo "$as_me:$LINENO: checking for $ac_header" >&5
21448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21449if eval "test \"\${$as_ac_Header+set}\" = set"; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451else
21452 eval "$as_ac_Header=\$ac_header_preproc"
21453fi
21454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21456
21457fi
21458if test `eval echo '${'$as_ac_Header'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21461_ACEOF
21462
21463fi
21464
21465done
21466
21467
21468for ac_header in signal.h
21469do
21470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21471if eval "test \"\${$as_ac_Header+set}\" = set"; then
21472 echo "$as_me:$LINENO: checking for $ac_header" >&5
21473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21474if eval "test \"\${$as_ac_Header+set}\" = set"; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476fi
21477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21479else
21480 # Is the header compilable?
21481echo "$as_me:$LINENO: checking $ac_header usability" >&5
21482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21483cat >conftest.$ac_ext <<_ACEOF
21484/* confdefs.h. */
21485_ACEOF
21486cat confdefs.h >>conftest.$ac_ext
21487cat >>conftest.$ac_ext <<_ACEOF
21488/* end confdefs.h. */
21489$ac_includes_default
21490#include <$ac_header>
21491_ACEOF
21492rm -f conftest.$ac_objext
21493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21494 (eval $ac_compile) 2>conftest.er1
21495 ac_status=$?
21496 grep -v '^ *+' conftest.er1 >conftest.err
21497 rm -f conftest.er1
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } &&
21501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; } &&
21507 { ac_try='test -s conftest.$ac_objext'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 ac_header_compiler=yes
21514else
21515 echo "$as_me: failed program was:" >&5
21516sed 's/^/| /' conftest.$ac_ext >&5
21517
21518ac_header_compiler=no
21519fi
21520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21522echo "${ECHO_T}$ac_header_compiler" >&6
21523
21524# Is the header present?
21525echo "$as_me:$LINENO: checking $ac_header presence" >&5
21526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21527cat >conftest.$ac_ext <<_ACEOF
21528/* confdefs.h. */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h. */
21533#include <$ac_header>
21534_ACEOF
21535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21537 ac_status=$?
21538 grep -v '^ *+' conftest.er1 >conftest.err
21539 rm -f conftest.er1
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } >/dev/null; then
21543 if test -s conftest.err; then
21544 ac_cpp_err=$ac_c_preproc_warn_flag
21545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21546 else
21547 ac_cpp_err=
21548 fi
21549else
21550 ac_cpp_err=yes
21551fi
21552if test -z "$ac_cpp_err"; then
21553 ac_header_preproc=yes
21554else
21555 echo "$as_me: failed program was:" >&5
21556sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 ac_header_preproc=no
21559fi
21560rm -f conftest.err conftest.$ac_ext
21561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21562echo "${ECHO_T}$ac_header_preproc" >&6
21563
21564# So? What about this header?
21565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21566 yes:no: )
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21571 ac_header_preproc=yes
21572 ;;
21573 no:yes:* )
21574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21586 (
21587 cat <<\_ASBOX
21588## ------------------------------------ ##
21589## Report this to opensource@google.com ##
21590## ------------------------------------ ##
21591_ASBOX
21592 ) |
21593 sed "s/^/$as_me: WARNING: /" >&2
21594 ;;
21595esac
21596echo "$as_me:$LINENO: checking for $ac_header" >&5
21597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21598if eval "test \"\${$as_ac_Header+set}\" = set"; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21600else
21601 eval "$as_ac_Header=\$ac_header_preproc"
21602fi
21603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21605
21606fi
21607if test `eval echo '${'$as_ac_Header'}'` = yes; then
21608 cat >>confdefs.h <<_ACEOF
21609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21610_ACEOF
21611
21612fi
21613
21614done
21615
21616
21617# Find out what namespace 'normal' STL code lives in, and also what namespace
21618# the user wants our classes to be defined in
21619echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21620echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21621if test "${ac_cv_cxx_namespaces+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21623else
21624
21625
21626 ac_ext=cc
21627ac_cpp='$CXXCPP $CPPFLAGS'
21628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21631
21632 cat >conftest.$ac_ext <<_ACEOF
21633/* confdefs.h. */
21634_ACEOF
21635cat confdefs.h >>conftest.$ac_ext
21636cat >>conftest.$ac_ext <<_ACEOF
21637/* end confdefs.h. */
21638namespace Outer {
21639 namespace Inner { int i = 0; }}
21640int
21641main ()
21642{
21643using namespace Outer::Inner; return i;
21644 ;
21645 return 0;
21646}
21647_ACEOF
21648rm -f conftest.$ac_objext
21649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21650 (eval $ac_compile) 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } &&
21657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest.$ac_objext'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 ac_cv_cxx_namespaces=yes
21670else
21671 echo "$as_me: failed program was:" >&5
21672sed 's/^/| /' conftest.$ac_ext >&5
21673
21674ac_cv_cxx_namespaces=no
21675fi
21676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21677 ac_ext=c
21678ac_cpp='$CPP $CPPFLAGS'
21679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681ac_compiler_gnu=$ac_cv_c_compiler_gnu
21682
21683fi
21684echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21685echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21686 if test "$ac_cv_cxx_namespaces" = yes; then
21687
21688cat >>confdefs.h <<\_ACEOF
21689#define HAVE_NAMESPACES 1
21690_ACEOF
21691
21692 fi
21693echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
21694echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6
21695if test "${ac_cv_cxx_stl_namespace+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21697else
21698
21699
21700
21701 ac_ext=cc
21702ac_cpp='$CXXCPP $CPPFLAGS'
21703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21706
21707 cat >conftest.$ac_ext <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
21713#include <vector>
21714int
21715main ()
21716{
21717vector<int> t; return 0;
21718 ;
21719 return 0;
21720}
21721_ACEOF
21722rm -f conftest.$ac_objext
21723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21724 (eval $ac_compile) 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
21731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest.$ac_objext'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ac_cv_cxx_stl_namespace=none
21744else
21745 echo "$as_me: failed program was:" >&5
21746sed 's/^/| /' conftest.$ac_ext >&5
21747
21748fi
21749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21750 cat >conftest.$ac_ext <<_ACEOF
21751/* confdefs.h. */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h. */
21756#include <vector>
21757int
21758main ()
21759{
21760std::vector<int> t; return 0;
21761 ;
21762 return 0;
21763}
21764_ACEOF
21765rm -f conftest.$ac_objext
21766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21767 (eval $ac_compile) 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest.$ac_objext'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 ac_cv_cxx_stl_namespace=std
21787else
21788 echo "$as_me: failed program was:" >&5
21789sed 's/^/| /' conftest.$ac_ext >&5
21790
21791fi
21792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21793 ac_ext=c
21794ac_cpp='$CPP $CPPFLAGS'
21795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21797ac_compiler_gnu=$ac_cv_c_compiler_gnu
21798
21799fi
21800echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
21801echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6
21802 if test "$ac_cv_cxx_stl_namespace" = none; then
21803
21804cat >>confdefs.h <<\_ACEOF
21805#define STL_NAMESPACE
21806_ACEOF
21807
21808 fi
21809 if test "$ac_cv_cxx_stl_namespace" = std; then
21810
21811cat >>confdefs.h <<\_ACEOF
21812#define STL_NAMESPACE std
21813_ACEOF
21814
21815 fi
21816
21817google_namespace_default=google
21818 # Check whether --enable-namespace or --disable-namespace was given.
21819if test "${enable_namespace+set}" = set; then
21820 enableval="$enable_namespace"
21821 case "$enableval" in
21822 yes) google_namespace="$google_namespace_default" ;;
21823 no) google_namespace="" ;;
21824 *) google_namespace="$enableval" ;;
21825 esac
21826else
21827 google_namespace="$google_namespace_default"
21828fi;
21829 if test -n "$google_namespace"; then
21830 ac_google_namespace="::$google_namespace"
21831 ac_google_start_namespace="namespace $google_namespace {"
21832 ac_google_end_namespace="}"
21833 else
21834 ac_google_namespace=""
21835 ac_google_start_namespace=""
21836 ac_google_end_namespace=""
21837 fi
21838
21839cat >>confdefs.h <<_ACEOF
21840#define GOOGLE_NAMESPACE $ac_google_namespace
21841_ACEOF
21842
21843
21844cat >>confdefs.h <<_ACEOF
21845#define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
21846_ACEOF
21847
21848
21849cat >>confdefs.h <<_ACEOF
21850#define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
21851_ACEOF
21852
21853
21854
21855## Check out ../autoconf/ for other macros you can call to do useful stuff
21856
21857# Write generated configuration file
21858 ac_config_files="$ac_config_files Makefile"
21859
21860cat >confcache <<\_ACEOF
21861# This file is a shell script that caches the results of configure
21862# tests run on this system so they can be shared between configure
21863# scripts and configure runs, see configure's option --config-cache.
21864# It is not useful on other systems. If it contains results you don't
21865# want to keep, you may remove or edit it.
21866#
21867# config.status only pays attention to the cache file if you give it
21868# the --recheck option to rerun configure.
21869#
21870# `ac_cv_env_foo' variables (set or unset) will be overridden when
21871# loading this file, other *unset* `ac_cv_foo' will be assigned the
21872# following values.
21873
21874_ACEOF
21875
21876# The following way of writing the cache mishandles newlines in values,
21877# but we know of no workaround that is simple, portable, and efficient.
21878# So, don't put newlines in cache variables' values.
21879# Ultrix sh set writes to stderr and can't be redirected directly,
21880# and sets the high bit in the cache file unless we assign to the vars.
21881{
21882 (set) 2>&1 |
21883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21884 *ac_space=\ *)
21885 # `set' does not quote correctly, so add quotes (double-quote
21886 # substitution turns \\\\ into \\, and sed turns \\ into \).
21887 sed -n \
21888 "s/'/'\\\\''/g;
21889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21890 ;;
21891 *)
21892 # `set' quotes correctly as required by POSIX, so do not add quotes.
21893 sed -n \
21894 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21895 ;;
21896 esac;
21897} |
21898 sed '
21899 t clear
21900 : clear
21901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21902 t end
21903 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21904 : end' >>confcache
21905if diff $cache_file confcache >/dev/null 2>&1; then :; else
21906 if test -w $cache_file; then
21907 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21908 cat confcache >$cache_file
21909 else
21910 echo "not updating unwritable cache $cache_file"
21911 fi
21912fi
21913rm -f confcache
21914
21915test "x$prefix" = xNONE && prefix=$ac_default_prefix
21916# Let make expand exec_prefix.
21917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21918
21919# VPATH may cause trouble with some makes, so we remove $(srcdir),
21920# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21921# trailing colons and then remove the whole line if VPATH becomes empty
21922# (actually we leave an empty line to preserve line numbers).
21923if test "x$srcdir" = x.; then
21924 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21925s/:*\$(srcdir):*/:/;
21926s/:*\${srcdir}:*/:/;
21927s/:*@srcdir@:*/:/;
21928s/^\([^=]*=[ ]*\):*/\1/;
21929s/:*$//;
21930s/^[^=]*=[ ]*$//;
21931}'
21932fi
21933
21934DEFS=-DHAVE_CONFIG_H
21935
21936ac_libobjs=
21937ac_ltlibobjs=
21938for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21939 # 1. Remove the extension, and $U if already installed.
21940 ac_i=`echo "$ac_i" |
21941 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21942 # 2. Add them.
21943 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21944 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21945done
21946LIBOBJS=$ac_libobjs
21947
21948LTLIBOBJS=$ac_ltlibobjs
21949
21950
21951if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21952 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21953Usually this means the macro was only invoked conditionally." >&5
21954echo "$as_me: error: conditional \"AMDEP\" was never defined.
21955Usually this means the macro was only invoked conditionally." >&2;}
21956 { (exit 1); exit 1; }; }
21957fi
21958if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21959 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21960Usually this means the macro was only invoked conditionally." >&5
21961echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21962Usually this means the macro was only invoked conditionally." >&2;}
21963 { (exit 1); exit 1; }; }
21964fi
21965if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21966 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21967Usually this means the macro was only invoked conditionally." >&5
21968echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21969Usually this means the macro was only invoked conditionally." >&2;}
21970 { (exit 1); exit 1; }; }
21971fi
21972if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
21973 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
21974Usually this means the macro was only invoked conditionally." >&5
21975echo "$as_me: error: conditional \"GCC\" was never defined.
21976Usually this means the macro was only invoked conditionally." >&2;}
21977 { (exit 1); exit 1; }; }
21978fi
21979
21980: ${CONFIG_STATUS=./config.status}
21981ac_clean_files_save=$ac_clean_files
21982ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21983{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21984echo "$as_me: creating $CONFIG_STATUS" >&6;}
21985cat >$CONFIG_STATUS <<_ACEOF
21986#! $SHELL
21987# Generated by $as_me.
21988# Run this file to recreate the current configuration.
21989# Compiler output produced by configure, useful for debugging
21990# configure, is in config.log if it exists.
21991
21992debug=false
21993ac_cs_recheck=false
21994ac_cs_silent=false
21995SHELL=\${CONFIG_SHELL-$SHELL}
21996_ACEOF
21997
21998cat >>$CONFIG_STATUS <<\_ACEOF
21999## --------------------- ##
22000## M4sh Initialization. ##
22001## --------------------- ##
22002
22003# Be Bourne compatible
22004if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22005 emulate sh
22006 NULLCMD=:
22007 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22008 # is contrary to our usage. Disable this feature.
22009 alias -g '${1+"$@"}'='"$@"'
22010elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22011 set -o posix
22012fi
22013DUALCASE=1; export DUALCASE # for MKS sh
22014
22015# Support unset when possible.
22016if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22017 as_unset=unset
22018else
22019 as_unset=false
22020fi
22021
22022
22023# Work around bugs in pre-3.0 UWIN ksh.
22024$as_unset ENV MAIL MAILPATH
22025PS1='$ '
22026PS2='> '
22027PS4='+ '
22028
22029# NLS nuisances.
22030for as_var in \
22031 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22032 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22033 LC_TELEPHONE LC_TIME
22034do
22035 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22036 eval $as_var=C; export $as_var
22037 else
22038 $as_unset $as_var
22039 fi
22040done
22041
22042# Required to use basename.
22043if expr a : '\(a\)' >/dev/null 2>&1; then
22044 as_expr=expr
22045else
22046 as_expr=false
22047fi
22048
22049if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22050 as_basename=basename
22051else
22052 as_basename=false
22053fi
22054
22055
22056# Name of the executable.
22057as_me=`$as_basename "$0" ||
22058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22059 X"$0" : 'X\(//\)$' \| \
22060 X"$0" : 'X\(/\)$' \| \
22061 . : '\(.\)' 2>/dev/null ||
22062echo X/"$0" |
22063 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22064 /^X\/\(\/\/\)$/{ s//\1/; q; }
22065 /^X\/\(\/\).*/{ s//\1/; q; }
22066 s/.*/./; q'`
22067
22068
22069# PATH needs CR, and LINENO needs CR and PATH.
22070# Avoid depending upon Character Ranges.
22071as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22072as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22073as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22074as_cr_digits='0123456789'
22075as_cr_alnum=$as_cr_Letters$as_cr_digits
22076
22077# The user is always right.
22078if test "${PATH_SEPARATOR+set}" != set; then
22079 echo "#! /bin/sh" >conf$$.sh
22080 echo "exit 0" >>conf$$.sh
22081 chmod +x conf$$.sh
22082 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22083 PATH_SEPARATOR=';'
22084 else
22085 PATH_SEPARATOR=:
22086 fi
22087 rm -f conf$$.sh
22088fi
22089
22090
22091 as_lineno_1=$LINENO
22092 as_lineno_2=$LINENO
22093 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22094 test "x$as_lineno_1" != "x$as_lineno_2" &&
22095 test "x$as_lineno_3" = "x$as_lineno_2" || {
22096 # Find who we are. Look in the path if we contain no path at all
22097 # relative or not.
22098 case $0 in
22099 *[\\/]* ) as_myself=$0 ;;
22100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22101for as_dir in $PATH
22102do
22103 IFS=$as_save_IFS
22104 test -z "$as_dir" && as_dir=.
22105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22106done
22107
22108 ;;
22109 esac
22110 # We did not find ourselves, most probably we were run as `sh COMMAND'
22111 # in which case we are not to be found in the path.
22112 if test "x$as_myself" = x; then
22113 as_myself=$0
22114 fi
22115 if test ! -f "$as_myself"; then
22116 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22117echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22118 { (exit 1); exit 1; }; }
22119 fi
22120 case $CONFIG_SHELL in
22121 '')
22122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22123for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22124do
22125 IFS=$as_save_IFS
22126 test -z "$as_dir" && as_dir=.
22127 for as_base in sh bash ksh sh5; do
22128 case $as_dir in
22129 /*)
22130 if ("$as_dir/$as_base" -c '
22131 as_lineno_1=$LINENO
22132 as_lineno_2=$LINENO
22133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22134 test "x$as_lineno_1" != "x$as_lineno_2" &&
22135 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22136 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22137 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22138 CONFIG_SHELL=$as_dir/$as_base
22139 export CONFIG_SHELL
22140 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22141 fi;;
22142 esac
22143 done
22144done
22145;;
22146 esac
22147
22148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22149 # uniformly replaced by the line number. The first 'sed' inserts a
22150 # line-number line before each line; the second 'sed' does the real
22151 # work. The second script uses 'N' to pair each line-number line
22152 # with the numbered line, and appends trailing '-' during
22153 # substitution so that $LINENO is not a special case at line end.
22154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22156 sed '=' <$as_myself |
22157 sed '
22158 N
22159 s,$,-,
22160 : loop
22161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22162 t loop
22163 s,-$,,
22164 s,^['$as_cr_digits']*\n,,
22165 ' >$as_me.lineno &&
22166 chmod +x $as_me.lineno ||
22167 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22168echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22169 { (exit 1); exit 1; }; }
22170
22171 # Don't try to exec as it changes $[0], causing all sort of problems
22172 # (the dirname of $[0] is not the place where we might find the
22173 # original and so on. Autoconf is especially sensible to this).
22174 . ./$as_me.lineno
22175 # Exit status is that of the last command.
22176 exit
22177}
22178
22179
22180case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22181 *c*,-n*) ECHO_N= ECHO_C='
22182' ECHO_T=' ' ;;
22183 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22184 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22185esac
22186
22187if expr a : '\(a\)' >/dev/null 2>&1; then
22188 as_expr=expr
22189else
22190 as_expr=false
22191fi
22192
22193rm -f conf$$ conf$$.exe conf$$.file
22194echo >conf$$.file
22195if ln -s conf$$.file conf$$ 2>/dev/null; then
22196 # We could just check for DJGPP; but this test a) works b) is more generic
22197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22198 if test -f conf$$.exe; then
22199 # Don't use ln at all; we don't have any links
22200 as_ln_s='cp -p'
22201 else
22202 as_ln_s='ln -s'
22203 fi
22204elif ln conf$$.file conf$$ 2>/dev/null; then
22205 as_ln_s=ln
22206else
22207 as_ln_s='cp -p'
22208fi
22209rm -f conf$$ conf$$.exe conf$$.file
22210
22211if mkdir -p . 2>/dev/null; then
22212 as_mkdir_p=:
22213else
22214 test -d ./-p && rmdir ./-p
22215 as_mkdir_p=false
22216fi
22217
22218as_executable_p="test -f"
22219
22220# Sed expression to map a string onto a valid CPP name.
22221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22222
22223# Sed expression to map a string onto a valid variable name.
22224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22225
22226
22227# IFS
22228# We need space, tab and new line, in precisely that order.
22229as_nl='
22230'
22231IFS=" $as_nl"
22232
22233# CDPATH.
22234$as_unset CDPATH
22235
22236exec 6>&1
22237
22238# Open the log real soon, to keep \$[0] and so on meaningful, and to
22239# report actual input values of CONFIG_FILES etc. instead of their
22240# values after options handling. Logging --version etc. is OK.
22241exec 5>>config.log
22242{
22243 echo
22244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22245## Running $as_me. ##
22246_ASBOX
22247} >&5
22248cat >&5 <<_CSEOF
22249
22250This file was extended by cmockery $as_me 0.1.2, which was
22251generated by GNU Autoconf 2.59. Invocation command line was
22252
22253 CONFIG_FILES = $CONFIG_FILES
22254 CONFIG_HEADERS = $CONFIG_HEADERS
22255 CONFIG_LINKS = $CONFIG_LINKS
22256 CONFIG_COMMANDS = $CONFIG_COMMANDS
22257 $ $0 $@
22258
22259_CSEOF
22260echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22261echo >&5
22262_ACEOF
22263
22264# Files that config.status was made for.
22265if test -n "$ac_config_files"; then
22266 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22267fi
22268
22269if test -n "$ac_config_headers"; then
22270 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22271fi
22272
22273if test -n "$ac_config_links"; then
22274 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22275fi
22276
22277if test -n "$ac_config_commands"; then
22278 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22279fi
22280
22281cat >>$CONFIG_STATUS <<\_ACEOF
22282
22283ac_cs_usage="\
22284\`$as_me' instantiates files from templates according to the
22285current configuration.
22286
22287Usage: $0 [OPTIONS] [FILE]...
22288
22289 -h, --help print this help, then exit
22290 -V, --version print version number, then exit
22291 -q, --quiet do not print progress messages
22292 -d, --debug don't remove temporary files
22293 --recheck update $as_me by reconfiguring in the same conditions
22294 --file=FILE[:TEMPLATE]
22295 instantiate the configuration file FILE
22296 --header=FILE[:TEMPLATE]
22297 instantiate the configuration header FILE
22298
22299Configuration files:
22300$config_files
22301
22302Configuration headers:
22303$config_headers
22304
22305Configuration commands:
22306$config_commands
22307
22308Report bugs to <bug-autoconf@gnu.org>."
22309_ACEOF
22310
22311cat >>$CONFIG_STATUS <<_ACEOF
22312ac_cs_version="\\
22313cmockery config.status 0.1.2
22314configured by $0, generated by GNU Autoconf 2.59,
22315 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22316
22317Copyright (C) 2003 Free Software Foundation, Inc.
22318This config.status script is free software; the Free Software Foundation
22319gives unlimited permission to copy, distribute and modify it."
22320srcdir=$srcdir
22321INSTALL="$INSTALL"
22322_ACEOF
22323
22324cat >>$CONFIG_STATUS <<\_ACEOF
22325# If no file are specified by the user, then we need to provide default
22326# value. By we need to know if files were specified by the user.
22327ac_need_defaults=:
22328while test $# != 0
22329do
22330 case $1 in
22331 --*=*)
22332 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22333 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22334 ac_shift=:
22335 ;;
22336 -*)
22337 ac_option=$1
22338 ac_optarg=$2
22339 ac_shift=shift
22340 ;;
22341 *) # This is not an option, so the user has probably given explicit
22342 # arguments.
22343 ac_option=$1
22344 ac_need_defaults=false;;
22345 esac
22346
22347 case $ac_option in
22348 # Handling of the options.
22349_ACEOF
22350cat >>$CONFIG_STATUS <<\_ACEOF
22351 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22352 ac_cs_recheck=: ;;
22353 --version | --vers* | -V )
22354 echo "$ac_cs_version"; exit 0 ;;
22355 --he | --h)
22356 # Conflict between --help and --header
22357 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22358Try \`$0 --help' for more information." >&5
22359echo "$as_me: error: ambiguous option: $1
22360Try \`$0 --help' for more information." >&2;}
22361 { (exit 1); exit 1; }; };;
22362 --help | --hel | -h )
22363 echo "$ac_cs_usage"; exit 0 ;;
22364 --debug | --d* | -d )
22365 debug=: ;;
22366 --file | --fil | --fi | --f )
22367 $ac_shift
22368 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22369 ac_need_defaults=false;;
22370 --header | --heade | --head | --hea )
22371 $ac_shift
22372 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22373 ac_need_defaults=false;;
22374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22376 ac_cs_silent=: ;;
22377
22378 # This is an error.
22379 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22380Try \`$0 --help' for more information." >&5
22381echo "$as_me: error: unrecognized option: $1
22382Try \`$0 --help' for more information." >&2;}
22383 { (exit 1); exit 1; }; } ;;
22384
22385 *) ac_config_targets="$ac_config_targets $1" ;;
22386
22387 esac
22388 shift
22389done
22390
22391ac_configure_extra_args=
22392
22393if $ac_cs_silent; then
22394 exec 6>/dev/null
22395 ac_configure_extra_args="$ac_configure_extra_args --silent"
22396fi
22397
22398_ACEOF
22399cat >>$CONFIG_STATUS <<_ACEOF
22400if \$ac_cs_recheck; then
22401 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22402 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22403fi
22404
22405_ACEOF
22406
22407cat >>$CONFIG_STATUS <<_ACEOF
22408#
22409# INIT-COMMANDS section.
22410#
22411
22412AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22413
22414_ACEOF
22415
22416
22417
22418cat >>$CONFIG_STATUS <<\_ACEOF
22419for ac_config_target in $ac_config_targets
22420do
22421 case "$ac_config_target" in
22422 # Handling of arguments.
22423 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22424 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22425 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22426 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22427echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22428 { (exit 1); exit 1; }; };;
22429 esac
22430done
22431
22432# If the user did not use the arguments to specify the items to instantiate,
22433# then the envvar interface is used. Set only those that are not.
22434# We use the long form for the default assignment because of an extremely
22435# bizarre bug on SunOS 4.1.3.
22436if $ac_need_defaults; then
22437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22438 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22440fi
22441
22442# Have a temporary directory for convenience. Make it in the build tree
22443# simply because there is no reason to put it here, and in addition,
22444# creating and moving files from /tmp can sometimes cause problems.
22445# Create a temporary directory, and hook for its removal unless debugging.
22446$debug ||
22447{
22448 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22449 trap '{ (exit 1); exit 1; }' 1 2 13 15
22450}
22451
22452# Create a (secure) tmp directory for tmp files.
22453
22454{
22455 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22456 test -n "$tmp" && test -d "$tmp"
22457} ||
22458{
22459 tmp=./confstat$$-$RANDOM
22460 (umask 077 && mkdir $tmp)
22461} ||
22462{
22463 echo "$me: cannot create a temporary directory in ." >&2
22464 { (exit 1); exit 1; }
22465}
22466
22467_ACEOF
22468
22469cat >>$CONFIG_STATUS <<_ACEOF
22470
22471#
22472# CONFIG_FILES section.
22473#
22474
22475# No need to generate the scripts if there are no CONFIG_FILES.
22476# This happens for instance when ./config.status config.h
22477if test -n "\$CONFIG_FILES"; then
22478 # Protect against being on the right side of a sed subst in config.status.
22479 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22480 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22481s,@SHELL@,$SHELL,;t t
22482s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22483s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22484s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22485s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22486s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22487s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22488s,@exec_prefix@,$exec_prefix,;t t
22489s,@prefix@,$prefix,;t t
22490s,@program_transform_name@,$program_transform_name,;t t
22491s,@bindir@,$bindir,;t t
22492s,@sbindir@,$sbindir,;t t
22493s,@libexecdir@,$libexecdir,;t t
22494s,@datadir@,$datadir,;t t
22495s,@sysconfdir@,$sysconfdir,;t t
22496s,@sharedstatedir@,$sharedstatedir,;t t
22497s,@localstatedir@,$localstatedir,;t t
22498s,@libdir@,$libdir,;t t
22499s,@includedir@,$includedir,;t t
22500s,@oldincludedir@,$oldincludedir,;t t
22501s,@infodir@,$infodir,;t t
22502s,@mandir@,$mandir,;t t
22503s,@build_alias@,$build_alias,;t t
22504s,@host_alias@,$host_alias,;t t
22505s,@target_alias@,$target_alias,;t t
22506s,@DEFS@,$DEFS,;t t
22507s,@ECHO_C@,$ECHO_C,;t t
22508s,@ECHO_N@,$ECHO_N,;t t
22509s,@ECHO_T@,$ECHO_T,;t t
22510s,@LIBS@,$LIBS,;t t
22511s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22512s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22513s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22514s,@CYGPATH_W@,$CYGPATH_W,;t t
22515s,@PACKAGE@,$PACKAGE,;t t
22516s,@VERSION@,$VERSION,;t t
22517s,@ACLOCAL@,$ACLOCAL,;t t
22518s,@AUTOCONF@,$AUTOCONF,;t t
22519s,@AUTOMAKE@,$AUTOMAKE,;t t
22520s,@AUTOHEADER@,$AUTOHEADER,;t t
22521s,@MAKEINFO@,$MAKEINFO,;t t
22522s,@install_sh@,$install_sh,;t t
22523s,@STRIP@,$STRIP,;t t
22524s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22525s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22526s,@mkdir_p@,$mkdir_p,;t t
22527s,@AWK@,$AWK,;t t
22528s,@SET_MAKE@,$SET_MAKE,;t t
22529s,@am__leading_dot@,$am__leading_dot,;t t
22530s,@AMTAR@,$AMTAR,;t t
22531s,@am__tar@,$am__tar,;t t
22532s,@am__untar@,$am__untar,;t t
22533s,@CC@,$CC,;t t
22534s,@CFLAGS@,$CFLAGS,;t t
22535s,@LDFLAGS@,$LDFLAGS,;t t
22536s,@CPPFLAGS@,$CPPFLAGS,;t t
22537s,@ac_ct_CC@,$ac_ct_CC,;t t
22538s,@EXEEXT@,$EXEEXT,;t t
22539s,@OBJEXT@,$OBJEXT,;t t
22540s,@DEPDIR@,$DEPDIR,;t t
22541s,@am__include@,$am__include,;t t
22542s,@am__quote@,$am__quote,;t t
22543s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22544s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22545s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22546s,@CCDEPMODE@,$CCDEPMODE,;t t
22547s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22548s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22549s,@CPP@,$CPP,;t t
22550s,@CXX@,$CXX,;t t
22551s,@CXXFLAGS@,$CXXFLAGS,;t t
22552s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22553s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22554s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22555s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22556s,@GCC_TRUE@,$GCC_TRUE,;t t
22557s,@GCC_FALSE@,$GCC_FALSE,;t t
22558s,@build@,$build,;t t
22559s,@build_cpu@,$build_cpu,;t t
22560s,@build_vendor@,$build_vendor,;t t
22561s,@build_os@,$build_os,;t t
22562s,@host@,$host,;t t
22563s,@host_cpu@,$host_cpu,;t t
22564s,@host_vendor@,$host_vendor,;t t
22565s,@host_os@,$host_os,;t t
22566s,@EGREP@,$EGREP,;t t
22567s,@LN_S@,$LN_S,;t t
22568s,@ECHO@,$ECHO,;t t
22569s,@AR@,$AR,;t t
22570s,@ac_ct_AR@,$ac_ct_AR,;t t
22571s,@RANLIB@,$RANLIB,;t t
22572s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22573s,@CXXCPP@,$CXXCPP,;t t
22574s,@F77@,$F77,;t t
22575s,@FFLAGS@,$FFLAGS,;t t
22576s,@ac_ct_F77@,$ac_ct_F77,;t t
22577s,@LIBTOOL@,$LIBTOOL,;t t
22578s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22579s,@LIBOBJS@,$LIBOBJS,;t t
22580s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22581CEOF
22582
22583_ACEOF
22584
22585 cat >>$CONFIG_STATUS <<\_ACEOF
22586 # Split the substitutions into bite-sized pieces for seds with
22587 # small command number limits, like on Digital OSF/1 and HP-UX.
22588 ac_max_sed_lines=48
22589 ac_sed_frag=1 # Number of current file.
22590 ac_beg=1 # First line for current file.
22591 ac_end=$ac_max_sed_lines # Line after last line for current file.
22592 ac_more_lines=:
22593 ac_sed_cmds=
22594 while $ac_more_lines; do
22595 if test $ac_beg -gt 1; then
22596 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22597 else
22598 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22599 fi
22600 if test ! -s $tmp/subs.frag; then
22601 ac_more_lines=false
22602 else
22603 # The purpose of the label and of the branching condition is to
22604 # speed up the sed processing (if there are no `@' at all, there
22605 # is no need to browse any of the substitutions).
22606 # These are the two extra sed commands mentioned above.
22607 (echo ':t
22608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22609 if test -z "$ac_sed_cmds"; then
22610 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22611 else
22612 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22613 fi
22614 ac_sed_frag=`expr $ac_sed_frag + 1`
22615 ac_beg=$ac_end
22616 ac_end=`expr $ac_end + $ac_max_sed_lines`
22617 fi
22618 done
22619 if test -z "$ac_sed_cmds"; then
22620 ac_sed_cmds=cat
22621 fi
22622fi # test -n "$CONFIG_FILES"
22623
22624_ACEOF
22625cat >>$CONFIG_STATUS <<\_ACEOF
22626for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22628 case $ac_file in
22629 - | *:- | *:-:* ) # input from stdin
22630 cat >$tmp/stdin
22631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22635 * ) ac_file_in=$ac_file.in ;;
22636 esac
22637
22638 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22639 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22640$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22641 X"$ac_file" : 'X\(//\)[^/]' \| \
22642 X"$ac_file" : 'X\(//\)$' \| \
22643 X"$ac_file" : 'X\(/\)' \| \
22644 . : '\(.\)' 2>/dev/null ||
22645echo X"$ac_file" |
22646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22648 /^X\(\/\/\)$/{ s//\1/; q; }
22649 /^X\(\/\).*/{ s//\1/; q; }
22650 s/.*/./; q'`
22651 { if $as_mkdir_p; then
22652 mkdir -p "$ac_dir"
22653 else
22654 as_dir="$ac_dir"
22655 as_dirs=
22656 while test ! -d "$as_dir"; do
22657 as_dirs="$as_dir $as_dirs"
22658 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22660 X"$as_dir" : 'X\(//\)[^/]' \| \
22661 X"$as_dir" : 'X\(//\)$' \| \
22662 X"$as_dir" : 'X\(/\)' \| \
22663 . : '\(.\)' 2>/dev/null ||
22664echo X"$as_dir" |
22665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22667 /^X\(\/\/\)$/{ s//\1/; q; }
22668 /^X\(\/\).*/{ s//\1/; q; }
22669 s/.*/./; q'`
22670 done
22671 test ! -n "$as_dirs" || mkdir $as_dirs
22672 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22673echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22674 { (exit 1); exit 1; }; }; }
22675
22676 ac_builddir=.
22677
22678if test "$ac_dir" != .; then
22679 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22680 # A "../" for each directory in $ac_dir_suffix.
22681 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22682else
22683 ac_dir_suffix= ac_top_builddir=
22684fi
22685
22686case $srcdir in
22687 .) # No --srcdir option. We are building in place.
22688 ac_srcdir=.
22689 if test -z "$ac_top_builddir"; then
22690 ac_top_srcdir=.
22691 else
22692 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22693 fi ;;
22694 [\\/]* | ?:[\\/]* ) # Absolute path.
22695 ac_srcdir=$srcdir$ac_dir_suffix;
22696 ac_top_srcdir=$srcdir ;;
22697 *) # Relative path.
22698 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22699 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22700esac
22701
22702# Do not use `cd foo && pwd` to compute absolute paths, because
22703# the directories may not exist.
22704case `pwd` in
22705.) ac_abs_builddir="$ac_dir";;
22706*)
22707 case "$ac_dir" in
22708 .) ac_abs_builddir=`pwd`;;
22709 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22710 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22711 esac;;
22712esac
22713case $ac_abs_builddir in
22714.) ac_abs_top_builddir=${ac_top_builddir}.;;
22715*)
22716 case ${ac_top_builddir}. in
22717 .) ac_abs_top_builddir=$ac_abs_builddir;;
22718 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22719 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22720 esac;;
22721esac
22722case $ac_abs_builddir in
22723.) ac_abs_srcdir=$ac_srcdir;;
22724*)
22725 case $ac_srcdir in
22726 .) ac_abs_srcdir=$ac_abs_builddir;;
22727 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22728 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22729 esac;;
22730esac
22731case $ac_abs_builddir in
22732.) ac_abs_top_srcdir=$ac_top_srcdir;;
22733*)
22734 case $ac_top_srcdir in
22735 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22736 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22737 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22738 esac;;
22739esac
22740
22741
22742 case $INSTALL in
22743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22744 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22745 esac
22746
22747 # Let's still pretend it is `configure' which instantiates (i.e., don't
22748 # use $as_me), people would be surprised to read:
22749 # /* config.h. Generated by config.status. */
22750 if test x"$ac_file" = x-; then
22751 configure_input=
22752 else
22753 configure_input="$ac_file. "
22754 fi
22755 configure_input=$configure_input"Generated from `echo $ac_file_in |
22756 sed 's,.*/,,'` by configure."
22757
22758 # First look for the input files in the build tree, otherwise in the
22759 # src tree.
22760 ac_file_inputs=`IFS=:
22761 for f in $ac_file_in; do
22762 case $f in
22763 -) echo $tmp/stdin ;;
22764 [\\/$]*)
22765 # Absolute (can't be DOS-style, as IFS=:)
22766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22767echo "$as_me: error: cannot find input file: $f" >&2;}
22768 { (exit 1); exit 1; }; }
22769 echo "$f";;
22770 *) # Relative
22771 if test -f "$f"; then
22772 # Build tree
22773 echo "$f"
22774 elif test -f "$srcdir/$f"; then
22775 # Source tree
22776 echo "$srcdir/$f"
22777 else
22778 # /dev/null tree
22779 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22780echo "$as_me: error: cannot find input file: $f" >&2;}
22781 { (exit 1); exit 1; }; }
22782 fi;;
22783 esac
22784 done` || { (exit 1); exit 1; }
22785
22786 if test x"$ac_file" != x-; then
22787 { echo "$as_me:$LINENO: creating $ac_file" >&5
22788echo "$as_me: creating $ac_file" >&6;}
22789 rm -f "$ac_file"
22790 fi
22791_ACEOF
22792cat >>$CONFIG_STATUS <<_ACEOF
22793 sed "$ac_vpsub
22794$extrasub
22795_ACEOF
22796cat >>$CONFIG_STATUS <<\_ACEOF
22797:t
22798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22799s,@configure_input@,$configure_input,;t t
22800s,@srcdir@,$ac_srcdir,;t t
22801s,@abs_srcdir@,$ac_abs_srcdir,;t t
22802s,@top_srcdir@,$ac_top_srcdir,;t t
22803s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22804s,@builddir@,$ac_builddir,;t t
22805s,@abs_builddir@,$ac_abs_builddir,;t t
22806s,@top_builddir@,$ac_top_builddir,;t t
22807s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22808s,@INSTALL@,$ac_INSTALL,;t t
22809" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22810 rm -f $tmp/stdin
22811 if test x"$ac_file" != x-; then
22812 mv $tmp/out $ac_file
22813 else
22814 cat $tmp/out
22815 rm -f $tmp/out
22816 fi
22817
22818done
22819_ACEOF
22820cat >>$CONFIG_STATUS <<\_ACEOF
22821
22822#
22823# CONFIG_HEADER section.
22824#
22825
22826# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22827# NAME is the cpp macro being defined and VALUE is the value it is being given.
22828#
22829# ac_d sets the value in "#define NAME VALUE" lines.
22830ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22831ac_dB='[ ].*$,\1#\2'
22832ac_dC=' '
22833ac_dD=',;t'
22834# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22835ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22836ac_uB='$,\1#\2define\3'
22837ac_uC=' '
22838ac_uD=',;t'
22839
22840for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22842 case $ac_file in
22843 - | *:- | *:-:* ) # input from stdin
22844 cat >$tmp/stdin
22845 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22847 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22849 * ) ac_file_in=$ac_file.in ;;
22850 esac
22851
22852 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22853echo "$as_me: creating $ac_file" >&6;}
22854
22855 # First look for the input files in the build tree, otherwise in the
22856 # src tree.
22857 ac_file_inputs=`IFS=:
22858 for f in $ac_file_in; do
22859 case $f in
22860 -) echo $tmp/stdin ;;
22861 [\\/$]*)
22862 # Absolute (can't be DOS-style, as IFS=:)
22863 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22864echo "$as_me: error: cannot find input file: $f" >&2;}
22865 { (exit 1); exit 1; }; }
22866 # Do quote $f, to prevent DOS paths from being IFS'd.
22867 echo "$f";;
22868 *) # Relative
22869 if test -f "$f"; then
22870 # Build tree
22871 echo "$f"
22872 elif test -f "$srcdir/$f"; then
22873 # Source tree
22874 echo "$srcdir/$f"
22875 else
22876 # /dev/null tree
22877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22878echo "$as_me: error: cannot find input file: $f" >&2;}
22879 { (exit 1); exit 1; }; }
22880 fi;;
22881 esac
22882 done` || { (exit 1); exit 1; }
22883 # Remove the trailing spaces.
22884 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22885
22886_ACEOF
22887
22888# Transform confdefs.h into two sed scripts, `conftest.defines' and
22889# `conftest.undefs', that substitutes the proper values into
22890# config.h.in to produce config.h. The first handles `#define'
22891# templates, and the second `#undef' templates.
22892# And first: Protect against being on the right side of a sed subst in
22893# config.status. Protect against being in an unquoted here document
22894# in config.status.
22895rm -f conftest.defines conftest.undefs
22896# Using a here document instead of a string reduces the quoting nightmare.
22897# Putting comments in sed scripts is not portable.
22898#
22899# `end' is used to avoid that the second main sed command (meant for
22900# 0-ary CPP macros) applies to n-ary macro definitions.
22901# See the Autoconf documentation for `clear'.
22902cat >confdef2sed.sed <<\_ACEOF
22903s/[\\&,]/\\&/g
22904s,[\\$`],\\&,g
22905t clear
22906: clear
22907s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22908t end
22909s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22910: end
22911_ACEOF
22912# If some macros were called several times there might be several times
22913# the same #defines, which is useless. Nevertheless, we may not want to
22914# sort them, since we want the *last* AC-DEFINE to be honored.
22915uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22916sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22917rm -f confdef2sed.sed
22918
22919# This sed command replaces #undef with comments. This is necessary, for
22920# example, in the case of _POSIX_SOURCE, which is predefined and required
22921# on some systems where configure will not decide to define it.
22922cat >>conftest.undefs <<\_ACEOF
22923s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22924_ACEOF
22925
22926# Break up conftest.defines because some shells have a limit on the size
22927# of here documents, and old seds have small limits too (100 cmds).
22928echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22929echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22930echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22931echo ' :' >>$CONFIG_STATUS
22932rm -f conftest.tail
22933while grep . conftest.defines >/dev/null
22934do
22935 # Write a limited-size here document to $tmp/defines.sed.
22936 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22937 # Speed up: don't consider the non `#define' lines.
22938 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22939 # Work around the forget-to-reset-the-flag bug.
22940 echo 't clr' >>$CONFIG_STATUS
22941 echo ': clr' >>$CONFIG_STATUS
22942 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22943 echo 'CEOF
22944 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22945 rm -f $tmp/in
22946 mv $tmp/out $tmp/in
22947' >>$CONFIG_STATUS
22948 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22949 rm -f conftest.defines
22950 mv conftest.tail conftest.defines
22951done
22952rm -f conftest.defines
22953echo ' fi # grep' >>$CONFIG_STATUS
22954echo >>$CONFIG_STATUS
22955
22956# Break up conftest.undefs because some shells have a limit on the size
22957# of here documents, and old seds have small limits too (100 cmds).
22958echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22959rm -f conftest.tail
22960while grep . conftest.undefs >/dev/null
22961do
22962 # Write a limited-size here document to $tmp/undefs.sed.
22963 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22964 # Speed up: don't consider the non `#undef'
22965 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22966 # Work around the forget-to-reset-the-flag bug.
22967 echo 't clr' >>$CONFIG_STATUS
22968 echo ': clr' >>$CONFIG_STATUS
22969 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22970 echo 'CEOF
22971 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22972 rm -f $tmp/in
22973 mv $tmp/out $tmp/in
22974' >>$CONFIG_STATUS
22975 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22976 rm -f conftest.undefs
22977 mv conftest.tail conftest.undefs
22978done
22979rm -f conftest.undefs
22980
22981cat >>$CONFIG_STATUS <<\_ACEOF
22982 # Let's still pretend it is `configure' which instantiates (i.e., don't
22983 # use $as_me), people would be surprised to read:
22984 # /* config.h. Generated by config.status. */
22985 if test x"$ac_file" = x-; then
22986 echo "/* Generated by configure. */" >$tmp/config.h
22987 else
22988 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22989 fi
22990 cat $tmp/in >>$tmp/config.h
22991 rm -f $tmp/in
22992 if test x"$ac_file" != x-; then
22993 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22994 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22995echo "$as_me: $ac_file is unchanged" >&6;}
22996 else
22997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22999 X"$ac_file" : 'X\(//\)[^/]' \| \
23000 X"$ac_file" : 'X\(//\)$' \| \
23001 X"$ac_file" : 'X\(/\)' \| \
23002 . : '\(.\)' 2>/dev/null ||
23003echo X"$ac_file" |
23004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23006 /^X\(\/\/\)$/{ s//\1/; q; }
23007 /^X\(\/\).*/{ s//\1/; q; }
23008 s/.*/./; q'`
23009 { if $as_mkdir_p; then
23010 mkdir -p "$ac_dir"
23011 else
23012 as_dir="$ac_dir"
23013 as_dirs=
23014 while test ! -d "$as_dir"; do
23015 as_dirs="$as_dir $as_dirs"
23016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$as_dir" : 'X\(//\)[^/]' \| \
23019 X"$as_dir" : 'X\(//\)$' \| \
23020 X"$as_dir" : 'X\(/\)' \| \
23021 . : '\(.\)' 2>/dev/null ||
23022echo X"$as_dir" |
23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025 /^X\(\/\/\)$/{ s//\1/; q; }
23026 /^X\(\/\).*/{ s//\1/; q; }
23027 s/.*/./; q'`
23028 done
23029 test ! -n "$as_dirs" || mkdir $as_dirs
23030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23031echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23032 { (exit 1); exit 1; }; }; }
23033
23034 rm -f $ac_file
23035 mv $tmp/config.h $ac_file
23036 fi
23037 else
23038 cat $tmp/config.h
23039 rm -f $tmp/config.h
23040 fi
23041# Compute $ac_file's index in $config_headers.
23042_am_stamp_count=1
23043for _am_header in $config_headers :; do
23044 case $_am_header in
23045 $ac_file | $ac_file:* )
23046 break ;;
23047 * )
23048 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23049 esac
23050done
23051echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23052$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23053 X$ac_file : 'X\(//\)[^/]' \| \
23054 X$ac_file : 'X\(//\)$' \| \
23055 X$ac_file : 'X\(/\)' \| \
23056 . : '\(.\)' 2>/dev/null ||
23057echo X$ac_file |
23058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23060 /^X\(\/\/\)$/{ s//\1/; q; }
23061 /^X\(\/\).*/{ s//\1/; q; }
23062 s/.*/./; q'`/stamp-h$_am_stamp_count
23063done
23064_ACEOF
23065cat >>$CONFIG_STATUS <<\_ACEOF
23066
23067#
23068# CONFIG_COMMANDS section.
23069#
23070for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23071 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23072 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23073 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23074$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23075 X"$ac_dest" : 'X\(//\)[^/]' \| \
23076 X"$ac_dest" : 'X\(//\)$' \| \
23077 X"$ac_dest" : 'X\(/\)' \| \
23078 . : '\(.\)' 2>/dev/null ||
23079echo X"$ac_dest" |
23080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23082 /^X\(\/\/\)$/{ s//\1/; q; }
23083 /^X\(\/\).*/{ s//\1/; q; }
23084 s/.*/./; q'`
23085 { if $as_mkdir_p; then
23086 mkdir -p "$ac_dir"
23087 else
23088 as_dir="$ac_dir"
23089 as_dirs=
23090 while test ! -d "$as_dir"; do
23091 as_dirs="$as_dir $as_dirs"
23092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23094 X"$as_dir" : 'X\(//\)[^/]' \| \
23095 X"$as_dir" : 'X\(//\)$' \| \
23096 X"$as_dir" : 'X\(/\)' \| \
23097 . : '\(.\)' 2>/dev/null ||
23098echo X"$as_dir" |
23099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23101 /^X\(\/\/\)$/{ s//\1/; q; }
23102 /^X\(\/\).*/{ s//\1/; q; }
23103 s/.*/./; q'`
23104 done
23105 test ! -n "$as_dirs" || mkdir $as_dirs
23106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23107echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23108 { (exit 1); exit 1; }; }; }
23109
23110 ac_builddir=.
23111
23112if test "$ac_dir" != .; then
23113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23114 # A "../" for each directory in $ac_dir_suffix.
23115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23116else
23117 ac_dir_suffix= ac_top_builddir=
23118fi
23119
23120case $srcdir in
23121 .) # No --srcdir option. We are building in place.
23122 ac_srcdir=.
23123 if test -z "$ac_top_builddir"; then
23124 ac_top_srcdir=.
23125 else
23126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23127 fi ;;
23128 [\\/]* | ?:[\\/]* ) # Absolute path.
23129 ac_srcdir=$srcdir$ac_dir_suffix;
23130 ac_top_srcdir=$srcdir ;;
23131 *) # Relative path.
23132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23134esac
23135
23136# Do not use `cd foo && pwd` to compute absolute paths, because
23137# the directories may not exist.
23138case `pwd` in
23139.) ac_abs_builddir="$ac_dir";;
23140*)
23141 case "$ac_dir" in
23142 .) ac_abs_builddir=`pwd`;;
23143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23145 esac;;
23146esac
23147case $ac_abs_builddir in
23148.) ac_abs_top_builddir=${ac_top_builddir}.;;
23149*)
23150 case ${ac_top_builddir}. in
23151 .) ac_abs_top_builddir=$ac_abs_builddir;;
23152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23154 esac;;
23155esac
23156case $ac_abs_builddir in
23157.) ac_abs_srcdir=$ac_srcdir;;
23158*)
23159 case $ac_srcdir in
23160 .) ac_abs_srcdir=$ac_abs_builddir;;
23161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23163 esac;;
23164esac
23165case $ac_abs_builddir in
23166.) ac_abs_top_srcdir=$ac_top_srcdir;;
23167*)
23168 case $ac_top_srcdir in
23169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23172 esac;;
23173esac
23174
23175
23176 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23177echo "$as_me: executing $ac_dest commands" >&6;}
23178 case $ac_dest in
23179 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23180 # Strip MF so we end up with the name of the file.
23181 mf=`echo "$mf" | sed -e 's/:.*$//'`
23182 # Check whether this is an Automake generated Makefile or not.
23183 # We used to match only the files named `Makefile.in', but
23184 # some people rename them; so instead we look at the file content.
23185 # Grep'ing the first line is not enough: some people post-process
23186 # each Makefile.in and add a new line on top of each file to say so.
23187 # So let's grep whole file.
23188 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23189 dirpart=`(dirname "$mf") 2>/dev/null ||
23190$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23191 X"$mf" : 'X\(//\)[^/]' \| \
23192 X"$mf" : 'X\(//\)$' \| \
23193 X"$mf" : 'X\(/\)' \| \
23194 . : '\(.\)' 2>/dev/null ||
23195echo X"$mf" |
23196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23198 /^X\(\/\/\)$/{ s//\1/; q; }
23199 /^X\(\/\).*/{ s//\1/; q; }
23200 s/.*/./; q'`
23201 else
23202 continue
23203 fi
23204 # Extract the definition of DEPDIR, am__include, and am__quote
23205 # from the Makefile without running `make'.
23206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23207 test -z "$DEPDIR" && continue
23208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23209 test -z "am__include" && continue
23210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23211 # When using ansi2knr, U may be empty or an underscore; expand it
23212 U=`sed -n 's/^U = //p' < "$mf"`
23213 # Find all dependency output files, they are included files with
23214 # $(DEPDIR) in their names. We invoke sed twice because it is the
23215 # simplest approach to changing $(DEPDIR) to its actual value in the
23216 # expansion.
23217 for file in `sed -n "
23218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23220 # Make sure the directory exists.
23221 test -f "$dirpart/$file" && continue
23222 fdir=`(dirname "$file") 2>/dev/null ||
23223$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23224 X"$file" : 'X\(//\)[^/]' \| \
23225 X"$file" : 'X\(//\)$' \| \
23226 X"$file" : 'X\(/\)' \| \
23227 . : '\(.\)' 2>/dev/null ||
23228echo X"$file" |
23229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23231 /^X\(\/\/\)$/{ s//\1/; q; }
23232 /^X\(\/\).*/{ s//\1/; q; }
23233 s/.*/./; q'`
23234 { if $as_mkdir_p; then
23235 mkdir -p $dirpart/$fdir
23236 else
23237 as_dir=$dirpart/$fdir
23238 as_dirs=
23239 while test ! -d "$as_dir"; do
23240 as_dirs="$as_dir $as_dirs"
23241 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23243 X"$as_dir" : 'X\(//\)[^/]' \| \
23244 X"$as_dir" : 'X\(//\)$' \| \
23245 X"$as_dir" : 'X\(/\)' \| \
23246 . : '\(.\)' 2>/dev/null ||
23247echo X"$as_dir" |
23248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23250 /^X\(\/\/\)$/{ s//\1/; q; }
23251 /^X\(\/\).*/{ s//\1/; q; }
23252 s/.*/./; q'`
23253 done
23254 test ! -n "$as_dirs" || mkdir $as_dirs
23255 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23256echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23257 { (exit 1); exit 1; }; }; }
23258
23259 # echo "creating $dirpart/$file"
23260 echo '# dummy' > "$dirpart/$file"
23261 done
23262done
23263 ;;
23264 esac
23265done
23266_ACEOF
23267
23268cat >>$CONFIG_STATUS <<\_ACEOF
23269
23270{ (exit 0); exit 0; }
23271_ACEOF
23272chmod +x $CONFIG_STATUS
23273ac_clean_files=$ac_clean_files_save
23274
23275
23276# configure is writing to config.log, and then calls config.status.
23277# config.status does its own redirection, appending to config.log.
23278# Unfortunately, on DOS this fails, as config.log is still kept open
23279# by configure, so config.status won't be able to write to it; its
23280# output is simply discarded. So we exec the FD to /dev/null,
23281# effectively closing config.log, so it can be properly (re)opened and
23282# appended to by config.status. When coming back to configure, we
23283# need to make the FD available again.
23284if test "$no_create" != yes; then
23285 ac_cs_success=:
23286 ac_config_status_args=
23287 test "$silent" = yes &&
23288 ac_config_status_args="$ac_config_status_args --quiet"
23289 exec 5>/dev/null
23290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23291 exec 5>>config.log
23292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23293 # would make configure fail if this is the last instruction.
23294 $ac_cs_success || { (exit 1); exit 1; }
23295fi
23296