Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / random128 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for random128 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='random128'
425PACKAGE_TARNAME='random128'
426PACKAGE_VERSION='0.10'
427PACKAGE_STRING='random128 0.10'
428PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430ac_unique_file="random128.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 EGREP LN_S PS W build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures random128 0.10 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 random128 0.10:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048 --with-random=/dev/urandom - location of the system random file generator
1049--without-random - there is no system random file generator
1050
1051Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068Report bugs to <courier-users@lists.sourceforge.net>.
1069_ACEOF
1070fi
1071
1072if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1074 ac_popdir=`pwd`
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1077 ac_builddir=.
1078
1079if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083else
1084 ac_dir_suffix= ac_top_builddir=
1085fi
1086
1087case $srcdir in
1088 .) # No --srcdir option. We are building in place.
1089 ac_srcdir=.
1090 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=.
1092 else
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 fi ;;
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1098 *) # Relative path.
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101esac
1102
1103# Do not use `cd foo && pwd` to compute absolute paths, because
1104# the directories may not exist.
1105case `pwd` in
1106.) ac_abs_builddir="$ac_dir";;
1107*)
1108 case "$ac_dir" in
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_builddir=${ac_top_builddir}.;;
1116*)
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_srcdir=$ac_srcdir;;
1125*)
1126 case $ac_srcdir in
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_srcdir=$ac_top_srcdir;;
1134*)
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 esac;;
1140esac
1141
1142 cd $ac_dir
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1145 echo
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1148 echo
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1152 echo
1153 $ac_configure --help
1154 else
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156 fi
1157 cd $ac_popdir
1158 done
1159fi
1160
1161test -n "$ac_init_help" && exit 0
1162if $ac_init_version; then
1163 cat <<\_ACEOF
1164random128 configure 0.10
1165generated by GNU Autoconf 2.59
1166
1167Copyright (C) 2003 Free Software Foundation, Inc.
1168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
1170_ACEOF
1171 exit 0
1172fi
1173exec 5>config.log
1174cat >&5 <<_ACEOF
1175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by random128 $as_me 0.10, which was
1179generated by GNU Autoconf 2.59. Invocation command line was
1180
1181 $ $0 $@
1182
1183_ACEOF
1184{
1185cat <<_ASUNAME
1186## --------- ##
1187## Platform. ##
1188## --------- ##
1189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198
1199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
1207_ASUNAME
1208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215done
1216
1217} >&5
1218
1219cat >&5 <<_ACEOF
1220
1221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
1228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
1231# Strip out --silent because we don't want to record it for future runs.
1232# Also quote any args containing shell meta-characters.
1233# Make two passes to allow for proper duplicate-argument suppression.
1234ac_configure_args=
1235ac_configure_args0=
1236ac_configure_args1=
1237ac_sep=
1238ac_must_keep_next=false
1239for ac_pass in 1 2
1240do
1241 for ac_arg
1242 do
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 2)
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1257 else
1258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1266 ;;
1267 -* ) ac_must_keep_next=true ;;
1268 esac
1269 fi
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1273 ;;
1274 esac
1275 done
1276done
1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log. We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
1283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
1285trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1287 {
1288 echo
1289
1290 cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
1297{
1298 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1301 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 ;;
1305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310}
1311 echo
1312
1313 cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1320 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1325
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
1328## ------------- ##
1329## Output files. ##
1330## ------------- ##
1331_ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339 fi
1340
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347 echo
1348 sed "/^$/d" confdefs.h | sort
1349 echo
1350 fi
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 exit $exit_status
1358 ' 0
1359for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
1368
1369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
1396# Let the site file select an alternate cache file if it wants to.
1397# Prefer explicitly selected file to automatically selected ones.
1398if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
1404fi
1405for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1410 . "$ac_site_file"
1411 fi
1412done
1413
1414if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1423 esac
1424 fi
1425else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
1434for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1441 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1450 *)
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1459 fi;;
1460 esac
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 esac
1472 fi
1473done
1474if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1480fi
1481
1482ac_ext=c
1483ac_cpp='$CPP $CPPFLAGS'
1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515>confdefs.h # Kill PACKAGE_ macros
1516
1517
1518am__api_version="1.9"
1519ac_aux_dir=
1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544# Find a good install program. We prefer a C program (faster),
1545# so one script is as good as another. But avoid the broken or
1546# incompatible versions:
1547# SysV /etc/install, /usr/sbin/install
1548# SunOS /usr/etc/install
1549# IRIX /sbin/install
1550# AIX /bin/install
1551# AmigaOS /C/install, which installs bootblocks on floppy discs
1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555# OS/2's system install, which has a completely different semantic
1556# ./install, which can be erroneously created by make from ./install.sh.
1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559if test -z "$INSTALL"; then
1560if test "${ac_cv_path_install+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 # Account for people who put trailing slashes in PATH elements.
1569case $as_dir/ in
1570 ./ | .// | /cC/* | \
1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573 /usr/ucb/* ) ;;
1574 *)
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1577 # by default.
1578 for ac_prog in ginstall scoinst install; do
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581 if test $ac_prog = install &&
1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1584 :
1585 elif test $ac_prog = install &&
1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # program-specific install script used by HP pwplus--don't use.
1588 :
1589 else
1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591 break 3
1592 fi
1593 fi
1594 done
1595 done
1596 ;;
1597esac
1598done
1599
1600
1601fi
1602 if test "${ac_cv_path_install+set}" = set; then
1603 INSTALL=$ac_cv_path_install
1604 else
1605 # As a last resort, use the slow shell script. We don't cache a
1606 # path for INSTALL within a source directory, because that will
1607 # break other packages using the cache if that directory is
1608 # removed, or if the path is relative.
1609 INSTALL=$ac_install_sh
1610 fi
1611fi
1612echo "$as_me:$LINENO: result: $INSTALL" >&5
1613echo "${ECHO_T}$INSTALL" >&6
1614
1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616# It thinks the first close brace ends the variable substitution.
1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620
1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622
1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625# Just in case
1626sleep 1
1627echo timestamp > conftest.file
1628# Do `set' in a subshell so we don't clobber the current shell's
1629# arguments. Must try -L first in case configure is actually a
1630# symlink; some systems play weird games with the mod time of symlinks
1631# (eg FreeBSD returns the mod time of the symlink's containing
1632# directory).
1633if (
1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635 if test "$*" = "X"; then
1636 # -L didn't work.
1637 set X `ls -t $srcdir/configure conftest.file`
1638 fi
1639 rm -f conftest.file
1640 if test "$*" != "X $srcdir/configure conftest.file" \
1641 && test "$*" != "X conftest.file $srcdir/configure"; then
1642
1643 # If neither matched, then we have a broken ls. This can happen
1644 # if, for instance, CONFIG_SHELL is bash and it inherits a
1645 # broken ls alias from the environment. This has actually
1646 # happened. Such a system could not be considered "sane".
1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648alias in your environment" >&5
1649echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650alias in your environment" >&2;}
1651 { (exit 1); exit 1; }; }
1652 fi
1653
1654 test "$2" = conftest.file
1655 )
1656then
1657 # Ok.
1658 :
1659else
1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661Check your system clock" >&5
1662echo "$as_me: error: newly created file is older than distributed files!
1663Check your system clock" >&2;}
1664 { (exit 1); exit 1; }; }
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668test "$program_prefix" != NONE &&
1669 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670# Use a double $ so make ignores it.
1671test "$program_suffix" != NONE &&
1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673# Double any \ or $. echo might interpret backslashes.
1674# By default was `s,x,x', remove it if useless.
1675cat <<\_ACEOF >conftest.sed
1676s/[\\$]/&&/g;s/;s,x,x,$//
1677_ACEOF
1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679rm conftest.sed
1680
1681# expand $ac_aux_dir to an absolute path
1682am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685# Use eval to expand $SHELL
1686if eval "$MISSING --run true"; then
1687 am_missing_run="$MISSING --run "
1688else
1689 am_missing_run=
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692fi
1693
1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695 # We used to keeping the `.' as first argument, in order to
1696 # allow $(mkdir_p) to be used without argument. As in
1697 # $(mkdir_p) $(somedir)
1698 # where $(somedir) is conditionally defined. However this is wrong
1699 # for two reasons:
1700 # 1. if the package is installed by a user who cannot write `.'
1701 # make install will fail,
1702 # 2. the above comment should most certainly read
1703 # $(mkdir_p) $(DESTDIR)$(somedir)
1704 # so it does not work when $(somedir) is undefined and
1705 # $(DESTDIR) is not.
1706 # To support the latter case, we have to write
1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708 # so the `.' trick is pointless.
1709 mkdir_p='mkdir -p --'
1710else
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1714 # exists.
1715 for d in ./-p ./--version;
1716 do
1717 test -d $d && rmdir $d
1718 done
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p='$(mkinstalldirs)'
1722 else
1723 mkdir_p='$(install_sh) -d'
1724 fi
1725fi
1726
1727for ac_prog in gawk mawk nawk awk
1728do
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730set dummy $ac_prog; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1749 fi
1750done
1751done
1752
1753fi
1754fi
1755AWK=$ac_cv_prog_AWK
1756if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758echo "${ECHO_T}$AWK" >&6
1759else
1760 echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764 test -n "$AWK" && break
1765done
1766
1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 cat >conftest.make <<\_ACEOF
1774all:
1775 @echo 'ac_maketemp="$(MAKE)"'
1776_ACEOF
1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_${ac_make}_set=yes
1781else
1782 eval ac_cv_prog_make_${ac_make}_set=no
1783fi
1784rm -f conftest.make
1785fi
1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789 SET_MAKE=
1790else
1791 echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793 SET_MAKE="MAKE=${MAKE-make}"
1794fi
1795
1796rm -rf .tst 2>/dev/null
1797mkdir .tst 2>/dev/null
1798if test -d .tst; then
1799 am__leading_dot=.
1800else
1801 am__leading_dot=_
1802fi
1803rmdir .tst 2>/dev/null
1804
1805# test to see if srcdir already configured
1806if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1811fi
1812
1813# test whether we have cygpath
1814if test -z "$CYGPATH_W"; then
1815 if (cygpath --version) >/dev/null 2>/dev/null; then
1816 CYGPATH_W='cygpath -w'
1817 else
1818 CYGPATH_W=echo
1819 fi
1820fi
1821
1822
1823# Define the identity of the package.
1824 PACKAGE='random128'
1825 VERSION='0.10'
1826
1827
1828# Some tools Automake needs.
1829
1830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831
1832
1833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1834
1835
1836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837
1838
1839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1840
1841
1842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1843
1844install_sh=${install_sh-"$am_aux_dir/install-sh"}
1845
1846# Installed binaries are usually stripped using `strip' when the user
1847# run `make install-strip'. However `strip' might not be the right
1848# tool to use in cross-compilation environments, therefore Automake
1849# will honor the `STRIP' environment variable to overrule this program.
1850if test "$cross_compiling" != no; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1853set dummy ${ac_tool_prefix}strip; ac_word=$2
1854echo "$as_me:$LINENO: checking for $ac_word" >&5
1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_STRIP+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 if test -n "$STRIP"; then
1860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1861else
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873done
1874done
1875
1876fi
1877fi
1878STRIP=$ac_cv_prog_STRIP
1879if test -n "$STRIP"; then
1880 echo "$as_me:$LINENO: result: $STRIP" >&5
1881echo "${ECHO_T}$STRIP" >&6
1882else
1883 echo "$as_me:$LINENO: result: no" >&5
1884echo "${ECHO_T}no" >&6
1885fi
1886
1887fi
1888if test -z "$ac_cv_prog_STRIP"; then
1889 ac_ct_STRIP=$STRIP
1890 # Extract the first word of "strip", so it can be a program name with args.
1891set dummy strip; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897 if test -n "$ac_ct_STRIP"; then
1898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_STRIP="strip"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911done
1912done
1913
1914 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1915fi
1916fi
1917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1918if test -n "$ac_ct_STRIP"; then
1919 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1920echo "${ECHO_T}$ac_ct_STRIP" >&6
1921else
1922 echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924fi
1925
1926 STRIP=$ac_ct_STRIP
1927else
1928 STRIP="$ac_cv_prog_STRIP"
1929fi
1930
1931fi
1932INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1933
1934# We need awk for the "check" target. The system "awk" is bad on
1935# some platforms.
1936# Always define AMTAR for backward compatibility.
1937
1938AMTAR=${AMTAR-"${am_missing_run}tar"}
1939
1940am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1941
1942
1943
1944
1945
1946LPATH="$PATH:/usr/local/bin"
1947
1948
1949 ac_config_headers="$ac_config_headers config.h"
1950
1951DEPDIR="${am__leading_dot}deps"
1952
1953 ac_config_commands="$ac_config_commands depfiles"
1954
1955
1956am_make=${MAKE-make}
1957cat > confinc << 'END'
1958am__doit:
1959 @echo done
1960.PHONY: am__doit
1961END
1962# If we don't find an include directive, just comment out the code.
1963echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1964echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1965am__include="#"
1966am__quote=
1967_am_result=none
1968# First try GNU make style include.
1969echo "include confinc" > confmf
1970# We grep out `Entering directory' and `Leaving directory'
1971# messages which can occur if `w' ends up in MAKEFLAGS.
1972# In particular we don't look at `^make:' because GNU make might
1973# be invoked under some other name (usually "gmake"), in which
1974# case it prints its new name instead of `make'.
1975if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1976 am__include=include
1977 am__quote=
1978 _am_result=GNU
1979fi
1980# Now try BSD make style include.
1981if test "$am__include" = "#"; then
1982 echo '.include "confinc"' > confmf
1983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1984 am__include=.include
1985 am__quote="\""
1986 _am_result=BSD
1987 fi
1988fi
1989
1990
1991echo "$as_me:$LINENO: result: $_am_result" >&5
1992echo "${ECHO_T}$_am_result" >&6
1993rm -f confinc confmf
1994
1995# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1996if test "${enable_dependency_tracking+set}" = set; then
1997 enableval="$enable_dependency_tracking"
1998
1999fi;
2000if test "x$enable_dependency_tracking" != xno; then
2001 am_depcomp="$ac_aux_dir/depcomp"
2002 AMDEPBACKSLASH='\'
2003fi
2004
2005
2006if test "x$enable_dependency_tracking" != xno; then
2007 AMDEP_TRUE=
2008 AMDEP_FALSE='#'
2009else
2010 AMDEP_TRUE='#'
2011 AMDEP_FALSE=
2012fi
2013
2014
2015
2016ac_ext=c
2017ac_cpp='$CPP $CPPFLAGS'
2018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021if test -n "$ac_tool_prefix"; then
2022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2023set dummy ${ac_tool_prefix}gcc; ac_word=$2
2024echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026if test "${ac_cv_prog_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 if test -n "$CC"; then
2030 ac_cv_prog_CC="$CC" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043done
2044done
2045
2046fi
2047fi
2048CC=$ac_cv_prog_CC
2049if test -n "$CC"; then
2050 echo "$as_me:$LINENO: result: $CC" >&5
2051echo "${ECHO_T}$CC" >&6
2052else
2053 echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6
2055fi
2056
2057fi
2058if test -z "$ac_cv_prog_CC"; then
2059 ac_ct_CC=$CC
2060 # Extract the first word of "gcc", so it can be a program name with args.
2061set dummy gcc; ac_word=$2
2062echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069else
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077 ac_cv_prog_ac_ct_CC="gcc"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2080 fi
2081done
2082done
2083
2084fi
2085fi
2086ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087if test -n "$ac_ct_CC"; then
2088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2089echo "${ECHO_T}$ac_ct_CC" >&6
2090else
2091 echo "$as_me:$LINENO: result: no" >&5
2092echo "${ECHO_T}no" >&6
2093fi
2094
2095 CC=$ac_ct_CC
2096else
2097 CC="$ac_cv_prog_CC"
2098fi
2099
2100if test -z "$CC"; then
2101 if test -n "$ac_tool_prefix"; then
2102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2103set dummy ${ac_tool_prefix}cc; ac_word=$2
2104echo "$as_me:$LINENO: checking for $ac_word" >&5
2105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2111else
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_CC="${ac_tool_prefix}cc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 break 2
2122 fi
2123done
2124done
2125
2126fi
2127fi
2128CC=$ac_cv_prog_CC
2129if test -n "$CC"; then
2130 echo "$as_me:$LINENO: result: $CC" >&5
2131echo "${ECHO_T}$CC" >&6
2132else
2133 echo "$as_me:$LINENO: result: no" >&5
2134echo "${ECHO_T}no" >&6
2135fi
2136
2137fi
2138if test -z "$ac_cv_prog_CC"; then
2139 ac_ct_CC=$CC
2140 # Extract the first word of "cc", so it can be a program name with args.
2141set dummy cc; ac_word=$2
2142echo "$as_me:$LINENO: checking for $ac_word" >&5
2143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149else
2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151for as_dir in $PATH
2152do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC="cc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2160 fi
2161done
2162done
2163
2164fi
2165fi
2166ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167if test -n "$ac_ct_CC"; then
2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169echo "${ECHO_T}$ac_ct_CC" >&6
2170else
2171 echo "$as_me:$LINENO: result: no" >&5
2172echo "${ECHO_T}no" >&6
2173fi
2174
2175 CC=$ac_ct_CC
2176else
2177 CC="$ac_cv_prog_CC"
2178fi
2179
2180fi
2181if test -z "$CC"; then
2182 # Extract the first word of "cc", so it can be a program name with args.
2183set dummy cc; ac_word=$2
2184echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2191else
2192 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2201 ac_prog_rejected=yes
2202 continue
2203 fi
2204 ac_cv_prog_CC="cc"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 break 2
2207 fi
2208done
2209done
2210
2211if test $ac_prog_rejected = yes; then
2212 # We found a bogon in the path, so make sure we never use it.
2213 set dummy $ac_cv_prog_CC
2214 shift
2215 if test $# != 0; then
2216 # We chose a different compiler from the bogus one.
2217 # However, it has the same basename, so the bogon will be chosen
2218 # first if we set CC to just the basename; use the full file name.
2219 shift
2220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2221 fi
2222fi
2223fi
2224fi
2225CC=$ac_cv_prog_CC
2226if test -n "$CC"; then
2227 echo "$as_me:$LINENO: result: $CC" >&5
2228echo "${ECHO_T}$CC" >&6
2229else
2230 echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6
2232fi
2233
2234fi
2235if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 for ac_prog in cl
2238 do
2239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2241echo "$as_me:$LINENO: checking for $ac_word" >&5
2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243if test "${ac_cv_prog_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248else
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2259 fi
2260done
2261done
2262
2263fi
2264fi
2265CC=$ac_cv_prog_CC
2266if test -n "$CC"; then
2267 echo "$as_me:$LINENO: result: $CC" >&5
2268echo "${ECHO_T}$CC" >&6
2269else
2270 echo "$as_me:$LINENO: result: no" >&5
2271echo "${ECHO_T}no" >&6
2272fi
2273
2274 test -n "$CC" && break
2275 done
2276fi
2277if test -z "$CC"; then
2278 ac_ct_CC=$CC
2279 for ac_prog in cl
2280do
2281 # Extract the first word of "$ac_prog", so it can be a program name with args.
2282set dummy $ac_prog; ac_word=$2
2283echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288 if test -n "$ac_ct_CC"; then
2289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298 ac_cv_prog_ac_ct_CC="$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2301 fi
2302done
2303done
2304
2305fi
2306fi
2307ac_ct_CC=$ac_cv_prog_ac_ct_CC
2308if test -n "$ac_ct_CC"; then
2309 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2310echo "${ECHO_T}$ac_ct_CC" >&6
2311else
2312 echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6
2314fi
2315
2316 test -n "$ac_ct_CC" && break
2317done
2318
2319 CC=$ac_ct_CC
2320fi
2321
2322fi
2323
2324
2325test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2326See \`config.log' for more details." >&5
2327echo "$as_me: error: no acceptable C compiler found in \$PATH
2328See \`config.log' for more details." >&2;}
2329 { (exit 1); exit 1; }; }
2330
2331# Provide some information about the compiler.
2332echo "$as_me:$LINENO:" \
2333 "checking for C compiler version" >&5
2334ac_compiler=`set X $ac_compile; echo $2`
2335{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2336 (eval $ac_compiler --version </dev/null >&5) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }
2340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2341 (eval $ac_compiler -v </dev/null >&5) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
2345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2346 (eval $ac_compiler -V </dev/null >&5) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }
2350
2351cat >conftest.$ac_ext <<_ACEOF
2352/* confdefs.h. */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h. */
2357
2358int
2359main ()
2360{
2361
2362 ;
2363 return 0;
2364}
2365_ACEOF
2366ac_clean_files_save=$ac_clean_files
2367ac_clean_files="$ac_clean_files a.out a.exe b.out"
2368# Try to create an executable without -o first, disregard a.out.
2369# It will help us diagnose broken compilers, and finding out an intuition
2370# of exeext.
2371echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2372echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2373ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2375 (eval $ac_link_default) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 # Find the output, starting from the most likely. This scheme is
2380# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2381# resort.
2382
2383# Be careful to initialize this variable, since it used to be cached.
2384# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2385ac_cv_exeext=
2386# b.out is created by i960 compilers.
2387for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2388do
2389 test -f "$ac_file" || continue
2390 case $ac_file in
2391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2392 ;;
2393 conftest.$ac_ext )
2394 # This is the source file.
2395 ;;
2396 [ab].out )
2397 # We found the default executable, but exeext='' is most
2398 # certainly right.
2399 break;;
2400 *.* )
2401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402 # FIXME: I believe we export ac_cv_exeext for Libtool,
2403 # but it would be cool to find out if it's true. Does anybody
2404 # maintain Libtool? --akim.
2405 export ac_cv_exeext
2406 break;;
2407 * )
2408 break;;
2409 esac
2410done
2411else
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2416See \`config.log' for more details." >&5
2417echo "$as_me: error: C compiler cannot create executables
2418See \`config.log' for more details." >&2;}
2419 { (exit 77); exit 77; }; }
2420fi
2421
2422ac_exeext=$ac_cv_exeext
2423echo "$as_me:$LINENO: result: $ac_file" >&5
2424echo "${ECHO_T}$ac_file" >&6
2425
2426# Check the compiler produces executables we can run. If not, either
2427# the compiler is broken, or we cross compile.
2428echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2429echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2430# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2431# If not cross compiling, check that we can run a simple program.
2432if test "$cross_compiling" != yes; then
2433 if { ac_try='./$ac_file'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 cross_compiling=no
2440 else
2441 if test "$cross_compiling" = maybe; then
2442 cross_compiling=yes
2443 else
2444 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2445If you meant to cross compile, use \`--host'.
2446See \`config.log' for more details." >&5
2447echo "$as_me: error: cannot run C compiled programs.
2448If you meant to cross compile, use \`--host'.
2449See \`config.log' for more details." >&2;}
2450 { (exit 1); exit 1; }; }
2451 fi
2452 fi
2453fi
2454echo "$as_me:$LINENO: result: yes" >&5
2455echo "${ECHO_T}yes" >&6
2456
2457rm -f a.out a.exe conftest$ac_cv_exeext b.out
2458ac_clean_files=$ac_clean_files_save
2459# Check the compiler produces executables we can run. If not, either
2460# the compiler is broken, or we cross compile.
2461echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2462echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2463echo "$as_me:$LINENO: result: $cross_compiling" >&5
2464echo "${ECHO_T}$cross_compiling" >&6
2465
2466echo "$as_me:$LINENO: checking for suffix of executables" >&5
2467echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2469 (eval $ac_link) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2474# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2475# work properly (i.e., refer to `conftest.exe'), while it won't with
2476# `rm'.
2477for ac_file in conftest.exe conftest conftest.*; do
2478 test -f "$ac_file" || continue
2479 case $ac_file in
2480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 export ac_cv_exeext
2483 break;;
2484 * ) break;;
2485 esac
2486done
2487else
2488 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2489See \`config.log' for more details." >&5
2490echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2491See \`config.log' for more details." >&2;}
2492 { (exit 1); exit 1; }; }
2493fi
2494
2495rm -f conftest$ac_cv_exeext
2496echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2497echo "${ECHO_T}$ac_cv_exeext" >&6
2498
2499rm -f conftest.$ac_ext
2500EXEEXT=$ac_cv_exeext
2501ac_exeext=$EXEEXT
2502echo "$as_me:$LINENO: checking for suffix of object files" >&5
2503echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2504if test "${ac_cv_objext+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 cat >conftest.$ac_ext <<_ACEOF
2508/* confdefs.h. */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h. */
2513
2514int
2515main ()
2516{
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522rm -f conftest.o conftest.obj
2523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2529 case $ac_file in
2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2532 break;;
2533 esac
2534done
2535else
2536 echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2540See \`config.log' for more details." >&5
2541echo "$as_me: error: cannot compute suffix of object files: cannot compile
2542See \`config.log' for more details." >&2;}
2543 { (exit 1); exit 1; }; }
2544fi
2545
2546rm -f conftest.$ac_cv_objext conftest.$ac_ext
2547fi
2548echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2549echo "${ECHO_T}$ac_cv_objext" >&6
2550OBJEXT=$ac_cv_objext
2551ac_objext=$OBJEXT
2552echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2553echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2554if test "${ac_cv_c_compiler_gnu+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567#ifndef __GNUC__
2568 choke me
2569#endif
2570
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>conftest.er1
2578 ac_status=$?
2579 grep -v '^ *+' conftest.er1 >conftest.err
2580 rm -f conftest.er1
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_c_werror_flag"
2585 || test ! -s conftest.err'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 (eval $ac_try) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 ac_compiler_gnu=yes
2598else
2599 echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602ac_compiler_gnu=no
2603fi
2604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605ac_cv_c_compiler_gnu=$ac_compiler_gnu
2606
2607fi
2608echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2609echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2610GCC=`test $ac_compiler_gnu = yes && echo yes`
2611ac_test_CFLAGS=${CFLAGS+set}
2612ac_save_CFLAGS=$CFLAGS
2613CFLAGS="-g"
2614echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2615echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2616if test "${ac_cv_prog_cc_g+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619 cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h. */
2625
2626int
2627main ()
2628{
2629
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_prog_cc_g=yes
2657else
2658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661ac_cv_prog_cc_g=no
2662fi
2663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2664fi
2665echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2666echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2667if test "$ac_test_CFLAGS" = set; then
2668 CFLAGS=$ac_save_CFLAGS
2669elif test $ac_cv_prog_cc_g = yes; then
2670 if test "$GCC" = yes; then
2671 CFLAGS="-g -O2"
2672 else
2673 CFLAGS="-g"
2674 fi
2675else
2676 if test "$GCC" = yes; then
2677 CFLAGS="-O2"
2678 else
2679 CFLAGS=
2680 fi
2681fi
2682echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2683echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2684if test "${ac_cv_prog_cc_stdc+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 ac_cv_prog_cc_stdc=no
2688ac_save_CC=$CC
2689cat >conftest.$ac_ext <<_ACEOF
2690/* confdefs.h. */
2691_ACEOF
2692cat confdefs.h >>conftest.$ac_ext
2693cat >>conftest.$ac_ext <<_ACEOF
2694/* end confdefs.h. */
2695#include <stdarg.h>
2696#include <stdio.h>
2697#include <sys/types.h>
2698#include <sys/stat.h>
2699/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2700struct buf { int x; };
2701FILE * (*rcsopen) (struct buf *, struct stat *, int);
2702static char *e (p, i)
2703 char **p;
2704 int i;
2705{
2706 return p[i];
2707}
2708static char *f (char * (*g) (char **, int), char **p, ...)
2709{
2710 char *s;
2711 va_list v;
2712 va_start (v,p);
2713 s = g (p, va_arg (v,int));
2714 va_end (v);
2715 return s;
2716}
2717
2718/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2719 function prototypes and stuff, but not '\xHH' hex character constants.
2720 These don't provoke an error unfortunately, instead are silently treated
2721 as 'x'. The following induces an error, until -std1 is added to get
2722 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2723 array size at least. It's necessary to write '\x00'==0 to get something
2724 that's true only with -std1. */
2725int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2726
2727int test (int i, double x);
2728struct s1 {int (*f) (int a);};
2729struct s2 {int (*f) (double a);};
2730int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2731int argc;
2732char **argv;
2733int
2734main ()
2735{
2736return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741# Don't try gcc -ansi; that turns off useful extensions and
2742# breaks some systems' header files.
2743# AIX -qlanglvl=ansi
2744# Ultrix and OSF/1 -std1
2745# HP-UX 10.20 and later -Ae
2746# HP-UX older versions -Aa -D_HPUX_SOURCE
2747# SVR4 -Xc -D__EXTENSIONS__
2748for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2749do
2750 CC="$ac_save_CC $ac_arg"
2751 rm -f conftest.$ac_objext
2752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 ac_cv_prog_cc_stdc=$ac_arg
2774break
2775else
2776 echo "$as_me: failed program was:" >&5
2777sed 's/^/| /' conftest.$ac_ext >&5
2778
2779fi
2780rm -f conftest.err conftest.$ac_objext
2781done
2782rm -f conftest.$ac_ext conftest.$ac_objext
2783CC=$ac_save_CC
2784
2785fi
2786
2787case "x$ac_cv_prog_cc_stdc" in
2788 x|xno)
2789 echo "$as_me:$LINENO: result: none needed" >&5
2790echo "${ECHO_T}none needed" >&6 ;;
2791 *)
2792 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2793echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2794 CC="$CC $ac_cv_prog_cc_stdc" ;;
2795esac
2796
2797# Some people use a C++ compiler to compile C. Since we use `exit',
2798# in C++ we need to declare it. In case someone uses the same compiler
2799# for both compiling C and C++ we need to have the C++ compiler decide
2800# the declaration of exit, since it's the most demanding environment.
2801cat >conftest.$ac_ext <<_ACEOF
2802#ifndef __cplusplus
2803 choke me
2804#endif
2805_ACEOF
2806rm -f conftest.$ac_objext
2807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>conftest.er1
2809 ac_status=$?
2810 grep -v '^ *+' conftest.er1 >conftest.err
2811 rm -f conftest.er1
2812 cat conftest.err >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -z "$ac_c_werror_flag"
2816 || test ! -s conftest.err'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; } &&
2822 { ac_try='test -s conftest.$ac_objext'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 for ac_declaration in \
2829 '' \
2830 'extern "C" void std::exit (int) throw (); using std::exit;' \
2831 'extern "C" void std::exit (int); using std::exit;' \
2832 'extern "C" void exit (int) throw ();' \
2833 'extern "C" void exit (int);' \
2834 'void exit (int);'
2835do
2836 cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h. */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h. */
2842$ac_declaration
2843#include <stdlib.h>
2844int
2845main ()
2846{
2847exit (42);
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852rm -f conftest.$ac_objext
2853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 :
2875else
2876 echo "$as_me: failed program was:" >&5
2877sed 's/^/| /' conftest.$ac_ext >&5
2878
2879continue
2880fi
2881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 cat >conftest.$ac_ext <<_ACEOF
2883/* confdefs.h. */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h. */
2888$ac_declaration
2889int
2890main ()
2891{
2892exit (42);
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897rm -f conftest.$ac_objext
2898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_c_werror_flag"
2907 || test ! -s conftest.err'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 break
2920else
2921 echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924fi
2925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926done
2927rm -f conftest*
2928if test -n "$ac_declaration"; then
2929 echo '#ifdef __cplusplus' >>confdefs.h
2930 echo $ac_declaration >>confdefs.h
2931 echo '#endif' >>confdefs.h
2932fi
2933
2934else
2935 echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938fi
2939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940ac_ext=c
2941ac_cpp='$CPP $CPPFLAGS'
2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946depcc="$CC" am_compiler_list=
2947
2948echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2949echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2950if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2954 # We make a subdir and do the tests there. Otherwise we can end up
2955 # making bogus files that we don't know about and never remove. For
2956 # instance it was reported that on HP-UX the gcc test will end up
2957 # making a dummy file named `D' -- because `-MD' means `put the output
2958 # in D'.
2959 mkdir conftest.dir
2960 # Copy depcomp to subdir because otherwise we won't find it if we're
2961 # using a relative directory.
2962 cp "$am_depcomp" conftest.dir
2963 cd conftest.dir
2964 # We will build objects and dependencies in a subdirectory because
2965 # it helps to detect inapplicable dependency modes. For instance
2966 # both Tru64's cc and ICC support -MD to output dependencies as a
2967 # side effect of compilation, but ICC will put the dependencies in
2968 # the current directory while Tru64 will put them in the object
2969 # directory.
2970 mkdir sub
2971
2972 am_cv_CC_dependencies_compiler_type=none
2973 if test "$am_compiler_list" = ""; then
2974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2975 fi
2976 for depmode in $am_compiler_list; do
2977 # Setup a source with many dependencies, because some compilers
2978 # like to wrap large dependency lists on column 80 (with \), and
2979 # we should not choose a depcomp mode which is confused by this.
2980 #
2981 # We need to recreate these files for each test, as the compiler may
2982 # overwrite some of them when testing with obscure command lines.
2983 # This happens at least with the AIX C compiler.
2984 : > sub/conftest.c
2985 for i in 1 2 3 4 5 6; do
2986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2988 # Solaris 8's {/usr,}/bin/sh.
2989 touch sub/conftst$i.h
2990 done
2991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2992
2993 case $depmode in
2994 nosideeffect)
2995 # after this tag, mechanisms are not by side-effect, so they'll
2996 # only be used when explicitly requested
2997 if test "x$enable_dependency_tracking" = xyes; then
2998 continue
2999 else
3000 break
3001 fi
3002 ;;
3003 none) break ;;
3004 esac
3005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006 # mode. It turns out that the SunPro C++ compiler does not properly
3007 # handle `-M -o', and we need to detect this.
3008 if depmode=$depmode \
3009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3012 >/dev/null 2>conftest.err &&
3013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016 # icc doesn't choke on unknown options, it will just issue warnings
3017 # or remarks (even with -Werror). So we grep stderr for any message
3018 # that says an option was ignored or not supported.
3019 # When given -MP, icc 7.0 and 7.1 complain thusly:
3020 # icc: Command line warning: ignoring option '-M'; no argument required
3021 # The diagnosis changed in icc 8.0:
3022 # icc: Command line remark: option '-MP' not supported
3023 if (grep 'ignoring option' conftest.err ||
3024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3025 am_cv_CC_dependencies_compiler_type=$depmode
3026 break
3027 fi
3028 fi
3029 done
3030
3031 cd ..
3032 rm -rf conftest.dir
3033else
3034 am_cv_CC_dependencies_compiler_type=none
3035fi
3036
3037fi
3038echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3039echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3040CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3041
3042
3043
3044if
3045 test "x$enable_dependency_tracking" != xno \
3046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3047 am__fastdepCC_TRUE=
3048 am__fastdepCC_FALSE='#'
3049else
3050 am__fastdepCC_TRUE='#'
3051 am__fastdepCC_FALSE=
3052fi
3053
3054
3055
3056ac_ext=c
3057ac_cpp='$CPP $CPPFLAGS'
3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3062echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3063# On Suns, sometimes $CPP names a directory.
3064if test -n "$CPP" && test -d "$CPP"; then
3065 CPP=
3066fi
3067if test -z "$CPP"; then
3068 if test "${ac_cv_prog_CPP+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 # Double quotes because CPP needs to be expanded
3072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3073 do
3074 ac_preproc_ok=false
3075for ac_c_preproc_warn_flag in '' yes
3076do
3077 # Use a header file that comes with gcc, so configuring glibc
3078 # with a fresh cross-compiler works.
3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080 # <limits.h> exists even on freestanding compilers.
3081 # On the NeXT, cc -E runs the code through the compiler's parser,
3082 # not just through cpp. "Syntax error" is here to catch this case.
3083 cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h. */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h. */
3089#ifdef __STDC__
3090# include <limits.h>
3091#else
3092# include <assert.h>
3093#endif
3094 Syntax error
3095_ACEOF
3096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null; then
3104 if test -s conftest.err; then
3105 ac_cpp_err=$ac_c_preproc_warn_flag
3106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107 else
3108 ac_cpp_err=
3109 fi
3110else
3111 ac_cpp_err=yes
3112fi
3113if test -z "$ac_cpp_err"; then
3114 :
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 # Broken: fails on valid input.
3120continue
3121fi
3122rm -f conftest.err conftest.$ac_ext
3123
3124 # OK, works on sane cases. Now check whether non-existent headers
3125 # can be detected and how.
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132#include <ac_nonexistent.h>
3133_ACEOF
3134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null; then
3142 if test -s conftest.err; then
3143 ac_cpp_err=$ac_c_preproc_warn_flag
3144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3145 else
3146 ac_cpp_err=
3147 fi
3148else
3149 ac_cpp_err=yes
3150fi
3151if test -z "$ac_cpp_err"; then
3152 # Broken: success on invalid input.
3153continue
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 # Passes both tests.
3159ac_preproc_ok=:
3160break
3161fi
3162rm -f conftest.err conftest.$ac_ext
3163
3164done
3165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3166rm -f conftest.err conftest.$ac_ext
3167if $ac_preproc_ok; then
3168 break
3169fi
3170
3171 done
3172 ac_cv_prog_CPP=$CPP
3173
3174fi
3175 CPP=$ac_cv_prog_CPP
3176else
3177 ac_cv_prog_CPP=$CPP
3178fi
3179echo "$as_me:$LINENO: result: $CPP" >&5
3180echo "${ECHO_T}$CPP" >&6
3181ac_preproc_ok=false
3182for ac_c_preproc_warn_flag in '' yes
3183do
3184 # Use a header file that comes with gcc, so configuring glibc
3185 # with a fresh cross-compiler works.
3186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3187 # <limits.h> exists even on freestanding compilers.
3188 # On the NeXT, cc -E runs the code through the compiler's parser,
3189 # not just through cpp. "Syntax error" is here to catch this case.
3190 cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
3196#ifdef __STDC__
3197# include <limits.h>
3198#else
3199# include <assert.h>
3200#endif
3201 Syntax error
3202_ACEOF
3203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } >/dev/null; then
3211 if test -s conftest.err; then
3212 ac_cpp_err=$ac_c_preproc_warn_flag
3213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3214 else
3215 ac_cpp_err=
3216 fi
3217else
3218 ac_cpp_err=yes
3219fi
3220if test -z "$ac_cpp_err"; then
3221 :
3222else
3223 echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226 # Broken: fails on valid input.
3227continue
3228fi
3229rm -f conftest.err conftest.$ac_ext
3230
3231 # OK, works on sane cases. Now check whether non-existent headers
3232 # can be detected and how.
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239#include <ac_nonexistent.h>
3240_ACEOF
3241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null; then
3249 if test -s conftest.err; then
3250 ac_cpp_err=$ac_c_preproc_warn_flag
3251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 else
3253 ac_cpp_err=
3254 fi
3255else
3256 ac_cpp_err=yes
3257fi
3258if test -z "$ac_cpp_err"; then
3259 # Broken: success on invalid input.
3260continue
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 # Passes both tests.
3266ac_preproc_ok=:
3267break
3268fi
3269rm -f conftest.err conftest.$ac_ext
3270
3271done
3272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273rm -f conftest.err conftest.$ac_ext
3274if $ac_preproc_ok; then
3275 :
3276else
3277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3278See \`config.log' for more details." >&5
3279echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3280See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }
3282fi
3283
3284ac_ext=c
3285ac_cpp='$CPP $CPPFLAGS'
3286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289
3290
3291echo "$as_me:$LINENO: checking for egrep" >&5
3292echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3293if test "${ac_cv_prog_egrep+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3297 then ac_cv_prog_egrep='grep -E'
3298 else ac_cv_prog_egrep='egrep'
3299 fi
3300fi
3301echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3302echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3303 EGREP=$ac_cv_prog_egrep
3304
3305
3306
3307echo "$as_me:$LINENO: checking for AIX" >&5
3308echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3309cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
3315#ifdef _AIX
3316 yes
3317#endif
3318
3319_ACEOF
3320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 $EGREP "yes" >/dev/null 2>&1; then
3322 echo "$as_me:$LINENO: result: yes" >&5
3323echo "${ECHO_T}yes" >&6
3324cat >>confdefs.h <<\_ACEOF
3325#define _ALL_SOURCE 1
3326_ACEOF
3327
3328else
3329 echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6
3331fi
3332rm -f conftest*
3333
3334
3335
3336 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3337echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3338if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341 ac_check_lib_save_LIBS=$LIBS
3342LIBS="-lcposix $LIBS"
3343cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
3349
3350/* Override any gcc2 internal prototype to avoid an error. */
3351#ifdef __cplusplus
3352extern "C"
3353#endif
3354/* We use char because int might match the return type of a gcc2
3355 builtin and then its argument prototype would still apply. */
3356char strerror ();
3357int
3358main ()
3359{
3360strerror ();
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365rm -f conftest.$ac_objext conftest$ac_exeext
3366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3367 (eval $ac_link) 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag"
3375 || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest$ac_exeext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_cv_lib_cposix_strerror=yes
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392ac_cv_lib_cposix_strerror=no
3393fi
3394rm -f conftest.err conftest.$ac_objext \
3395 conftest$ac_exeext conftest.$ac_ext
3396LIBS=$ac_check_lib_save_LIBS
3397fi
3398echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3399echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3400if test $ac_cv_lib_cposix_strerror = yes; then
3401 LIBS="$LIBS -lcposix"
3402fi
3403
3404
3405
3406echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3407echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3408if test "${ac_cv_header_stdc+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411 cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h. */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h. */
3417#include <stdlib.h>
3418#include <stdarg.h>
3419#include <string.h>
3420#include <float.h>
3421
3422int
3423main ()
3424{
3425
3426 ;
3427 return 0;
3428}
3429_ACEOF
3430rm -f conftest.$ac_objext
3431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try='test -z "$ac_c_werror_flag"
3440 || test ! -s conftest.err'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; } &&
3446 { ac_try='test -s conftest.$ac_objext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 (eval $ac_try) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 ac_cv_header_stdc=yes
3453else
3454 echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457ac_cv_header_stdc=no
3458fi
3459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3460
3461if test $ac_cv_header_stdc = yes; then
3462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469#include <string.h>
3470
3471_ACEOF
3472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 $EGREP "memchr" >/dev/null 2>&1; then
3474 :
3475else
3476 ac_cv_header_stdc=no
3477fi
3478rm -f conftest*
3479
3480fi
3481
3482if test $ac_cv_header_stdc = yes; then
3483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3484 cat >conftest.$ac_ext <<_ACEOF
3485/* confdefs.h. */
3486_ACEOF
3487cat confdefs.h >>conftest.$ac_ext
3488cat >>conftest.$ac_ext <<_ACEOF
3489/* end confdefs.h. */
3490#include <stdlib.h>
3491
3492_ACEOF
3493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 $EGREP "free" >/dev/null 2>&1; then
3495 :
3496else
3497 ac_cv_header_stdc=no
3498fi
3499rm -f conftest*
3500
3501fi
3502
3503if test $ac_cv_header_stdc = yes; then
3504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3505 if test "$cross_compiling" = yes; then
3506 :
3507else
3508 cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
3514#include <ctype.h>
3515#if ((' ' & 0x0FF) == 0x020)
3516# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3517# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3518#else
3519# define ISLOWER(c) \
3520 (('a' <= (c) && (c) <= 'i') \
3521 || ('j' <= (c) && (c) <= 'r') \
3522 || ('s' <= (c) && (c) <= 'z'))
3523# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3524#endif
3525
3526#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3527int
3528main ()
3529{
3530 int i;
3531 for (i = 0; i < 256; i++)
3532 if (XOR (islower (i), ISLOWER (i))
3533 || toupper (i) != TOUPPER (i))
3534 exit(2);
3535 exit (0);
3536}
3537_ACEOF
3538rm -f conftest$ac_exeext
3539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3540 (eval $ac_link) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 :
3550else
3551 echo "$as_me: program exited with status $ac_status" >&5
3552echo "$as_me: failed program was:" >&5
3553sed 's/^/| /' conftest.$ac_ext >&5
3554
3555( exit $ac_status )
3556ac_cv_header_stdc=no
3557fi
3558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3559fi
3560fi
3561fi
3562echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3563echo "${ECHO_T}$ac_cv_header_stdc" >&6
3564if test $ac_cv_header_stdc = yes; then
3565
3566cat >>confdefs.h <<\_ACEOF
3567#define STDC_HEADERS 1
3568_ACEOF
3569
3570fi
3571
3572# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3583 inttypes.h stdint.h unistd.h
3584do
3585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3586echo "$as_me:$LINENO: checking for $ac_header" >&5
3587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3588if eval "test \"\${$as_ac_Header+set}\" = set"; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591 cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
3597$ac_includes_default
3598
3599#include <$ac_header>
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_c_werror_flag"
3611 || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 eval "$as_ac_Header=yes"
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628eval "$as_ac_Header=no"
3629fi
3630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631fi
3632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3634if test `eval echo '${'$as_ac_Header'}'` = yes; then
3635 cat >>confdefs.h <<_ACEOF
3636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3637_ACEOF
3638
3639fi
3640
3641done
3642
3643
3644if test "${ac_cv_header_minix_config_h+set}" = set; then
3645 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3646echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3647if test "${ac_cv_header_minix_config_h+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649fi
3650echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3651echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3652else
3653 # Is the header compilable?
3654echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3655echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3656cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
3662$ac_includes_default
3663#include <minix/config.h>
3664_ACEOF
3665rm -f conftest.$ac_objext
3666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_c_werror_flag"
3675 || test ! -s conftest.err'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 (eval $ac_try) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 ac_header_compiler=yes
3688else
3689 echo "$as_me: failed program was:" >&5
3690sed 's/^/| /' conftest.$ac_ext >&5
3691
3692ac_header_compiler=no
3693fi
3694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3696echo "${ECHO_T}$ac_header_compiler" >&6
3697
3698# Is the header present?
3699echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3700echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3701cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */
3707#include <minix/config.h>
3708_ACEOF
3709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev/null; then
3717 if test -s conftest.err; then
3718 ac_cpp_err=$ac_c_preproc_warn_flag
3719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3720 else
3721 ac_cpp_err=
3722 fi
3723else
3724 ac_cpp_err=yes
3725fi
3726if test -z "$ac_cpp_err"; then
3727 ac_header_preproc=yes
3728else
3729 echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 ac_header_preproc=no
3733fi
3734rm -f conftest.err conftest.$ac_ext
3735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3736echo "${ECHO_T}$ac_header_preproc" >&6
3737
3738# So? What about this header?
3739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3740 yes:no: )
3741 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3742echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3743 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3744echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3745 ac_header_preproc=yes
3746 ;;
3747 no:yes:* )
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3749echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3751echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3753echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3755echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3757echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3759echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3760 (
3761 cat <<\_ASBOX
3762## -------------------------------------------------- ##
3763## Report this to courier-users@lists.sourceforge.net ##
3764## -------------------------------------------------- ##
3765_ASBOX
3766 ) |
3767 sed "s/^/$as_me: WARNING: /" >&2
3768 ;;
3769esac
3770echo "$as_me:$LINENO: checking for minix/config.h" >&5
3771echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3772if test "${ac_cv_header_minix_config_h+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 ac_cv_header_minix_config_h=$ac_header_preproc
3776fi
3777echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3778echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3779
3780fi
3781if test $ac_cv_header_minix_config_h = yes; then
3782 MINIX=yes
3783else
3784 MINIX=
3785fi
3786
3787
3788if test "$MINIX" = yes; then
3789
3790cat >>confdefs.h <<\_ACEOF
3791#define _POSIX_SOURCE 1
3792_ACEOF
3793
3794
3795cat >>confdefs.h <<\_ACEOF
3796#define _POSIX_1_SOURCE 2
3797_ACEOF
3798
3799
3800cat >>confdefs.h <<\_ACEOF
3801#define _MINIX 1
3802_ACEOF
3803
3804fi
3805
3806# Find a good install program. We prefer a C program (faster),
3807# so one script is as good as another. But avoid the broken or
3808# incompatible versions:
3809# SysV /etc/install, /usr/sbin/install
3810# SunOS /usr/etc/install
3811# IRIX /sbin/install
3812# AIX /bin/install
3813# AmigaOS /C/install, which installs bootblocks on floppy discs
3814# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3815# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3816# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3817# OS/2's system install, which has a completely different semantic
3818# ./install, which can be erroneously created by make from ./install.sh.
3819echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3820echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3821if test -z "$INSTALL"; then
3822if test "${ac_cv_path_install+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 # Account for people who put trailing slashes in PATH elements.
3831case $as_dir/ in
3832 ./ | .// | /cC/* | \
3833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3834 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3835 /usr/ucb/* ) ;;
3836 *)
3837 # OSF1 and SCO ODT 3.0 have their own names for install.
3838 # Don't use installbsd from OSF since it installs stuff as root
3839 # by default.
3840 for ac_prog in ginstall scoinst install; do
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3843 if test $ac_prog = install &&
3844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3845 # AIX install. It has an incompatible calling convention.
3846 :
3847 elif test $ac_prog = install &&
3848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3849 # program-specific install script used by HP pwplus--don't use.
3850 :
3851 else
3852 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3853 break 3
3854 fi
3855 fi
3856 done
3857 done
3858 ;;
3859esac
3860done
3861
3862
3863fi
3864 if test "${ac_cv_path_install+set}" = set; then
3865 INSTALL=$ac_cv_path_install
3866 else
3867 # As a last resort, use the slow shell script. We don't cache a
3868 # path for INSTALL within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the path is relative.
3871 INSTALL=$ac_install_sh
3872 fi
3873fi
3874echo "$as_me:$LINENO: result: $INSTALL" >&5
3875echo "${ECHO_T}$INSTALL" >&6
3876
3877# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3878# It thinks the first close brace ends the variable substitution.
3879test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3880
3881test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3882
3883test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3884
3885echo "$as_me:$LINENO: checking whether ln -s works" >&5
3886echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3887LN_S=$as_ln_s
3888if test "$LN_S" = "ln -s"; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890echo "${ECHO_T}yes" >&6
3891else
3892 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3893echo "${ECHO_T}no, using $LN_S" >&6
3894fi
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3903set dummy ${ac_tool_prefix}gcc; ac_word=$2
3904echo "$as_me:$LINENO: checking for $ac_word" >&5
3905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906if test "${ac_cv_prog_CC+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924done
3925
3926fi
3927fi
3928CC=$ac_cv_prog_CC
3929if test -n "$CC"; then
3930 echo "$as_me:$LINENO: result: $CC" >&5
3931echo "${ECHO_T}$CC" >&6
3932else
3933 echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
3935fi
3936
3937fi
3938if test -z "$ac_cv_prog_CC"; then
3939 ac_ct_CC=$CC
3940 # Extract the first word of "gcc", so it can be a program name with args.
3941set dummy gcc; ac_word=$2
3942echo "$as_me:$LINENO: checking for $ac_word" >&5
3943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947 if test -n "$ac_ct_CC"; then
3948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3949else
3950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
3952do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_prog_ac_ct_CC="gcc"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961done
3962done
3963
3964fi
3965fi
3966ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967if test -n "$ac_ct_CC"; then
3968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3969echo "${ECHO_T}$ac_ct_CC" >&6
3970else
3971 echo "$as_me:$LINENO: result: no" >&5
3972echo "${ECHO_T}no" >&6
3973fi
3974
3975 CC=$ac_ct_CC
3976else
3977 CC="$ac_cv_prog_CC"
3978fi
3979
3980if test -z "$CC"; then
3981 if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3983set dummy ${ac_tool_prefix}cc; ac_word=$2
3984echo "$as_me:$LINENO: checking for $ac_word" >&5
3985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986if test "${ac_cv_prog_CC+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_prog_CC="${ac_tool_prefix}cc"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003done
4004done
4005
4006fi
4007fi
4008CC=$ac_cv_prog_CC
4009if test -n "$CC"; then
4010 echo "$as_me:$LINENO: result: $CC" >&5
4011echo "${ECHO_T}$CC" >&6
4012else
4013 echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
4015fi
4016
4017fi
4018if test -z "$ac_cv_prog_CC"; then
4019 ac_ct_CC=$CC
4020 # Extract the first word of "cc", so it can be a program name with args.
4021set dummy cc; ac_word=$2
4022echo "$as_me:$LINENO: checking for $ac_word" >&5
4023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027 if test -n "$ac_ct_CC"; then
4028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_ac_ct_CC="cc"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4040 fi
4041done
4042done
4043
4044fi
4045fi
4046ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047if test -n "$ac_ct_CC"; then
4048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4049echo "${ECHO_T}$ac_ct_CC" >&6
4050else
4051 echo "$as_me:$LINENO: result: no" >&5
4052echo "${ECHO_T}no" >&6
4053fi
4054
4055 CC=$ac_ct_CC
4056else
4057 CC="$ac_cv_prog_CC"
4058fi
4059
4060fi
4061if test -z "$CC"; then
4062 # Extract the first word of "cc", so it can be a program name with args.
4063set dummy cc; ac_word=$2
4064echo "$as_me:$LINENO: checking for $ac_word" >&5
4065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066if test "${ac_cv_prog_CC+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069 if test -n "$CC"; then
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4071else
4072 ac_prog_rejected=no
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4081 ac_prog_rejected=yes
4082 continue
4083 fi
4084 ac_cv_prog_CC="cc"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088done
4089done
4090
4091if test $ac_prog_rejected = yes; then
4092 # We found a bogon in the path, so make sure we never use it.
4093 set dummy $ac_cv_prog_CC
4094 shift
4095 if test $# != 0; then
4096 # We chose a different compiler from the bogus one.
4097 # However, it has the same basename, so the bogon will be chosen
4098 # first if we set CC to just the basename; use the full file name.
4099 shift
4100 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4101 fi
4102fi
4103fi
4104fi
4105CC=$ac_cv_prog_CC
4106if test -n "$CC"; then
4107 echo "$as_me:$LINENO: result: $CC" >&5
4108echo "${ECHO_T}$CC" >&6
4109else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112fi
4113
4114fi
4115if test -z "$CC"; then
4116 if test -n "$ac_tool_prefix"; then
4117 for ac_prog in cl
4118 do
4119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4120set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4121echo "$as_me:$LINENO: checking for $ac_word" >&5
4122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123if test "${ac_cv_prog_CC+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128else
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140done
4141done
4142
4143fi
4144fi
4145CC=$ac_cv_prog_CC
4146if test -n "$CC"; then
4147 echo "$as_me:$LINENO: result: $CC" >&5
4148echo "${ECHO_T}$CC" >&6
4149else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152fi
4153
4154 test -n "$CC" && break
4155 done
4156fi
4157if test -z "$CC"; then
4158 ac_ct_CC=$CC
4159 for ac_prog in cl
4160do
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162set dummy $ac_prog; ac_word=$2
4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168 if test -n "$ac_ct_CC"; then
4169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_CC="$ac_prog"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183done
4184
4185fi
4186fi
4187ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188if test -n "$ac_ct_CC"; then
4189 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4190echo "${ECHO_T}$ac_ct_CC" >&6
4191else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194fi
4195
4196 test -n "$ac_ct_CC" && break
4197done
4198
4199 CC=$ac_ct_CC
4200fi
4201
4202fi
4203
4204
4205test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4206See \`config.log' for more details." >&5
4207echo "$as_me: error: no acceptable C compiler found in \$PATH
4208See \`config.log' for more details." >&2;}
4209 { (exit 1); exit 1; }; }
4210
4211# Provide some information about the compiler.
4212echo "$as_me:$LINENO:" \
4213 "checking for C compiler version" >&5
4214ac_compiler=`set X $ac_compile; echo $2`
4215{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4216 (eval $ac_compiler --version </dev/null >&5) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }
4220{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4221 (eval $ac_compiler -v </dev/null >&5) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }
4225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4226 (eval $ac_compiler -V </dev/null >&5) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }
4230
4231echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4232echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4233if test "${ac_cv_c_compiler_gnu+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
4236 cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h. */
4242
4243int
4244main ()
4245{
4246#ifndef __GNUC__
4247 choke me
4248#endif
4249
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_compiler_gnu=yes
4277else
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281ac_compiler_gnu=no
4282fi
4283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284ac_cv_c_compiler_gnu=$ac_compiler_gnu
4285
4286fi
4287echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4288echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4289GCC=`test $ac_compiler_gnu = yes && echo yes`
4290ac_test_CFLAGS=${CFLAGS+set}
4291ac_save_CFLAGS=$CFLAGS
4292CFLAGS="-g"
4293echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4294echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4295if test "${ac_cv_prog_cc_g+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 cat >conftest.$ac_ext <<_ACEOF
4299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
4304
4305int
4306main ()
4307{
4308
4309 ;
4310 return 0;
4311}
4312_ACEOF
4313rm -f conftest.$ac_objext
4314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -z "$ac_c_werror_flag"
4323 || test ! -s conftest.err'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_prog_cc_g=yes
4336else
4337 echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340ac_cv_prog_cc_g=no
4341fi
4342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4345echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4346if test "$ac_test_CFLAGS" = set; then
4347 CFLAGS=$ac_save_CFLAGS
4348elif test $ac_cv_prog_cc_g = yes; then
4349 if test "$GCC" = yes; then
4350 CFLAGS="-g -O2"
4351 else
4352 CFLAGS="-g"
4353 fi
4354else
4355 if test "$GCC" = yes; then
4356 CFLAGS="-O2"
4357 else
4358 CFLAGS=
4359 fi
4360fi
4361echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4362echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4363if test "${ac_cv_prog_cc_stdc+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 ac_cv_prog_cc_stdc=no
4367ac_save_CC=$CC
4368cat >conftest.$ac_ext <<_ACEOF
4369/* confdefs.h. */
4370_ACEOF
4371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
4373/* end confdefs.h. */
4374#include <stdarg.h>
4375#include <stdio.h>
4376#include <sys/types.h>
4377#include <sys/stat.h>
4378/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4379struct buf { int x; };
4380FILE * (*rcsopen) (struct buf *, struct stat *, int);
4381static char *e (p, i)
4382 char **p;
4383 int i;
4384{
4385 return p[i];
4386}
4387static char *f (char * (*g) (char **, int), char **p, ...)
4388{
4389 char *s;
4390 va_list v;
4391 va_start (v,p);
4392 s = g (p, va_arg (v,int));
4393 va_end (v);
4394 return s;
4395}
4396
4397/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4398 function prototypes and stuff, but not '\xHH' hex character constants.
4399 These don't provoke an error unfortunately, instead are silently treated
4400 as 'x'. The following induces an error, until -std1 is added to get
4401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4402 array size at least. It's necessary to write '\x00'==0 to get something
4403 that's true only with -std1. */
4404int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4405
4406int test (int i, double x);
4407struct s1 {int (*f) (int a);};
4408struct s2 {int (*f) (double a);};
4409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4410int argc;
4411char **argv;
4412int
4413main ()
4414{
4415return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4416 ;
4417 return 0;
4418}
4419_ACEOF
4420# Don't try gcc -ansi; that turns off useful extensions and
4421# breaks some systems' header files.
4422# AIX -qlanglvl=ansi
4423# Ultrix and OSF/1 -std1
4424# HP-UX 10.20 and later -Ae
4425# HP-UX older versions -Aa -D_HPUX_SOURCE
4426# SVR4 -Xc -D__EXTENSIONS__
4427for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4428do
4429 CC="$ac_save_CC $ac_arg"
4430 rm -f conftest.$ac_objext
4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_prog_cc_stdc=$ac_arg
4453break
4454else
4455 echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458fi
4459rm -f conftest.err conftest.$ac_objext
4460done
4461rm -f conftest.$ac_ext conftest.$ac_objext
4462CC=$ac_save_CC
4463
4464fi
4465
4466case "x$ac_cv_prog_cc_stdc" in
4467 x|xno)
4468 echo "$as_me:$LINENO: result: none needed" >&5
4469echo "${ECHO_T}none needed" >&6 ;;
4470 *)
4471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4472echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4473 CC="$CC $ac_cv_prog_cc_stdc" ;;
4474esac
4475
4476# Some people use a C++ compiler to compile C. Since we use `exit',
4477# in C++ we need to declare it. In case someone uses the same compiler
4478# for both compiling C and C++ we need to have the C++ compiler decide
4479# the declaration of exit, since it's the most demanding environment.
4480cat >conftest.$ac_ext <<_ACEOF
4481#ifndef __cplusplus
4482 choke me
4483#endif
4484_ACEOF
4485rm -f conftest.$ac_objext
4486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -z "$ac_c_werror_flag"
4495 || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 for ac_declaration in \
4508 '' \
4509 'extern "C" void std::exit (int) throw (); using std::exit;' \
4510 'extern "C" void std::exit (int); using std::exit;' \
4511 'extern "C" void exit (int) throw ();' \
4512 'extern "C" void exit (int);' \
4513 'void exit (int);'
4514do
4515 cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
4521$ac_declaration
4522#include <stdlib.h>
4523int
4524main ()
4525{
4526exit (42);
4527 ;
4528 return 0;
4529}
4530_ACEOF
4531rm -f conftest.$ac_objext
4532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 :
4554else
4555 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558continue
4559fi
4560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
4567$ac_declaration
4568int
4569main ()
4570{
4571exit (42);
4572 ;
4573 return 0;
4574}
4575_ACEOF
4576rm -f conftest.$ac_objext
4577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578 (eval $ac_compile) 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } &&
4585 { ac_try='test -z "$ac_c_werror_flag"
4586 || test ! -s conftest.err'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; } &&
4592 { ac_try='test -s conftest.$ac_objext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 break
4599else
4600 echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603fi
4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605done
4606rm -f conftest*
4607if test -n "$ac_declaration"; then
4608 echo '#ifdef __cplusplus' >>confdefs.h
4609 echo $ac_declaration >>confdefs.h
4610 echo '#endif' >>confdefs.h
4611fi
4612
4613else
4614 echo "$as_me: failed program was:" >&5
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
4617fi
4618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619ac_ext=c
4620ac_cpp='$CPP $CPPFLAGS'
4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625depcc="$CC" am_compiler_list=
4626
4627echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4628echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4629if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4633 # We make a subdir and do the tests there. Otherwise we can end up
4634 # making bogus files that we don't know about and never remove. For
4635 # instance it was reported that on HP-UX the gcc test will end up
4636 # making a dummy file named `D' -- because `-MD' means `put the output
4637 # in D'.
4638 mkdir conftest.dir
4639 # Copy depcomp to subdir because otherwise we won't find it if we're
4640 # using a relative directory.
4641 cp "$am_depcomp" conftest.dir
4642 cd conftest.dir
4643 # We will build objects and dependencies in a subdirectory because
4644 # it helps to detect inapplicable dependency modes. For instance
4645 # both Tru64's cc and ICC support -MD to output dependencies as a
4646 # side effect of compilation, but ICC will put the dependencies in
4647 # the current directory while Tru64 will put them in the object
4648 # directory.
4649 mkdir sub
4650
4651 am_cv_CC_dependencies_compiler_type=none
4652 if test "$am_compiler_list" = ""; then
4653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4654 fi
4655 for depmode in $am_compiler_list; do
4656 # Setup a source with many dependencies, because some compilers
4657 # like to wrap large dependency lists on column 80 (with \), and
4658 # we should not choose a depcomp mode which is confused by this.
4659 #
4660 # We need to recreate these files for each test, as the compiler may
4661 # overwrite some of them when testing with obscure command lines.
4662 # This happens at least with the AIX C compiler.
4663 : > sub/conftest.c
4664 for i in 1 2 3 4 5 6; do
4665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4666 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4667 # Solaris 8's {/usr,}/bin/sh.
4668 touch sub/conftst$i.h
4669 done
4670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4671
4672 case $depmode in
4673 nosideeffect)
4674 # after this tag, mechanisms are not by side-effect, so they'll
4675 # only be used when explicitly requested
4676 if test "x$enable_dependency_tracking" = xyes; then
4677 continue
4678 else
4679 break
4680 fi
4681 ;;
4682 none) break ;;
4683 esac
4684 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4685 # mode. It turns out that the SunPro C++ compiler does not properly
4686 # handle `-M -o', and we need to detect this.
4687 if depmode=$depmode \
4688 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4689 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4690 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4691 >/dev/null 2>conftest.err &&
4692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4693 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4695 # icc doesn't choke on unknown options, it will just issue warnings
4696 # or remarks (even with -Werror). So we grep stderr for any message
4697 # that says an option was ignored or not supported.
4698 # When given -MP, icc 7.0 and 7.1 complain thusly:
4699 # icc: Command line warning: ignoring option '-M'; no argument required
4700 # The diagnosis changed in icc 8.0:
4701 # icc: Command line remark: option '-MP' not supported
4702 if (grep 'ignoring option' conftest.err ||
4703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4704 am_cv_CC_dependencies_compiler_type=$depmode
4705 break
4706 fi
4707 fi
4708 done
4709
4710 cd ..
4711 rm -rf conftest.dir
4712else
4713 am_cv_CC_dependencies_compiler_type=none
4714fi
4715
4716fi
4717echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4718echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4719CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4720
4721
4722
4723if
4724 test "x$enable_dependency_tracking" != xno \
4725 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4726 am__fastdepCC_TRUE=
4727 am__fastdepCC_FALSE='#'
4728else
4729 am__fastdepCC_TRUE='#'
4730 am__fastdepCC_FALSE=
4731fi
4732
4733
4734for ac_prog in ps
4735do
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737set dummy $ac_prog; ac_word=$2
4738echo "$as_me:$LINENO: checking for $ac_word" >&5
4739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740if test "${ac_cv_path_PS+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743 case $PS in
4744 [\\/]* | ?:[\\/]*)
4745 ac_cv_path_PS="$PS" # Let the user override the test with a path.
4746 ;;
4747 *)
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $LPATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759done
4760done
4761
4762 ;;
4763esac
4764fi
4765PS=$ac_cv_path_PS
4766
4767if test -n "$PS"; then
4768 echo "$as_me:$LINENO: result: $PS" >&5
4769echo "${ECHO_T}$PS" >&6
4770else
4771 echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773fi
4774
4775 test -n "$PS" && break
4776done
4777test -n "$PS" || PS="ps"
4778
4779for ac_prog in w
4780do
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782set dummy $ac_prog; ac_word=$2
4783echo "$as_me:$LINENO: checking for $ac_word" >&5
4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785if test "${ac_cv_path_W+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 case $W in
4789 [\\/]* | ?:[\\/]*)
4790 ac_cv_path_W="$W" # Let the user override the test with a path.
4791 ;;
4792 *)
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $LPATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804done
4805done
4806
4807 ;;
4808esac
4809fi
4810W=$ac_cv_path_W
4811
4812if test -n "$W"; then
4813 echo "$as_me:$LINENO: result: $W" >&5
4814echo "${ECHO_T}$W" >&6
4815else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818fi
4819
4820 test -n "$W" && break
4821done
4822test -n "$W" || W="w"
4823
4824# Check whether --enable-shared or --disable-shared was given.
4825if test "${enable_shared+set}" = set; then
4826 enableval="$enable_shared"
4827 p=${PACKAGE-default}
4828 case $enableval in
4829 yes) enable_shared=yes ;;
4830 no) enable_shared=no ;;
4831 *)
4832 enable_shared=no
4833 # Look at the argument we got. We use all the common list separators.
4834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4835 for pkg in $enableval; do
4836 IFS="$lt_save_ifs"
4837 if test "X$pkg" = "X$p"; then
4838 enable_shared=yes
4839 fi
4840 done
4841 IFS="$lt_save_ifs"
4842 ;;
4843 esac
4844else
4845 enable_shared=yes
4846fi;
4847
4848# Check whether --enable-static or --disable-static was given.
4849if test "${enable_static+set}" = set; then
4850 enableval="$enable_static"
4851 p=${PACKAGE-default}
4852 case $enableval in
4853 yes) enable_static=yes ;;
4854 no) enable_static=no ;;
4855 *)
4856 enable_static=no
4857 # Look at the argument we got. We use all the common list separators.
4858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4859 for pkg in $enableval; do
4860 IFS="$lt_save_ifs"
4861 if test "X$pkg" = "X$p"; then
4862 enable_static=yes
4863 fi
4864 done
4865 IFS="$lt_save_ifs"
4866 ;;
4867 esac
4868else
4869 enable_static=yes
4870fi;
4871
4872# Check whether --enable-fast-install or --disable-fast-install was given.
4873if test "${enable_fast_install+set}" = set; then
4874 enableval="$enable_fast_install"
4875 p=${PACKAGE-default}
4876 case $enableval in
4877 yes) enable_fast_install=yes ;;
4878 no) enable_fast_install=no ;;
4879 *)
4880 enable_fast_install=no
4881 # Look at the argument we got. We use all the common list separators.
4882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4883 for pkg in $enableval; do
4884 IFS="$lt_save_ifs"
4885 if test "X$pkg" = "X$p"; then
4886 enable_fast_install=yes
4887 fi
4888 done
4889 IFS="$lt_save_ifs"
4890 ;;
4891 esac
4892else
4893 enable_fast_install=yes
4894fi;
4895
4896# Make sure we can run config.sub.
4897$ac_config_sub sun4 >/dev/null 2>&1 ||
4898 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4899echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4900 { (exit 1); exit 1; }; }
4901
4902echo "$as_me:$LINENO: checking build system type" >&5
4903echo $ECHO_N "checking build system type... $ECHO_C" >&6
4904if test "${ac_cv_build+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907 ac_cv_build_alias=$build_alias
4908test -z "$ac_cv_build_alias" &&
4909 ac_cv_build_alias=`$ac_config_guess`
4910test -z "$ac_cv_build_alias" &&
4911 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4912echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4913 { (exit 1); exit 1; }; }
4914ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4915 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4916echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4917 { (exit 1); exit 1; }; }
4918
4919fi
4920echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4921echo "${ECHO_T}$ac_cv_build" >&6
4922build=$ac_cv_build
4923build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4924build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4925build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4926
4927
4928echo "$as_me:$LINENO: checking host system type" >&5
4929echo $ECHO_N "checking host system type... $ECHO_C" >&6
4930if test "${ac_cv_host+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933 ac_cv_host_alias=$host_alias
4934test -z "$ac_cv_host_alias" &&
4935 ac_cv_host_alias=$ac_cv_build_alias
4936ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4937 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4938echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4939 { (exit 1); exit 1; }; }
4940
4941fi
4942echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4943echo "${ECHO_T}$ac_cv_host" >&6
4944host=$ac_cv_host
4945host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4946host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4947host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4948
4949
4950echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4951echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4952if test "${lt_cv_path_SED+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955 # Loop through the user's path and test for sed and gsed.
4956# Then use that list of sed's as ones to test for truncation.
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for lt_ac_prog in sed gsed; do
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4965 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4966 fi
4967 done
4968 done
4969done
4970IFS=$as_save_IFS
4971lt_ac_max=0
4972lt_ac_count=0
4973# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4974# along with /bin/sed that truncates output.
4975for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4976 test ! -f $lt_ac_sed && continue
4977 cat /dev/null > conftest.in
4978 lt_ac_count=0
4979 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4980 # Check for GNU sed and select it if it is found.
4981 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4982 lt_cv_path_SED=$lt_ac_sed
4983 break
4984 fi
4985 while true; do
4986 cat conftest.in conftest.in >conftest.tmp
4987 mv conftest.tmp conftest.in
4988 cp conftest.in conftest.nl
4989 echo >>conftest.nl
4990 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4991 cmp -s conftest.out conftest.nl || break
4992 # 10000 chars as input seems more than enough
4993 test $lt_ac_count -gt 10 && break
4994 lt_ac_count=`expr $lt_ac_count + 1`
4995 if test $lt_ac_count -gt $lt_ac_max; then
4996 lt_ac_max=$lt_ac_count
4997 lt_cv_path_SED=$lt_ac_sed
4998 fi
4999 done
5000done
5001
5002fi
5003
5004SED=$lt_cv_path_SED
5005
5006echo "$as_me:$LINENO: result: $SED" >&5
5007echo "${ECHO_T}$SED" >&6
5008
5009
5010# Check whether --with-gnu-ld or --without-gnu-ld was given.
5011if test "${with_gnu_ld+set}" = set; then
5012 withval="$with_gnu_ld"
5013 test "$withval" = no || with_gnu_ld=yes
5014else
5015 with_gnu_ld=no
5016fi;
5017ac_prog=ld
5018if test "$GCC" = yes; then
5019 # Check if gcc -print-prog-name=ld gives a path.
5020 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5021echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5022 case $host in
5023 *-*-mingw*)
5024 # gcc leaves a trailing carriage return which upsets mingw
5025 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5026 *)
5027 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5028 esac
5029 case $ac_prog in
5030 # Accept absolute paths.
5031 [\\/]* | ?:[\\/]*)
5032 re_direlt='/[^/][^/]*/\.\./'
5033 # Canonicalize the pathname of ld
5034 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5035 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5036 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5037 done
5038 test -z "$LD" && LD="$ac_prog"
5039 ;;
5040 "")
5041 # If it fails, then pretend we aren't using GCC.
5042 ac_prog=ld
5043 ;;
5044 *)
5045 # If it is relative, then search for the first ld in PATH.
5046 with_gnu_ld=unknown
5047 ;;
5048 esac
5049elif test "$with_gnu_ld" = yes; then
5050 echo "$as_me:$LINENO: checking for GNU ld" >&5
5051echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5052else
5053 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5054echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5055fi
5056if test "${lt_cv_path_LD+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059 if test -z "$LD"; then
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH; do
5062 IFS="$lt_save_ifs"
5063 test -z "$ac_dir" && ac_dir=.
5064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5065 lt_cv_path_LD="$ac_dir/$ac_prog"
5066 # Check to see if the program is GNU ld. I'd rather use --version,
5067 # but apparently some variants of GNU ld only accept -v.
5068 # Break only if it was the GNU/non-GNU ld that we prefer.
5069 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5070 *GNU* | *'with BFD'*)
5071 test "$with_gnu_ld" != no && break
5072 ;;
5073 *)
5074 test "$with_gnu_ld" != yes && break
5075 ;;
5076 esac
5077 fi
5078 done
5079 IFS="$lt_save_ifs"
5080else
5081 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5082fi
5083fi
5084
5085LD="$lt_cv_path_LD"
5086if test -n "$LD"; then
5087 echo "$as_me:$LINENO: result: $LD" >&5
5088echo "${ECHO_T}$LD" >&6
5089else
5090 echo "$as_me:$LINENO: result: no" >&5
5091echo "${ECHO_T}no" >&6
5092fi
5093test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5094echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5095 { (exit 1); exit 1; }; }
5096echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5097echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5098if test "${lt_cv_prog_gnu_ld+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5102case `$LD -v 2>&1 </dev/null` in
5103*GNU* | *'with BFD'*)
5104 lt_cv_prog_gnu_ld=yes
5105 ;;
5106*)
5107 lt_cv_prog_gnu_ld=no
5108 ;;
5109esac
5110fi
5111echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5112echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5113with_gnu_ld=$lt_cv_prog_gnu_ld
5114
5115
5116echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5117echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5118if test "${lt_cv_ld_reload_flag+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121 lt_cv_ld_reload_flag='-r'
5122fi
5123echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5124echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5125reload_flag=$lt_cv_ld_reload_flag
5126case $reload_flag in
5127"" | " "*) ;;
5128*) reload_flag=" $reload_flag" ;;
5129esac
5130reload_cmds='$LD$reload_flag -o $output$reload_objs'
5131case $host_os in
5132 darwin*)
5133 if test "$GCC" = yes; then
5134 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5135 else
5136 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5137 fi
5138 ;;
5139esac
5140
5141echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5142echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5143if test "${lt_cv_path_NM+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 if test -n "$NM"; then
5147 # Let the user override the test.
5148 lt_cv_path_NM="$NM"
5149else
5150 lt_nm_to_check="${ac_tool_prefix}nm"
5151 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5152 lt_nm_to_check="$lt_nm_to_check nm"
5153 fi
5154 for lt_tmp_nm in $lt_nm_to_check; do
5155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5156 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5157 IFS="$lt_save_ifs"
5158 test -z "$ac_dir" && ac_dir=.
5159 tmp_nm="$ac_dir/$lt_tmp_nm"
5160 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5161 # Check to see if the nm accepts a BSD-compat flag.
5162 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5163 # nm: unknown option "B" ignored
5164 # Tru64's nm complains that /dev/null is an invalid object file
5165 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5166 */dev/null* | *'Invalid file or object type'*)
5167 lt_cv_path_NM="$tmp_nm -B"
5168 break
5169 ;;
5170 *)
5171 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5172 */dev/null*)
5173 lt_cv_path_NM="$tmp_nm -p"
5174 break
5175 ;;
5176 *)
5177 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5178 continue # so that we can try to find one that supports BSD flags
5179 ;;
5180 esac
5181 ;;
5182 esac
5183 fi
5184 done
5185 IFS="$lt_save_ifs"
5186 done
5187 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5188fi
5189fi
5190echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5191echo "${ECHO_T}$lt_cv_path_NM" >&6
5192NM="$lt_cv_path_NM"
5193
5194echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5195echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5196if test "${lt_cv_deplibs_check_method+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 lt_cv_file_magic_cmd='$MAGIC_CMD'
5200lt_cv_file_magic_test_file=
5201lt_cv_deplibs_check_method='unknown'
5202# Need to set the preceding variable on all platforms that support
5203# interlibrary dependencies.
5204# 'none' -- dependencies not supported.
5205# `unknown' -- same as none, but documents that we really don't know.
5206# 'pass_all' -- all dependencies passed with no checks.
5207# 'test_compile' -- check by making test program.
5208# 'file_magic [[regex]]' -- check by looking for files in library path
5209# which responds to the $file_magic_cmd with a given extended regex.
5210# If you have `file' or equivalent on your system and you're not sure
5211# whether `pass_all' will *always* work, you probably want this one.
5212
5213case $host_os in
5214aix4* | aix5*)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217
5218beos*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222bsdi[45]*)
5223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5224 lt_cv_file_magic_cmd='/usr/bin/file -L'
5225 lt_cv_file_magic_test_file=/shlib/libc.so
5226 ;;
5227
5228cygwin*)
5229 # func_win32_libid is a shell function defined in ltmain.sh
5230 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5231 lt_cv_file_magic_cmd='func_win32_libid'
5232 ;;
5233
5234mingw* | pw32*)
5235 # Base MSYS/MinGW do not provide the 'file' command needed by
5236 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5237 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5238 lt_cv_file_magic_cmd='$OBJDUMP -f'
5239 ;;
5240
5241darwin* | rhapsody*)
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244
5245freebsd* | kfreebsd*-gnu | dragonfly*)
5246 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5247 case $host_cpu in
5248 i*86 )
5249 # Not sure whether the presence of OpenBSD here was a mistake.
5250 # Let's accept both of them until this is cleared up.
5251 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5252 lt_cv_file_magic_cmd=/usr/bin/file
5253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5254 ;;
5255 esac
5256 else
5257 lt_cv_deplibs_check_method=pass_all
5258 fi
5259 ;;
5260
5261gnu*)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264
5265hpux10.20* | hpux11*)
5266 lt_cv_file_magic_cmd=/usr/bin/file
5267 case $host_cpu in
5268 ia64*)
5269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5270 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5271 ;;
5272 hppa*64*)
5273 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]'
5274 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5275 ;;
5276 *)
5277 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5278 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5279 ;;
5280 esac
5281 ;;
5282
5283interix3*)
5284 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5286 ;;
5287
5288irix5* | irix6* | nonstopux*)
5289 case $LD in
5290 *-32|*"-32 ") libmagic=32-bit;;
5291 *-n32|*"-n32 ") libmagic=N32;;
5292 *-64|*"-64 ") libmagic=64-bit;;
5293 *) libmagic=never-match;;
5294 esac
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298# This must be Linux ELF.
5299linux*)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302
5303netbsd*)
5304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5306 else
5307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5308 fi
5309 ;;
5310
5311newos6*)
5312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5313 lt_cv_file_magic_cmd=/usr/bin/file
5314 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5315 ;;
5316
5317nto-qnx*)
5318 lt_cv_deplibs_check_method=unknown
5319 ;;
5320
5321openbsd*)
5322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5324 else
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5326 fi
5327 ;;
5328
5329osf3* | osf4* | osf5*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333solaris*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336
5337sysv4 | sysv4.3*)
5338 case $host_vendor in
5339 motorola)
5340 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]'
5341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5342 ;;
5343 ncr)
5344 lt_cv_deplibs_check_method=pass_all
5345 ;;
5346 sequent)
5347 lt_cv_file_magic_cmd='/bin/file'
5348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5349 ;;
5350 sni)
5351 lt_cv_file_magic_cmd='/bin/file'
5352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5353 lt_cv_file_magic_test_file=/lib/libc.so
5354 ;;
5355 siemens)
5356 lt_cv_deplibs_check_method=pass_all
5357 ;;
5358 pc)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361 esac
5362 ;;
5363
5364sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
5367esac
5368
5369fi
5370echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5371echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5372file_magic_cmd=$lt_cv_file_magic_cmd
5373deplibs_check_method=$lt_cv_deplibs_check_method
5374test -z "$deplibs_check_method" && deplibs_check_method=unknown
5375
5376
5377
5378
5379# If no C compiler was specified, use CC.
5380LTCC=${LTCC-"$CC"}
5381
5382# If no C compiler flags were specified, use CFLAGS.
5383LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5384
5385# Allow CC to be a program name with arguments.
5386compiler=$CC
5387
5388# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5389if test "${enable_libtool_lock+set}" = set; then
5390 enableval="$enable_libtool_lock"
5391
5392fi;
5393test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5394
5395# Some flags need to be propagated to the compiler or linker for good
5396# libtool support.
5397case $host in
5398ia64-*-hpux*)
5399 # Find out which ABI we are using.
5400 echo 'int i;' > conftest.$ac_ext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; then
5406 case `/usr/bin/file conftest.$ac_objext` in
5407 *ELF-32*)
5408 HPUX_IA64_MODE="32"
5409 ;;
5410 *ELF-64*)
5411 HPUX_IA64_MODE="64"
5412 ;;
5413 esac
5414 fi
5415 rm -rf conftest*
5416 ;;
5417*-*-irix6*)
5418 # Find out which ABI we are using.
5419 echo '#line 5419 "configure"' > conftest.$ac_ext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; then
5425 if test "$lt_cv_prog_gnu_ld" = yes; then
5426 case `/usr/bin/file conftest.$ac_objext` in
5427 *32-bit*)
5428 LD="${LD-ld} -melf32bsmip"
5429 ;;
5430 *N32*)
5431 LD="${LD-ld} -melf32bmipn32"
5432 ;;
5433 *64-bit*)
5434 LD="${LD-ld} -melf64bmip"
5435 ;;
5436 esac
5437 else
5438 case `/usr/bin/file conftest.$ac_objext` in
5439 *32-bit*)
5440 LD="${LD-ld} -32"
5441 ;;
5442 *N32*)
5443 LD="${LD-ld} -n32"
5444 ;;
5445 *64-bit*)
5446 LD="${LD-ld} -64"
5447 ;;
5448 esac
5449 fi
5450 fi
5451 rm -rf conftest*
5452 ;;
5453
5454x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5455 # Find out which ABI we are using.
5456 echo 'int i;' > conftest.$ac_ext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; then
5462 case `/usr/bin/file conftest.o` in
5463 *32-bit*)
5464 case $host in
5465 x86_64-*linux*)
5466 LD="${LD-ld} -m elf_i386"
5467 ;;
5468 ppc64-*linux*|powerpc64-*linux*)
5469 LD="${LD-ld} -m elf32ppclinux"
5470 ;;
5471 s390x-*linux*)
5472 LD="${LD-ld} -m elf_s390"
5473 ;;
5474 sparc64-*linux*)
5475 LD="${LD-ld} -m elf32_sparc"
5476 ;;
5477 esac
5478 ;;
5479 *64-bit*)
5480 case $host in
5481 x86_64-*linux*)
5482 LD="${LD-ld} -m elf_x86_64"
5483 ;;
5484 ppc*-*linux*|powerpc*-*linux*)
5485 LD="${LD-ld} -m elf64ppc"
5486 ;;
5487 s390*-*linux*)
5488 LD="${LD-ld} -m elf64_s390"
5489 ;;
5490 sparc*-*linux*)
5491 LD="${LD-ld} -m elf64_sparc"
5492 ;;
5493 esac
5494 ;;
5495 esac
5496 fi
5497 rm -rf conftest*
5498 ;;
5499
5500*-*-sco3.2v5*)
5501 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5502 SAVE_CFLAGS="$CFLAGS"
5503 CFLAGS="$CFLAGS -belf"
5504 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5505echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5506if test "${lt_cv_cc_needs_belf+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509 ac_ext=c
5510ac_cpp='$CPP $CPPFLAGS'
5511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513ac_compiler_gnu=$ac_cv_c_compiler_gnu
5514
5515 cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
5521
5522int
5523main ()
5524{
5525
5526 ;
5527 return 0;
5528}
5529_ACEOF
5530rm -f conftest.$ac_objext conftest$ac_exeext
5531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532 (eval $ac_link) 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag"
5540 || test ! -s conftest.err'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 lt_cv_cc_needs_belf=yes
5553else
5554 echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557lt_cv_cc_needs_belf=no
5558fi
5559rm -f conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5561 ac_ext=c
5562ac_cpp='$CPP $CPPFLAGS'
5563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566
5567fi
5568echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5569echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5570 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5571 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5572 CFLAGS="$SAVE_CFLAGS"
5573 fi
5574 ;;
5575sparc*-*solaris*)
5576 # Find out which ABI we are using.
5577 echo 'int i;' > conftest.$ac_ext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579 (eval $ac_compile) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; then
5583 case `/usr/bin/file conftest.o` in
5584 *64-bit*)
5585 case $lt_cv_prog_gnu_ld in
5586 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5587 *) LD="${LD-ld} -64" ;;
5588 esac
5589 ;;
5590 esac
5591 fi
5592 rm -rf conftest*
5593 ;;
5594
5595
5596esac
5597
5598need_locks="$enable_libtool_lock"
5599
5600
5601
5602for ac_header in dlfcn.h
5603do
5604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606 echo "$as_me:$LINENO: checking for $ac_header" >&5
5607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5608if eval "test \"\${$as_ac_Header+set}\" = set"; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610fi
5611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5613else
5614 # Is the header compilable?
5615echo "$as_me:$LINENO: checking $ac_header usability" >&5
5616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5617cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623$ac_includes_default
5624#include <$ac_header>
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag"
5636 || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest.$ac_objext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 ac_header_compiler=yes
5649else
5650 echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653ac_header_compiler=no
5654fi
5655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5657echo "${ECHO_T}$ac_header_compiler" >&6
5658
5659# Is the header present?
5660echo "$as_me:$LINENO: checking $ac_header presence" >&5
5661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5662cat >conftest.$ac_ext <<_ACEOF
5663/* confdefs.h. */
5664_ACEOF
5665cat confdefs.h >>conftest.$ac_ext
5666cat >>conftest.$ac_ext <<_ACEOF
5667/* end confdefs.h. */
5668#include <$ac_header>
5669_ACEOF
5670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } >/dev/null; then
5678 if test -s conftest.err; then
5679 ac_cpp_err=$ac_c_preproc_warn_flag
5680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5681 else
5682 ac_cpp_err=
5683 fi
5684else
5685 ac_cpp_err=yes
5686fi
5687if test -z "$ac_cpp_err"; then
5688 ac_header_preproc=yes
5689else
5690 echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 ac_header_preproc=no
5694fi
5695rm -f conftest.err conftest.$ac_ext
5696echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5697echo "${ECHO_T}$ac_header_preproc" >&6
5698
5699# So? What about this header?
5700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5701 yes:no: )
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5706 ac_header_preproc=yes
5707 ;;
5708 no:yes:* )
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5721 (
5722 cat <<\_ASBOX
5723## -------------------------------------------------- ##
5724## Report this to courier-users@lists.sourceforge.net ##
5725## -------------------------------------------------- ##
5726_ASBOX
5727 ) |
5728 sed "s/^/$as_me: WARNING: /" >&2
5729 ;;
5730esac
5731echo "$as_me:$LINENO: checking for $ac_header" >&5
5732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5733if eval "test \"\${$as_ac_Header+set}\" = set"; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 eval "$as_ac_Header=\$ac_header_preproc"
5737fi
5738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5740
5741fi
5742if test `eval echo '${'$as_ac_Header'}'` = yes; then
5743 cat >>confdefs.h <<_ACEOF
5744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745_ACEOF
5746
5747fi
5748
5749done
5750
5751ac_ext=cc
5752ac_cpp='$CXXCPP $CPPFLAGS'
5753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756if test -n "$ac_tool_prefix"; then
5757 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5758 do
5759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5761echo "$as_me:$LINENO: checking for $ac_word" >&5
5762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763if test "${ac_cv_prog_CXX+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766 if test -n "$CXX"; then
5767 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781done
5782
5783fi
5784fi
5785CXX=$ac_cv_prog_CXX
5786if test -n "$CXX"; then
5787 echo "$as_me:$LINENO: result: $CXX" >&5
5788echo "${ECHO_T}$CXX" >&6
5789else
5790 echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792fi
5793
5794 test -n "$CXX" && break
5795 done
5796fi
5797if test -z "$CXX"; then
5798 ac_ct_CXX=$CXX
5799 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5800do
5801 # Extract the first word of "$ac_prog", so it can be a program name with args.
5802set dummy $ac_prog; ac_word=$2
5803echo "$as_me:$LINENO: checking for $ac_word" >&5
5804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807else
5808 if test -n "$ac_ct_CXX"; then
5809 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_ac_ct_CXX="$ac_prog"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822done
5823done
5824
5825fi
5826fi
5827ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5828if test -n "$ac_ct_CXX"; then
5829 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5830echo "${ECHO_T}$ac_ct_CXX" >&6
5831else
5832 echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834fi
5835
5836 test -n "$ac_ct_CXX" && break
5837done
5838test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5839
5840 CXX=$ac_ct_CXX
5841fi
5842
5843
5844# Provide some information about the compiler.
5845echo "$as_me:$LINENO:" \
5846 "checking for C++ compiler version" >&5
5847ac_compiler=`set X $ac_compile; echo $2`
5848{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5849 (eval $ac_compiler --version </dev/null >&5) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }
5853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5854 (eval $ac_compiler -v </dev/null >&5) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }
5858{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5859 (eval $ac_compiler -V </dev/null >&5) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }
5863
5864echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5865echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5866if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 cat >conftest.$ac_ext <<_ACEOF
5870/* confdefs.h. */
5871_ACEOF
5872cat confdefs.h >>conftest.$ac_ext
5873cat >>conftest.$ac_ext <<_ACEOF
5874/* end confdefs.h. */
5875
5876int
5877main ()
5878{
5879#ifndef __GNUC__
5880 choke me
5881#endif
5882
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_cxx_werror_flag"
5897 || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try='test -s conftest.$ac_objext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_compiler_gnu=yes
5910else
5911 echo "$as_me: failed program was:" >&5
5912sed 's/^/| /' conftest.$ac_ext >&5
5913
5914ac_compiler_gnu=no
5915fi
5916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5917ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5918
5919fi
5920echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5921echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5922GXX=`test $ac_compiler_gnu = yes && echo yes`
5923ac_test_CXXFLAGS=${CXXFLAGS+set}
5924ac_save_CXXFLAGS=$CXXFLAGS
5925CXXFLAGS="-g"
5926echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5927echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5928if test "${ac_cv_prog_cxx_g+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h. */
5937
5938int
5939main ()
5940{
5941
5942 ;
5943 return 0;
5944}
5945_ACEOF
5946rm -f conftest.$ac_objext
5947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_cxx_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_prog_cxx_g=yes
5969else
5970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973ac_cv_prog_cxx_g=no
5974fi
5975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5976fi
5977echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5978echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5979if test "$ac_test_CXXFLAGS" = set; then
5980 CXXFLAGS=$ac_save_CXXFLAGS
5981elif test $ac_cv_prog_cxx_g = yes; then
5982 if test "$GXX" = yes; then
5983 CXXFLAGS="-g -O2"
5984 else
5985 CXXFLAGS="-g"
5986 fi
5987else
5988 if test "$GXX" = yes; then
5989 CXXFLAGS="-O2"
5990 else
5991 CXXFLAGS=
5992 fi
5993fi
5994for ac_declaration in \
5995 '' \
5996 'extern "C" void std::exit (int) throw (); using std::exit;' \
5997 'extern "C" void std::exit (int); using std::exit;' \
5998 'extern "C" void exit (int) throw ();' \
5999 'extern "C" void exit (int);' \
6000 'void exit (int);'
6001do
6002 cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008$ac_declaration
6009#include <stdlib.h>
6010int
6011main ()
6012{
6013exit (42);
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext
6019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -z "$ac_cxx_werror_flag"
6028 || test ! -s conftest.err'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 :
6041else
6042 echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045continue
6046fi
6047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054$ac_declaration
6055int
6056main ()
6057{
6058exit (42);
6059 ;
6060 return 0;
6061}
6062_ACEOF
6063rm -f conftest.$ac_objext
6064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_cxx_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 break
6086else
6087 echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
6089
6090fi
6091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6092done
6093rm -f conftest*
6094if test -n "$ac_declaration"; then
6095 echo '#ifdef __cplusplus' >>confdefs.h
6096 echo $ac_declaration >>confdefs.h
6097 echo '#endif' >>confdefs.h
6098fi
6099
6100ac_ext=cc
6101ac_cpp='$CXXCPP $CPPFLAGS'
6102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6105
6106depcc="$CXX" am_compiler_list=
6107
6108echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6109echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6110if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6114 # We make a subdir and do the tests there. Otherwise we can end up
6115 # making bogus files that we don't know about and never remove. For
6116 # instance it was reported that on HP-UX the gcc test will end up
6117 # making a dummy file named `D' -- because `-MD' means `put the output
6118 # in D'.
6119 mkdir conftest.dir
6120 # Copy depcomp to subdir because otherwise we won't find it if we're
6121 # using a relative directory.
6122 cp "$am_depcomp" conftest.dir
6123 cd conftest.dir
6124 # We will build objects and dependencies in a subdirectory because
6125 # it helps to detect inapplicable dependency modes. For instance
6126 # both Tru64's cc and ICC support -MD to output dependencies as a
6127 # side effect of compilation, but ICC will put the dependencies in
6128 # the current directory while Tru64 will put them in the object
6129 # directory.
6130 mkdir sub
6131
6132 am_cv_CXX_dependencies_compiler_type=none
6133 if test "$am_compiler_list" = ""; then
6134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6135 fi
6136 for depmode in $am_compiler_list; do
6137 # Setup a source with many dependencies, because some compilers
6138 # like to wrap large dependency lists on column 80 (with \), and
6139 # we should not choose a depcomp mode which is confused by this.
6140 #
6141 # We need to recreate these files for each test, as the compiler may
6142 # overwrite some of them when testing with obscure command lines.
6143 # This happens at least with the AIX C compiler.
6144 : > sub/conftest.c
6145 for i in 1 2 3 4 5 6; do
6146 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6147 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6148 # Solaris 8's {/usr,}/bin/sh.
6149 touch sub/conftst$i.h
6150 done
6151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6152
6153 case $depmode in
6154 nosideeffect)
6155 # after this tag, mechanisms are not by side-effect, so they'll
6156 # only be used when explicitly requested
6157 if test "x$enable_dependency_tracking" = xyes; then
6158 continue
6159 else
6160 break
6161 fi
6162 ;;
6163 none) break ;;
6164 esac
6165 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6166 # mode. It turns out that the SunPro C++ compiler does not properly
6167 # handle `-M -o', and we need to detect this.
6168 if depmode=$depmode \
6169 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6170 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6171 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6172 >/dev/null 2>conftest.err &&
6173 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6174 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6175 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6176 # icc doesn't choke on unknown options, it will just issue warnings
6177 # or remarks (even with -Werror). So we grep stderr for any message
6178 # that says an option was ignored or not supported.
6179 # When given -MP, icc 7.0 and 7.1 complain thusly:
6180 # icc: Command line warning: ignoring option '-M'; no argument required
6181 # The diagnosis changed in icc 8.0:
6182 # icc: Command line remark: option '-MP' not supported
6183 if (grep 'ignoring option' conftest.err ||
6184 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6185 am_cv_CXX_dependencies_compiler_type=$depmode
6186 break
6187 fi
6188 fi
6189 done
6190
6191 cd ..
6192 rm -rf conftest.dir
6193else
6194 am_cv_CXX_dependencies_compiler_type=none
6195fi
6196
6197fi
6198echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6199echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6200CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6201
6202
6203
6204if
6205 test "x$enable_dependency_tracking" != xno \
6206 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6207 am__fastdepCXX_TRUE=
6208 am__fastdepCXX_FALSE='#'
6209else
6210 am__fastdepCXX_TRUE='#'
6211 am__fastdepCXX_FALSE=
6212fi
6213
6214
6215
6216
6217if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6218 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6219 (test "X$CXX" != "Xg++"))) ; then
6220 ac_ext=cc
6221ac_cpp='$CXXCPP $CPPFLAGS'
6222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6225echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6226echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6227if test -z "$CXXCPP"; then
6228 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231 # Double quotes because CXXCPP needs to be expanded
6232 for CXXCPP in "$CXX -E" "/lib/cpp"
6233 do
6234 ac_preproc_ok=false
6235for ac_cxx_preproc_warn_flag in '' yes
6236do
6237 # Use a header file that comes with gcc, so configuring glibc
6238 # with a fresh cross-compiler works.
6239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240 # <limits.h> exists even on freestanding compilers.
6241 # On the NeXT, cc -E runs the code through the compiler's parser,
6242 # not just through cpp. "Syntax error" is here to catch this case.
6243 cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h. */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h. */
6249#ifdef __STDC__
6250# include <limits.h>
6251#else
6252# include <assert.h>
6253#endif
6254 Syntax error
6255_ACEOF
6256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } >/dev/null; then
6264 if test -s conftest.err; then
6265 ac_cpp_err=$ac_cxx_preproc_warn_flag
6266 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6267 else
6268 ac_cpp_err=
6269 fi
6270else
6271 ac_cpp_err=yes
6272fi
6273if test -z "$ac_cpp_err"; then
6274 :
6275else
6276 echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 # Broken: fails on valid input.
6280continue
6281fi
6282rm -f conftest.err conftest.$ac_ext
6283
6284 # OK, works on sane cases. Now check whether non-existent headers
6285 # can be detected and how.
6286 cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h. */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h. */
6292#include <ac_nonexistent.h>
6293_ACEOF
6294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } >/dev/null; then
6302 if test -s conftest.err; then
6303 ac_cpp_err=$ac_cxx_preproc_warn_flag
6304 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6305 else
6306 ac_cpp_err=
6307 fi
6308else
6309 ac_cpp_err=yes
6310fi
6311if test -z "$ac_cpp_err"; then
6312 # Broken: success on invalid input.
6313continue
6314else
6315 echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
6317
6318 # Passes both tests.
6319ac_preproc_ok=:
6320break
6321fi
6322rm -f conftest.err conftest.$ac_ext
6323
6324done
6325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6326rm -f conftest.err conftest.$ac_ext
6327if $ac_preproc_ok; then
6328 break
6329fi
6330
6331 done
6332 ac_cv_prog_CXXCPP=$CXXCPP
6333
6334fi
6335 CXXCPP=$ac_cv_prog_CXXCPP
6336else
6337 ac_cv_prog_CXXCPP=$CXXCPP
6338fi
6339echo "$as_me:$LINENO: result: $CXXCPP" >&5
6340echo "${ECHO_T}$CXXCPP" >&6
6341ac_preproc_ok=false
6342for ac_cxx_preproc_warn_flag in '' yes
6343do
6344 # Use a header file that comes with gcc, so configuring glibc
6345 # with a fresh cross-compiler works.
6346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6347 # <limits.h> exists even on freestanding compilers.
6348 # On the NeXT, cc -E runs the code through the compiler's parser,
6349 # not just through cpp. "Syntax error" is here to catch this case.
6350 cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h. */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h. */
6356#ifdef __STDC__
6357# include <limits.h>
6358#else
6359# include <assert.h>
6360#endif
6361 Syntax error
6362_ACEOF
6363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } >/dev/null; then
6371 if test -s conftest.err; then
6372 ac_cpp_err=$ac_cxx_preproc_warn_flag
6373 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6374 else
6375 ac_cpp_err=
6376 fi
6377else
6378 ac_cpp_err=yes
6379fi
6380if test -z "$ac_cpp_err"; then
6381 :
6382else
6383 echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 # Broken: fails on valid input.
6387continue
6388fi
6389rm -f conftest.err conftest.$ac_ext
6390
6391 # OK, works on sane cases. Now check whether non-existent headers
6392 # can be detected and how.
6393 cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h. */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h. */
6399#include <ac_nonexistent.h>
6400_ACEOF
6401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } >/dev/null; then
6409 if test -s conftest.err; then
6410 ac_cpp_err=$ac_cxx_preproc_warn_flag
6411 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6412 else
6413 ac_cpp_err=
6414 fi
6415else
6416 ac_cpp_err=yes
6417fi
6418if test -z "$ac_cpp_err"; then
6419 # Broken: success on invalid input.
6420continue
6421else
6422 echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 # Passes both tests.
6426ac_preproc_ok=:
6427break
6428fi
6429rm -f conftest.err conftest.$ac_ext
6430
6431done
6432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6433rm -f conftest.err conftest.$ac_ext
6434if $ac_preproc_ok; then
6435 :
6436else
6437 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6438See \`config.log' for more details." >&5
6439echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6440See \`config.log' for more details." >&2;}
6441 { (exit 1); exit 1; }; }
6442fi
6443
6444ac_ext=cc
6445ac_cpp='$CXXCPP $CPPFLAGS'
6446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6449
6450fi
6451
6452
6453ac_ext=f
6454ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6455ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6457if test -n "$ac_tool_prefix"; then
6458 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6459 do
6460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6461set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6462echo "$as_me:$LINENO: checking for $ac_word" >&5
6463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6464if test "${ac_cv_prog_F77+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
6467 if test -n "$F77"; then
6468 ac_cv_prog_F77="$F77" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481done
6482done
6483
6484fi
6485fi
6486F77=$ac_cv_prog_F77
6487if test -n "$F77"; then
6488 echo "$as_me:$LINENO: result: $F77" >&5
6489echo "${ECHO_T}$F77" >&6
6490else
6491 echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6
6493fi
6494
6495 test -n "$F77" && break
6496 done
6497fi
6498if test -z "$F77"; then
6499 ac_ct_F77=$F77
6500 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6501do
6502 # Extract the first word of "$ac_prog", so it can be a program name with args.
6503set dummy $ac_prog; ac_word=$2
6504echo "$as_me:$LINENO: checking for $ac_word" >&5
6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6506if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 if test -n "$ac_ct_F77"; then
6510 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_ac_ct_F77="$ac_prog"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6522 fi
6523done
6524done
6525
6526fi
6527fi
6528ac_ct_F77=$ac_cv_prog_ac_ct_F77
6529if test -n "$ac_ct_F77"; then
6530 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6531echo "${ECHO_T}$ac_ct_F77" >&6
6532else
6533 echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6
6535fi
6536
6537 test -n "$ac_ct_F77" && break
6538done
6539
6540 F77=$ac_ct_F77
6541fi
6542
6543
6544# Provide some information about the compiler.
6545echo "$as_me:6545:" \
6546 "checking for Fortran 77 compiler version" >&5
6547ac_compiler=`set X $ac_compile; echo $2`
6548{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6549 (eval $ac_compiler --version </dev/null >&5) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }
6553{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6554 (eval $ac_compiler -v </dev/null >&5) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }
6558{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6559 (eval $ac_compiler -V </dev/null >&5) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }
6563rm -f a.out
6564
6565# If we don't use `.F' as extension, the preprocessor is not run on the
6566# input file. (Note that this only needs to work for GNU compilers.)
6567ac_save_ext=$ac_ext
6568ac_ext=F
6569echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6570echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6571if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 program main
6576#ifndef __GNUC__
6577 choke me
6578#endif
6579
6580 end
6581_ACEOF
6582rm -f conftest.$ac_objext
6583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_f77_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_compiler_gnu=yes
6605else
6606 echo "$as_me: failed program was:" >&5
6607sed 's/^/| /' conftest.$ac_ext >&5
6608
6609ac_compiler_gnu=no
6610fi
6611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6613
6614fi
6615echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6616echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6617ac_ext=$ac_save_ext
6618ac_test_FFLAGS=${FFLAGS+set}
6619ac_save_FFLAGS=$FFLAGS
6620FFLAGS=
6621echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6622echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6623if test "${ac_cv_prog_f77_g+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 FFLAGS=-g
6627cat >conftest.$ac_ext <<_ACEOF
6628 program main
6629
6630 end
6631_ACEOF
6632rm -f conftest.$ac_objext
6633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -z "$ac_f77_werror_flag"
6642 || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_prog_f77_g=yes
6655else
6656 echo "$as_me: failed program was:" >&5
6657sed 's/^/| /' conftest.$ac_ext >&5
6658
6659ac_cv_prog_f77_g=no
6660fi
6661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6662
6663fi
6664echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6665echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6666if test "$ac_test_FFLAGS" = set; then
6667 FFLAGS=$ac_save_FFLAGS
6668elif test $ac_cv_prog_f77_g = yes; then
6669 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6670 FFLAGS="-g -O2"
6671 else
6672 FFLAGS="-g"
6673 fi
6674else
6675 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6676 FFLAGS="-O2"
6677 else
6678 FFLAGS=
6679 fi
6680fi
6681
6682G77=`test $ac_compiler_gnu = yes && echo yes`
6683ac_ext=c
6684ac_cpp='$CPP $CPPFLAGS'
6685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687ac_compiler_gnu=$ac_cv_c_compiler_gnu
6688
6689
6690
6691# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6692
6693# find the maximum length of command line arguments
6694echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6695echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6696if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699 i=0
6700 teststring="ABCD"
6701
6702 case $build_os in
6703 msdosdjgpp*)
6704 # On DJGPP, this test can blow up pretty badly due to problems in libc
6705 # (any single argument exceeding 2000 bytes causes a buffer overrun
6706 # during glob expansion). Even if it were fixed, the result of this
6707 # check would be larger than it should be.
6708 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6709 ;;
6710
6711 gnu*)
6712 # Under GNU Hurd, this test is not required because there is
6713 # no limit to the length of command line arguments.
6714 # Libtool will interpret -1 as no limit whatsoever
6715 lt_cv_sys_max_cmd_len=-1;
6716 ;;
6717
6718 cygwin* | mingw*)
6719 # On Win9x/ME, this test blows up -- it succeeds, but takes
6720 # about 5 minutes as the teststring grows exponentially.
6721 # Worse, since 9x/ME are not pre-emptively multitasking,
6722 # you end up with a "frozen" computer, even though with patience
6723 # the test eventually succeeds (with a max line length of 256k).
6724 # Instead, let's just punt: use the minimum linelength reported by
6725 # all of the supported platforms: 8192 (on NT/2K/XP).
6726 lt_cv_sys_max_cmd_len=8192;
6727 ;;
6728
6729 amigaos*)
6730 # On AmigaOS with pdksh, this test takes hours, literally.
6731 # So we just punt and use a minimum line length of 8192.
6732 lt_cv_sys_max_cmd_len=8192;
6733 ;;
6734
6735 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6736 # This has been around since 386BSD, at least. Likely further.
6737 if test -x /sbin/sysctl; then
6738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6739 elif test -x /usr/sbin/sysctl; then
6740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6741 else
6742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6743 fi
6744 # And add a safety zone
6745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6747 ;;
6748
6749 interix*)
6750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6751 lt_cv_sys_max_cmd_len=196608
6752 ;;
6753
6754 osf*)
6755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6757 # nice to cause kernel panics so lets avoid the loop below.
6758 # First set a reasonable default.
6759 lt_cv_sys_max_cmd_len=16384
6760 #
6761 if test -x /sbin/sysconfig; then
6762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6764 esac
6765 fi
6766 ;;
6767 sco3.2v5*)
6768 lt_cv_sys_max_cmd_len=102400
6769 ;;
6770 sysv5* | sco5v6* | sysv4.2uw2*)
6771 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6772 if test -n "$kargmax"; then
6773 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6774 else
6775 lt_cv_sys_max_cmd_len=32768
6776 fi
6777 ;;
6778 *)
6779 # If test is not a shell built-in, we'll probably end up computing a
6780 # maximum length that is only half of the actual maximum length, but
6781 # we can't tell.
6782 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6783 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6784 = "XX$teststring") >/dev/null 2>&1 &&
6785 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6786 lt_cv_sys_max_cmd_len=$new_result &&
6787 test $i != 17 # 1/2 MB should be enough
6788 do
6789 i=`expr $i + 1`
6790 teststring=$teststring$teststring
6791 done
6792 teststring=
6793 # Add a significant safety factor because C++ compilers can tack on massive
6794 # amounts of additional arguments before passing them to the linker.
6795 # It appears as though 1/2 is a usable value.
6796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6797 ;;
6798 esac
6799
6800fi
6801
6802if test -n $lt_cv_sys_max_cmd_len ; then
6803 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6804echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6805else
6806 echo "$as_me:$LINENO: result: none" >&5
6807echo "${ECHO_T}none" >&6
6808fi
6809
6810
6811
6812
6813# Check for command to grab the raw symbol name followed by C symbol from nm.
6814echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6815echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6816if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819
6820# These are sane defaults that work on at least a few old systems.
6821# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6822
6823# Character class describing NM global symbol codes.
6824symcode='[BCDEGRST]'
6825
6826# Regexp to match symbols that can be accessed directly from C.
6827sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6828
6829# Transform an extracted symbol line into a proper C declaration
6830lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6831
6832# Transform an extracted symbol line into symbol name and symbol address
6833lt_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'"
6834
6835# Define system-specific variables.
6836case $host_os in
6837aix*)
6838 symcode='[BCDT]'
6839 ;;
6840cygwin* | mingw* | pw32*)
6841 symcode='[ABCDGISTW]'
6842 ;;
6843hpux*) # Its linker distinguishes data from code symbols
6844 if test "$host_cpu" = ia64; then
6845 symcode='[ABCDEGRST]'
6846 fi
6847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6848 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'"
6849 ;;
6850linux*)
6851 if test "$host_cpu" = ia64; then
6852 symcode='[ABCDGIRSTW]'
6853 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6854 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'"
6855 fi
6856 ;;
6857irix* | nonstopux*)
6858 symcode='[BCDEGRST]'
6859 ;;
6860osf*)
6861 symcode='[BCDEGQRST]'
6862 ;;
6863solaris*)
6864 symcode='[BDRT]'
6865 ;;
6866sco3.2v5*)
6867 symcode='[DT]'
6868 ;;
6869sysv4.2uw2*)
6870 symcode='[DT]'
6871 ;;
6872sysv5* | sco5v6* | unixware* | OpenUNIX*)
6873 symcode='[ABDT]'
6874 ;;
6875sysv4)
6876 symcode='[DFNSTU]'
6877 ;;
6878esac
6879
6880# Handle CRLF in mingw tool chain
6881opt_cr=
6882case $build_os in
6883mingw*)
6884 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885 ;;
6886esac
6887
6888# If we're using GNU nm, then use its standard symbol codes.
6889case `$NM -V 2>&1` in
6890*GNU* | *'with BFD'*)
6891 symcode='[ABCDGIRSTW]' ;;
6892esac
6893
6894# Try without a prefix undercore, then with it.
6895for ac_symprfx in "" "_"; do
6896
6897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898 symxfrm="\\1 $ac_symprfx\\2 \\2"
6899
6900 # Write the raw and C identifiers.
6901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902
6903 # Check to see that the pipe works correctly.
6904 pipe_works=no
6905
6906 rm -f conftest*
6907 cat > conftest.$ac_ext <<EOF
6908#ifdef __cplusplus
6909extern "C" {
6910#endif
6911char nm_test_var;
6912void nm_test_func(){}
6913#ifdef __cplusplus
6914}
6915#endif
6916int main(){nm_test_var='a';nm_test_func();return(0);}
6917EOF
6918
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920 (eval $ac_compile) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; then
6924 # Now try to grab the symbols.
6925 nlist=conftest.nm
6926 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && test -s "$nlist"; then
6931 # Try sorting and uniquifying the output.
6932 if sort "$nlist" | uniq > "$nlist"T; then
6933 mv -f "$nlist"T "$nlist"
6934 else
6935 rm -f "$nlist"T
6936 fi
6937
6938 # Make sure that we snagged all the symbols we need.
6939 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941 cat <<EOF > conftest.$ac_ext
6942#ifdef __cplusplus
6943extern "C" {
6944#endif
6945
6946EOF
6947 # Now generate the symbol file.
6948 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6949
6950 cat <<EOF >> conftest.$ac_ext
6951#if defined (__STDC__) && __STDC__
6952# define lt_ptr_t void *
6953#else
6954# define lt_ptr_t char *
6955# define const
6956#endif
6957
6958/* The mapping between symbol names and symbols. */
6959const struct {
6960 const char *name;
6961 lt_ptr_t address;
6962}
6963lt_preloaded_symbols[] =
6964{
6965EOF
6966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967 cat <<\EOF >> conftest.$ac_ext
6968 {0, (lt_ptr_t) 0}
6969};
6970
6971#ifdef __cplusplus
6972}
6973#endif
6974EOF
6975 # Now try linking the two files.
6976 mv conftest.$ac_objext conftstm.$ac_objext
6977 lt_save_LIBS="$LIBS"
6978 lt_save_CFLAGS="$CFLAGS"
6979 LIBS="conftstm.$ac_objext"
6980 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982 (eval $ac_link) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6986 pipe_works=yes
6987 fi
6988 LIBS="$lt_save_LIBS"
6989 CFLAGS="$lt_save_CFLAGS"
6990 else
6991 echo "cannot find nm_test_func in $nlist" >&5
6992 fi
6993 else
6994 echo "cannot find nm_test_var in $nlist" >&5
6995 fi
6996 else
6997 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6998 fi
6999 else
7000 echo "$progname: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7002 fi
7003 rm -f conftest* conftst*
7004
7005 # Do not use the global_symbol_pipe unless it works.
7006 if test "$pipe_works" = yes; then
7007 break
7008 else
7009 lt_cv_sys_global_symbol_pipe=
7010 fi
7011done
7012
7013fi
7014
7015if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016 lt_cv_sys_global_symbol_to_cdecl=
7017fi
7018if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019 echo "$as_me:$LINENO: result: failed" >&5
7020echo "${ECHO_T}failed" >&6
7021else
7022 echo "$as_me:$LINENO: result: ok" >&5
7023echo "${ECHO_T}ok" >&6
7024fi
7025
7026echo "$as_me:$LINENO: checking for objdir" >&5
7027echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028if test "${lt_cv_objdir+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 rm -f .libs 2>/dev/null
7032mkdir .libs 2>/dev/null
7033if test -d .libs; then
7034 lt_cv_objdir=.libs
7035else
7036 # MS-DOS does not allow filenames that begin with a dot.
7037 lt_cv_objdir=_libs
7038fi
7039rmdir .libs 2>/dev/null
7040fi
7041echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042echo "${ECHO_T}$lt_cv_objdir" >&6
7043objdir=$lt_cv_objdir
7044
7045
7046
7047
7048
7049case $host_os in
7050aix3*)
7051 # AIX sometimes has problems with the GCC collect2 program. For some
7052 # reason, if we set the COLLECT_NAMES environment variable, the problems
7053 # vanish in a puff of smoke.
7054 if test "X${COLLECT_NAMES+set}" != Xset; then
7055 COLLECT_NAMES=
7056 export COLLECT_NAMES
7057 fi
7058 ;;
7059esac
7060
7061# Sed substitution that helps us do robust quoting. It backslashifies
7062# metacharacters that are still active within double-quoted strings.
7063Xsed='sed -e 1s/^X//'
7064sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7065
7066# Same as above, but do not quote variable references.
7067double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7068
7069# Sed substitution to delay expansion of an escaped shell variable in a
7070# double_quote_subst'ed string.
7071delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7072
7073# Sed substitution to avoid accidental globbing in evaled expressions
7074no_glob_subst='s/\*/\\\*/g'
7075
7076# Constants:
7077rm="rm -f"
7078
7079# Global variables:
7080default_ofile=libtool
7081can_build_shared=yes
7082
7083# All known linkers require a `.a' archive for static linking (except MSVC,
7084# which needs '.lib').
7085libext=a
7086ltmain="$ac_aux_dir/ltmain.sh"
7087ofile="$default_ofile"
7088with_gnu_ld="$lt_cv_prog_gnu_ld"
7089
7090if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092set dummy ${ac_tool_prefix}ar; ac_word=$2
7093echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095if test "${ac_cv_prog_AR+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098 if test -n "$AR"; then
7099 ac_cv_prog_AR="$AR" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_AR="${ac_tool_prefix}ar"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112done
7113done
7114
7115fi
7116fi
7117AR=$ac_cv_prog_AR
7118if test -n "$AR"; then
7119 echo "$as_me:$LINENO: result: $AR" >&5
7120echo "${ECHO_T}$AR" >&6
7121else
7122 echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6
7124fi
7125
7126fi
7127if test -z "$ac_cv_prog_AR"; then
7128 ac_ct_AR=$AR
7129 # Extract the first word of "ar", so it can be a program name with args.
7130set dummy ar; ac_word=$2
7131echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136 if test -n "$ac_ct_AR"; then
7137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_ac_ct_AR="ar"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150done
7151done
7152
7153 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7154fi
7155fi
7156ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157if test -n "$ac_ct_AR"; then
7158 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159echo "${ECHO_T}$ac_ct_AR" >&6
7160else
7161 echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
7163fi
7164
7165 AR=$ac_ct_AR
7166else
7167 AR="$ac_cv_prog_AR"
7168fi
7169
7170if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175if test "${ac_cv_prog_RANLIB+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 if test -n "$RANLIB"; then
7179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7180else
7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192done
7193done
7194
7195fi
7196fi
7197RANLIB=$ac_cv_prog_RANLIB
7198if test -n "$RANLIB"; then
7199 echo "$as_me:$LINENO: result: $RANLIB" >&5
7200echo "${ECHO_T}$RANLIB" >&6
7201else
7202 echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6
7204fi
7205
7206fi
7207if test -z "$ac_cv_prog_RANLIB"; then
7208 ac_ct_RANLIB=$RANLIB
7209 # Extract the first word of "ranlib", so it can be a program name with args.
7210set dummy ranlib; ac_word=$2
7211echo "$as_me:$LINENO: checking for $ac_word" >&5
7212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 if test -n "$ac_ct_RANLIB"; then
7217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_RANLIB="ranlib"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230done
7231done
7232
7233 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7234fi
7235fi
7236ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237if test -n "$ac_ct_RANLIB"; then
7238 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239echo "${ECHO_T}$ac_ct_RANLIB" >&6
7240else
7241 echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
7243fi
7244
7245 RANLIB=$ac_ct_RANLIB
7246else
7247 RANLIB="$ac_cv_prog_RANLIB"
7248fi
7249
7250if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252set dummy ${ac_tool_prefix}strip; ac_word=$2
7253echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255if test "${ac_cv_prog_STRIP+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258 if test -n "$STRIP"; then
7259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7260else
7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272done
7273done
7274
7275fi
7276fi
7277STRIP=$ac_cv_prog_STRIP
7278if test -n "$STRIP"; then
7279 echo "$as_me:$LINENO: result: $STRIP" >&5
7280echo "${ECHO_T}$STRIP" >&6
7281else
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
7284fi
7285
7286fi
7287if test -z "$ac_cv_prog_STRIP"; then
7288 ac_ct_STRIP=$STRIP
7289 # Extract the first word of "strip", so it can be a program name with args.
7290set dummy strip; ac_word=$2
7291echo "$as_me:$LINENO: checking for $ac_word" >&5
7292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 if test -n "$ac_ct_STRIP"; then
7297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298else
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_STRIP="strip"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311done
7312
7313 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7314fi
7315fi
7316ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317if test -n "$ac_ct_STRIP"; then
7318 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319echo "${ECHO_T}$ac_ct_STRIP" >&6
7320else
7321 echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6
7323fi
7324
7325 STRIP=$ac_ct_STRIP
7326else
7327 STRIP="$ac_cv_prog_STRIP"
7328fi
7329
7330
7331old_CC="$CC"
7332old_CFLAGS="$CFLAGS"
7333
7334# Set sane defaults for various variables
7335test -z "$AR" && AR=ar
7336test -z "$AR_FLAGS" && AR_FLAGS=cru
7337test -z "$AS" && AS=as
7338test -z "$CC" && CC=cc
7339test -z "$LTCC" && LTCC=$CC
7340test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7341test -z "$DLLTOOL" && DLLTOOL=dlltool
7342test -z "$LD" && LD=ld
7343test -z "$LN_S" && LN_S="ln -s"
7344test -z "$MAGIC_CMD" && MAGIC_CMD=file
7345test -z "$NM" && NM=nm
7346test -z "$SED" && SED=sed
7347test -z "$OBJDUMP" && OBJDUMP=objdump
7348test -z "$RANLIB" && RANLIB=:
7349test -z "$STRIP" && STRIP=:
7350test -z "$ac_objext" && ac_objext=o
7351
7352# Determine commands to create old-style static archives.
7353old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7354old_postinstall_cmds='chmod 644 $oldlib'
7355old_postuninstall_cmds=
7356
7357if test -n "$RANLIB"; then
7358 case $host_os in
7359 openbsd*)
7360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7361 ;;
7362 *)
7363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7364 ;;
7365 esac
7366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7367fi
7368
7369for cc_temp in $compiler""; do
7370 case $cc_temp in
7371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7373 \-*) ;;
7374 *) break;;
7375 esac
7376done
7377cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7378
7379
7380# Only perform the check for file, if the check method requires it
7381case $deplibs_check_method in
7382file_magic*)
7383 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7384 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7385echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7386if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389 case $MAGIC_CMD in
7390[\\/*] | ?:[\\/]*)
7391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7392 ;;
7393*)
7394 lt_save_MAGIC_CMD="$MAGIC_CMD"
7395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397 for ac_dir in $ac_dummy; do
7398 IFS="$lt_save_ifs"
7399 test -z "$ac_dir" && ac_dir=.
7400 if test -f $ac_dir/${ac_tool_prefix}file; then
7401 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7402 if test -n "$file_magic_test_file"; then
7403 case $deplibs_check_method in
7404 "file_magic "*)
7405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408 $EGREP "$file_magic_regex" > /dev/null; then
7409 :
7410 else
7411 cat <<EOF 1>&2
7412
7413*** Warning: the command libtool uses to detect shared libraries,
7414*** $file_magic_cmd, produces output that libtool cannot recognize.
7415*** The result is that libtool may fail to recognize shared libraries
7416*** as such. This will affect the creation of libtool libraries that
7417*** depend on shared libraries, but programs linked with such libtool
7418*** libraries will work regardless of this problem. Nevertheless, you
7419*** may want to report the problem to your system manager and/or to
7420*** bug-libtool@gnu.org
7421
7422EOF
7423 fi ;;
7424 esac
7425 fi
7426 break
7427 fi
7428 done
7429 IFS="$lt_save_ifs"
7430 MAGIC_CMD="$lt_save_MAGIC_CMD"
7431 ;;
7432esac
7433fi
7434
7435MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436if test -n "$MAGIC_CMD"; then
7437 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7438echo "${ECHO_T}$MAGIC_CMD" >&6
7439else
7440 echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6
7442fi
7443
7444if test -z "$lt_cv_path_MAGIC_CMD"; then
7445 if test -n "$ac_tool_prefix"; then
7446 echo "$as_me:$LINENO: checking for file" >&5
7447echo $ECHO_N "checking for file... $ECHO_C" >&6
7448if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 case $MAGIC_CMD in
7452[\\/*] | ?:[\\/]*)
7453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7454 ;;
7455*)
7456 lt_save_MAGIC_CMD="$MAGIC_CMD"
7457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7459 for ac_dir in $ac_dummy; do
7460 IFS="$lt_save_ifs"
7461 test -z "$ac_dir" && ac_dir=.
7462 if test -f $ac_dir/file; then
7463 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7464 if test -n "$file_magic_test_file"; then
7465 case $deplibs_check_method in
7466 "file_magic "*)
7467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7470 $EGREP "$file_magic_regex" > /dev/null; then
7471 :
7472 else
7473 cat <<EOF 1>&2
7474
7475*** Warning: the command libtool uses to detect shared libraries,
7476*** $file_magic_cmd, produces output that libtool cannot recognize.
7477*** The result is that libtool may fail to recognize shared libraries
7478*** as such. This will affect the creation of libtool libraries that
7479*** depend on shared libraries, but programs linked with such libtool
7480*** libraries will work regardless of this problem. Nevertheless, you
7481*** may want to report the problem to your system manager and/or to
7482*** bug-libtool@gnu.org
7483
7484EOF
7485 fi ;;
7486 esac
7487 fi
7488 break
7489 fi
7490 done
7491 IFS="$lt_save_ifs"
7492 MAGIC_CMD="$lt_save_MAGIC_CMD"
7493 ;;
7494esac
7495fi
7496
7497MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7498if test -n "$MAGIC_CMD"; then
7499 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7500echo "${ECHO_T}$MAGIC_CMD" >&6
7501else
7502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504fi
7505
7506 else
7507 MAGIC_CMD=:
7508 fi
7509fi
7510
7511 fi
7512 ;;
7513esac
7514
7515enable_dlopen=no
7516enable_win32_dll=no
7517
7518# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7519if test "${enable_libtool_lock+set}" = set; then
7520 enableval="$enable_libtool_lock"
7521
7522fi;
7523test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7524
7525
7526# Check whether --with-pic or --without-pic was given.
7527if test "${with_pic+set}" = set; then
7528 withval="$with_pic"
7529 pic_mode="$withval"
7530else
7531 pic_mode=default
7532fi;
7533test -z "$pic_mode" && pic_mode=default
7534
7535# Use C for the default configuration in the libtool script
7536tagname=
7537lt_save_CC="$CC"
7538ac_ext=c
7539ac_cpp='$CPP $CPPFLAGS'
7540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543
7544
7545# Source file extension for C test sources.
7546ac_ext=c
7547
7548# Object file extension for compiled C test sources.
7549objext=o
7550objext=$objext
7551
7552# Code to be used in simple compile tests
7553lt_simple_compile_test_code="int some_variable = 0;\n"
7554
7555# Code to be used in simple link tests
7556lt_simple_link_test_code='int main(){return(0);}\n'
7557
7558
7559# If no C compiler was specified, use CC.
7560LTCC=${LTCC-"$CC"}
7561
7562# If no C compiler flags were specified, use CFLAGS.
7563LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7564
7565# Allow CC to be a program name with arguments.
7566compiler=$CC
7567
7568
7569# save warnings/boilerplate of simple test code
7570ac_outfile=conftest.$ac_objext
7571printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7573_lt_compiler_boilerplate=`cat conftest.err`
7574$rm conftest*
7575
7576ac_outfile=conftest.$ac_objext
7577printf "$lt_simple_link_test_code" >conftest.$ac_ext
7578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7579_lt_linker_boilerplate=`cat conftest.err`
7580$rm conftest*
7581
7582
7583
7584lt_prog_compiler_no_builtin_flag=
7585
7586if test "$GCC" = yes; then
7587 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7588
7589
7590echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7591echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7592if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595 lt_cv_prog_compiler_rtti_exceptions=no
7596 ac_outfile=conftest.$ac_objext
7597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7598 lt_compiler_flag="-fno-rtti -fno-exceptions"
7599 # Insert the option either (1) after the last *FLAGS variable, or
7600 # (2) before a word containing "conftest.", or (3) at the end.
7601 # Note that $ac_compile itself does not contain backslashes and begins
7602 # with a dollar sign (not a hyphen), so the echo should work correctly.
7603 # The option is referenced via a variable to avoid confusing sed.
7604 lt_compile=`echo "$ac_compile" | $SED \
7605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7607 -e 's:$: $lt_compiler_flag:'`
7608 (eval echo "\"\$as_me:7608: $lt_compile\"" >&5)
7609 (eval "$lt_compile" 2>conftest.err)
7610 ac_status=$?
7611 cat conftest.err >&5
7612 echo "$as_me:7612: \$? = $ac_status" >&5
7613 if (exit $ac_status) && test -s "$ac_outfile"; then
7614 # The compiler can only warn and ignore the option if not recognized
7615 # So say no if there are warnings other than the usual output.
7616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7619 lt_cv_prog_compiler_rtti_exceptions=yes
7620 fi
7621 fi
7622 $rm conftest*
7623
7624fi
7625echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7626echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7627
7628if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7629 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7630else
7631 :
7632fi
7633
7634fi
7635
7636lt_prog_compiler_wl=
7637lt_prog_compiler_pic=
7638lt_prog_compiler_static=
7639
7640echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7641echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7642
7643 if test "$GCC" = yes; then
7644 lt_prog_compiler_wl='-Wl,'
7645 lt_prog_compiler_static='-static'
7646
7647 case $host_os in
7648 aix*)
7649 # All AIX code is PIC.
7650 if test "$host_cpu" = ia64; then
7651 # AIX 5 now supports IA64 processor
7652 lt_prog_compiler_static='-Bstatic'
7653 fi
7654 ;;
7655
7656 amigaos*)
7657 # FIXME: we need at least 68020 code to build shared libraries, but
7658 # adding the `-m68020' flag to GCC prevents building anything better,
7659 # like `-m68040'.
7660 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7661 ;;
7662
7663 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7664 # PIC is the default for these OSes.
7665 ;;
7666
7667 mingw* | pw32* | os2*)
7668 # This hack is so that the source file can tell whether it is being
7669 # built for inclusion in a dll (and should export symbols for example).
7670 lt_prog_compiler_pic='-DDLL_EXPORT'
7671 ;;
7672
7673 darwin* | rhapsody*)
7674 # PIC is the default on this platform
7675 # Common symbols not allowed in MH_DYLIB files
7676 lt_prog_compiler_pic='-fno-common'
7677 ;;
7678
7679 interix3*)
7680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7681 # Instead, we relocate shared libraries at runtime.
7682 ;;
7683
7684 msdosdjgpp*)
7685 # Just because we use GCC doesn't mean we suddenly get shared libraries
7686 # on systems that don't support them.
7687 lt_prog_compiler_can_build_shared=no
7688 enable_shared=no
7689 ;;
7690
7691 sysv4*MP*)
7692 if test -d /usr/nec; then
7693 lt_prog_compiler_pic=-Kconform_pic
7694 fi
7695 ;;
7696
7697 hpux*)
7698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7699 # not for PA HP-UX.
7700 case $host_cpu in
7701 hppa*64*|ia64*)
7702 # +Z the default
7703 ;;
7704 *)
7705 lt_prog_compiler_pic='-fPIC'
7706 ;;
7707 esac
7708 ;;
7709
7710 *)
7711 lt_prog_compiler_pic='-fPIC'
7712 ;;
7713 esac
7714 else
7715 # PORTME Check for flag to pass linker flags through the system compiler.
7716 case $host_os in
7717 aix*)
7718 lt_prog_compiler_wl='-Wl,'
7719 if test "$host_cpu" = ia64; then
7720 # AIX 5 now supports IA64 processor
7721 lt_prog_compiler_static='-Bstatic'
7722 else
7723 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7724 fi
7725 ;;
7726 darwin*)
7727 # PIC is the default on this platform
7728 # Common symbols not allowed in MH_DYLIB files
7729 case $cc_basename in
7730 xlc*)
7731 lt_prog_compiler_pic='-qnocommon'
7732 lt_prog_compiler_wl='-Wl,'
7733 ;;
7734 esac
7735 ;;
7736
7737 mingw* | pw32* | os2*)
7738 # This hack is so that the source file can tell whether it is being
7739 # built for inclusion in a dll (and should export symbols for example).
7740 lt_prog_compiler_pic='-DDLL_EXPORT'
7741 ;;
7742
7743 hpux9* | hpux10* | hpux11*)
7744 lt_prog_compiler_wl='-Wl,'
7745 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7746 # not for PA HP-UX.
7747 case $host_cpu in
7748 hppa*64*|ia64*)
7749 # +Z the default
7750 ;;
7751 *)
7752 lt_prog_compiler_pic='+Z'
7753 ;;
7754 esac
7755 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7756 lt_prog_compiler_static='${wl}-a ${wl}archive'
7757 ;;
7758
7759 irix5* | irix6* | nonstopux*)
7760 lt_prog_compiler_wl='-Wl,'
7761 # PIC (with -KPIC) is the default.
7762 lt_prog_compiler_static='-non_shared'
7763 ;;
7764
7765 newsos6)
7766 lt_prog_compiler_pic='-KPIC'
7767 lt_prog_compiler_static='-Bstatic'
7768 ;;
7769
7770 linux*)
7771 case $cc_basename in
7772 icc* | ecc*)
7773 lt_prog_compiler_wl='-Wl,'
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-static'
7776 ;;
7777 pgcc* | pgf77* | pgf90* | pgf95*)
7778 # Portland Group compilers (*not* the Pentium gcc compiler,
7779 # which looks to be a dead project)
7780 lt_prog_compiler_wl='-Wl,'
7781 lt_prog_compiler_pic='-fpic'
7782 lt_prog_compiler_static='-Bstatic'
7783 ;;
7784 ccc*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # All Alpha code is PIC.
7787 lt_prog_compiler_static='-non_shared'
7788 ;;
7789 esac
7790 ;;
7791
7792 osf3* | osf4* | osf5*)
7793 lt_prog_compiler_wl='-Wl,'
7794 # All OSF/1 code is PIC.
7795 lt_prog_compiler_static='-non_shared'
7796 ;;
7797
7798 solaris*)
7799 lt_prog_compiler_pic='-KPIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 case $cc_basename in
7802 f77* | f90* | f95*)
7803 lt_prog_compiler_wl='-Qoption ld ';;
7804 *)
7805 lt_prog_compiler_wl='-Wl,';;
7806 esac
7807 ;;
7808
7809 sunos4*)
7810 lt_prog_compiler_wl='-Qoption ld '
7811 lt_prog_compiler_pic='-PIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 ;;
7814
7815 sysv4 | sysv4.2uw2* | sysv4.3*)
7816 lt_prog_compiler_wl='-Wl,'
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 ;;
7820
7821 sysv4*MP*)
7822 if test -d /usr/nec ;then
7823 lt_prog_compiler_pic='-Kconform_pic'
7824 lt_prog_compiler_static='-Bstatic'
7825 fi
7826 ;;
7827
7828 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 ;;
7833
7834 unicos*)
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_can_build_shared=no
7837 ;;
7838
7839 uts4*)
7840 lt_prog_compiler_pic='-pic'
7841 lt_prog_compiler_static='-Bstatic'
7842 ;;
7843
7844 *)
7845 lt_prog_compiler_can_build_shared=no
7846 ;;
7847 esac
7848 fi
7849
7850echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7851echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7852
7853#
7854# Check to make sure the PIC flag actually works.
7855#
7856if test -n "$lt_prog_compiler_pic"; then
7857
7858echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7859echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7860if test "${lt_prog_compiler_pic_works+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862else
7863 lt_prog_compiler_pic_works=no
7864 ac_outfile=conftest.$ac_objext
7865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7866 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7867 # Insert the option either (1) after the last *FLAGS variable, or
7868 # (2) before a word containing "conftest.", or (3) at the end.
7869 # Note that $ac_compile itself does not contain backslashes and begins
7870 # with a dollar sign (not a hyphen), so the echo should work correctly.
7871 # The option is referenced via a variable to avoid confusing sed.
7872 lt_compile=`echo "$ac_compile" | $SED \
7873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7875 -e 's:$: $lt_compiler_flag:'`
7876 (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
7877 (eval "$lt_compile" 2>conftest.err)
7878 ac_status=$?
7879 cat conftest.err >&5
7880 echo "$as_me:7880: \$? = $ac_status" >&5
7881 if (exit $ac_status) && test -s "$ac_outfile"; then
7882 # The compiler can only warn and ignore the option if not recognized
7883 # So say no if there are warnings other than the usual output.
7884 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7887 lt_prog_compiler_pic_works=yes
7888 fi
7889 fi
7890 $rm conftest*
7891
7892fi
7893echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7894echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7895
7896if test x"$lt_prog_compiler_pic_works" = xyes; then
7897 case $lt_prog_compiler_pic in
7898 "" | " "*) ;;
7899 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7900 esac
7901else
7902 lt_prog_compiler_pic=
7903 lt_prog_compiler_can_build_shared=no
7904fi
7905
7906fi
7907case $host_os in
7908 # For platforms which do not support PIC, -DPIC is meaningless:
7909 *djgpp*)
7910 lt_prog_compiler_pic=
7911 ;;
7912 *)
7913 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7914 ;;
7915esac
7916
7917#
7918# Check to make sure the static flag actually works.
7919#
7920wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7921echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7922echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7923if test "${lt_prog_compiler_static_works+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926 lt_prog_compiler_static_works=no
7927 save_LDFLAGS="$LDFLAGS"
7928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7929 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7931 # The linker can only warn and ignore the option if not recognized
7932 # So say no if there are warnings
7933 if test -s conftest.err; then
7934 # Append any errors to the config.log.
7935 cat conftest.err 1>&5
7936 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7938 if diff conftest.exp conftest.er2 >/dev/null; then
7939 lt_prog_compiler_static_works=yes
7940 fi
7941 else
7942 lt_prog_compiler_static_works=yes
7943 fi
7944 fi
7945 $rm conftest*
7946 LDFLAGS="$save_LDFLAGS"
7947
7948fi
7949echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7950echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7951
7952if test x"$lt_prog_compiler_static_works" = xyes; then
7953 :
7954else
7955 lt_prog_compiler_static=
7956fi
7957
7958
7959echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7960echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7961if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963else
7964 lt_cv_prog_compiler_c_o=no
7965 $rm -r conftest 2>/dev/null
7966 mkdir conftest
7967 cd conftest
7968 mkdir out
7969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7970
7971 lt_compiler_flag="-o out/conftest2.$ac_objext"
7972 # Insert the option either (1) after the last *FLAGS variable, or
7973 # (2) before a word containing "conftest.", or (3) at the end.
7974 # Note that $ac_compile itself does not contain backslashes and begins
7975 # with a dollar sign (not a hyphen), so the echo should work correctly.
7976 lt_compile=`echo "$ac_compile" | $SED \
7977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979 -e 's:$: $lt_compiler_flag:'`
7980 (eval echo "\"\$as_me:7980: $lt_compile\"" >&5)
7981 (eval "$lt_compile" 2>out/conftest.err)
7982 ac_status=$?
7983 cat out/conftest.err >&5
7984 echo "$as_me:7984: \$? = $ac_status" >&5
7985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7986 then
7987 # The compiler can only warn and ignore the option if not recognized
7988 # So say no if there are warnings
7989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7992 lt_cv_prog_compiler_c_o=yes
7993 fi
7994 fi
7995 chmod u+w . 2>&5
7996 $rm conftest*
7997 # SGI C++ compiler will create directory out/ii_files/ for
7998 # template instantiation
7999 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8000 $rm out/* && rmdir out
8001 cd ..
8002 rmdir conftest
8003 $rm conftest*
8004
8005fi
8006echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8007echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8008
8009
8010hard_links="nottested"
8011if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8012 # do not overwrite the value of need_locks provided by the user
8013 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8014echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8015 hard_links=yes
8016 $rm conftest*
8017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8018 touch conftest.a
8019 ln conftest.a conftest.b 2>&5 || hard_links=no
8020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8021 echo "$as_me:$LINENO: result: $hard_links" >&5
8022echo "${ECHO_T}$hard_links" >&6
8023 if test "$hard_links" = no; then
8024 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8025echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8026 need_locks=warn
8027 fi
8028else
8029 need_locks=no
8030fi
8031
8032echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8033echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8034
8035 runpath_var=
8036 allow_undefined_flag=
8037 enable_shared_with_static_runtimes=no
8038 archive_cmds=
8039 archive_expsym_cmds=
8040 old_archive_From_new_cmds=
8041 old_archive_from_expsyms_cmds=
8042 export_dynamic_flag_spec=
8043 whole_archive_flag_spec=
8044 thread_safe_flag_spec=
8045 hardcode_libdir_flag_spec=
8046 hardcode_libdir_flag_spec_ld=
8047 hardcode_libdir_separator=
8048 hardcode_direct=no
8049 hardcode_minus_L=no
8050 hardcode_shlibpath_var=unsupported
8051 link_all_deplibs=unknown
8052 hardcode_automatic=no
8053 module_cmds=
8054 module_expsym_cmds=
8055 always_export_symbols=no
8056 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8057 # include_expsyms should be a list of space-separated symbols to be *always*
8058 # included in the symbol list
8059 include_expsyms=
8060 # exclude_expsyms can be an extended regexp of symbols to exclude
8061 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8062 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8063 # as well as any symbol that contains `d'.
8064 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8065 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8066 # platforms (ab)use it in PIC code, but their linkers get confused if
8067 # the symbol is explicitly referenced. Since portable code cannot
8068 # rely on this symbol name, it's probably fine to never include it in
8069 # preloaded symbol tables.
8070 extract_expsyms_cmds=
8071 # Just being paranoid about ensuring that cc_basename is set.
8072 for cc_temp in $compiler""; do
8073 case $cc_temp in
8074 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8075 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8076 \-*) ;;
8077 *) break;;
8078 esac
8079done
8080cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8081
8082 case $host_os in
8083 cygwin* | mingw* | pw32*)
8084 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8085 # When not using gcc, we currently assume that we are using
8086 # Microsoft Visual C++.
8087 if test "$GCC" != yes; then
8088 with_gnu_ld=no
8089 fi
8090 ;;
8091 interix*)
8092 # we just hope/assume this is gcc and not c89 (= MSVC++)
8093 with_gnu_ld=yes
8094 ;;
8095 openbsd*)
8096 with_gnu_ld=no
8097 ;;
8098 esac
8099
8100 ld_shlibs=yes
8101 if test "$with_gnu_ld" = yes; then
8102 # If archive_cmds runs LD, not CC, wlarc should be empty
8103 wlarc='${wl}'
8104
8105 # Set some defaults for GNU ld with shared library support. These
8106 # are reset later if shared libraries are not supported. Putting them
8107 # here allows them to be overridden if necessary.
8108 runpath_var=LD_RUN_PATH
8109 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8110 export_dynamic_flag_spec='${wl}--export-dynamic'
8111 # ancient GNU ld didn't support --whole-archive et. al.
8112 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8113 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8114 else
8115 whole_archive_flag_spec=
8116 fi
8117 supports_anon_versioning=no
8118 case `$LD -v 2>/dev/null` in
8119 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8120 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8121 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8122 *\ 2.11.*) ;; # other 2.11 versions
8123 *) supports_anon_versioning=yes ;;
8124 esac
8125
8126 # See if GNU ld supports shared libraries.
8127 case $host_os in
8128 aix3* | aix4* | aix5*)
8129 # On AIX/PPC, the GNU linker is very broken
8130 if test "$host_cpu" != ia64; then
8131 ld_shlibs=no
8132 cat <<EOF 1>&2
8133
8134*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8135*** to be unable to reliably create shared libraries on AIX.
8136*** Therefore, libtool is disabling shared libraries support. If you
8137*** really care for shared libraries, you may want to modify your PATH
8138*** so that a non-GNU linker is found, and then restart.
8139
8140EOF
8141 fi
8142 ;;
8143
8144 amigaos*)
8145 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)'
8146 hardcode_libdir_flag_spec='-L$libdir'
8147 hardcode_minus_L=yes
8148
8149 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8150 # that the semantics of dynamic libraries on AmigaOS, at least up
8151 # to version 4, is to share data among multiple programs linked
8152 # with the same dynamic library. Since this doesn't match the
8153 # behavior of shared libraries on other platforms, we can't use
8154 # them.
8155 ld_shlibs=no
8156 ;;
8157
8158 beos*)
8159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8160 allow_undefined_flag=unsupported
8161 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8162 # support --undefined. This deserves some investigation. FIXME
8163 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164 else
8165 ld_shlibs=no
8166 fi
8167 ;;
8168
8169 cygwin* | mingw* | pw32*)
8170 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8171 # as there is no search path for DLLs.
8172 hardcode_libdir_flag_spec='-L$libdir'
8173 allow_undefined_flag=unsupported
8174 always_export_symbols=no
8175 enable_shared_with_static_runtimes=yes
8176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8177
8178 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8180 # If the export-symbols file already is a .def file (1st line
8181 # is EXPORTS), use it as is; otherwise, prepend...
8182 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8183 cp $export_symbols $output_objdir/$soname.def;
8184 else
8185 echo EXPORTS > $output_objdir/$soname.def;
8186 cat $export_symbols >> $output_objdir/$soname.def;
8187 fi~
8188 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8189 else
8190 ld_shlibs=no
8191 fi
8192 ;;
8193
8194 interix3*)
8195 hardcode_direct=no
8196 hardcode_shlibpath_var=no
8197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8198 export_dynamic_flag_spec='${wl}-E'
8199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8200 # Instead, shared libraries are loaded at an image base (0x10000000 by
8201 # default) and relocated if they conflict, which is a slow very memory
8202 # consuming and fragmenting process. To avoid this, we pick a random,
8203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8206 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'
8207 ;;
8208
8209 linux*)
8210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8211 tmp_addflag=
8212 case $cc_basename,$host_cpu in
8213 pgcc*) # Portland Group C compiler
8214 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'
8215 tmp_addflag=' $pic_flag'
8216 ;;
8217 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8218 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'
8219 tmp_addflag=' $pic_flag -Mnomain' ;;
8220 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8221 tmp_addflag=' -i_dynamic' ;;
8222 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8223 tmp_addflag=' -i_dynamic -nofor_main' ;;
8224 ifc* | ifort*) # Intel Fortran compiler
8225 tmp_addflag=' -nofor_main' ;;
8226 esac
8227 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228
8229 if test $supports_anon_versioning = yes; then
8230 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8232 $echo "local: *; };" >> $output_objdir/$libname.ver~
8233 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8234 fi
8235 else
8236 ld_shlibs=no
8237 fi
8238 ;;
8239
8240 netbsd*)
8241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8243 wlarc=
8244 else
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8247 fi
8248 ;;
8249
8250 solaris*)
8251 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8252 ld_shlibs=no
8253 cat <<EOF 1>&2
8254
8255*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8256*** create shared libraries on Solaris systems. Therefore, libtool
8257*** is disabling shared libraries support. We urge you to upgrade GNU
8258*** binutils to release 2.9.1 or newer. Another option is to modify
8259*** your PATH or compiler configuration so that the native linker is
8260*** used, and then restart.
8261
8262EOF
8263 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 else
8267 ld_shlibs=no
8268 fi
8269 ;;
8270
8271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8272 case `$LD -v 2>&1` in
8273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8274 ld_shlibs=no
8275 cat <<_LT_EOF 1>&2
8276
8277*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8278*** reliably create shared libraries on SCO systems. Therefore, libtool
8279*** is disabling shared libraries support. We urge you to upgrade GNU
8280*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8281*** your PATH or compiler configuration so that the native linker is
8282*** used, and then restart.
8283
8284_LT_EOF
8285 ;;
8286 *)
8287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8288 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8291 else
8292 ld_shlibs=no
8293 fi
8294 ;;
8295 esac
8296 ;;
8297
8298 sunos4*)
8299 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8300 wlarc=
8301 hardcode_direct=yes
8302 hardcode_shlibpath_var=no
8303 ;;
8304
8305 *)
8306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309 else
8310 ld_shlibs=no
8311 fi
8312 ;;
8313 esac
8314
8315 if test "$ld_shlibs" = no; then
8316 runpath_var=
8317 hardcode_libdir_flag_spec=
8318 export_dynamic_flag_spec=
8319 whole_archive_flag_spec=
8320 fi
8321 else
8322 # PORTME fill in a description of your system's linker (not GNU ld)
8323 case $host_os in
8324 aix3*)
8325 allow_undefined_flag=unsupported
8326 always_export_symbols=yes
8327 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'
8328 # Note: this linker hardcodes the directories in LIBPATH if there
8329 # are no directories specified by -L.
8330 hardcode_minus_L=yes
8331 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8332 # Neither direct hardcoding nor static linking is supported with a
8333 # broken collect2.
8334 hardcode_direct=unsupported
8335 fi
8336 ;;
8337
8338 aix4* | aix5*)
8339 if test "$host_cpu" = ia64; then
8340 # On IA64, the linker does run time linking by default, so we don't
8341 # have to do anything special.
8342 aix_use_runtimelinking=no
8343 exp_sym_flag='-Bexport'
8344 no_entry_flag=""
8345 else
8346 # If we're using GNU nm, then we don't want the "-C" option.
8347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8348 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8349 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'
8350 else
8351 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'
8352 fi
8353 aix_use_runtimelinking=no
8354
8355 # Test if we are trying to use run time linking or normal
8356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8357 # need to do runtime linking.
8358 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8359 for ld_flag in $LDFLAGS; do
8360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8361 aix_use_runtimelinking=yes
8362 break
8363 fi
8364 done
8365 ;;
8366 esac
8367
8368 exp_sym_flag='-bexport'
8369 no_entry_flag='-bnoentry'
8370 fi
8371
8372 # When large executables or shared objects are built, AIX ld can
8373 # have problems creating the table of contents. If linking a library
8374 # or program results in "error TOC overflow" add -mminimal-toc to
8375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8377
8378 archive_cmds=''
8379 hardcode_direct=yes
8380 hardcode_libdir_separator=':'
8381 link_all_deplibs=yes
8382
8383 if test "$GCC" = yes; then
8384 case $host_os in aix4.[012]|aix4.[012].*)
8385 # We only want to do this on AIX 4.2 and lower, the check
8386 # below for broken collect2 doesn't work under 4.3+
8387 collect2name=`${CC} -print-prog-name=collect2`
8388 if test -f "$collect2name" && \
8389 strings "$collect2name" | grep resolve_lib_name >/dev/null
8390 then
8391 # We have reworked collect2
8392 hardcode_direct=yes
8393 else
8394 # We have old collect2
8395 hardcode_direct=unsupported
8396 # It fails to find uninstalled libraries when the uninstalled
8397 # path is not listed in the libpath. Setting hardcode_minus_L
8398 # to unsupported forces relinking
8399 hardcode_minus_L=yes
8400 hardcode_libdir_flag_spec='-L$libdir'
8401 hardcode_libdir_separator=
8402 fi
8403 ;;
8404 esac
8405 shared_flag='-shared'
8406 if test "$aix_use_runtimelinking" = yes; then
8407 shared_flag="$shared_flag "'${wl}-G'
8408 fi
8409 else
8410 # not using gcc
8411 if test "$host_cpu" = ia64; then
8412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8413 # chokes on -Wl,-G. The following line is correct:
8414 shared_flag='-G'
8415 else
8416 if test "$aix_use_runtimelinking" = yes; then
8417 shared_flag='${wl}-G'
8418 else
8419 shared_flag='${wl}-bM:SRE'
8420 fi
8421 fi
8422 fi
8423
8424 # It seems that -bexpall does not export symbols beginning with
8425 # underscore (_), so it is better to generate a list of symbols to export.
8426 always_export_symbols=yes
8427 if test "$aix_use_runtimelinking" = yes; then
8428 # Warning - without using the other runtime loading flags (-brtl),
8429 # -berok will link without error, but may produce a broken library.
8430 allow_undefined_flag='-berok'
8431 # Determine the default libpath from the value encoded in an empty executable.
8432 cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
8438
8439int
8440main ()
8441{
8442
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext conftest$ac_exeext
8448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_c_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469
8470aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8471}'`
8472# Check for a 64-bit object if we didn't find anything.
8473if 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; }
8474}'`; fi
8475else
8476 echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479fi
8480rm -f conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8483
8484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8485 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"
8486 else
8487 if test "$host_cpu" = ia64; then
8488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8489 allow_undefined_flag="-z nodefs"
8490 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"
8491 else
8492 # Determine the default libpath from the value encoded in an empty executable.
8493 cat >conftest.$ac_ext <<_ACEOF
8494/* confdefs.h. */
8495_ACEOF
8496cat confdefs.h >>conftest.$ac_ext
8497cat >>conftest.$ac_ext <<_ACEOF
8498/* end confdefs.h. */
8499
8500int
8501main ()
8502{
8503
8504 ;
8505 return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext conftest$ac_exeext
8509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510 (eval $ac_link) 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag"
8518 || test ! -s conftest.err'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530
8531aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8532}'`
8533# Check for a 64-bit object if we didn't find anything.
8534if 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; }
8535}'`; fi
8536else
8537 echo "$as_me: failed program was:" >&5
8538sed 's/^/| /' conftest.$ac_ext >&5
8539
8540fi
8541rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8544
8545 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8546 # Warning - without using the other run time loading flags,
8547 # -berok will link without error, but may produce a broken library.
8548 no_undefined_flag=' ${wl}-bernotok'
8549 allow_undefined_flag=' ${wl}-berok'
8550 # Exported symbols can be pulled into shared objects from archives
8551 whole_archive_flag_spec='$convenience'
8552 archive_cmds_need_lc=yes
8553 # This is similar to how AIX traditionally builds its shared libraries.
8554 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'
8555 fi
8556 fi
8557 ;;
8558
8559 amigaos*)
8560 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)'
8561 hardcode_libdir_flag_spec='-L$libdir'
8562 hardcode_minus_L=yes
8563 # see comment about different semantics on the GNU ld section
8564 ld_shlibs=no
8565 ;;
8566
8567 bsdi[45]*)
8568 export_dynamic_flag_spec=-rdynamic
8569 ;;
8570
8571 cygwin* | mingw* | pw32*)
8572 # When not using gcc, we currently assume that we are using
8573 # Microsoft Visual C++.
8574 # hardcode_libdir_flag_spec is actually meaningless, as there is
8575 # no search path for DLLs.
8576 hardcode_libdir_flag_spec=' '
8577 allow_undefined_flag=unsupported
8578 # Tell ltmain to make .lib files, not .a files.
8579 libext=lib
8580 # Tell ltmain to make .dll files, not .so files.
8581 shrext_cmds=".dll"
8582 # FIXME: Setting linknames here is a bad hack.
8583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584 # The linker will automatically build a .lib file if we build a DLL.
8585 old_archive_From_new_cmds='true'
8586 # FIXME: Should let the user specify the lib program.
8587 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8588 fix_srcfile_path='`cygpath -w "$srcfile"`'
8589 enable_shared_with_static_runtimes=yes
8590 ;;
8591
8592 darwin* | rhapsody*)
8593 case $host_os in
8594 rhapsody* | darwin1.[012])
8595 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8596 ;;
8597 *) # Darwin 1.3 on
8598 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600 else
8601 case ${MACOSX_DEPLOYMENT_TARGET} in
8602 10.[012])
8603 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8604 ;;
8605 10.*)
8606 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8607 ;;
8608 esac
8609 fi
8610 ;;
8611 esac
8612 archive_cmds_need_lc=no
8613 hardcode_direct=no
8614 hardcode_automatic=yes
8615 hardcode_shlibpath_var=unsupported
8616 whole_archive_flag_spec=''
8617 link_all_deplibs=yes
8618 if test "$GCC" = yes ; then
8619 output_verbose_link_cmd='echo'
8620 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8621 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8622 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8623 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}'
8624 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}'
8625 else
8626 case $cc_basename in
8627 xlc*)
8628 output_verbose_link_cmd='echo'
8629 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8630 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8631 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8632 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}'
8633 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}'
8634 ;;
8635 *)
8636 ld_shlibs=no
8637 ;;
8638 esac
8639 fi
8640 ;;
8641
8642 dgux*)
8643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_shlibpath_var=no
8646 ;;
8647
8648 freebsd1*)
8649 ld_shlibs=no
8650 ;;
8651
8652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8653 # support. Future versions do this automatically, but an explicit c++rt0.o
8654 # does not break anything, and helps significantly (at the cost of a little
8655 # extra space).
8656 freebsd2.2*)
8657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8658 hardcode_libdir_flag_spec='-R$libdir'
8659 hardcode_direct=yes
8660 hardcode_shlibpath_var=no
8661 ;;
8662
8663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8664 freebsd2*)
8665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_direct=yes
8667 hardcode_minus_L=yes
8668 hardcode_shlibpath_var=no
8669 ;;
8670
8671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8672 freebsd* | kfreebsd*-gnu | dragonfly*)
8673 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='-R$libdir'
8675 hardcode_direct=yes
8676 hardcode_shlibpath_var=no
8677 ;;
8678
8679 hpux9*)
8680 if test "$GCC" = yes; then
8681 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'
8682 else
8683 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'
8684 fi
8685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 hardcode_direct=yes
8688
8689 # hardcode_minus_L: Not really in the search PATH,
8690 # but as the default location of the library.
8691 hardcode_minus_L=yes
8692 export_dynamic_flag_spec='${wl}-E'
8693 ;;
8694
8695 hpux10*)
8696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698 else
8699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8700 fi
8701 if test "$with_gnu_ld" = no; then
8702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703 hardcode_libdir_separator=:
8704
8705 hardcode_direct=yes
8706 export_dynamic_flag_spec='${wl}-E'
8707
8708 # hardcode_minus_L: Not really in the search PATH,
8709 # but as the default location of the library.
8710 hardcode_minus_L=yes
8711 fi
8712 ;;
8713
8714 hpux11*)
8715 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8716 case $host_cpu in
8717 hppa*64*)
8718 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 ;;
8720 ia64*)
8721 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8722 ;;
8723 *)
8724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8725 ;;
8726 esac
8727 else
8728 case $host_cpu in
8729 hppa*64*)
8730 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8731 ;;
8732 ia64*)
8733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8734 ;;
8735 *)
8736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8737 ;;
8738 esac
8739 fi
8740 if test "$with_gnu_ld" = no; then
8741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8742 hardcode_libdir_separator=:
8743
8744 case $host_cpu in
8745 hppa*64*|ia64*)
8746 hardcode_libdir_flag_spec_ld='+b $libdir'
8747 hardcode_direct=no
8748 hardcode_shlibpath_var=no
8749 ;;
8750 *)
8751 hardcode_direct=yes
8752 export_dynamic_flag_spec='${wl}-E'
8753
8754 # hardcode_minus_L: Not really in the search PATH,
8755 # but as the default location of the library.
8756 hardcode_minus_L=yes
8757 ;;
8758 esac
8759 fi
8760 ;;
8761
8762 irix5* | irix6* | nonstopux*)
8763 if test "$GCC" = yes; then
8764 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'
8765 else
8766 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'
8767 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8768 fi
8769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770 hardcode_libdir_separator=:
8771 link_all_deplibs=yes
8772 ;;
8773
8774 netbsd*)
8775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8777 else
8778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8779 fi
8780 hardcode_libdir_flag_spec='-R$libdir'
8781 hardcode_direct=yes
8782 hardcode_shlibpath_var=no
8783 ;;
8784
8785 newsos6)
8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_direct=yes
8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 hardcode_libdir_separator=:
8790 hardcode_shlibpath_var=no
8791 ;;
8792
8793 openbsd*)
8794 hardcode_direct=yes
8795 hardcode_shlibpath_var=no
8796 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8800 export_dynamic_flag_spec='${wl}-E'
8801 else
8802 case $host_os in
8803 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8805 hardcode_libdir_flag_spec='-R$libdir'
8806 ;;
8807 *)
8808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810 ;;
8811 esac
8812 fi
8813 ;;
8814
8815 os2*)
8816 hardcode_libdir_flag_spec='-L$libdir'
8817 hardcode_minus_L=yes
8818 allow_undefined_flag=unsupported
8819 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'
8820 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8821 ;;
8822
8823 osf3*)
8824 if test "$GCC" = yes; then
8825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8826 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'
8827 else
8828 allow_undefined_flag=' -expect_unresolved \*'
8829 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'
8830 fi
8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832 hardcode_libdir_separator=:
8833 ;;
8834
8835 osf4* | osf5*) # as osf3* with the addition of -msym flag
8836 if test "$GCC" = yes; then
8837 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8838 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'
8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840 else
8841 allow_undefined_flag=' -expect_unresolved \*'
8842 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'
8843 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8844 $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'
8845
8846 # Both c and cxx compiler support -rpath directly
8847 hardcode_libdir_flag_spec='-rpath $libdir'
8848 fi
8849 hardcode_libdir_separator=:
8850 ;;
8851
8852 solaris*)
8853 no_undefined_flag=' -z text'
8854 if test "$GCC" = yes; then
8855 wlarc='${wl}'
8856 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8857 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8858 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8859 else
8860 wlarc=''
8861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8864 fi
8865 hardcode_libdir_flag_spec='-R$libdir'
8866 hardcode_shlibpath_var=no
8867 case $host_os in
8868 solaris2.[0-5] | solaris2.[0-5].*) ;;
8869 *)
8870 # The compiler driver will combine linker options so we
8871 # cannot just pass the convience library names through
8872 # without $wl, iff we do not link with $LD.
8873 # Luckily, gcc supports the same syntax we need for Sun Studio.
8874 # Supported since Solaris 2.6 (maybe 2.5.1?)
8875 case $wlarc in
8876 '')
8877 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8878 *)
8879 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' ;;
8880 esac ;;
8881 esac
8882 link_all_deplibs=yes
8883 ;;
8884
8885 sunos4*)
8886 if test "x$host_vendor" = xsequent; then
8887 # Use $CC to link under sequent, because it throws in some extra .o
8888 # files that make .init and .fini sections work.
8889 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8890 else
8891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8892 fi
8893 hardcode_libdir_flag_spec='-L$libdir'
8894 hardcode_direct=yes
8895 hardcode_minus_L=yes
8896 hardcode_shlibpath_var=no
8897 ;;
8898
8899 sysv4)
8900 case $host_vendor in
8901 sni)
8902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903 hardcode_direct=yes # is this really true???
8904 ;;
8905 siemens)
8906 ## LD is ld it makes a PLAMLIB
8907 ## CC just makes a GrossModule.
8908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8909 reload_cmds='$CC -r -o $output$reload_objs'
8910 hardcode_direct=no
8911 ;;
8912 motorola)
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8915 ;;
8916 esac
8917 runpath_var='LD_RUN_PATH'
8918 hardcode_shlibpath_var=no
8919 ;;
8920
8921 sysv4.3*)
8922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923 hardcode_shlibpath_var=no
8924 export_dynamic_flag_spec='-Bexport'
8925 ;;
8926
8927 sysv4*MP*)
8928 if test -d /usr/nec; then
8929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930 hardcode_shlibpath_var=no
8931 runpath_var=LD_RUN_PATH
8932 hardcode_runpath_var=yes
8933 ld_shlibs=yes
8934 fi
8935 ;;
8936
8937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8938 no_undefined_flag='${wl}-z,text'
8939 archive_cmds_need_lc=no
8940 hardcode_shlibpath_var=no
8941 runpath_var='LD_RUN_PATH'
8942
8943 if test "$GCC" = yes; then
8944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 else
8947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 fi
8950 ;;
8951
8952 sysv5* | sco3.2v5* | sco5v6*)
8953 # Note: We can NOT use -z defs as we might desire, because we do not
8954 # link with -lc, and that would cause any symbols used from libc to
8955 # always be unresolved, which means just about no library would
8956 # ever link correctly. If we're not using GNU ld we use -z text
8957 # though, which does catch some bad symbols but isn't as heavy-handed
8958 # as -z defs.
8959 no_undefined_flag='${wl}-z,text'
8960 allow_undefined_flag='${wl}-z,nodefs'
8961 archive_cmds_need_lc=no
8962 hardcode_shlibpath_var=no
8963 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8964 hardcode_libdir_separator=':'
8965 link_all_deplibs=yes
8966 export_dynamic_flag_spec='${wl}-Bexport'
8967 runpath_var='LD_RUN_PATH'
8968
8969 if test "$GCC" = yes; then
8970 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 else
8973 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 fi
8976 ;;
8977
8978 uts4*)
8979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980 hardcode_libdir_flag_spec='-L$libdir'
8981 hardcode_shlibpath_var=no
8982 ;;
8983
8984 *)
8985 ld_shlibs=no
8986 ;;
8987 esac
8988 fi
8989
8990echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8991echo "${ECHO_T}$ld_shlibs" >&6
8992test "$ld_shlibs" = no && can_build_shared=no
8993
8994#
8995# Do we need to explicitly link libc?
8996#
8997case "x$archive_cmds_need_lc" in
8998x|xyes)
8999 # Assume -lc should be added
9000 archive_cmds_need_lc=yes
9001
9002 if test "$enable_shared" = yes && test "$GCC" = yes; then
9003 case $archive_cmds in
9004 *'~'*)
9005 # FIXME: we may have to deal with multi-command sequences.
9006 ;;
9007 '$CC '*)
9008 # Test whether the compiler implicitly links with -lc since on some
9009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9010 # to ld, don't add -lc before -lgcc.
9011 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9012echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9013 $rm conftest*
9014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9015
9016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9017 (eval $ac_compile) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } 2>conftest.err; then
9021 soname=conftest
9022 lib=conftest
9023 libobjs=conftest.$ac_objext
9024 deplibs=
9025 wl=$lt_prog_compiler_wl
9026 pic_flag=$lt_prog_compiler_pic
9027 compiler_flags=-v
9028 linker_flags=-v
9029 verstring=
9030 output_objdir=.
9031 libname=conftest
9032 lt_save_allow_undefined_flag=$allow_undefined_flag
9033 allow_undefined_flag=
9034 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9035 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }
9039 then
9040 archive_cmds_need_lc=no
9041 else
9042 archive_cmds_need_lc=yes
9043 fi
9044 allow_undefined_flag=$lt_save_allow_undefined_flag
9045 else
9046 cat conftest.err 1>&5
9047 fi
9048 $rm conftest*
9049 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9050echo "${ECHO_T}$archive_cmds_need_lc" >&6
9051 ;;
9052 esac
9053 fi
9054 ;;
9055esac
9056
9057echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9058echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9059library_names_spec=
9060libname_spec='lib$name'
9061soname_spec=
9062shrext_cmds=".so"
9063postinstall_cmds=
9064postuninstall_cmds=
9065finish_cmds=
9066finish_eval=
9067shlibpath_var=
9068shlibpath_overrides_runpath=unknown
9069version_type=none
9070dynamic_linker="$host_os ld.so"
9071sys_lib_dlsearch_path_spec="/lib /usr/lib"
9072if test "$GCC" = yes; then
9073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9074 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9075 # if the path contains ";" then we assume it to be the separator
9076 # otherwise default to the standard path separator (i.e. ":") - it is
9077 # assumed that no part of a normal pathname contains ";" but that should
9078 # okay in the real world where ";" in dirpaths is itself problematic.
9079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9080 else
9081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9082 fi
9083else
9084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9085fi
9086need_lib_prefix=unknown
9087hardcode_into_libs=no
9088
9089# when you set need_version to no, make sure it does not cause -set_version
9090# flags to be left without arguments
9091need_version=unknown
9092
9093case $host_os in
9094aix3*)
9095 version_type=linux
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9097 shlibpath_var=LIBPATH
9098
9099 # AIX 3 has no versioning support, so we append a major version to the name.
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 ;;
9102
9103aix4* | aix5*)
9104 version_type=linux
9105 need_lib_prefix=no
9106 need_version=no
9107 hardcode_into_libs=yes
9108 if test "$host_cpu" = ia64; then
9109 # AIX 5 supports IA64
9110 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 else
9113 # With GCC up to 2.95.x, collect2 would create an import file
9114 # for dependence libraries. The import file would start with
9115 # the line `#! .'. This would cause the generated library to
9116 # depend on `.', always an invalid library. This was fixed in
9117 # development snapshots of GCC prior to 3.0.
9118 case $host_os in
9119 aix4 | aix4.[01] | aix4.[01].*)
9120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9121 echo ' yes '
9122 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9123 :
9124 else
9125 can_build_shared=no
9126 fi
9127 ;;
9128 esac
9129 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9130 # soname into executable. Probably we can add versioning support to
9131 # collect2, so additional links can be useful in future.
9132 if test "$aix_use_runtimelinking" = yes; then
9133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9134 # instead of lib<name>.a to let people know that these are not
9135 # typical AIX shared libraries.
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137 else
9138 # We preserve .a as extension for shared libraries through AIX4.2
9139 # and later when we are not doing run time linking.
9140 library_names_spec='${libname}${release}.a $libname.a'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 fi
9143 shlibpath_var=LIBPATH
9144 fi
9145 ;;
9146
9147amigaos*)
9148 library_names_spec='$libname.ixlibrary $libname.a'
9149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9150 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'
9151 ;;
9152
9153beos*)
9154 library_names_spec='${libname}${shared_ext}'
9155 dynamic_linker="$host_os ld.so"
9156 shlibpath_var=LIBRARY_PATH
9157 ;;
9158
9159bsdi[45]*)
9160 version_type=linux
9161 need_version=no
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9168 # the default ld.so.conf also contains /usr/contrib/lib and
9169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9170 # libtool to hard-code these into programs
9171 ;;
9172
9173cygwin* | mingw* | pw32*)
9174 version_type=windows
9175 shrext_cmds=".dll"
9176 need_version=no
9177 need_lib_prefix=no
9178
9179 case $GCC,$host_os in
9180 yes,cygwin* | yes,mingw* | yes,pw32*)
9181 library_names_spec='$libname.dll.a'
9182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9183 postinstall_cmds='base_file=`basename \${file}`~
9184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9185 dldir=$destdir/`dirname \$dlpath`~
9186 test -d \$dldir || mkdir -p \$dldir~
9187 $install_prog $dir/$dlname \$dldir/$dlname~
9188 chmod a+x \$dldir/$dlname'
9189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9190 dlpath=$dir/\$dldll~
9191 $rm \$dlpath'
9192 shlibpath_overrides_runpath=yes
9193
9194 case $host_os in
9195 cygwin*)
9196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9198 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9199 ;;
9200 mingw*)
9201 # MinGW DLLs use traditional 'lib' prefix
9202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9203 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9204 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9205 # It is most probably a Windows format PATH printed by
9206 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9207 # path with ; separators, and with drive letters. We can handle the
9208 # drive letters (cygwin fileutils understands them), so leave them,
9209 # especially as we might pass files found there to a mingw objdump,
9210 # which wouldn't understand a cygwinified path. Ahh.
9211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9212 else
9213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9214 fi
9215 ;;
9216 pw32*)
9217 # pw32 DLLs use 'pw' prefix rather than 'lib'
9218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9219 ;;
9220 esac
9221 ;;
9222
9223 *)
9224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9225 ;;
9226 esac
9227 dynamic_linker='Win32 ld.exe'
9228 # FIXME: first we should search . and the directory the executable is in
9229 shlibpath_var=PATH
9230 ;;
9231
9232darwin* | rhapsody*)
9233 dynamic_linker="$host_os dyld"
9234 version_type=darwin
9235 need_lib_prefix=no
9236 need_version=no
9237 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9238 soname_spec='${libname}${release}${major}$shared_ext'
9239 shlibpath_overrides_runpath=yes
9240 shlibpath_var=DYLD_LIBRARY_PATH
9241 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9242 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9243 if test "$GCC" = yes; then
9244 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"`
9245 else
9246 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9247 fi
9248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9249 ;;
9250
9251dgux*)
9252 version_type=linux
9253 need_lib_prefix=no
9254 need_version=no
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 ;;
9259
9260freebsd1*)
9261 dynamic_linker=no
9262 ;;
9263
9264kfreebsd*-gnu)
9265 version_type=linux
9266 need_lib_prefix=no
9267 need_version=no
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 shlibpath_overrides_runpath=no
9272 hardcode_into_libs=yes
9273 dynamic_linker='GNU ld.so'
9274 ;;
9275
9276freebsd* | dragonfly*)
9277 # DragonFly does not have aout. When/if they implement a new
9278 # versioning mechanism, adjust this.
9279 if test -x /usr/bin/objformat; then
9280 objformat=`/usr/bin/objformat`
9281 else
9282 case $host_os in
9283 freebsd[123]*) objformat=aout ;;
9284 *) objformat=elf ;;
9285 esac
9286 fi
9287 version_type=freebsd-$objformat
9288 case $version_type in
9289 freebsd-elf*)
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291 need_version=no
9292 need_lib_prefix=no
9293 ;;
9294 freebsd-*)
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9296 need_version=yes
9297 ;;
9298 esac
9299 shlibpath_var=LD_LIBRARY_PATH
9300 case $host_os in
9301 freebsd2*)
9302 shlibpath_overrides_runpath=yes
9303 ;;
9304 freebsd3.[01]* | freebsdelf3.[01]*)
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 ;;
9308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9310 shlibpath_overrides_runpath=no
9311 hardcode_into_libs=yes
9312 ;;
9313 freebsd*) # from 4.6 on
9314 shlibpath_overrides_runpath=yes
9315 hardcode_into_libs=yes
9316 ;;
9317 esac
9318 ;;
9319
9320gnu*)
9321 version_type=linux
9322 need_lib_prefix=no
9323 need_version=no
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 hardcode_into_libs=yes
9328 ;;
9329
9330hpux9* | hpux10* | hpux11*)
9331 # Give a soname corresponding to the major version so that dld.sl refuses to
9332 # link against other versions.
9333 version_type=sunos
9334 need_lib_prefix=no
9335 need_version=no
9336 case $host_cpu in
9337 ia64*)
9338 shrext_cmds='.so'
9339 hardcode_into_libs=yes
9340 dynamic_linker="$host_os dld.so"
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 if test "X$HPUX_IA64_MODE" = X32; then
9346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9347 else
9348 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9349 fi
9350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351 ;;
9352 hppa*64*)
9353 shrext_cmds='.sl'
9354 hardcode_into_libs=yes
9355 dynamic_linker="$host_os dld.sl"
9356 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362 ;;
9363 *)
9364 shrext_cmds='.sl'
9365 dynamic_linker="$host_os dld.sl"
9366 shlibpath_var=SHLIB_PATH
9367 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 ;;
9371 esac
9372 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9373 postinstall_cmds='chmod 555 $lib'
9374 ;;
9375
9376interix3*)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 hardcode_into_libs=yes
9386 ;;
9387
9388irix5* | irix6* | nonstopux*)
9389 case $host_os in
9390 nonstopux*) version_type=nonstopux ;;
9391 *)
9392 if test "$lt_cv_prog_gnu_ld" = yes; then
9393 version_type=linux
9394 else
9395 version_type=irix
9396 fi ;;
9397 esac
9398 need_lib_prefix=no
9399 need_version=no
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9402 case $host_os in
9403 irix5* | nonstopux*)
9404 libsuff= shlibsuff=
9405 ;;
9406 *)
9407 case $LD in # libtool.m4 will add one of these switches to LD
9408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9409 libsuff= shlibsuff= libmagic=32-bit;;
9410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9411 libsuff=32 shlibsuff=N32 libmagic=N32;;
9412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9414 *) libsuff= shlibsuff= libmagic=never-match;;
9415 esac
9416 ;;
9417 esac
9418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9419 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9422 hardcode_into_libs=yes
9423 ;;
9424
9425# No shared lib support for Linux oldld, aout, or coff.
9426linux*oldld* | linux*aout* | linux*coff*)
9427 dynamic_linker=no
9428 ;;
9429
9430# This must be Linux ELF.
9431linux*)
9432 version_type=linux
9433 need_lib_prefix=no
9434 need_version=no
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 shlibpath_overrides_runpath=no
9440 # This implies no fast_install, which is unacceptable.
9441 # Some rework will be needed to allow for fast_install
9442 # before this can be enabled.
9443 hardcode_into_libs=yes
9444
9445 # find out which ABI we are using
9446 libsuff=
9447 case "$host_cpu" in
9448 x86_64*|s390x*|powerpc64*)
9449 echo '#line 9449 "configure"' > conftest.$ac_ext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; then
9455 case `/usr/bin/file conftest.$ac_objext` in
9456 *64-bit*)
9457 libsuff=64
9458 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9459 ;;
9460 esac
9461 fi
9462 rm -rf conftest*
9463 ;;
9464 esac
9465
9466 # Append ld.so.conf contents to the search path
9467 if test -f /etc/ld.so.conf; then
9468 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9469 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9470 fi
9471
9472 # We used to test for /lib/ld.so.1 and disable shared libraries on
9473 # powerpc, because MkLinux only supported shared libraries with the
9474 # GNU dynamic linker. Since this was broken with cross compilers,
9475 # most powerpc-linux boxes support dynamic linking these days and
9476 # people can always --disable-shared, the test was removed, and we
9477 # assume the GNU/Linux dynamic linker is in use.
9478 dynamic_linker='GNU/Linux ld.so'
9479 ;;
9480
9481knetbsd*-gnu)
9482 version_type=linux
9483 need_lib_prefix=no
9484 need_version=no
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 shlibpath_overrides_runpath=no
9489 hardcode_into_libs=yes
9490 dynamic_linker='GNU ld.so'
9491 ;;
9492
9493netbsd*)
9494 version_type=sunos
9495 need_lib_prefix=no
9496 need_version=no
9497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9500 dynamic_linker='NetBSD (a.out) ld.so'
9501 else
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 dynamic_linker='NetBSD ld.elf_so'
9505 fi
9506 shlibpath_var=LD_LIBRARY_PATH
9507 shlibpath_overrides_runpath=yes
9508 hardcode_into_libs=yes
9509 ;;
9510
9511newsos6)
9512 version_type=linux
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 shlibpath_var=LD_LIBRARY_PATH
9515 shlibpath_overrides_runpath=yes
9516 ;;
9517
9518nto-qnx*)
9519 version_type=linux
9520 need_lib_prefix=no
9521 need_version=no
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 shlibpath_overrides_runpath=yes
9526 ;;
9527
9528openbsd*)
9529 version_type=sunos
9530 sys_lib_dlsearch_path_spec="/usr/lib"
9531 need_lib_prefix=no
9532 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9533 case $host_os in
9534 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9535 *) need_version=no ;;
9536 esac
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9541 case $host_os in
9542 openbsd2.[89] | openbsd2.[89].*)
9543 shlibpath_overrides_runpath=no
9544 ;;
9545 *)
9546 shlibpath_overrides_runpath=yes
9547 ;;
9548 esac
9549 else
9550 shlibpath_overrides_runpath=yes
9551 fi
9552 ;;
9553
9554os2*)
9555 libname_spec='$name'
9556 shrext_cmds=".dll"
9557 need_lib_prefix=no
9558 library_names_spec='$libname${shared_ext} $libname.a'
9559 dynamic_linker='OS/2 ld.exe'
9560 shlibpath_var=LIBPATH
9561 ;;
9562
9563osf3* | osf4* | osf5*)
9564 version_type=osf
9565 need_lib_prefix=no
9566 need_version=no
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569 shlibpath_var=LD_LIBRARY_PATH
9570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9571 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9572 ;;
9573
9574solaris*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 shlibpath_overrides_runpath=yes
9582 hardcode_into_libs=yes
9583 # ldd complains unless libraries are executable
9584 postinstall_cmds='chmod +x $lib'
9585 ;;
9586
9587sunos4*)
9588 version_type=sunos
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9590 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 shlibpath_overrides_runpath=yes
9593 if test "$with_gnu_ld" = yes; then
9594 need_lib_prefix=no
9595 fi
9596 need_version=yes
9597 ;;
9598
9599sysv4 | sysv4.3*)
9600 version_type=linux
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 case $host_vendor in
9605 sni)
9606 shlibpath_overrides_runpath=no
9607 need_lib_prefix=no
9608 export_dynamic_flag_spec='${wl}-Blargedynsym'
9609 runpath_var=LD_RUN_PATH
9610 ;;
9611 siemens)
9612 need_lib_prefix=no
9613 ;;
9614 motorola)
9615 need_lib_prefix=no
9616 need_version=no
9617 shlibpath_overrides_runpath=no
9618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9619 ;;
9620 esac
9621 ;;
9622
9623sysv4*MP*)
9624 if test -d /usr/nec ;then
9625 version_type=linux
9626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9627 soname_spec='$libname${shared_ext}.$major'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 fi
9630 ;;
9631
9632sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9633 version_type=freebsd-elf
9634 need_lib_prefix=no
9635 need_version=no
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 hardcode_into_libs=yes
9640 if test "$with_gnu_ld" = yes; then
9641 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9642 shlibpath_overrides_runpath=no
9643 else
9644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9645 shlibpath_overrides_runpath=yes
9646 case $host_os in
9647 sco3.2v5*)
9648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9649 ;;
9650 esac
9651 fi
9652 sys_lib_dlsearch_path_spec='/usr/lib'
9653 ;;
9654
9655uts4*)
9656 version_type=linux
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 ;;
9661
9662*)
9663 dynamic_linker=no
9664 ;;
9665esac
9666echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9667echo "${ECHO_T}$dynamic_linker" >&6
9668test "$dynamic_linker" = no && can_build_shared=no
9669
9670variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9671if test "$GCC" = yes; then
9672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9673fi
9674
9675echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9676echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9677hardcode_action=
9678if test -n "$hardcode_libdir_flag_spec" || \
9679 test -n "$runpath_var" || \
9680 test "X$hardcode_automatic" = "Xyes" ; then
9681
9682 # We can hardcode non-existant directories.
9683 if test "$hardcode_direct" != no &&
9684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9685 # have to relink, otherwise we might link with an installed library
9686 # when we should be linking with a yet-to-be-installed one
9687 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9688 test "$hardcode_minus_L" != no; then
9689 # Linking always hardcodes the temporary library directory.
9690 hardcode_action=relink
9691 else
9692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9693 hardcode_action=immediate
9694 fi
9695else
9696 # We cannot hardcode anything, or else we can only hardcode existing
9697 # directories.
9698 hardcode_action=unsupported
9699fi
9700echo "$as_me:$LINENO: result: $hardcode_action" >&5
9701echo "${ECHO_T}$hardcode_action" >&6
9702
9703if test "$hardcode_action" = relink; then
9704 # Fast installation is not supported
9705 enable_fast_install=no
9706elif test "$shlibpath_overrides_runpath" = yes ||
9707 test "$enable_shared" = no; then
9708 # Fast installation is not necessary
9709 enable_fast_install=needless
9710fi
9711
9712striplib=
9713old_striplib=
9714echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9715echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9716if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9719 echo "$as_me:$LINENO: result: yes" >&5
9720echo "${ECHO_T}yes" >&6
9721else
9722# FIXME - insert some real tests, host_os isn't really good enough
9723 case $host_os in
9724 darwin*)
9725 if test -n "$STRIP" ; then
9726 striplib="$STRIP -x"
9727 echo "$as_me:$LINENO: result: yes" >&5
9728echo "${ECHO_T}yes" >&6
9729 else
9730 echo "$as_me:$LINENO: result: no" >&5
9731echo "${ECHO_T}no" >&6
9732fi
9733 ;;
9734 *)
9735 echo "$as_me:$LINENO: result: no" >&5
9736echo "${ECHO_T}no" >&6
9737 ;;
9738 esac
9739fi
9740
9741if test "x$enable_dlopen" != xyes; then
9742 enable_dlopen=unknown
9743 enable_dlopen_self=unknown
9744 enable_dlopen_self_static=unknown
9745else
9746 lt_cv_dlopen=no
9747 lt_cv_dlopen_libs=
9748
9749 case $host_os in
9750 beos*)
9751 lt_cv_dlopen="load_add_on"
9752 lt_cv_dlopen_libs=
9753 lt_cv_dlopen_self=yes
9754 ;;
9755
9756 mingw* | pw32*)
9757 lt_cv_dlopen="LoadLibrary"
9758 lt_cv_dlopen_libs=
9759 ;;
9760
9761 cygwin*)
9762 lt_cv_dlopen="dlopen"
9763 lt_cv_dlopen_libs=
9764 ;;
9765
9766 darwin*)
9767 # if libdl is installed we need to link against it
9768 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9769echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9770if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 ac_check_lib_save_LIBS=$LIBS
9774LIBS="-ldl $LIBS"
9775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781
9782/* Override any gcc2 internal prototype to avoid an error. */
9783#ifdef __cplusplus
9784extern "C"
9785#endif
9786/* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788char dlopen ();
9789int
9790main ()
9791{
9792dlopen ();
9793 ;
9794 return 0;
9795}
9796_ACEOF
9797rm -f conftest.$ac_objext conftest$ac_exeext
9798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag"
9807 || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_lib_dl_dlopen=yes
9820else
9821 echo "$as_me: failed program was:" >&5
9822sed 's/^/| /' conftest.$ac_ext >&5
9823
9824ac_cv_lib_dl_dlopen=no
9825fi
9826rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828LIBS=$ac_check_lib_save_LIBS
9829fi
9830echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9831echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9832if test $ac_cv_lib_dl_dlopen = yes; then
9833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9834else
9835
9836 lt_cv_dlopen="dyld"
9837 lt_cv_dlopen_libs=
9838 lt_cv_dlopen_self=yes
9839
9840fi
9841
9842 ;;
9843
9844 *)
9845 echo "$as_me:$LINENO: checking for shl_load" >&5
9846echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9847if test "${ac_cv_func_shl_load+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850 cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h. */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h. */
9856/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858#define shl_load innocuous_shl_load
9859
9860/* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char shl_load (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9864
9865#ifdef __STDC__
9866# include <limits.h>
9867#else
9868# include <assert.h>
9869#endif
9870
9871#undef shl_load
9872
9873/* Override any gcc2 internal prototype to avoid an error. */
9874#ifdef __cplusplus
9875extern "C"
9876{
9877#endif
9878/* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880char shl_load ();
9881/* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884#if defined (__stub_shl_load) || defined (__stub___shl_load)
9885choke me
9886#else
9887char (*f) () = shl_load;
9888#endif
9889#ifdef __cplusplus
9890}
9891#endif
9892
9893int
9894main ()
9895{
9896return f != shl_load;
9897 ;
9898 return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_func_shl_load=yes
9924else
9925 echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
9928ac_cv_func_shl_load=no
9929fi
9930rm -f conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932fi
9933echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9934echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9935if test $ac_cv_func_shl_load = yes; then
9936 lt_cv_dlopen="shl_load"
9937else
9938 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9939echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9940if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943 ac_check_lib_save_LIBS=$LIBS
9944LIBS="-ldld $LIBS"
9945cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h. */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h. */
9951
9952/* Override any gcc2 internal prototype to avoid an error. */
9953#ifdef __cplusplus
9954extern "C"
9955#endif
9956/* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9958char shl_load ();
9959int
9960main ()
9961{
9962shl_load ();
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
9968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_lib_dld_shl_load=yes
9990else
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994ac_cv_lib_dld_shl_load=no
9995fi
9996rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998LIBS=$ac_check_lib_save_LIBS
9999fi
10000echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10001echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10002if test $ac_cv_lib_dld_shl_load = yes; then
10003 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10004else
10005 echo "$as_me:$LINENO: checking for dlopen" >&5
10006echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10007if test "${ac_cv_func_dlopen+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
10016/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018#define dlopen innocuous_dlopen
10019
10020/* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char dlopen (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10024
10025#ifdef __STDC__
10026# include <limits.h>
10027#else
10028# include <assert.h>
10029#endif
10030
10031#undef dlopen
10032
10033/* Override any gcc2 internal prototype to avoid an error. */
10034#ifdef __cplusplus
10035extern "C"
10036{
10037#endif
10038/* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040char dlopen ();
10041/* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044#if defined (__stub_dlopen) || defined (__stub___dlopen)
10045choke me
10046#else
10047char (*f) () = dlopen;
10048#endif
10049#ifdef __cplusplus
10050}
10051#endif
10052
10053int
10054main ()
10055{
10056return f != dlopen;
10057 ;
10058 return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_dlopen=yes
10084else
10085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088ac_cv_func_dlopen=no
10089fi
10090rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092fi
10093echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10094echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10095if test $ac_cv_func_dlopen = yes; then
10096 lt_cv_dlopen="dlopen"
10097else
10098 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10099echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10100if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102else
10103 ac_check_lib_save_LIBS=$LIBS
10104LIBS="-ldl $LIBS"
10105cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h. */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h. */
10111
10112/* Override any gcc2 internal prototype to avoid an error. */
10113#ifdef __cplusplus
10114extern "C"
10115#endif
10116/* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10118char dlopen ();
10119int
10120main ()
10121{
10122dlopen ();
10123 ;
10124 return 0;
10125}
10126_ACEOF
10127rm -f conftest.$ac_objext conftest$ac_exeext
10128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10129 (eval $ac_link) 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try='test -z "$ac_c_werror_flag"
10137 || test ! -s conftest.err'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10149 ac_cv_lib_dl_dlopen=yes
10150else
10151 echo "$as_me: failed program was:" >&5
10152sed 's/^/| /' conftest.$ac_ext >&5
10153
10154ac_cv_lib_dl_dlopen=no
10155fi
10156rm -f conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158LIBS=$ac_check_lib_save_LIBS
10159fi
10160echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10161echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10162if test $ac_cv_lib_dl_dlopen = yes; then
10163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10164else
10165 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10166echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10167if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169else
10170 ac_check_lib_save_LIBS=$LIBS
10171LIBS="-lsvld $LIBS"
10172cat >conftest.$ac_ext <<_ACEOF
10173/* confdefs.h. */
10174_ACEOF
10175cat confdefs.h >>conftest.$ac_ext
10176cat >>conftest.$ac_ext <<_ACEOF
10177/* end confdefs.h. */
10178
10179/* Override any gcc2 internal prototype to avoid an error. */
10180#ifdef __cplusplus
10181extern "C"
10182#endif
10183/* We use char because int might match the return type of a gcc2
10184 builtin and then its argument prototype would still apply. */
10185char dlopen ();
10186int
10187main ()
10188{
10189dlopen ();
10190 ;
10191 return 0;
10192}
10193_ACEOF
10194rm -f conftest.$ac_objext conftest$ac_exeext
10195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>conftest.er1
10197 ac_status=$?
10198 grep -v '^ *+' conftest.er1 >conftest.err
10199 rm -f conftest.er1
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } &&
10203 { ac_try='test -z "$ac_c_werror_flag"
10204 || test ! -s conftest.err'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; } &&
10210 { ac_try='test -s conftest$ac_exeext'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 ac_cv_lib_svld_dlopen=yes
10217else
10218 echo "$as_me: failed program was:" >&5
10219sed 's/^/| /' conftest.$ac_ext >&5
10220
10221ac_cv_lib_svld_dlopen=no
10222fi
10223rm -f conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225LIBS=$ac_check_lib_save_LIBS
10226fi
10227echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10228echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10229if test $ac_cv_lib_svld_dlopen = yes; then
10230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10231else
10232 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10233echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10234if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236else
10237 ac_check_lib_save_LIBS=$LIBS
10238LIBS="-ldld $LIBS"
10239cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h. */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h. */
10245
10246/* Override any gcc2 internal prototype to avoid an error. */
10247#ifdef __cplusplus
10248extern "C"
10249#endif
10250/* We use char because int might match the return type of a gcc2
10251 builtin and then its argument prototype would still apply. */
10252char dld_link ();
10253int
10254main ()
10255{
10256dld_link ();
10257 ;
10258 return 0;
10259}
10260_ACEOF
10261rm -f conftest.$ac_objext conftest$ac_exeext
10262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_lib_dld_dld_link=yes
10284else
10285 echo "$as_me: failed program was:" >&5
10286sed 's/^/| /' conftest.$ac_ext >&5
10287
10288ac_cv_lib_dld_dld_link=no
10289fi
10290rm -f conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292LIBS=$ac_check_lib_save_LIBS
10293fi
10294echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10295echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10296if test $ac_cv_lib_dld_dld_link = yes; then
10297 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10298fi
10299
10300
10301fi
10302
10303
10304fi
10305
10306
10307fi
10308
10309
10310fi
10311
10312
10313fi
10314
10315 ;;
10316 esac
10317
10318 if test "x$lt_cv_dlopen" != xno; then
10319 enable_dlopen=yes
10320 else
10321 enable_dlopen=no
10322 fi
10323
10324 case $lt_cv_dlopen in
10325 dlopen)
10326 save_CPPFLAGS="$CPPFLAGS"
10327 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10328
10329 save_LDFLAGS="$LDFLAGS"
10330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10331
10332 save_LIBS="$LIBS"
10333 LIBS="$lt_cv_dlopen_libs $LIBS"
10334
10335 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10336echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10337if test "${lt_cv_dlopen_self+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339else
10340 if test "$cross_compiling" = yes; then :
10341 lt_cv_dlopen_self=cross
10342else
10343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344 lt_status=$lt_dlunknown
10345 cat > conftest.$ac_ext <<EOF
10346#line 10346 "configure"
10347#include "confdefs.h"
10348
10349#if HAVE_DLFCN_H
10350#include <dlfcn.h>
10351#endif
10352
10353#include <stdio.h>
10354
10355#ifdef RTLD_GLOBAL
10356# define LT_DLGLOBAL RTLD_GLOBAL
10357#else
10358# ifdef DL_GLOBAL
10359# define LT_DLGLOBAL DL_GLOBAL
10360# else
10361# define LT_DLGLOBAL 0
10362# endif
10363#endif
10364
10365/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366 find out it does not work in some platform. */
10367#ifndef LT_DLLAZY_OR_NOW
10368# ifdef RTLD_LAZY
10369# define LT_DLLAZY_OR_NOW RTLD_LAZY
10370# else
10371# ifdef DL_LAZY
10372# define LT_DLLAZY_OR_NOW DL_LAZY
10373# else
10374# ifdef RTLD_NOW
10375# define LT_DLLAZY_OR_NOW RTLD_NOW
10376# else
10377# ifdef DL_NOW
10378# define LT_DLLAZY_OR_NOW DL_NOW
10379# else
10380# define LT_DLLAZY_OR_NOW 0
10381# endif
10382# endif
10383# endif
10384# endif
10385#endif
10386
10387#ifdef __cplusplus
10388extern "C" void exit (int);
10389#endif
10390
10391void fnord() { int i=42;}
10392int main ()
10393{
10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395 int status = $lt_dlunknown;
10396
10397 if (self)
10398 {
10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 /* dlclose (self); */
10402 }
10403 else
10404 puts (dlerror ());
10405
10406 exit (status);
10407}
10408EOF
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10414 (./conftest; exit; ) >&5 2>/dev/null
10415 lt_status=$?
10416 case x$lt_status in
10417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10419 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10420 esac
10421 else :
10422 # compilation failed
10423 lt_cv_dlopen_self=no
10424 fi
10425fi
10426rm -fr conftest*
10427
10428
10429fi
10430echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10431echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10432
10433 if test "x$lt_cv_dlopen_self" = xyes; then
10434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10435 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10436echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10437if test "${lt_cv_dlopen_self_static+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439else
10440 if test "$cross_compiling" = yes; then :
10441 lt_cv_dlopen_self_static=cross
10442else
10443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10444 lt_status=$lt_dlunknown
10445 cat > conftest.$ac_ext <<EOF
10446#line 10446 "configure"
10447#include "confdefs.h"
10448
10449#if HAVE_DLFCN_H
10450#include <dlfcn.h>
10451#endif
10452
10453#include <stdio.h>
10454
10455#ifdef RTLD_GLOBAL
10456# define LT_DLGLOBAL RTLD_GLOBAL
10457#else
10458# ifdef DL_GLOBAL
10459# define LT_DLGLOBAL DL_GLOBAL
10460# else
10461# define LT_DLGLOBAL 0
10462# endif
10463#endif
10464
10465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10466 find out it does not work in some platform. */
10467#ifndef LT_DLLAZY_OR_NOW
10468# ifdef RTLD_LAZY
10469# define LT_DLLAZY_OR_NOW RTLD_LAZY
10470# else
10471# ifdef DL_LAZY
10472# define LT_DLLAZY_OR_NOW DL_LAZY
10473# else
10474# ifdef RTLD_NOW
10475# define LT_DLLAZY_OR_NOW RTLD_NOW
10476# else
10477# ifdef DL_NOW
10478# define LT_DLLAZY_OR_NOW DL_NOW
10479# else
10480# define LT_DLLAZY_OR_NOW 0
10481# endif
10482# endif
10483# endif
10484# endif
10485#endif
10486
10487#ifdef __cplusplus
10488extern "C" void exit (int);
10489#endif
10490
10491void fnord() { int i=42;}
10492int main ()
10493{
10494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10495 int status = $lt_dlunknown;
10496
10497 if (self)
10498 {
10499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10500 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10501 /* dlclose (self); */
10502 }
10503 else
10504 puts (dlerror ());
10505
10506 exit (status);
10507}
10508EOF
10509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510 (eval $ac_link) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10514 (./conftest; exit; ) >&5 2>/dev/null
10515 lt_status=$?
10516 case x$lt_status in
10517 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10518 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10519 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10520 esac
10521 else :
10522 # compilation failed
10523 lt_cv_dlopen_self_static=no
10524 fi
10525fi
10526rm -fr conftest*
10527
10528
10529fi
10530echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10531echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10532 fi
10533
10534 CPPFLAGS="$save_CPPFLAGS"
10535 LDFLAGS="$save_LDFLAGS"
10536 LIBS="$save_LIBS"
10537 ;;
10538 esac
10539
10540 case $lt_cv_dlopen_self in
10541 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10542 *) enable_dlopen_self=unknown ;;
10543 esac
10544
10545 case $lt_cv_dlopen_self_static in
10546 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10547 *) enable_dlopen_self_static=unknown ;;
10548 esac
10549fi
10550
10551
10552# Report which library types will actually be built
10553echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10554echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10555echo "$as_me:$LINENO: result: $can_build_shared" >&5
10556echo "${ECHO_T}$can_build_shared" >&6
10557
10558echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10559echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10560test "$can_build_shared" = "no" && enable_shared=no
10561
10562# On AIX, shared libraries and static libraries use the same namespace, and
10563# are all built from PIC.
10564case $host_os in
10565aix3*)
10566 test "$enable_shared" = yes && enable_static=no
10567 if test -n "$RANLIB"; then
10568 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10569 postinstall_cmds='$RANLIB $lib'
10570 fi
10571 ;;
10572
10573aix4* | aix5*)
10574 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10575 test "$enable_shared" = yes && enable_static=no
10576 fi
10577 ;;
10578esac
10579echo "$as_me:$LINENO: result: $enable_shared" >&5
10580echo "${ECHO_T}$enable_shared" >&6
10581
10582echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10583echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10584# Make sure either enable_shared or enable_static is yes.
10585test "$enable_shared" = yes || enable_static=yes
10586echo "$as_me:$LINENO: result: $enable_static" >&5
10587echo "${ECHO_T}$enable_static" >&6
10588
10589# The else clause should only fire when bootstrapping the
10590# libtool distribution, otherwise you forgot to ship ltmain.sh
10591# with your package, and you will get complaints that there are
10592# no rules to generate ltmain.sh.
10593if test -f "$ltmain"; then
10594 # See if we are running on zsh, and set the options which allow our commands through
10595 # without removal of \ escapes.
10596 if test -n "${ZSH_VERSION+set}" ; then
10597 setopt NO_GLOB_SUBST
10598 fi
10599 # Now quote all the things that may contain metacharacters while being
10600 # careful not to overquote the AC_SUBSTed values. We take copies of the
10601 # variables and quote the copies for generation of the libtool script.
10602 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10603 SED SHELL STRIP \
10604 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10605 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10606 deplibs_check_method reload_flag reload_cmds need_locks \
10607 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10608 lt_cv_sys_global_symbol_to_c_name_address \
10609 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10610 old_postinstall_cmds old_postuninstall_cmds \
10611 compiler \
10612 CC \
10613 LD \
10614 lt_prog_compiler_wl \
10615 lt_prog_compiler_pic \
10616 lt_prog_compiler_static \
10617 lt_prog_compiler_no_builtin_flag \
10618 export_dynamic_flag_spec \
10619 thread_safe_flag_spec \
10620 whole_archive_flag_spec \
10621 enable_shared_with_static_runtimes \
10622 old_archive_cmds \
10623 old_archive_from_new_cmds \
10624 predep_objects \
10625 postdep_objects \
10626 predeps \
10627 postdeps \
10628 compiler_lib_search_path \
10629 archive_cmds \
10630 archive_expsym_cmds \
10631 postinstall_cmds \
10632 postuninstall_cmds \
10633 old_archive_from_expsyms_cmds \
10634 allow_undefined_flag \
10635 no_undefined_flag \
10636 export_symbols_cmds \
10637 hardcode_libdir_flag_spec \
10638 hardcode_libdir_flag_spec_ld \
10639 hardcode_libdir_separator \
10640 hardcode_automatic \
10641 module_cmds \
10642 module_expsym_cmds \
10643 lt_cv_prog_compiler_c_o \
10644 exclude_expsyms \
10645 include_expsyms; do
10646
10647 case $var in
10648 old_archive_cmds | \
10649 old_archive_from_new_cmds | \
10650 archive_cmds | \
10651 archive_expsym_cmds | \
10652 module_cmds | \
10653 module_expsym_cmds | \
10654 old_archive_from_expsyms_cmds | \
10655 export_symbols_cmds | \
10656 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10657 postinstall_cmds | postuninstall_cmds | \
10658 old_postinstall_cmds | old_postuninstall_cmds | \
10659 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10660 # Double-quote double-evaled strings.
10661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10662 ;;
10663 *)
10664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10665 ;;
10666 esac
10667 done
10668
10669 case $lt_echo in
10670 *'\$0 --fallback-echo"')
10671 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10672 ;;
10673 esac
10674
10675cfgfile="${ofile}T"
10676 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10677 $rm -f "$cfgfile"
10678 { echo "$as_me:$LINENO: creating $ofile" >&5
10679echo "$as_me: creating $ofile" >&6;}
10680
10681 cat <<__EOF__ >> "$cfgfile"
10682#! $SHELL
10683
10684# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10685# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10686# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10687#
10688# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10689# Free Software Foundation, Inc.
10690#
10691# This file is part of GNU Libtool:
10692# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10693#
10694# This program is free software; you can redistribute it and/or modify
10695# it under the terms of the GNU General Public License as published by
10696# the Free Software Foundation; either version 2 of the License, or
10697# (at your option) any later version.
10698#
10699# This program is distributed in the hope that it will be useful, but
10700# WITHOUT ANY WARRANTY; without even the implied warranty of
10701# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10702# General Public License for more details.
10703#
10704# You should have received a copy of the GNU General Public License
10705# along with this program; if not, write to the Free Software
10706# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10707#
10708# As a special exception to the GNU General Public License, if you
10709# distribute this file as part of a program that contains a
10710# configuration script generated by Autoconf, you may include it under
10711# the same distribution terms that you use for the rest of that program.
10712
10713# A sed program that does not truncate output.
10714SED=$lt_SED
10715
10716# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10717Xsed="$SED -e 1s/^X//"
10718
10719# The HP-UX ksh and POSIX shell print the target directory to stdout
10720# if CDPATH is set.
10721(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10722
10723# The names of the tagged configurations supported by this script.
10724available_tags=
10725
10726# ### BEGIN LIBTOOL CONFIG
10727
10728# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10729
10730# Shell to use when invoking shell scripts.
10731SHELL=$lt_SHELL
10732
10733# Whether or not to build shared libraries.
10734build_libtool_libs=$enable_shared
10735
10736# Whether or not to build static libraries.
10737build_old_libs=$enable_static
10738
10739# Whether or not to add -lc for building shared libraries.
10740build_libtool_need_lc=$archive_cmds_need_lc
10741
10742# Whether or not to disallow shared libs when runtime libs are static
10743allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10744
10745# Whether or not to optimize for fast installation.
10746fast_install=$enable_fast_install
10747
10748# The host system.
10749host_alias=$host_alias
10750host=$host
10751host_os=$host_os
10752
10753# The build system.
10754build_alias=$build_alias
10755build=$build
10756build_os=$build_os
10757
10758# An echo program that does not interpret backslashes.
10759echo=$lt_echo
10760
10761# The archiver.
10762AR=$lt_AR
10763AR_FLAGS=$lt_AR_FLAGS
10764
10765# A C compiler.
10766LTCC=$lt_LTCC
10767
10768# LTCC compiler flags.
10769LTCFLAGS=$lt_LTCFLAGS
10770
10771# A language-specific compiler.
10772CC=$lt_compiler
10773
10774# Is the compiler the GNU C compiler?
10775with_gcc=$GCC
10776
10777gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10778gcc_ver=\`gcc -dumpversion\`
10779
10780# An ERE matcher.
10781EGREP=$lt_EGREP
10782
10783# The linker used to build libraries.
10784LD=$lt_LD
10785
10786# Whether we need hard or soft links.
10787LN_S=$lt_LN_S
10788
10789# A BSD-compatible nm program.
10790NM=$lt_NM
10791
10792# A symbol stripping program
10793STRIP=$lt_STRIP
10794
10795# Used to examine libraries when file_magic_cmd begins "file"
10796MAGIC_CMD=$MAGIC_CMD
10797
10798# Used on cygwin: DLL creation program.
10799DLLTOOL="$DLLTOOL"
10800
10801# Used on cygwin: object dumper.
10802OBJDUMP="$OBJDUMP"
10803
10804# Used on cygwin: assembler.
10805AS="$AS"
10806
10807# The name of the directory that contains temporary libtool files.
10808objdir=$objdir
10809
10810# How to create reloadable object files.
10811reload_flag=$lt_reload_flag
10812reload_cmds=$lt_reload_cmds
10813
10814# How to pass a linker flag through the compiler.
10815wl=$lt_lt_prog_compiler_wl
10816
10817# Object file suffix (normally "o").
10818objext="$ac_objext"
10819
10820# Old archive suffix (normally "a").
10821libext="$libext"
10822
10823# Shared library suffix (normally ".so").
10824shrext_cmds='$shrext_cmds'
10825
10826# Executable file suffix (normally "").
10827exeext="$exeext"
10828
10829# Additional compiler flags for building library objects.
10830pic_flag=$lt_lt_prog_compiler_pic
10831pic_mode=$pic_mode
10832
10833# What is the maximum length of a command?
10834max_cmd_len=$lt_cv_sys_max_cmd_len
10835
10836# Does compiler simultaneously support -c and -o options?
10837compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10838
10839# Must we lock files when doing compilation?
10840need_locks=$lt_need_locks
10841
10842# Do we need the lib prefix for modules?
10843need_lib_prefix=$need_lib_prefix
10844
10845# Do we need a version for libraries?
10846need_version=$need_version
10847
10848# Whether dlopen is supported.
10849dlopen_support=$enable_dlopen
10850
10851# Whether dlopen of programs is supported.
10852dlopen_self=$enable_dlopen_self
10853
10854# Whether dlopen of statically linked programs is supported.
10855dlopen_self_static=$enable_dlopen_self_static
10856
10857# Compiler flag to prevent dynamic linking.
10858link_static_flag=$lt_lt_prog_compiler_static
10859
10860# Compiler flag to turn off builtin functions.
10861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10862
10863# Compiler flag to allow reflexive dlopens.
10864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10865
10866# Compiler flag to generate shared objects directly from archives.
10867whole_archive_flag_spec=$lt_whole_archive_flag_spec
10868
10869# Compiler flag to generate thread-safe objects.
10870thread_safe_flag_spec=$lt_thread_safe_flag_spec
10871
10872# Library versioning type.
10873version_type=$version_type
10874
10875# Format of library name prefix.
10876libname_spec=$lt_libname_spec
10877
10878# List of archive names. First name is the real one, the rest are links.
10879# The last name is the one that the linker finds with -lNAME.
10880library_names_spec=$lt_library_names_spec
10881
10882# The coded name of the library, if different from the real name.
10883soname_spec=$lt_soname_spec
10884
10885# Commands used to build and install an old-style archive.
10886RANLIB=$lt_RANLIB
10887old_archive_cmds=$lt_old_archive_cmds
10888old_postinstall_cmds=$lt_old_postinstall_cmds
10889old_postuninstall_cmds=$lt_old_postuninstall_cmds
10890
10891# Create an old-style archive from a shared archive.
10892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10893
10894# Create a temporary old-style archive to link instead of a shared archive.
10895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10896
10897# Commands used to build and install a shared archive.
10898archive_cmds=$lt_archive_cmds
10899archive_expsym_cmds=$lt_archive_expsym_cmds
10900postinstall_cmds=$lt_postinstall_cmds
10901postuninstall_cmds=$lt_postuninstall_cmds
10902
10903# Commands used to build a loadable module (assumed same as above if empty)
10904module_cmds=$lt_module_cmds
10905module_expsym_cmds=$lt_module_expsym_cmds
10906
10907# Commands to strip libraries.
10908old_striplib=$lt_old_striplib
10909striplib=$lt_striplib
10910
10911# Dependencies to place before the objects being linked to create a
10912# shared library.
10913predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10914
10915# Dependencies to place after the objects being linked to create a
10916# shared library.
10917postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10918
10919# Dependencies to place before the objects being linked to create a
10920# shared library.
10921predeps=$lt_predeps
10922
10923# Dependencies to place after the objects being linked to create a
10924# shared library.
10925postdeps=$lt_postdeps
10926
10927# The library search path used internally by the compiler when linking
10928# a shared library.
10929compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10930
10931# Method to check whether dependent libraries are shared objects.
10932deplibs_check_method=$lt_deplibs_check_method
10933
10934# Command to use when deplibs_check_method == file_magic.
10935file_magic_cmd=$lt_file_magic_cmd
10936
10937# Flag that allows shared libraries with undefined symbols to be built.
10938allow_undefined_flag=$lt_allow_undefined_flag
10939
10940# Flag that forces no undefined symbols.
10941no_undefined_flag=$lt_no_undefined_flag
10942
10943# Commands used to finish a libtool library installation in a directory.
10944finish_cmds=$lt_finish_cmds
10945
10946# Same as above, but a single script fragment to be evaled but not shown.
10947finish_eval=$lt_finish_eval
10948
10949# Take the output of nm and produce a listing of raw symbols and C names.
10950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10951
10952# Transform the output of nm in a proper C declaration
10953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10954
10955# Transform the output of nm in a C name address pair
10956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10957
10958# This is the shared library runtime path variable.
10959runpath_var=$runpath_var
10960
10961# This is the shared library path variable.
10962shlibpath_var=$shlibpath_var
10963
10964# Is shlibpath searched before the hard-coded library search path?
10965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10966
10967# How to hardcode a shared library path into an executable.
10968hardcode_action=$hardcode_action
10969
10970# Whether we should hardcode library paths into libraries.
10971hardcode_into_libs=$hardcode_into_libs
10972
10973# Flag to hardcode \$libdir into a binary during linking.
10974# This must work even if \$libdir does not exist.
10975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10976
10977# If ld is used when linking, flag to hardcode \$libdir into
10978# a binary during linking. This must work even if \$libdir does
10979# not exist.
10980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10981
10982# Whether we need a single -rpath flag with a separated argument.
10983hardcode_libdir_separator=$lt_hardcode_libdir_separator
10984
10985# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10986# resulting binary.
10987hardcode_direct=$hardcode_direct
10988
10989# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10990# resulting binary.
10991hardcode_minus_L=$hardcode_minus_L
10992
10993# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10994# the resulting binary.
10995hardcode_shlibpath_var=$hardcode_shlibpath_var
10996
10997# Set to yes if building a shared library automatically hardcodes DIR into the library
10998# and all subsequent libraries and executables linked against it.
10999hardcode_automatic=$hardcode_automatic
11000
11001# Variables whose values should be saved in libtool wrapper scripts and
11002# restored at relink time.
11003variables_saved_for_relink="$variables_saved_for_relink"
11004
11005# Whether libtool must link a program against all its dependency libraries.
11006link_all_deplibs=$link_all_deplibs
11007
11008# Compile-time system search path for libraries
11009sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
11010
11011# Run-time system search path for libraries
11012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11013
11014# Fix the shell variable \$srcfile for the compiler.
11015fix_srcfile_path="$fix_srcfile_path"
11016
11017# Set to yes if exported symbols are required.
11018always_export_symbols=$always_export_symbols
11019
11020# The commands to list exported symbols.
11021export_symbols_cmds=$lt_export_symbols_cmds
11022
11023# The commands to extract the exported symbol list from a shared archive.
11024extract_expsyms_cmds=$lt_extract_expsyms_cmds
11025
11026# Symbols that should not be listed in the preloaded symbols.
11027exclude_expsyms=$lt_exclude_expsyms
11028
11029# Symbols that must always be exported.
11030include_expsyms=$lt_include_expsyms
11031
11032# ### END LIBTOOL CONFIG
11033
11034__EOF__
11035
11036
11037 case $host_os in
11038 aix3*)
11039 cat <<\EOF >> "$cfgfile"
11040
11041# AIX sometimes has problems with the GCC collect2 program. For some
11042# reason, if we set the COLLECT_NAMES environment variable, the problems
11043# vanish in a puff of smoke.
11044if test "X${COLLECT_NAMES+set}" != Xset; then
11045 COLLECT_NAMES=
11046 export COLLECT_NAMES
11047fi
11048EOF
11049 ;;
11050 esac
11051
11052 # We use sed instead of cat because bash on DJGPP gets confused if
11053 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11054 # text mode, it properly converts lines to CR/LF. This bash problem
11055 # is reportedly fixed, but why not run on old versions too?
11056 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11057
11058 mv -f "$cfgfile" "$ofile" || \
11059 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11060 chmod +x "$ofile"
11061
11062else
11063 # If there is no Makefile yet, we rely on a make rule to execute
11064 # `config.status --recheck' to rerun these tests and create the
11065 # libtool script then.
11066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11067 if test -f "$ltmain_in"; then
11068 test -f Makefile && make "$ltmain"
11069 fi
11070fi
11071
11072
11073ac_ext=c
11074ac_cpp='$CPP $CPPFLAGS'
11075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11077ac_compiler_gnu=$ac_cv_c_compiler_gnu
11078
11079CC="$lt_save_CC"
11080
11081
11082# Check whether --with-tags or --without-tags was given.
11083if test "${with_tags+set}" = set; then
11084 withval="$with_tags"
11085 tagnames="$withval"
11086fi;
11087
11088if test -f "$ltmain" && test -n "$tagnames"; then
11089 if test ! -f "${ofile}"; then
11090 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11091echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11092 fi
11093
11094 if test -z "$LTCC"; then
11095 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11096 if test -z "$LTCC"; then
11097 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11098echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11099 else
11100 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11101echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11102 fi
11103 fi
11104 if test -z "$LTCFLAGS"; then
11105 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11106 fi
11107
11108 # Extract list of available tagged configurations in $ofile.
11109 # Note that this assumes the entire list is on one line.
11110 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11111
11112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11113 for tagname in $tagnames; do
11114 IFS="$lt_save_ifs"
11115 # Check whether tagname contains only valid characters
11116 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11117 "") ;;
11118 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11119echo "$as_me: error: invalid tag name: $tagname" >&2;}
11120 { (exit 1); exit 1; }; }
11121 ;;
11122 esac
11123
11124 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11125 then
11126 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11127echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11128 { (exit 1); exit 1; }; }
11129 fi
11130
11131 # Update the list of available tags.
11132 if test -n "$tagname"; then
11133 echo appending configuration tag \"$tagname\" to $ofile
11134
11135 case $tagname in
11136 CXX)
11137 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11138 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11139 (test "X$CXX" != "Xg++"))) ; then
11140 ac_ext=cc
11141ac_cpp='$CXXCPP $CPPFLAGS'
11142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11145
11146
11147
11148
11149archive_cmds_need_lc_CXX=no
11150allow_undefined_flag_CXX=
11151always_export_symbols_CXX=no
11152archive_expsym_cmds_CXX=
11153export_dynamic_flag_spec_CXX=
11154hardcode_direct_CXX=no
11155hardcode_libdir_flag_spec_CXX=
11156hardcode_libdir_flag_spec_ld_CXX=
11157hardcode_libdir_separator_CXX=
11158hardcode_minus_L_CXX=no
11159hardcode_shlibpath_var_CXX=unsupported
11160hardcode_automatic_CXX=no
11161module_cmds_CXX=
11162module_expsym_cmds_CXX=
11163link_all_deplibs_CXX=unknown
11164old_archive_cmds_CXX=$old_archive_cmds
11165no_undefined_flag_CXX=
11166whole_archive_flag_spec_CXX=
11167enable_shared_with_static_runtimes_CXX=no
11168
11169# Dependencies to place before and after the object being linked:
11170predep_objects_CXX=
11171postdep_objects_CXX=
11172predeps_CXX=
11173postdeps_CXX=
11174compiler_lib_search_path_CXX=
11175
11176# Source file extension for C++ test sources.
11177ac_ext=cpp
11178
11179# Object file extension for compiled C++ test sources.
11180objext=o
11181objext_CXX=$objext
11182
11183# Code to be used in simple compile tests
11184lt_simple_compile_test_code="int some_variable = 0;\n"
11185
11186# Code to be used in simple link tests
11187lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11188
11189# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11190
11191# If no C compiler was specified, use CC.
11192LTCC=${LTCC-"$CC"}
11193
11194# If no C compiler flags were specified, use CFLAGS.
11195LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11196
11197# Allow CC to be a program name with arguments.
11198compiler=$CC
11199
11200
11201# save warnings/boilerplate of simple test code
11202ac_outfile=conftest.$ac_objext
11203printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11204eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11205_lt_compiler_boilerplate=`cat conftest.err`
11206$rm conftest*
11207
11208ac_outfile=conftest.$ac_objext
11209printf "$lt_simple_link_test_code" >conftest.$ac_ext
11210eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11211_lt_linker_boilerplate=`cat conftest.err`
11212$rm conftest*
11213
11214
11215# Allow CC to be a program name with arguments.
11216lt_save_CC=$CC
11217lt_save_LD=$LD
11218lt_save_GCC=$GCC
11219GCC=$GXX
11220lt_save_with_gnu_ld=$with_gnu_ld
11221lt_save_path_LD=$lt_cv_path_LD
11222if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11223 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11224else
11225 $as_unset lt_cv_prog_gnu_ld
11226fi
11227if test -n "${lt_cv_path_LDCXX+set}"; then
11228 lt_cv_path_LD=$lt_cv_path_LDCXX
11229else
11230 $as_unset lt_cv_path_LD
11231fi
11232test -z "${LDCXX+set}" || LD=$LDCXX
11233CC=${CXX-"c++"}
11234compiler=$CC
11235compiler_CXX=$CC
11236for cc_temp in $compiler""; do
11237 case $cc_temp in
11238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11240 \-*) ;;
11241 *) break;;
11242 esac
11243done
11244cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11245
11246
11247# We don't want -fno-exception wen compiling C++ code, so set the
11248# no_builtin_flag separately
11249if test "$GXX" = yes; then
11250 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11251else
11252 lt_prog_compiler_no_builtin_flag_CXX=
11253fi
11254
11255if test "$GXX" = yes; then
11256 # Set up default GNU C++ configuration
11257
11258
11259# Check whether --with-gnu-ld or --without-gnu-ld was given.
11260if test "${with_gnu_ld+set}" = set; then
11261 withval="$with_gnu_ld"
11262 test "$withval" = no || with_gnu_ld=yes
11263else
11264 with_gnu_ld=no
11265fi;
11266ac_prog=ld
11267if test "$GCC" = yes; then
11268 # Check if gcc -print-prog-name=ld gives a path.
11269 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11270echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11271 case $host in
11272 *-*-mingw*)
11273 # gcc leaves a trailing carriage return which upsets mingw
11274 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11275 *)
11276 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11277 esac
11278 case $ac_prog in
11279 # Accept absolute paths.
11280 [\\/]* | ?:[\\/]*)
11281 re_direlt='/[^/][^/]*/\.\./'
11282 # Canonicalize the pathname of ld
11283 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11284 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11285 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11286 done
11287 test -z "$LD" && LD="$ac_prog"
11288 ;;
11289 "")
11290 # If it fails, then pretend we aren't using GCC.
11291 ac_prog=ld
11292 ;;
11293 *)
11294 # If it is relative, then search for the first ld in PATH.
11295 with_gnu_ld=unknown
11296 ;;
11297 esac
11298elif test "$with_gnu_ld" = yes; then
11299 echo "$as_me:$LINENO: checking for GNU ld" >&5
11300echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11301else
11302 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11303echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11304fi
11305if test "${lt_cv_path_LD+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307else
11308 if test -z "$LD"; then
11309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11310 for ac_dir in $PATH; do
11311 IFS="$lt_save_ifs"
11312 test -z "$ac_dir" && ac_dir=.
11313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11314 lt_cv_path_LD="$ac_dir/$ac_prog"
11315 # Check to see if the program is GNU ld. I'd rather use --version,
11316 # but apparently some variants of GNU ld only accept -v.
11317 # Break only if it was the GNU/non-GNU ld that we prefer.
11318 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11319 *GNU* | *'with BFD'*)
11320 test "$with_gnu_ld" != no && break
11321 ;;
11322 *)
11323 test "$with_gnu_ld" != yes && break
11324 ;;
11325 esac
11326 fi
11327 done
11328 IFS="$lt_save_ifs"
11329else
11330 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11331fi
11332fi
11333
11334LD="$lt_cv_path_LD"
11335if test -n "$LD"; then
11336 echo "$as_me:$LINENO: result: $LD" >&5
11337echo "${ECHO_T}$LD" >&6
11338else
11339 echo "$as_me:$LINENO: result: no" >&5
11340echo "${ECHO_T}no" >&6
11341fi
11342test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11343echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11344 { (exit 1); exit 1; }; }
11345echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11346echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11347if test "${lt_cv_prog_gnu_ld+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349else
11350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11351case `$LD -v 2>&1 </dev/null` in
11352*GNU* | *'with BFD'*)
11353 lt_cv_prog_gnu_ld=yes
11354 ;;
11355*)
11356 lt_cv_prog_gnu_ld=no
11357 ;;
11358esac
11359fi
11360echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11361echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11362with_gnu_ld=$lt_cv_prog_gnu_ld
11363
11364
11365
11366 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11367 # archiving commands below assume that GNU ld is being used.
11368 if test "$with_gnu_ld" = yes; then
11369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11370 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'
11371
11372 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11374
11375 # If archive_cmds runs LD, not CC, wlarc should be empty
11376 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11377 # investigate it a little bit more. (MM)
11378 wlarc='${wl}'
11379
11380 # ancient GNU ld didn't support --whole-archive et. al.
11381 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11382 grep 'no-whole-archive' > /dev/null; then
11383 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11384 else
11385 whole_archive_flag_spec_CXX=
11386 fi
11387 else
11388 with_gnu_ld=no
11389 wlarc=
11390
11391 # A generic and very simple default shared library creation
11392 # command for GNU C++ for the case where it uses the native
11393 # linker, instead of GNU ld. If possible, this setting should
11394 # overridden to take advantage of the native linker features on
11395 # the platform it is being used on.
11396 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11397 fi
11398
11399 # Commands to make compiler produce verbose output that lists
11400 # what "hidden" libraries, object files and flags are used when
11401 # linking a shared library.
11402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11403
11404else
11405 GXX=no
11406 with_gnu_ld=no
11407 wlarc=
11408fi
11409
11410# PORTME: fill in a description of your system's C++ link characteristics
11411echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11412echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11413ld_shlibs_CXX=yes
11414case $host_os in
11415 aix3*)
11416 # FIXME: insert proper C++ library support
11417 ld_shlibs_CXX=no
11418 ;;
11419 aix4* | aix5*)
11420 if test "$host_cpu" = ia64; then
11421 # On IA64, the linker does run time linking by default, so we don't
11422 # have to do anything special.
11423 aix_use_runtimelinking=no
11424 exp_sym_flag='-Bexport'
11425 no_entry_flag=""
11426 else
11427 aix_use_runtimelinking=no
11428
11429 # Test if we are trying to use run time linking or normal
11430 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11431 # need to do runtime linking.
11432 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11433 for ld_flag in $LDFLAGS; do
11434 case $ld_flag in
11435 *-brtl*)
11436 aix_use_runtimelinking=yes
11437 break
11438 ;;
11439 esac
11440 done
11441 ;;
11442 esac
11443
11444 exp_sym_flag='-bexport'
11445 no_entry_flag='-bnoentry'
11446 fi
11447
11448 # When large executables or shared objects are built, AIX ld can
11449 # have problems creating the table of contents. If linking a library
11450 # or program results in "error TOC overflow" add -mminimal-toc to
11451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11453
11454 archive_cmds_CXX=''
11455 hardcode_direct_CXX=yes
11456 hardcode_libdir_separator_CXX=':'
11457 link_all_deplibs_CXX=yes
11458
11459 if test "$GXX" = yes; then
11460 case $host_os in aix4.[012]|aix4.[012].*)
11461 # We only want to do this on AIX 4.2 and lower, the check
11462 # below for broken collect2 doesn't work under 4.3+
11463 collect2name=`${CC} -print-prog-name=collect2`
11464 if test -f "$collect2name" && \
11465 strings "$collect2name" | grep resolve_lib_name >/dev/null
11466 then
11467 # We have reworked collect2
11468 hardcode_direct_CXX=yes
11469 else
11470 # We have old collect2
11471 hardcode_direct_CXX=unsupported
11472 # It fails to find uninstalled libraries when the uninstalled
11473 # path is not listed in the libpath. Setting hardcode_minus_L
11474 # to unsupported forces relinking
11475 hardcode_minus_L_CXX=yes
11476 hardcode_libdir_flag_spec_CXX='-L$libdir'
11477 hardcode_libdir_separator_CXX=
11478 fi
11479 ;;
11480 esac
11481 shared_flag='-shared'
11482 if test "$aix_use_runtimelinking" = yes; then
11483 shared_flag="$shared_flag "'${wl}-G'
11484 fi
11485 else
11486 # not using gcc
11487 if test "$host_cpu" = ia64; then
11488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11489 # chokes on -Wl,-G. The following line is correct:
11490 shared_flag='-G'
11491 else
11492 if test "$aix_use_runtimelinking" = yes; then
11493 shared_flag='${wl}-G'
11494 else
11495 shared_flag='${wl}-bM:SRE'
11496 fi
11497 fi
11498 fi
11499
11500 # It seems that -bexpall does not export symbols beginning with
11501 # underscore (_), so it is better to generate a list of symbols to export.
11502 always_export_symbols_CXX=yes
11503 if test "$aix_use_runtimelinking" = yes; then
11504 # Warning - without using the other runtime loading flags (-brtl),
11505 # -berok will link without error, but may produce a broken library.
11506 allow_undefined_flag_CXX='-berok'
11507 # Determine the default libpath from the value encoded in an empty executable.
11508 cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h. */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h. */
11514
11515int
11516main ()
11517{
11518
11519 ;
11520 return 0;
11521}
11522_ACEOF
11523rm -f conftest.$ac_objext conftest$ac_exeext
11524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525 (eval $ac_link) 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_cxx_werror_flag"
11533 || test ! -s conftest.err'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; } &&
11539 { ac_try='test -s conftest$ac_exeext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545
11546aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11547}'`
11548# Check for a 64-bit object if we didn't find anything.
11549if 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; }
11550}'`; fi
11551else
11552 echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
11554
11555fi
11556rm -f conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11559
11560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11561
11562 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"
11563 else
11564 if test "$host_cpu" = ia64; then
11565 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11566 allow_undefined_flag_CXX="-z nodefs"
11567 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"
11568 else
11569 # Determine the default libpath from the value encoded in an empty executable.
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576
11577int
11578main ()
11579{
11580
11581 ;
11582 return 0;
11583}
11584_ACEOF
11585rm -f conftest.$ac_objext conftest$ac_exeext
11586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -z "$ac_cxx_werror_flag"
11595 || test ! -s conftest.err'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; } &&
11601 { ac_try='test -s conftest$ac_exeext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607
11608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11609}'`
11610# Check for a 64-bit object if we didn't find anything.
11611if 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; }
11612}'`; fi
11613else
11614 echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617fi
11618rm -f conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11621
11622 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11623 # Warning - without using the other run time loading flags,
11624 # -berok will link without error, but may produce a broken library.
11625 no_undefined_flag_CXX=' ${wl}-bernotok'
11626 allow_undefined_flag_CXX=' ${wl}-berok'
11627 # Exported symbols can be pulled into shared objects from archives
11628 whole_archive_flag_spec_CXX='$convenience'
11629 archive_cmds_need_lc_CXX=yes
11630 # This is similar to how AIX traditionally builds its shared libraries.
11631 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'
11632 fi
11633 fi
11634 ;;
11635
11636 beos*)
11637 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11638 allow_undefined_flag_CXX=unsupported
11639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11640 # support --undefined. This deserves some investigation. FIXME
11641 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11642 else
11643 ld_shlibs_CXX=no
11644 fi
11645 ;;
11646
11647 chorus*)
11648 case $cc_basename in
11649 *)
11650 # FIXME: insert proper C++ library support
11651 ld_shlibs_CXX=no
11652 ;;
11653 esac
11654 ;;
11655
11656 cygwin* | mingw* | pw32*)
11657 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11658 # as there is no search path for DLLs.
11659 hardcode_libdir_flag_spec_CXX='-L$libdir'
11660 allow_undefined_flag_CXX=unsupported
11661 always_export_symbols_CXX=no
11662 enable_shared_with_static_runtimes_CXX=yes
11663
11664 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11665 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'
11666 # If the export-symbols file already is a .def file (1st line
11667 # is EXPORTS), use it as is; otherwise, prepend...
11668 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11669 cp $export_symbols $output_objdir/$soname.def;
11670 else
11671 echo EXPORTS > $output_objdir/$soname.def;
11672 cat $export_symbols >> $output_objdir/$soname.def;
11673 fi~
11674 $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'
11675 else
11676 ld_shlibs_CXX=no
11677 fi
11678 ;;
11679 darwin* | rhapsody*)
11680 case $host_os in
11681 rhapsody* | darwin1.[012])
11682 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11683 ;;
11684 *) # Darwin 1.3 on
11685 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11686 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11687 else
11688 case ${MACOSX_DEPLOYMENT_TARGET} in
11689 10.[012])
11690 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11691 ;;
11692 10.*)
11693 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11694 ;;
11695 esac
11696 fi
11697 ;;
11698 esac
11699 archive_cmds_need_lc_CXX=no
11700 hardcode_direct_CXX=no
11701 hardcode_automatic_CXX=yes
11702 hardcode_shlibpath_var_CXX=unsupported
11703 whole_archive_flag_spec_CXX=''
11704 link_all_deplibs_CXX=yes
11705
11706 if test "$GXX" = yes ; then
11707 lt_int_apple_cc_single_mod=no
11708 output_verbose_link_cmd='echo'
11709 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11710 lt_int_apple_cc_single_mod=yes
11711 fi
11712 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11713 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11714 else
11715 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'
11716 fi
11717 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11718 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11719 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11720 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}'
11721 else
11722 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}'
11723 fi
11724 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}'
11725 else
11726 case $cc_basename in
11727 xlc*)
11728 output_verbose_link_cmd='echo'
11729 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'
11730 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11732 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}'
11733 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}'
11734 ;;
11735 *)
11736 ld_shlibs_CXX=no
11737 ;;
11738 esac
11739 fi
11740 ;;
11741
11742 dgux*)
11743 case $cc_basename in
11744 ec++*)
11745 # FIXME: insert proper C++ library support
11746 ld_shlibs_CXX=no
11747 ;;
11748 ghcx*)
11749 # Green Hills C++ Compiler
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11752 ;;
11753 *)
11754 # FIXME: insert proper C++ library support
11755 ld_shlibs_CXX=no
11756 ;;
11757 esac
11758 ;;
11759 freebsd[12]*)
11760 # C++ shared libraries reported to be fairly broken before switch to ELF
11761 ld_shlibs_CXX=no
11762 ;;
11763 freebsd-elf*)
11764 archive_cmds_need_lc_CXX=no
11765 ;;
11766 freebsd* | kfreebsd*-gnu | dragonfly*)
11767 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11768 # conventions
11769 ld_shlibs_CXX=yes
11770 ;;
11771 gnu*)
11772 ;;
11773 hpux9*)
11774 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11775 hardcode_libdir_separator_CXX=:
11776 export_dynamic_flag_spec_CXX='${wl}-E'
11777 hardcode_direct_CXX=yes
11778 hardcode_minus_L_CXX=yes # Not in the search PATH,
11779 # but as the default
11780 # location of the library.
11781
11782 case $cc_basename in
11783 CC*)
11784 # FIXME: insert proper C++ library support
11785 ld_shlibs_CXX=no
11786 ;;
11787 aCC*)
11788 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'
11789 # Commands to make compiler produce verbose output that lists
11790 # what "hidden" libraries, object files and flags are used when
11791 # linking a shared library.
11792 #
11793 # There doesn't appear to be a way to prevent this compiler from
11794 # explicitly linking system object files so we need to strip them
11795 # from the output so that they don't get included in the library
11796 # dependencies.
11797 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'
11798 ;;
11799 *)
11800 if test "$GXX" = yes; then
11801 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'
11802 else
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 fi
11806 ;;
11807 esac
11808 ;;
11809 hpux10*|hpux11*)
11810 if test $with_gnu_ld = no; then
11811 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11812 hardcode_libdir_separator_CXX=:
11813
11814 case $host_cpu in
11815 hppa*64*|ia64*)
11816 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11817 ;;
11818 *)
11819 export_dynamic_flag_spec_CXX='${wl}-E'
11820 ;;
11821 esac
11822 fi
11823 case $host_cpu in
11824 hppa*64*|ia64*)
11825 hardcode_direct_CXX=no
11826 hardcode_shlibpath_var_CXX=no
11827 ;;
11828 *)
11829 hardcode_direct_CXX=yes
11830 hardcode_minus_L_CXX=yes # Not in the search PATH,
11831 # but as the default
11832 # location of the library.
11833 ;;
11834 esac
11835
11836 case $cc_basename in
11837 CC*)
11838 # FIXME: insert proper C++ library support
11839 ld_shlibs_CXX=no
11840 ;;
11841 aCC*)
11842 case $host_cpu in
11843 hppa*64*)
11844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11845 ;;
11846 ia64*)
11847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11848 ;;
11849 *)
11850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11851 ;;
11852 esac
11853 # Commands to make compiler produce verbose output that lists
11854 # what "hidden" libraries, object files and flags are used when
11855 # linking a shared library.
11856 #
11857 # There doesn't appear to be a way to prevent this compiler from
11858 # explicitly linking system object files so we need to strip them
11859 # from the output so that they don't get included in the library
11860 # dependencies.
11861 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'
11862 ;;
11863 *)
11864 if test "$GXX" = yes; then
11865 if test $with_gnu_ld = no; then
11866 case $host_cpu in
11867 hppa*64*)
11868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11869 ;;
11870 ia64*)
11871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11872 ;;
11873 *)
11874 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'
11875 ;;
11876 esac
11877 fi
11878 else
11879 # FIXME: insert proper C++ library support
11880 ld_shlibs_CXX=no
11881 fi
11882 ;;
11883 esac
11884 ;;
11885 interix3*)
11886 hardcode_direct_CXX=no
11887 hardcode_shlibpath_var_CXX=no
11888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11889 export_dynamic_flag_spec_CXX='${wl}-E'
11890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11891 # Instead, shared libraries are loaded at an image base (0x10000000 by
11892 # default) and relocated if they conflict, which is a slow very memory
11893 # consuming and fragmenting process. To avoid this, we pick a random,
11894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11896 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'
11897 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'
11898 ;;
11899 irix5* | irix6*)
11900 case $cc_basename in
11901 CC*)
11902 # SGI C++
11903 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'
11904
11905 # Archives containing C++ object files must be created using
11906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11907 # necessary to make sure instantiated templates are included
11908 # in the archive.
11909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11910 ;;
11911 *)
11912 if test "$GXX" = yes; then
11913 if test "$with_gnu_ld" = no; then
11914 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'
11915 else
11916 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'
11917 fi
11918 fi
11919 link_all_deplibs_CXX=yes
11920 ;;
11921 esac
11922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923 hardcode_libdir_separator_CXX=:
11924 ;;
11925 linux*)
11926 case $cc_basename in
11927 KCC*)
11928 # Kuck and Associates, Inc. (KAI) C++ Compiler
11929
11930 # KCC will only create a shared library if the output file
11931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11932 # to its proper name (with version) after linking.
11933 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'
11934 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'
11935 # Commands to make compiler produce verbose output that lists
11936 # what "hidden" libraries, object files and flags are used when
11937 # linking a shared library.
11938 #
11939 # There doesn't appear to be a way to prevent this compiler from
11940 # explicitly linking system object files so we need to strip them
11941 # from the output so that they don't get included in the library
11942 # dependencies.
11943 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'
11944
11945 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11947
11948 # Archives containing C++ object files must be created using
11949 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11951 ;;
11952 icpc*)
11953 # Intel C++
11954 with_gnu_ld=yes
11955 # version 8.0 and above of icpc choke on multiply defined symbols
11956 # if we add $predep_objects and $postdep_objects, however 7.1 and
11957 # earlier do not add the objects themselves.
11958 case `$CC -V 2>&1` in
11959 *"Version 7."*)
11960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11961 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'
11962 ;;
11963 *) # Version 8.0 or newer
11964 tmp_idyn=
11965 case $host_cpu in
11966 ia64*) tmp_idyn=' -i_dynamic';;
11967 esac
11968 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11969 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'
11970 ;;
11971 esac
11972 archive_cmds_need_lc_CXX=no
11973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11975 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11976 ;;
11977 pgCC*)
11978 # Portland Group C++ compiler
11979 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11980 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'
11981
11982 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984 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'
11985 ;;
11986 cxx*)
11987 # Compaq C++
11988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11989 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'
11990
11991 runpath_var=LD_RUN_PATH
11992 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11993 hardcode_libdir_separator_CXX=:
11994
11995 # Commands to make compiler produce verbose output that lists
11996 # what "hidden" libraries, object files and flags are used when
11997 # linking a shared library.
11998 #
11999 # There doesn't appear to be a way to prevent this compiler from
12000 # explicitly linking system object files so we need to strip them
12001 # from the output so that they don't get included in the library
12002 # dependencies.
12003 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'
12004 ;;
12005 esac
12006 ;;
12007 lynxos*)
12008 # FIXME: insert proper C++ library support
12009 ld_shlibs_CXX=no
12010 ;;
12011 m88k*)
12012 # FIXME: insert proper C++ library support
12013 ld_shlibs_CXX=no
12014 ;;
12015 mvs*)
12016 case $cc_basename in
12017 cxx*)
12018 # FIXME: insert proper C++ library support
12019 ld_shlibs_CXX=no
12020 ;;
12021 *)
12022 # FIXME: insert proper C++ library support
12023 ld_shlibs_CXX=no
12024 ;;
12025 esac
12026 ;;
12027 netbsd*)
12028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12029 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12030 wlarc=
12031 hardcode_libdir_flag_spec_CXX='-R$libdir'
12032 hardcode_direct_CXX=yes
12033 hardcode_shlibpath_var_CXX=no
12034 fi
12035 # Workaround some broken pre-1.5 toolchains
12036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12037 ;;
12038 openbsd2*)
12039 # C++ shared libraries are fairly broken
12040 ld_shlibs_CXX=no
12041 ;;
12042 openbsd*)
12043 hardcode_direct_CXX=yes
12044 hardcode_shlibpath_var_CXX=no
12045 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12048 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12049 export_dynamic_flag_spec_CXX='${wl}-E'
12050 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12051 fi
12052 output_verbose_link_cmd='echo'
12053 ;;
12054 osf3*)
12055 case $cc_basename in
12056 KCC*)
12057 # Kuck and Associates, Inc. (KAI) C++ Compiler
12058
12059 # KCC will only create a shared library if the output file
12060 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12061 # to its proper name (with version) after linking.
12062 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'
12063
12064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12065 hardcode_libdir_separator_CXX=:
12066
12067 # Archives containing C++ object files must be created using
12068 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12069 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12070
12071 ;;
12072 RCC*)
12073 # Rational C++ 2.4.1
12074 # FIXME: insert proper C++ library support
12075 ld_shlibs_CXX=no
12076 ;;
12077 cxx*)
12078 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12079 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'
12080
12081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12082 hardcode_libdir_separator_CXX=:
12083
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12087 #
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12091 # dependencies.
12092 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'
12093 ;;
12094 *)
12095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12096 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12097 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'
12098
12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12100 hardcode_libdir_separator_CXX=:
12101
12102 # Commands to make compiler produce verbose output that lists
12103 # what "hidden" libraries, object files and flags are used when
12104 # linking a shared library.
12105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12106
12107 else
12108 # FIXME: insert proper C++ library support
12109 ld_shlibs_CXX=no
12110 fi
12111 ;;
12112 esac
12113 ;;
12114 osf4* | osf5*)
12115 case $cc_basename in
12116 KCC*)
12117 # Kuck and Associates, Inc. (KAI) C++ Compiler
12118
12119 # KCC will only create a shared library if the output file
12120 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12121 # to its proper name (with version) after linking.
12122 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'
12123
12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12125 hardcode_libdir_separator_CXX=:
12126
12127 # Archives containing C++ object files must be created using
12128 # the KAI C++ compiler.
12129 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12130 ;;
12131 RCC*)
12132 # Rational C++ 2.4.1
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 ;;
12136 cxx*)
12137 allow_undefined_flag_CXX=' -expect_unresolved \*'
12138 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'
12139 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12140 echo "-hidden">> $lib.exp~
12141 $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~
12142 $rm $lib.exp'
12143
12144 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12145 hardcode_libdir_separator_CXX=:
12146
12147 # Commands to make compiler produce verbose output that lists
12148 # what "hidden" libraries, object files and flags are used when
12149 # linking a shared library.
12150 #
12151 # There doesn't appear to be a way to prevent this compiler from
12152 # explicitly linking system object files so we need to strip them
12153 # from the output so that they don't get included in the library
12154 # dependencies.
12155 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'
12156 ;;
12157 *)
12158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12160 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'
12161
12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12163 hardcode_libdir_separator_CXX=:
12164
12165 # Commands to make compiler produce verbose output that lists
12166 # what "hidden" libraries, object files and flags are used when
12167 # linking a shared library.
12168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12169
12170 else
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12173 fi
12174 ;;
12175 esac
12176 ;;
12177 psos*)
12178 # FIXME: insert proper C++ library support
12179 ld_shlibs_CXX=no
12180 ;;
12181 sunos4*)
12182 case $cc_basename in
12183 CC*)
12184 # Sun C++ 4.x
12185 # FIXME: insert proper C++ library support
12186 ld_shlibs_CXX=no
12187 ;;
12188 lcc*)
12189 # Lucid
12190 # FIXME: insert proper C++ library support
12191 ld_shlibs_CXX=no
12192 ;;
12193 *)
12194 # FIXME: insert proper C++ library support
12195 ld_shlibs_CXX=no
12196 ;;
12197 esac
12198 ;;
12199 solaris*)
12200 case $cc_basename in
12201 CC*)
12202 # Sun C++ 4.2, 5.x and Centerline C++
12203 archive_cmds_need_lc_CXX=yes
12204 no_undefined_flag_CXX=' -zdefs'
12205 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12207 $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'
12208
12209 hardcode_libdir_flag_spec_CXX='-R$libdir'
12210 hardcode_shlibpath_var_CXX=no
12211 case $host_os in
12212 solaris2.[0-5] | solaris2.[0-5].*) ;;
12213 *)
12214 # The C++ compiler is used as linker so we must use $wl
12215 # flag to pass the commands to the underlying system
12216 # linker. We must also pass each convience library through
12217 # to the system linker between allextract/defaultextract.
12218 # The C++ compiler will combine linker options so we
12219 # cannot just pass the convience library names through
12220 # without $wl.
12221 # Supported since Solaris 2.6 (maybe 2.5.1?)
12222 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'
12223 ;;
12224 esac
12225 link_all_deplibs_CXX=yes
12226
12227 output_verbose_link_cmd='echo'
12228
12229 # Archives containing C++ object files must be created using
12230 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12231 # necessary to make sure instantiated templates are included
12232 # in the archive.
12233 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12234 ;;
12235 gcx*)
12236 # Green Hills C++ Compiler
12237 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12238
12239 # The C++ compiler must be used to create the archive.
12240 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12241 ;;
12242 *)
12243 # GNU C++ compiler with Solaris linker
12244 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12245 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12246 if $CC --version | grep -v '^2\.7' > /dev/null; then
12247 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12248 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12249 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12250
12251 # Commands to make compiler produce verbose output that lists
12252 # what "hidden" libraries, object files and flags are used when
12253 # linking a shared library.
12254 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12255 else
12256 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12257 # platform.
12258 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12259 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12260 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12261
12262 # Commands to make compiler produce verbose output that lists
12263 # what "hidden" libraries, object files and flags are used when
12264 # linking a shared library.
12265 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12266 fi
12267
12268 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12269 fi
12270 ;;
12271 esac
12272 ;;
12273 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12274 no_undefined_flag_CXX='${wl}-z,text'
12275 archive_cmds_need_lc_CXX=no
12276 hardcode_shlibpath_var_CXX=no
12277 runpath_var='LD_RUN_PATH'
12278
12279 case $cc_basename in
12280 CC*)
12281 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12282 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 ;;
12284 *)
12285 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12286 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 ;;
12288 esac
12289 ;;
12290 sysv5* | sco3.2v5* | sco5v6*)
12291 # Note: We can NOT use -z defs as we might desire, because we do not
12292 # link with -lc, and that would cause any symbols used from libc to
12293 # always be unresolved, which means just about no library would
12294 # ever link correctly. If we're not using GNU ld we use -z text
12295 # though, which does catch some bad symbols but isn't as heavy-handed
12296 # as -z defs.
12297 # For security reasons, it is highly recommended that you always
12298 # use absolute paths for naming shared libraries, and exclude the
12299 # DT_RUNPATH tag from executables and libraries. But doing so
12300 # requires that you compile everything twice, which is a pain.
12301 # So that behaviour is only enabled if SCOABSPATH is set to a
12302 # non-empty value in the environment. Most likely only useful for
12303 # creating official distributions of packages.
12304 # This is a hack until libtool officially supports absolute path
12305 # names for shared libraries.
12306 no_undefined_flag_CXX='${wl}-z,text'
12307 allow_undefined_flag_CXX='${wl}-z,nodefs'
12308 archive_cmds_need_lc_CXX=no
12309 hardcode_shlibpath_var_CXX=no
12310 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12311 hardcode_libdir_separator_CXX=':'
12312 link_all_deplibs_CXX=yes
12313 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12314 runpath_var='LD_RUN_PATH'
12315
12316 case $cc_basename in
12317 CC*)
12318 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12319 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 ;;
12321 *)
12322 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12323 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12324 ;;
12325 esac
12326 ;;
12327 tandem*)
12328 case $cc_basename in
12329 NCC*)
12330 # NonStop-UX NCC 3.20
12331 # FIXME: insert proper C++ library support
12332 ld_shlibs_CXX=no
12333 ;;
12334 *)
12335 # FIXME: insert proper C++ library support
12336 ld_shlibs_CXX=no
12337 ;;
12338 esac
12339 ;;
12340 vxworks*)
12341 # FIXME: insert proper C++ library support
12342 ld_shlibs_CXX=no
12343 ;;
12344 *)
12345 # FIXME: insert proper C++ library support
12346 ld_shlibs_CXX=no
12347 ;;
12348esac
12349echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12350echo "${ECHO_T}$ld_shlibs_CXX" >&6
12351test "$ld_shlibs_CXX" = no && can_build_shared=no
12352
12353GCC_CXX="$GXX"
12354LD_CXX="$LD"
12355
12356
12357cat > conftest.$ac_ext <<EOF
12358class Foo
12359{
12360public:
12361 Foo (void) { a = 0; }
12362private:
12363 int a;
12364};
12365EOF
12366
12367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368 (eval $ac_compile) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; then
12372 # Parse the compiler output and extract the necessary
12373 # objects, libraries and library flags.
12374
12375 # Sentinel used to keep track of whether or not we are before
12376 # the conftest object file.
12377 pre_test_object_deps_done=no
12378
12379 # The `*' in the case matches for architectures that use `case' in
12380 # $output_verbose_cmd can trigger glob expansion during the loop
12381 # eval without this substitution.
12382 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12383
12384 for p in `eval $output_verbose_link_cmd`; do
12385 case $p in
12386
12387 -L* | -R* | -l*)
12388 # Some compilers place space between "-{L,R}" and the path.
12389 # Remove the space.
12390 if test $p = "-L" \
12391 || test $p = "-R"; then
12392 prev=$p
12393 continue
12394 else
12395 prev=
12396 fi
12397
12398 if test "$pre_test_object_deps_done" = no; then
12399 case $p in
12400 -L* | -R*)
12401 # Internal compiler library paths should come after those
12402 # provided the user. The postdeps already come after the
12403 # user supplied libs so there is no need to process them.
12404 if test -z "$compiler_lib_search_path_CXX"; then
12405 compiler_lib_search_path_CXX="${prev}${p}"
12406 else
12407 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12408 fi
12409 ;;
12410 # The "-l" case would never come before the object being
12411 # linked, so don't bother handling this case.
12412 esac
12413 else
12414 if test -z "$postdeps_CXX"; then
12415 postdeps_CXX="${prev}${p}"
12416 else
12417 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12418 fi
12419 fi
12420 ;;
12421
12422 *.$objext)
12423 # This assumes that the test object file only shows up
12424 # once in the compiler output.
12425 if test "$p" = "conftest.$objext"; then
12426 pre_test_object_deps_done=yes
12427 continue
12428 fi
12429
12430 if test "$pre_test_object_deps_done" = no; then
12431 if test -z "$predep_objects_CXX"; then
12432 predep_objects_CXX="$p"
12433 else
12434 predep_objects_CXX="$predep_objects_CXX $p"
12435 fi
12436 else
12437 if test -z "$postdep_objects_CXX"; then
12438 postdep_objects_CXX="$p"
12439 else
12440 postdep_objects_CXX="$postdep_objects_CXX $p"
12441 fi
12442 fi
12443 ;;
12444
12445 *) ;; # Ignore the rest.
12446
12447 esac
12448 done
12449
12450 # Clean up.
12451 rm -f a.out a.exe
12452else
12453 echo "libtool.m4: error: problem compiling CXX test program"
12454fi
12455
12456$rm -f confest.$objext
12457
12458# PORTME: override above test on systems where it is broken
12459case $host_os in
12460interix3*)
12461 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12462 # hack all around it, let's just trust "g++" to DTRT.
12463 predep_objects_CXX=
12464 postdep_objects_CXX=
12465 postdeps_CXX=
12466 ;;
12467
12468solaris*)
12469 case $cc_basename in
12470 CC*)
12471 # Adding this requires a known-good setup of shared libraries for
12472 # Sun compiler versions before 5.6, else PIC objects from an old
12473 # archive will be linked into the output, leading to subtle bugs.
12474 postdeps_CXX='-lCstd -lCrun'
12475 ;;
12476 esac
12477 ;;
12478esac
12479
12480
12481case " $postdeps_CXX " in
12482*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12483esac
12484
12485lt_prog_compiler_wl_CXX=
12486lt_prog_compiler_pic_CXX=
12487lt_prog_compiler_static_CXX=
12488
12489echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12490echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12491
12492 # C++ specific cases for pic, static, wl, etc.
12493 if test "$GXX" = yes; then
12494 lt_prog_compiler_wl_CXX='-Wl,'
12495 lt_prog_compiler_static_CXX='-static'
12496
12497 case $host_os in
12498 aix*)
12499 # All AIX code is PIC.
12500 if test "$host_cpu" = ia64; then
12501 # AIX 5 now supports IA64 processor
12502 lt_prog_compiler_static_CXX='-Bstatic'
12503 fi
12504 ;;
12505 amigaos*)
12506 # FIXME: we need at least 68020 code to build shared libraries, but
12507 # adding the `-m68020' flag to GCC prevents building anything better,
12508 # like `-m68040'.
12509 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12510 ;;
12511 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12512 # PIC is the default for these OSes.
12513 ;;
12514 mingw* | os2* | pw32*)
12515 # This hack is so that the source file can tell whether it is being
12516 # built for inclusion in a dll (and should export symbols for example).
12517 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12518 ;;
12519 darwin* | rhapsody*)
12520 # PIC is the default on this platform
12521 # Common symbols not allowed in MH_DYLIB files
12522 lt_prog_compiler_pic_CXX='-fno-common'
12523 ;;
12524 *djgpp*)
12525 # DJGPP does not support shared libraries at all
12526 lt_prog_compiler_pic_CXX=
12527 ;;
12528 interix3*)
12529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12530 # Instead, we relocate shared libraries at runtime.
12531 ;;
12532 sysv4*MP*)
12533 if test -d /usr/nec; then
12534 lt_prog_compiler_pic_CXX=-Kconform_pic
12535 fi
12536 ;;
12537 hpux*)
12538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12539 # not for PA HP-UX.
12540 case $host_cpu in
12541 hppa*64*|ia64*)
12542 ;;
12543 *)
12544 lt_prog_compiler_pic_CXX='-fPIC'
12545 ;;
12546 esac
12547 ;;
12548 *)
12549 lt_prog_compiler_pic_CXX='-fPIC'
12550 ;;
12551 esac
12552 else
12553 case $host_os in
12554 aix4* | aix5*)
12555 # All AIX code is PIC.
12556 if test "$host_cpu" = ia64; then
12557 # AIX 5 now supports IA64 processor
12558 lt_prog_compiler_static_CXX='-Bstatic'
12559 else
12560 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12561 fi
12562 ;;
12563 chorus*)
12564 case $cc_basename in
12565 cxch68*)
12566 # Green Hills C++ Compiler
12567 # _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"
12568 ;;
12569 esac
12570 ;;
12571 darwin*)
12572 # PIC is the default on this platform
12573 # Common symbols not allowed in MH_DYLIB files
12574 case $cc_basename in
12575 xlc*)
12576 lt_prog_compiler_pic_CXX='-qnocommon'
12577 lt_prog_compiler_wl_CXX='-Wl,'
12578 ;;
12579 esac
12580 ;;
12581 dgux*)
12582 case $cc_basename in
12583 ec++*)
12584 lt_prog_compiler_pic_CXX='-KPIC'
12585 ;;
12586 ghcx*)
12587 # Green Hills C++ Compiler
12588 lt_prog_compiler_pic_CXX='-pic'
12589 ;;
12590 *)
12591 ;;
12592 esac
12593 ;;
12594 freebsd* | kfreebsd*-gnu | dragonfly*)
12595 # FreeBSD uses GNU C++
12596 ;;
12597 hpux9* | hpux10* | hpux11*)
12598 case $cc_basename in
12599 CC*)
12600 lt_prog_compiler_wl_CXX='-Wl,'
12601 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12602 if test "$host_cpu" != ia64; then
12603 lt_prog_compiler_pic_CXX='+Z'
12604 fi
12605 ;;
12606 aCC*)
12607 lt_prog_compiler_wl_CXX='-Wl,'
12608 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12609 case $host_cpu in
12610 hppa*64*|ia64*)
12611 # +Z the default
12612 ;;
12613 *)
12614 lt_prog_compiler_pic_CXX='+Z'
12615 ;;
12616 esac
12617 ;;
12618 *)
12619 ;;
12620 esac
12621 ;;
12622 interix*)
12623 # This is c89, which is MS Visual C++ (no shared libs)
12624 # Anyone wants to do a port?
12625 ;;
12626 irix5* | irix6* | nonstopux*)
12627 case $cc_basename in
12628 CC*)
12629 lt_prog_compiler_wl_CXX='-Wl,'
12630 lt_prog_compiler_static_CXX='-non_shared'
12631 # CC pic flag -KPIC is the default.
12632 ;;
12633 *)
12634 ;;
12635 esac
12636 ;;
12637 linux*)
12638 case $cc_basename in
12639 KCC*)
12640 # KAI C++ Compiler
12641 lt_prog_compiler_wl_CXX='--backend -Wl,'
12642 lt_prog_compiler_pic_CXX='-fPIC'
12643 ;;
12644 icpc* | ecpc*)
12645 # Intel C++
12646 lt_prog_compiler_wl_CXX='-Wl,'
12647 lt_prog_compiler_pic_CXX='-KPIC'
12648 lt_prog_compiler_static_CXX='-static'
12649 ;;
12650 pgCC*)
12651 # Portland Group C++ compiler.
12652 lt_prog_compiler_wl_CXX='-Wl,'
12653 lt_prog_compiler_pic_CXX='-fpic'
12654 lt_prog_compiler_static_CXX='-Bstatic'
12655 ;;
12656 cxx*)
12657 # Compaq C++
12658 # Make sure the PIC flag is empty. It appears that all Alpha
12659 # Linux and Compaq Tru64 Unix objects are PIC.
12660 lt_prog_compiler_pic_CXX=
12661 lt_prog_compiler_static_CXX='-non_shared'
12662 ;;
12663 *)
12664 ;;
12665 esac
12666 ;;
12667 lynxos*)
12668 ;;
12669 m88k*)
12670 ;;
12671 mvs*)
12672 case $cc_basename in
12673 cxx*)
12674 lt_prog_compiler_pic_CXX='-W c,exportall'
12675 ;;
12676 *)
12677 ;;
12678 esac
12679 ;;
12680 netbsd*)
12681 ;;
12682 osf3* | osf4* | osf5*)
12683 case $cc_basename in
12684 KCC*)
12685 lt_prog_compiler_wl_CXX='--backend -Wl,'
12686 ;;
12687 RCC*)
12688 # Rational C++ 2.4.1
12689 lt_prog_compiler_pic_CXX='-pic'
12690 ;;
12691 cxx*)
12692 # Digital/Compaq C++
12693 lt_prog_compiler_wl_CXX='-Wl,'
12694 # Make sure the PIC flag is empty. It appears that all Alpha
12695 # Linux and Compaq Tru64 Unix objects are PIC.
12696 lt_prog_compiler_pic_CXX=
12697 lt_prog_compiler_static_CXX='-non_shared'
12698 ;;
12699 *)
12700 ;;
12701 esac
12702 ;;
12703 psos*)
12704 ;;
12705 solaris*)
12706 case $cc_basename in
12707 CC*)
12708 # Sun C++ 4.2, 5.x and Centerline C++
12709 lt_prog_compiler_pic_CXX='-KPIC'
12710 lt_prog_compiler_static_CXX='-Bstatic'
12711 lt_prog_compiler_wl_CXX='-Qoption ld '
12712 ;;
12713 gcx*)
12714 # Green Hills C++ Compiler
12715 lt_prog_compiler_pic_CXX='-PIC'
12716 ;;
12717 *)
12718 ;;
12719 esac
12720 ;;
12721 sunos4*)
12722 case $cc_basename in
12723 CC*)
12724 # Sun C++ 4.x
12725 lt_prog_compiler_pic_CXX='-pic'
12726 lt_prog_compiler_static_CXX='-Bstatic'
12727 ;;
12728 lcc*)
12729 # Lucid
12730 lt_prog_compiler_pic_CXX='-pic'
12731 ;;
12732 *)
12733 ;;
12734 esac
12735 ;;
12736 tandem*)
12737 case $cc_basename in
12738 NCC*)
12739 # NonStop-UX NCC 3.20
12740 lt_prog_compiler_pic_CXX='-KPIC'
12741 ;;
12742 *)
12743 ;;
12744 esac
12745 ;;
12746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12747 case $cc_basename in
12748 CC*)
12749 lt_prog_compiler_wl_CXX='-Wl,'
12750 lt_prog_compiler_pic_CXX='-KPIC'
12751 lt_prog_compiler_static_CXX='-Bstatic'
12752 ;;
12753 esac
12754 ;;
12755 vxworks*)
12756 ;;
12757 *)
12758 lt_prog_compiler_can_build_shared_CXX=no
12759 ;;
12760 esac
12761 fi
12762
12763echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12764echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12765
12766#
12767# Check to make sure the PIC flag actually works.
12768#
12769if test -n "$lt_prog_compiler_pic_CXX"; then
12770
12771echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12772echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12773if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775else
12776 lt_prog_compiler_pic_works_CXX=no
12777 ac_outfile=conftest.$ac_objext
12778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12779 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12780 # Insert the option either (1) after the last *FLAGS variable, or
12781 # (2) before a word containing "conftest.", or (3) at the end.
12782 # Note that $ac_compile itself does not contain backslashes and begins
12783 # with a dollar sign (not a hyphen), so the echo should work correctly.
12784 # The option is referenced via a variable to avoid confusing sed.
12785 lt_compile=`echo "$ac_compile" | $SED \
12786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12788 -e 's:$: $lt_compiler_flag:'`
12789 (eval echo "\"\$as_me:12789: $lt_compile\"" >&5)
12790 (eval "$lt_compile" 2>conftest.err)
12791 ac_status=$?
12792 cat conftest.err >&5
12793 echo "$as_me:12793: \$? = $ac_status" >&5
12794 if (exit $ac_status) && test -s "$ac_outfile"; then
12795 # The compiler can only warn and ignore the option if not recognized
12796 # So say no if there are warnings other than the usual output.
12797 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12799 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12800 lt_prog_compiler_pic_works_CXX=yes
12801 fi
12802 fi
12803 $rm conftest*
12804
12805fi
12806echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12807echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12808
12809if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12810 case $lt_prog_compiler_pic_CXX in
12811 "" | " "*) ;;
12812 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12813 esac
12814else
12815 lt_prog_compiler_pic_CXX=
12816 lt_prog_compiler_can_build_shared_CXX=no
12817fi
12818
12819fi
12820case $host_os in
12821 # For platforms which do not support PIC, -DPIC is meaningless:
12822 *djgpp*)
12823 lt_prog_compiler_pic_CXX=
12824 ;;
12825 *)
12826 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12827 ;;
12828esac
12829
12830#
12831# Check to make sure the static flag actually works.
12832#
12833wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12834echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12835echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12836if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838else
12839 lt_prog_compiler_static_works_CXX=no
12840 save_LDFLAGS="$LDFLAGS"
12841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12842 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12844 # The linker can only warn and ignore the option if not recognized
12845 # So say no if there are warnings
12846 if test -s conftest.err; then
12847 # Append any errors to the config.log.
12848 cat conftest.err 1>&5
12849 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12851 if diff conftest.exp conftest.er2 >/dev/null; then
12852 lt_prog_compiler_static_works_CXX=yes
12853 fi
12854 else
12855 lt_prog_compiler_static_works_CXX=yes
12856 fi
12857 fi
12858 $rm conftest*
12859 LDFLAGS="$save_LDFLAGS"
12860
12861fi
12862echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12863echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12864
12865if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12866 :
12867else
12868 lt_prog_compiler_static_CXX=
12869fi
12870
12871
12872echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12873echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12874if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876else
12877 lt_cv_prog_compiler_c_o_CXX=no
12878 $rm -r conftest 2>/dev/null
12879 mkdir conftest
12880 cd conftest
12881 mkdir out
12882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12883
12884 lt_compiler_flag="-o out/conftest2.$ac_objext"
12885 # Insert the option either (1) after the last *FLAGS variable, or
12886 # (2) before a word containing "conftest.", or (3) at the end.
12887 # Note that $ac_compile itself does not contain backslashes and begins
12888 # with a dollar sign (not a hyphen), so the echo should work correctly.
12889 lt_compile=`echo "$ac_compile" | $SED \
12890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12892 -e 's:$: $lt_compiler_flag:'`
12893 (eval echo "\"\$as_me:12893: $lt_compile\"" >&5)
12894 (eval "$lt_compile" 2>out/conftest.err)
12895 ac_status=$?
12896 cat out/conftest.err >&5
12897 echo "$as_me:12897: \$? = $ac_status" >&5
12898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12899 then
12900 # The compiler can only warn and ignore the option if not recognized
12901 # So say no if there are warnings
12902 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12905 lt_cv_prog_compiler_c_o_CXX=yes
12906 fi
12907 fi
12908 chmod u+w . 2>&5
12909 $rm conftest*
12910 # SGI C++ compiler will create directory out/ii_files/ for
12911 # template instantiation
12912 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12913 $rm out/* && rmdir out
12914 cd ..
12915 rmdir conftest
12916 $rm conftest*
12917
12918fi
12919echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12920echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12921
12922
12923hard_links="nottested"
12924if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12925 # do not overwrite the value of need_locks provided by the user
12926 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12927echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12928 hard_links=yes
12929 $rm conftest*
12930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12931 touch conftest.a
12932 ln conftest.a conftest.b 2>&5 || hard_links=no
12933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12934 echo "$as_me:$LINENO: result: $hard_links" >&5
12935echo "${ECHO_T}$hard_links" >&6
12936 if test "$hard_links" = no; then
12937 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12938echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12939 need_locks=warn
12940 fi
12941else
12942 need_locks=no
12943fi
12944
12945echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12946echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12947
12948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12949 case $host_os in
12950 aix4* | aix5*)
12951 # If we're using GNU nm, then we don't want the "-C" option.
12952 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12953 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12954 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'
12955 else
12956 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'
12957 fi
12958 ;;
12959 pw32*)
12960 export_symbols_cmds_CXX="$ltdll_cmds"
12961 ;;
12962 cygwin* | mingw*)
12963 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'
12964 ;;
12965 *)
12966 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12967 ;;
12968 esac
12969
12970echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12971echo "${ECHO_T}$ld_shlibs_CXX" >&6
12972test "$ld_shlibs_CXX" = no && can_build_shared=no
12973
12974#
12975# Do we need to explicitly link libc?
12976#
12977case "x$archive_cmds_need_lc_CXX" in
12978x|xyes)
12979 # Assume -lc should be added
12980 archive_cmds_need_lc_CXX=yes
12981
12982 if test "$enable_shared" = yes && test "$GCC" = yes; then
12983 case $archive_cmds_CXX in
12984 *'~'*)
12985 # FIXME: we may have to deal with multi-command sequences.
12986 ;;
12987 '$CC '*)
12988 # Test whether the compiler implicitly links with -lc since on some
12989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12990 # to ld, don't add -lc before -lgcc.
12991 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12992echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12993 $rm conftest*
12994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12995
12996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } 2>conftest.err; then
13001 soname=conftest
13002 lib=conftest
13003 libobjs=conftest.$ac_objext
13004 deplibs=
13005 wl=$lt_prog_compiler_wl_CXX
13006 pic_flag=$lt_prog_compiler_pic_CXX
13007 compiler_flags=-v
13008 linker_flags=-v
13009 verstring=
13010 output_objdir=.
13011 libname=conftest
13012 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13013 allow_undefined_flag_CXX=
13014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13015 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }
13019 then
13020 archive_cmds_need_lc_CXX=no
13021 else
13022 archive_cmds_need_lc_CXX=yes
13023 fi
13024 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13025 else
13026 cat conftest.err 1>&5
13027 fi
13028 $rm conftest*
13029 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13030echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13031 ;;
13032 esac
13033 fi
13034 ;;
13035esac
13036
13037echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13038echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13039library_names_spec=
13040libname_spec='lib$name'
13041soname_spec=
13042shrext_cmds=".so"
13043postinstall_cmds=
13044postuninstall_cmds=
13045finish_cmds=
13046finish_eval=
13047shlibpath_var=
13048shlibpath_overrides_runpath=unknown
13049version_type=none
13050dynamic_linker="$host_os ld.so"
13051sys_lib_dlsearch_path_spec="/lib /usr/lib"
13052if test "$GCC" = yes; then
13053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13054 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13055 # if the path contains ";" then we assume it to be the separator
13056 # otherwise default to the standard path separator (i.e. ":") - it is
13057 # assumed that no part of a normal pathname contains ";" but that should
13058 # okay in the real world where ";" in dirpaths is itself problematic.
13059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13060 else
13061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13062 fi
13063else
13064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13065fi
13066need_lib_prefix=unknown
13067hardcode_into_libs=no
13068
13069# when you set need_version to no, make sure it does not cause -set_version
13070# flags to be left without arguments
13071need_version=unknown
13072
13073case $host_os in
13074aix3*)
13075 version_type=linux
13076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13077 shlibpath_var=LIBPATH
13078
13079 # AIX 3 has no versioning support, so we append a major version to the name.
13080 soname_spec='${libname}${release}${shared_ext}$major'
13081 ;;
13082
13083aix4* | aix5*)
13084 version_type=linux
13085 need_lib_prefix=no
13086 need_version=no
13087 hardcode_into_libs=yes
13088 if test "$host_cpu" = ia64; then
13089 # AIX 5 supports IA64
13090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13091 shlibpath_var=LD_LIBRARY_PATH
13092 else
13093 # With GCC up to 2.95.x, collect2 would create an import file
13094 # for dependence libraries. The import file would start with
13095 # the line `#! .'. This would cause the generated library to
13096 # depend on `.', always an invalid library. This was fixed in
13097 # development snapshots of GCC prior to 3.0.
13098 case $host_os in
13099 aix4 | aix4.[01] | aix4.[01].*)
13100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13101 echo ' yes '
13102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13103 :
13104 else
13105 can_build_shared=no
13106 fi
13107 ;;
13108 esac
13109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13110 # soname into executable. Probably we can add versioning support to
13111 # collect2, so additional links can be useful in future.
13112 if test "$aix_use_runtimelinking" = yes; then
13113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13114 # instead of lib<name>.a to let people know that these are not
13115 # typical AIX shared libraries.
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13117 else
13118 # We preserve .a as extension for shared libraries through AIX4.2
13119 # and later when we are not doing run time linking.
13120 library_names_spec='${libname}${release}.a $libname.a'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 fi
13123 shlibpath_var=LIBPATH
13124 fi
13125 ;;
13126
13127amigaos*)
13128 library_names_spec='$libname.ixlibrary $libname.a'
13129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13130 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'
13131 ;;
13132
13133beos*)
13134 library_names_spec='${libname}${shared_ext}'
13135 dynamic_linker="$host_os ld.so"
13136 shlibpath_var=LIBRARY_PATH
13137 ;;
13138
13139bsdi[45]*)
13140 version_type=linux
13141 need_version=no
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13143 soname_spec='${libname}${release}${shared_ext}$major'
13144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13148 # the default ld.so.conf also contains /usr/contrib/lib and
13149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13150 # libtool to hard-code these into programs
13151 ;;
13152
13153cygwin* | mingw* | pw32*)
13154 version_type=windows
13155 shrext_cmds=".dll"
13156 need_version=no
13157 need_lib_prefix=no
13158
13159 case $GCC,$host_os in
13160 yes,cygwin* | yes,mingw* | yes,pw32*)
13161 library_names_spec='$libname.dll.a'
13162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13163 postinstall_cmds='base_file=`basename \${file}`~
13164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13165 dldir=$destdir/`dirname \$dlpath`~
13166 test -d \$dldir || mkdir -p \$dldir~
13167 $install_prog $dir/$dlname \$dldir/$dlname~
13168 chmod a+x \$dldir/$dlname'
13169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13170 dlpath=$dir/\$dldll~
13171 $rm \$dlpath'
13172 shlibpath_overrides_runpath=yes
13173
13174 case $host_os in
13175 cygwin*)
13176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13179 ;;
13180 mingw*)
13181 # MinGW DLLs use traditional 'lib' prefix
13182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13185 # It is most probably a Windows format PATH printed by
13186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13187 # path with ; separators, and with drive letters. We can handle the
13188 # drive letters (cygwin fileutils understands them), so leave them,
13189 # especially as we might pass files found there to a mingw objdump,
13190 # which wouldn't understand a cygwinified path. Ahh.
13191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13192 else
13193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13194 fi
13195 ;;
13196 pw32*)
13197 # pw32 DLLs use 'pw' prefix rather than 'lib'
13198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13199 ;;
13200 esac
13201 ;;
13202
13203 *)
13204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13205 ;;
13206 esac
13207 dynamic_linker='Win32 ld.exe'
13208 # FIXME: first we should search . and the directory the executable is in
13209 shlibpath_var=PATH
13210 ;;
13211
13212darwin* | rhapsody*)
13213 dynamic_linker="$host_os dyld"
13214 version_type=darwin
13215 need_lib_prefix=no
13216 need_version=no
13217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13218 soname_spec='${libname}${release}${major}$shared_ext'
13219 shlibpath_overrides_runpath=yes
13220 shlibpath_var=DYLD_LIBRARY_PATH
13221 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13223 if test "$GCC" = yes; then
13224 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"`
13225 else
13226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13227 fi
13228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13229 ;;
13230
13231dgux*)
13232 version_type=linux
13233 need_lib_prefix=no
13234 need_version=no
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13236 soname_spec='${libname}${release}${shared_ext}$major'
13237 shlibpath_var=LD_LIBRARY_PATH
13238 ;;
13239
13240freebsd1*)
13241 dynamic_linker=no
13242 ;;
13243
13244kfreebsd*-gnu)
13245 version_type=linux
13246 need_lib_prefix=no
13247 need_version=no
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 shlibpath_overrides_runpath=no
13252 hardcode_into_libs=yes
13253 dynamic_linker='GNU ld.so'
13254 ;;
13255
13256freebsd* | dragonfly*)
13257 # DragonFly does not have aout. When/if they implement a new
13258 # versioning mechanism, adjust this.
13259 if test -x /usr/bin/objformat; then
13260 objformat=`/usr/bin/objformat`
13261 else
13262 case $host_os in
13263 freebsd[123]*) objformat=aout ;;
13264 *) objformat=elf ;;
13265 esac
13266 fi
13267 version_type=freebsd-$objformat
13268 case $version_type in
13269 freebsd-elf*)
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13271 need_version=no
13272 need_lib_prefix=no
13273 ;;
13274 freebsd-*)
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13276 need_version=yes
13277 ;;
13278 esac
13279 shlibpath_var=LD_LIBRARY_PATH
13280 case $host_os in
13281 freebsd2*)
13282 shlibpath_overrides_runpath=yes
13283 ;;
13284 freebsd3.[01]* | freebsdelf3.[01]*)
13285 shlibpath_overrides_runpath=yes
13286 hardcode_into_libs=yes
13287 ;;
13288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13290 shlibpath_overrides_runpath=no
13291 hardcode_into_libs=yes
13292 ;;
13293 freebsd*) # from 4.6 on
13294 shlibpath_overrides_runpath=yes
13295 hardcode_into_libs=yes
13296 ;;
13297 esac
13298 ;;
13299
13300gnu*)
13301 version_type=linux
13302 need_lib_prefix=no
13303 need_version=no
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13305 soname_spec='${libname}${release}${shared_ext}$major'
13306 shlibpath_var=LD_LIBRARY_PATH
13307 hardcode_into_libs=yes
13308 ;;
13309
13310hpux9* | hpux10* | hpux11*)
13311 # Give a soname corresponding to the major version so that dld.sl refuses to
13312 # link against other versions.
13313 version_type=sunos
13314 need_lib_prefix=no
13315 need_version=no
13316 case $host_cpu in
13317 ia64*)
13318 shrext_cmds='.so'
13319 hardcode_into_libs=yes
13320 dynamic_linker="$host_os dld.so"
13321 shlibpath_var=LD_LIBRARY_PATH
13322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 if test "X$HPUX_IA64_MODE" = X32; then
13326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13327 else
13328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13329 fi
13330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13331 ;;
13332 hppa*64*)
13333 shrext_cmds='.sl'
13334 hardcode_into_libs=yes
13335 dynamic_linker="$host_os dld.sl"
13336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13342 ;;
13343 *)
13344 shrext_cmds='.sl'
13345 dynamic_linker="$host_os dld.sl"
13346 shlibpath_var=SHLIB_PATH
13347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 ;;
13351 esac
13352 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13353 postinstall_cmds='chmod 555 $lib'
13354 ;;
13355
13356interix3*)
13357 version_type=linux
13358 need_lib_prefix=no
13359 need_version=no
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=no
13365 hardcode_into_libs=yes
13366 ;;
13367
13368irix5* | irix6* | nonstopux*)
13369 case $host_os in
13370 nonstopux*) version_type=nonstopux ;;
13371 *)
13372 if test "$lt_cv_prog_gnu_ld" = yes; then
13373 version_type=linux
13374 else
13375 version_type=irix
13376 fi ;;
13377 esac
13378 need_lib_prefix=no
13379 need_version=no
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13382 case $host_os in
13383 irix5* | nonstopux*)
13384 libsuff= shlibsuff=
13385 ;;
13386 *)
13387 case $LD in # libtool.m4 will add one of these switches to LD
13388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13389 libsuff= shlibsuff= libmagic=32-bit;;
13390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13391 libsuff=32 shlibsuff=N32 libmagic=N32;;
13392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13394 *) libsuff= shlibsuff= libmagic=never-match;;
13395 esac
13396 ;;
13397 esac
13398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13399 shlibpath_overrides_runpath=no
13400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13402 hardcode_into_libs=yes
13403 ;;
13404
13405# No shared lib support for Linux oldld, aout, or coff.
13406linux*oldld* | linux*aout* | linux*coff*)
13407 dynamic_linker=no
13408 ;;
13409
13410# This must be Linux ELF.
13411linux*)
13412 version_type=linux
13413 need_lib_prefix=no
13414 need_version=no
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 soname_spec='${libname}${release}${shared_ext}$major'
13417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 shlibpath_overrides_runpath=no
13420 # This implies no fast_install, which is unacceptable.
13421 # Some rework will be needed to allow for fast_install
13422 # before this can be enabled.
13423 hardcode_into_libs=yes
13424
13425 # find out which ABI we are using
13426 libsuff=
13427 case "$host_cpu" in
13428 x86_64*|s390x*|powerpc64*)
13429 echo '#line 13429 "configure"' > conftest.$ac_ext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; then
13435 case `/usr/bin/file conftest.$ac_objext` in
13436 *64-bit*)
13437 libsuff=64
13438 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13439 ;;
13440 esac
13441 fi
13442 rm -rf conftest*
13443 ;;
13444 esac
13445
13446 # Append ld.so.conf contents to the search path
13447 if test -f /etc/ld.so.conf; then
13448 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13449 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13450 fi
13451
13452 # We used to test for /lib/ld.so.1 and disable shared libraries on
13453 # powerpc, because MkLinux only supported shared libraries with the
13454 # GNU dynamic linker. Since this was broken with cross compilers,
13455 # most powerpc-linux boxes support dynamic linking these days and
13456 # people can always --disable-shared, the test was removed, and we
13457 # assume the GNU/Linux dynamic linker is in use.
13458 dynamic_linker='GNU/Linux ld.so'
13459 ;;
13460
13461knetbsd*-gnu)
13462 version_type=linux
13463 need_lib_prefix=no
13464 need_version=no
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=no
13469 hardcode_into_libs=yes
13470 dynamic_linker='GNU ld.so'
13471 ;;
13472
13473netbsd*)
13474 version_type=sunos
13475 need_lib_prefix=no
13476 need_version=no
13477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480 dynamic_linker='NetBSD (a.out) ld.so'
13481 else
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 dynamic_linker='NetBSD ld.elf_so'
13485 fi
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 hardcode_into_libs=yes
13489 ;;
13490
13491newsos6)
13492 version_type=linux
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=yes
13496 ;;
13497
13498nto-qnx*)
13499 version_type=linux
13500 need_lib_prefix=no
13501 need_version=no
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503 soname_spec='${libname}${release}${shared_ext}$major'
13504 shlibpath_var=LD_LIBRARY_PATH
13505 shlibpath_overrides_runpath=yes
13506 ;;
13507
13508openbsd*)
13509 version_type=sunos
13510 sys_lib_dlsearch_path_spec="/usr/lib"
13511 need_lib_prefix=no
13512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13513 case $host_os in
13514 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13515 *) need_version=no ;;
13516 esac
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13521 case $host_os in
13522 openbsd2.[89] | openbsd2.[89].*)
13523 shlibpath_overrides_runpath=no
13524 ;;
13525 *)
13526 shlibpath_overrides_runpath=yes
13527 ;;
13528 esac
13529 else
13530 shlibpath_overrides_runpath=yes
13531 fi
13532 ;;
13533
13534os2*)
13535 libname_spec='$name'
13536 shrext_cmds=".dll"
13537 need_lib_prefix=no
13538 library_names_spec='$libname${shared_ext} $libname.a'
13539 dynamic_linker='OS/2 ld.exe'
13540 shlibpath_var=LIBPATH
13541 ;;
13542
13543osf3* | osf4* | osf5*)
13544 version_type=osf
13545 need_lib_prefix=no
13546 need_version=no
13547 soname_spec='${libname}${release}${shared_ext}$major'
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 shlibpath_var=LD_LIBRARY_PATH
13550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13552 ;;
13553
13554solaris*)
13555 version_type=linux
13556 need_lib_prefix=no
13557 need_version=no
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559 soname_spec='${libname}${release}${shared_ext}$major'
13560 shlibpath_var=LD_LIBRARY_PATH
13561 shlibpath_overrides_runpath=yes
13562 hardcode_into_libs=yes
13563 # ldd complains unless libraries are executable
13564 postinstall_cmds='chmod +x $lib'
13565 ;;
13566
13567sunos4*)
13568 version_type=sunos
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 shlibpath_overrides_runpath=yes
13573 if test "$with_gnu_ld" = yes; then
13574 need_lib_prefix=no
13575 fi
13576 need_version=yes
13577 ;;
13578
13579sysv4 | sysv4.3*)
13580 version_type=linux
13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13582 soname_spec='${libname}${release}${shared_ext}$major'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 case $host_vendor in
13585 sni)
13586 shlibpath_overrides_runpath=no
13587 need_lib_prefix=no
13588 export_dynamic_flag_spec='${wl}-Blargedynsym'
13589 runpath_var=LD_RUN_PATH
13590 ;;
13591 siemens)
13592 need_lib_prefix=no
13593 ;;
13594 motorola)
13595 need_lib_prefix=no
13596 need_version=no
13597 shlibpath_overrides_runpath=no
13598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13599 ;;
13600 esac
13601 ;;
13602
13603sysv4*MP*)
13604 if test -d /usr/nec ;then
13605 version_type=linux
13606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13607 soname_spec='$libname${shared_ext}.$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 fi
13610 ;;
13611
13612sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13613 version_type=freebsd-elf
13614 need_lib_prefix=no
13615 need_version=no
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 shlibpath_var=LD_LIBRARY_PATH
13619 hardcode_into_libs=yes
13620 if test "$with_gnu_ld" = yes; then
13621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13622 shlibpath_overrides_runpath=no
13623 else
13624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13625 shlibpath_overrides_runpath=yes
13626 case $host_os in
13627 sco3.2v5*)
13628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13629 ;;
13630 esac
13631 fi
13632 sys_lib_dlsearch_path_spec='/usr/lib'
13633 ;;
13634
13635uts4*)
13636 version_type=linux
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13638 soname_spec='${libname}${release}${shared_ext}$major'
13639 shlibpath_var=LD_LIBRARY_PATH
13640 ;;
13641
13642*)
13643 dynamic_linker=no
13644 ;;
13645esac
13646echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13647echo "${ECHO_T}$dynamic_linker" >&6
13648test "$dynamic_linker" = no && can_build_shared=no
13649
13650variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13651if test "$GCC" = yes; then
13652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13653fi
13654
13655echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13656echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13657hardcode_action_CXX=
13658if test -n "$hardcode_libdir_flag_spec_CXX" || \
13659 test -n "$runpath_var_CXX" || \
13660 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13661
13662 # We can hardcode non-existant directories.
13663 if test "$hardcode_direct_CXX" != no &&
13664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13665 # have to relink, otherwise we might link with an installed library
13666 # when we should be linking with a yet-to-be-installed one
13667 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13668 test "$hardcode_minus_L_CXX" != no; then
13669 # Linking always hardcodes the temporary library directory.
13670 hardcode_action_CXX=relink
13671 else
13672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13673 hardcode_action_CXX=immediate
13674 fi
13675else
13676 # We cannot hardcode anything, or else we can only hardcode existing
13677 # directories.
13678 hardcode_action_CXX=unsupported
13679fi
13680echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13681echo "${ECHO_T}$hardcode_action_CXX" >&6
13682
13683if test "$hardcode_action_CXX" = relink; then
13684 # Fast installation is not supported
13685 enable_fast_install=no
13686elif test "$shlibpath_overrides_runpath" = yes ||
13687 test "$enable_shared" = no; then
13688 # Fast installation is not necessary
13689 enable_fast_install=needless
13690fi
13691
13692
13693# The else clause should only fire when bootstrapping the
13694# libtool distribution, otherwise you forgot to ship ltmain.sh
13695# with your package, and you will get complaints that there are
13696# no rules to generate ltmain.sh.
13697if test -f "$ltmain"; then
13698 # See if we are running on zsh, and set the options which allow our commands through
13699 # without removal of \ escapes.
13700 if test -n "${ZSH_VERSION+set}" ; then
13701 setopt NO_GLOB_SUBST
13702 fi
13703 # Now quote all the things that may contain metacharacters while being
13704 # careful not to overquote the AC_SUBSTed values. We take copies of the
13705 # variables and quote the copies for generation of the libtool script.
13706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13707 SED SHELL STRIP \
13708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13710 deplibs_check_method reload_flag reload_cmds need_locks \
13711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13712 lt_cv_sys_global_symbol_to_c_name_address \
13713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13714 old_postinstall_cmds old_postuninstall_cmds \
13715 compiler_CXX \
13716 CC_CXX \
13717 LD_CXX \
13718 lt_prog_compiler_wl_CXX \
13719 lt_prog_compiler_pic_CXX \
13720 lt_prog_compiler_static_CXX \
13721 lt_prog_compiler_no_builtin_flag_CXX \
13722 export_dynamic_flag_spec_CXX \
13723 thread_safe_flag_spec_CXX \
13724 whole_archive_flag_spec_CXX \
13725 enable_shared_with_static_runtimes_CXX \
13726 old_archive_cmds_CXX \
13727 old_archive_from_new_cmds_CXX \
13728 predep_objects_CXX \
13729 postdep_objects_CXX \
13730 predeps_CXX \
13731 postdeps_CXX \
13732 compiler_lib_search_path_CXX \
13733 archive_cmds_CXX \
13734 archive_expsym_cmds_CXX \
13735 postinstall_cmds_CXX \
13736 postuninstall_cmds_CXX \
13737 old_archive_from_expsyms_cmds_CXX \
13738 allow_undefined_flag_CXX \
13739 no_undefined_flag_CXX \
13740 export_symbols_cmds_CXX \
13741 hardcode_libdir_flag_spec_CXX \
13742 hardcode_libdir_flag_spec_ld_CXX \
13743 hardcode_libdir_separator_CXX \
13744 hardcode_automatic_CXX \
13745 module_cmds_CXX \
13746 module_expsym_cmds_CXX \
13747 lt_cv_prog_compiler_c_o_CXX \
13748 exclude_expsyms_CXX \
13749 include_expsyms_CXX; do
13750
13751 case $var in
13752 old_archive_cmds_CXX | \
13753 old_archive_from_new_cmds_CXX | \
13754 archive_cmds_CXX | \
13755 archive_expsym_cmds_CXX | \
13756 module_cmds_CXX | \
13757 module_expsym_cmds_CXX | \
13758 old_archive_from_expsyms_cmds_CXX | \
13759 export_symbols_cmds_CXX | \
13760 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13761 postinstall_cmds | postuninstall_cmds | \
13762 old_postinstall_cmds | old_postuninstall_cmds | \
13763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13764 # Double-quote double-evaled strings.
13765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13766 ;;
13767 *)
13768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13769 ;;
13770 esac
13771 done
13772
13773 case $lt_echo in
13774 *'\$0 --fallback-echo"')
13775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13776 ;;
13777 esac
13778
13779cfgfile="$ofile"
13780
13781 cat <<__EOF__ >> "$cfgfile"
13782# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13783
13784# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13785
13786# Shell to use when invoking shell scripts.
13787SHELL=$lt_SHELL
13788
13789# Whether or not to build shared libraries.
13790build_libtool_libs=$enable_shared
13791
13792# Whether or not to build static libraries.
13793build_old_libs=$enable_static
13794
13795# Whether or not to add -lc for building shared libraries.
13796build_libtool_need_lc=$archive_cmds_need_lc_CXX
13797
13798# Whether or not to disallow shared libs when runtime libs are static
13799allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13800
13801# Whether or not to optimize for fast installation.
13802fast_install=$enable_fast_install
13803
13804# The host system.
13805host_alias=$host_alias
13806host=$host
13807host_os=$host_os
13808
13809# The build system.
13810build_alias=$build_alias
13811build=$build
13812build_os=$build_os
13813
13814# An echo program that does not interpret backslashes.
13815echo=$lt_echo
13816
13817# The archiver.
13818AR=$lt_AR
13819AR_FLAGS=$lt_AR_FLAGS
13820
13821# A C compiler.
13822LTCC=$lt_LTCC
13823
13824# LTCC compiler flags.
13825LTCFLAGS=$lt_LTCFLAGS
13826
13827# A language-specific compiler.
13828CC=$lt_compiler_CXX
13829
13830# Is the compiler the GNU C compiler?
13831with_gcc=$GCC_CXX
13832
13833gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13834gcc_ver=\`gcc -dumpversion\`
13835
13836# An ERE matcher.
13837EGREP=$lt_EGREP
13838
13839# The linker used to build libraries.
13840LD=$lt_LD_CXX
13841
13842# Whether we need hard or soft links.
13843LN_S=$lt_LN_S
13844
13845# A BSD-compatible nm program.
13846NM=$lt_NM
13847
13848# A symbol stripping program
13849STRIP=$lt_STRIP
13850
13851# Used to examine libraries when file_magic_cmd begins "file"
13852MAGIC_CMD=$MAGIC_CMD
13853
13854# Used on cygwin: DLL creation program.
13855DLLTOOL="$DLLTOOL"
13856
13857# Used on cygwin: object dumper.
13858OBJDUMP="$OBJDUMP"
13859
13860# Used on cygwin: assembler.
13861AS="$AS"
13862
13863# The name of the directory that contains temporary libtool files.
13864objdir=$objdir
13865
13866# How to create reloadable object files.
13867reload_flag=$lt_reload_flag
13868reload_cmds=$lt_reload_cmds
13869
13870# How to pass a linker flag through the compiler.
13871wl=$lt_lt_prog_compiler_wl_CXX
13872
13873# Object file suffix (normally "o").
13874objext="$ac_objext"
13875
13876# Old archive suffix (normally "a").
13877libext="$libext"
13878
13879# Shared library suffix (normally ".so").
13880shrext_cmds='$shrext_cmds'
13881
13882# Executable file suffix (normally "").
13883exeext="$exeext"
13884
13885# Additional compiler flags for building library objects.
13886pic_flag=$lt_lt_prog_compiler_pic_CXX
13887pic_mode=$pic_mode
13888
13889# What is the maximum length of a command?
13890max_cmd_len=$lt_cv_sys_max_cmd_len
13891
13892# Does compiler simultaneously support -c and -o options?
13893compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13894
13895# Must we lock files when doing compilation?
13896need_locks=$lt_need_locks
13897
13898# Do we need the lib prefix for modules?
13899need_lib_prefix=$need_lib_prefix
13900
13901# Do we need a version for libraries?
13902need_version=$need_version
13903
13904# Whether dlopen is supported.
13905dlopen_support=$enable_dlopen
13906
13907# Whether dlopen of programs is supported.
13908dlopen_self=$enable_dlopen_self
13909
13910# Whether dlopen of statically linked programs is supported.
13911dlopen_self_static=$enable_dlopen_self_static
13912
13913# Compiler flag to prevent dynamic linking.
13914link_static_flag=$lt_lt_prog_compiler_static_CXX
13915
13916# Compiler flag to turn off builtin functions.
13917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13918
13919# Compiler flag to allow reflexive dlopens.
13920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13921
13922# Compiler flag to generate shared objects directly from archives.
13923whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13924
13925# Compiler flag to generate thread-safe objects.
13926thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13927
13928# Library versioning type.
13929version_type=$version_type
13930
13931# Format of library name prefix.
13932libname_spec=$lt_libname_spec
13933
13934# List of archive names. First name is the real one, the rest are links.
13935# The last name is the one that the linker finds with -lNAME.
13936library_names_spec=$lt_library_names_spec
13937
13938# The coded name of the library, if different from the real name.
13939soname_spec=$lt_soname_spec
13940
13941# Commands used to build and install an old-style archive.
13942RANLIB=$lt_RANLIB
13943old_archive_cmds=$lt_old_archive_cmds_CXX
13944old_postinstall_cmds=$lt_old_postinstall_cmds
13945old_postuninstall_cmds=$lt_old_postuninstall_cmds
13946
13947# Create an old-style archive from a shared archive.
13948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13949
13950# Create a temporary old-style archive to link instead of a shared archive.
13951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13952
13953# Commands used to build and install a shared archive.
13954archive_cmds=$lt_archive_cmds_CXX
13955archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13956postinstall_cmds=$lt_postinstall_cmds
13957postuninstall_cmds=$lt_postuninstall_cmds
13958
13959# Commands used to build a loadable module (assumed same as above if empty)
13960module_cmds=$lt_module_cmds_CXX
13961module_expsym_cmds=$lt_module_expsym_cmds_CXX
13962
13963# Commands to strip libraries.
13964old_striplib=$lt_old_striplib
13965striplib=$lt_striplib
13966
13967# Dependencies to place before the objects being linked to create a
13968# shared library.
13969predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13970
13971# Dependencies to place after the objects being linked to create a
13972# shared library.
13973postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13974
13975# Dependencies to place before the objects being linked to create a
13976# shared library.
13977predeps=$lt_predeps_CXX
13978
13979# Dependencies to place after the objects being linked to create a
13980# shared library.
13981postdeps=$lt_postdeps_CXX
13982
13983# The library search path used internally by the compiler when linking
13984# a shared library.
13985compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13986
13987# Method to check whether dependent libraries are shared objects.
13988deplibs_check_method=$lt_deplibs_check_method
13989
13990# Command to use when deplibs_check_method == file_magic.
13991file_magic_cmd=$lt_file_magic_cmd
13992
13993# Flag that allows shared libraries with undefined symbols to be built.
13994allow_undefined_flag=$lt_allow_undefined_flag_CXX
13995
13996# Flag that forces no undefined symbols.
13997no_undefined_flag=$lt_no_undefined_flag_CXX
13998
13999# Commands used to finish a libtool library installation in a directory.
14000finish_cmds=$lt_finish_cmds
14001
14002# Same as above, but a single script fragment to be evaled but not shown.
14003finish_eval=$lt_finish_eval
14004
14005# Take the output of nm and produce a listing of raw symbols and C names.
14006global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14007
14008# Transform the output of nm in a proper C declaration
14009global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14010
14011# Transform the output of nm in a C name address pair
14012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14013
14014# This is the shared library runtime path variable.
14015runpath_var=$runpath_var
14016
14017# This is the shared library path variable.
14018shlibpath_var=$shlibpath_var
14019
14020# Is shlibpath searched before the hard-coded library search path?
14021shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14022
14023# How to hardcode a shared library path into an executable.
14024hardcode_action=$hardcode_action_CXX
14025
14026# Whether we should hardcode library paths into libraries.
14027hardcode_into_libs=$hardcode_into_libs
14028
14029# Flag to hardcode \$libdir into a binary during linking.
14030# This must work even if \$libdir does not exist.
14031hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14032
14033# If ld is used when linking, flag to hardcode \$libdir into
14034# a binary during linking. This must work even if \$libdir does
14035# not exist.
14036hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14037
14038# Whether we need a single -rpath flag with a separated argument.
14039hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14040
14041# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14042# resulting binary.
14043hardcode_direct=$hardcode_direct_CXX
14044
14045# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14046# resulting binary.
14047hardcode_minus_L=$hardcode_minus_L_CXX
14048
14049# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14050# the resulting binary.
14051hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14052
14053# Set to yes if building a shared library automatically hardcodes DIR into the library
14054# and all subsequent libraries and executables linked against it.
14055hardcode_automatic=$hardcode_automatic_CXX
14056
14057# Variables whose values should be saved in libtool wrapper scripts and
14058# restored at relink time.
14059variables_saved_for_relink="$variables_saved_for_relink"
14060
14061# Whether libtool must link a program against all its dependency libraries.
14062link_all_deplibs=$link_all_deplibs_CXX
14063
14064# Compile-time system search path for libraries
14065sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14066
14067# Run-time system search path for libraries
14068sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14069
14070# Fix the shell variable \$srcfile for the compiler.
14071fix_srcfile_path="$fix_srcfile_path_CXX"
14072
14073# Set to yes if exported symbols are required.
14074always_export_symbols=$always_export_symbols_CXX
14075
14076# The commands to list exported symbols.
14077export_symbols_cmds=$lt_export_symbols_cmds_CXX
14078
14079# The commands to extract the exported symbol list from a shared archive.
14080extract_expsyms_cmds=$lt_extract_expsyms_cmds
14081
14082# Symbols that should not be listed in the preloaded symbols.
14083exclude_expsyms=$lt_exclude_expsyms_CXX
14084
14085# Symbols that must always be exported.
14086include_expsyms=$lt_include_expsyms_CXX
14087
14088# ### END LIBTOOL TAG CONFIG: $tagname
14089
14090__EOF__
14091
14092
14093else
14094 # If there is no Makefile yet, we rely on a make rule to execute
14095 # `config.status --recheck' to rerun these tests and create the
14096 # libtool script then.
14097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14098 if test -f "$ltmain_in"; then
14099 test -f Makefile && make "$ltmain"
14100 fi
14101fi
14102
14103
14104ac_ext=c
14105ac_cpp='$CPP $CPPFLAGS'
14106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14108ac_compiler_gnu=$ac_cv_c_compiler_gnu
14109
14110CC=$lt_save_CC
14111LDCXX=$LD
14112LD=$lt_save_LD
14113GCC=$lt_save_GCC
14114with_gnu_ldcxx=$with_gnu_ld
14115with_gnu_ld=$lt_save_with_gnu_ld
14116lt_cv_path_LDCXX=$lt_cv_path_LD
14117lt_cv_path_LD=$lt_save_path_LD
14118lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14119lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14120
14121 else
14122 tagname=""
14123 fi
14124 ;;
14125
14126 F77)
14127 if test -n "$F77" && test "X$F77" != "Xno"; then
14128
14129ac_ext=f
14130ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14131ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14132ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14133
14134
14135archive_cmds_need_lc_F77=no
14136allow_undefined_flag_F77=
14137always_export_symbols_F77=no
14138archive_expsym_cmds_F77=
14139export_dynamic_flag_spec_F77=
14140hardcode_direct_F77=no
14141hardcode_libdir_flag_spec_F77=
14142hardcode_libdir_flag_spec_ld_F77=
14143hardcode_libdir_separator_F77=
14144hardcode_minus_L_F77=no
14145hardcode_automatic_F77=no
14146module_cmds_F77=
14147module_expsym_cmds_F77=
14148link_all_deplibs_F77=unknown
14149old_archive_cmds_F77=$old_archive_cmds
14150no_undefined_flag_F77=
14151whole_archive_flag_spec_F77=
14152enable_shared_with_static_runtimes_F77=no
14153
14154# Source file extension for f77 test sources.
14155ac_ext=f
14156
14157# Object file extension for compiled f77 test sources.
14158objext=o
14159objext_F77=$objext
14160
14161# Code to be used in simple compile tests
14162lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14163
14164# Code to be used in simple link tests
14165lt_simple_link_test_code=" program t\n end\n"
14166
14167# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14168
14169# If no C compiler was specified, use CC.
14170LTCC=${LTCC-"$CC"}
14171
14172# If no C compiler flags were specified, use CFLAGS.
14173LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14174
14175# Allow CC to be a program name with arguments.
14176compiler=$CC
14177
14178
14179# save warnings/boilerplate of simple test code
14180ac_outfile=conftest.$ac_objext
14181printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14182eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14183_lt_compiler_boilerplate=`cat conftest.err`
14184$rm conftest*
14185
14186ac_outfile=conftest.$ac_objext
14187printf "$lt_simple_link_test_code" >conftest.$ac_ext
14188eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14189_lt_linker_boilerplate=`cat conftest.err`
14190$rm conftest*
14191
14192
14193# Allow CC to be a program name with arguments.
14194lt_save_CC="$CC"
14195CC=${F77-"f77"}
14196compiler=$CC
14197compiler_F77=$CC
14198for cc_temp in $compiler""; do
14199 case $cc_temp in
14200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14202 \-*) ;;
14203 *) break;;
14204 esac
14205done
14206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14207
14208
14209echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14210echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14211echo "$as_me:$LINENO: result: $can_build_shared" >&5
14212echo "${ECHO_T}$can_build_shared" >&6
14213
14214echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14215echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14216test "$can_build_shared" = "no" && enable_shared=no
14217
14218# On AIX, shared libraries and static libraries use the same namespace, and
14219# are all built from PIC.
14220case $host_os in
14221aix3*)
14222 test "$enable_shared" = yes && enable_static=no
14223 if test -n "$RANLIB"; then
14224 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14225 postinstall_cmds='$RANLIB $lib'
14226 fi
14227 ;;
14228aix4* | aix5*)
14229 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14230 test "$enable_shared" = yes && enable_static=no
14231 fi
14232 ;;
14233esac
14234echo "$as_me:$LINENO: result: $enable_shared" >&5
14235echo "${ECHO_T}$enable_shared" >&6
14236
14237echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14238echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14239# Make sure either enable_shared or enable_static is yes.
14240test "$enable_shared" = yes || enable_static=yes
14241echo "$as_me:$LINENO: result: $enable_static" >&5
14242echo "${ECHO_T}$enable_static" >&6
14243
14244GCC_F77="$G77"
14245LD_F77="$LD"
14246
14247lt_prog_compiler_wl_F77=
14248lt_prog_compiler_pic_F77=
14249lt_prog_compiler_static_F77=
14250
14251echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14252echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14253
14254 if test "$GCC" = yes; then
14255 lt_prog_compiler_wl_F77='-Wl,'
14256 lt_prog_compiler_static_F77='-static'
14257
14258 case $host_os in
14259 aix*)
14260 # All AIX code is PIC.
14261 if test "$host_cpu" = ia64; then
14262 # AIX 5 now supports IA64 processor
14263 lt_prog_compiler_static_F77='-Bstatic'
14264 fi
14265 ;;
14266
14267 amigaos*)
14268 # FIXME: we need at least 68020 code to build shared libraries, but
14269 # adding the `-m68020' flag to GCC prevents building anything better,
14270 # like `-m68040'.
14271 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14272 ;;
14273
14274 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14275 # PIC is the default for these OSes.
14276 ;;
14277
14278 mingw* | pw32* | os2*)
14279 # This hack is so that the source file can tell whether it is being
14280 # built for inclusion in a dll (and should export symbols for example).
14281 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14282 ;;
14283
14284 darwin* | rhapsody*)
14285 # PIC is the default on this platform
14286 # Common symbols not allowed in MH_DYLIB files
14287 lt_prog_compiler_pic_F77='-fno-common'
14288 ;;
14289
14290 interix3*)
14291 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14292 # Instead, we relocate shared libraries at runtime.
14293 ;;
14294
14295 msdosdjgpp*)
14296 # Just because we use GCC doesn't mean we suddenly get shared libraries
14297 # on systems that don't support them.
14298 lt_prog_compiler_can_build_shared_F77=no
14299 enable_shared=no
14300 ;;
14301
14302 sysv4*MP*)
14303 if test -d /usr/nec; then
14304 lt_prog_compiler_pic_F77=-Kconform_pic
14305 fi
14306 ;;
14307
14308 hpux*)
14309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14310 # not for PA HP-UX.
14311 case $host_cpu in
14312 hppa*64*|ia64*)
14313 # +Z the default
14314 ;;
14315 *)
14316 lt_prog_compiler_pic_F77='-fPIC'
14317 ;;
14318 esac
14319 ;;
14320
14321 *)
14322 lt_prog_compiler_pic_F77='-fPIC'
14323 ;;
14324 esac
14325 else
14326 # PORTME Check for flag to pass linker flags through the system compiler.
14327 case $host_os in
14328 aix*)
14329 lt_prog_compiler_wl_F77='-Wl,'
14330 if test "$host_cpu" = ia64; then
14331 # AIX 5 now supports IA64 processor
14332 lt_prog_compiler_static_F77='-Bstatic'
14333 else
14334 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14335 fi
14336 ;;
14337 darwin*)
14338 # PIC is the default on this platform
14339 # Common symbols not allowed in MH_DYLIB files
14340 case $cc_basename in
14341 xlc*)
14342 lt_prog_compiler_pic_F77='-qnocommon'
14343 lt_prog_compiler_wl_F77='-Wl,'
14344 ;;
14345 esac
14346 ;;
14347
14348 mingw* | pw32* | os2*)
14349 # This hack is so that the source file can tell whether it is being
14350 # built for inclusion in a dll (and should export symbols for example).
14351 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14352 ;;
14353
14354 hpux9* | hpux10* | hpux11*)
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14357 # not for PA HP-UX.
14358 case $host_cpu in
14359 hppa*64*|ia64*)
14360 # +Z the default
14361 ;;
14362 *)
14363 lt_prog_compiler_pic_F77='+Z'
14364 ;;
14365 esac
14366 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14367 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14368 ;;
14369
14370 irix5* | irix6* | nonstopux*)
14371 lt_prog_compiler_wl_F77='-Wl,'
14372 # PIC (with -KPIC) is the default.
14373 lt_prog_compiler_static_F77='-non_shared'
14374 ;;
14375
14376 newsos6)
14377 lt_prog_compiler_pic_F77='-KPIC'
14378 lt_prog_compiler_static_F77='-Bstatic'
14379 ;;
14380
14381 linux*)
14382 case $cc_basename in
14383 icc* | ecc*)
14384 lt_prog_compiler_wl_F77='-Wl,'
14385 lt_prog_compiler_pic_F77='-KPIC'
14386 lt_prog_compiler_static_F77='-static'
14387 ;;
14388 pgcc* | pgf77* | pgf90* | pgf95*)
14389 # Portland Group compilers (*not* the Pentium gcc compiler,
14390 # which looks to be a dead project)
14391 lt_prog_compiler_wl_F77='-Wl,'
14392 lt_prog_compiler_pic_F77='-fpic'
14393 lt_prog_compiler_static_F77='-Bstatic'
14394 ;;
14395 ccc*)
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 # All Alpha code is PIC.
14398 lt_prog_compiler_static_F77='-non_shared'
14399 ;;
14400 esac
14401 ;;
14402
14403 osf3* | osf4* | osf5*)
14404 lt_prog_compiler_wl_F77='-Wl,'
14405 # All OSF/1 code is PIC.
14406 lt_prog_compiler_static_F77='-non_shared'
14407 ;;
14408
14409 solaris*)
14410 lt_prog_compiler_pic_F77='-KPIC'
14411 lt_prog_compiler_static_F77='-Bstatic'
14412 case $cc_basename in
14413 f77* | f90* | f95*)
14414 lt_prog_compiler_wl_F77='-Qoption ld ';;
14415 *)
14416 lt_prog_compiler_wl_F77='-Wl,';;
14417 esac
14418 ;;
14419
14420 sunos4*)
14421 lt_prog_compiler_wl_F77='-Qoption ld '
14422 lt_prog_compiler_pic_F77='-PIC'
14423 lt_prog_compiler_static_F77='-Bstatic'
14424 ;;
14425
14426 sysv4 | sysv4.2uw2* | sysv4.3*)
14427 lt_prog_compiler_wl_F77='-Wl,'
14428 lt_prog_compiler_pic_F77='-KPIC'
14429 lt_prog_compiler_static_F77='-Bstatic'
14430 ;;
14431
14432 sysv4*MP*)
14433 if test -d /usr/nec ;then
14434 lt_prog_compiler_pic_F77='-Kconform_pic'
14435 lt_prog_compiler_static_F77='-Bstatic'
14436 fi
14437 ;;
14438
14439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14440 lt_prog_compiler_wl_F77='-Wl,'
14441 lt_prog_compiler_pic_F77='-KPIC'
14442 lt_prog_compiler_static_F77='-Bstatic'
14443 ;;
14444
14445 unicos*)
14446 lt_prog_compiler_wl_F77='-Wl,'
14447 lt_prog_compiler_can_build_shared_F77=no
14448 ;;
14449
14450 uts4*)
14451 lt_prog_compiler_pic_F77='-pic'
14452 lt_prog_compiler_static_F77='-Bstatic'
14453 ;;
14454
14455 *)
14456 lt_prog_compiler_can_build_shared_F77=no
14457 ;;
14458 esac
14459 fi
14460
14461echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14462echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14463
14464#
14465# Check to make sure the PIC flag actually works.
14466#
14467if test -n "$lt_prog_compiler_pic_F77"; then
14468
14469echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14470echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14471if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473else
14474 lt_prog_compiler_pic_works_F77=no
14475 ac_outfile=conftest.$ac_objext
14476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14477 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14478 # Insert the option either (1) after the last *FLAGS variable, or
14479 # (2) before a word containing "conftest.", or (3) at the end.
14480 # Note that $ac_compile itself does not contain backslashes and begins
14481 # with a dollar sign (not a hyphen), so the echo should work correctly.
14482 # The option is referenced via a variable to avoid confusing sed.
14483 lt_compile=`echo "$ac_compile" | $SED \
14484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14486 -e 's:$: $lt_compiler_flag:'`
14487 (eval echo "\"\$as_me:14487: $lt_compile\"" >&5)
14488 (eval "$lt_compile" 2>conftest.err)
14489 ac_status=$?
14490 cat conftest.err >&5
14491 echo "$as_me:14491: \$? = $ac_status" >&5
14492 if (exit $ac_status) && test -s "$ac_outfile"; then
14493 # The compiler can only warn and ignore the option if not recognized
14494 # So say no if there are warnings other than the usual output.
14495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14498 lt_prog_compiler_pic_works_F77=yes
14499 fi
14500 fi
14501 $rm conftest*
14502
14503fi
14504echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14505echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14506
14507if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14508 case $lt_prog_compiler_pic_F77 in
14509 "" | " "*) ;;
14510 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14511 esac
14512else
14513 lt_prog_compiler_pic_F77=
14514 lt_prog_compiler_can_build_shared_F77=no
14515fi
14516
14517fi
14518case $host_os in
14519 # For platforms which do not support PIC, -DPIC is meaningless:
14520 *djgpp*)
14521 lt_prog_compiler_pic_F77=
14522 ;;
14523 *)
14524 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14525 ;;
14526esac
14527
14528#
14529# Check to make sure the static flag actually works.
14530#
14531wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14532echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14533echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14534if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537 lt_prog_compiler_static_works_F77=no
14538 save_LDFLAGS="$LDFLAGS"
14539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14540 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14542 # The linker can only warn and ignore the option if not recognized
14543 # So say no if there are warnings
14544 if test -s conftest.err; then
14545 # Append any errors to the config.log.
14546 cat conftest.err 1>&5
14547 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14549 if diff conftest.exp conftest.er2 >/dev/null; then
14550 lt_prog_compiler_static_works_F77=yes
14551 fi
14552 else
14553 lt_prog_compiler_static_works_F77=yes
14554 fi
14555 fi
14556 $rm conftest*
14557 LDFLAGS="$save_LDFLAGS"
14558
14559fi
14560echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14561echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14562
14563if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14564 :
14565else
14566 lt_prog_compiler_static_F77=
14567fi
14568
14569
14570echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14572if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574else
14575 lt_cv_prog_compiler_c_o_F77=no
14576 $rm -r conftest 2>/dev/null
14577 mkdir conftest
14578 cd conftest
14579 mkdir out
14580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14581
14582 lt_compiler_flag="-o out/conftest2.$ac_objext"
14583 # Insert the option either (1) after the last *FLAGS variable, or
14584 # (2) before a word containing "conftest.", or (3) at the end.
14585 # Note that $ac_compile itself does not contain backslashes and begins
14586 # with a dollar sign (not a hyphen), so the echo should work correctly.
14587 lt_compile=`echo "$ac_compile" | $SED \
14588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14590 -e 's:$: $lt_compiler_flag:'`
14591 (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14592 (eval "$lt_compile" 2>out/conftest.err)
14593 ac_status=$?
14594 cat out/conftest.err >&5
14595 echo "$as_me:14595: \$? = $ac_status" >&5
14596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14597 then
14598 # The compiler can only warn and ignore the option if not recognized
14599 # So say no if there are warnings
14600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14603 lt_cv_prog_compiler_c_o_F77=yes
14604 fi
14605 fi
14606 chmod u+w . 2>&5
14607 $rm conftest*
14608 # SGI C++ compiler will create directory out/ii_files/ for
14609 # template instantiation
14610 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14611 $rm out/* && rmdir out
14612 cd ..
14613 rmdir conftest
14614 $rm conftest*
14615
14616fi
14617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14618echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14619
14620
14621hard_links="nottested"
14622if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14623 # do not overwrite the value of need_locks provided by the user
14624 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14625echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14626 hard_links=yes
14627 $rm conftest*
14628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14629 touch conftest.a
14630 ln conftest.a conftest.b 2>&5 || hard_links=no
14631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14632 echo "$as_me:$LINENO: result: $hard_links" >&5
14633echo "${ECHO_T}$hard_links" >&6
14634 if test "$hard_links" = no; then
14635 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14636echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14637 need_locks=warn
14638 fi
14639else
14640 need_locks=no
14641fi
14642
14643echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14644echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14645
14646 runpath_var=
14647 allow_undefined_flag_F77=
14648 enable_shared_with_static_runtimes_F77=no
14649 archive_cmds_F77=
14650 archive_expsym_cmds_F77=
14651 old_archive_From_new_cmds_F77=
14652 old_archive_from_expsyms_cmds_F77=
14653 export_dynamic_flag_spec_F77=
14654 whole_archive_flag_spec_F77=
14655 thread_safe_flag_spec_F77=
14656 hardcode_libdir_flag_spec_F77=
14657 hardcode_libdir_flag_spec_ld_F77=
14658 hardcode_libdir_separator_F77=
14659 hardcode_direct_F77=no
14660 hardcode_minus_L_F77=no
14661 hardcode_shlibpath_var_F77=unsupported
14662 link_all_deplibs_F77=unknown
14663 hardcode_automatic_F77=no
14664 module_cmds_F77=
14665 module_expsym_cmds_F77=
14666 always_export_symbols_F77=no
14667 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14668 # include_expsyms should be a list of space-separated symbols to be *always*
14669 # included in the symbol list
14670 include_expsyms_F77=
14671 # exclude_expsyms can be an extended regexp of symbols to exclude
14672 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14674 # as well as any symbol that contains `d'.
14675 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14677 # platforms (ab)use it in PIC code, but their linkers get confused if
14678 # the symbol is explicitly referenced. Since portable code cannot
14679 # rely on this symbol name, it's probably fine to never include it in
14680 # preloaded symbol tables.
14681 extract_expsyms_cmds=
14682 # Just being paranoid about ensuring that cc_basename is set.
14683 for cc_temp in $compiler""; do
14684 case $cc_temp in
14685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14687 \-*) ;;
14688 *) break;;
14689 esac
14690done
14691cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14692
14693 case $host_os in
14694 cygwin* | mingw* | pw32*)
14695 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14696 # When not using gcc, we currently assume that we are using
14697 # Microsoft Visual C++.
14698 if test "$GCC" != yes; then
14699 with_gnu_ld=no
14700 fi
14701 ;;
14702 interix*)
14703 # we just hope/assume this is gcc and not c89 (= MSVC++)
14704 with_gnu_ld=yes
14705 ;;
14706 openbsd*)
14707 with_gnu_ld=no
14708 ;;
14709 esac
14710
14711 ld_shlibs_F77=yes
14712 if test "$with_gnu_ld" = yes; then
14713 # If archive_cmds runs LD, not CC, wlarc should be empty
14714 wlarc='${wl}'
14715
14716 # Set some defaults for GNU ld with shared library support. These
14717 # are reset later if shared libraries are not supported. Putting them
14718 # here allows them to be overridden if necessary.
14719 runpath_var=LD_RUN_PATH
14720 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14721 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14722 # ancient GNU ld didn't support --whole-archive et. al.
14723 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14724 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14725 else
14726 whole_archive_flag_spec_F77=
14727 fi
14728 supports_anon_versioning=no
14729 case `$LD -v 2>/dev/null` in
14730 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14731 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14732 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14733 *\ 2.11.*) ;; # other 2.11 versions
14734 *) supports_anon_versioning=yes ;;
14735 esac
14736
14737 # See if GNU ld supports shared libraries.
14738 case $host_os in
14739 aix3* | aix4* | aix5*)
14740 # On AIX/PPC, the GNU linker is very broken
14741 if test "$host_cpu" != ia64; then
14742 ld_shlibs_F77=no
14743 cat <<EOF 1>&2
14744
14745*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14746*** to be unable to reliably create shared libraries on AIX.
14747*** Therefore, libtool is disabling shared libraries support. If you
14748*** really care for shared libraries, you may want to modify your PATH
14749*** so that a non-GNU linker is found, and then restart.
14750
14751EOF
14752 fi
14753 ;;
14754
14755 amigaos*)
14756 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)'
14757 hardcode_libdir_flag_spec_F77='-L$libdir'
14758 hardcode_minus_L_F77=yes
14759
14760 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14761 # that the semantics of dynamic libraries on AmigaOS, at least up
14762 # to version 4, is to share data among multiple programs linked
14763 # with the same dynamic library. Since this doesn't match the
14764 # behavior of shared libraries on other platforms, we can't use
14765 # them.
14766 ld_shlibs_F77=no
14767 ;;
14768
14769 beos*)
14770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14771 allow_undefined_flag_F77=unsupported
14772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14773 # support --undefined. This deserves some investigation. FIXME
14774 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 else
14776 ld_shlibs_F77=no
14777 fi
14778 ;;
14779
14780 cygwin* | mingw* | pw32*)
14781 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14782 # as there is no search path for DLLs.
14783 hardcode_libdir_flag_spec_F77='-L$libdir'
14784 allow_undefined_flag_F77=unsupported
14785 always_export_symbols_F77=no
14786 enable_shared_with_static_runtimes_F77=yes
14787 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14788
14789 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14790 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14791 # If the export-symbols file already is a .def file (1st line
14792 # is EXPORTS), use it as is; otherwise, prepend...
14793 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14794 cp $export_symbols $output_objdir/$soname.def;
14795 else
14796 echo EXPORTS > $output_objdir/$soname.def;
14797 cat $export_symbols >> $output_objdir/$soname.def;
14798 fi~
14799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14800 else
14801 ld_shlibs_F77=no
14802 fi
14803 ;;
14804
14805 interix3*)
14806 hardcode_direct_F77=no
14807 hardcode_shlibpath_var_F77=no
14808 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14809 export_dynamic_flag_spec_F77='${wl}-E'
14810 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14811 # Instead, shared libraries are loaded at an image base (0x10000000 by
14812 # default) and relocated if they conflict, which is a slow very memory
14813 # consuming and fragmenting process. To avoid this, we pick a random,
14814 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14815 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14816 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'
14817 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'
14818 ;;
14819
14820 linux*)
14821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14822 tmp_addflag=
14823 case $cc_basename,$host_cpu in
14824 pgcc*) # Portland Group C compiler
14825 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'
14826 tmp_addflag=' $pic_flag'
14827 ;;
14828 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14829 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'
14830 tmp_addflag=' $pic_flag -Mnomain' ;;
14831 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14832 tmp_addflag=' -i_dynamic' ;;
14833 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14834 tmp_addflag=' -i_dynamic -nofor_main' ;;
14835 ifc* | ifort*) # Intel Fortran compiler
14836 tmp_addflag=' -nofor_main' ;;
14837 esac
14838 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839
14840 if test $supports_anon_versioning = yes; then
14841 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14843 $echo "local: *; };" >> $output_objdir/$libname.ver~
14844 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14845 fi
14846 else
14847 ld_shlibs_F77=no
14848 fi
14849 ;;
14850
14851 netbsd*)
14852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14853 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14854 wlarc=
14855 else
14856 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14858 fi
14859 ;;
14860
14861 solaris*)
14862 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14863 ld_shlibs_F77=no
14864 cat <<EOF 1>&2
14865
14866*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14867*** create shared libraries on Solaris systems. Therefore, libtool
14868*** is disabling shared libraries support. We urge you to upgrade GNU
14869*** binutils to release 2.9.1 or newer. Another option is to modify
14870*** your PATH or compiler configuration so that the native linker is
14871*** used, and then restart.
14872
14873EOF
14874 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14877 else
14878 ld_shlibs_F77=no
14879 fi
14880 ;;
14881
14882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14883 case `$LD -v 2>&1` in
14884 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14885 ld_shlibs_F77=no
14886 cat <<_LT_EOF 1>&2
14887
14888*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14889*** reliably create shared libraries on SCO systems. Therefore, libtool
14890*** is disabling shared libraries support. We urge you to upgrade GNU
14891*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14892*** your PATH or compiler configuration so that the native linker is
14893*** used, and then restart.
14894
14895_LT_EOF
14896 ;;
14897 *)
14898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14899 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14900 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14901 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14902 else
14903 ld_shlibs_F77=no
14904 fi
14905 ;;
14906 esac
14907 ;;
14908
14909 sunos4*)
14910 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14911 wlarc=
14912 hardcode_direct_F77=yes
14913 hardcode_shlibpath_var_F77=no
14914 ;;
14915
14916 *)
14917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14920 else
14921 ld_shlibs_F77=no
14922 fi
14923 ;;
14924 esac
14925
14926 if test "$ld_shlibs_F77" = no; then
14927 runpath_var=
14928 hardcode_libdir_flag_spec_F77=
14929 export_dynamic_flag_spec_F77=
14930 whole_archive_flag_spec_F77=
14931 fi
14932 else
14933 # PORTME fill in a description of your system's linker (not GNU ld)
14934 case $host_os in
14935 aix3*)
14936 allow_undefined_flag_F77=unsupported
14937 always_export_symbols_F77=yes
14938 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'
14939 # Note: this linker hardcodes the directories in LIBPATH if there
14940 # are no directories specified by -L.
14941 hardcode_minus_L_F77=yes
14942 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14943 # Neither direct hardcoding nor static linking is supported with a
14944 # broken collect2.
14945 hardcode_direct_F77=unsupported
14946 fi
14947 ;;
14948
14949 aix4* | aix5*)
14950 if test "$host_cpu" = ia64; then
14951 # On IA64, the linker does run time linking by default, so we don't
14952 # have to do anything special.
14953 aix_use_runtimelinking=no
14954 exp_sym_flag='-Bexport'
14955 no_entry_flag=""
14956 else
14957 # If we're using GNU nm, then we don't want the "-C" option.
14958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14959 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14960 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'
14961 else
14962 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'
14963 fi
14964 aix_use_runtimelinking=no
14965
14966 # Test if we are trying to use run time linking or normal
14967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14968 # need to do runtime linking.
14969 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14970 for ld_flag in $LDFLAGS; do
14971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14972 aix_use_runtimelinking=yes
14973 break
14974 fi
14975 done
14976 ;;
14977 esac
14978
14979 exp_sym_flag='-bexport'
14980 no_entry_flag='-bnoentry'
14981 fi
14982
14983 # When large executables or shared objects are built, AIX ld can
14984 # have problems creating the table of contents. If linking a library
14985 # or program results in "error TOC overflow" add -mminimal-toc to
14986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14988
14989 archive_cmds_F77=''
14990 hardcode_direct_F77=yes
14991 hardcode_libdir_separator_F77=':'
14992 link_all_deplibs_F77=yes
14993
14994 if test "$GCC" = yes; then
14995 case $host_os in aix4.[012]|aix4.[012].*)
14996 # We only want to do this on AIX 4.2 and lower, the check
14997 # below for broken collect2 doesn't work under 4.3+
14998 collect2name=`${CC} -print-prog-name=collect2`
14999 if test -f "$collect2name" && \
15000 strings "$collect2name" | grep resolve_lib_name >/dev/null
15001 then
15002 # We have reworked collect2
15003 hardcode_direct_F77=yes
15004 else
15005 # We have old collect2
15006 hardcode_direct_F77=unsupported
15007 # It fails to find uninstalled libraries when the uninstalled
15008 # path is not listed in the libpath. Setting hardcode_minus_L
15009 # to unsupported forces relinking
15010 hardcode_minus_L_F77=yes
15011 hardcode_libdir_flag_spec_F77='-L$libdir'
15012 hardcode_libdir_separator_F77=
15013 fi
15014 ;;
15015 esac
15016 shared_flag='-shared'
15017 if test "$aix_use_runtimelinking" = yes; then
15018 shared_flag="$shared_flag "'${wl}-G'
15019 fi
15020 else
15021 # not using gcc
15022 if test "$host_cpu" = ia64; then
15023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15024 # chokes on -Wl,-G. The following line is correct:
15025 shared_flag='-G'
15026 else
15027 if test "$aix_use_runtimelinking" = yes; then
15028 shared_flag='${wl}-G'
15029 else
15030 shared_flag='${wl}-bM:SRE'
15031 fi
15032 fi
15033 fi
15034
15035 # It seems that -bexpall does not export symbols beginning with
15036 # underscore (_), so it is better to generate a list of symbols to export.
15037 always_export_symbols_F77=yes
15038 if test "$aix_use_runtimelinking" = yes; then
15039 # Warning - without using the other runtime loading flags (-brtl),
15040 # -berok will link without error, but may produce a broken library.
15041 allow_undefined_flag_F77='-berok'
15042 # Determine the default libpath from the value encoded in an empty executable.
15043 cat >conftest.$ac_ext <<_ACEOF
15044 program main
15045
15046 end
15047_ACEOF
15048rm -f conftest.$ac_objext conftest$ac_exeext
15049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_f77_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070
15071aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15072}'`
15073# Check for a 64-bit object if we didn't find anything.
15074if 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; }
15075}'`; fi
15076else
15077 echo "$as_me: failed program was:" >&5
15078sed 's/^/| /' conftest.$ac_ext >&5
15079
15080fi
15081rm -f conftest.err conftest.$ac_objext \
15082 conftest$ac_exeext conftest.$ac_ext
15083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15084
15085 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15086 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"
15087 else
15088 if test "$host_cpu" = ia64; then
15089 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15090 allow_undefined_flag_F77="-z nodefs"
15091 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"
15092 else
15093 # Determine the default libpath from the value encoded in an empty executable.
15094 cat >conftest.$ac_ext <<_ACEOF
15095 program main
15096
15097 end
15098_ACEOF
15099rm -f conftest.$ac_objext conftest$ac_exeext
15100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>conftest.er1
15102 ac_status=$?
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -f conftest.er1
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_f77_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121
15122aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15123}'`
15124# Check for a 64-bit object if we didn't find anything.
15125if 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; }
15126}'`; fi
15127else
15128 echo "$as_me: failed program was:" >&5
15129sed 's/^/| /' conftest.$ac_ext >&5
15130
15131fi
15132rm -f conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15135
15136 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15137 # Warning - without using the other run time loading flags,
15138 # -berok will link without error, but may produce a broken library.
15139 no_undefined_flag_F77=' ${wl}-bernotok'
15140 allow_undefined_flag_F77=' ${wl}-berok'
15141 # Exported symbols can be pulled into shared objects from archives
15142 whole_archive_flag_spec_F77='$convenience'
15143 archive_cmds_need_lc_F77=yes
15144 # This is similar to how AIX traditionally builds its shared libraries.
15145 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'
15146 fi
15147 fi
15148 ;;
15149
15150 amigaos*)
15151 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)'
15152 hardcode_libdir_flag_spec_F77='-L$libdir'
15153 hardcode_minus_L_F77=yes
15154 # see comment about different semantics on the GNU ld section
15155 ld_shlibs_F77=no
15156 ;;
15157
15158 bsdi[45]*)
15159 export_dynamic_flag_spec_F77=-rdynamic
15160 ;;
15161
15162 cygwin* | mingw* | pw32*)
15163 # When not using gcc, we currently assume that we are using
15164 # Microsoft Visual C++.
15165 # hardcode_libdir_flag_spec is actually meaningless, as there is
15166 # no search path for DLLs.
15167 hardcode_libdir_flag_spec_F77=' '
15168 allow_undefined_flag_F77=unsupported
15169 # Tell ltmain to make .lib files, not .a files.
15170 libext=lib
15171 # Tell ltmain to make .dll files, not .so files.
15172 shrext_cmds=".dll"
15173 # FIXME: Setting linknames here is a bad hack.
15174 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15175 # The linker will automatically build a .lib file if we build a DLL.
15176 old_archive_From_new_cmds_F77='true'
15177 # FIXME: Should let the user specify the lib program.
15178 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15179 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15180 enable_shared_with_static_runtimes_F77=yes
15181 ;;
15182
15183 darwin* | rhapsody*)
15184 case $host_os in
15185 rhapsody* | darwin1.[012])
15186 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15187 ;;
15188 *) # Darwin 1.3 on
15189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15190 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15191 else
15192 case ${MACOSX_DEPLOYMENT_TARGET} in
15193 10.[012])
15194 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15195 ;;
15196 10.*)
15197 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15198 ;;
15199 esac
15200 fi
15201 ;;
15202 esac
15203 archive_cmds_need_lc_F77=no
15204 hardcode_direct_F77=no
15205 hardcode_automatic_F77=yes
15206 hardcode_shlibpath_var_F77=unsupported
15207 whole_archive_flag_spec_F77=''
15208 link_all_deplibs_F77=yes
15209 if test "$GCC" = yes ; then
15210 output_verbose_link_cmd='echo'
15211 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15212 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15214 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}'
15215 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}'
15216 else
15217 case $cc_basename in
15218 xlc*)
15219 output_verbose_link_cmd='echo'
15220 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15221 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15223 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}'
15224 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}'
15225 ;;
15226 *)
15227 ld_shlibs_F77=no
15228 ;;
15229 esac
15230 fi
15231 ;;
15232
15233 dgux*)
15234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15235 hardcode_libdir_flag_spec_F77='-L$libdir'
15236 hardcode_shlibpath_var_F77=no
15237 ;;
15238
15239 freebsd1*)
15240 ld_shlibs_F77=no
15241 ;;
15242
15243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15244 # support. Future versions do this automatically, but an explicit c++rt0.o
15245 # does not break anything, and helps significantly (at the cost of a little
15246 # extra space).
15247 freebsd2.2*)
15248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15249 hardcode_libdir_flag_spec_F77='-R$libdir'
15250 hardcode_direct_F77=yes
15251 hardcode_shlibpath_var_F77=no
15252 ;;
15253
15254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15255 freebsd2*)
15256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15257 hardcode_direct_F77=yes
15258 hardcode_minus_L_F77=yes
15259 hardcode_shlibpath_var_F77=no
15260 ;;
15261
15262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15263 freebsd* | kfreebsd*-gnu | dragonfly*)
15264 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15265 hardcode_libdir_flag_spec_F77='-R$libdir'
15266 hardcode_direct_F77=yes
15267 hardcode_shlibpath_var_F77=no
15268 ;;
15269
15270 hpux9*)
15271 if test "$GCC" = yes; then
15272 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'
15273 else
15274 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'
15275 fi
15276 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15277 hardcode_libdir_separator_F77=:
15278 hardcode_direct_F77=yes
15279
15280 # hardcode_minus_L: Not really in the search PATH,
15281 # but as the default location of the library.
15282 hardcode_minus_L_F77=yes
15283 export_dynamic_flag_spec_F77='${wl}-E'
15284 ;;
15285
15286 hpux10*)
15287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15289 else
15290 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15291 fi
15292 if test "$with_gnu_ld" = no; then
15293 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15294 hardcode_libdir_separator_F77=:
15295
15296 hardcode_direct_F77=yes
15297 export_dynamic_flag_spec_F77='${wl}-E'
15298
15299 # hardcode_minus_L: Not really in the search PATH,
15300 # but as the default location of the library.
15301 hardcode_minus_L_F77=yes
15302 fi
15303 ;;
15304
15305 hpux11*)
15306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15307 case $host_cpu in
15308 hppa*64*)
15309 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15310 ;;
15311 ia64*)
15312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15313 ;;
15314 *)
15315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15316 ;;
15317 esac
15318 else
15319 case $host_cpu in
15320 hppa*64*)
15321 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322 ;;
15323 ia64*)
15324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15325 ;;
15326 *)
15327 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15328 ;;
15329 esac
15330 fi
15331 if test "$with_gnu_ld" = no; then
15332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15333 hardcode_libdir_separator_F77=:
15334
15335 case $host_cpu in
15336 hppa*64*|ia64*)
15337 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15338 hardcode_direct_F77=no
15339 hardcode_shlibpath_var_F77=no
15340 ;;
15341 *)
15342 hardcode_direct_F77=yes
15343 export_dynamic_flag_spec_F77='${wl}-E'
15344
15345 # hardcode_minus_L: Not really in the search PATH,
15346 # but as the default location of the library.
15347 hardcode_minus_L_F77=yes
15348 ;;
15349 esac
15350 fi
15351 ;;
15352
15353 irix5* | irix6* | nonstopux*)
15354 if test "$GCC" = yes; then
15355 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'
15356 else
15357 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'
15358 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15359 fi
15360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15361 hardcode_libdir_separator_F77=:
15362 link_all_deplibs_F77=yes
15363 ;;
15364
15365 netbsd*)
15366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15368 else
15369 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15370 fi
15371 hardcode_libdir_flag_spec_F77='-R$libdir'
15372 hardcode_direct_F77=yes
15373 hardcode_shlibpath_var_F77=no
15374 ;;
15375
15376 newsos6)
15377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15378 hardcode_direct_F77=yes
15379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15380 hardcode_libdir_separator_F77=:
15381 hardcode_shlibpath_var_F77=no
15382 ;;
15383
15384 openbsd*)
15385 hardcode_direct_F77=yes
15386 hardcode_shlibpath_var_F77=no
15387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15388 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15389 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15391 export_dynamic_flag_spec_F77='${wl}-E'
15392 else
15393 case $host_os in
15394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15396 hardcode_libdir_flag_spec_F77='-R$libdir'
15397 ;;
15398 *)
15399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15401 ;;
15402 esac
15403 fi
15404 ;;
15405
15406 os2*)
15407 hardcode_libdir_flag_spec_F77='-L$libdir'
15408 hardcode_minus_L_F77=yes
15409 allow_undefined_flag_F77=unsupported
15410 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'
15411 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15412 ;;
15413
15414 osf3*)
15415 if test "$GCC" = yes; then
15416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15417 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'
15418 else
15419 allow_undefined_flag_F77=' -expect_unresolved \*'
15420 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'
15421 fi
15422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15423 hardcode_libdir_separator_F77=:
15424 ;;
15425
15426 osf4* | osf5*) # as osf3* with the addition of -msym flag
15427 if test "$GCC" = yes; then
15428 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15429 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'
15430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15431 else
15432 allow_undefined_flag_F77=' -expect_unresolved \*'
15433 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'
15434 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~
15435 $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'
15436
15437 # Both c and cxx compiler support -rpath directly
15438 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15439 fi
15440 hardcode_libdir_separator_F77=:
15441 ;;
15442
15443 solaris*)
15444 no_undefined_flag_F77=' -z text'
15445 if test "$GCC" = yes; then
15446 wlarc='${wl}'
15447 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15448 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15449 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15450 else
15451 wlarc=''
15452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15455 fi
15456 hardcode_libdir_flag_spec_F77='-R$libdir'
15457 hardcode_shlibpath_var_F77=no
15458 case $host_os in
15459 solaris2.[0-5] | solaris2.[0-5].*) ;;
15460 *)
15461 # The compiler driver will combine linker options so we
15462 # cannot just pass the convience library names through
15463 # without $wl, iff we do not link with $LD.
15464 # Luckily, gcc supports the same syntax we need for Sun Studio.
15465 # Supported since Solaris 2.6 (maybe 2.5.1?)
15466 case $wlarc in
15467 '')
15468 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15469 *)
15470 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' ;;
15471 esac ;;
15472 esac
15473 link_all_deplibs_F77=yes
15474 ;;
15475
15476 sunos4*)
15477 if test "x$host_vendor" = xsequent; then
15478 # Use $CC to link under sequent, because it throws in some extra .o
15479 # files that make .init and .fini sections work.
15480 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15481 else
15482 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15483 fi
15484 hardcode_libdir_flag_spec_F77='-L$libdir'
15485 hardcode_direct_F77=yes
15486 hardcode_minus_L_F77=yes
15487 hardcode_shlibpath_var_F77=no
15488 ;;
15489
15490 sysv4)
15491 case $host_vendor in
15492 sni)
15493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15494 hardcode_direct_F77=yes # is this really true???
15495 ;;
15496 siemens)
15497 ## LD is ld it makes a PLAMLIB
15498 ## CC just makes a GrossModule.
15499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15500 reload_cmds_F77='$CC -r -o $output$reload_objs'
15501 hardcode_direct_F77=no
15502 ;;
15503 motorola)
15504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15505 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15506 ;;
15507 esac
15508 runpath_var='LD_RUN_PATH'
15509 hardcode_shlibpath_var_F77=no
15510 ;;
15511
15512 sysv4.3*)
15513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_shlibpath_var_F77=no
15515 export_dynamic_flag_spec_F77='-Bexport'
15516 ;;
15517
15518 sysv4*MP*)
15519 if test -d /usr/nec; then
15520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_shlibpath_var_F77=no
15522 runpath_var=LD_RUN_PATH
15523 hardcode_runpath_var=yes
15524 ld_shlibs_F77=yes
15525 fi
15526 ;;
15527
15528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15529 no_undefined_flag_F77='${wl}-z,text'
15530 archive_cmds_need_lc_F77=no
15531 hardcode_shlibpath_var_F77=no
15532 runpath_var='LD_RUN_PATH'
15533
15534 if test "$GCC" = yes; then
15535 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15536 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 else
15538 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15539 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15540 fi
15541 ;;
15542
15543 sysv5* | sco3.2v5* | sco5v6*)
15544 # Note: We can NOT use -z defs as we might desire, because we do not
15545 # link with -lc, and that would cause any symbols used from libc to
15546 # always be unresolved, which means just about no library would
15547 # ever link correctly. If we're not using GNU ld we use -z text
15548 # though, which does catch some bad symbols but isn't as heavy-handed
15549 # as -z defs.
15550 no_undefined_flag_F77='${wl}-z,text'
15551 allow_undefined_flag_F77='${wl}-z,nodefs'
15552 archive_cmds_need_lc_F77=no
15553 hardcode_shlibpath_var_F77=no
15554 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15555 hardcode_libdir_separator_F77=':'
15556 link_all_deplibs_F77=yes
15557 export_dynamic_flag_spec_F77='${wl}-Bexport'
15558 runpath_var='LD_RUN_PATH'
15559
15560 if test "$GCC" = yes; then
15561 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 else
15564 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15565 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15566 fi
15567 ;;
15568
15569 uts4*)
15570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_libdir_flag_spec_F77='-L$libdir'
15572 hardcode_shlibpath_var_F77=no
15573 ;;
15574
15575 *)
15576 ld_shlibs_F77=no
15577 ;;
15578 esac
15579 fi
15580
15581echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15582echo "${ECHO_T}$ld_shlibs_F77" >&6
15583test "$ld_shlibs_F77" = no && can_build_shared=no
15584
15585#
15586# Do we need to explicitly link libc?
15587#
15588case "x$archive_cmds_need_lc_F77" in
15589x|xyes)
15590 # Assume -lc should be added
15591 archive_cmds_need_lc_F77=yes
15592
15593 if test "$enable_shared" = yes && test "$GCC" = yes; then
15594 case $archive_cmds_F77 in
15595 *'~'*)
15596 # FIXME: we may have to deal with multi-command sequences.
15597 ;;
15598 '$CC '*)
15599 # Test whether the compiler implicitly links with -lc since on some
15600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15601 # to ld, don't add -lc before -lgcc.
15602 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15603echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15604 $rm conftest*
15605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15606
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } 2>conftest.err; then
15612 soname=conftest
15613 lib=conftest
15614 libobjs=conftest.$ac_objext
15615 deplibs=
15616 wl=$lt_prog_compiler_wl_F77
15617 pic_flag=$lt_prog_compiler_pic_F77
15618 compiler_flags=-v
15619 linker_flags=-v
15620 verstring=
15621 output_objdir=.
15622 libname=conftest
15623 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15624 allow_undefined_flag_F77=
15625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15626 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }
15630 then
15631 archive_cmds_need_lc_F77=no
15632 else
15633 archive_cmds_need_lc_F77=yes
15634 fi
15635 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15636 else
15637 cat conftest.err 1>&5
15638 fi
15639 $rm conftest*
15640 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15641echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15642 ;;
15643 esac
15644 fi
15645 ;;
15646esac
15647
15648echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15649echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15650library_names_spec=
15651libname_spec='lib$name'
15652soname_spec=
15653shrext_cmds=".so"
15654postinstall_cmds=
15655postuninstall_cmds=
15656finish_cmds=
15657finish_eval=
15658shlibpath_var=
15659shlibpath_overrides_runpath=unknown
15660version_type=none
15661dynamic_linker="$host_os ld.so"
15662sys_lib_dlsearch_path_spec="/lib /usr/lib"
15663if test "$GCC" = yes; then
15664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15666 # if the path contains ";" then we assume it to be the separator
15667 # otherwise default to the standard path separator (i.e. ":") - it is
15668 # assumed that no part of a normal pathname contains ";" but that should
15669 # okay in the real world where ";" in dirpaths is itself problematic.
15670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15671 else
15672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15673 fi
15674else
15675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15676fi
15677need_lib_prefix=unknown
15678hardcode_into_libs=no
15679
15680# when you set need_version to no, make sure it does not cause -set_version
15681# flags to be left without arguments
15682need_version=unknown
15683
15684case $host_os in
15685aix3*)
15686 version_type=linux
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15688 shlibpath_var=LIBPATH
15689
15690 # AIX 3 has no versioning support, so we append a major version to the name.
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 ;;
15693
15694aix4* | aix5*)
15695 version_type=linux
15696 need_lib_prefix=no
15697 need_version=no
15698 hardcode_into_libs=yes
15699 if test "$host_cpu" = ia64; then
15700 # AIX 5 supports IA64
15701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 else
15704 # With GCC up to 2.95.x, collect2 would create an import file
15705 # for dependence libraries. The import file would start with
15706 # the line `#! .'. This would cause the generated library to
15707 # depend on `.', always an invalid library. This was fixed in
15708 # development snapshots of GCC prior to 3.0.
15709 case $host_os in
15710 aix4 | aix4.[01] | aix4.[01].*)
15711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15712 echo ' yes '
15713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15714 :
15715 else
15716 can_build_shared=no
15717 fi
15718 ;;
15719 esac
15720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15721 # soname into executable. Probably we can add versioning support to
15722 # collect2, so additional links can be useful in future.
15723 if test "$aix_use_runtimelinking" = yes; then
15724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15725 # instead of lib<name>.a to let people know that these are not
15726 # typical AIX shared libraries.
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 else
15729 # We preserve .a as extension for shared libraries through AIX4.2
15730 # and later when we are not doing run time linking.
15731 library_names_spec='${libname}${release}.a $libname.a'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 fi
15734 shlibpath_var=LIBPATH
15735 fi
15736 ;;
15737
15738amigaos*)
15739 library_names_spec='$libname.ixlibrary $libname.a'
15740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15741 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'
15742 ;;
15743
15744beos*)
15745 library_names_spec='${libname}${shared_ext}'
15746 dynamic_linker="$host_os ld.so"
15747 shlibpath_var=LIBRARY_PATH
15748 ;;
15749
15750bsdi[45]*)
15751 version_type=linux
15752 need_version=no
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15756 shlibpath_var=LD_LIBRARY_PATH
15757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15759 # the default ld.so.conf also contains /usr/contrib/lib and
15760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15761 # libtool to hard-code these into programs
15762 ;;
15763
15764cygwin* | mingw* | pw32*)
15765 version_type=windows
15766 shrext_cmds=".dll"
15767 need_version=no
15768 need_lib_prefix=no
15769
15770 case $GCC,$host_os in
15771 yes,cygwin* | yes,mingw* | yes,pw32*)
15772 library_names_spec='$libname.dll.a'
15773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15774 postinstall_cmds='base_file=`basename \${file}`~
15775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15776 dldir=$destdir/`dirname \$dlpath`~
15777 test -d \$dldir || mkdir -p \$dldir~
15778 $install_prog $dir/$dlname \$dldir/$dlname~
15779 chmod a+x \$dldir/$dlname'
15780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15781 dlpath=$dir/\$dldll~
15782 $rm \$dlpath'
15783 shlibpath_overrides_runpath=yes
15784
15785 case $host_os in
15786 cygwin*)
15787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15790 ;;
15791 mingw*)
15792 # MinGW DLLs use traditional 'lib' prefix
15793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15796 # It is most probably a Windows format PATH printed by
15797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15798 # path with ; separators, and with drive letters. We can handle the
15799 # drive letters (cygwin fileutils understands them), so leave them,
15800 # especially as we might pass files found there to a mingw objdump,
15801 # which wouldn't understand a cygwinified path. Ahh.
15802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15803 else
15804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15805 fi
15806 ;;
15807 pw32*)
15808 # pw32 DLLs use 'pw' prefix rather than 'lib'
15809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15810 ;;
15811 esac
15812 ;;
15813
15814 *)
15815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15816 ;;
15817 esac
15818 dynamic_linker='Win32 ld.exe'
15819 # FIXME: first we should search . and the directory the executable is in
15820 shlibpath_var=PATH
15821 ;;
15822
15823darwin* | rhapsody*)
15824 dynamic_linker="$host_os dyld"
15825 version_type=darwin
15826 need_lib_prefix=no
15827 need_version=no
15828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15829 soname_spec='${libname}${release}${major}$shared_ext'
15830 shlibpath_overrides_runpath=yes
15831 shlibpath_var=DYLD_LIBRARY_PATH
15832 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15834 if test "$GCC" = yes; then
15835 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"`
15836 else
15837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15838 fi
15839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15840 ;;
15841
15842dgux*)
15843 version_type=linux
15844 need_lib_prefix=no
15845 need_version=no
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 shlibpath_var=LD_LIBRARY_PATH
15849 ;;
15850
15851freebsd1*)
15852 dynamic_linker=no
15853 ;;
15854
15855kfreebsd*-gnu)
15856 version_type=linux
15857 need_lib_prefix=no
15858 need_version=no
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=no
15863 hardcode_into_libs=yes
15864 dynamic_linker='GNU ld.so'
15865 ;;
15866
15867freebsd* | dragonfly*)
15868 # DragonFly does not have aout. When/if they implement a new
15869 # versioning mechanism, adjust this.
15870 if test -x /usr/bin/objformat; then
15871 objformat=`/usr/bin/objformat`
15872 else
15873 case $host_os in
15874 freebsd[123]*) objformat=aout ;;
15875 *) objformat=elf ;;
15876 esac
15877 fi
15878 version_type=freebsd-$objformat
15879 case $version_type in
15880 freebsd-elf*)
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15882 need_version=no
15883 need_lib_prefix=no
15884 ;;
15885 freebsd-*)
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15887 need_version=yes
15888 ;;
15889 esac
15890 shlibpath_var=LD_LIBRARY_PATH
15891 case $host_os in
15892 freebsd2*)
15893 shlibpath_overrides_runpath=yes
15894 ;;
15895 freebsd3.[01]* | freebsdelf3.[01]*)
15896 shlibpath_overrides_runpath=yes
15897 hardcode_into_libs=yes
15898 ;;
15899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15901 shlibpath_overrides_runpath=no
15902 hardcode_into_libs=yes
15903 ;;
15904 freebsd*) # from 4.6 on
15905 shlibpath_overrides_runpath=yes
15906 hardcode_into_libs=yes
15907 ;;
15908 esac
15909 ;;
15910
15911gnu*)
15912 version_type=linux
15913 need_lib_prefix=no
15914 need_version=no
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15916 soname_spec='${libname}${release}${shared_ext}$major'
15917 shlibpath_var=LD_LIBRARY_PATH
15918 hardcode_into_libs=yes
15919 ;;
15920
15921hpux9* | hpux10* | hpux11*)
15922 # Give a soname corresponding to the major version so that dld.sl refuses to
15923 # link against other versions.
15924 version_type=sunos
15925 need_lib_prefix=no
15926 need_version=no
15927 case $host_cpu in
15928 ia64*)
15929 shrext_cmds='.so'
15930 hardcode_into_libs=yes
15931 dynamic_linker="$host_os dld.so"
15932 shlibpath_var=LD_LIBRARY_PATH
15933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 if test "X$HPUX_IA64_MODE" = X32; then
15937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15938 else
15939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15940 fi
15941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15942 ;;
15943 hppa*64*)
15944 shrext_cmds='.sl'
15945 hardcode_into_libs=yes
15946 dynamic_linker="$host_os dld.sl"
15947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950 soname_spec='${libname}${release}${shared_ext}$major'
15951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15953 ;;
15954 *)
15955 shrext_cmds='.sl'
15956 dynamic_linker="$host_os dld.sl"
15957 shlibpath_var=SHLIB_PATH
15958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 ;;
15962 esac
15963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15964 postinstall_cmds='chmod 555 $lib'
15965 ;;
15966
15967interix3*)
15968 version_type=linux
15969 need_lib_prefix=no
15970 need_version=no
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15974 shlibpath_var=LD_LIBRARY_PATH
15975 shlibpath_overrides_runpath=no
15976 hardcode_into_libs=yes
15977 ;;
15978
15979irix5* | irix6* | nonstopux*)
15980 case $host_os in
15981 nonstopux*) version_type=nonstopux ;;
15982 *)
15983 if test "$lt_cv_prog_gnu_ld" = yes; then
15984 version_type=linux
15985 else
15986 version_type=irix
15987 fi ;;
15988 esac
15989 need_lib_prefix=no
15990 need_version=no
15991 soname_spec='${libname}${release}${shared_ext}$major'
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15993 case $host_os in
15994 irix5* | nonstopux*)
15995 libsuff= shlibsuff=
15996 ;;
15997 *)
15998 case $LD in # libtool.m4 will add one of these switches to LD
15999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16000 libsuff= shlibsuff= libmagic=32-bit;;
16001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16002 libsuff=32 shlibsuff=N32 libmagic=N32;;
16003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16005 *) libsuff= shlibsuff= libmagic=never-match;;
16006 esac
16007 ;;
16008 esac
16009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16010 shlibpath_overrides_runpath=no
16011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16013 hardcode_into_libs=yes
16014 ;;
16015
16016# No shared lib support for Linux oldld, aout, or coff.
16017linux*oldld* | linux*aout* | linux*coff*)
16018 dynamic_linker=no
16019 ;;
16020
16021# This must be Linux ELF.
16022linux*)
16023 version_type=linux
16024 need_lib_prefix=no
16025 need_version=no
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 shlibpath_overrides_runpath=no
16031 # This implies no fast_install, which is unacceptable.
16032 # Some rework will be needed to allow for fast_install
16033 # before this can be enabled.
16034 hardcode_into_libs=yes
16035
16036 # find out which ABI we are using
16037 libsuff=
16038 case "$host_cpu" in
16039 x86_64*|s390x*|powerpc64*)
16040 echo '#line 16040 "configure"' > conftest.$ac_ext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042 (eval $ac_compile) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; then
16046 case `/usr/bin/file conftest.$ac_objext` in
16047 *64-bit*)
16048 libsuff=64
16049 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16050 ;;
16051 esac
16052 fi
16053 rm -rf conftest*
16054 ;;
16055 esac
16056
16057 # Append ld.so.conf contents to the search path
16058 if test -f /etc/ld.so.conf; then
16059 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16060 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16061 fi
16062
16063 # We used to test for /lib/ld.so.1 and disable shared libraries on
16064 # powerpc, because MkLinux only supported shared libraries with the
16065 # GNU dynamic linker. Since this was broken with cross compilers,
16066 # most powerpc-linux boxes support dynamic linking these days and
16067 # people can always --disable-shared, the test was removed, and we
16068 # assume the GNU/Linux dynamic linker is in use.
16069 dynamic_linker='GNU/Linux ld.so'
16070 ;;
16071
16072knetbsd*-gnu)
16073 version_type=linux
16074 need_lib_prefix=no
16075 need_version=no
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=no
16080 hardcode_into_libs=yes
16081 dynamic_linker='GNU ld.so'
16082 ;;
16083
16084netbsd*)
16085 version_type=sunos
16086 need_lib_prefix=no
16087 need_version=no
16088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16091 dynamic_linker='NetBSD (a.out) ld.so'
16092 else
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 dynamic_linker='NetBSD ld.elf_so'
16096 fi
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16099 hardcode_into_libs=yes
16100 ;;
16101
16102newsos6)
16103 version_type=linux
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 shlibpath_overrides_runpath=yes
16107 ;;
16108
16109nto-qnx*)
16110 version_type=linux
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16117 ;;
16118
16119openbsd*)
16120 version_type=sunos
16121 sys_lib_dlsearch_path_spec="/usr/lib"
16122 need_lib_prefix=no
16123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16124 case $host_os in
16125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16126 *) need_version=no ;;
16127 esac
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16132 case $host_os in
16133 openbsd2.[89] | openbsd2.[89].*)
16134 shlibpath_overrides_runpath=no
16135 ;;
16136 *)
16137 shlibpath_overrides_runpath=yes
16138 ;;
16139 esac
16140 else
16141 shlibpath_overrides_runpath=yes
16142 fi
16143 ;;
16144
16145os2*)
16146 libname_spec='$name'
16147 shrext_cmds=".dll"
16148 need_lib_prefix=no
16149 library_names_spec='$libname${shared_ext} $libname.a'
16150 dynamic_linker='OS/2 ld.exe'
16151 shlibpath_var=LIBPATH
16152 ;;
16153
16154osf3* | osf4* | osf5*)
16155 version_type=osf
16156 need_lib_prefix=no
16157 need_version=no
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16163 ;;
16164
16165solaris*)
16166 version_type=linux
16167 need_lib_prefix=no
16168 need_version=no
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16174 # ldd complains unless libraries are executable
16175 postinstall_cmds='chmod +x $lib'
16176 ;;
16177
16178sunos4*)
16179 version_type=sunos
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 shlibpath_overrides_runpath=yes
16184 if test "$with_gnu_ld" = yes; then
16185 need_lib_prefix=no
16186 fi
16187 need_version=yes
16188 ;;
16189
16190sysv4 | sysv4.3*)
16191 version_type=linux
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 case $host_vendor in
16196 sni)
16197 shlibpath_overrides_runpath=no
16198 need_lib_prefix=no
16199 export_dynamic_flag_spec='${wl}-Blargedynsym'
16200 runpath_var=LD_RUN_PATH
16201 ;;
16202 siemens)
16203 need_lib_prefix=no
16204 ;;
16205 motorola)
16206 need_lib_prefix=no
16207 need_version=no
16208 shlibpath_overrides_runpath=no
16209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16210 ;;
16211 esac
16212 ;;
16213
16214sysv4*MP*)
16215 if test -d /usr/nec ;then
16216 version_type=linux
16217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218 soname_spec='$libname${shared_ext}.$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 fi
16221 ;;
16222
16223sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224 version_type=freebsd-elf
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 hardcode_into_libs=yes
16231 if test "$with_gnu_ld" = yes; then
16232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233 shlibpath_overrides_runpath=no
16234 else
16235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236 shlibpath_overrides_runpath=yes
16237 case $host_os in
16238 sco3.2v5*)
16239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16240 ;;
16241 esac
16242 fi
16243 sys_lib_dlsearch_path_spec='/usr/lib'
16244 ;;
16245
16246uts4*)
16247 version_type=linux
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 ;;
16252
16253*)
16254 dynamic_linker=no
16255 ;;
16256esac
16257echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16258echo "${ECHO_T}$dynamic_linker" >&6
16259test "$dynamic_linker" = no && can_build_shared=no
16260
16261variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262if test "$GCC" = yes; then
16263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16264fi
16265
16266echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16268hardcode_action_F77=
16269if test -n "$hardcode_libdir_flag_spec_F77" || \
16270 test -n "$runpath_var_F77" || \
16271 test "X$hardcode_automatic_F77" = "Xyes" ; then
16272
16273 # We can hardcode non-existant directories.
16274 if test "$hardcode_direct_F77" != no &&
16275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276 # have to relink, otherwise we might link with an installed library
16277 # when we should be linking with a yet-to-be-installed one
16278 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16279 test "$hardcode_minus_L_F77" != no; then
16280 # Linking always hardcodes the temporary library directory.
16281 hardcode_action_F77=relink
16282 else
16283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284 hardcode_action_F77=immediate
16285 fi
16286else
16287 # We cannot hardcode anything, or else we can only hardcode existing
16288 # directories.
16289 hardcode_action_F77=unsupported
16290fi
16291echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16292echo "${ECHO_T}$hardcode_action_F77" >&6
16293
16294if test "$hardcode_action_F77" = relink; then
16295 # Fast installation is not supported
16296 enable_fast_install=no
16297elif test "$shlibpath_overrides_runpath" = yes ||
16298 test "$enable_shared" = no; then
16299 # Fast installation is not necessary
16300 enable_fast_install=needless
16301fi
16302
16303
16304# The else clause should only fire when bootstrapping the
16305# libtool distribution, otherwise you forgot to ship ltmain.sh
16306# with your package, and you will get complaints that there are
16307# no rules to generate ltmain.sh.
16308if test -f "$ltmain"; then
16309 # See if we are running on zsh, and set the options which allow our commands through
16310 # without removal of \ escapes.
16311 if test -n "${ZSH_VERSION+set}" ; then
16312 setopt NO_GLOB_SUBST
16313 fi
16314 # Now quote all the things that may contain metacharacters while being
16315 # careful not to overquote the AC_SUBSTed values. We take copies of the
16316 # variables and quote the copies for generation of the libtool script.
16317 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16318 SED SHELL STRIP \
16319 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16320 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16321 deplibs_check_method reload_flag reload_cmds need_locks \
16322 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16323 lt_cv_sys_global_symbol_to_c_name_address \
16324 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16325 old_postinstall_cmds old_postuninstall_cmds \
16326 compiler_F77 \
16327 CC_F77 \
16328 LD_F77 \
16329 lt_prog_compiler_wl_F77 \
16330 lt_prog_compiler_pic_F77 \
16331 lt_prog_compiler_static_F77 \
16332 lt_prog_compiler_no_builtin_flag_F77 \
16333 export_dynamic_flag_spec_F77 \
16334 thread_safe_flag_spec_F77 \
16335 whole_archive_flag_spec_F77 \
16336 enable_shared_with_static_runtimes_F77 \
16337 old_archive_cmds_F77 \
16338 old_archive_from_new_cmds_F77 \
16339 predep_objects_F77 \
16340 postdep_objects_F77 \
16341 predeps_F77 \
16342 postdeps_F77 \
16343 compiler_lib_search_path_F77 \
16344 archive_cmds_F77 \
16345 archive_expsym_cmds_F77 \
16346 postinstall_cmds_F77 \
16347 postuninstall_cmds_F77 \
16348 old_archive_from_expsyms_cmds_F77 \
16349 allow_undefined_flag_F77 \
16350 no_undefined_flag_F77 \
16351 export_symbols_cmds_F77 \
16352 hardcode_libdir_flag_spec_F77 \
16353 hardcode_libdir_flag_spec_ld_F77 \
16354 hardcode_libdir_separator_F77 \
16355 hardcode_automatic_F77 \
16356 module_cmds_F77 \
16357 module_expsym_cmds_F77 \
16358 lt_cv_prog_compiler_c_o_F77 \
16359 exclude_expsyms_F77 \
16360 include_expsyms_F77; do
16361
16362 case $var in
16363 old_archive_cmds_F77 | \
16364 old_archive_from_new_cmds_F77 | \
16365 archive_cmds_F77 | \
16366 archive_expsym_cmds_F77 | \
16367 module_cmds_F77 | \
16368 module_expsym_cmds_F77 | \
16369 old_archive_from_expsyms_cmds_F77 | \
16370 export_symbols_cmds_F77 | \
16371 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16372 postinstall_cmds | postuninstall_cmds | \
16373 old_postinstall_cmds | old_postuninstall_cmds | \
16374 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16375 # Double-quote double-evaled strings.
16376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16377 ;;
16378 *)
16379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16380 ;;
16381 esac
16382 done
16383
16384 case $lt_echo in
16385 *'\$0 --fallback-echo"')
16386 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16387 ;;
16388 esac
16389
16390cfgfile="$ofile"
16391
16392 cat <<__EOF__ >> "$cfgfile"
16393# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16394
16395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16396
16397# Shell to use when invoking shell scripts.
16398SHELL=$lt_SHELL
16399
16400# Whether or not to build shared libraries.
16401build_libtool_libs=$enable_shared
16402
16403# Whether or not to build static libraries.
16404build_old_libs=$enable_static
16405
16406# Whether or not to add -lc for building shared libraries.
16407build_libtool_need_lc=$archive_cmds_need_lc_F77
16408
16409# Whether or not to disallow shared libs when runtime libs are static
16410allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16411
16412# Whether or not to optimize for fast installation.
16413fast_install=$enable_fast_install
16414
16415# The host system.
16416host_alias=$host_alias
16417host=$host
16418host_os=$host_os
16419
16420# The build system.
16421build_alias=$build_alias
16422build=$build
16423build_os=$build_os
16424
16425# An echo program that does not interpret backslashes.
16426echo=$lt_echo
16427
16428# The archiver.
16429AR=$lt_AR
16430AR_FLAGS=$lt_AR_FLAGS
16431
16432# A C compiler.
16433LTCC=$lt_LTCC
16434
16435# LTCC compiler flags.
16436LTCFLAGS=$lt_LTCFLAGS
16437
16438# A language-specific compiler.
16439CC=$lt_compiler_F77
16440
16441# Is the compiler the GNU C compiler?
16442with_gcc=$GCC_F77
16443
16444gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16445gcc_ver=\`gcc -dumpversion\`
16446
16447# An ERE matcher.
16448EGREP=$lt_EGREP
16449
16450# The linker used to build libraries.
16451LD=$lt_LD_F77
16452
16453# Whether we need hard or soft links.
16454LN_S=$lt_LN_S
16455
16456# A BSD-compatible nm program.
16457NM=$lt_NM
16458
16459# A symbol stripping program
16460STRIP=$lt_STRIP
16461
16462# Used to examine libraries when file_magic_cmd begins "file"
16463MAGIC_CMD=$MAGIC_CMD
16464
16465# Used on cygwin: DLL creation program.
16466DLLTOOL="$DLLTOOL"
16467
16468# Used on cygwin: object dumper.
16469OBJDUMP="$OBJDUMP"
16470
16471# Used on cygwin: assembler.
16472AS="$AS"
16473
16474# The name of the directory that contains temporary libtool files.
16475objdir=$objdir
16476
16477# How to create reloadable object files.
16478reload_flag=$lt_reload_flag
16479reload_cmds=$lt_reload_cmds
16480
16481# How to pass a linker flag through the compiler.
16482wl=$lt_lt_prog_compiler_wl_F77
16483
16484# Object file suffix (normally "o").
16485objext="$ac_objext"
16486
16487# Old archive suffix (normally "a").
16488libext="$libext"
16489
16490# Shared library suffix (normally ".so").
16491shrext_cmds='$shrext_cmds'
16492
16493# Executable file suffix (normally "").
16494exeext="$exeext"
16495
16496# Additional compiler flags for building library objects.
16497pic_flag=$lt_lt_prog_compiler_pic_F77
16498pic_mode=$pic_mode
16499
16500# What is the maximum length of a command?
16501max_cmd_len=$lt_cv_sys_max_cmd_len
16502
16503# Does compiler simultaneously support -c and -o options?
16504compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16505
16506# Must we lock files when doing compilation?
16507need_locks=$lt_need_locks
16508
16509# Do we need the lib prefix for modules?
16510need_lib_prefix=$need_lib_prefix
16511
16512# Do we need a version for libraries?
16513need_version=$need_version
16514
16515# Whether dlopen is supported.
16516dlopen_support=$enable_dlopen
16517
16518# Whether dlopen of programs is supported.
16519dlopen_self=$enable_dlopen_self
16520
16521# Whether dlopen of statically linked programs is supported.
16522dlopen_self_static=$enable_dlopen_self_static
16523
16524# Compiler flag to prevent dynamic linking.
16525link_static_flag=$lt_lt_prog_compiler_static_F77
16526
16527# Compiler flag to turn off builtin functions.
16528no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16529
16530# Compiler flag to allow reflexive dlopens.
16531export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16532
16533# Compiler flag to generate shared objects directly from archives.
16534whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16535
16536# Compiler flag to generate thread-safe objects.
16537thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16538
16539# Library versioning type.
16540version_type=$version_type
16541
16542# Format of library name prefix.
16543libname_spec=$lt_libname_spec
16544
16545# List of archive names. First name is the real one, the rest are links.
16546# The last name is the one that the linker finds with -lNAME.
16547library_names_spec=$lt_library_names_spec
16548
16549# The coded name of the library, if different from the real name.
16550soname_spec=$lt_soname_spec
16551
16552# Commands used to build and install an old-style archive.
16553RANLIB=$lt_RANLIB
16554old_archive_cmds=$lt_old_archive_cmds_F77
16555old_postinstall_cmds=$lt_old_postinstall_cmds
16556old_postuninstall_cmds=$lt_old_postuninstall_cmds
16557
16558# Create an old-style archive from a shared archive.
16559old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16560
16561# Create a temporary old-style archive to link instead of a shared archive.
16562old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16563
16564# Commands used to build and install a shared archive.
16565archive_cmds=$lt_archive_cmds_F77
16566archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16567postinstall_cmds=$lt_postinstall_cmds
16568postuninstall_cmds=$lt_postuninstall_cmds
16569
16570# Commands used to build a loadable module (assumed same as above if empty)
16571module_cmds=$lt_module_cmds_F77
16572module_expsym_cmds=$lt_module_expsym_cmds_F77
16573
16574# Commands to strip libraries.
16575old_striplib=$lt_old_striplib
16576striplib=$lt_striplib
16577
16578# Dependencies to place before the objects being linked to create a
16579# shared library.
16580predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16581
16582# Dependencies to place after the objects being linked to create a
16583# shared library.
16584postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16585
16586# Dependencies to place before the objects being linked to create a
16587# shared library.
16588predeps=$lt_predeps_F77
16589
16590# Dependencies to place after the objects being linked to create a
16591# shared library.
16592postdeps=$lt_postdeps_F77
16593
16594# The library search path used internally by the compiler when linking
16595# a shared library.
16596compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16597
16598# Method to check whether dependent libraries are shared objects.
16599deplibs_check_method=$lt_deplibs_check_method
16600
16601# Command to use when deplibs_check_method == file_magic.
16602file_magic_cmd=$lt_file_magic_cmd
16603
16604# Flag that allows shared libraries with undefined symbols to be built.
16605allow_undefined_flag=$lt_allow_undefined_flag_F77
16606
16607# Flag that forces no undefined symbols.
16608no_undefined_flag=$lt_no_undefined_flag_F77
16609
16610# Commands used to finish a libtool library installation in a directory.
16611finish_cmds=$lt_finish_cmds
16612
16613# Same as above, but a single script fragment to be evaled but not shown.
16614finish_eval=$lt_finish_eval
16615
16616# Take the output of nm and produce a listing of raw symbols and C names.
16617global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16618
16619# Transform the output of nm in a proper C declaration
16620global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16621
16622# Transform the output of nm in a C name address pair
16623global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16624
16625# This is the shared library runtime path variable.
16626runpath_var=$runpath_var
16627
16628# This is the shared library path variable.
16629shlibpath_var=$shlibpath_var
16630
16631# Is shlibpath searched before the hard-coded library search path?
16632shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16633
16634# How to hardcode a shared library path into an executable.
16635hardcode_action=$hardcode_action_F77
16636
16637# Whether we should hardcode library paths into libraries.
16638hardcode_into_libs=$hardcode_into_libs
16639
16640# Flag to hardcode \$libdir into a binary during linking.
16641# This must work even if \$libdir does not exist.
16642hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16643
16644# If ld is used when linking, flag to hardcode \$libdir into
16645# a binary during linking. This must work even if \$libdir does
16646# not exist.
16647hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16648
16649# Whether we need a single -rpath flag with a separated argument.
16650hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16651
16652# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16653# resulting binary.
16654hardcode_direct=$hardcode_direct_F77
16655
16656# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16657# resulting binary.
16658hardcode_minus_L=$hardcode_minus_L_F77
16659
16660# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16661# the resulting binary.
16662hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16663
16664# Set to yes if building a shared library automatically hardcodes DIR into the library
16665# and all subsequent libraries and executables linked against it.
16666hardcode_automatic=$hardcode_automatic_F77
16667
16668# Variables whose values should be saved in libtool wrapper scripts and
16669# restored at relink time.
16670variables_saved_for_relink="$variables_saved_for_relink"
16671
16672# Whether libtool must link a program against all its dependency libraries.
16673link_all_deplibs=$link_all_deplibs_F77
16674
16675# Compile-time system search path for libraries
16676sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16677
16678# Run-time system search path for libraries
16679sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16680
16681# Fix the shell variable \$srcfile for the compiler.
16682fix_srcfile_path="$fix_srcfile_path_F77"
16683
16684# Set to yes if exported symbols are required.
16685always_export_symbols=$always_export_symbols_F77
16686
16687# The commands to list exported symbols.
16688export_symbols_cmds=$lt_export_symbols_cmds_F77
16689
16690# The commands to extract the exported symbol list from a shared archive.
16691extract_expsyms_cmds=$lt_extract_expsyms_cmds
16692
16693# Symbols that should not be listed in the preloaded symbols.
16694exclude_expsyms=$lt_exclude_expsyms_F77
16695
16696# Symbols that must always be exported.
16697include_expsyms=$lt_include_expsyms_F77
16698
16699# ### END LIBTOOL TAG CONFIG: $tagname
16700
16701__EOF__
16702
16703
16704else
16705 # If there is no Makefile yet, we rely on a make rule to execute
16706 # `config.status --recheck' to rerun these tests and create the
16707 # libtool script then.
16708 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16709 if test -f "$ltmain_in"; then
16710 test -f Makefile && make "$ltmain"
16711 fi
16712fi
16713
16714
16715ac_ext=c
16716ac_cpp='$CPP $CPPFLAGS'
16717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16719ac_compiler_gnu=$ac_cv_c_compiler_gnu
16720
16721CC="$lt_save_CC"
16722
16723 else
16724 tagname=""
16725 fi
16726 ;;
16727
16728 GCJ)
16729 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16730
16731
16732
16733# Source file extension for Java test sources.
16734ac_ext=java
16735
16736# Object file extension for compiled Java test sources.
16737objext=o
16738objext_GCJ=$objext
16739
16740# Code to be used in simple compile tests
16741lt_simple_compile_test_code="class foo {}\n"
16742
16743# Code to be used in simple link tests
16744lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16745
16746# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16747
16748# If no C compiler was specified, use CC.
16749LTCC=${LTCC-"$CC"}
16750
16751# If no C compiler flags were specified, use CFLAGS.
16752LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16753
16754# Allow CC to be a program name with arguments.
16755compiler=$CC
16756
16757
16758# save warnings/boilerplate of simple test code
16759ac_outfile=conftest.$ac_objext
16760printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16761eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16762_lt_compiler_boilerplate=`cat conftest.err`
16763$rm conftest*
16764
16765ac_outfile=conftest.$ac_objext
16766printf "$lt_simple_link_test_code" >conftest.$ac_ext
16767eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16768_lt_linker_boilerplate=`cat conftest.err`
16769$rm conftest*
16770
16771
16772# Allow CC to be a program name with arguments.
16773lt_save_CC="$CC"
16774CC=${GCJ-"gcj"}
16775compiler=$CC
16776compiler_GCJ=$CC
16777for cc_temp in $compiler""; do
16778 case $cc_temp in
16779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16781 \-*) ;;
16782 *) break;;
16783 esac
16784done
16785cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16786
16787
16788# GCJ did not exist at the time GCC didn't implicitly link libc in.
16789archive_cmds_need_lc_GCJ=no
16790
16791old_archive_cmds_GCJ=$old_archive_cmds
16792
16793
16794lt_prog_compiler_no_builtin_flag_GCJ=
16795
16796if test "$GCC" = yes; then
16797 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16798
16799
16800echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16801echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16802if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804else
16805 lt_cv_prog_compiler_rtti_exceptions=no
16806 ac_outfile=conftest.$ac_objext
16807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16808 lt_compiler_flag="-fno-rtti -fno-exceptions"
16809 # Insert the option either (1) after the last *FLAGS variable, or
16810 # (2) before a word containing "conftest.", or (3) at the end.
16811 # Note that $ac_compile itself does not contain backslashes and begins
16812 # with a dollar sign (not a hyphen), so the echo should work correctly.
16813 # The option is referenced via a variable to avoid confusing sed.
16814 lt_compile=`echo "$ac_compile" | $SED \
16815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16817 -e 's:$: $lt_compiler_flag:'`
16818 (eval echo "\"\$as_me:16818: $lt_compile\"" >&5)
16819 (eval "$lt_compile" 2>conftest.err)
16820 ac_status=$?
16821 cat conftest.err >&5
16822 echo "$as_me:16822: \$? = $ac_status" >&5
16823 if (exit $ac_status) && test -s "$ac_outfile"; then
16824 # The compiler can only warn and ignore the option if not recognized
16825 # So say no if there are warnings other than the usual output.
16826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16829 lt_cv_prog_compiler_rtti_exceptions=yes
16830 fi
16831 fi
16832 $rm conftest*
16833
16834fi
16835echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16836echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16837
16838if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16839 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16840else
16841 :
16842fi
16843
16844fi
16845
16846lt_prog_compiler_wl_GCJ=
16847lt_prog_compiler_pic_GCJ=
16848lt_prog_compiler_static_GCJ=
16849
16850echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16851echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16852
16853 if test "$GCC" = yes; then
16854 lt_prog_compiler_wl_GCJ='-Wl,'
16855 lt_prog_compiler_static_GCJ='-static'
16856
16857 case $host_os in
16858 aix*)
16859 # All AIX code is PIC.
16860 if test "$host_cpu" = ia64; then
16861 # AIX 5 now supports IA64 processor
16862 lt_prog_compiler_static_GCJ='-Bstatic'
16863 fi
16864 ;;
16865
16866 amigaos*)
16867 # FIXME: we need at least 68020 code to build shared libraries, but
16868 # adding the `-m68020' flag to GCC prevents building anything better,
16869 # like `-m68040'.
16870 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16871 ;;
16872
16873 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16874 # PIC is the default for these OSes.
16875 ;;
16876
16877 mingw* | pw32* | os2*)
16878 # This hack is so that the source file can tell whether it is being
16879 # built for inclusion in a dll (and should export symbols for example).
16880 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16881 ;;
16882
16883 darwin* | rhapsody*)
16884 # PIC is the default on this platform
16885 # Common symbols not allowed in MH_DYLIB files
16886 lt_prog_compiler_pic_GCJ='-fno-common'
16887 ;;
16888
16889 interix3*)
16890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16891 # Instead, we relocate shared libraries at runtime.
16892 ;;
16893
16894 msdosdjgpp*)
16895 # Just because we use GCC doesn't mean we suddenly get shared libraries
16896 # on systems that don't support them.
16897 lt_prog_compiler_can_build_shared_GCJ=no
16898 enable_shared=no
16899 ;;
16900
16901 sysv4*MP*)
16902 if test -d /usr/nec; then
16903 lt_prog_compiler_pic_GCJ=-Kconform_pic
16904 fi
16905 ;;
16906
16907 hpux*)
16908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16909 # not for PA HP-UX.
16910 case $host_cpu in
16911 hppa*64*|ia64*)
16912 # +Z the default
16913 ;;
16914 *)
16915 lt_prog_compiler_pic_GCJ='-fPIC'
16916 ;;
16917 esac
16918 ;;
16919
16920 *)
16921 lt_prog_compiler_pic_GCJ='-fPIC'
16922 ;;
16923 esac
16924 else
16925 # PORTME Check for flag to pass linker flags through the system compiler.
16926 case $host_os in
16927 aix*)
16928 lt_prog_compiler_wl_GCJ='-Wl,'
16929 if test "$host_cpu" = ia64; then
16930 # AIX 5 now supports IA64 processor
16931 lt_prog_compiler_static_GCJ='-Bstatic'
16932 else
16933 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16934 fi
16935 ;;
16936 darwin*)
16937 # PIC is the default on this platform
16938 # Common symbols not allowed in MH_DYLIB files
16939 case $cc_basename in
16940 xlc*)
16941 lt_prog_compiler_pic_GCJ='-qnocommon'
16942 lt_prog_compiler_wl_GCJ='-Wl,'
16943 ;;
16944 esac
16945 ;;
16946
16947 mingw* | pw32* | os2*)
16948 # This hack is so that the source file can tell whether it is being
16949 # built for inclusion in a dll (and should export symbols for example).
16950 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16951 ;;
16952
16953 hpux9* | hpux10* | hpux11*)
16954 lt_prog_compiler_wl_GCJ='-Wl,'
16955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16956 # not for PA HP-UX.
16957 case $host_cpu in
16958 hppa*64*|ia64*)
16959 # +Z the default
16960 ;;
16961 *)
16962 lt_prog_compiler_pic_GCJ='+Z'
16963 ;;
16964 esac
16965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16966 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16967 ;;
16968
16969 irix5* | irix6* | nonstopux*)
16970 lt_prog_compiler_wl_GCJ='-Wl,'
16971 # PIC (with -KPIC) is the default.
16972 lt_prog_compiler_static_GCJ='-non_shared'
16973 ;;
16974
16975 newsos6)
16976 lt_prog_compiler_pic_GCJ='-KPIC'
16977 lt_prog_compiler_static_GCJ='-Bstatic'
16978 ;;
16979
16980 linux*)
16981 case $cc_basename in
16982 icc* | ecc*)
16983 lt_prog_compiler_wl_GCJ='-Wl,'
16984 lt_prog_compiler_pic_GCJ='-KPIC'
16985 lt_prog_compiler_static_GCJ='-static'
16986 ;;
16987 pgcc* | pgf77* | pgf90* | pgf95*)
16988 # Portland Group compilers (*not* the Pentium gcc compiler,
16989 # which looks to be a dead project)
16990 lt_prog_compiler_wl_GCJ='-Wl,'
16991 lt_prog_compiler_pic_GCJ='-fpic'
16992 lt_prog_compiler_static_GCJ='-Bstatic'
16993 ;;
16994 ccc*)
16995 lt_prog_compiler_wl_GCJ='-Wl,'
16996 # All Alpha code is PIC.
16997 lt_prog_compiler_static_GCJ='-non_shared'
16998 ;;
16999 esac
17000 ;;
17001
17002 osf3* | osf4* | osf5*)
17003 lt_prog_compiler_wl_GCJ='-Wl,'
17004 # All OSF/1 code is PIC.
17005 lt_prog_compiler_static_GCJ='-non_shared'
17006 ;;
17007
17008 solaris*)
17009 lt_prog_compiler_pic_GCJ='-KPIC'
17010 lt_prog_compiler_static_GCJ='-Bstatic'
17011 case $cc_basename in
17012 f77* | f90* | f95*)
17013 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17014 *)
17015 lt_prog_compiler_wl_GCJ='-Wl,';;
17016 esac
17017 ;;
17018
17019 sunos4*)
17020 lt_prog_compiler_wl_GCJ='-Qoption ld '
17021 lt_prog_compiler_pic_GCJ='-PIC'
17022 lt_prog_compiler_static_GCJ='-Bstatic'
17023 ;;
17024
17025 sysv4 | sysv4.2uw2* | sysv4.3*)
17026 lt_prog_compiler_wl_GCJ='-Wl,'
17027 lt_prog_compiler_pic_GCJ='-KPIC'
17028 lt_prog_compiler_static_GCJ='-Bstatic'
17029 ;;
17030
17031 sysv4*MP*)
17032 if test -d /usr/nec ;then
17033 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17034 lt_prog_compiler_static_GCJ='-Bstatic'
17035 fi
17036 ;;
17037
17038 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17039 lt_prog_compiler_wl_GCJ='-Wl,'
17040 lt_prog_compiler_pic_GCJ='-KPIC'
17041 lt_prog_compiler_static_GCJ='-Bstatic'
17042 ;;
17043
17044 unicos*)
17045 lt_prog_compiler_wl_GCJ='-Wl,'
17046 lt_prog_compiler_can_build_shared_GCJ=no
17047 ;;
17048
17049 uts4*)
17050 lt_prog_compiler_pic_GCJ='-pic'
17051 lt_prog_compiler_static_GCJ='-Bstatic'
17052 ;;
17053
17054 *)
17055 lt_prog_compiler_can_build_shared_GCJ=no
17056 ;;
17057 esac
17058 fi
17059
17060echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17061echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17062
17063#
17064# Check to make sure the PIC flag actually works.
17065#
17066if test -n "$lt_prog_compiler_pic_GCJ"; then
17067
17068echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17069echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17070if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072else
17073 lt_prog_compiler_pic_works_GCJ=no
17074 ac_outfile=conftest.$ac_objext
17075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17076 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17077 # Insert the option either (1) after the last *FLAGS variable, or
17078 # (2) before a word containing "conftest.", or (3) at the end.
17079 # Note that $ac_compile itself does not contain backslashes and begins
17080 # with a dollar sign (not a hyphen), so the echo should work correctly.
17081 # The option is referenced via a variable to avoid confusing sed.
17082 lt_compile=`echo "$ac_compile" | $SED \
17083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17085 -e 's:$: $lt_compiler_flag:'`
17086 (eval echo "\"\$as_me:17086: $lt_compile\"" >&5)
17087 (eval "$lt_compile" 2>conftest.err)
17088 ac_status=$?
17089 cat conftest.err >&5
17090 echo "$as_me:17090: \$? = $ac_status" >&5
17091 if (exit $ac_status) && test -s "$ac_outfile"; then
17092 # The compiler can only warn and ignore the option if not recognized
17093 # So say no if there are warnings other than the usual output.
17094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17097 lt_prog_compiler_pic_works_GCJ=yes
17098 fi
17099 fi
17100 $rm conftest*
17101
17102fi
17103echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17104echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17105
17106if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17107 case $lt_prog_compiler_pic_GCJ in
17108 "" | " "*) ;;
17109 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17110 esac
17111else
17112 lt_prog_compiler_pic_GCJ=
17113 lt_prog_compiler_can_build_shared_GCJ=no
17114fi
17115
17116fi
17117case $host_os in
17118 # For platforms which do not support PIC, -DPIC is meaningless:
17119 *djgpp*)
17120 lt_prog_compiler_pic_GCJ=
17121 ;;
17122 *)
17123 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17124 ;;
17125esac
17126
17127#
17128# Check to make sure the static flag actually works.
17129#
17130wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17131echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17132echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17133if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135else
17136 lt_prog_compiler_static_works_GCJ=no
17137 save_LDFLAGS="$LDFLAGS"
17138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17139 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17141 # The linker can only warn and ignore the option if not recognized
17142 # So say no if there are warnings
17143 if test -s conftest.err; then
17144 # Append any errors to the config.log.
17145 cat conftest.err 1>&5
17146 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17148 if diff conftest.exp conftest.er2 >/dev/null; then
17149 lt_prog_compiler_static_works_GCJ=yes
17150 fi
17151 else
17152 lt_prog_compiler_static_works_GCJ=yes
17153 fi
17154 fi
17155 $rm conftest*
17156 LDFLAGS="$save_LDFLAGS"
17157
17158fi
17159echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17160echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17161
17162if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17163 :
17164else
17165 lt_prog_compiler_static_GCJ=
17166fi
17167
17168
17169echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17170echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17171if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17173else
17174 lt_cv_prog_compiler_c_o_GCJ=no
17175 $rm -r conftest 2>/dev/null
17176 mkdir conftest
17177 cd conftest
17178 mkdir out
17179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17180
17181 lt_compiler_flag="-o out/conftest2.$ac_objext"
17182 # Insert the option either (1) after the last *FLAGS variable, or
17183 # (2) before a word containing "conftest.", or (3) at the end.
17184 # Note that $ac_compile itself does not contain backslashes and begins
17185 # with a dollar sign (not a hyphen), so the echo should work correctly.
17186 lt_compile=`echo "$ac_compile" | $SED \
17187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17189 -e 's:$: $lt_compiler_flag:'`
17190 (eval echo "\"\$as_me:17190: $lt_compile\"" >&5)
17191 (eval "$lt_compile" 2>out/conftest.err)
17192 ac_status=$?
17193 cat out/conftest.err >&5
17194 echo "$as_me:17194: \$? = $ac_status" >&5
17195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17196 then
17197 # The compiler can only warn and ignore the option if not recognized
17198 # So say no if there are warnings
17199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17202 lt_cv_prog_compiler_c_o_GCJ=yes
17203 fi
17204 fi
17205 chmod u+w . 2>&5
17206 $rm conftest*
17207 # SGI C++ compiler will create directory out/ii_files/ for
17208 # template instantiation
17209 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17210 $rm out/* && rmdir out
17211 cd ..
17212 rmdir conftest
17213 $rm conftest*
17214
17215fi
17216echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17217echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17218
17219
17220hard_links="nottested"
17221if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17222 # do not overwrite the value of need_locks provided by the user
17223 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17224echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17225 hard_links=yes
17226 $rm conftest*
17227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17228 touch conftest.a
17229 ln conftest.a conftest.b 2>&5 || hard_links=no
17230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17231 echo "$as_me:$LINENO: result: $hard_links" >&5
17232echo "${ECHO_T}$hard_links" >&6
17233 if test "$hard_links" = no; then
17234 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17235echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17236 need_locks=warn
17237 fi
17238else
17239 need_locks=no
17240fi
17241
17242echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17243echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17244
17245 runpath_var=
17246 allow_undefined_flag_GCJ=
17247 enable_shared_with_static_runtimes_GCJ=no
17248 archive_cmds_GCJ=
17249 archive_expsym_cmds_GCJ=
17250 old_archive_From_new_cmds_GCJ=
17251 old_archive_from_expsyms_cmds_GCJ=
17252 export_dynamic_flag_spec_GCJ=
17253 whole_archive_flag_spec_GCJ=
17254 thread_safe_flag_spec_GCJ=
17255 hardcode_libdir_flag_spec_GCJ=
17256 hardcode_libdir_flag_spec_ld_GCJ=
17257 hardcode_libdir_separator_GCJ=
17258 hardcode_direct_GCJ=no
17259 hardcode_minus_L_GCJ=no
17260 hardcode_shlibpath_var_GCJ=unsupported
17261 link_all_deplibs_GCJ=unknown
17262 hardcode_automatic_GCJ=no
17263 module_cmds_GCJ=
17264 module_expsym_cmds_GCJ=
17265 always_export_symbols_GCJ=no
17266 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17267 # include_expsyms should be a list of space-separated symbols to be *always*
17268 # included in the symbol list
17269 include_expsyms_GCJ=
17270 # exclude_expsyms can be an extended regexp of symbols to exclude
17271 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17272 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17273 # as well as any symbol that contains `d'.
17274 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17275 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17276 # platforms (ab)use it in PIC code, but their linkers get confused if
17277 # the symbol is explicitly referenced. Since portable code cannot
17278 # rely on this symbol name, it's probably fine to never include it in
17279 # preloaded symbol tables.
17280 extract_expsyms_cmds=
17281 # Just being paranoid about ensuring that cc_basename is set.
17282 for cc_temp in $compiler""; do
17283 case $cc_temp in
17284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17286 \-*) ;;
17287 *) break;;
17288 esac
17289done
17290cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17291
17292 case $host_os in
17293 cygwin* | mingw* | pw32*)
17294 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17295 # When not using gcc, we currently assume that we are using
17296 # Microsoft Visual C++.
17297 if test "$GCC" != yes; then
17298 with_gnu_ld=no
17299 fi
17300 ;;
17301 interix*)
17302 # we just hope/assume this is gcc and not c89 (= MSVC++)
17303 with_gnu_ld=yes
17304 ;;
17305 openbsd*)
17306 with_gnu_ld=no
17307 ;;
17308 esac
17309
17310 ld_shlibs_GCJ=yes
17311 if test "$with_gnu_ld" = yes; then
17312 # If archive_cmds runs LD, not CC, wlarc should be empty
17313 wlarc='${wl}'
17314
17315 # Set some defaults for GNU ld with shared library support. These
17316 # are reset later if shared libraries are not supported. Putting them
17317 # here allows them to be overridden if necessary.
17318 runpath_var=LD_RUN_PATH
17319 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17320 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17321 # ancient GNU ld didn't support --whole-archive et. al.
17322 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17323 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17324 else
17325 whole_archive_flag_spec_GCJ=
17326 fi
17327 supports_anon_versioning=no
17328 case `$LD -v 2>/dev/null` in
17329 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17332 *\ 2.11.*) ;; # other 2.11 versions
17333 *) supports_anon_versioning=yes ;;
17334 esac
17335
17336 # See if GNU ld supports shared libraries.
17337 case $host_os in
17338 aix3* | aix4* | aix5*)
17339 # On AIX/PPC, the GNU linker is very broken
17340 if test "$host_cpu" != ia64; then
17341 ld_shlibs_GCJ=no
17342 cat <<EOF 1>&2
17343
17344*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17345*** to be unable to reliably create shared libraries on AIX.
17346*** Therefore, libtool is disabling shared libraries support. If you
17347*** really care for shared libraries, you may want to modify your PATH
17348*** so that a non-GNU linker is found, and then restart.
17349
17350EOF
17351 fi
17352 ;;
17353
17354 amigaos*)
17355 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)'
17356 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17357 hardcode_minus_L_GCJ=yes
17358
17359 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17360 # that the semantics of dynamic libraries on AmigaOS, at least up
17361 # to version 4, is to share data among multiple programs linked
17362 # with the same dynamic library. Since this doesn't match the
17363 # behavior of shared libraries on other platforms, we can't use
17364 # them.
17365 ld_shlibs_GCJ=no
17366 ;;
17367
17368 beos*)
17369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17370 allow_undefined_flag_GCJ=unsupported
17371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17372 # support --undefined. This deserves some investigation. FIXME
17373 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374 else
17375 ld_shlibs_GCJ=no
17376 fi
17377 ;;
17378
17379 cygwin* | mingw* | pw32*)
17380 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17381 # as there is no search path for DLLs.
17382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17383 allow_undefined_flag_GCJ=unsupported
17384 always_export_symbols_GCJ=no
17385 enable_shared_with_static_runtimes_GCJ=yes
17386 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17387
17388 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17389 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17390 # If the export-symbols file already is a .def file (1st line
17391 # is EXPORTS), use it as is; otherwise, prepend...
17392 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17393 cp $export_symbols $output_objdir/$soname.def;
17394 else
17395 echo EXPORTS > $output_objdir/$soname.def;
17396 cat $export_symbols >> $output_objdir/$soname.def;
17397 fi~
17398 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17399 else
17400 ld_shlibs_GCJ=no
17401 fi
17402 ;;
17403
17404 interix3*)
17405 hardcode_direct_GCJ=no
17406 hardcode_shlibpath_var_GCJ=no
17407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17408 export_dynamic_flag_spec_GCJ='${wl}-E'
17409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17410 # Instead, shared libraries are loaded at an image base (0x10000000 by
17411 # default) and relocated if they conflict, which is a slow very memory
17412 # consuming and fragmenting process. To avoid this, we pick a random,
17413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17415 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'
17416 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'
17417 ;;
17418
17419 linux*)
17420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17421 tmp_addflag=
17422 case $cc_basename,$host_cpu in
17423 pgcc*) # Portland Group C compiler
17424 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'
17425 tmp_addflag=' $pic_flag'
17426 ;;
17427 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17428 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'
17429 tmp_addflag=' $pic_flag -Mnomain' ;;
17430 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17431 tmp_addflag=' -i_dynamic' ;;
17432 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17433 tmp_addflag=' -i_dynamic -nofor_main' ;;
17434 ifc* | ifort*) # Intel Fortran compiler
17435 tmp_addflag=' -nofor_main' ;;
17436 esac
17437 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17438
17439 if test $supports_anon_versioning = yes; then
17440 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17441 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17442 $echo "local: *; };" >> $output_objdir/$libname.ver~
17443 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17444 fi
17445 else
17446 ld_shlibs_GCJ=no
17447 fi
17448 ;;
17449
17450 netbsd*)
17451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17452 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17453 wlarc=
17454 else
17455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17456 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17457 fi
17458 ;;
17459
17460 solaris*)
17461 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17462 ld_shlibs_GCJ=no
17463 cat <<EOF 1>&2
17464
17465*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17466*** create shared libraries on Solaris systems. Therefore, libtool
17467*** is disabling shared libraries support. We urge you to upgrade GNU
17468*** binutils to release 2.9.1 or newer. Another option is to modify
17469*** your PATH or compiler configuration so that the native linker is
17470*** used, and then restart.
17471
17472EOF
17473 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17474 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17475 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17476 else
17477 ld_shlibs_GCJ=no
17478 fi
17479 ;;
17480
17481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17482 case `$LD -v 2>&1` in
17483 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17484 ld_shlibs_GCJ=no
17485 cat <<_LT_EOF 1>&2
17486
17487*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17488*** reliably create shared libraries on SCO systems. Therefore, libtool
17489*** is disabling shared libraries support. We urge you to upgrade GNU
17490*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17491*** your PATH or compiler configuration so that the native linker is
17492*** used, and then restart.
17493
17494_LT_EOF
17495 ;;
17496 *)
17497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17498 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17501 else
17502 ld_shlibs_GCJ=no
17503 fi
17504 ;;
17505 esac
17506 ;;
17507
17508 sunos4*)
17509 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17510 wlarc=
17511 hardcode_direct_GCJ=yes
17512 hardcode_shlibpath_var_GCJ=no
17513 ;;
17514
17515 *)
17516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17518 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17519 else
17520 ld_shlibs_GCJ=no
17521 fi
17522 ;;
17523 esac
17524
17525 if test "$ld_shlibs_GCJ" = no; then
17526 runpath_var=
17527 hardcode_libdir_flag_spec_GCJ=
17528 export_dynamic_flag_spec_GCJ=
17529 whole_archive_flag_spec_GCJ=
17530 fi
17531 else
17532 # PORTME fill in a description of your system's linker (not GNU ld)
17533 case $host_os in
17534 aix3*)
17535 allow_undefined_flag_GCJ=unsupported
17536 always_export_symbols_GCJ=yes
17537 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'
17538 # Note: this linker hardcodes the directories in LIBPATH if there
17539 # are no directories specified by -L.
17540 hardcode_minus_L_GCJ=yes
17541 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17542 # Neither direct hardcoding nor static linking is supported with a
17543 # broken collect2.
17544 hardcode_direct_GCJ=unsupported
17545 fi
17546 ;;
17547
17548 aix4* | aix5*)
17549 if test "$host_cpu" = ia64; then
17550 # On IA64, the linker does run time linking by default, so we don't
17551 # have to do anything special.
17552 aix_use_runtimelinking=no
17553 exp_sym_flag='-Bexport'
17554 no_entry_flag=""
17555 else
17556 # If we're using GNU nm, then we don't want the "-C" option.
17557 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17558 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17559 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'
17560 else
17561 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'
17562 fi
17563 aix_use_runtimelinking=no
17564
17565 # Test if we are trying to use run time linking or normal
17566 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17567 # need to do runtime linking.
17568 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17569 for ld_flag in $LDFLAGS; do
17570 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17571 aix_use_runtimelinking=yes
17572 break
17573 fi
17574 done
17575 ;;
17576 esac
17577
17578 exp_sym_flag='-bexport'
17579 no_entry_flag='-bnoentry'
17580 fi
17581
17582 # When large executables or shared objects are built, AIX ld can
17583 # have problems creating the table of contents. If linking a library
17584 # or program results in "error TOC overflow" add -mminimal-toc to
17585 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17586 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17587
17588 archive_cmds_GCJ=''
17589 hardcode_direct_GCJ=yes
17590 hardcode_libdir_separator_GCJ=':'
17591 link_all_deplibs_GCJ=yes
17592
17593 if test "$GCC" = yes; then
17594 case $host_os in aix4.[012]|aix4.[012].*)
17595 # We only want to do this on AIX 4.2 and lower, the check
17596 # below for broken collect2 doesn't work under 4.3+
17597 collect2name=`${CC} -print-prog-name=collect2`
17598 if test -f "$collect2name" && \
17599 strings "$collect2name" | grep resolve_lib_name >/dev/null
17600 then
17601 # We have reworked collect2
17602 hardcode_direct_GCJ=yes
17603 else
17604 # We have old collect2
17605 hardcode_direct_GCJ=unsupported
17606 # It fails to find uninstalled libraries when the uninstalled
17607 # path is not listed in the libpath. Setting hardcode_minus_L
17608 # to unsupported forces relinking
17609 hardcode_minus_L_GCJ=yes
17610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611 hardcode_libdir_separator_GCJ=
17612 fi
17613 ;;
17614 esac
17615 shared_flag='-shared'
17616 if test "$aix_use_runtimelinking" = yes; then
17617 shared_flag="$shared_flag "'${wl}-G'
17618 fi
17619 else
17620 # not using gcc
17621 if test "$host_cpu" = ia64; then
17622 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17623 # chokes on -Wl,-G. The following line is correct:
17624 shared_flag='-G'
17625 else
17626 if test "$aix_use_runtimelinking" = yes; then
17627 shared_flag='${wl}-G'
17628 else
17629 shared_flag='${wl}-bM:SRE'
17630 fi
17631 fi
17632 fi
17633
17634 # It seems that -bexpall does not export symbols beginning with
17635 # underscore (_), so it is better to generate a list of symbols to export.
17636 always_export_symbols_GCJ=yes
17637 if test "$aix_use_runtimelinking" = yes; then
17638 # Warning - without using the other runtime loading flags (-brtl),
17639 # -berok will link without error, but may produce a broken library.
17640 allow_undefined_flag_GCJ='-berok'
17641 # Determine the default libpath from the value encoded in an empty executable.
17642 cat >conftest.$ac_ext <<_ACEOF
17643/* confdefs.h. */
17644_ACEOF
17645cat confdefs.h >>conftest.$ac_ext
17646cat >>conftest.$ac_ext <<_ACEOF
17647/* end confdefs.h. */
17648
17649int
17650main ()
17651{
17652
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext conftest$ac_exeext
17658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17659 (eval $ac_link) 2>conftest.er1
17660 ac_status=$?
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -z "$ac_c_werror_flag"
17667 || test ! -s conftest.err'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest$ac_exeext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679
17680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17681}'`
17682# Check for a 64-bit object if we didn't find anything.
17683if 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; }
17684}'`; fi
17685else
17686 echo "$as_me: failed program was:" >&5
17687sed 's/^/| /' conftest.$ac_ext >&5
17688
17689fi
17690rm -f conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17692if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17693
17694 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17695 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"
17696 else
17697 if test "$host_cpu" = ia64; then
17698 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17699 allow_undefined_flag_GCJ="-z nodefs"
17700 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"
17701 else
17702 # Determine the default libpath from the value encoded in an empty executable.
17703 cat >conftest.$ac_ext <<_ACEOF
17704/* confdefs.h. */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
17708/* end confdefs.h. */
17709
17710int
17711main ()
17712{
17713
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext conftest$ac_exeext
17719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740
17741aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17742}'`
17743# Check for a 64-bit object if we didn't find anything.
17744if 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; }
17745}'`; fi
17746else
17747 echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
17750fi
17751rm -f conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17753if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17754
17755 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17756 # Warning - without using the other run time loading flags,
17757 # -berok will link without error, but may produce a broken library.
17758 no_undefined_flag_GCJ=' ${wl}-bernotok'
17759 allow_undefined_flag_GCJ=' ${wl}-berok'
17760 # Exported symbols can be pulled into shared objects from archives
17761 whole_archive_flag_spec_GCJ='$convenience'
17762 archive_cmds_need_lc_GCJ=yes
17763 # This is similar to how AIX traditionally builds its shared libraries.
17764 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'
17765 fi
17766 fi
17767 ;;
17768
17769 amigaos*)
17770 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)'
17771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17772 hardcode_minus_L_GCJ=yes
17773 # see comment about different semantics on the GNU ld section
17774 ld_shlibs_GCJ=no
17775 ;;
17776
17777 bsdi[45]*)
17778 export_dynamic_flag_spec_GCJ=-rdynamic
17779 ;;
17780
17781 cygwin* | mingw* | pw32*)
17782 # When not using gcc, we currently assume that we are using
17783 # Microsoft Visual C++.
17784 # hardcode_libdir_flag_spec is actually meaningless, as there is
17785 # no search path for DLLs.
17786 hardcode_libdir_flag_spec_GCJ=' '
17787 allow_undefined_flag_GCJ=unsupported
17788 # Tell ltmain to make .lib files, not .a files.
17789 libext=lib
17790 # Tell ltmain to make .dll files, not .so files.
17791 shrext_cmds=".dll"
17792 # FIXME: Setting linknames here is a bad hack.
17793 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17794 # The linker will automatically build a .lib file if we build a DLL.
17795 old_archive_From_new_cmds_GCJ='true'
17796 # FIXME: Should let the user specify the lib program.
17797 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17798 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17799 enable_shared_with_static_runtimes_GCJ=yes
17800 ;;
17801
17802 darwin* | rhapsody*)
17803 case $host_os in
17804 rhapsody* | darwin1.[012])
17805 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17806 ;;
17807 *) # Darwin 1.3 on
17808 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17809 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17810 else
17811 case ${MACOSX_DEPLOYMENT_TARGET} in
17812 10.[012])
17813 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17814 ;;
17815 10.*)
17816 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17817 ;;
17818 esac
17819 fi
17820 ;;
17821 esac
17822 archive_cmds_need_lc_GCJ=no
17823 hardcode_direct_GCJ=no
17824 hardcode_automatic_GCJ=yes
17825 hardcode_shlibpath_var_GCJ=unsupported
17826 whole_archive_flag_spec_GCJ=''
17827 link_all_deplibs_GCJ=yes
17828 if test "$GCC" = yes ; then
17829 output_verbose_link_cmd='echo'
17830 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17831 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17832 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17833 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}'
17834 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}'
17835 else
17836 case $cc_basename in
17837 xlc*)
17838 output_verbose_link_cmd='echo'
17839 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17840 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17842 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}'
17843 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}'
17844 ;;
17845 *)
17846 ld_shlibs_GCJ=no
17847 ;;
17848 esac
17849 fi
17850 ;;
17851
17852 dgux*)
17853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17855 hardcode_shlibpath_var_GCJ=no
17856 ;;
17857
17858 freebsd1*)
17859 ld_shlibs_GCJ=no
17860 ;;
17861
17862 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17863 # support. Future versions do this automatically, but an explicit c++rt0.o
17864 # does not break anything, and helps significantly (at the cost of a little
17865 # extra space).
17866 freebsd2.2*)
17867 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17868 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17869 hardcode_direct_GCJ=yes
17870 hardcode_shlibpath_var_GCJ=no
17871 ;;
17872
17873 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17874 freebsd2*)
17875 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17876 hardcode_direct_GCJ=yes
17877 hardcode_minus_L_GCJ=yes
17878 hardcode_shlibpath_var_GCJ=no
17879 ;;
17880
17881 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17882 freebsd* | kfreebsd*-gnu | dragonfly*)
17883 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17885 hardcode_direct_GCJ=yes
17886 hardcode_shlibpath_var_GCJ=no
17887 ;;
17888
17889 hpux9*)
17890 if test "$GCC" = yes; then
17891 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'
17892 else
17893 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'
17894 fi
17895 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17896 hardcode_libdir_separator_GCJ=:
17897 hardcode_direct_GCJ=yes
17898
17899 # hardcode_minus_L: Not really in the search PATH,
17900 # but as the default location of the library.
17901 hardcode_minus_L_GCJ=yes
17902 export_dynamic_flag_spec_GCJ='${wl}-E'
17903 ;;
17904
17905 hpux10*)
17906 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17907 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17908 else
17909 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17910 fi
17911 if test "$with_gnu_ld" = no; then
17912 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17913 hardcode_libdir_separator_GCJ=:
17914
17915 hardcode_direct_GCJ=yes
17916 export_dynamic_flag_spec_GCJ='${wl}-E'
17917
17918 # hardcode_minus_L: Not really in the search PATH,
17919 # but as the default location of the library.
17920 hardcode_minus_L_GCJ=yes
17921 fi
17922 ;;
17923
17924 hpux11*)
17925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17926 case $host_cpu in
17927 hppa*64*)
17928 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17929 ;;
17930 ia64*)
17931 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17932 ;;
17933 *)
17934 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17935 ;;
17936 esac
17937 else
17938 case $host_cpu in
17939 hppa*64*)
17940 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17941 ;;
17942 ia64*)
17943 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17944 ;;
17945 *)
17946 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17947 ;;
17948 esac
17949 fi
17950 if test "$with_gnu_ld" = no; then
17951 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17952 hardcode_libdir_separator_GCJ=:
17953
17954 case $host_cpu in
17955 hppa*64*|ia64*)
17956 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17957 hardcode_direct_GCJ=no
17958 hardcode_shlibpath_var_GCJ=no
17959 ;;
17960 *)
17961 hardcode_direct_GCJ=yes
17962 export_dynamic_flag_spec_GCJ='${wl}-E'
17963
17964 # hardcode_minus_L: Not really in the search PATH,
17965 # but as the default location of the library.
17966 hardcode_minus_L_GCJ=yes
17967 ;;
17968 esac
17969 fi
17970 ;;
17971
17972 irix5* | irix6* | nonstopux*)
17973 if test "$GCC" = yes; then
17974 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'
17975 else
17976 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'
17977 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17978 fi
17979 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17980 hardcode_libdir_separator_GCJ=:
17981 link_all_deplibs_GCJ=yes
17982 ;;
17983
17984 netbsd*)
17985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17986 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17987 else
17988 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17989 fi
17990 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17991 hardcode_direct_GCJ=yes
17992 hardcode_shlibpath_var_GCJ=no
17993 ;;
17994
17995 newsos6)
17996 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17997 hardcode_direct_GCJ=yes
17998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17999 hardcode_libdir_separator_GCJ=:
18000 hardcode_shlibpath_var_GCJ=no
18001 ;;
18002
18003 openbsd*)
18004 hardcode_direct_GCJ=yes
18005 hardcode_shlibpath_var_GCJ=no
18006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18007 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18008 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18010 export_dynamic_flag_spec_GCJ='${wl}-E'
18011 else
18012 case $host_os in
18013 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18014 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18015 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18016 ;;
18017 *)
18018 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18020 ;;
18021 esac
18022 fi
18023 ;;
18024
18025 os2*)
18026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18027 hardcode_minus_L_GCJ=yes
18028 allow_undefined_flag_GCJ=unsupported
18029 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'
18030 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18031 ;;
18032
18033 osf3*)
18034 if test "$GCC" = yes; then
18035 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18036 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'
18037 else
18038 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18039 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'
18040 fi
18041 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18042 hardcode_libdir_separator_GCJ=:
18043 ;;
18044
18045 osf4* | osf5*) # as osf3* with the addition of -msym flag
18046 if test "$GCC" = yes; then
18047 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18048 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'
18049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18050 else
18051 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18052 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'
18053 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~
18054 $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'
18055
18056 # Both c and cxx compiler support -rpath directly
18057 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18058 fi
18059 hardcode_libdir_separator_GCJ=:
18060 ;;
18061
18062 solaris*)
18063 no_undefined_flag_GCJ=' -z text'
18064 if test "$GCC" = yes; then
18065 wlarc='${wl}'
18066 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18067 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18068 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18069 else
18070 wlarc=''
18071 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18073 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18074 fi
18075 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18076 hardcode_shlibpath_var_GCJ=no
18077 case $host_os in
18078 solaris2.[0-5] | solaris2.[0-5].*) ;;
18079 *)
18080 # The compiler driver will combine linker options so we
18081 # cannot just pass the convience library names through
18082 # without $wl, iff we do not link with $LD.
18083 # Luckily, gcc supports the same syntax we need for Sun Studio.
18084 # Supported since Solaris 2.6 (maybe 2.5.1?)
18085 case $wlarc in
18086 '')
18087 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18088 *)
18089 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' ;;
18090 esac ;;
18091 esac
18092 link_all_deplibs_GCJ=yes
18093 ;;
18094
18095 sunos4*)
18096 if test "x$host_vendor" = xsequent; then
18097 # Use $CC to link under sequent, because it throws in some extra .o
18098 # files that make .init and .fini sections work.
18099 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18100 else
18101 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18102 fi
18103 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18104 hardcode_direct_GCJ=yes
18105 hardcode_minus_L_GCJ=yes
18106 hardcode_shlibpath_var_GCJ=no
18107 ;;
18108
18109 sysv4)
18110 case $host_vendor in
18111 sni)
18112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18113 hardcode_direct_GCJ=yes # is this really true???
18114 ;;
18115 siemens)
18116 ## LD is ld it makes a PLAMLIB
18117 ## CC just makes a GrossModule.
18118 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18119 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18120 hardcode_direct_GCJ=no
18121 ;;
18122 motorola)
18123 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18124 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18125 ;;
18126 esac
18127 runpath_var='LD_RUN_PATH'
18128 hardcode_shlibpath_var_GCJ=no
18129 ;;
18130
18131 sysv4.3*)
18132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18133 hardcode_shlibpath_var_GCJ=no
18134 export_dynamic_flag_spec_GCJ='-Bexport'
18135 ;;
18136
18137 sysv4*MP*)
18138 if test -d /usr/nec; then
18139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18140 hardcode_shlibpath_var_GCJ=no
18141 runpath_var=LD_RUN_PATH
18142 hardcode_runpath_var=yes
18143 ld_shlibs_GCJ=yes
18144 fi
18145 ;;
18146
18147 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18148 no_undefined_flag_GCJ='${wl}-z,text'
18149 archive_cmds_need_lc_GCJ=no
18150 hardcode_shlibpath_var_GCJ=no
18151 runpath_var='LD_RUN_PATH'
18152
18153 if test "$GCC" = yes; then
18154 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18155 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18156 else
18157 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18158 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18159 fi
18160 ;;
18161
18162 sysv5* | sco3.2v5* | sco5v6*)
18163 # Note: We can NOT use -z defs as we might desire, because we do not
18164 # link with -lc, and that would cause any symbols used from libc to
18165 # always be unresolved, which means just about no library would
18166 # ever link correctly. If we're not using GNU ld we use -z text
18167 # though, which does catch some bad symbols but isn't as heavy-handed
18168 # as -z defs.
18169 no_undefined_flag_GCJ='${wl}-z,text'
18170 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18171 archive_cmds_need_lc_GCJ=no
18172 hardcode_shlibpath_var_GCJ=no
18173 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18174 hardcode_libdir_separator_GCJ=':'
18175 link_all_deplibs_GCJ=yes
18176 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18177 runpath_var='LD_RUN_PATH'
18178
18179 if test "$GCC" = yes; then
18180 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18181 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18182 else
18183 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18184 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18185 fi
18186 ;;
18187
18188 uts4*)
18189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18190 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18191 hardcode_shlibpath_var_GCJ=no
18192 ;;
18193
18194 *)
18195 ld_shlibs_GCJ=no
18196 ;;
18197 esac
18198 fi
18199
18200echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18201echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18202test "$ld_shlibs_GCJ" = no && can_build_shared=no
18203
18204#
18205# Do we need to explicitly link libc?
18206#
18207case "x$archive_cmds_need_lc_GCJ" in
18208x|xyes)
18209 # Assume -lc should be added
18210 archive_cmds_need_lc_GCJ=yes
18211
18212 if test "$enable_shared" = yes && test "$GCC" = yes; then
18213 case $archive_cmds_GCJ in
18214 *'~'*)
18215 # FIXME: we may have to deal with multi-command sequences.
18216 ;;
18217 '$CC '*)
18218 # Test whether the compiler implicitly links with -lc since on some
18219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18220 # to ld, don't add -lc before -lgcc.
18221 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18222echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18223 $rm conftest*
18224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18225
18226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18227 (eval $ac_compile) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } 2>conftest.err; then
18231 soname=conftest
18232 lib=conftest
18233 libobjs=conftest.$ac_objext
18234 deplibs=
18235 wl=$lt_prog_compiler_wl_GCJ
18236 pic_flag=$lt_prog_compiler_pic_GCJ
18237 compiler_flags=-v
18238 linker_flags=-v
18239 verstring=
18240 output_objdir=.
18241 libname=conftest
18242 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18243 allow_undefined_flag_GCJ=
18244 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18245 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }
18249 then
18250 archive_cmds_need_lc_GCJ=no
18251 else
18252 archive_cmds_need_lc_GCJ=yes
18253 fi
18254 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18255 else
18256 cat conftest.err 1>&5
18257 fi
18258 $rm conftest*
18259 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18260echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18261 ;;
18262 esac
18263 fi
18264 ;;
18265esac
18266
18267echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18268echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18269library_names_spec=
18270libname_spec='lib$name'
18271soname_spec=
18272shrext_cmds=".so"
18273postinstall_cmds=
18274postuninstall_cmds=
18275finish_cmds=
18276finish_eval=
18277shlibpath_var=
18278shlibpath_overrides_runpath=unknown
18279version_type=none
18280dynamic_linker="$host_os ld.so"
18281sys_lib_dlsearch_path_spec="/lib /usr/lib"
18282if test "$GCC" = yes; then
18283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18285 # if the path contains ";" then we assume it to be the separator
18286 # otherwise default to the standard path separator (i.e. ":") - it is
18287 # assumed that no part of a normal pathname contains ";" but that should
18288 # okay in the real world where ";" in dirpaths is itself problematic.
18289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18290 else
18291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18292 fi
18293else
18294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18295fi
18296need_lib_prefix=unknown
18297hardcode_into_libs=no
18298
18299# when you set need_version to no, make sure it does not cause -set_version
18300# flags to be left without arguments
18301need_version=unknown
18302
18303case $host_os in
18304aix3*)
18305 version_type=linux
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18307 shlibpath_var=LIBPATH
18308
18309 # AIX 3 has no versioning support, so we append a major version to the name.
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 ;;
18312
18313aix4* | aix5*)
18314 version_type=linux
18315 need_lib_prefix=no
18316 need_version=no
18317 hardcode_into_libs=yes
18318 if test "$host_cpu" = ia64; then
18319 # AIX 5 supports IA64
18320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18321 shlibpath_var=LD_LIBRARY_PATH
18322 else
18323 # With GCC up to 2.95.x, collect2 would create an import file
18324 # for dependence libraries. The import file would start with
18325 # the line `#! .'. This would cause the generated library to
18326 # depend on `.', always an invalid library. This was fixed in
18327 # development snapshots of GCC prior to 3.0.
18328 case $host_os in
18329 aix4 | aix4.[01] | aix4.[01].*)
18330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18331 echo ' yes '
18332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18333 :
18334 else
18335 can_build_shared=no
18336 fi
18337 ;;
18338 esac
18339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18340 # soname into executable. Probably we can add versioning support to
18341 # collect2, so additional links can be useful in future.
18342 if test "$aix_use_runtimelinking" = yes; then
18343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18344 # instead of lib<name>.a to let people know that these are not
18345 # typical AIX shared libraries.
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347 else
18348 # We preserve .a as extension for shared libraries through AIX4.2
18349 # and later when we are not doing run time linking.
18350 library_names_spec='${libname}${release}.a $libname.a'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 fi
18353 shlibpath_var=LIBPATH
18354 fi
18355 ;;
18356
18357amigaos*)
18358 library_names_spec='$libname.ixlibrary $libname.a'
18359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18360 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'
18361 ;;
18362
18363beos*)
18364 library_names_spec='${libname}${shared_ext}'
18365 dynamic_linker="$host_os ld.so"
18366 shlibpath_var=LIBRARY_PATH
18367 ;;
18368
18369bsdi[45]*)
18370 version_type=linux
18371 need_version=no
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18375 shlibpath_var=LD_LIBRARY_PATH
18376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18378 # the default ld.so.conf also contains /usr/contrib/lib and
18379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18380 # libtool to hard-code these into programs
18381 ;;
18382
18383cygwin* | mingw* | pw32*)
18384 version_type=windows
18385 shrext_cmds=".dll"
18386 need_version=no
18387 need_lib_prefix=no
18388
18389 case $GCC,$host_os in
18390 yes,cygwin* | yes,mingw* | yes,pw32*)
18391 library_names_spec='$libname.dll.a'
18392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18393 postinstall_cmds='base_file=`basename \${file}`~
18394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18395 dldir=$destdir/`dirname \$dlpath`~
18396 test -d \$dldir || mkdir -p \$dldir~
18397 $install_prog $dir/$dlname \$dldir/$dlname~
18398 chmod a+x \$dldir/$dlname'
18399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18400 dlpath=$dir/\$dldll~
18401 $rm \$dlpath'
18402 shlibpath_overrides_runpath=yes
18403
18404 case $host_os in
18405 cygwin*)
18406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18409 ;;
18410 mingw*)
18411 # MinGW DLLs use traditional 'lib' prefix
18412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18415 # It is most probably a Windows format PATH printed by
18416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18417 # path with ; separators, and with drive letters. We can handle the
18418 # drive letters (cygwin fileutils understands them), so leave them,
18419 # especially as we might pass files found there to a mingw objdump,
18420 # which wouldn't understand a cygwinified path. Ahh.
18421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18422 else
18423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18424 fi
18425 ;;
18426 pw32*)
18427 # pw32 DLLs use 'pw' prefix rather than 'lib'
18428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18429 ;;
18430 esac
18431 ;;
18432
18433 *)
18434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18435 ;;
18436 esac
18437 dynamic_linker='Win32 ld.exe'
18438 # FIXME: first we should search . and the directory the executable is in
18439 shlibpath_var=PATH
18440 ;;
18441
18442darwin* | rhapsody*)
18443 dynamic_linker="$host_os dyld"
18444 version_type=darwin
18445 need_lib_prefix=no
18446 need_version=no
18447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18448 soname_spec='${libname}${release}${major}$shared_ext'
18449 shlibpath_overrides_runpath=yes
18450 shlibpath_var=DYLD_LIBRARY_PATH
18451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18453 if test "$GCC" = yes; then
18454 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"`
18455 else
18456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18457 fi
18458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18459 ;;
18460
18461dgux*)
18462 version_type=linux
18463 need_lib_prefix=no
18464 need_version=no
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 shlibpath_var=LD_LIBRARY_PATH
18468 ;;
18469
18470freebsd1*)
18471 dynamic_linker=no
18472 ;;
18473
18474kfreebsd*-gnu)
18475 version_type=linux
18476 need_lib_prefix=no
18477 need_version=no
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18479 soname_spec='${libname}${release}${shared_ext}$major'
18480 shlibpath_var=LD_LIBRARY_PATH
18481 shlibpath_overrides_runpath=no
18482 hardcode_into_libs=yes
18483 dynamic_linker='GNU ld.so'
18484 ;;
18485
18486freebsd* | dragonfly*)
18487 # DragonFly does not have aout. When/if they implement a new
18488 # versioning mechanism, adjust this.
18489 if test -x /usr/bin/objformat; then
18490 objformat=`/usr/bin/objformat`
18491 else
18492 case $host_os in
18493 freebsd[123]*) objformat=aout ;;
18494 *) objformat=elf ;;
18495 esac
18496 fi
18497 version_type=freebsd-$objformat
18498 case $version_type in
18499 freebsd-elf*)
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18501 need_version=no
18502 need_lib_prefix=no
18503 ;;
18504 freebsd-*)
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18506 need_version=yes
18507 ;;
18508 esac
18509 shlibpath_var=LD_LIBRARY_PATH
18510 case $host_os in
18511 freebsd2*)
18512 shlibpath_overrides_runpath=yes
18513 ;;
18514 freebsd3.[01]* | freebsdelf3.[01]*)
18515 shlibpath_overrides_runpath=yes
18516 hardcode_into_libs=yes
18517 ;;
18518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18520 shlibpath_overrides_runpath=no
18521 hardcode_into_libs=yes
18522 ;;
18523 freebsd*) # from 4.6 on
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18526 ;;
18527 esac
18528 ;;
18529
18530gnu*)
18531 version_type=linux
18532 need_lib_prefix=no
18533 need_version=no
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18535 soname_spec='${libname}${release}${shared_ext}$major'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 hardcode_into_libs=yes
18538 ;;
18539
18540hpux9* | hpux10* | hpux11*)
18541 # Give a soname corresponding to the major version so that dld.sl refuses to
18542 # link against other versions.
18543 version_type=sunos
18544 need_lib_prefix=no
18545 need_version=no
18546 case $host_cpu in
18547 ia64*)
18548 shrext_cmds='.so'
18549 hardcode_into_libs=yes
18550 dynamic_linker="$host_os dld.so"
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554 soname_spec='${libname}${release}${shared_ext}$major'
18555 if test "X$HPUX_IA64_MODE" = X32; then
18556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18557 else
18558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18559 fi
18560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18561 ;;
18562 hppa*64*)
18563 shrext_cmds='.sl'
18564 hardcode_into_libs=yes
18565 dynamic_linker="$host_os dld.sl"
18566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18572 ;;
18573 *)
18574 shrext_cmds='.sl'
18575 dynamic_linker="$host_os dld.sl"
18576 shlibpath_var=SHLIB_PATH
18577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18579 soname_spec='${libname}${release}${shared_ext}$major'
18580 ;;
18581 esac
18582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18583 postinstall_cmds='chmod 555 $lib'
18584 ;;
18585
18586interix3*)
18587 version_type=linux
18588 need_lib_prefix=no
18589 need_version=no
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=no
18595 hardcode_into_libs=yes
18596 ;;
18597
18598irix5* | irix6* | nonstopux*)
18599 case $host_os in
18600 nonstopux*) version_type=nonstopux ;;
18601 *)
18602 if test "$lt_cv_prog_gnu_ld" = yes; then
18603 version_type=linux
18604 else
18605 version_type=irix
18606 fi ;;
18607 esac
18608 need_lib_prefix=no
18609 need_version=no
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18612 case $host_os in
18613 irix5* | nonstopux*)
18614 libsuff= shlibsuff=
18615 ;;
18616 *)
18617 case $LD in # libtool.m4 will add one of these switches to LD
18618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18619 libsuff= shlibsuff= libmagic=32-bit;;
18620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18621 libsuff=32 shlibsuff=N32 libmagic=N32;;
18622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18624 *) libsuff= shlibsuff= libmagic=never-match;;
18625 esac
18626 ;;
18627 esac
18628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18629 shlibpath_overrides_runpath=no
18630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18632 hardcode_into_libs=yes
18633 ;;
18634
18635# No shared lib support for Linux oldld, aout, or coff.
18636linux*oldld* | linux*aout* | linux*coff*)
18637 dynamic_linker=no
18638 ;;
18639
18640# This must be Linux ELF.
18641linux*)
18642 version_type=linux
18643 need_lib_prefix=no
18644 need_version=no
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646 soname_spec='${libname}${release}${shared_ext}$major'
18647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18648 shlibpath_var=LD_LIBRARY_PATH
18649 shlibpath_overrides_runpath=no
18650 # This implies no fast_install, which is unacceptable.
18651 # Some rework will be needed to allow for fast_install
18652 # before this can be enabled.
18653 hardcode_into_libs=yes
18654
18655 # find out which ABI we are using
18656 libsuff=
18657 case "$host_cpu" in
18658 x86_64*|s390x*|powerpc64*)
18659 echo '#line 18659 "configure"' > conftest.$ac_ext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; then
18665 case `/usr/bin/file conftest.$ac_objext` in
18666 *64-bit*)
18667 libsuff=64
18668 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18669 ;;
18670 esac
18671 fi
18672 rm -rf conftest*
18673 ;;
18674 esac
18675
18676 # Append ld.so.conf contents to the search path
18677 if test -f /etc/ld.so.conf; then
18678 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18679 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18680 fi
18681
18682 # We used to test for /lib/ld.so.1 and disable shared libraries on
18683 # powerpc, because MkLinux only supported shared libraries with the
18684 # GNU dynamic linker. Since this was broken with cross compilers,
18685 # most powerpc-linux boxes support dynamic linking these days and
18686 # people can always --disable-shared, the test was removed, and we
18687 # assume the GNU/Linux dynamic linker is in use.
18688 dynamic_linker='GNU/Linux ld.so'
18689 ;;
18690
18691knetbsd*-gnu)
18692 version_type=linux
18693 need_lib_prefix=no
18694 need_version=no
18695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18696 soname_spec='${libname}${release}${shared_ext}$major'
18697 shlibpath_var=LD_LIBRARY_PATH
18698 shlibpath_overrides_runpath=no
18699 hardcode_into_libs=yes
18700 dynamic_linker='GNU ld.so'
18701 ;;
18702
18703netbsd*)
18704 version_type=sunos
18705 need_lib_prefix=no
18706 need_version=no
18707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18710 dynamic_linker='NetBSD (a.out) ld.so'
18711 else
18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18713 soname_spec='${libname}${release}${shared_ext}$major'
18714 dynamic_linker='NetBSD ld.elf_so'
18715 fi
18716 shlibpath_var=LD_LIBRARY_PATH
18717 shlibpath_overrides_runpath=yes
18718 hardcode_into_libs=yes
18719 ;;
18720
18721newsos6)
18722 version_type=linux
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724 shlibpath_var=LD_LIBRARY_PATH
18725 shlibpath_overrides_runpath=yes
18726 ;;
18727
18728nto-qnx*)
18729 version_type=linux
18730 need_lib_prefix=no
18731 need_version=no
18732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18733 soname_spec='${libname}${release}${shared_ext}$major'
18734 shlibpath_var=LD_LIBRARY_PATH
18735 shlibpath_overrides_runpath=yes
18736 ;;
18737
18738openbsd*)
18739 version_type=sunos
18740 sys_lib_dlsearch_path_spec="/usr/lib"
18741 need_lib_prefix=no
18742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18743 case $host_os in
18744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18745 *) need_version=no ;;
18746 esac
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18749 shlibpath_var=LD_LIBRARY_PATH
18750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18751 case $host_os in
18752 openbsd2.[89] | openbsd2.[89].*)
18753 shlibpath_overrides_runpath=no
18754 ;;
18755 *)
18756 shlibpath_overrides_runpath=yes
18757 ;;
18758 esac
18759 else
18760 shlibpath_overrides_runpath=yes
18761 fi
18762 ;;
18763
18764os2*)
18765 libname_spec='$name'
18766 shrext_cmds=".dll"
18767 need_lib_prefix=no
18768 library_names_spec='$libname${shared_ext} $libname.a'
18769 dynamic_linker='OS/2 ld.exe'
18770 shlibpath_var=LIBPATH
18771 ;;
18772
18773osf3* | osf4* | osf5*)
18774 version_type=osf
18775 need_lib_prefix=no
18776 need_version=no
18777 soname_spec='${libname}${release}${shared_ext}$major'
18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779 shlibpath_var=LD_LIBRARY_PATH
18780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18782 ;;
18783
18784solaris*)
18785 version_type=linux
18786 need_lib_prefix=no
18787 need_version=no
18788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789 soname_spec='${libname}${release}${shared_ext}$major'
18790 shlibpath_var=LD_LIBRARY_PATH
18791 shlibpath_overrides_runpath=yes
18792 hardcode_into_libs=yes
18793 # ldd complains unless libraries are executable
18794 postinstall_cmds='chmod +x $lib'
18795 ;;
18796
18797sunos4*)
18798 version_type=sunos
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18801 shlibpath_var=LD_LIBRARY_PATH
18802 shlibpath_overrides_runpath=yes
18803 if test "$with_gnu_ld" = yes; then
18804 need_lib_prefix=no
18805 fi
18806 need_version=yes
18807 ;;
18808
18809sysv4 | sysv4.3*)
18810 version_type=linux
18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812 soname_spec='${libname}${release}${shared_ext}$major'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 case $host_vendor in
18815 sni)
18816 shlibpath_overrides_runpath=no
18817 need_lib_prefix=no
18818 export_dynamic_flag_spec='${wl}-Blargedynsym'
18819 runpath_var=LD_RUN_PATH
18820 ;;
18821 siemens)
18822 need_lib_prefix=no
18823 ;;
18824 motorola)
18825 need_lib_prefix=no
18826 need_version=no
18827 shlibpath_overrides_runpath=no
18828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18829 ;;
18830 esac
18831 ;;
18832
18833sysv4*MP*)
18834 if test -d /usr/nec ;then
18835 version_type=linux
18836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18837 soname_spec='$libname${shared_ext}.$major'
18838 shlibpath_var=LD_LIBRARY_PATH
18839 fi
18840 ;;
18841
18842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18843 version_type=freebsd-elf
18844 need_lib_prefix=no
18845 need_version=no
18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847 soname_spec='${libname}${release}${shared_ext}$major'
18848 shlibpath_var=LD_LIBRARY_PATH
18849 hardcode_into_libs=yes
18850 if test "$with_gnu_ld" = yes; then
18851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18852 shlibpath_overrides_runpath=no
18853 else
18854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18855 shlibpath_overrides_runpath=yes
18856 case $host_os in
18857 sco3.2v5*)
18858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18859 ;;
18860 esac
18861 fi
18862 sys_lib_dlsearch_path_spec='/usr/lib'
18863 ;;
18864
18865uts4*)
18866 version_type=linux
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 shlibpath_var=LD_LIBRARY_PATH
18870 ;;
18871
18872*)
18873 dynamic_linker=no
18874 ;;
18875esac
18876echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18877echo "${ECHO_T}$dynamic_linker" >&6
18878test "$dynamic_linker" = no && can_build_shared=no
18879
18880variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18881if test "$GCC" = yes; then
18882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18883fi
18884
18885echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18886echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18887hardcode_action_GCJ=
18888if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18889 test -n "$runpath_var_GCJ" || \
18890 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18891
18892 # We can hardcode non-existant directories.
18893 if test "$hardcode_direct_GCJ" != no &&
18894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18895 # have to relink, otherwise we might link with an installed library
18896 # when we should be linking with a yet-to-be-installed one
18897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18898 test "$hardcode_minus_L_GCJ" != no; then
18899 # Linking always hardcodes the temporary library directory.
18900 hardcode_action_GCJ=relink
18901 else
18902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18903 hardcode_action_GCJ=immediate
18904 fi
18905else
18906 # We cannot hardcode anything, or else we can only hardcode existing
18907 # directories.
18908 hardcode_action_GCJ=unsupported
18909fi
18910echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18911echo "${ECHO_T}$hardcode_action_GCJ" >&6
18912
18913if test "$hardcode_action_GCJ" = relink; then
18914 # Fast installation is not supported
18915 enable_fast_install=no
18916elif test "$shlibpath_overrides_runpath" = yes ||
18917 test "$enable_shared" = no; then
18918 # Fast installation is not necessary
18919 enable_fast_install=needless
18920fi
18921
18922
18923# The else clause should only fire when bootstrapping the
18924# libtool distribution, otherwise you forgot to ship ltmain.sh
18925# with your package, and you will get complaints that there are
18926# no rules to generate ltmain.sh.
18927if test -f "$ltmain"; then
18928 # See if we are running on zsh, and set the options which allow our commands through
18929 # without removal of \ escapes.
18930 if test -n "${ZSH_VERSION+set}" ; then
18931 setopt NO_GLOB_SUBST
18932 fi
18933 # Now quote all the things that may contain metacharacters while being
18934 # careful not to overquote the AC_SUBSTed values. We take copies of the
18935 # variables and quote the copies for generation of the libtool script.
18936 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18937 SED SHELL STRIP \
18938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18940 deplibs_check_method reload_flag reload_cmds need_locks \
18941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18942 lt_cv_sys_global_symbol_to_c_name_address \
18943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18944 old_postinstall_cmds old_postuninstall_cmds \
18945 compiler_GCJ \
18946 CC_GCJ \
18947 LD_GCJ \
18948 lt_prog_compiler_wl_GCJ \
18949 lt_prog_compiler_pic_GCJ \
18950 lt_prog_compiler_static_GCJ \
18951 lt_prog_compiler_no_builtin_flag_GCJ \
18952 export_dynamic_flag_spec_GCJ \
18953 thread_safe_flag_spec_GCJ \
18954 whole_archive_flag_spec_GCJ \
18955 enable_shared_with_static_runtimes_GCJ \
18956 old_archive_cmds_GCJ \
18957 old_archive_from_new_cmds_GCJ \
18958 predep_objects_GCJ \
18959 postdep_objects_GCJ \
18960 predeps_GCJ \
18961 postdeps_GCJ \
18962 compiler_lib_search_path_GCJ \
18963 archive_cmds_GCJ \
18964 archive_expsym_cmds_GCJ \
18965 postinstall_cmds_GCJ \
18966 postuninstall_cmds_GCJ \
18967 old_archive_from_expsyms_cmds_GCJ \
18968 allow_undefined_flag_GCJ \
18969 no_undefined_flag_GCJ \
18970 export_symbols_cmds_GCJ \
18971 hardcode_libdir_flag_spec_GCJ \
18972 hardcode_libdir_flag_spec_ld_GCJ \
18973 hardcode_libdir_separator_GCJ \
18974 hardcode_automatic_GCJ \
18975 module_cmds_GCJ \
18976 module_expsym_cmds_GCJ \
18977 lt_cv_prog_compiler_c_o_GCJ \
18978 exclude_expsyms_GCJ \
18979 include_expsyms_GCJ; do
18980
18981 case $var in
18982 old_archive_cmds_GCJ | \
18983 old_archive_from_new_cmds_GCJ | \
18984 archive_cmds_GCJ | \
18985 archive_expsym_cmds_GCJ | \
18986 module_cmds_GCJ | \
18987 module_expsym_cmds_GCJ | \
18988 old_archive_from_expsyms_cmds_GCJ | \
18989 export_symbols_cmds_GCJ | \
18990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18991 postinstall_cmds | postuninstall_cmds | \
18992 old_postinstall_cmds | old_postuninstall_cmds | \
18993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18994 # Double-quote double-evaled strings.
18995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18996 ;;
18997 *)
18998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18999 ;;
19000 esac
19001 done
19002
19003 case $lt_echo in
19004 *'\$0 --fallback-echo"')
19005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19006 ;;
19007 esac
19008
19009cfgfile="$ofile"
19010
19011 cat <<__EOF__ >> "$cfgfile"
19012# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19013
19014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19015
19016# Shell to use when invoking shell scripts.
19017SHELL=$lt_SHELL
19018
19019# Whether or not to build shared libraries.
19020build_libtool_libs=$enable_shared
19021
19022# Whether or not to build static libraries.
19023build_old_libs=$enable_static
19024
19025# Whether or not to add -lc for building shared libraries.
19026build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19027
19028# Whether or not to disallow shared libs when runtime libs are static
19029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19030
19031# Whether or not to optimize for fast installation.
19032fast_install=$enable_fast_install
19033
19034# The host system.
19035host_alias=$host_alias
19036host=$host
19037host_os=$host_os
19038
19039# The build system.
19040build_alias=$build_alias
19041build=$build
19042build_os=$build_os
19043
19044# An echo program that does not interpret backslashes.
19045echo=$lt_echo
19046
19047# The archiver.
19048AR=$lt_AR
19049AR_FLAGS=$lt_AR_FLAGS
19050
19051# A C compiler.
19052LTCC=$lt_LTCC
19053
19054# LTCC compiler flags.
19055LTCFLAGS=$lt_LTCFLAGS
19056
19057# A language-specific compiler.
19058CC=$lt_compiler_GCJ
19059
19060# Is the compiler the GNU C compiler?
19061with_gcc=$GCC_GCJ
19062
19063gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19064gcc_ver=\`gcc -dumpversion\`
19065
19066# An ERE matcher.
19067EGREP=$lt_EGREP
19068
19069# The linker used to build libraries.
19070LD=$lt_LD_GCJ
19071
19072# Whether we need hard or soft links.
19073LN_S=$lt_LN_S
19074
19075# A BSD-compatible nm program.
19076NM=$lt_NM
19077
19078# A symbol stripping program
19079STRIP=$lt_STRIP
19080
19081# Used to examine libraries when file_magic_cmd begins "file"
19082MAGIC_CMD=$MAGIC_CMD
19083
19084# Used on cygwin: DLL creation program.
19085DLLTOOL="$DLLTOOL"
19086
19087# Used on cygwin: object dumper.
19088OBJDUMP="$OBJDUMP"
19089
19090# Used on cygwin: assembler.
19091AS="$AS"
19092
19093# The name of the directory that contains temporary libtool files.
19094objdir=$objdir
19095
19096# How to create reloadable object files.
19097reload_flag=$lt_reload_flag
19098reload_cmds=$lt_reload_cmds
19099
19100# How to pass a linker flag through the compiler.
19101wl=$lt_lt_prog_compiler_wl_GCJ
19102
19103# Object file suffix (normally "o").
19104objext="$ac_objext"
19105
19106# Old archive suffix (normally "a").
19107libext="$libext"
19108
19109# Shared library suffix (normally ".so").
19110shrext_cmds='$shrext_cmds'
19111
19112# Executable file suffix (normally "").
19113exeext="$exeext"
19114
19115# Additional compiler flags for building library objects.
19116pic_flag=$lt_lt_prog_compiler_pic_GCJ
19117pic_mode=$pic_mode
19118
19119# What is the maximum length of a command?
19120max_cmd_len=$lt_cv_sys_max_cmd_len
19121
19122# Does compiler simultaneously support -c and -o options?
19123compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19124
19125# Must we lock files when doing compilation?
19126need_locks=$lt_need_locks
19127
19128# Do we need the lib prefix for modules?
19129need_lib_prefix=$need_lib_prefix
19130
19131# Do we need a version for libraries?
19132need_version=$need_version
19133
19134# Whether dlopen is supported.
19135dlopen_support=$enable_dlopen
19136
19137# Whether dlopen of programs is supported.
19138dlopen_self=$enable_dlopen_self
19139
19140# Whether dlopen of statically linked programs is supported.
19141dlopen_self_static=$enable_dlopen_self_static
19142
19143# Compiler flag to prevent dynamic linking.
19144link_static_flag=$lt_lt_prog_compiler_static_GCJ
19145
19146# Compiler flag to turn off builtin functions.
19147no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19148
19149# Compiler flag to allow reflexive dlopens.
19150export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19151
19152# Compiler flag to generate shared objects directly from archives.
19153whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19154
19155# Compiler flag to generate thread-safe objects.
19156thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19157
19158# Library versioning type.
19159version_type=$version_type
19160
19161# Format of library name prefix.
19162libname_spec=$lt_libname_spec
19163
19164# List of archive names. First name is the real one, the rest are links.
19165# The last name is the one that the linker finds with -lNAME.
19166library_names_spec=$lt_library_names_spec
19167
19168# The coded name of the library, if different from the real name.
19169soname_spec=$lt_soname_spec
19170
19171# Commands used to build and install an old-style archive.
19172RANLIB=$lt_RANLIB
19173old_archive_cmds=$lt_old_archive_cmds_GCJ
19174old_postinstall_cmds=$lt_old_postinstall_cmds
19175old_postuninstall_cmds=$lt_old_postuninstall_cmds
19176
19177# Create an old-style archive from a shared archive.
19178old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19179
19180# Create a temporary old-style archive to link instead of a shared archive.
19181old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19182
19183# Commands used to build and install a shared archive.
19184archive_cmds=$lt_archive_cmds_GCJ
19185archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19186postinstall_cmds=$lt_postinstall_cmds
19187postuninstall_cmds=$lt_postuninstall_cmds
19188
19189# Commands used to build a loadable module (assumed same as above if empty)
19190module_cmds=$lt_module_cmds_GCJ
19191module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19192
19193# Commands to strip libraries.
19194old_striplib=$lt_old_striplib
19195striplib=$lt_striplib
19196
19197# Dependencies to place before the objects being linked to create a
19198# shared library.
19199predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19200
19201# Dependencies to place after the objects being linked to create a
19202# shared library.
19203postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19204
19205# Dependencies to place before the objects being linked to create a
19206# shared library.
19207predeps=$lt_predeps_GCJ
19208
19209# Dependencies to place after the objects being linked to create a
19210# shared library.
19211postdeps=$lt_postdeps_GCJ
19212
19213# The library search path used internally by the compiler when linking
19214# a shared library.
19215compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19216
19217# Method to check whether dependent libraries are shared objects.
19218deplibs_check_method=$lt_deplibs_check_method
19219
19220# Command to use when deplibs_check_method == file_magic.
19221file_magic_cmd=$lt_file_magic_cmd
19222
19223# Flag that allows shared libraries with undefined symbols to be built.
19224allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19225
19226# Flag that forces no undefined symbols.
19227no_undefined_flag=$lt_no_undefined_flag_GCJ
19228
19229# Commands used to finish a libtool library installation in a directory.
19230finish_cmds=$lt_finish_cmds
19231
19232# Same as above, but a single script fragment to be evaled but not shown.
19233finish_eval=$lt_finish_eval
19234
19235# Take the output of nm and produce a listing of raw symbols and C names.
19236global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19237
19238# Transform the output of nm in a proper C declaration
19239global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19240
19241# Transform the output of nm in a C name address pair
19242global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19243
19244# This is the shared library runtime path variable.
19245runpath_var=$runpath_var
19246
19247# This is the shared library path variable.
19248shlibpath_var=$shlibpath_var
19249
19250# Is shlibpath searched before the hard-coded library search path?
19251shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19252
19253# How to hardcode a shared library path into an executable.
19254hardcode_action=$hardcode_action_GCJ
19255
19256# Whether we should hardcode library paths into libraries.
19257hardcode_into_libs=$hardcode_into_libs
19258
19259# Flag to hardcode \$libdir into a binary during linking.
19260# This must work even if \$libdir does not exist.
19261hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19262
19263# If ld is used when linking, flag to hardcode \$libdir into
19264# a binary during linking. This must work even if \$libdir does
19265# not exist.
19266hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19267
19268# Whether we need a single -rpath flag with a separated argument.
19269hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19270
19271# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19272# resulting binary.
19273hardcode_direct=$hardcode_direct_GCJ
19274
19275# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19276# resulting binary.
19277hardcode_minus_L=$hardcode_minus_L_GCJ
19278
19279# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19280# the resulting binary.
19281hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19282
19283# Set to yes if building a shared library automatically hardcodes DIR into the library
19284# and all subsequent libraries and executables linked against it.
19285hardcode_automatic=$hardcode_automatic_GCJ
19286
19287# Variables whose values should be saved in libtool wrapper scripts and
19288# restored at relink time.
19289variables_saved_for_relink="$variables_saved_for_relink"
19290
19291# Whether libtool must link a program against all its dependency libraries.
19292link_all_deplibs=$link_all_deplibs_GCJ
19293
19294# Compile-time system search path for libraries
19295sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19296
19297# Run-time system search path for libraries
19298sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19299
19300# Fix the shell variable \$srcfile for the compiler.
19301fix_srcfile_path="$fix_srcfile_path_GCJ"
19302
19303# Set to yes if exported symbols are required.
19304always_export_symbols=$always_export_symbols_GCJ
19305
19306# The commands to list exported symbols.
19307export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19308
19309# The commands to extract the exported symbol list from a shared archive.
19310extract_expsyms_cmds=$lt_extract_expsyms_cmds
19311
19312# Symbols that should not be listed in the preloaded symbols.
19313exclude_expsyms=$lt_exclude_expsyms_GCJ
19314
19315# Symbols that must always be exported.
19316include_expsyms=$lt_include_expsyms_GCJ
19317
19318# ### END LIBTOOL TAG CONFIG: $tagname
19319
19320__EOF__
19321
19322
19323else
19324 # If there is no Makefile yet, we rely on a make rule to execute
19325 # `config.status --recheck' to rerun these tests and create the
19326 # libtool script then.
19327 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19328 if test -f "$ltmain_in"; then
19329 test -f Makefile && make "$ltmain"
19330 fi
19331fi
19332
19333
19334ac_ext=c
19335ac_cpp='$CPP $CPPFLAGS'
19336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338ac_compiler_gnu=$ac_cv_c_compiler_gnu
19339
19340CC="$lt_save_CC"
19341
19342 else
19343 tagname=""
19344 fi
19345 ;;
19346
19347 RC)
19348
19349
19350
19351# Source file extension for RC test sources.
19352ac_ext=rc
19353
19354# Object file extension for compiled RC test sources.
19355objext=o
19356objext_RC=$objext
19357
19358# Code to be used in simple compile tests
19359lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19360
19361# Code to be used in simple link tests
19362lt_simple_link_test_code="$lt_simple_compile_test_code"
19363
19364# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19365
19366# If no C compiler was specified, use CC.
19367LTCC=${LTCC-"$CC"}
19368
19369# If no C compiler flags were specified, use CFLAGS.
19370LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19371
19372# Allow CC to be a program name with arguments.
19373compiler=$CC
19374
19375
19376# save warnings/boilerplate of simple test code
19377ac_outfile=conftest.$ac_objext
19378printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19379eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19380_lt_compiler_boilerplate=`cat conftest.err`
19381$rm conftest*
19382
19383ac_outfile=conftest.$ac_objext
19384printf "$lt_simple_link_test_code" >conftest.$ac_ext
19385eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19386_lt_linker_boilerplate=`cat conftest.err`
19387$rm conftest*
19388
19389
19390# Allow CC to be a program name with arguments.
19391lt_save_CC="$CC"
19392CC=${RC-"windres"}
19393compiler=$CC
19394compiler_RC=$CC
19395for cc_temp in $compiler""; do
19396 case $cc_temp in
19397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19399 \-*) ;;
19400 *) break;;
19401 esac
19402done
19403cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19404
19405lt_cv_prog_compiler_c_o_RC=yes
19406
19407# The else clause should only fire when bootstrapping the
19408# libtool distribution, otherwise you forgot to ship ltmain.sh
19409# with your package, and you will get complaints that there are
19410# no rules to generate ltmain.sh.
19411if test -f "$ltmain"; then
19412 # See if we are running on zsh, and set the options which allow our commands through
19413 # without removal of \ escapes.
19414 if test -n "${ZSH_VERSION+set}" ; then
19415 setopt NO_GLOB_SUBST
19416 fi
19417 # Now quote all the things that may contain metacharacters while being
19418 # careful not to overquote the AC_SUBSTed values. We take copies of the
19419 # variables and quote the copies for generation of the libtool script.
19420 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19421 SED SHELL STRIP \
19422 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19423 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19424 deplibs_check_method reload_flag reload_cmds need_locks \
19425 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19426 lt_cv_sys_global_symbol_to_c_name_address \
19427 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19428 old_postinstall_cmds old_postuninstall_cmds \
19429 compiler_RC \
19430 CC_RC \
19431 LD_RC \
19432 lt_prog_compiler_wl_RC \
19433 lt_prog_compiler_pic_RC \
19434 lt_prog_compiler_static_RC \
19435 lt_prog_compiler_no_builtin_flag_RC \
19436 export_dynamic_flag_spec_RC \
19437 thread_safe_flag_spec_RC \
19438 whole_archive_flag_spec_RC \
19439 enable_shared_with_static_runtimes_RC \
19440 old_archive_cmds_RC \
19441 old_archive_from_new_cmds_RC \
19442 predep_objects_RC \
19443 postdep_objects_RC \
19444 predeps_RC \
19445 postdeps_RC \
19446 compiler_lib_search_path_RC \
19447 archive_cmds_RC \
19448 archive_expsym_cmds_RC \
19449 postinstall_cmds_RC \
19450 postuninstall_cmds_RC \
19451 old_archive_from_expsyms_cmds_RC \
19452 allow_undefined_flag_RC \
19453 no_undefined_flag_RC \
19454 export_symbols_cmds_RC \
19455 hardcode_libdir_flag_spec_RC \
19456 hardcode_libdir_flag_spec_ld_RC \
19457 hardcode_libdir_separator_RC \
19458 hardcode_automatic_RC \
19459 module_cmds_RC \
19460 module_expsym_cmds_RC \
19461 lt_cv_prog_compiler_c_o_RC \
19462 exclude_expsyms_RC \
19463 include_expsyms_RC; do
19464
19465 case $var in
19466 old_archive_cmds_RC | \
19467 old_archive_from_new_cmds_RC | \
19468 archive_cmds_RC | \
19469 archive_expsym_cmds_RC | \
19470 module_cmds_RC | \
19471 module_expsym_cmds_RC | \
19472 old_archive_from_expsyms_cmds_RC | \
19473 export_symbols_cmds_RC | \
19474 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19475 postinstall_cmds | postuninstall_cmds | \
19476 old_postinstall_cmds | old_postuninstall_cmds | \
19477 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19478 # Double-quote double-evaled strings.
19479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19480 ;;
19481 *)
19482 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19483 ;;
19484 esac
19485 done
19486
19487 case $lt_echo in
19488 *'\$0 --fallback-echo"')
19489 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19490 ;;
19491 esac
19492
19493cfgfile="$ofile"
19494
19495 cat <<__EOF__ >> "$cfgfile"
19496# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19497
19498# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19499
19500# Shell to use when invoking shell scripts.
19501SHELL=$lt_SHELL
19502
19503# Whether or not to build shared libraries.
19504build_libtool_libs=$enable_shared
19505
19506# Whether or not to build static libraries.
19507build_old_libs=$enable_static
19508
19509# Whether or not to add -lc for building shared libraries.
19510build_libtool_need_lc=$archive_cmds_need_lc_RC
19511
19512# Whether or not to disallow shared libs when runtime libs are static
19513allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19514
19515# Whether or not to optimize for fast installation.
19516fast_install=$enable_fast_install
19517
19518# The host system.
19519host_alias=$host_alias
19520host=$host
19521host_os=$host_os
19522
19523# The build system.
19524build_alias=$build_alias
19525build=$build
19526build_os=$build_os
19527
19528# An echo program that does not interpret backslashes.
19529echo=$lt_echo
19530
19531# The archiver.
19532AR=$lt_AR
19533AR_FLAGS=$lt_AR_FLAGS
19534
19535# A C compiler.
19536LTCC=$lt_LTCC
19537
19538# LTCC compiler flags.
19539LTCFLAGS=$lt_LTCFLAGS
19540
19541# A language-specific compiler.
19542CC=$lt_compiler_RC
19543
19544# Is the compiler the GNU C compiler?
19545with_gcc=$GCC_RC
19546
19547gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19548gcc_ver=\`gcc -dumpversion\`
19549
19550# An ERE matcher.
19551EGREP=$lt_EGREP
19552
19553# The linker used to build libraries.
19554LD=$lt_LD_RC
19555
19556# Whether we need hard or soft links.
19557LN_S=$lt_LN_S
19558
19559# A BSD-compatible nm program.
19560NM=$lt_NM
19561
19562# A symbol stripping program
19563STRIP=$lt_STRIP
19564
19565# Used to examine libraries when file_magic_cmd begins "file"
19566MAGIC_CMD=$MAGIC_CMD
19567
19568# Used on cygwin: DLL creation program.
19569DLLTOOL="$DLLTOOL"
19570
19571# Used on cygwin: object dumper.
19572OBJDUMP="$OBJDUMP"
19573
19574# Used on cygwin: assembler.
19575AS="$AS"
19576
19577# The name of the directory that contains temporary libtool files.
19578objdir=$objdir
19579
19580# How to create reloadable object files.
19581reload_flag=$lt_reload_flag
19582reload_cmds=$lt_reload_cmds
19583
19584# How to pass a linker flag through the compiler.
19585wl=$lt_lt_prog_compiler_wl_RC
19586
19587# Object file suffix (normally "o").
19588objext="$ac_objext"
19589
19590# Old archive suffix (normally "a").
19591libext="$libext"
19592
19593# Shared library suffix (normally ".so").
19594shrext_cmds='$shrext_cmds'
19595
19596# Executable file suffix (normally "").
19597exeext="$exeext"
19598
19599# Additional compiler flags for building library objects.
19600pic_flag=$lt_lt_prog_compiler_pic_RC
19601pic_mode=$pic_mode
19602
19603# What is the maximum length of a command?
19604max_cmd_len=$lt_cv_sys_max_cmd_len
19605
19606# Does compiler simultaneously support -c and -o options?
19607compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19608
19609# Must we lock files when doing compilation?
19610need_locks=$lt_need_locks
19611
19612# Do we need the lib prefix for modules?
19613need_lib_prefix=$need_lib_prefix
19614
19615# Do we need a version for libraries?
19616need_version=$need_version
19617
19618# Whether dlopen is supported.
19619dlopen_support=$enable_dlopen
19620
19621# Whether dlopen of programs is supported.
19622dlopen_self=$enable_dlopen_self
19623
19624# Whether dlopen of statically linked programs is supported.
19625dlopen_self_static=$enable_dlopen_self_static
19626
19627# Compiler flag to prevent dynamic linking.
19628link_static_flag=$lt_lt_prog_compiler_static_RC
19629
19630# Compiler flag to turn off builtin functions.
19631no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19632
19633# Compiler flag to allow reflexive dlopens.
19634export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19635
19636# Compiler flag to generate shared objects directly from archives.
19637whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19638
19639# Compiler flag to generate thread-safe objects.
19640thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19641
19642# Library versioning type.
19643version_type=$version_type
19644
19645# Format of library name prefix.
19646libname_spec=$lt_libname_spec
19647
19648# List of archive names. First name is the real one, the rest are links.
19649# The last name is the one that the linker finds with -lNAME.
19650library_names_spec=$lt_library_names_spec
19651
19652# The coded name of the library, if different from the real name.
19653soname_spec=$lt_soname_spec
19654
19655# Commands used to build and install an old-style archive.
19656RANLIB=$lt_RANLIB
19657old_archive_cmds=$lt_old_archive_cmds_RC
19658old_postinstall_cmds=$lt_old_postinstall_cmds
19659old_postuninstall_cmds=$lt_old_postuninstall_cmds
19660
19661# Create an old-style archive from a shared archive.
19662old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19663
19664# Create a temporary old-style archive to link instead of a shared archive.
19665old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19666
19667# Commands used to build and install a shared archive.
19668archive_cmds=$lt_archive_cmds_RC
19669archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19670postinstall_cmds=$lt_postinstall_cmds
19671postuninstall_cmds=$lt_postuninstall_cmds
19672
19673# Commands used to build a loadable module (assumed same as above if empty)
19674module_cmds=$lt_module_cmds_RC
19675module_expsym_cmds=$lt_module_expsym_cmds_RC
19676
19677# Commands to strip libraries.
19678old_striplib=$lt_old_striplib
19679striplib=$lt_striplib
19680
19681# Dependencies to place before the objects being linked to create a
19682# shared library.
19683predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19684
19685# Dependencies to place after the objects being linked to create a
19686# shared library.
19687postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19688
19689# Dependencies to place before the objects being linked to create a
19690# shared library.
19691predeps=$lt_predeps_RC
19692
19693# Dependencies to place after the objects being linked to create a
19694# shared library.
19695postdeps=$lt_postdeps_RC
19696
19697# The library search path used internally by the compiler when linking
19698# a shared library.
19699compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19700
19701# Method to check whether dependent libraries are shared objects.
19702deplibs_check_method=$lt_deplibs_check_method
19703
19704# Command to use when deplibs_check_method == file_magic.
19705file_magic_cmd=$lt_file_magic_cmd
19706
19707# Flag that allows shared libraries with undefined symbols to be built.
19708allow_undefined_flag=$lt_allow_undefined_flag_RC
19709
19710# Flag that forces no undefined symbols.
19711no_undefined_flag=$lt_no_undefined_flag_RC
19712
19713# Commands used to finish a libtool library installation in a directory.
19714finish_cmds=$lt_finish_cmds
19715
19716# Same as above, but a single script fragment to be evaled but not shown.
19717finish_eval=$lt_finish_eval
19718
19719# Take the output of nm and produce a listing of raw symbols and C names.
19720global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19721
19722# Transform the output of nm in a proper C declaration
19723global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19724
19725# Transform the output of nm in a C name address pair
19726global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19727
19728# This is the shared library runtime path variable.
19729runpath_var=$runpath_var
19730
19731# This is the shared library path variable.
19732shlibpath_var=$shlibpath_var
19733
19734# Is shlibpath searched before the hard-coded library search path?
19735shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19736
19737# How to hardcode a shared library path into an executable.
19738hardcode_action=$hardcode_action_RC
19739
19740# Whether we should hardcode library paths into libraries.
19741hardcode_into_libs=$hardcode_into_libs
19742
19743# Flag to hardcode \$libdir into a binary during linking.
19744# This must work even if \$libdir does not exist.
19745hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19746
19747# If ld is used when linking, flag to hardcode \$libdir into
19748# a binary during linking. This must work even if \$libdir does
19749# not exist.
19750hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19751
19752# Whether we need a single -rpath flag with a separated argument.
19753hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19754
19755# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19756# resulting binary.
19757hardcode_direct=$hardcode_direct_RC
19758
19759# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19760# resulting binary.
19761hardcode_minus_L=$hardcode_minus_L_RC
19762
19763# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19764# the resulting binary.
19765hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19766
19767# Set to yes if building a shared library automatically hardcodes DIR into the library
19768# and all subsequent libraries and executables linked against it.
19769hardcode_automatic=$hardcode_automatic_RC
19770
19771# Variables whose values should be saved in libtool wrapper scripts and
19772# restored at relink time.
19773variables_saved_for_relink="$variables_saved_for_relink"
19774
19775# Whether libtool must link a program against all its dependency libraries.
19776link_all_deplibs=$link_all_deplibs_RC
19777
19778# Compile-time system search path for libraries
19779sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19780
19781# Run-time system search path for libraries
19782sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19783
19784# Fix the shell variable \$srcfile for the compiler.
19785fix_srcfile_path="$fix_srcfile_path_RC"
19786
19787# Set to yes if exported symbols are required.
19788always_export_symbols=$always_export_symbols_RC
19789
19790# The commands to list exported symbols.
19791export_symbols_cmds=$lt_export_symbols_cmds_RC
19792
19793# The commands to extract the exported symbol list from a shared archive.
19794extract_expsyms_cmds=$lt_extract_expsyms_cmds
19795
19796# Symbols that should not be listed in the preloaded symbols.
19797exclude_expsyms=$lt_exclude_expsyms_RC
19798
19799# Symbols that must always be exported.
19800include_expsyms=$lt_include_expsyms_RC
19801
19802# ### END LIBTOOL TAG CONFIG: $tagname
19803
19804__EOF__
19805
19806
19807else
19808 # If there is no Makefile yet, we rely on a make rule to execute
19809 # `config.status --recheck' to rerun these tests and create the
19810 # libtool script then.
19811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19812 if test -f "$ltmain_in"; then
19813 test -f Makefile && make "$ltmain"
19814 fi
19815fi
19816
19817
19818ac_ext=c
19819ac_cpp='$CPP $CPPFLAGS'
19820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19822ac_compiler_gnu=$ac_cv_c_compiler_gnu
19823
19824CC="$lt_save_CC"
19825
19826 ;;
19827
19828 *)
19829 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19830echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19831 { (exit 1); exit 1; }; }
19832 ;;
19833 esac
19834
19835 # Append the new tag name to the list of available tags.
19836 if test -n "$tagname" ; then
19837 available_tags="$available_tags $tagname"
19838 fi
19839 fi
19840 done
19841 IFS="$lt_save_ifs"
19842
19843 # Now substitute the updated list of available tags.
19844 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19845 mv "${ofile}T" "$ofile"
19846 chmod +x "$ofile"
19847 else
19848 rm -f "${ofile}T"
19849 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19850echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19851 { (exit 1); exit 1; }; }
19852 fi
19853fi
19854
19855
19856
19857# This can be used to rebuild libtool when needed
19858LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19859
19860# Always use our own libtool.
19861LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19862
19863# Prevent multiple expansion
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885if test "$PS" = "ps"
19886then
19887 { { echo "$as_me:$LINENO: error: Cannot find pathname to ps" >&5
19888echo "$as_me: error: Cannot find pathname to ps" >&2;}
19889 { (exit 1); exit 1; }; }
19890fi
19891
19892if test x$GXX = xyes
19893then
19894 CFLAGS="-Wall $CFLAGS"
19895fi
19896
19897CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
19898
19899
19900echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19901echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19902if test "${ac_cv_header_sys_wait_h+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904else
19905 cat >conftest.$ac_ext <<_ACEOF
19906/* confdefs.h. */
19907_ACEOF
19908cat confdefs.h >>conftest.$ac_ext
19909cat >>conftest.$ac_ext <<_ACEOF
19910/* end confdefs.h. */
19911#include <sys/types.h>
19912#include <sys/wait.h>
19913#ifndef WEXITSTATUS
19914# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19915#endif
19916#ifndef WIFEXITED
19917# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19918#endif
19919
19920int
19921main ()
19922{
19923 int s;
19924 wait (&s);
19925 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19926 ;
19927 return 0;
19928}
19929_ACEOF
19930rm -f conftest.$ac_objext
19931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19932 (eval $ac_compile) 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag"
19940 || 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_objext'
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 ac_cv_header_sys_wait_h=yes
19953else
19954 echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957ac_cv_header_sys_wait_h=no
19958fi
19959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19960fi
19961echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19962echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19963if test $ac_cv_header_sys_wait_h = yes; then
19964
19965cat >>confdefs.h <<\_ACEOF
19966#define HAVE_SYS_WAIT_H 1
19967_ACEOF
19968
19969fi
19970
19971
19972
19973for ac_header in unistd.h fcntl.h
19974do
19975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19976if eval "test \"\${$as_ac_Header+set}\" = set"; then
19977 echo "$as_me:$LINENO: checking for $ac_header" >&5
19978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19979if eval "test \"\${$as_ac_Header+set}\" = set"; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981fi
19982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19984else
19985 # Is the header compilable?
19986echo "$as_me:$LINENO: checking $ac_header usability" >&5
19987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19988cat >conftest.$ac_ext <<_ACEOF
19989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
19994$ac_includes_default
19995#include <$ac_header>
19996_ACEOF
19997rm -f conftest.$ac_objext
19998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19999 (eval $ac_compile) 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } &&
20006 { ac_try='test -z "$ac_c_werror_flag"
20007 || test ! -s conftest.err'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; } &&
20013 { ac_try='test -s conftest.$ac_objext'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_header_compiler=yes
20020else
20021 echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024ac_header_compiler=no
20025fi
20026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20028echo "${ECHO_T}$ac_header_compiler" >&6
20029
20030# Is the header present?
20031echo "$as_me:$LINENO: checking $ac_header presence" >&5
20032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20033cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
20039#include <$ac_header>
20040_ACEOF
20041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } >/dev/null; then
20049 if test -s conftest.err; then
20050 ac_cpp_err=$ac_c_preproc_warn_flag
20051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20052 else
20053 ac_cpp_err=
20054 fi
20055else
20056 ac_cpp_err=yes
20057fi
20058if test -z "$ac_cpp_err"; then
20059 ac_header_preproc=yes
20060else
20061 echo "$as_me: failed program was:" >&5
20062sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 ac_header_preproc=no
20065fi
20066rm -f conftest.err conftest.$ac_ext
20067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068echo "${ECHO_T}$ac_header_preproc" >&6
20069
20070# So? What about this header?
20071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072 yes:no: )
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20077 ac_header_preproc=yes
20078 ;;
20079 no:yes:* )
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20092 (
20093 cat <<\_ASBOX
20094## -------------------------------------------------- ##
20095## Report this to courier-users@lists.sourceforge.net ##
20096## -------------------------------------------------- ##
20097_ASBOX
20098 ) |
20099 sed "s/^/$as_me: WARNING: /" >&2
20100 ;;
20101esac
20102echo "$as_me:$LINENO: checking for $ac_header" >&5
20103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20104if eval "test \"\${$as_ac_Header+set}\" = set"; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20106else
20107 eval "$as_ac_Header=\$ac_header_preproc"
20108fi
20109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20111
20112fi
20113if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114 cat >>confdefs.h <<_ACEOF
20115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20116_ACEOF
20117
20118fi
20119
20120done
20121
20122
20123echo "$as_me:$LINENO: checking for pid_t" >&5
20124echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20125if test "${ac_cv_type_pid_t+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127else
20128 cat >conftest.$ac_ext <<_ACEOF
20129/* confdefs.h. */
20130_ACEOF
20131cat confdefs.h >>conftest.$ac_ext
20132cat >>conftest.$ac_ext <<_ACEOF
20133/* end confdefs.h. */
20134$ac_includes_default
20135int
20136main ()
20137{
20138if ((pid_t *) 0)
20139 return 0;
20140if (sizeof (pid_t))
20141 return 0;
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146rm -f conftest.$ac_objext
20147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148 (eval $ac_compile) 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
20155 { ac_try='test -z "$ac_c_werror_flag"
20156 || test ! -s conftest.err'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; } &&
20162 { ac_try='test -s conftest.$ac_objext'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 ac_cv_type_pid_t=yes
20169else
20170 echo "$as_me: failed program was:" >&5
20171sed 's/^/| /' conftest.$ac_ext >&5
20172
20173ac_cv_type_pid_t=no
20174fi
20175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20176fi
20177echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20178echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20179if test $ac_cv_type_pid_t = yes; then
20180 :
20181else
20182
20183cat >>confdefs.h <<_ACEOF
20184#define pid_t int
20185_ACEOF
20186
20187fi
20188
20189
20190
20191# Check whether --with-random or --without-random was given.
20192if test "${with_random+set}" = set; then
20193 withval="$with_random"
20194 random="$withval"
20195else
20196 random="y"
20197fi;
20198
20199case "$random" in
20200/*)
20201 ;;
20202y*|1*)
20203 echo "$as_me:$LINENO: checking for random source" >&5
20204echo $ECHO_N "checking for random source... $ECHO_C" >&6
20205if test "${random_cv_RANDOM+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20207else
20208 if test -c /dev/urandom
20209 then
20210 random_cv_RANDOM=/dev/urandom
20211 else
20212 if test -c /dev/random
20213 then
20214 random_cv_RANDOM=/dev/random
20215 else
20216 random_cv_RANDOM="none"
20217 fi
20218 fi
20219
20220fi
20221echo "$as_me:$LINENO: result: $random_cv_RANDOM" >&5
20222echo "${ECHO_T}$random_cv_RANDOM" >&6
20223 random="$random_cv_RANDOM"
20224 ;;
20225*)
20226 random="none"
20227 ;;
20228esac
20229
20230if test "$random" != "none"
20231then
20232
20233cat >>confdefs.h <<_ACEOF
20234#define RANDOM "$random"
20235_ACEOF
20236
20237fi
20238
20239echo "$as_me:$LINENO: checking for some good options for ps" >&5
20240echo $ECHO_N "checking for some good options for ps... $ECHO_C" >&6
20241if test "${random_cv_PS_OPTIONS+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
20245 do
20246 ps $opts >/dev/null 2>/dev/null || continue
20247 break
20248 done
20249 random_cv_PS_OPTIONS="$opts"
20250
20251fi
20252echo "$as_me:$LINENO: result: $random_cv_PS_OPTIONS" >&5
20253echo "${ECHO_T}$random_cv_PS_OPTIONS" >&6
20254
20255
20256cat >>confdefs.h <<_ACEOF
20257#define PS_OPTIONS "$random_cv_PS_OPTIONS"
20258_ACEOF
20259
20260
20261cat >>confdefs.h <<_ACEOF
20262#define PS "$PS"
20263_ACEOF
20264
20265
20266if test "$W" != "w"
20267then
20268
20269cat >>confdefs.h <<_ACEOF
20270#define W "$w"
20271_ACEOF
20272
20273fi
20274
20275 ac_config_files="$ac_config_files Makefile"
20276cat >confcache <<\_ACEOF
20277# This file is a shell script that caches the results of configure
20278# tests run on this system so they can be shared between configure
20279# scripts and configure runs, see configure's option --config-cache.
20280# It is not useful on other systems. If it contains results you don't
20281# want to keep, you may remove or edit it.
20282#
20283# config.status only pays attention to the cache file if you give it
20284# the --recheck option to rerun configure.
20285#
20286# `ac_cv_env_foo' variables (set or unset) will be overridden when
20287# loading this file, other *unset* `ac_cv_foo' will be assigned the
20288# following values.
20289
20290_ACEOF
20291
20292# The following way of writing the cache mishandles newlines in values,
20293# but we know of no workaround that is simple, portable, and efficient.
20294# So, don't put newlines in cache variables' values.
20295# Ultrix sh set writes to stderr and can't be redirected directly,
20296# and sets the high bit in the cache file unless we assign to the vars.
20297{
20298 (set) 2>&1 |
20299 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20300 *ac_space=\ *)
20301 # `set' does not quote correctly, so add quotes (double-quote
20302 # substitution turns \\\\ into \\, and sed turns \\ into \).
20303 sed -n \
20304 "s/'/'\\\\''/g;
20305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20306 ;;
20307 *)
20308 # `set' quotes correctly as required by POSIX, so do not add quotes.
20309 sed -n \
20310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20311 ;;
20312 esac;
20313} |
20314 sed '
20315 t clear
20316 : clear
20317 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20318 t end
20319 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20320 : end' >>confcache
20321if diff $cache_file confcache >/dev/null 2>&1; then :; else
20322 if test -w $cache_file; then
20323 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20324 cat confcache >$cache_file
20325 else
20326 echo "not updating unwritable cache $cache_file"
20327 fi
20328fi
20329rm -f confcache
20330
20331test "x$prefix" = xNONE && prefix=$ac_default_prefix
20332# Let make expand exec_prefix.
20333test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20334
20335# VPATH may cause trouble with some makes, so we remove $(srcdir),
20336# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20337# trailing colons and then remove the whole line if VPATH becomes empty
20338# (actually we leave an empty line to preserve line numbers).
20339if test "x$srcdir" = x.; then
20340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20341s/:*\$(srcdir):*/:/;
20342s/:*\${srcdir}:*/:/;
20343s/:*@srcdir@:*/:/;
20344s/^\([^=]*=[ ]*\):*/\1/;
20345s/:*$//;
20346s/^[^=]*=[ ]*$//;
20347}'
20348fi
20349
20350DEFS=-DHAVE_CONFIG_H
20351
20352ac_libobjs=
20353ac_ltlibobjs=
20354for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20355 # 1. Remove the extension, and $U if already installed.
20356 ac_i=`echo "$ac_i" |
20357 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20358 # 2. Add them.
20359 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20360 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20361done
20362LIBOBJS=$ac_libobjs
20363
20364LTLIBOBJS=$ac_ltlibobjs
20365
20366
20367if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20368 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20369Usually this means the macro was only invoked conditionally." >&5
20370echo "$as_me: error: conditional \"AMDEP\" was never defined.
20371Usually this means the macro was only invoked conditionally." >&2;}
20372 { (exit 1); exit 1; }; }
20373fi
20374if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20375 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20376Usually this means the macro was only invoked conditionally." >&5
20377echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20378Usually this means the macro was only invoked conditionally." >&2;}
20379 { (exit 1); exit 1; }; }
20380fi
20381if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20382 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20383Usually this means the macro was only invoked conditionally." >&5
20384echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20385Usually this means the macro was only invoked conditionally." >&2;}
20386 { (exit 1); exit 1; }; }
20387fi
20388if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20389 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20390Usually this means the macro was only invoked conditionally." >&5
20391echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20392Usually this means the macro was only invoked conditionally." >&2;}
20393 { (exit 1); exit 1; }; }
20394fi
20395
20396: ${CONFIG_STATUS=./config.status}
20397ac_clean_files_save=$ac_clean_files
20398ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20399{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20400echo "$as_me: creating $CONFIG_STATUS" >&6;}
20401cat >$CONFIG_STATUS <<_ACEOF
20402#! $SHELL
20403# Generated by $as_me.
20404# Run this file to recreate the current configuration.
20405# Compiler output produced by configure, useful for debugging
20406# configure, is in config.log if it exists.
20407
20408debug=false
20409ac_cs_recheck=false
20410ac_cs_silent=false
20411SHELL=\${CONFIG_SHELL-$SHELL}
20412_ACEOF
20413
20414cat >>$CONFIG_STATUS <<\_ACEOF
20415## --------------------- ##
20416## M4sh Initialization. ##
20417## --------------------- ##
20418
20419# Be Bourne compatible
20420if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20421 emulate sh
20422 NULLCMD=:
20423 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20424 # is contrary to our usage. Disable this feature.
20425 alias -g '${1+"$@"}'='"$@"'
20426elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20427 set -o posix
20428fi
20429DUALCASE=1; export DUALCASE # for MKS sh
20430
20431# Support unset when possible.
20432if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20433 as_unset=unset
20434else
20435 as_unset=false
20436fi
20437
20438
20439# Work around bugs in pre-3.0 UWIN ksh.
20440$as_unset ENV MAIL MAILPATH
20441PS1='$ '
20442PS2='> '
20443PS4='+ '
20444
20445# NLS nuisances.
20446for as_var in \
20447 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20448 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20449 LC_TELEPHONE LC_TIME
20450do
20451 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20452 eval $as_var=C; export $as_var
20453 else
20454 $as_unset $as_var
20455 fi
20456done
20457
20458# Required to use basename.
20459if expr a : '\(a\)' >/dev/null 2>&1; then
20460 as_expr=expr
20461else
20462 as_expr=false
20463fi
20464
20465if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20466 as_basename=basename
20467else
20468 as_basename=false
20469fi
20470
20471
20472# Name of the executable.
20473as_me=`$as_basename "$0" ||
20474$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20475 X"$0" : 'X\(//\)$' \| \
20476 X"$0" : 'X\(/\)$' \| \
20477 . : '\(.\)' 2>/dev/null ||
20478echo X/"$0" |
20479 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20480 /^X\/\(\/\/\)$/{ s//\1/; q; }
20481 /^X\/\(\/\).*/{ s//\1/; q; }
20482 s/.*/./; q'`
20483
20484
20485# PATH needs CR, and LINENO needs CR and PATH.
20486# Avoid depending upon Character Ranges.
20487as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20488as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20489as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20490as_cr_digits='0123456789'
20491as_cr_alnum=$as_cr_Letters$as_cr_digits
20492
20493# The user is always right.
20494if test "${PATH_SEPARATOR+set}" != set; then
20495 echo "#! /bin/sh" >conf$$.sh
20496 echo "exit 0" >>conf$$.sh
20497 chmod +x conf$$.sh
20498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20499 PATH_SEPARATOR=';'
20500 else
20501 PATH_SEPARATOR=:
20502 fi
20503 rm -f conf$$.sh
20504fi
20505
20506
20507 as_lineno_1=$LINENO
20508 as_lineno_2=$LINENO
20509 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20510 test "x$as_lineno_1" != "x$as_lineno_2" &&
20511 test "x$as_lineno_3" = "x$as_lineno_2" || {
20512 # Find who we are. Look in the path if we contain no path at all
20513 # relative or not.
20514 case $0 in
20515 *[\\/]* ) as_myself=$0 ;;
20516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20517for as_dir in $PATH
20518do
20519 IFS=$as_save_IFS
20520 test -z "$as_dir" && as_dir=.
20521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20522done
20523
20524 ;;
20525 esac
20526 # We did not find ourselves, most probably we were run as `sh COMMAND'
20527 # in which case we are not to be found in the path.
20528 if test "x$as_myself" = x; then
20529 as_myself=$0
20530 fi
20531 if test ! -f "$as_myself"; then
20532 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20533echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20534 { (exit 1); exit 1; }; }
20535 fi
20536 case $CONFIG_SHELL in
20537 '')
20538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20539for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20540do
20541 IFS=$as_save_IFS
20542 test -z "$as_dir" && as_dir=.
20543 for as_base in sh bash ksh sh5; do
20544 case $as_dir in
20545 /*)
20546 if ("$as_dir/$as_base" -c '
20547 as_lineno_1=$LINENO
20548 as_lineno_2=$LINENO
20549 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20550 test "x$as_lineno_1" != "x$as_lineno_2" &&
20551 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20552 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20553 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20554 CONFIG_SHELL=$as_dir/$as_base
20555 export CONFIG_SHELL
20556 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20557 fi;;
20558 esac
20559 done
20560done
20561;;
20562 esac
20563
20564 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20565 # uniformly replaced by the line number. The first 'sed' inserts a
20566 # line-number line before each line; the second 'sed' does the real
20567 # work. The second script uses 'N' to pair each line-number line
20568 # with the numbered line, and appends trailing '-' during
20569 # substitution so that $LINENO is not a special case at line end.
20570 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20571 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20572 sed '=' <$as_myself |
20573 sed '
20574 N
20575 s,$,-,
20576 : loop
20577 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20578 t loop
20579 s,-$,,
20580 s,^['$as_cr_digits']*\n,,
20581 ' >$as_me.lineno &&
20582 chmod +x $as_me.lineno ||
20583 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20584echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20585 { (exit 1); exit 1; }; }
20586
20587 # Don't try to exec as it changes $[0], causing all sort of problems
20588 # (the dirname of $[0] is not the place where we might find the
20589 # original and so on. Autoconf is especially sensible to this).
20590 . ./$as_me.lineno
20591 # Exit status is that of the last command.
20592 exit
20593}
20594
20595
20596case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20597 *c*,-n*) ECHO_N= ECHO_C='
20598' ECHO_T=' ' ;;
20599 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20600 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20601esac
20602
20603if expr a : '\(a\)' >/dev/null 2>&1; then
20604 as_expr=expr
20605else
20606 as_expr=false
20607fi
20608
20609rm -f conf$$ conf$$.exe conf$$.file
20610echo >conf$$.file
20611if ln -s conf$$.file conf$$ 2>/dev/null; then
20612 # We could just check for DJGPP; but this test a) works b) is more generic
20613 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20614 if test -f conf$$.exe; then
20615 # Don't use ln at all; we don't have any links
20616 as_ln_s='cp -p'
20617 else
20618 as_ln_s='ln -s'
20619 fi
20620elif ln conf$$.file conf$$ 2>/dev/null; then
20621 as_ln_s=ln
20622else
20623 as_ln_s='cp -p'
20624fi
20625rm -f conf$$ conf$$.exe conf$$.file
20626
20627if mkdir -p . 2>/dev/null; then
20628 as_mkdir_p=:
20629else
20630 test -d ./-p && rmdir ./-p
20631 as_mkdir_p=false
20632fi
20633
20634as_executable_p="test -f"
20635
20636# Sed expression to map a string onto a valid CPP name.
20637as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20638
20639# Sed expression to map a string onto a valid variable name.
20640as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20641
20642
20643# IFS
20644# We need space, tab and new line, in precisely that order.
20645as_nl='
20646'
20647IFS=" $as_nl"
20648
20649# CDPATH.
20650$as_unset CDPATH
20651
20652exec 6>&1
20653
20654# Open the log real soon, to keep \$[0] and so on meaningful, and to
20655# report actual input values of CONFIG_FILES etc. instead of their
20656# values after options handling. Logging --version etc. is OK.
20657exec 5>>config.log
20658{
20659 echo
20660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20661## Running $as_me. ##
20662_ASBOX
20663} >&5
20664cat >&5 <<_CSEOF
20665
20666This file was extended by random128 $as_me 0.10, which was
20667generated by GNU Autoconf 2.59. Invocation command line was
20668
20669 CONFIG_FILES = $CONFIG_FILES
20670 CONFIG_HEADERS = $CONFIG_HEADERS
20671 CONFIG_LINKS = $CONFIG_LINKS
20672 CONFIG_COMMANDS = $CONFIG_COMMANDS
20673 $ $0 $@
20674
20675_CSEOF
20676echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20677echo >&5
20678_ACEOF
20679
20680# Files that config.status was made for.
20681if test -n "$ac_config_files"; then
20682 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20683fi
20684
20685if test -n "$ac_config_headers"; then
20686 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20687fi
20688
20689if test -n "$ac_config_links"; then
20690 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20691fi
20692
20693if test -n "$ac_config_commands"; then
20694 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20695fi
20696
20697cat >>$CONFIG_STATUS <<\_ACEOF
20698
20699ac_cs_usage="\
20700\`$as_me' instantiates files from templates according to the
20701current configuration.
20702
20703Usage: $0 [OPTIONS] [FILE]...
20704
20705 -h, --help print this help, then exit
20706 -V, --version print version number, then exit
20707 -q, --quiet do not print progress messages
20708 -d, --debug don't remove temporary files
20709 --recheck update $as_me by reconfiguring in the same conditions
20710 --file=FILE[:TEMPLATE]
20711 instantiate the configuration file FILE
20712 --header=FILE[:TEMPLATE]
20713 instantiate the configuration header FILE
20714
20715Configuration files:
20716$config_files
20717
20718Configuration headers:
20719$config_headers
20720
20721Configuration commands:
20722$config_commands
20723
20724Report bugs to <bug-autoconf@gnu.org>."
20725_ACEOF
20726
20727cat >>$CONFIG_STATUS <<_ACEOF
20728ac_cs_version="\\
20729random128 config.status 0.10
20730configured by $0, generated by GNU Autoconf 2.59,
20731 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20732
20733Copyright (C) 2003 Free Software Foundation, Inc.
20734This config.status script is free software; the Free Software Foundation
20735gives unlimited permission to copy, distribute and modify it."
20736srcdir=$srcdir
20737INSTALL="$INSTALL"
20738_ACEOF
20739
20740cat >>$CONFIG_STATUS <<\_ACEOF
20741# If no file are specified by the user, then we need to provide default
20742# value. By we need to know if files were specified by the user.
20743ac_need_defaults=:
20744while test $# != 0
20745do
20746 case $1 in
20747 --*=*)
20748 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20749 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20750 ac_shift=:
20751 ;;
20752 -*)
20753 ac_option=$1
20754 ac_optarg=$2
20755 ac_shift=shift
20756 ;;
20757 *) # This is not an option, so the user has probably given explicit
20758 # arguments.
20759 ac_option=$1
20760 ac_need_defaults=false;;
20761 esac
20762
20763 case $ac_option in
20764 # Handling of the options.
20765_ACEOF
20766cat >>$CONFIG_STATUS <<\_ACEOF
20767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20768 ac_cs_recheck=: ;;
20769 --version | --vers* | -V )
20770 echo "$ac_cs_version"; exit 0 ;;
20771 --he | --h)
20772 # Conflict between --help and --header
20773 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20774Try \`$0 --help' for more information." >&5
20775echo "$as_me: error: ambiguous option: $1
20776Try \`$0 --help' for more information." >&2;}
20777 { (exit 1); exit 1; }; };;
20778 --help | --hel | -h )
20779 echo "$ac_cs_usage"; exit 0 ;;
20780 --debug | --d* | -d )
20781 debug=: ;;
20782 --file | --fil | --fi | --f )
20783 $ac_shift
20784 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20785 ac_need_defaults=false;;
20786 --header | --heade | --head | --hea )
20787 $ac_shift
20788 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20789 ac_need_defaults=false;;
20790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20791 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20792 ac_cs_silent=: ;;
20793
20794 # This is an error.
20795 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20796Try \`$0 --help' for more information." >&5
20797echo "$as_me: error: unrecognized option: $1
20798Try \`$0 --help' for more information." >&2;}
20799 { (exit 1); exit 1; }; } ;;
20800
20801 *) ac_config_targets="$ac_config_targets $1" ;;
20802
20803 esac
20804 shift
20805done
20806
20807ac_configure_extra_args=
20808
20809if $ac_cs_silent; then
20810 exec 6>/dev/null
20811 ac_configure_extra_args="$ac_configure_extra_args --silent"
20812fi
20813
20814_ACEOF
20815cat >>$CONFIG_STATUS <<_ACEOF
20816if \$ac_cs_recheck; then
20817 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20818 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20819fi
20820
20821_ACEOF
20822
20823cat >>$CONFIG_STATUS <<_ACEOF
20824#
20825# INIT-COMMANDS section.
20826#
20827
20828AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20829
20830_ACEOF
20831
20832
20833
20834cat >>$CONFIG_STATUS <<\_ACEOF
20835for ac_config_target in $ac_config_targets
20836do
20837 case "$ac_config_target" in
20838 # Handling of arguments.
20839 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20840 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20841 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20842 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20843echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20844 { (exit 1); exit 1; }; };;
20845 esac
20846done
20847
20848# If the user did not use the arguments to specify the items to instantiate,
20849# then the envvar interface is used. Set only those that are not.
20850# We use the long form for the default assignment because of an extremely
20851# bizarre bug on SunOS 4.1.3.
20852if $ac_need_defaults; then
20853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20856fi
20857
20858# Have a temporary directory for convenience. Make it in the build tree
20859# simply because there is no reason to put it here, and in addition,
20860# creating and moving files from /tmp can sometimes cause problems.
20861# Create a temporary directory, and hook for its removal unless debugging.
20862$debug ||
20863{
20864 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20865 trap '{ (exit 1); exit 1; }' 1 2 13 15
20866}
20867
20868# Create a (secure) tmp directory for tmp files.
20869
20870{
20871 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20872 test -n "$tmp" && test -d "$tmp"
20873} ||
20874{
20875 tmp=./confstat$$-$RANDOM
20876 (umask 077 && mkdir $tmp)
20877} ||
20878{
20879 echo "$me: cannot create a temporary directory in ." >&2
20880 { (exit 1); exit 1; }
20881}
20882
20883_ACEOF
20884
20885cat >>$CONFIG_STATUS <<_ACEOF
20886
20887#
20888# CONFIG_FILES section.
20889#
20890
20891# No need to generate the scripts if there are no CONFIG_FILES.
20892# This happens for instance when ./config.status config.h
20893if test -n "\$CONFIG_FILES"; then
20894 # Protect against being on the right side of a sed subst in config.status.
20895 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20896 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20897s,@SHELL@,$SHELL,;t t
20898s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20899s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20900s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20901s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20902s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20903s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20904s,@exec_prefix@,$exec_prefix,;t t
20905s,@prefix@,$prefix,;t t
20906s,@program_transform_name@,$program_transform_name,;t t
20907s,@bindir@,$bindir,;t t
20908s,@sbindir@,$sbindir,;t t
20909s,@libexecdir@,$libexecdir,;t t
20910s,@datadir@,$datadir,;t t
20911s,@sysconfdir@,$sysconfdir,;t t
20912s,@sharedstatedir@,$sharedstatedir,;t t
20913s,@localstatedir@,$localstatedir,;t t
20914s,@libdir@,$libdir,;t t
20915s,@includedir@,$includedir,;t t
20916s,@oldincludedir@,$oldincludedir,;t t
20917s,@infodir@,$infodir,;t t
20918s,@mandir@,$mandir,;t t
20919s,@build_alias@,$build_alias,;t t
20920s,@host_alias@,$host_alias,;t t
20921s,@target_alias@,$target_alias,;t t
20922s,@DEFS@,$DEFS,;t t
20923s,@ECHO_C@,$ECHO_C,;t t
20924s,@ECHO_N@,$ECHO_N,;t t
20925s,@ECHO_T@,$ECHO_T,;t t
20926s,@LIBS@,$LIBS,;t t
20927s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20928s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20929s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20930s,@CYGPATH_W@,$CYGPATH_W,;t t
20931s,@PACKAGE@,$PACKAGE,;t t
20932s,@VERSION@,$VERSION,;t t
20933s,@ACLOCAL@,$ACLOCAL,;t t
20934s,@AUTOCONF@,$AUTOCONF,;t t
20935s,@AUTOMAKE@,$AUTOMAKE,;t t
20936s,@AUTOHEADER@,$AUTOHEADER,;t t
20937s,@MAKEINFO@,$MAKEINFO,;t t
20938s,@install_sh@,$install_sh,;t t
20939s,@STRIP@,$STRIP,;t t
20940s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20941s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20942s,@mkdir_p@,$mkdir_p,;t t
20943s,@AWK@,$AWK,;t t
20944s,@SET_MAKE@,$SET_MAKE,;t t
20945s,@am__leading_dot@,$am__leading_dot,;t t
20946s,@AMTAR@,$AMTAR,;t t
20947s,@am__tar@,$am__tar,;t t
20948s,@am__untar@,$am__untar,;t t
20949s,@CC@,$CC,;t t
20950s,@CFLAGS@,$CFLAGS,;t t
20951s,@LDFLAGS@,$LDFLAGS,;t t
20952s,@CPPFLAGS@,$CPPFLAGS,;t t
20953s,@ac_ct_CC@,$ac_ct_CC,;t t
20954s,@EXEEXT@,$EXEEXT,;t t
20955s,@OBJEXT@,$OBJEXT,;t t
20956s,@DEPDIR@,$DEPDIR,;t t
20957s,@am__include@,$am__include,;t t
20958s,@am__quote@,$am__quote,;t t
20959s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20960s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20961s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20962s,@CCDEPMODE@,$CCDEPMODE,;t t
20963s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20964s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20965s,@CPP@,$CPP,;t t
20966s,@EGREP@,$EGREP,;t t
20967s,@LN_S@,$LN_S,;t t
20968s,@PS@,$PS,;t t
20969s,@W@,$W,;t t
20970s,@build@,$build,;t t
20971s,@build_cpu@,$build_cpu,;t t
20972s,@build_vendor@,$build_vendor,;t t
20973s,@build_os@,$build_os,;t t
20974s,@host@,$host,;t t
20975s,@host_cpu@,$host_cpu,;t t
20976s,@host_vendor@,$host_vendor,;t t
20977s,@host_os@,$host_os,;t t
20978s,@SED@,$SED,;t t
20979s,@ECHO@,$ECHO,;t t
20980s,@AR@,$AR,;t t
20981s,@ac_ct_AR@,$ac_ct_AR,;t t
20982s,@RANLIB@,$RANLIB,;t t
20983s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20984s,@CXX@,$CXX,;t t
20985s,@CXXFLAGS@,$CXXFLAGS,;t t
20986s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20987s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20988s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20989s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20990s,@CXXCPP@,$CXXCPP,;t t
20991s,@F77@,$F77,;t t
20992s,@FFLAGS@,$FFLAGS,;t t
20993s,@ac_ct_F77@,$ac_ct_F77,;t t
20994s,@LIBTOOL@,$LIBTOOL,;t t
20995s,@LIBOBJS@,$LIBOBJS,;t t
20996s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20997CEOF
20998
20999_ACEOF
21000
21001 cat >>$CONFIG_STATUS <<\_ACEOF
21002 # Split the substitutions into bite-sized pieces for seds with
21003 # small command number limits, like on Digital OSF/1 and HP-UX.
21004 ac_max_sed_lines=48
21005 ac_sed_frag=1 # Number of current file.
21006 ac_beg=1 # First line for current file.
21007 ac_end=$ac_max_sed_lines # Line after last line for current file.
21008 ac_more_lines=:
21009 ac_sed_cmds=
21010 while $ac_more_lines; do
21011 if test $ac_beg -gt 1; then
21012 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21013 else
21014 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21015 fi
21016 if test ! -s $tmp/subs.frag; then
21017 ac_more_lines=false
21018 else
21019 # The purpose of the label and of the branching condition is to
21020 # speed up the sed processing (if there are no `@' at all, there
21021 # is no need to browse any of the substitutions).
21022 # These are the two extra sed commands mentioned above.
21023 (echo ':t
21024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21025 if test -z "$ac_sed_cmds"; then
21026 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21027 else
21028 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21029 fi
21030 ac_sed_frag=`expr $ac_sed_frag + 1`
21031 ac_beg=$ac_end
21032 ac_end=`expr $ac_end + $ac_max_sed_lines`
21033 fi
21034 done
21035 if test -z "$ac_sed_cmds"; then
21036 ac_sed_cmds=cat
21037 fi
21038fi # test -n "$CONFIG_FILES"
21039
21040_ACEOF
21041cat >>$CONFIG_STATUS <<\_ACEOF
21042for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21044 case $ac_file in
21045 - | *:- | *:-:* ) # input from stdin
21046 cat >$tmp/stdin
21047 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21049 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21051 * ) ac_file_in=$ac_file.in ;;
21052 esac
21053
21054 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21055 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21057 X"$ac_file" : 'X\(//\)[^/]' \| \
21058 X"$ac_file" : 'X\(//\)$' \| \
21059 X"$ac_file" : 'X\(/\)' \| \
21060 . : '\(.\)' 2>/dev/null ||
21061echo X"$ac_file" |
21062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21064 /^X\(\/\/\)$/{ s//\1/; q; }
21065 /^X\(\/\).*/{ s//\1/; q; }
21066 s/.*/./; q'`
21067 { if $as_mkdir_p; then
21068 mkdir -p "$ac_dir"
21069 else
21070 as_dir="$ac_dir"
21071 as_dirs=
21072 while test ! -d "$as_dir"; do
21073 as_dirs="$as_dir $as_dirs"
21074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076 X"$as_dir" : 'X\(//\)[^/]' \| \
21077 X"$as_dir" : 'X\(//\)$' \| \
21078 X"$as_dir" : 'X\(/\)' \| \
21079 . : '\(.\)' 2>/dev/null ||
21080echo X"$as_dir" |
21081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21083 /^X\(\/\/\)$/{ s//\1/; q; }
21084 /^X\(\/\).*/{ s//\1/; q; }
21085 s/.*/./; q'`
21086 done
21087 test ! -n "$as_dirs" || mkdir $as_dirs
21088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21090 { (exit 1); exit 1; }; }; }
21091
21092 ac_builddir=.
21093
21094if test "$ac_dir" != .; then
21095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21096 # A "../" for each directory in $ac_dir_suffix.
21097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21098else
21099 ac_dir_suffix= ac_top_builddir=
21100fi
21101
21102case $srcdir in
21103 .) # No --srcdir option. We are building in place.
21104 ac_srcdir=.
21105 if test -z "$ac_top_builddir"; then
21106 ac_top_srcdir=.
21107 else
21108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21109 fi ;;
21110 [\\/]* | ?:[\\/]* ) # Absolute path.
21111 ac_srcdir=$srcdir$ac_dir_suffix;
21112 ac_top_srcdir=$srcdir ;;
21113 *) # Relative path.
21114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21116esac
21117
21118# Do not use `cd foo && pwd` to compute absolute paths, because
21119# the directories may not exist.
21120case `pwd` in
21121.) ac_abs_builddir="$ac_dir";;
21122*)
21123 case "$ac_dir" in
21124 .) ac_abs_builddir=`pwd`;;
21125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21127 esac;;
21128esac
21129case $ac_abs_builddir in
21130.) ac_abs_top_builddir=${ac_top_builddir}.;;
21131*)
21132 case ${ac_top_builddir}. in
21133 .) ac_abs_top_builddir=$ac_abs_builddir;;
21134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21136 esac;;
21137esac
21138case $ac_abs_builddir in
21139.) ac_abs_srcdir=$ac_srcdir;;
21140*)
21141 case $ac_srcdir in
21142 .) ac_abs_srcdir=$ac_abs_builddir;;
21143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21145 esac;;
21146esac
21147case $ac_abs_builddir in
21148.) ac_abs_top_srcdir=$ac_top_srcdir;;
21149*)
21150 case $ac_top_srcdir in
21151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21154 esac;;
21155esac
21156
21157
21158 case $INSTALL in
21159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21160 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21161 esac
21162
21163 if test x"$ac_file" != x-; then
21164 { echo "$as_me:$LINENO: creating $ac_file" >&5
21165echo "$as_me: creating $ac_file" >&6;}
21166 rm -f "$ac_file"
21167 fi
21168 # Let's still pretend it is `configure' which instantiates (i.e., don't
21169 # use $as_me), people would be surprised to read:
21170 # /* config.h. Generated by config.status. */
21171 if test x"$ac_file" = x-; then
21172 configure_input=
21173 else
21174 configure_input="$ac_file. "
21175 fi
21176 configure_input=$configure_input"Generated from `echo $ac_file_in |
21177 sed 's,.*/,,'` by configure."
21178
21179 # First look for the input files in the build tree, otherwise in the
21180 # src tree.
21181 ac_file_inputs=`IFS=:
21182 for f in $ac_file_in; do
21183 case $f in
21184 -) echo $tmp/stdin ;;
21185 [\\/$]*)
21186 # Absolute (can't be DOS-style, as IFS=:)
21187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21188echo "$as_me: error: cannot find input file: $f" >&2;}
21189 { (exit 1); exit 1; }; }
21190 echo "$f";;
21191 *) # Relative
21192 if test -f "$f"; then
21193 # Build tree
21194 echo "$f"
21195 elif test -f "$srcdir/$f"; then
21196 # Source tree
21197 echo "$srcdir/$f"
21198 else
21199 # /dev/null tree
21200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21201echo "$as_me: error: cannot find input file: $f" >&2;}
21202 { (exit 1); exit 1; }; }
21203 fi;;
21204 esac
21205 done` || { (exit 1); exit 1; }
21206_ACEOF
21207cat >>$CONFIG_STATUS <<_ACEOF
21208 sed "$ac_vpsub
21209$extrasub
21210_ACEOF
21211cat >>$CONFIG_STATUS <<\_ACEOF
21212:t
21213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21214s,@configure_input@,$configure_input,;t t
21215s,@srcdir@,$ac_srcdir,;t t
21216s,@abs_srcdir@,$ac_abs_srcdir,;t t
21217s,@top_srcdir@,$ac_top_srcdir,;t t
21218s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21219s,@builddir@,$ac_builddir,;t t
21220s,@abs_builddir@,$ac_abs_builddir,;t t
21221s,@top_builddir@,$ac_top_builddir,;t t
21222s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21223s,@INSTALL@,$ac_INSTALL,;t t
21224" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21225 rm -f $tmp/stdin
21226 if test x"$ac_file" != x-; then
21227 mv $tmp/out $ac_file
21228 else
21229 cat $tmp/out
21230 rm -f $tmp/out
21231 fi
21232
21233done
21234_ACEOF
21235cat >>$CONFIG_STATUS <<\_ACEOF
21236
21237#
21238# CONFIG_HEADER section.
21239#
21240
21241# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21242# NAME is the cpp macro being defined and VALUE is the value it is being given.
21243#
21244# ac_d sets the value in "#define NAME VALUE" lines.
21245ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21246ac_dB='[ ].*$,\1#\2'
21247ac_dC=' '
21248ac_dD=',;t'
21249# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21250ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21251ac_uB='$,\1#\2define\3'
21252ac_uC=' '
21253ac_uD=',;t'
21254
21255for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21257 case $ac_file in
21258 - | *:- | *:-:* ) # input from stdin
21259 cat >$tmp/stdin
21260 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21262 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21264 * ) ac_file_in=$ac_file.in ;;
21265 esac
21266
21267 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21268echo "$as_me: creating $ac_file" >&6;}
21269
21270 # First look for the input files in the build tree, otherwise in the
21271 # src tree.
21272 ac_file_inputs=`IFS=:
21273 for f in $ac_file_in; do
21274 case $f in
21275 -) echo $tmp/stdin ;;
21276 [\\/$]*)
21277 # Absolute (can't be DOS-style, as IFS=:)
21278 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21279echo "$as_me: error: cannot find input file: $f" >&2;}
21280 { (exit 1); exit 1; }; }
21281 # Do quote $f, to prevent DOS paths from being IFS'd.
21282 echo "$f";;
21283 *) # Relative
21284 if test -f "$f"; then
21285 # Build tree
21286 echo "$f"
21287 elif test -f "$srcdir/$f"; then
21288 # Source tree
21289 echo "$srcdir/$f"
21290 else
21291 # /dev/null tree
21292 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21293echo "$as_me: error: cannot find input file: $f" >&2;}
21294 { (exit 1); exit 1; }; }
21295 fi;;
21296 esac
21297 done` || { (exit 1); exit 1; }
21298 # Remove the trailing spaces.
21299 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21300
21301_ACEOF
21302
21303# Transform confdefs.h into two sed scripts, `conftest.defines' and
21304# `conftest.undefs', that substitutes the proper values into
21305# config.h.in to produce config.h. The first handles `#define'
21306# templates, and the second `#undef' templates.
21307# And first: Protect against being on the right side of a sed subst in
21308# config.status. Protect against being in an unquoted here document
21309# in config.status.
21310rm -f conftest.defines conftest.undefs
21311# Using a here document instead of a string reduces the quoting nightmare.
21312# Putting comments in sed scripts is not portable.
21313#
21314# `end' is used to avoid that the second main sed command (meant for
21315# 0-ary CPP macros) applies to n-ary macro definitions.
21316# See the Autoconf documentation for `clear'.
21317cat >confdef2sed.sed <<\_ACEOF
21318s/[\\&,]/\\&/g
21319s,[\\$`],\\&,g
21320t clear
21321: clear
21322s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21323t end
21324s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21325: end
21326_ACEOF
21327# If some macros were called several times there might be several times
21328# the same #defines, which is useless. Nevertheless, we may not want to
21329# sort them, since we want the *last* AC-DEFINE to be honored.
21330uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21331sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21332rm -f confdef2sed.sed
21333
21334# This sed command replaces #undef with comments. This is necessary, for
21335# example, in the case of _POSIX_SOURCE, which is predefined and required
21336# on some systems where configure will not decide to define it.
21337cat >>conftest.undefs <<\_ACEOF
21338s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21339_ACEOF
21340
21341# Break up conftest.defines because some shells have a limit on the size
21342# of here documents, and old seds have small limits too (100 cmds).
21343echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21344echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21345echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21346echo ' :' >>$CONFIG_STATUS
21347rm -f conftest.tail
21348while grep . conftest.defines >/dev/null
21349do
21350 # Write a limited-size here document to $tmp/defines.sed.
21351 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21352 # Speed up: don't consider the non `#define' lines.
21353 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21354 # Work around the forget-to-reset-the-flag bug.
21355 echo 't clr' >>$CONFIG_STATUS
21356 echo ': clr' >>$CONFIG_STATUS
21357 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21358 echo 'CEOF
21359 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21360 rm -f $tmp/in
21361 mv $tmp/out $tmp/in
21362' >>$CONFIG_STATUS
21363 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21364 rm -f conftest.defines
21365 mv conftest.tail conftest.defines
21366done
21367rm -f conftest.defines
21368echo ' fi # grep' >>$CONFIG_STATUS
21369echo >>$CONFIG_STATUS
21370
21371# Break up conftest.undefs because some shells have a limit on the size
21372# of here documents, and old seds have small limits too (100 cmds).
21373echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21374rm -f conftest.tail
21375while grep . conftest.undefs >/dev/null
21376do
21377 # Write a limited-size here document to $tmp/undefs.sed.
21378 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21379 # Speed up: don't consider the non `#undef'
21380 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21381 # Work around the forget-to-reset-the-flag bug.
21382 echo 't clr' >>$CONFIG_STATUS
21383 echo ': clr' >>$CONFIG_STATUS
21384 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21385 echo 'CEOF
21386 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21387 rm -f $tmp/in
21388 mv $tmp/out $tmp/in
21389' >>$CONFIG_STATUS
21390 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21391 rm -f conftest.undefs
21392 mv conftest.tail conftest.undefs
21393done
21394rm -f conftest.undefs
21395
21396cat >>$CONFIG_STATUS <<\_ACEOF
21397 # Let's still pretend it is `configure' which instantiates (i.e., don't
21398 # use $as_me), people would be surprised to read:
21399 # /* config.h. Generated by config.status. */
21400 if test x"$ac_file" = x-; then
21401 echo "/* Generated by configure. */" >$tmp/config.h
21402 else
21403 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21404 fi
21405 cat $tmp/in >>$tmp/config.h
21406 rm -f $tmp/in
21407 if test x"$ac_file" != x-; then
21408 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21409 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21410echo "$as_me: $ac_file is unchanged" >&6;}
21411 else
21412 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21414 X"$ac_file" : 'X\(//\)[^/]' \| \
21415 X"$ac_file" : 'X\(//\)$' \| \
21416 X"$ac_file" : 'X\(/\)' \| \
21417 . : '\(.\)' 2>/dev/null ||
21418echo X"$ac_file" |
21419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21421 /^X\(\/\/\)$/{ s//\1/; q; }
21422 /^X\(\/\).*/{ s//\1/; q; }
21423 s/.*/./; q'`
21424 { if $as_mkdir_p; then
21425 mkdir -p "$ac_dir"
21426 else
21427 as_dir="$ac_dir"
21428 as_dirs=
21429 while test ! -d "$as_dir"; do
21430 as_dirs="$as_dir $as_dirs"
21431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21433 X"$as_dir" : 'X\(//\)[^/]' \| \
21434 X"$as_dir" : 'X\(//\)$' \| \
21435 X"$as_dir" : 'X\(/\)' \| \
21436 . : '\(.\)' 2>/dev/null ||
21437echo X"$as_dir" |
21438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21440 /^X\(\/\/\)$/{ s//\1/; q; }
21441 /^X\(\/\).*/{ s//\1/; q; }
21442 s/.*/./; q'`
21443 done
21444 test ! -n "$as_dirs" || mkdir $as_dirs
21445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21446echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21447 { (exit 1); exit 1; }; }; }
21448
21449 rm -f $ac_file
21450 mv $tmp/config.h $ac_file
21451 fi
21452 else
21453 cat $tmp/config.h
21454 rm -f $tmp/config.h
21455 fi
21456# Compute $ac_file's index in $config_headers.
21457_am_stamp_count=1
21458for _am_header in $config_headers :; do
21459 case $_am_header in
21460 $ac_file | $ac_file:* )
21461 break ;;
21462 * )
21463 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21464 esac
21465done
21466echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21467$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21468 X$ac_file : 'X\(//\)[^/]' \| \
21469 X$ac_file : 'X\(//\)$' \| \
21470 X$ac_file : 'X\(/\)' \| \
21471 . : '\(.\)' 2>/dev/null ||
21472echo X$ac_file |
21473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21475 /^X\(\/\/\)$/{ s//\1/; q; }
21476 /^X\(\/\).*/{ s//\1/; q; }
21477 s/.*/./; q'`/stamp-h$_am_stamp_count
21478done
21479_ACEOF
21480cat >>$CONFIG_STATUS <<\_ACEOF
21481
21482#
21483# CONFIG_COMMANDS section.
21484#
21485for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21486 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21487 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21488 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21489$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21490 X"$ac_dest" : 'X\(//\)[^/]' \| \
21491 X"$ac_dest" : 'X\(//\)$' \| \
21492 X"$ac_dest" : 'X\(/\)' \| \
21493 . : '\(.\)' 2>/dev/null ||
21494echo X"$ac_dest" |
21495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21497 /^X\(\/\/\)$/{ s//\1/; q; }
21498 /^X\(\/\).*/{ s//\1/; q; }
21499 s/.*/./; q'`
21500 { if $as_mkdir_p; then
21501 mkdir -p "$ac_dir"
21502 else
21503 as_dir="$ac_dir"
21504 as_dirs=
21505 while test ! -d "$as_dir"; do
21506 as_dirs="$as_dir $as_dirs"
21507 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21509 X"$as_dir" : 'X\(//\)[^/]' \| \
21510 X"$as_dir" : 'X\(//\)$' \| \
21511 X"$as_dir" : 'X\(/\)' \| \
21512 . : '\(.\)' 2>/dev/null ||
21513echo X"$as_dir" |
21514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21516 /^X\(\/\/\)$/{ s//\1/; q; }
21517 /^X\(\/\).*/{ s//\1/; q; }
21518 s/.*/./; q'`
21519 done
21520 test ! -n "$as_dirs" || mkdir $as_dirs
21521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21522echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21523 { (exit 1); exit 1; }; }; }
21524
21525 ac_builddir=.
21526
21527if test "$ac_dir" != .; then
21528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21529 # A "../" for each directory in $ac_dir_suffix.
21530 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21531else
21532 ac_dir_suffix= ac_top_builddir=
21533fi
21534
21535case $srcdir in
21536 .) # No --srcdir option. We are building in place.
21537 ac_srcdir=.
21538 if test -z "$ac_top_builddir"; then
21539 ac_top_srcdir=.
21540 else
21541 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21542 fi ;;
21543 [\\/]* | ?:[\\/]* ) # Absolute path.
21544 ac_srcdir=$srcdir$ac_dir_suffix;
21545 ac_top_srcdir=$srcdir ;;
21546 *) # Relative path.
21547 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21548 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21549esac
21550
21551# Do not use `cd foo && pwd` to compute absolute paths, because
21552# the directories may not exist.
21553case `pwd` in
21554.) ac_abs_builddir="$ac_dir";;
21555*)
21556 case "$ac_dir" in
21557 .) ac_abs_builddir=`pwd`;;
21558 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21559 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21560 esac;;
21561esac
21562case $ac_abs_builddir in
21563.) ac_abs_top_builddir=${ac_top_builddir}.;;
21564*)
21565 case ${ac_top_builddir}. in
21566 .) ac_abs_top_builddir=$ac_abs_builddir;;
21567 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21568 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21569 esac;;
21570esac
21571case $ac_abs_builddir in
21572.) ac_abs_srcdir=$ac_srcdir;;
21573*)
21574 case $ac_srcdir in
21575 .) ac_abs_srcdir=$ac_abs_builddir;;
21576 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21577 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21578 esac;;
21579esac
21580case $ac_abs_builddir in
21581.) ac_abs_top_srcdir=$ac_top_srcdir;;
21582*)
21583 case $ac_top_srcdir in
21584 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21585 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21586 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21587 esac;;
21588esac
21589
21590
21591 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21592echo "$as_me: executing $ac_dest commands" >&6;}
21593 case $ac_dest in
21594 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21595 # Strip MF so we end up with the name of the file.
21596 mf=`echo "$mf" | sed -e 's/:.*$//'`
21597 # Check whether this is an Automake generated Makefile or not.
21598 # We used to match only the files named `Makefile.in', but
21599 # some people rename them; so instead we look at the file content.
21600 # Grep'ing the first line is not enough: some people post-process
21601 # each Makefile.in and add a new line on top of each file to say so.
21602 # So let's grep whole file.
21603 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21604 dirpart=`(dirname "$mf") 2>/dev/null ||
21605$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21606 X"$mf" : 'X\(//\)[^/]' \| \
21607 X"$mf" : 'X\(//\)$' \| \
21608 X"$mf" : 'X\(/\)' \| \
21609 . : '\(.\)' 2>/dev/null ||
21610echo X"$mf" |
21611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21613 /^X\(\/\/\)$/{ s//\1/; q; }
21614 /^X\(\/\).*/{ s//\1/; q; }
21615 s/.*/./; q'`
21616 else
21617 continue
21618 fi
21619 # Extract the definition of DEPDIR, am__include, and am__quote
21620 # from the Makefile without running `make'.
21621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21622 test -z "$DEPDIR" && continue
21623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21624 test -z "am__include" && continue
21625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21626 # When using ansi2knr, U may be empty or an underscore; expand it
21627 U=`sed -n 's/^U = //p' < "$mf"`
21628 # Find all dependency output files, they are included files with
21629 # $(DEPDIR) in their names. We invoke sed twice because it is the
21630 # simplest approach to changing $(DEPDIR) to its actual value in the
21631 # expansion.
21632 for file in `sed -n "
21633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21635 # Make sure the directory exists.
21636 test -f "$dirpart/$file" && continue
21637 fdir=`(dirname "$file") 2>/dev/null ||
21638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21639 X"$file" : 'X\(//\)[^/]' \| \
21640 X"$file" : 'X\(//\)$' \| \
21641 X"$file" : 'X\(/\)' \| \
21642 . : '\(.\)' 2>/dev/null ||
21643echo X"$file" |
21644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21646 /^X\(\/\/\)$/{ s//\1/; q; }
21647 /^X\(\/\).*/{ s//\1/; q; }
21648 s/.*/./; q'`
21649 { if $as_mkdir_p; then
21650 mkdir -p $dirpart/$fdir
21651 else
21652 as_dir=$dirpart/$fdir
21653 as_dirs=
21654 while test ! -d "$as_dir"; do
21655 as_dirs="$as_dir $as_dirs"
21656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21658 X"$as_dir" : 'X\(//\)[^/]' \| \
21659 X"$as_dir" : 'X\(//\)$' \| \
21660 X"$as_dir" : 'X\(/\)' \| \
21661 . : '\(.\)' 2>/dev/null ||
21662echo X"$as_dir" |
21663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21665 /^X\(\/\/\)$/{ s//\1/; q; }
21666 /^X\(\/\).*/{ s//\1/; q; }
21667 s/.*/./; q'`
21668 done
21669 test ! -n "$as_dirs" || mkdir $as_dirs
21670 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21671echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21672 { (exit 1); exit 1; }; }; }
21673
21674 # echo "creating $dirpart/$file"
21675 echo '# dummy' > "$dirpart/$file"
21676 done
21677done
21678 ;;
21679 esac
21680done
21681_ACEOF
21682
21683cat >>$CONFIG_STATUS <<\_ACEOF
21684
21685{ (exit 0); exit 0; }
21686_ACEOF
21687chmod +x $CONFIG_STATUS
21688ac_clean_files=$ac_clean_files_save
21689
21690
21691# configure is writing to config.log, and then calls config.status.
21692# config.status does its own redirection, appending to config.log.
21693# Unfortunately, on DOS this fails, as config.log is still kept open
21694# by configure, so config.status won't be able to write to it; its
21695# output is simply discarded. So we exec the FD to /dev/null,
21696# effectively closing config.log, so it can be properly (re)opened and
21697# appended to by config.status. When coming back to configure, we
21698# need to make the FD available again.
21699if test "$no_create" != yes; then
21700 ac_cs_success=:
21701 ac_config_status_args=
21702 test "$silent" = yes &&
21703 ac_config_status_args="$ac_config_status_args --quiet"
21704 exec 5>/dev/null
21705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21706 exec 5>>config.log
21707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21708 # would make configure fail if this is the last instruction.
21709 $ac_cs_success || { (exit 1); exit 1; }
21710fi
21711