blob: cdc603b5ac0128d784aec5246f689d08d8fc66f1 [file] [log] [blame]
jjako52c24142002-12-16 13:33:51 +00001#! /bin/sh
jjako52c24142002-12-16 13:33:51 +00002# Guess values for system-dependent variables and create Makefiles.
jjakoacba8e62005-03-14 21:53:10 +00003# Generated by GNU Autoconf 2.59 for openggsn 0.84.
jjako5f1c3972003-01-29 11:56:06 +00004#
jjako286bc982003-01-28 23:17:50 +00005# Report bugs to <jj@openggsn.org>.
6#
jjakoacba8e62005-03-14 21:53:10 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
jjako52c24142002-12-16 13:33:51 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
jjako08d331d2003-10-13 20:33:30 +000010## --------------------- ##
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
jjakoacba8e62005-03-14 21:53:10 +000024DUALCASE=1; export DUALCASE # for MKS sh
jjako08d331d2003-10-13 20:33:30 +000025
26# Support unset when possible.
jjakoacba8e62005-03-14 21:53:10 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
jjako08d331d2003-10-13 20:33:30 +000028 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
jjakoacba8e62005-03-14 21:53:10 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
jjako08d331d2003-10-13 20:33:30 +000047 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
jjakoacba8e62005-03-14 21:53:10 +0000223 test -d ./-p && rmdir ./-p
jjako08d331d2003-10-13 20:33:30 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
jjakoacba8e62005-03-14 21:53:10 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
jjako08d331d2003-10-13 20:33:30 +0000231
232# Sed expression to map a string onto a valid variable name.
jjakoacba8e62005-03-14 21:53:10 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
jjako08d331d2003-10-13 20:33:30 +0000234
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
jjako52c24142002-12-16 13:33:51 +0000245
jjako286bc982003-01-28 23:17:50 +0000246
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 :
jjakoacba8e62005-03-14 21:53:10 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
jjako286bc982003-01-28 23:17:50 +0000265 # 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
jjakoacba8e62005-03-14 21:53:10 +0000276$*
jjako286bc982003-01-28 23:17:50 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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
jjakoacba8e62005-03-14 21:53:10 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako286bc982003-01-28 23:17:50 +0000311 for dir in $PATH /usr/ucb; do
jjakoacba8e62005-03-14 21:53:10 +0000312 IFS="$lt_save_ifs"
jjako286bc982003-01-28 23:17:50 +0000313 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
jjakoacba8e62005-03-14 21:53:10 +0000321 IFS="$lt_save_ifs"
jjako286bc982003-01-28 23:17:50 +0000322
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
jjakoacba8e62005-03-14 21:53:10 +0000395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
jjako286bc982003-01-28 23:17:50 +0000400# 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#
jjako52c24142002-12-16 13:33:51 +0000410ac_default_prefix=/usr/local
jjako08d331d2003-10-13 20:33:30 +0000411ac_config_libobj_dir=.
jjako286bc982003-01-28 23:17:50 +0000412cross_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='openggsn'
425PACKAGE_TARNAME='openggsn'
jjakoa24c7ec2004-12-30 23:37:18 +0000426PACKAGE_VERSION='0.84'
427PACKAGE_STRING='openggsn 0.84'
jjako286bc982003-01-28 23:17:50 +0000428PACKAGE_BUGREPORT='jj@openggsn.org'
429
430ac_unique_file="gtp/gtp.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
jjakoacba8e62005-03-14 21:53:10 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK CPP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB EGREP LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL EXEC_LDFLAGS EXEC_LDADD LIBOBJS CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LTLIBOBJS'
jjako08d331d2003-10-13 20:33:30 +0000469ac_subst_files=''
jjako52c24142002-12-16 13:33:51 +0000470
471# Initialize some variables set by options.
jjako286bc982003-01-28 23:17:50 +0000472ac_init_help=
473ac_init_version=false
jjako52c24142002-12-16 13:33:51 +0000474# The variables have the same names as the options, with
475# dashes changed to underlines.
jjako286bc982003-01-28 23:17:50 +0000476cache_file=/dev/null
jjako52c24142002-12-16 13:33:51 +0000477exec_prefix=NONE
jjako52c24142002-12-16 13:33:51 +0000478no_create=
jjako52c24142002-12-16 13:33:51 +0000479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
jjako52c24142002-12-16 13:33:51 +0000487verbose=
488x_includes=NONE
489x_libraries=NONE
jjako286bc982003-01-28 23:17:50 +0000490
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.
jjako52c24142002-12-16 13:33:51 +0000496bindir='${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
jjako52c24142002-12-16 13:33:51 +0000509ac_prev=
510for ac_option
511do
jjako52c24142002-12-16 13:33:51 +0000512 # 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
jjako286bc982003-01-28 23:17:50 +0000519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
jjako286bc982003-01-28 23:17:50 +0000523 case $ac_option in
jjako52c24142002-12-16 13:33:51 +0000524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
jjako286bc982003-01-28 23:17:50 +0000528 bindir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000529
530 -build | --build | --buil | --bui | --bu)
jjako286bc982003-01-28 23:17:50 +0000531 ac_prev=build_alias ;;
jjako52c24142002-12-16 13:33:51 +0000532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
jjako286bc982003-01-28 23:17:50 +0000533 build_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000534
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=*)
jjako286bc982003-01-28 23:17:50 +0000540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
jjako52c24142002-12-16 13:33:51 +0000544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
jjako286bc982003-01-28 23:17:50 +0000549 datadir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000550
551 -disable-* | --disable-*)
jjako286bc982003-01-28 23:17:50 +0000552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000553 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000554 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" ;;
jjako52c24142002-12-16 13:33:51 +0000559
560 -enable-* | --enable-*)
jjako286bc982003-01-28 23:17:50 +0000561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
jjako52c24142002-12-16 13:33:51 +0000562 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000563 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"`;;
jjako52c24142002-12-16 13:33:51 +0000569 *) ac_optarg=yes ;;
570 esac
jjako286bc982003-01-28 23:17:50 +0000571 eval "enable_$ac_feature='$ac_optarg'" ;;
jjako52c24142002-12-16 13:33:51 +0000572
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=*)
jjako286bc982003-01-28 23:17:50 +0000580 exec_prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
jjako286bc982003-01-28 23:17:50 +0000586 -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 ;;
jjako52c24142002-12-16 13:33:51 +0000592
593 -host | --host | --hos | --ho)
jjako286bc982003-01-28 23:17:50 +0000594 ac_prev=host_alias ;;
jjako52c24142002-12-16 13:33:51 +0000595 -host=* | --host=* | --hos=* | --ho=*)
jjako286bc982003-01-28 23:17:50 +0000596 host_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000597
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=*)
jjako286bc982003-01-28 23:17:50 +0000603 includedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
jjako286bc982003-01-28 23:17:50 +0000608 infodir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
jjako286bc982003-01-28 23:17:50 +0000613 libdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
jjako286bc982003-01-28 23:17:50 +0000620 libexecdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000621
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=*)
jjako286bc982003-01-28 23:17:50 +0000629 localstatedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
jjako286bc982003-01-28 23:17:50 +0000634 mandir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000635
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 \
jjako286bc982003-01-28 23:17:50 +0000641 | --no-cr | --no-c | -n)
jjako52c24142002-12-16 13:33:51 +0000642 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=*)
jjako286bc982003-01-28 23:17:50 +0000655 oldincludedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
jjako286bc982003-01-28 23:17:50 +0000660 prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000661
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=*)
jjako286bc982003-01-28 23:17:50 +0000667 program_prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000668
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=*)
jjako286bc982003-01-28 23:17:50 +0000674 program_suffix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000675
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=*)
jjako286bc982003-01-28 23:17:50 +0000691 program_transform_name=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000692
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=*)
jjako286bc982003-01-28 23:17:50 +0000701 sbindir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000702
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=*)
jjako286bc982003-01-28 23:17:50 +0000712 sharedstatedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
jjako286bc982003-01-28 23:17:50 +0000717 site=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
jjako286bc982003-01-28 23:17:50 +0000722 srcdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000723
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=*)
jjako286bc982003-01-28 23:17:50 +0000729 sysconfdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
jjako286bc982003-01-28 23:17:50 +0000732 ac_prev=target_alias ;;
jjako52c24142002-12-16 13:33:51 +0000733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
jjako286bc982003-01-28 23:17:50 +0000734 target_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
jjako286bc982003-01-28 23:17:50 +0000739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
jjako52c24142002-12-16 13:33:51 +0000741
742 -with-* | --with-*)
jjako286bc982003-01-28 23:17:50 +0000743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
jjako52c24142002-12-16 13:33:51 +0000744 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000745 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; }; }
jjako52c24142002-12-16 13:33:51 +0000748 ac_package=`echo $ac_package| sed 's/-/_/g'`
jjako286bc982003-01-28 23:17:50 +0000749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
jjako52c24142002-12-16 13:33:51 +0000751 *) ac_optarg=yes ;;
752 esac
jjako286bc982003-01-28 23:17:50 +0000753 eval "with_$ac_package='$ac_optarg'" ;;
jjako52c24142002-12-16 13:33:51 +0000754
755 -without-* | --without-*)
jjako286bc982003-01-28 23:17:50 +0000756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000757 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000758 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" ;;
jjako52c24142002-12-16 13:33:51 +0000763
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=*)
jjako286bc982003-01-28 23:17:50 +0000773 x_includes=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000774
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=*)
jjako286bc982003-01-28 23:17:50 +0000780 x_libraries=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000781
jjako286bc982003-01-28 23:17:50 +0000782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000785 ;;
786
jjako286bc982003-01-28 23:17:50 +0000787 *=*)
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
jjako52c24142002-12-16 13:33:51 +0000797 *)
jjako286bc982003-01-28 23:17:50 +0000798 # 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}
jjako52c24142002-12-16 13:33:51 +0000803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
jjako286bc982003-01-28 23:17:50 +0000809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000812fi
813
jjako286bc982003-01-28 23:17:50 +0000814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
jjako52c24142002-12-16 13:33:51 +0000816do
jjako286bc982003-01-28 23:17:50 +0000817 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; }; };;
jjako52c24142002-12-16 13:33:51 +0000822 esac
823done
824
jjako286bc982003-01-28 23:17:50 +0000825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
jjakoacba8e62005-03-14 21:53:10 +0000827 localstatedir libdir includedir oldincludedir infodir mandir
jjako286bc982003-01-28 23:17:50 +0000828do
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
jjako52c24142002-12-16 13:33:51 +0000836
jjako286bc982003-01-28 23:17:50 +0000837# 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
jjako52c24142002-12-16 13:33:51 +0000843
jjako286bc982003-01-28 23:17:50 +0000844# 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
jjako52c24142002-12-16 13:33:51 +0000860
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.
jjako286bc982003-01-28 23:17:50 +0000865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +0000867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
jjako286bc982003-01-28 23:17:50 +0000871echo 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'`
jjako52c24142002-12-16 13:33:51 +0000877 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
jjako286bc982003-01-28 23:17:50 +0000886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000888 else
jjako286bc982003-01-28 23:17:50 +0000889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000891 fi
892fi
jjako08d331d2003-10-13 20:33:30 +0000893(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; }; }
jjako286bc982003-01-28 23:17:50 +0000896srcdir=`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
jjakoacba8e62005-03-14 21:53:10 +0000937ac_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
jjako52c24142002-12-16 13:33:51 +0000949
jjako286bc982003-01-28 23:17:50 +0000950#
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
jjakoa24c7ec2004-12-30 23:37:18 +0000957\`configure' configures openggsn 0.84 to adapt to many kinds of systems.
jjako286bc982003-01-28 23:17:50 +0000958
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
jjakoacba8e62005-03-14 21:53:10 +0000982 [$ac_default_prefix]
jjako286bc982003-01-28 23:17:50 +0000983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jjakoacba8e62005-03-14 21:53:10 +0000984 [PREFIX]
jjako286bc982003-01-28 23:17:50 +0000985
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]
jjako77edc822004-09-10 17:19:31 +00001018 --target=TARGET configure for building compilers for TARGET [HOST]
jjako286bc982003-01-28 23:17:50 +00001019_ACEOF
1020fi
1021
1022if test -n "$ac_init_help"; then
1023 case $ac_init_help in
jjakoa24c7ec2004-12-30 23:37:18 +00001024 short | recursive ) echo "Configuration of openggsn 0.84:";;
jjako286bc982003-01-28 23:17:50 +00001025 esac
1026 cat <<\_ACEOF
1027
1028Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
jjakoacba8e62005-03-14 21:53:10 +00001031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
jjako286bc982003-01-28 23:17:50 +00001037 --disable-libtool-lock avoid locking (might break parallel builds)
jjakoa9639f32003-07-07 15:30:11 +00001038 --enable-static-exec Enable static linking of executables
jjakoacba8e62005-03-14 21:53:10 +00001039 --disable-dependency-tracking speeds up one-time build
1040 --enable-dependency-tracking do not reject slow dependency extractors
jjako286bc982003-01-28 23:17:50 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
jjakoacba8e62005-03-14 21:53:10 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
jjako286bc982003-01-28 23:17:50 +00001050
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
jjakoacba8e62005-03-14 21:53:10 +00001061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
jjako286bc982003-01-28 23:17:50 +00001064
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 <jj@openggsn.org>.
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
jjakoacba8e62005-03-14 21:53:10 +00001102
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
jjako286bc982003-01-28 23:17:50 +00001141
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 ||
jjakoacba8e62005-03-14 21:53:10 +00001151 test -f $ac_srcdir/configure.in; then
jjako286bc982003-01-28 23:17:50 +00001152 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
jjakoa24c7ec2004-12-30 23:37:18 +00001164openggsn configure 0.84
jjakoacba8e62005-03-14 21:53:10 +00001165generated by GNU Autoconf 2.59
jjako286bc982003-01-28 23:17:50 +00001166
jjakoacba8e62005-03-14 21:53:10 +00001167Copyright (C) 2003 Free Software Foundation, Inc.
jjako286bc982003-01-28 23:17:50 +00001168This 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
jjakoa24c7ec2004-12-30 23:37:18 +00001178It was created by openggsn $as_me 0.84, which was
jjakoacba8e62005-03-14 21:53:10 +00001179generated by GNU Autoconf 2.59. Invocation command line was
jjako286bc982003-01-28 23:17:50 +00001180
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.
jjako08d331d2003-10-13 20:33:30 +00001231# Strip out --silent because we don't want to record it for future runs.
jjako286bc982003-01-28 23:17:50 +00001232# Also quote any args containing shell meta-characters.
jjako08d331d2003-10-13 20:33:30 +00001233# Make two passes to allow for proper duplicate-argument suppression.
jjako286bc982003-01-28 23:17:50 +00001234ac_configure_args=
jjako08d331d2003-10-13 20:33:30 +00001235ac_configure_args0=
1236ac_configure_args1=
jjako286bc982003-01-28 23:17:50 +00001237ac_sep=
jjako08d331d2003-10-13 20:33:30 +00001238ac_must_keep_next=false
1239for ac_pass in 1 2
jjako286bc982003-01-28 23:17:50 +00001240do
jjako08d331d2003-10-13 20:33:30 +00001241 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
jjakoacba8e62005-03-14 21:53:10 +00001256 ac_must_keep_next=false # Got value, back to normal.
jjako08d331d2003-10-13 20:33:30 +00001257 else
jjakoacba8e62005-03-14 21:53:10 +00001258 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
jjako08d331d2003-10-13 20:33:30 +00001269 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
jjako286bc982003-01-28 23:17:50 +00001276done
jjako08d331d2003-10-13 20:33:30 +00001277$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; }
jjako286bc982003-01-28 23:17:50 +00001279
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
jjako08d331d2003-10-13 20:33:30 +00001289
jjako286bc982003-01-28 23:17:50 +00001290 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 \
jjakoacba8e62005-03-14 21:53:10 +00001302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
jjako286bc982003-01-28 23:17:50 +00001304 ;;
1305 *)
1306 sed -n \
jjakoacba8e62005-03-14 21:53:10 +00001307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
jjako286bc982003-01-28 23:17:50 +00001308 ;;
1309 esac;
1310}
1311 echo
jjako08d331d2003-10-13 20:33:30 +00001312
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`
jjakoacba8e62005-03-14 21:53:10 +00001336 echo "$ac_var='"'"'$ac_val'"'"'"
jjako08d331d2003-10-13 20:33:30 +00001337 done | sort
1338 echo
1339 fi
1340
jjako286bc982003-01-28 23:17:50 +00001341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347 echo
jjako08d331d2003-10-13 20:33:30 +00001348 sed "/^$/d" confdefs.h | sort
jjako286bc982003-01-28 23:17:50 +00001349 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
jjakoacba8e62005-03-14 21:53:10 +00001355 rm -f core *.core &&
jjako286bc982003-01-28 23:17:50 +00001356 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.
jjako52c24142002-12-16 13:33:51 +00001397# 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
jjako286bc982003-01-28 23:17:50 +00001407 { 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
jjako52c24142002-12-16 13:33:51 +00001410 . "$ac_site_file"
1411 fi
1412done
1413
1414if test -r "$cache_file"; then
jjako286bc982003-01-28 23:17:50 +00001415 # 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
jjako52c24142002-12-16 13:33:51 +00001425else
jjako286bc982003-01-28 23:17:50 +00001426 { 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 |
jjakoacba8e62005-03-14 21:53:10 +00001435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
jjako286bc982003-01-28 23:17:50 +00001436 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
jjakoacba8e62005-03-14 21:53:10 +00001452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
jjako286bc982003-01-28 23:17:50 +00001453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
jjakoacba8e62005-03-14 21:53:10 +00001454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
jjako286bc982003-01-28 23:17:50 +00001455echo "$as_me: former value: $ac_old_val" >&2;}
jjakoacba8e62005-03-14 21:53:10 +00001456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
jjako286bc982003-01-28 23:17:50 +00001457echo "$as_me: current value: $ac_new_val" >&2;}
jjakoacba8e62005-03-14 21:53:10 +00001458 ac_cache_corrupted=:
jjako286bc982003-01-28 23:17:50 +00001459 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; }; }
jjako52c24142002-12-16 13:33:51 +00001480fi
1481
1482ac_ext=c
jjako52c24142002-12-16 13:33:51 +00001483ac_cpp='$CPP $CPPFLAGS'
jjako286bc982003-01-28 23:17:50 +00001484ac_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
jjako52c24142002-12-16 13:33:51 +00001487
1488
1489
jjako52c24142002-12-16 13:33:51 +00001490
jjako52c24142002-12-16 13:33:51 +00001491
jjako286bc982003-01-28 23:17:50 +00001492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
jjako08d331d2003-10-13 20:33:30 +00001514
jjako08d331d2003-10-13 20:33:30 +00001515 ac_config_headers="$ac_config_headers config.h"
jjako286bc982003-01-28 23:17:50 +00001516
jjako286bc982003-01-28 23:17:50 +00001517#AC_CONFIG_HEADER([config.h])
1518
jjako77edc822004-09-10 17:19:31 +00001519ac_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# Make sure we can run config.sub.
1545$ac_config_sub sun4 >/dev/null 2>&1 ||
1546 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1547echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550echo "$as_me:$LINENO: checking build system type" >&5
1551echo $ECHO_N "checking build system type... $ECHO_C" >&6
1552if test "${ac_cv_build+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_build_alias=$build_alias
1556test -z "$ac_cv_build_alias" &&
1557 ac_cv_build_alias=`$ac_config_guess`
1558test -z "$ac_cv_build_alias" &&
1559 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1560echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1561 { (exit 1); exit 1; }; }
1562ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1566
1567fi
1568echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1569echo "${ECHO_T}$ac_cv_build" >&6
1570build=$ac_cv_build
1571build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576echo "$as_me:$LINENO: checking host system type" >&5
1577echo $ECHO_N "checking host system type... $ECHO_C" >&6
1578if test "${ac_cv_host+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581 ac_cv_host_alias=$host_alias
1582test -z "$ac_cv_host_alias" &&
1583 ac_cv_host_alias=$ac_cv_build_alias
1584ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1588
1589fi
1590echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1591echo "${ECHO_T}$ac_cv_host" >&6
1592host=$ac_cv_host
1593host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
1597
1598echo "$as_me:$LINENO: checking target system type" >&5
1599echo $ECHO_N "checking target system type... $ECHO_C" >&6
1600if test "${ac_cv_target+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 ac_cv_target_alias=$target_alias
1604test "x$ac_cv_target_alias" = "x" &&
1605 ac_cv_target_alias=$ac_cv_host_alias
1606ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1608echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1610
1611fi
1612echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1613echo "${ECHO_T}$ac_cv_target" >&6
1614target=$ac_cv_target
1615target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618
1619
1620# The aliases save the names the user supplied, while $host etc.
1621# will get canonicalized.
1622test -n "$target_alias" &&
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1624 NONENONEs,x,x, &&
1625 program_prefix=${target_alias}-
1626
jjako286bc982003-01-28 23:17:50 +00001627# Checks for programs.
1628ac_ext=c
1629ac_cpp='$CPP $CPPFLAGS'
1630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1632ac_compiler_gnu=$ac_cv_c_compiler_gnu
1633if test -n "$ac_tool_prefix"; then
1634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1635set dummy ${ac_tool_prefix}gcc; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001640else
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1643else
jjako286bc982003-01-28 23:17:50 +00001644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1654 fi
1655done
1656done
1657
jjako52c24142002-12-16 13:33:51 +00001658fi
1659fi
jjako286bc982003-01-28 23:17:50 +00001660CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001661if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001662 echo "$as_me:$LINENO: result: $CC" >&5
1663echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001664else
jjako286bc982003-01-28 23:17:50 +00001665 echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
1667fi
1668
1669fi
1670if test -z "$ac_cv_prog_CC"; then
1671 ac_ct_CC=$CC
1672 # Extract the first word of "gcc", so it can be a program name with args.
1673set dummy gcc; ac_word=$2
1674echo "$as_me:$LINENO: checking for $ac_word" >&5
1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679 if test -n "$ac_ct_CC"; then
1680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1681else
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_ac_ct_CC="gcc"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1692 fi
1693done
1694done
1695
1696fi
1697fi
1698ac_ct_CC=$ac_cv_prog_ac_ct_CC
1699if test -n "$ac_ct_CC"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701echo "${ECHO_T}$ac_ct_CC" >&6
1702else
1703 echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707 CC=$ac_ct_CC
1708else
1709 CC="$ac_cv_prog_CC"
jjako52c24142002-12-16 13:33:51 +00001710fi
1711
1712if test -z "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001713 if test -n "$ac_tool_prefix"; then
1714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1715set dummy ${ac_tool_prefix}cc; ac_word=$2
1716echo "$as_me:$LINENO: checking for $ac_word" >&5
1717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001720else
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1723else
jjako286bc982003-01-28 23:17:50 +00001724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725for as_dir in $PATH
1726do
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_CC="${ac_tool_prefix}cc"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1734 fi
1735done
1736done
1737
1738fi
1739fi
1740CC=$ac_cv_prog_CC
1741if test -n "$CC"; then
1742 echo "$as_me:$LINENO: result: $CC" >&5
1743echo "${ECHO_T}$CC" >&6
1744else
1745 echo "$as_me:$LINENO: result: no" >&5
1746echo "${ECHO_T}no" >&6
1747fi
1748
1749fi
1750if test -z "$ac_cv_prog_CC"; then
1751 ac_ct_CC=$CC
1752 # Extract the first word of "cc", so it can be a program name with args.
1753set dummy cc; ac_word=$2
1754echo "$as_me:$LINENO: checking for $ac_word" >&5
1755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759 if test -n "$ac_ct_CC"; then
1760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1761else
1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_ac_ct_CC="cc"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1772 fi
1773done
1774done
1775
1776fi
1777fi
1778ac_ct_CC=$ac_cv_prog_ac_ct_CC
1779if test -n "$ac_ct_CC"; then
1780 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1781echo "${ECHO_T}$ac_ct_CC" >&6
1782else
1783 echo "$as_me:$LINENO: result: no" >&5
1784echo "${ECHO_T}no" >&6
1785fi
1786
1787 CC=$ac_ct_CC
1788else
1789 CC="$ac_cv_prog_CC"
1790fi
1791
1792fi
1793if test -z "$CC"; then
1794 # Extract the first word of "cc", so it can be a program name with args.
1795set dummy cc; ac_word=$2
1796echo "$as_me:$LINENO: checking for $ac_word" >&5
1797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798if test "${ac_cv_prog_CC+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801 if test -n "$CC"; then
1802 ac_cv_prog_CC="$CC" # Let the user override the test.
1803else
jjako52c24142002-12-16 13:33:51 +00001804 ac_prog_rejected=no
jjako286bc982003-01-28 23:17:50 +00001805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806for as_dir in $PATH
1807do
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1813 ac_prog_rejected=yes
1814 continue
1815 fi
1816 ac_cv_prog_CC="cc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 break 2
1819 fi
1820done
1821done
1822
jjako52c24142002-12-16 13:33:51 +00001823if test $ac_prog_rejected = yes; then
1824 # We found a bogon in the path, so make sure we never use it.
1825 set dummy $ac_cv_prog_CC
1826 shift
jjako286bc982003-01-28 23:17:50 +00001827 if test $# != 0; then
jjako52c24142002-12-16 13:33:51 +00001828 # We chose a different compiler from the bogus one.
1829 # However, it has the same basename, so the bogon will be chosen
1830 # first if we set CC to just the basename; use the full file name.
1831 shift
jjako08d331d2003-10-13 20:33:30 +00001832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
jjako52c24142002-12-16 13:33:51 +00001833 fi
1834fi
1835fi
1836fi
jjako286bc982003-01-28 23:17:50 +00001837CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001838if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001839 echo "$as_me:$LINENO: result: $CC" >&5
1840echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001841else
jjako286bc982003-01-28 23:17:50 +00001842 echo "$as_me:$LINENO: result: no" >&5
1843echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001844fi
1845
jjako286bc982003-01-28 23:17:50 +00001846fi
1847if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 for ac_prog in cl
1850 do
1851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1853echo "$as_me:$LINENO: checking for $ac_word" >&5
1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855if test "${ac_cv_prog_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001857else
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1860else
jjako286bc982003-01-28 23:17:50 +00001861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862for as_dir in $PATH
1863do
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 break 2
jjako52c24142002-12-16 13:33:51 +00001871 fi
jjako286bc982003-01-28 23:17:50 +00001872done
1873done
1874
1875fi
1876fi
1877CC=$ac_cv_prog_CC
1878if test -n "$CC"; then
1879 echo "$as_me:$LINENO: result: $CC" >&5
1880echo "${ECHO_T}$CC" >&6
1881else
1882 echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001884fi
1885
jjako286bc982003-01-28 23:17:50 +00001886 test -n "$CC" && break
1887 done
1888fi
1889if test -z "$CC"; then
1890 ac_ct_CC=$CC
1891 for ac_prog in cl
1892do
1893 # Extract the first word of "$ac_prog", so it can be a program name with args.
1894set dummy $ac_prog; ac_word=$2
1895echo "$as_me:$LINENO: checking for $ac_word" >&5
1896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899else
1900 if test -n "$ac_ct_CC"; then
1901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1902else
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_ac_ct_CC="$ac_prog"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914done
1915done
jjako52c24142002-12-16 13:33:51 +00001916
jjako286bc982003-01-28 23:17:50 +00001917fi
1918fi
1919ac_ct_CC=$ac_cv_prog_ac_ct_CC
1920if test -n "$ac_ct_CC"; then
1921 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1922echo "${ECHO_T}$ac_ct_CC" >&6
1923else
1924 echo "$as_me:$LINENO: result: no" >&5
1925echo "${ECHO_T}no" >&6
1926fi
jjako52c24142002-12-16 13:33:51 +00001927
jjako286bc982003-01-28 23:17:50 +00001928 test -n "$ac_ct_CC" && break
1929done
jjako52c24142002-12-16 13:33:51 +00001930
jjako286bc982003-01-28 23:17:50 +00001931 CC=$ac_ct_CC
1932fi
1933
1934fi
1935
1936
jjako08d331d2003-10-13 20:33:30 +00001937test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1938See \`config.log' for more details." >&5
1939echo "$as_me: error: no acceptable C compiler found in \$PATH
1940See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00001941 { (exit 1); exit 1; }; }
1942
1943# Provide some information about the compiler.
1944echo "$as_me:$LINENO:" \
1945 "checking for C compiler version" >&5
1946ac_compiler=`set X $ac_compile; echo $2`
1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1948 (eval $ac_compiler --version </dev/null >&5) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1953 (eval $ac_compiler -v </dev/null >&5) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1957{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1958 (eval $ac_compiler -V </dev/null >&5) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }
1962
1963cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00001964/* confdefs.h. */
1965_ACEOF
1966cat confdefs.h >>conftest.$ac_ext
1967cat >>conftest.$ac_ext <<_ACEOF
1968/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00001969
jjako286bc982003-01-28 23:17:50 +00001970int
1971main ()
1972{
1973
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978ac_clean_files_save=$ac_clean_files
jjako08d331d2003-10-13 20:33:30 +00001979ac_clean_files="$ac_clean_files a.out a.exe b.out"
jjako286bc982003-01-28 23:17:50 +00001980# Try to create an executable without -o first, disregard a.out.
1981# It will help us diagnose broken compilers, and finding out an intuition
1982# of exeext.
jjakoacba8e62005-03-14 21:53:10 +00001983echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1984echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00001985ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1986if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1987 (eval $ac_link_default) 2>&5
1988 ac_status=$?
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; then
1991 # Find the output, starting from the most likely. This scheme is
1992# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1993# resort.
1994
1995# Be careful to initialize this variable, since it used to be cached.
1996# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1997ac_cv_exeext=
jjako08d331d2003-10-13 20:33:30 +00001998# b.out is created by i960 compilers.
1999for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2000do
2001 test -f "$ac_file" || continue
jjako286bc982003-01-28 23:17:50 +00002002 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00002003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
jjakoacba8e62005-03-14 21:53:10 +00002004 ;;
jjako08d331d2003-10-13 20:33:30 +00002005 conftest.$ac_ext )
jjakoacba8e62005-03-14 21:53:10 +00002006 # This is the source file.
2007 ;;
jjako08d331d2003-10-13 20:33:30 +00002008 [ab].out )
jjakoacba8e62005-03-14 21:53:10 +00002009 # We found the default executable, but exeext='' is most
2010 # certainly right.
2011 break;;
jjako08d331d2003-10-13 20:33:30 +00002012 *.* )
jjakoacba8e62005-03-14 21:53:10 +00002013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2014 # FIXME: I believe we export ac_cv_exeext for Libtool,
2015 # but it would be cool to find out if it's true. Does anybody
2016 # maintain Libtool? --akim.
2017 export ac_cv_exeext
2018 break;;
jjako08d331d2003-10-13 20:33:30 +00002019 * )
jjakoacba8e62005-03-14 21:53:10 +00002020 break;;
jjako286bc982003-01-28 23:17:50 +00002021 esac
2022done
jjako52c24142002-12-16 13:33:51 +00002023else
jjako286bc982003-01-28 23:17:50 +00002024 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2028See \`config.log' for more details." >&5
2029echo "$as_me: error: C compiler cannot create executables
2030See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002031 { (exit 77); exit 77; }; }
jjako52c24142002-12-16 13:33:51 +00002032fi
2033
jjako286bc982003-01-28 23:17:50 +00002034ac_exeext=$ac_cv_exeext
2035echo "$as_me:$LINENO: result: $ac_file" >&5
2036echo "${ECHO_T}$ac_file" >&6
jjako52c24142002-12-16 13:33:51 +00002037
jjako286bc982003-01-28 23:17:50 +00002038# Check the compiler produces executables we can run. If not, either
2039# the compiler is broken, or we cross compile.
2040echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2041echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2042# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2043# If not cross compiling, check that we can run a simple program.
2044if test "$cross_compiling" != yes; then
2045 if { ac_try='./$ac_file'
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 (eval $ac_try) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; }; then
2051 cross_compiling=no
2052 else
2053 if test "$cross_compiling" = maybe; then
2054 cross_compiling=yes
2055 else
2056 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
jjako08d331d2003-10-13 20:33:30 +00002057If you meant to cross compile, use \`--host'.
2058See \`config.log' for more details." >&5
jjako286bc982003-01-28 23:17:50 +00002059echo "$as_me: error: cannot run C compiled programs.
jjako08d331d2003-10-13 20:33:30 +00002060If you meant to cross compile, use \`--host'.
2061See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002062 { (exit 1); exit 1; }; }
2063 fi
2064 fi
2065fi
2066echo "$as_me:$LINENO: result: yes" >&5
2067echo "${ECHO_T}yes" >&6
2068
jjako08d331d2003-10-13 20:33:30 +00002069rm -f a.out a.exe conftest$ac_cv_exeext b.out
jjako286bc982003-01-28 23:17:50 +00002070ac_clean_files=$ac_clean_files_save
2071# Check the compiler produces executables we can run. If not, either
2072# the compiler is broken, or we cross compile.
2073echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2074echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2075echo "$as_me:$LINENO: result: $cross_compiling" >&5
2076echo "${ECHO_T}$cross_compiling" >&6
2077
2078echo "$as_me:$LINENO: checking for suffix of executables" >&5
2079echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2081 (eval $ac_link) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; then
2085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2086# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2087# work properly (i.e., refer to `conftest.exe'), while it won't with
2088# `rm'.
jjako08d331d2003-10-13 20:33:30 +00002089for ac_file in conftest.exe conftest conftest.*; do
2090 test -f "$ac_file" || continue
jjako286bc982003-01-28 23:17:50 +00002091 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00002092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
jjako286bc982003-01-28 23:17:50 +00002093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
jjakoacba8e62005-03-14 21:53:10 +00002094 export ac_cv_exeext
2095 break;;
jjako286bc982003-01-28 23:17:50 +00002096 * ) break;;
2097 esac
2098done
jjako52c24142002-12-16 13:33:51 +00002099else
jjako08d331d2003-10-13 20:33:30 +00002100 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2101See \`config.log' for more details." >&5
2102echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2103See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002104 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00002105fi
2106
jjako286bc982003-01-28 23:17:50 +00002107rm -f conftest$ac_cv_exeext
2108echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2109echo "${ECHO_T}$ac_cv_exeext" >&6
2110
2111rm -f conftest.$ac_ext
2112EXEEXT=$ac_cv_exeext
2113ac_exeext=$EXEEXT
2114echo "$as_me:$LINENO: checking for suffix of object files" >&5
2115echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2116if test "${ac_cv_objext+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002118else
jjako286bc982003-01-28 23:17:50 +00002119 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002120/* confdefs.h. */
2121_ACEOF
2122cat confdefs.h >>conftest.$ac_ext
2123cat >>conftest.$ac_ext <<_ACEOF
2124/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002125
jjako286bc982003-01-28 23:17:50 +00002126int
2127main ()
2128{
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134rm -f conftest.o conftest.obj
2135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; then
2140 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2141 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00002142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
jjako286bc982003-01-28 23:17:50 +00002143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2144 break;;
2145 esac
2146done
2147else
2148 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2152See \`config.log' for more details." >&5
2153echo "$as_me: error: cannot compute suffix of object files: cannot compile
2154See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002155 { (exit 1); exit 1; }; }
2156fi
2157
2158rm -f conftest.$ac_cv_objext conftest.$ac_ext
2159fi
2160echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2161echo "${ECHO_T}$ac_cv_objext" >&6
2162OBJEXT=$ac_cv_objext
2163ac_objext=$OBJEXT
2164echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2165echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2166if test "${ac_cv_c_compiler_gnu+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
2169 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002170/* confdefs.h. */
2171_ACEOF
2172cat confdefs.h >>conftest.$ac_ext
2173cat >>conftest.$ac_ext <<_ACEOF
2174/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002175
jjako286bc982003-01-28 23:17:50 +00002176int
2177main ()
2178{
2179#ifndef __GNUC__
2180 choke me
2181#endif
2182
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187rm -f conftest.$ac_objext
2188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00002189 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00002190 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00002191 grep -v '^ *+' conftest.er1 >conftest.err
2192 rm -f conftest.er1
2193 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00002194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00002196 { ac_try='test -z "$ac_c_werror_flag"
2197 || test ! -s conftest.err'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; } &&
2203 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00002204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2209 ac_compiler_gnu=yes
2210else
2211 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002212sed 's/^/| /' conftest.$ac_ext >&5
2213
jjako286bc982003-01-28 23:17:50 +00002214ac_compiler_gnu=no
2215fi
jjakoacba8e62005-03-14 21:53:10 +00002216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00002217ac_cv_c_compiler_gnu=$ac_compiler_gnu
2218
2219fi
2220echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2221echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2222GCC=`test $ac_compiler_gnu = yes && echo yes`
2223ac_test_CFLAGS=${CFLAGS+set}
2224ac_save_CFLAGS=$CFLAGS
2225CFLAGS="-g"
2226echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2227echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2228if test "${ac_cv_prog_cc_g+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002232/* confdefs.h. */
2233_ACEOF
2234cat confdefs.h >>conftest.$ac_ext
2235cat >>conftest.$ac_ext <<_ACEOF
2236/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002237
jjako286bc982003-01-28 23:17:50 +00002238int
2239main ()
2240{
2241
2242 ;
2243 return 0;
2244}
2245_ACEOF
2246rm -f conftest.$ac_objext
2247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00002248 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00002249 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00002250 grep -v '^ *+' conftest.er1 >conftest.err
2251 rm -f conftest.er1
2252 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00002253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00002255 { ac_try='test -z "$ac_c_werror_flag"
2256 || test ! -s conftest.err'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; } &&
2262 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00002263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00002268 ac_cv_prog_cc_g=yes
2269else
jjako286bc982003-01-28 23:17:50 +00002270 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002271sed 's/^/| /' conftest.$ac_ext >&5
2272
jjako286bc982003-01-28 23:17:50 +00002273ac_cv_prog_cc_g=no
jjako52c24142002-12-16 13:33:51 +00002274fi
jjakoacba8e62005-03-14 21:53:10 +00002275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00002276fi
jjako286bc982003-01-28 23:17:50 +00002277echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
jjako52c24142002-12-16 13:33:51 +00002279if test "$ac_test_CFLAGS" = set; then
jjako286bc982003-01-28 23:17:50 +00002280 CFLAGS=$ac_save_CFLAGS
jjako52c24142002-12-16 13:33:51 +00002281elif test $ac_cv_prog_cc_g = yes; then
2282 if test "$GCC" = yes; then
2283 CFLAGS="-g -O2"
2284 else
2285 CFLAGS="-g"
2286 fi
2287else
2288 if test "$GCC" = yes; then
2289 CFLAGS="-O2"
2290 else
2291 CFLAGS=
2292 fi
2293fi
jjako08d331d2003-10-13 20:33:30 +00002294echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2295echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2296if test "${ac_cv_prog_cc_stdc+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298else
2299 ac_cv_prog_cc_stdc=no
2300ac_save_CC=$CC
2301cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h. */
2307#include <stdarg.h>
2308#include <stdio.h>
2309#include <sys/types.h>
2310#include <sys/stat.h>
2311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2312struct buf { int x; };
2313FILE * (*rcsopen) (struct buf *, struct stat *, int);
2314static char *e (p, i)
2315 char **p;
2316 int i;
2317{
2318 return p[i];
2319}
2320static char *f (char * (*g) (char **, int), char **p, ...)
2321{
2322 char *s;
2323 va_list v;
2324 va_start (v,p);
2325 s = g (p, va_arg (v,int));
2326 va_end (v);
2327 return s;
2328}
jjakoacba8e62005-03-14 21:53:10 +00002329
2330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2331 function prototypes and stuff, but not '\xHH' hex character constants.
2332 These don't provoke an error unfortunately, instead are silently treated
2333 as 'x'. The following induces an error, until -std1 is added to get
2334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2335 array size at least. It's necessary to write '\x00'==0 to get something
2336 that's true only with -std1. */
2337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2338
jjako08d331d2003-10-13 20:33:30 +00002339int test (int i, double x);
2340struct s1 {int (*f) (int a);};
2341struct s2 {int (*f) (double a);};
2342int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2343int argc;
2344char **argv;
2345int
2346main ()
2347{
2348return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353# Don't try gcc -ansi; that turns off useful extensions and
2354# breaks some systems' header files.
2355# AIX -qlanglvl=ansi
2356# Ultrix and OSF/1 -std1
2357# HP-UX 10.20 and later -Ae
2358# HP-UX older versions -Aa -D_HPUX_SOURCE
2359# SVR4 -Xc -D__EXTENSIONS__
2360for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2361do
2362 CC="$ac_save_CC $ac_arg"
2363 rm -f conftest.$ac_objext
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00002365 (eval $ac_compile) 2>conftest.er1
jjako08d331d2003-10-13 20:33:30 +00002366 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00002367 grep -v '^ *+' conftest.er1 >conftest.err
2368 rm -f conftest.er1
2369 cat conftest.err >&5
jjako08d331d2003-10-13 20:33:30 +00002370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00002372 { ac_try='test -z "$ac_c_werror_flag"
2373 || test ! -s conftest.err'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; } &&
2379 { ac_try='test -s conftest.$ac_objext'
jjako08d331d2003-10-13 20:33:30 +00002380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2385 ac_cv_prog_cc_stdc=$ac_arg
2386break
2387else
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391fi
jjakoacba8e62005-03-14 21:53:10 +00002392rm -f conftest.err conftest.$ac_objext
jjako08d331d2003-10-13 20:33:30 +00002393done
2394rm -f conftest.$ac_ext conftest.$ac_objext
2395CC=$ac_save_CC
2396
2397fi
2398
2399case "x$ac_cv_prog_cc_stdc" in
2400 x|xno)
2401 echo "$as_me:$LINENO: result: none needed" >&5
2402echo "${ECHO_T}none needed" >&6 ;;
2403 *)
2404 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2405echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2406 CC="$CC $ac_cv_prog_cc_stdc" ;;
2407esac
2408
jjako286bc982003-01-28 23:17:50 +00002409# Some people use a C++ compiler to compile C. Since we use `exit',
2410# in C++ we need to declare it. In case someone uses the same compiler
2411# for both compiling C and C++ we need to have the C++ compiler decide
2412# the declaration of exit, since it's the most demanding environment.
2413cat >conftest.$ac_ext <<_ACEOF
2414#ifndef __cplusplus
2415 choke me
2416#endif
2417_ACEOF
2418rm -f conftest.$ac_objext
2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00002420 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00002421 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00002422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00002425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00002427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00002435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 for ac_declaration in \
jjakoacba8e62005-03-14 21:53:10 +00002441 '' \
jjako286bc982003-01-28 23:17:50 +00002442 'extern "C" void std::exit (int) throw (); using std::exit;' \
2443 'extern "C" void std::exit (int); using std::exit;' \
2444 'extern "C" void exit (int) throw ();' \
2445 'extern "C" void exit (int);' \
2446 'void exit (int);'
2447do
2448 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002454$ac_declaration
jjakoacba8e62005-03-14 21:53:10 +00002455#include <stdlib.h>
jjako286bc982003-01-28 23:17:50 +00002456int
2457main ()
2458{
2459exit (42);
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00002466 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00002467 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00002468 grep -v '^ *+' conftest.er1 >conftest.err
2469 rm -f conftest.er1
2470 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00002471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00002473 { ac_try='test -z "$ac_c_werror_flag"
2474 || test ! -s conftest.err'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00002481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 :
2487else
2488 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002489sed 's/^/| /' conftest.$ac_ext >&5
2490
jjako286bc982003-01-28 23:17:50 +00002491continue
2492fi
jjakoacba8e62005-03-14 21:53:10 +00002493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00002494 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002495/* confdefs.h. */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002500$ac_declaration
jjako286bc982003-01-28 23:17:50 +00002501int
2502main ()
2503{
2504exit (42);
2505 ;
2506 return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00002511 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00002512 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00002513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00002516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00002518 { ac_try='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00002526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 break
2532else
2533 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002534sed 's/^/| /' conftest.$ac_ext >&5
2535
jjako286bc982003-01-28 23:17:50 +00002536fi
jjakoacba8e62005-03-14 21:53:10 +00002537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00002538done
2539rm -f conftest*
2540if test -n "$ac_declaration"; then
2541 echo '#ifdef __cplusplus' >>confdefs.h
2542 echo $ac_declaration >>confdefs.h
2543 echo '#endif' >>confdefs.h
2544fi
2545
2546else
2547 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002548sed 's/^/| /' conftest.$ac_ext >&5
2549
jjako286bc982003-01-28 23:17:50 +00002550fi
jjakoacba8e62005-03-14 21:53:10 +00002551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00002552ac_ext=c
2553ac_cpp='$CPP $CPPFLAGS'
2554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00002557
jjako52c24142002-12-16 13:33:51 +00002558# Find a good install program. We prefer a C program (faster),
2559# so one script is as good as another. But avoid the broken or
2560# incompatible versions:
2561# SysV /etc/install, /usr/sbin/install
2562# SunOS /usr/etc/install
2563# IRIX /sbin/install
2564# AIX /bin/install
jjako286bc982003-01-28 23:17:50 +00002565# AmigaOS /C/install, which installs bootblocks on floppy discs
jjako52c24142002-12-16 13:33:51 +00002566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
jjakoacba8e62005-03-14 21:53:10 +00002569# OS/2's system install, which has a completely different semantic
jjako52c24142002-12-16 13:33:51 +00002570# ./install, which can be erroneously created by make from ./install.sh.
jjako286bc982003-01-28 23:17:50 +00002571echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2572echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002573if test -z "$INSTALL"; then
jjako286bc982003-01-28 23:17:50 +00002574if test "${ac_cv_path_install+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002576else
jjako286bc982003-01-28 23:17:50 +00002577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 # Account for people who put trailing slashes in PATH elements.
2583case $as_dir/ in
2584 ./ | .// | /cC/* | \
2585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jjakoacba8e62005-03-14 21:53:10 +00002586 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
jjako286bc982003-01-28 23:17:50 +00002587 /usr/ucb/* ) ;;
2588 *)
2589 # OSF1 and SCO ODT 3.0 have their own names for install.
2590 # Don't use installbsd from OSF since it installs stuff as root
2591 # by default.
2592 for ac_prog in ginstall scoinst install; do
2593 for ac_exec_ext in '' $ac_executable_extensions; do
jjakoacba8e62005-03-14 21:53:10 +00002594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2595 if test $ac_prog = install &&
2596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597 # AIX install. It has an incompatible calling convention.
2598 :
2599 elif test $ac_prog = install &&
2600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # program-specific install script used by HP pwplus--don't use.
2602 :
2603 else
2604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2605 break 3
2606 fi
2607 fi
jjako52c24142002-12-16 13:33:51 +00002608 done
jjako286bc982003-01-28 23:17:50 +00002609 done
2610 ;;
2611esac
2612done
2613
jjako52c24142002-12-16 13:33:51 +00002614
2615fi
2616 if test "${ac_cv_path_install+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00002617 INSTALL=$ac_cv_path_install
jjako52c24142002-12-16 13:33:51 +00002618 else
2619 # As a last resort, use the slow shell script. We don't cache a
2620 # path for INSTALL within a source directory, because that will
2621 # break other packages using the cache if that directory is
2622 # removed, or if the path is relative.
jjako286bc982003-01-28 23:17:50 +00002623 INSTALL=$ac_install_sh
jjako52c24142002-12-16 13:33:51 +00002624 fi
2625fi
jjako286bc982003-01-28 23:17:50 +00002626echo "$as_me:$LINENO: result: $INSTALL" >&5
2627echo "${ECHO_T}$INSTALL" >&6
jjako52c24142002-12-16 13:33:51 +00002628
2629# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2630# It thinks the first close brace ends the variable substitution.
2631test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2632
jjako286bc982003-01-28 23:17:50 +00002633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
jjako52c24142002-12-16 13:33:51 +00002634
2635test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2636
jjako286bc982003-01-28 23:17:50 +00002637for ac_prog in gawk mawk nawk awk
2638do
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640set dummy $ac_prog; ac_word=$2
2641echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643if test "${ac_cv_prog_AWK+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002645else
jjako286bc982003-01-28 23:17:50 +00002646 if test -n "$AWK"; then
2647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
jjako52c24142002-12-16 13:33:51 +00002648else
jjako286bc982003-01-28 23:17:50 +00002649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_AWK="$ac_prog"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661done
2662
jjako52c24142002-12-16 13:33:51 +00002663fi
2664fi
jjako286bc982003-01-28 23:17:50 +00002665AWK=$ac_cv_prog_AWK
2666if test -n "$AWK"; then
2667 echo "$as_me:$LINENO: result: $AWK" >&5
2668echo "${ECHO_T}$AWK" >&6
jjako52c24142002-12-16 13:33:51 +00002669else
jjako286bc982003-01-28 23:17:50 +00002670 echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6
2672fi
2673
2674 test -n "$AWK" && break
2675done
2676
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2683echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2684# On Suns, sometimes $CPP names a directory.
2685if test -n "$CPP" && test -d "$CPP"; then
2686 CPP=
2687fi
2688if test -z "$CPP"; then
2689 if test "${ac_cv_prog_CPP+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
2692 # Double quotes because CPP needs to be expanded
2693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2694 do
2695 ac_preproc_ok=false
2696for ac_c_preproc_warn_flag in '' yes
2697do
2698 # Use a header file that comes with gcc, so configuring glibc
2699 # with a fresh cross-compiler works.
jjako08d331d2003-10-13 20:33:30 +00002700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2701 # <limits.h> exists even on freestanding compilers.
jjako286bc982003-01-28 23:17:50 +00002702 # On the NeXT, cc -E runs the code through the compiler's parser,
2703 # not just through cpp. "Syntax error" is here to catch this case.
2704 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002705/* confdefs.h. */
2706_ACEOF
2707cat confdefs.h >>conftest.$ac_ext
2708cat >>conftest.$ac_ext <<_ACEOF
2709/* end confdefs.h. */
2710#ifdef __STDC__
2711# include <limits.h>
2712#else
2713# include <assert.h>
2714#endif
jjakoacba8e62005-03-14 21:53:10 +00002715 Syntax error
jjako286bc982003-01-28 23:17:50 +00002716_ACEOF
2717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2719 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002720 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002721 rm -f conftest.er1
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } >/dev/null; then
2725 if test -s conftest.err; then
2726 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +00002727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako286bc982003-01-28 23:17:50 +00002728 else
2729 ac_cpp_err=
2730 fi
2731else
2732 ac_cpp_err=yes
2733fi
2734if test -z "$ac_cpp_err"; then
2735 :
2736else
2737 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002738sed 's/^/| /' conftest.$ac_ext >&5
2739
jjako286bc982003-01-28 23:17:50 +00002740 # Broken: fails on valid input.
2741continue
2742fi
2743rm -f conftest.err conftest.$ac_ext
2744
2745 # OK, works on sane cases. Now check whether non-existent headers
2746 # can be detected and how.
2747 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002748/* confdefs.h. */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002753#include <ac_nonexistent.h>
2754_ACEOF
2755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2757 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002758 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } >/dev/null; then
2763 if test -s conftest.err; then
2764 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +00002765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako286bc982003-01-28 23:17:50 +00002766 else
2767 ac_cpp_err=
2768 fi
2769else
2770 ac_cpp_err=yes
2771fi
2772if test -z "$ac_cpp_err"; then
2773 # Broken: success on invalid input.
2774continue
2775else
2776 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002777sed 's/^/| /' conftest.$ac_ext >&5
2778
jjako286bc982003-01-28 23:17:50 +00002779 # Passes both tests.
2780ac_preproc_ok=:
2781break
2782fi
2783rm -f conftest.err conftest.$ac_ext
2784
2785done
2786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2787rm -f conftest.err conftest.$ac_ext
2788if $ac_preproc_ok; then
2789 break
2790fi
2791
2792 done
2793 ac_cv_prog_CPP=$CPP
2794
2795fi
2796 CPP=$ac_cv_prog_CPP
2797else
2798 ac_cv_prog_CPP=$CPP
2799fi
2800echo "$as_me:$LINENO: result: $CPP" >&5
2801echo "${ECHO_T}$CPP" >&6
2802ac_preproc_ok=false
2803for ac_c_preproc_warn_flag in '' yes
2804do
2805 # Use a header file that comes with gcc, so configuring glibc
2806 # with a fresh cross-compiler works.
jjako08d331d2003-10-13 20:33:30 +00002807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2808 # <limits.h> exists even on freestanding compilers.
jjako286bc982003-01-28 23:17:50 +00002809 # On the NeXT, cc -E runs the code through the compiler's parser,
2810 # not just through cpp. "Syntax error" is here to catch this case.
2811 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002812/* confdefs.h. */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h. */
2817#ifdef __STDC__
2818# include <limits.h>
2819#else
2820# include <assert.h>
2821#endif
jjakoacba8e62005-03-14 21:53:10 +00002822 Syntax error
jjako286bc982003-01-28 23:17:50 +00002823_ACEOF
2824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2826 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002827 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } >/dev/null; then
2832 if test -s conftest.err; then
2833 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +00002834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako286bc982003-01-28 23:17:50 +00002835 else
2836 ac_cpp_err=
2837 fi
2838else
2839 ac_cpp_err=yes
2840fi
2841if test -z "$ac_cpp_err"; then
2842 :
2843else
2844 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002845sed 's/^/| /' conftest.$ac_ext >&5
2846
jjako286bc982003-01-28 23:17:50 +00002847 # Broken: fails on valid input.
2848continue
2849fi
2850rm -f conftest.err conftest.$ac_ext
2851
2852 # OK, works on sane cases. Now check whether non-existent headers
2853 # can be detected and how.
2854 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00002855/* confdefs.h. */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002860#include <ac_nonexistent.h>
2861_ACEOF
2862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2864 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002865 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } >/dev/null; then
2870 if test -s conftest.err; then
2871 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +00002872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako286bc982003-01-28 23:17:50 +00002873 else
2874 ac_cpp_err=
2875 fi
2876else
2877 ac_cpp_err=yes
2878fi
2879if test -z "$ac_cpp_err"; then
2880 # Broken: success on invalid input.
2881continue
2882else
2883 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002884sed 's/^/| /' conftest.$ac_ext >&5
2885
jjako286bc982003-01-28 23:17:50 +00002886 # Passes both tests.
2887ac_preproc_ok=:
2888break
2889fi
2890rm -f conftest.err conftest.$ac_ext
2891
2892done
2893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2894rm -f conftest.err conftest.$ac_ext
2895if $ac_preproc_ok; then
2896 :
2897else
jjako08d331d2003-10-13 20:33:30 +00002898 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2899See \`config.log' for more details." >&5
2900echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2901See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002902 { (exit 1); exit 1; }; }
2903fi
2904
2905ac_ext=c
2906ac_cpp='$CPP $CPPFLAGS'
2907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911ac_ext=cc
2912ac_cpp='$CXXCPP $CPPFLAGS'
2913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2916if test -n "$ac_tool_prefix"; then
2917 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2918 do
2919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2921echo "$as_me:$LINENO: checking for $ac_word" >&5
2922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2923if test "${ac_cv_prog_CXX+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 if test -n "$CXX"; then
2927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940done
2941done
2942
2943fi
2944fi
2945CXX=$ac_cv_prog_CXX
2946if test -n "$CXX"; then
2947 echo "$as_me:$LINENO: result: $CXX" >&5
2948echo "${ECHO_T}$CXX" >&6
2949else
2950 echo "$as_me:$LINENO: result: no" >&5
2951echo "${ECHO_T}no" >&6
2952fi
2953
2954 test -n "$CXX" && break
2955 done
2956fi
2957if test -z "$CXX"; then
2958 ac_ct_CXX=$CXX
2959 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2960do
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962set dummy $ac_prog; ac_word=$2
2963echo "$as_me:$LINENO: checking for $ac_word" >&5
2964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968 if test -n "$ac_ct_CXX"; then
2969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_ac_ct_CXX="$ac_prog"
2979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982done
2983done
2984
2985fi
2986fi
2987ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2988if test -n "$ac_ct_CXX"; then
2989 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2990echo "${ECHO_T}$ac_ct_CXX" >&6
2991else
2992 echo "$as_me:$LINENO: result: no" >&5
2993echo "${ECHO_T}no" >&6
2994fi
2995
2996 test -n "$ac_ct_CXX" && break
2997done
2998test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2999
3000 CXX=$ac_ct_CXX
jjako52c24142002-12-16 13:33:51 +00003001fi
3002
3003
jjako286bc982003-01-28 23:17:50 +00003004# Provide some information about the compiler.
3005echo "$as_me:$LINENO:" \
3006 "checking for C++ compiler version" >&5
3007ac_compiler=`set X $ac_compile; echo $2`
3008{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3009 (eval $ac_compiler --version </dev/null >&5) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3014 (eval $ac_compiler -v </dev/null >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3019 (eval $ac_compiler -V </dev/null >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023
3024echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3025echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3026if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028else
3029 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00003030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003035
jjako286bc982003-01-28 23:17:50 +00003036int
3037main ()
3038{
3039#ifndef __GNUC__
3040 choke me
3041#endif
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext
3048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00003049 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00003050 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00003051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00003054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00003056 { ac_try='test -z "$ac_cxx_werror_flag"
3057 || test ! -s conftest.err'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00003064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 (eval $ac_try) 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3069 ac_compiler_gnu=yes
3070else
3071 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003072sed 's/^/| /' conftest.$ac_ext >&5
3073
jjako286bc982003-01-28 23:17:50 +00003074ac_compiler_gnu=no
3075fi
jjakoacba8e62005-03-14 21:53:10 +00003076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00003077ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3078
3079fi
3080echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3081echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3082GXX=`test $ac_compiler_gnu = yes && echo yes`
3083ac_test_CXXFLAGS=${CXXFLAGS+set}
3084ac_save_CXXFLAGS=$CXXFLAGS
3085CXXFLAGS="-g"
3086echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3088if test "${ac_cv_prog_cxx_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00003092/* confdefs.h. */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003097
jjako286bc982003-01-28 23:17:50 +00003098int
3099main ()
3100{
3101
3102 ;
3103 return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext
3107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00003108 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00003109 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00003110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00003113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00003115 { ac_try='test -z "$ac_cxx_werror_flag"
3116 || test ! -s conftest.err'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 (eval $ac_try) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00003123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_cv_prog_cxx_g=yes
3129else
3130 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003131sed 's/^/| /' conftest.$ac_ext >&5
3132
jjako286bc982003-01-28 23:17:50 +00003133ac_cv_prog_cxx_g=no
3134fi
jjakoacba8e62005-03-14 21:53:10 +00003135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00003136fi
3137echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3138echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3139if test "$ac_test_CXXFLAGS" = set; then
3140 CXXFLAGS=$ac_save_CXXFLAGS
3141elif test $ac_cv_prog_cxx_g = yes; then
3142 if test "$GXX" = yes; then
3143 CXXFLAGS="-g -O2"
3144 else
3145 CXXFLAGS="-g"
3146 fi
3147else
3148 if test "$GXX" = yes; then
3149 CXXFLAGS="-O2"
3150 else
3151 CXXFLAGS=
3152 fi
3153fi
3154for ac_declaration in \
jjakoacba8e62005-03-14 21:53:10 +00003155 '' \
jjako286bc982003-01-28 23:17:50 +00003156 'extern "C" void std::exit (int) throw (); using std::exit;' \
3157 'extern "C" void std::exit (int); using std::exit;' \
3158 'extern "C" void exit (int) throw ();' \
3159 'extern "C" void exit (int);' \
3160 'void exit (int);'
3161do
3162 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00003163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003168$ac_declaration
jjakoacba8e62005-03-14 21:53:10 +00003169#include <stdlib.h>
jjako286bc982003-01-28 23:17:50 +00003170int
3171main ()
3172{
3173exit (42);
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext
3179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00003180 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00003181 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00003182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00003185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00003187 { ac_try='test -z "$ac_cxx_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00003195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 :
3201else
3202 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003203sed 's/^/| /' conftest.$ac_ext >&5
3204
jjako286bc982003-01-28 23:17:50 +00003205continue
3206fi
jjakoacba8e62005-03-14 21:53:10 +00003207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00003208 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00003209/* confdefs.h. */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003214$ac_declaration
jjako286bc982003-01-28 23:17:50 +00003215int
3216main ()
3217{
3218exit (42);
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext
3224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00003225 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00003226 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00003227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00003230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00003232 { ac_try='test -z "$ac_cxx_werror_flag"
3233 || test ! -s conftest.err'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; } &&
3239 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +00003240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 break
3246else
3247 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003248sed 's/^/| /' conftest.$ac_ext >&5
3249
jjako286bc982003-01-28 23:17:50 +00003250fi
jjakoacba8e62005-03-14 21:53:10 +00003251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00003252done
3253rm -f conftest*
3254if test -n "$ac_declaration"; then
3255 echo '#ifdef __cplusplus' >>confdefs.h
3256 echo $ac_declaration >>confdefs.h
3257 echo '#endif' >>confdefs.h
3258fi
3259
3260ac_ext=c
3261ac_cpp='$CPP $CPPFLAGS'
3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266if test -n "$ac_tool_prefix"; then
3267 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3268set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3269echo "$as_me:$LINENO: checking for $ac_word" >&5
3270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3271if test "${ac_cv_prog_RANLIB+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 if test -n "$RANLIB"; then
3275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288done
3289done
3290
3291fi
3292fi
3293RANLIB=$ac_cv_prog_RANLIB
3294if test -n "$RANLIB"; then
3295 echo "$as_me:$LINENO: result: $RANLIB" >&5
3296echo "${ECHO_T}$RANLIB" >&6
3297else
3298 echo "$as_me:$LINENO: result: no" >&5
3299echo "${ECHO_T}no" >&6
3300fi
3301
3302fi
3303if test -z "$ac_cv_prog_RANLIB"; then
3304 ac_ct_RANLIB=$RANLIB
3305 # Extract the first word of "ranlib", so it can be a program name with args.
3306set dummy ranlib; ac_word=$2
3307echo "$as_me:$LINENO: checking for $ac_word" >&5
3308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 if test -n "$ac_ct_RANLIB"; then
3313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3314else
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_ac_ct_RANLIB="ranlib"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326done
3327done
3328
3329 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3330fi
3331fi
3332ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3333if test -n "$ac_ct_RANLIB"; then
3334 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3335echo "${ECHO_T}$ac_ct_RANLIB" >&6
3336else
3337 echo "$as_me:$LINENO: result: no" >&5
3338echo "${ECHO_T}no" >&6
3339fi
3340
3341 RANLIB=$ac_ct_RANLIB
3342else
3343 RANLIB="$ac_cv_prog_RANLIB"
3344fi
3345
3346
3347
3348#JJAKO Check for libtool
jjako52c24142002-12-16 13:33:51 +00003349# Check whether --enable-shared or --disable-shared was given.
3350if test "${enable_shared+set}" = set; then
3351 enableval="$enable_shared"
3352 p=${PACKAGE-default}
jjakoacba8e62005-03-14 21:53:10 +00003353 case $enableval in
3354 yes) enable_shared=yes ;;
3355 no) enable_shared=no ;;
3356 *)
3357 enable_shared=no
3358 # Look at the argument we got. We use all the common list separators.
3359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3360 for pkg in $enableval; do
3361 IFS="$lt_save_ifs"
3362 if test "X$pkg" = "X$p"; then
3363 enable_shared=yes
3364 fi
3365 done
3366 IFS="$lt_save_ifs"
3367 ;;
3368 esac
jjako52c24142002-12-16 13:33:51 +00003369else
3370 enable_shared=yes
jjako286bc982003-01-28 23:17:50 +00003371fi;
jjakoacba8e62005-03-14 21:53:10 +00003372
jjako52c24142002-12-16 13:33:51 +00003373# Check whether --enable-static or --disable-static was given.
3374if test "${enable_static+set}" = set; then
3375 enableval="$enable_static"
3376 p=${PACKAGE-default}
jjakoacba8e62005-03-14 21:53:10 +00003377 case $enableval in
3378 yes) enable_static=yes ;;
3379 no) enable_static=no ;;
3380 *)
3381 enable_static=no
3382 # Look at the argument we got. We use all the common list separators.
3383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3384 for pkg in $enableval; do
3385 IFS="$lt_save_ifs"
3386 if test "X$pkg" = "X$p"; then
3387 enable_static=yes
3388 fi
3389 done
3390 IFS="$lt_save_ifs"
3391 ;;
3392 esac
jjako52c24142002-12-16 13:33:51 +00003393else
3394 enable_static=yes
jjako286bc982003-01-28 23:17:50 +00003395fi;
jjakoacba8e62005-03-14 21:53:10 +00003396
jjako52c24142002-12-16 13:33:51 +00003397# Check whether --enable-fast-install or --disable-fast-install was given.
3398if test "${enable_fast_install+set}" = set; then
3399 enableval="$enable_fast_install"
3400 p=${PACKAGE-default}
jjakoacba8e62005-03-14 21:53:10 +00003401 case $enableval in
3402 yes) enable_fast_install=yes ;;
3403 no) enable_fast_install=no ;;
3404 *)
3405 enable_fast_install=no
3406 # Look at the argument we got. We use all the common list separators.
3407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3408 for pkg in $enableval; do
3409 IFS="$lt_save_ifs"
3410 if test "X$pkg" = "X$p"; then
3411 enable_fast_install=yes
3412 fi
3413 done
3414 IFS="$lt_save_ifs"
3415 ;;
3416 esac
jjako52c24142002-12-16 13:33:51 +00003417else
3418 enable_fast_install=yes
jjako286bc982003-01-28 23:17:50 +00003419fi;
jjakoacba8e62005-03-14 21:53:10 +00003420
3421echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3422echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3423if test "${lt_cv_path_SED+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426 # Loop through the user's path and test for sed and gsed.
3427# Then use that list of sed's as ones to test for truncation.
3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for lt_ac_prog in sed gsed; do
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3436 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3437 fi
3438 done
3439 done
3440done
3441lt_ac_max=0
3442lt_ac_count=0
3443# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3444# along with /bin/sed that truncates output.
3445for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3446 test ! -f $lt_ac_sed && break
3447 cat /dev/null > conftest.in
3448 lt_ac_count=0
3449 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3450 # Check for GNU sed and select it if it is found.
3451 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3452 lt_cv_path_SED=$lt_ac_sed
3453 break
3454 fi
3455 while true; do
3456 cat conftest.in conftest.in >conftest.tmp
3457 mv conftest.tmp conftest.in
3458 cp conftest.in conftest.nl
3459 echo >>conftest.nl
3460 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3461 cmp -s conftest.out conftest.nl || break
3462 # 10000 chars as input seems more than enough
3463 test $lt_ac_count -gt 10 && break
3464 lt_ac_count=`expr $lt_ac_count + 1`
3465 if test $lt_ac_count -gt $lt_ac_max; then
3466 lt_ac_max=$lt_ac_count
3467 lt_cv_path_SED=$lt_ac_sed
3468 fi
3469 done
3470done
3471SED=$lt_cv_path_SED
3472
jjako52c24142002-12-16 13:33:51 +00003473fi
jjako286bc982003-01-28 23:17:50 +00003474
jjakoacba8e62005-03-14 21:53:10 +00003475echo "$as_me:$LINENO: result: $SED" >&5
3476echo "${ECHO_T}$SED" >&6
3477
3478echo "$as_me:$LINENO: checking for egrep" >&5
3479echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3480if test "${ac_cv_prog_egrep+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3484 then ac_cv_prog_egrep='grep -E'
3485 else ac_cv_prog_egrep='egrep'
3486 fi
3487fi
3488echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3489echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3490 EGREP=$ac_cv_prog_egrep
3491
3492
jjako52c24142002-12-16 13:33:51 +00003493
3494# Check whether --with-gnu-ld or --without-gnu-ld was given.
3495if test "${with_gnu_ld+set}" = set; then
3496 withval="$with_gnu_ld"
3497 test "$withval" = no || with_gnu_ld=yes
3498else
3499 with_gnu_ld=no
jjako286bc982003-01-28 23:17:50 +00003500fi;
jjako52c24142002-12-16 13:33:51 +00003501ac_prog=ld
jjako286bc982003-01-28 23:17:50 +00003502if test "$GCC" = yes; then
jjako52c24142002-12-16 13:33:51 +00003503 # Check if gcc -print-prog-name=ld gives a path.
jjakoacba8e62005-03-14 21:53:10 +00003504 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3505echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00003506 case $host in
3507 *-*-mingw*)
3508 # gcc leaves a trailing carriage return which upsets mingw
3509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3510 *)
3511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3512 esac
3513 case $ac_prog in
jjako52c24142002-12-16 13:33:51 +00003514 # Accept absolute paths.
jjakoacba8e62005-03-14 21:53:10 +00003515 [\\/]* | ?:[\\/]*)
jjako52c24142002-12-16 13:33:51 +00003516 re_direlt='/[^/][^/]*/\.\./'
jjakoacba8e62005-03-14 21:53:10 +00003517 # Canonicalize the pathname of ld
3518 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
jjako52c24142002-12-16 13:33:51 +00003519 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
jjakoacba8e62005-03-14 21:53:10 +00003520 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
jjako52c24142002-12-16 13:33:51 +00003521 done
3522 test -z "$LD" && LD="$ac_prog"
3523 ;;
3524 "")
3525 # If it fails, then pretend we aren't using GCC.
3526 ac_prog=ld
3527 ;;
3528 *)
3529 # If it is relative, then search for the first ld in PATH.
3530 with_gnu_ld=unknown
3531 ;;
3532 esac
3533elif test "$with_gnu_ld" = yes; then
jjako286bc982003-01-28 23:17:50 +00003534 echo "$as_me:$LINENO: checking for GNU ld" >&5
3535echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003536else
jjako286bc982003-01-28 23:17:50 +00003537 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3538echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003539fi
jjako286bc982003-01-28 23:17:50 +00003540if test "${lt_cv_path_LD+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003542else
3543 if test -z "$LD"; then
jjakoacba8e62005-03-14 21:53:10 +00003544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003545 for ac_dir in $PATH; do
jjakoacba8e62005-03-14 21:53:10 +00003546 IFS="$lt_save_ifs"
jjako52c24142002-12-16 13:33:51 +00003547 test -z "$ac_dir" && ac_dir=.
3548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
jjako286bc982003-01-28 23:17:50 +00003549 lt_cv_path_LD="$ac_dir/$ac_prog"
jjako52c24142002-12-16 13:33:51 +00003550 # Check to see if the program is GNU ld. I'd rather use --version,
3551 # but apparently some GNU ld's only accept -v.
3552 # Break only if it was the GNU/non-GNU ld that we prefer.
jjakoacba8e62005-03-14 21:53:10 +00003553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3554 *GNU* | *'with BFD'*)
jjako52c24142002-12-16 13:33:51 +00003555 test "$with_gnu_ld" != no && break
jjakoacba8e62005-03-14 21:53:10 +00003556 ;;
3557 *)
jjako52c24142002-12-16 13:33:51 +00003558 test "$with_gnu_ld" != yes && break
jjakoacba8e62005-03-14 21:53:10 +00003559 ;;
3560 esac
jjako52c24142002-12-16 13:33:51 +00003561 fi
3562 done
jjakoacba8e62005-03-14 21:53:10 +00003563 IFS="$lt_save_ifs"
jjako52c24142002-12-16 13:33:51 +00003564else
jjako286bc982003-01-28 23:17:50 +00003565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
jjako52c24142002-12-16 13:33:51 +00003566fi
3567fi
3568
jjako286bc982003-01-28 23:17:50 +00003569LD="$lt_cv_path_LD"
jjako52c24142002-12-16 13:33:51 +00003570if test -n "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003571 echo "$as_me:$LINENO: result: $LD" >&5
3572echo "${ECHO_T}$LD" >&6
jjako52c24142002-12-16 13:33:51 +00003573else
jjako286bc982003-01-28 23:17:50 +00003574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00003576fi
jjako286bc982003-01-28 23:17:50 +00003577test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3578echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3579 { (exit 1); exit 1; }; }
3580echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3581echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3582if test "${lt_cv_prog_gnu_ld+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003584else
3585 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
jjakoacba8e62005-03-14 21:53:10 +00003586case `$LD -v 2>&1 </dev/null` in
3587*GNU* | *'with BFD'*)
jjako286bc982003-01-28 23:17:50 +00003588 lt_cv_prog_gnu_ld=yes
jjakoacba8e62005-03-14 21:53:10 +00003589 ;;
3590*)
jjako286bc982003-01-28 23:17:50 +00003591 lt_cv_prog_gnu_ld=no
jjakoacba8e62005-03-14 21:53:10 +00003592 ;;
3593esac
jjako52c24142002-12-16 13:33:51 +00003594fi
jjako286bc982003-01-28 23:17:50 +00003595echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3596echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3597with_gnu_ld=$lt_cv_prog_gnu_ld
jjako52c24142002-12-16 13:33:51 +00003598
3599
jjako286bc982003-01-28 23:17:50 +00003600echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3601echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3602if test "${lt_cv_ld_reload_flag+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604else
3605 lt_cv_ld_reload_flag='-r'
3606fi
3607echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3608echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3609reload_flag=$lt_cv_ld_reload_flag
jjakoacba8e62005-03-14 21:53:10 +00003610case $reload_flag in
3611"" | " "*) ;;
3612*) reload_flag=" $reload_flag" ;;
3613esac
3614reload_cmds='$LD$reload_flag -o $output$reload_objs'
jjako286bc982003-01-28 23:17:50 +00003615
3616echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3617echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3618if test "${lt_cv_path_NM+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003620else
3621 if test -n "$NM"; then
3622 # Let the user override the test.
jjako286bc982003-01-28 23:17:50 +00003623 lt_cv_path_NM="$NM"
jjako52c24142002-12-16 13:33:51 +00003624else
jjakoacba8e62005-03-14 21:53:10 +00003625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003626 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
jjakoacba8e62005-03-14 21:53:10 +00003627 IFS="$lt_save_ifs"
jjako52c24142002-12-16 13:33:51 +00003628 test -z "$ac_dir" && ac_dir=.
jjakoacba8e62005-03-14 21:53:10 +00003629 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3630 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
jjako52c24142002-12-16 13:33:51 +00003631 # Check to see if the nm accepts a BSD-compat flag.
3632 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3633 # nm: unknown option "B" ignored
jjako286bc982003-01-28 23:17:50 +00003634 # Tru64's nm complains that /dev/null is an invalid object file
jjakoacba8e62005-03-14 21:53:10 +00003635 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3636 */dev/null* | *'Invalid file or object type'*)
jjako286bc982003-01-28 23:17:50 +00003637 lt_cv_path_NM="$tmp_nm -B"
jjako52c24142002-12-16 13:33:51 +00003638 break
jjakoacba8e62005-03-14 21:53:10 +00003639 ;;
3640 *)
3641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3642 */dev/null*)
3643 lt_cv_path_NM="$tmp_nm -p"
3644 break
3645 ;;
3646 *)
3647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3648 continue # so that we can try to find one that supports BSD flags
3649 ;;
3650 esac
3651 esac
jjako52c24142002-12-16 13:33:51 +00003652 fi
3653 done
jjakoacba8e62005-03-14 21:53:10 +00003654 IFS="$lt_save_ifs"
jjako286bc982003-01-28 23:17:50 +00003655 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
jjako52c24142002-12-16 13:33:51 +00003656fi
3657fi
jjakoacba8e62005-03-14 21:53:10 +00003658echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3659echo "${ECHO_T}$lt_cv_path_NM" >&6
jjako286bc982003-01-28 23:17:50 +00003660NM="$lt_cv_path_NM"
jjako08d331d2003-10-13 20:33:30 +00003661
jjako286bc982003-01-28 23:17:50 +00003662echo "$as_me:$LINENO: checking whether ln -s works" >&5
3663echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3664LN_S=$as_ln_s
3665if test "$LN_S" = "ln -s"; then
3666 echo "$as_me:$LINENO: result: yes" >&5
3667echo "${ECHO_T}yes" >&6
3668else
3669 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3670echo "${ECHO_T}no, using $LN_S" >&6
3671fi
jjako52c24142002-12-16 13:33:51 +00003672
jjako08d331d2003-10-13 20:33:30 +00003673echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3674echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00003675if test "${lt_cv_deplibs_check_method+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678 lt_cv_file_magic_cmd='$MAGIC_CMD'
3679lt_cv_file_magic_test_file=
3680lt_cv_deplibs_check_method='unknown'
3681# Need to set the preceding variable on all platforms that support
3682# interlibrary dependencies.
3683# 'none' -- dependencies not supported.
3684# `unknown' -- same as none, but documents that we really don't know.
3685# 'pass_all' -- all dependencies passed with no checks.
3686# 'test_compile' -- check by making test program.
3687# 'file_magic [[regex]]' -- check by looking for files in library path
jjakoacba8e62005-03-14 21:53:10 +00003688# which responds to the $file_magic_cmd with a given extended regex.
jjako286bc982003-01-28 23:17:50 +00003689# If you have `file' or equivalent on your system and you're not sure
3690# whether `pass_all' will *always* work, you probably want this one.
3691
3692case $host_os in
3693aix4* | aix5*)
3694 lt_cv_deplibs_check_method=pass_all
3695 ;;
3696
3697beos*)
3698 lt_cv_deplibs_check_method=pass_all
3699 ;;
3700
3701bsdi4*)
3702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3703 lt_cv_file_magic_cmd='/usr/bin/file -L'
3704 lt_cv_file_magic_test_file=/shlib/libc.so
3705 ;;
3706
jjakoacba8e62005-03-14 21:53:10 +00003707cygwin*)
3708 # func_win32_libid is a shell function defined in ltmain.sh
3709 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3710 lt_cv_file_magic_cmd='func_win32_libid'
3711 ;;
3712
3713mingw* | pw32*)
3714 # Base MSYS/MinGW do not provide the 'file' command needed by
3715 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
jjako286bc982003-01-28 23:17:50 +00003716 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3717 lt_cv_file_magic_cmd='$OBJDUMP -f'
3718 ;;
3719
3720darwin* | rhapsody*)
jjakoacba8e62005-03-14 21:53:10 +00003721 lt_cv_deplibs_check_method=pass_all
jjako286bc982003-01-28 23:17:50 +00003722 ;;
3723
jjakoacba8e62005-03-14 21:53:10 +00003724freebsd* | kfreebsd*-gnu)
jjako286bc982003-01-28 23:17:50 +00003725 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3726 case $host_cpu in
3727 i*86 )
3728 # Not sure whether the presence of OpenBSD here was a mistake.
3729 # Let's accept both of them until this is cleared up.
3730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3731 lt_cv_file_magic_cmd=/usr/bin/file
3732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3733 ;;
3734 esac
3735 else
3736 lt_cv_deplibs_check_method=pass_all
3737 fi
3738 ;;
3739
3740gnu*)
3741 lt_cv_deplibs_check_method=pass_all
3742 ;;
3743
jjakoacba8e62005-03-14 21:53:10 +00003744hpux10.20* | hpux11*)
jjako286bc982003-01-28 23:17:50 +00003745 lt_cv_file_magic_cmd=/usr/bin/file
jjakoacba8e62005-03-14 21:53:10 +00003746 case "$host_cpu" in
3747 ia64*)
3748 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3749 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3750 ;;
3751 hppa*64*)
3752 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]'
3753 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3754 ;;
3755 *)
3756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3757 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3758 ;;
3759 esac
jjako286bc982003-01-28 23:17:50 +00003760 ;;
3761
jjako08d331d2003-10-13 20:33:30 +00003762irix5* | irix6* | nonstopux*)
jjakoacba8e62005-03-14 21:53:10 +00003763 case $LD in
3764 *-32|*"-32 ") libmagic=32-bit;;
3765 *-n32|*"-n32 ") libmagic=N32;;
3766 *-64|*"-64 ") libmagic=64-bit;;
3767 *) libmagic=never-match;;
jjako286bc982003-01-28 23:17:50 +00003768 esac
jjako286bc982003-01-28 23:17:50 +00003769 lt_cv_deplibs_check_method=pass_all
3770 ;;
3771
3772# This must be Linux ELF.
jjakoacba8e62005-03-14 21:53:10 +00003773linux*)
jjako286bc982003-01-28 23:17:50 +00003774 case $host_cpu in
jjakoacba8e62005-03-14 21:53:10 +00003775 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
jjako286bc982003-01-28 23:17:50 +00003776 lt_cv_deplibs_check_method=pass_all ;;
3777 *)
3778 # glibc up to 2.1.1 does not perform some relocations on ARM
jjakoacba8e62005-03-14 21:53:10 +00003779 # this will be overridden with pass_all, but let us keep it just in case
jjako286bc982003-01-28 23:17:50 +00003780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3781 esac
3782 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
jjakoacba8e62005-03-14 21:53:10 +00003783 lt_cv_deplibs_check_method=pass_all
jjako286bc982003-01-28 23:17:50 +00003784 ;;
3785
3786netbsd*)
3787 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
jjakoacba8e62005-03-14 21:53:10 +00003788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
jjako286bc982003-01-28 23:17:50 +00003789 else
jjakoacba8e62005-03-14 21:53:10 +00003790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
jjako286bc982003-01-28 23:17:50 +00003791 fi
3792 ;;
3793
3794newos6*)
3795 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3796 lt_cv_file_magic_cmd=/usr/bin/file
3797 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3798 ;;
3799
jjakoacba8e62005-03-14 21:53:10 +00003800nto-qnx*)
3801 lt_cv_deplibs_check_method=unknown
3802 ;;
3803
jjako286bc982003-01-28 23:17:50 +00003804openbsd*)
3805 lt_cv_file_magic_cmd=/usr/bin/file
3806 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3809 else
3810 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3811 fi
3812 ;;
3813
3814osf3* | osf4* | osf5*)
jjako286bc982003-01-28 23:17:50 +00003815 lt_cv_deplibs_check_method=pass_all
3816 ;;
3817
3818sco3.2v5*)
3819 lt_cv_deplibs_check_method=pass_all
3820 ;;
3821
3822solaris*)
3823 lt_cv_deplibs_check_method=pass_all
jjako286bc982003-01-28 23:17:50 +00003824 ;;
3825
3826sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3827 case $host_vendor in
3828 motorola)
3829 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]'
3830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3831 ;;
3832 ncr)
3833 lt_cv_deplibs_check_method=pass_all
3834 ;;
3835 sequent)
3836 lt_cv_file_magic_cmd='/bin/file'
3837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3838 ;;
3839 sni)
3840 lt_cv_file_magic_cmd='/bin/file'
3841 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3842 lt_cv_file_magic_test_file=/lib/libc.so
3843 ;;
jjako08d331d2003-10-13 20:33:30 +00003844 siemens)
3845 lt_cv_deplibs_check_method=pass_all
3846 ;;
jjako286bc982003-01-28 23:17:50 +00003847 esac
3848 ;;
jjakoacba8e62005-03-14 21:53:10 +00003849
3850sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3851 lt_cv_deplibs_check_method=pass_all
3852 ;;
jjako52c24142002-12-16 13:33:51 +00003853esac
3854
jjako286bc982003-01-28 23:17:50 +00003855fi
3856echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3857echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3858file_magic_cmd=$lt_cv_file_magic_cmd
3859deplibs_check_method=$lt_cv_deplibs_check_method
jjakoacba8e62005-03-14 21:53:10 +00003860test -z "$deplibs_check_method" && deplibs_check_method=unknown
jjako52c24142002-12-16 13:33:51 +00003861
3862
jjako286bc982003-01-28 23:17:50 +00003863
3864
jjakoacba8e62005-03-14 21:53:10 +00003865# If no C compiler was specified, use CC.
3866LTCC=${LTCC-"$CC"}
3867
3868# Allow CC to be a program name with arguments.
3869compiler=$CC
3870
3871
3872# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3873if test "${enable_libtool_lock+set}" = set; then
3874 enableval="$enable_libtool_lock"
3875
3876fi;
3877test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3878
3879# Some flags need to be propagated to the compiler or linker for good
3880# libtool support.
3881case $host in
3882ia64-*-hpux*)
3883 # Find out which ABI we are using.
3884 echo 'int i;' > conftest.$ac_ext
3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; then
3890 case `/usr/bin/file conftest.$ac_objext` in
3891 *ELF-32*)
3892 HPUX_IA64_MODE="32"
3893 ;;
3894 *ELF-64*)
3895 HPUX_IA64_MODE="64"
3896 ;;
3897 esac
3898 fi
3899 rm -rf conftest*
3900 ;;
3901*-*-irix6*)
3902 # Find out which ABI we are using.
3903 echo '#line 3903 "configure"' > conftest.$ac_ext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; then
3909 if test "$lt_cv_prog_gnu_ld" = yes; then
3910 case `/usr/bin/file conftest.$ac_objext` in
3911 *32-bit*)
3912 LD="${LD-ld} -melf32bsmip"
3913 ;;
3914 *N32*)
3915 LD="${LD-ld} -melf32bmipn32"
3916 ;;
3917 *64-bit*)
3918 LD="${LD-ld} -melf64bmip"
3919 ;;
3920 esac
3921 else
3922 case `/usr/bin/file conftest.$ac_objext` in
3923 *32-bit*)
3924 LD="${LD-ld} -32"
3925 ;;
3926 *N32*)
3927 LD="${LD-ld} -n32"
3928 ;;
3929 *64-bit*)
3930 LD="${LD-ld} -64"
3931 ;;
3932 esac
3933 fi
3934 fi
3935 rm -rf conftest*
3936 ;;
3937
3938x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3939 # Find out which ABI we are using.
3940 echo 'int i;' > conftest.$ac_ext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942 (eval $ac_compile) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; then
3946 case "`/usr/bin/file conftest.o`" in
3947 *32-bit*)
3948 case $host in
3949 x86_64-*linux*)
3950 LD="${LD-ld} -m elf_i386"
3951 ;;
3952 ppc64-*linux*|powerpc64-*linux*)
3953 LD="${LD-ld} -m elf32ppclinux"
3954 ;;
3955 s390x-*linux*)
3956 LD="${LD-ld} -m elf_s390"
3957 ;;
3958 sparc64-*linux*)
3959 LD="${LD-ld} -m elf32_sparc"
3960 ;;
3961 esac
3962 ;;
3963 *64-bit*)
3964 case $host in
3965 x86_64-*linux*)
3966 LD="${LD-ld} -m elf_x86_64"
3967 ;;
3968 ppc*-*linux*|powerpc*-*linux*)
3969 LD="${LD-ld} -m elf64ppc"
3970 ;;
3971 s390*-*linux*)
3972 LD="${LD-ld} -m elf64_s390"
3973 ;;
3974 sparc*-*linux*)
3975 LD="${LD-ld} -m elf64_sparc"
3976 ;;
3977 esac
3978 ;;
3979 esac
3980 fi
3981 rm -rf conftest*
3982 ;;
3983
3984*-*-sco3.2v5*)
3985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3986 SAVE_CFLAGS="$CFLAGS"
3987 CFLAGS="$CFLAGS -belf"
3988 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3989echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3990if test "${lt_cv_cc_needs_belf+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993 ac_ext=c
3994ac_cpp='$CPP $CPPFLAGS'
3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999 cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005
4006int
4007main ()
4008{
4009
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014rm -f conftest.$ac_objext conftest$ac_exeext
4015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4016 (eval $ac_link) 2>conftest.er1
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } &&
4023 { ac_try='test -z "$ac_c_werror_flag"
4024 || test ! -s conftest.err'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 (eval $ac_try) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; } &&
4030 { ac_try='test -s conftest$ac_exeext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 lt_cv_cc_needs_belf=yes
4037else
4038 echo "$as_me: failed program was:" >&5
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
4041lt_cv_cc_needs_belf=no
4042fi
4043rm -f conftest.err conftest.$ac_objext \
4044 conftest$ac_exeext conftest.$ac_ext
4045 ac_ext=c
4046ac_cpp='$CPP $CPPFLAGS'
4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050
4051fi
4052echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4053echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4054 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4055 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4056 CFLAGS="$SAVE_CFLAGS"
4057 fi
4058 ;;
4059
4060esac
4061
4062need_locks="$enable_libtool_lock"
4063
4064
4065
4066echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4067echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4068if test "${ac_cv_header_stdc+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071 cat >conftest.$ac_ext <<_ACEOF
4072/* confdefs.h. */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
4076/* end confdefs.h. */
4077#include <stdlib.h>
4078#include <stdarg.h>
4079#include <string.h>
4080#include <float.h>
4081
4082int
4083main ()
4084{
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag"
4100 || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_cv_header_stdc=yes
4113else
4114 echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117ac_cv_header_stdc=no
4118fi
4119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120
4121if test $ac_cv_header_stdc = yes; then
4122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4123 cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129#include <string.h>
4130
4131_ACEOF
4132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "memchr" >/dev/null 2>&1; then
4134 :
4135else
4136 ac_cv_header_stdc=no
4137fi
4138rm -f conftest*
4139
4140fi
4141
4142if test $ac_cv_header_stdc = yes; then
4143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144 cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h. */
4150#include <stdlib.h>
4151
4152_ACEOF
4153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 $EGREP "free" >/dev/null 2>&1; then
4155 :
4156else
4157 ac_cv_header_stdc=no
4158fi
4159rm -f conftest*
4160
4161fi
4162
4163if test $ac_cv_header_stdc = yes; then
4164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4165 if test "$cross_compiling" = yes; then
4166 :
4167else
4168 cat >conftest.$ac_ext <<_ACEOF
4169/* confdefs.h. */
4170_ACEOF
4171cat confdefs.h >>conftest.$ac_ext
4172cat >>conftest.$ac_ext <<_ACEOF
4173/* end confdefs.h. */
4174#include <ctype.h>
4175#if ((' ' & 0x0FF) == 0x020)
4176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4178#else
4179# define ISLOWER(c) \
4180 (('a' <= (c) && (c) <= 'i') \
4181 || ('j' <= (c) && (c) <= 'r') \
4182 || ('s' <= (c) && (c) <= 'z'))
4183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4184#endif
4185
4186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4187int
4188main ()
4189{
4190 int i;
4191 for (i = 0; i < 256; i++)
4192 if (XOR (islower (i), ISLOWER (i))
4193 || toupper (i) != TOUPPER (i))
4194 exit(2);
4195 exit (0);
4196}
4197_ACEOF
4198rm -f conftest$ac_exeext
4199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 :
4210else
4211 echo "$as_me: program exited with status $ac_status" >&5
4212echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215( exit $ac_status )
4216ac_cv_header_stdc=no
4217fi
4218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4219fi
4220fi
4221fi
4222echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4223echo "${ECHO_T}$ac_cv_header_stdc" >&6
4224if test $ac_cv_header_stdc = yes; then
4225
4226cat >>confdefs.h <<\_ACEOF
4227#define STDC_HEADERS 1
4228_ACEOF
4229
4230fi
4231
4232# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4243 inttypes.h stdint.h unistd.h
4244do
4245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246echo "$as_me:$LINENO: checking for $ac_header" >&5
4247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4248if eval "test \"\${$as_ac_Header+set}\" = set"; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251 cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257$ac_includes_default
4258
4259#include <$ac_header>
4260_ACEOF
4261rm -f conftest.$ac_objext
4262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag"
4271 || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 eval "$as_ac_Header=yes"
4284else
4285 echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288eval "$as_ac_Header=no"
4289fi
4290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4291fi
4292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4294if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295 cat >>confdefs.h <<_ACEOF
4296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298
4299fi
4300
4301done
4302
4303
4304
4305for ac_header in dlfcn.h
4306do
4307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4308if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo "$as_me:$LINENO: checking for $ac_header" >&5
4310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4311if eval "test \"\${$as_ac_Header+set}\" = set"; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313fi
4314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316else
4317 # Is the header compilable?
4318echo "$as_me:$LINENO: checking $ac_header usability" >&5
4319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4320cat >conftest.$ac_ext <<_ACEOF
4321/* confdefs.h. */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h. */
4326$ac_includes_default
4327#include <$ac_header>
4328_ACEOF
4329rm -f conftest.$ac_objext
4330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -z "$ac_c_werror_flag"
4339 || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try='test -s conftest.$ac_objext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_header_compiler=yes
4352else
4353 echo "$as_me: failed program was:" >&5
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
4356ac_header_compiler=no
4357fi
4358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4360echo "${ECHO_T}$ac_header_compiler" >&6
4361
4362# Is the header present?
4363echo "$as_me:$LINENO: checking $ac_header presence" >&5
4364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4365cat >conftest.$ac_ext <<_ACEOF
4366/* confdefs.h. */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h. */
4371#include <$ac_header>
4372_ACEOF
4373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } >/dev/null; then
4381 if test -s conftest.err; then
4382 ac_cpp_err=$ac_c_preproc_warn_flag
4383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4384 else
4385 ac_cpp_err=
4386 fi
4387else
4388 ac_cpp_err=yes
4389fi
4390if test -z "$ac_cpp_err"; then
4391 ac_header_preproc=yes
4392else
4393 echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 ac_header_preproc=no
4397fi
4398rm -f conftest.err conftest.$ac_ext
4399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4400echo "${ECHO_T}$ac_header_preproc" >&6
4401
4402# So? What about this header?
4403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4404 yes:no: )
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4409 ac_header_preproc=yes
4410 ;;
4411 no:yes:* )
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4424 (
4425 cat <<\_ASBOX
4426## ------------------------------ ##
4427## Report this to jj@openggsn.org ##
4428## ------------------------------ ##
4429_ASBOX
4430 ) |
4431 sed "s/^/$as_me: WARNING: /" >&2
4432 ;;
4433esac
4434echo "$as_me:$LINENO: checking for $ac_header" >&5
4435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439 eval "$as_ac_Header=\$ac_header_preproc"
4440fi
4441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4443
4444fi
4445if test `eval echo '${'$as_ac_Header'}'` = yes; then
4446 cat >>confdefs.h <<_ACEOF
4447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448_ACEOF
4449
4450fi
4451
4452done
4453
4454ac_ext=cc
4455ac_cpp='$CXXCPP $CPPFLAGS'
4456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4459echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4460echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4461if test -z "$CXXCPP"; then
4462 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 # Double quotes because CXXCPP needs to be expanded
4466 for CXXCPP in "$CXX -E" "/lib/cpp"
4467 do
4468 ac_preproc_ok=false
4469for ac_cxx_preproc_warn_flag in '' yes
4470do
4471 # Use a header file that comes with gcc, so configuring glibc
4472 # with a fresh cross-compiler works.
4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474 # <limits.h> exists even on freestanding compilers.
4475 # On the NeXT, cc -E runs the code through the compiler's parser,
4476 # not just through cpp. "Syntax error" is here to catch this case.
4477 cat >conftest.$ac_ext <<_ACEOF
4478/* confdefs.h. */
4479_ACEOF
4480cat confdefs.h >>conftest.$ac_ext
4481cat >>conftest.$ac_ext <<_ACEOF
4482/* end confdefs.h. */
4483#ifdef __STDC__
4484# include <limits.h>
4485#else
4486# include <assert.h>
4487#endif
4488 Syntax error
4489_ACEOF
4490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } >/dev/null; then
4498 if test -s conftest.err; then
4499 ac_cpp_err=$ac_cxx_preproc_warn_flag
4500 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4501 else
4502 ac_cpp_err=
4503 fi
4504else
4505 ac_cpp_err=yes
4506fi
4507if test -z "$ac_cpp_err"; then
4508 :
4509else
4510 echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 # Broken: fails on valid input.
4514continue
4515fi
4516rm -f conftest.err conftest.$ac_ext
4517
4518 # OK, works on sane cases. Now check whether non-existent headers
4519 # can be detected and how.
4520 cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
4526#include <ac_nonexistent.h>
4527_ACEOF
4528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } >/dev/null; then
4536 if test -s conftest.err; then
4537 ac_cpp_err=$ac_cxx_preproc_warn_flag
4538 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4539 else
4540 ac_cpp_err=
4541 fi
4542else
4543 ac_cpp_err=yes
4544fi
4545if test -z "$ac_cpp_err"; then
4546 # Broken: success on invalid input.
4547continue
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 # Passes both tests.
4553ac_preproc_ok=:
4554break
4555fi
4556rm -f conftest.err conftest.$ac_ext
4557
4558done
4559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560rm -f conftest.err conftest.$ac_ext
4561if $ac_preproc_ok; then
4562 break
4563fi
4564
4565 done
4566 ac_cv_prog_CXXCPP=$CXXCPP
4567
4568fi
4569 CXXCPP=$ac_cv_prog_CXXCPP
4570else
4571 ac_cv_prog_CXXCPP=$CXXCPP
4572fi
4573echo "$as_me:$LINENO: result: $CXXCPP" >&5
4574echo "${ECHO_T}$CXXCPP" >&6
4575ac_preproc_ok=false
4576for ac_cxx_preproc_warn_flag in '' yes
4577do
4578 # Use a header file that comes with gcc, so configuring glibc
4579 # with a fresh cross-compiler works.
4580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 # <limits.h> exists even on freestanding compilers.
4582 # On the NeXT, cc -E runs the code through the compiler's parser,
4583 # not just through cpp. "Syntax error" is here to catch this case.
4584 cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590#ifdef __STDC__
4591# include <limits.h>
4592#else
4593# include <assert.h>
4594#endif
4595 Syntax error
4596_ACEOF
4597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } >/dev/null; then
4605 if test -s conftest.err; then
4606 ac_cpp_err=$ac_cxx_preproc_warn_flag
4607 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4608 else
4609 ac_cpp_err=
4610 fi
4611else
4612 ac_cpp_err=yes
4613fi
4614if test -z "$ac_cpp_err"; then
4615 :
4616else
4617 echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 # Broken: fails on valid input.
4621continue
4622fi
4623rm -f conftest.err conftest.$ac_ext
4624
4625 # OK, works on sane cases. Now check whether non-existent headers
4626 # can be detected and how.
4627 cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633#include <ac_nonexistent.h>
4634_ACEOF
4635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } >/dev/null; then
4643 if test -s conftest.err; then
4644 ac_cpp_err=$ac_cxx_preproc_warn_flag
4645 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4646 else
4647 ac_cpp_err=
4648 fi
4649else
4650 ac_cpp_err=yes
4651fi
4652if test -z "$ac_cpp_err"; then
4653 # Broken: success on invalid input.
4654continue
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 # Passes both tests.
4660ac_preproc_ok=:
4661break
4662fi
4663rm -f conftest.err conftest.$ac_ext
4664
4665done
4666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667rm -f conftest.err conftest.$ac_ext
4668if $ac_preproc_ok; then
4669 :
4670else
4671 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4672See \`config.log' for more details." >&5
4673echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4674See \`config.log' for more details." >&2;}
4675 { (exit 1); exit 1; }; }
4676fi
4677
4678ac_ext=cc
4679ac_cpp='$CXXCPP $CPPFLAGS'
4680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4683
4684
4685ac_ext=f
4686ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4687ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4689if test -n "$ac_tool_prefix"; then
4690 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4691 do
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694echo "$as_me:$LINENO: checking for $ac_word" >&5
4695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696if test "${ac_cv_prog_F77+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699 if test -n "$F77"; then
4700 ac_cv_prog_F77="$F77" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713done
4714done
4715
4716fi
4717fi
4718F77=$ac_cv_prog_F77
4719if test -n "$F77"; then
4720 echo "$as_me:$LINENO: result: $F77" >&5
4721echo "${ECHO_T}$F77" >&6
4722else
4723 echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6
4725fi
4726
4727 test -n "$F77" && break
4728 done
4729fi
4730if test -z "$F77"; then
4731 ac_ct_F77=$F77
4732 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4733do
4734 # Extract the first word of "$ac_prog", so it can be a program name with args.
4735set dummy $ac_prog; ac_word=$2
4736echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741 if test -n "$ac_ct_F77"; then
4742 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4743else
4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_F77="$ac_prog"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755done
4756done
4757
4758fi
4759fi
4760ac_ct_F77=$ac_cv_prog_ac_ct_F77
4761if test -n "$ac_ct_F77"; then
4762 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4763echo "${ECHO_T}$ac_ct_F77" >&6
4764else
4765 echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
4767fi
4768
4769 test -n "$ac_ct_F77" && break
4770done
4771
4772 F77=$ac_ct_F77
4773fi
4774
4775
4776# Provide some information about the compiler.
4777echo "$as_me:4777:" \
4778 "checking for Fortran 77 compiler version" >&5
4779ac_compiler=`set X $ac_compile; echo $2`
4780{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4781 (eval $ac_compiler --version </dev/null >&5) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }
4785{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4786 (eval $ac_compiler -v </dev/null >&5) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }
4790{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4791 (eval $ac_compiler -V </dev/null >&5) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }
4795rm -f a.out
4796
4797# If we don't use `.F' as extension, the preprocessor is not run on the
4798# input file. (Note that this only needs to work for GNU compilers.)
4799ac_save_ext=$ac_ext
4800ac_ext=F
4801echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4802echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4803if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806 cat >conftest.$ac_ext <<_ACEOF
4807 program main
4808#ifndef __GNUC__
4809 choke me
4810#endif
4811
4812 end
4813_ACEOF
4814rm -f conftest.$ac_objext
4815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_f77_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_compiler_gnu=yes
4837else
4838 echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841ac_compiler_gnu=no
4842fi
4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4845
4846fi
4847echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4848echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4849ac_ext=$ac_save_ext
4850ac_test_FFLAGS=${FFLAGS+set}
4851ac_save_FFLAGS=$FFLAGS
4852FFLAGS=
4853echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4854echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4855if test "${ac_cv_prog_f77_g+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 FFLAGS=-g
4859cat >conftest.$ac_ext <<_ACEOF
4860 program main
4861
4862 end
4863_ACEOF
4864rm -f conftest.$ac_objext
4865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_f77_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_prog_f77_g=yes
4887else
4888 echo "$as_me: failed program was:" >&5
4889sed 's/^/| /' conftest.$ac_ext >&5
4890
4891ac_cv_prog_f77_g=no
4892fi
4893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4894
4895fi
4896echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4897echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4898if test "$ac_test_FFLAGS" = set; then
4899 FFLAGS=$ac_save_FFLAGS
4900elif test $ac_cv_prog_f77_g = yes; then
4901 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4902 FFLAGS="-g -O2"
4903 else
4904 FFLAGS="-g"
4905 fi
4906else
4907 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4908 FFLAGS="-O2"
4909 else
4910 FFLAGS=
4911 fi
4912fi
4913
4914G77=`test $ac_compiler_gnu = yes && echo yes`
4915ac_ext=c
4916ac_cpp='$CPP $CPPFLAGS'
4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
4921
4922
4923# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4924
4925# find the maximum length of command line arguments
4926echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4927echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4928if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
4931 i=0
4932 teststring="ABCD"
4933
4934 case $build_os in
4935 msdosdjgpp*)
4936 # On DJGPP, this test can blow up pretty badly due to problems in libc
4937 # (any single argument exceeding 2000 bytes causes a buffer overrun
4938 # during glob expansion). Even if it were fixed, the result of this
4939 # check would be larger than it should be.
4940 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4941 ;;
4942
4943 gnu*)
4944 # Under GNU Hurd, this test is not required because there is
4945 # no limit to the length of command line arguments.
4946 # Libtool will interpret -1 as no limit whatsoever
4947 lt_cv_sys_max_cmd_len=-1;
4948 ;;
4949
4950 cygwin* | mingw*)
4951 # On Win9x/ME, this test blows up -- it succeeds, but takes
4952 # about 5 minutes as the teststring grows exponentially.
4953 # Worse, since 9x/ME are not pre-emptively multitasking,
4954 # you end up with a "frozen" computer, even though with patience
4955 # the test eventually succeeds (with a max line length of 256k).
4956 # Instead, let's just punt: use the minimum linelength reported by
4957 # all of the supported platforms: 8192 (on NT/2K/XP).
4958 lt_cv_sys_max_cmd_len=8192;
4959 ;;
4960
4961 amigaos*)
4962 # On AmigaOS with pdksh, this test takes hours, literally.
4963 # So we just punt and use a minimum line length of 8192.
4964 lt_cv_sys_max_cmd_len=8192;
4965 ;;
4966
4967 *)
4968 # If test is not a shell built-in, we'll probably end up computing a
4969 # maximum length that is only half of the actual maximum length, but
4970 # we can't tell.
4971 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4972 = "XX$teststring") >/dev/null 2>&1 &&
4973 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4974 lt_cv_sys_max_cmd_len=$new_result &&
4975 test $i != 17 # 1/2 MB should be enough
4976 do
4977 i=`expr $i + 1`
4978 teststring=$teststring$teststring
4979 done
4980 teststring=
4981 # Add a significant safety factor because C++ compilers can tack on massive
4982 # amounts of additional arguments before passing them to the linker.
4983 # It appears as though 1/2 is a usable value.
4984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4985 ;;
4986 esac
4987
4988fi
4989
4990if test -n $lt_cv_sys_max_cmd_len ; then
4991 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4992echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4993else
4994 echo "$as_me:$LINENO: result: none" >&5
4995echo "${ECHO_T}none" >&6
4996fi
jjako286bc982003-01-28 23:17:50 +00004997
4998
4999
5000
5001# Check for command to grab the raw symbol name followed by C symbol from nm.
jjakoacba8e62005-03-14 21:53:10 +00005002echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5003echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00005004if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007
5008# These are sane defaults that work on at least a few old systems.
5009# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5010
5011# Character class describing NM global symbol codes.
5012symcode='[BCDEGRST]'
5013
5014# Regexp to match symbols that can be accessed directly from C.
5015sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5016
5017# Transform the above into a raw symbol and a C symbol.
5018symxfrm='\1 \2\3 \3'
5019
5020# Transform an extracted symbol line into a proper C declaration
jjakoacba8e62005-03-14 21:53:10 +00005021lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
jjako286bc982003-01-28 23:17:50 +00005022
5023# Transform an extracted symbol line into symbol name and symbol address
jjakoacba8e62005-03-14 21:53:10 +00005024lt_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'"
jjako286bc982003-01-28 23:17:50 +00005025
5026# Define system-specific variables.
5027case $host_os in
5028aix*)
5029 symcode='[BCDT]'
5030 ;;
5031cygwin* | mingw* | pw32*)
5032 symcode='[ABCDGISTW]'
5033 ;;
5034hpux*) # Its linker distinguishes data from code symbols
jjakoacba8e62005-03-14 21:53:10 +00005035 if test "$host_cpu" = ia64; then
5036 symcode='[ABCDEGRST]'
5037 fi
5038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5039 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'"
jjako286bc982003-01-28 23:17:50 +00005040 ;;
jjako08d331d2003-10-13 20:33:30 +00005041irix* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00005042 symcode='[BCDEGRST]'
5043 ;;
jjako08d331d2003-10-13 20:33:30 +00005044osf*)
5045 symcode='[BCDEGQRST]'
5046 ;;
jjako286bc982003-01-28 23:17:50 +00005047solaris* | sysv5*)
jjakoacba8e62005-03-14 21:53:10 +00005048 symcode='[BDRT]'
jjako286bc982003-01-28 23:17:50 +00005049 ;;
5050sysv4)
5051 symcode='[DFNSTU]'
5052 ;;
5053esac
5054
5055# Handle CRLF in mingw tool chain
5056opt_cr=
jjakoacba8e62005-03-14 21:53:10 +00005057case $build_os in
jjako286bc982003-01-28 23:17:50 +00005058mingw*)
5059 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5060 ;;
5061esac
5062
5063# If we're using GNU nm, then use its standard symbol codes.
jjakoacba8e62005-03-14 21:53:10 +00005064case `$NM -V 2>&1` in
5065*GNU* | *'with BFD'*)
5066 symcode='[ABCDGIRSTW]' ;;
5067esac
jjako286bc982003-01-28 23:17:50 +00005068
5069# Try without a prefix undercore, then with it.
5070for ac_symprfx in "" "_"; do
5071
5072 # Write the raw and C identifiers.
jjakoacba8e62005-03-14 21:53:10 +00005073 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
jjako286bc982003-01-28 23:17:50 +00005074
5075 # Check to see that the pipe works correctly.
5076 pipe_works=no
jjakoacba8e62005-03-14 21:53:10 +00005077
jjako286bc982003-01-28 23:17:50 +00005078 rm -f conftest*
5079 cat > conftest.$ac_ext <<EOF
5080#ifdef __cplusplus
5081extern "C" {
5082#endif
5083char nm_test_var;
5084void nm_test_func(){}
5085#ifdef __cplusplus
5086}
5087#endif
5088int main(){nm_test_var='a';nm_test_func();return(0);}
5089EOF
5090
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; then
5096 # Now try to grab the symbols.
5097 nlist=conftest.nm
5098 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5099 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && test -s "$nlist"; then
5103 # Try sorting and uniquifying the output.
5104 if sort "$nlist" | uniq > "$nlist"T; then
5105 mv -f "$nlist"T "$nlist"
5106 else
5107 rm -f "$nlist"T
5108 fi
5109
5110 # Make sure that we snagged all the symbols we need.
jjakoacba8e62005-03-14 21:53:10 +00005111 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5112 if grep ' nm_test_func$' "$nlist" >/dev/null; then
jjako286bc982003-01-28 23:17:50 +00005113 cat <<EOF > conftest.$ac_ext
5114#ifdef __cplusplus
5115extern "C" {
5116#endif
5117
5118EOF
5119 # Now generate the symbol file.
jjakoacba8e62005-03-14 21:53:10 +00005120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
jjako286bc982003-01-28 23:17:50 +00005121
5122 cat <<EOF >> conftest.$ac_ext
5123#if defined (__STDC__) && __STDC__
jjakoacba8e62005-03-14 21:53:10 +00005124# define lt_ptr_t void *
jjako286bc982003-01-28 23:17:50 +00005125#else
jjakoacba8e62005-03-14 21:53:10 +00005126# define lt_ptr_t char *
jjako286bc982003-01-28 23:17:50 +00005127# define const
5128#endif
5129
5130/* The mapping between symbol names and symbols. */
5131const struct {
5132 const char *name;
jjakoacba8e62005-03-14 21:53:10 +00005133 lt_ptr_t address;
jjako286bc982003-01-28 23:17:50 +00005134}
5135lt_preloaded_symbols[] =
5136{
5137EOF
jjakoacba8e62005-03-14 21:53:10 +00005138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00005139 cat <<\EOF >> conftest.$ac_ext
jjakoacba8e62005-03-14 21:53:10 +00005140 {0, (lt_ptr_t) 0}
jjako286bc982003-01-28 23:17:50 +00005141};
5142
5143#ifdef __cplusplus
5144}
5145#endif
5146EOF
5147 # Now try linking the two files.
5148 mv conftest.$ac_objext conftstm.$ac_objext
jjakoacba8e62005-03-14 21:53:10 +00005149 lt_save_LIBS="$LIBS"
5150 lt_save_CFLAGS="$CFLAGS"
jjako286bc982003-01-28 23:17:50 +00005151 LIBS="conftstm.$ac_objext"
jjakoacba8e62005-03-14 21:53:10 +00005152 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jjako286bc982003-01-28 23:17:50 +00005153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154 (eval $ac_link) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjakoacba8e62005-03-14 21:53:10 +00005157 (exit $ac_status); } && test -s conftest${ac_exeext}; then
jjako286bc982003-01-28 23:17:50 +00005158 pipe_works=yes
5159 fi
jjakoacba8e62005-03-14 21:53:10 +00005160 LIBS="$lt_save_LIBS"
5161 CFLAGS="$lt_save_CFLAGS"
jjako286bc982003-01-28 23:17:50 +00005162 else
5163 echo "cannot find nm_test_func in $nlist" >&5
5164 fi
5165 else
5166 echo "cannot find nm_test_var in $nlist" >&5
5167 fi
5168 else
5169 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5170 fi
5171 else
5172 echo "$progname: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5174 fi
5175 rm -f conftest* conftst*
5176
5177 # Do not use the global_symbol_pipe unless it works.
5178 if test "$pipe_works" = yes; then
5179 break
5180 else
5181 lt_cv_sys_global_symbol_pipe=
5182 fi
5183done
5184
5185fi
5186
jjako286bc982003-01-28 23:17:50 +00005187if test -z "$lt_cv_sys_global_symbol_pipe"; then
jjakoacba8e62005-03-14 21:53:10 +00005188 lt_cv_sys_global_symbol_to_cdecl=
jjako286bc982003-01-28 23:17:50 +00005189fi
jjakoacba8e62005-03-14 21:53:10 +00005190if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jjako286bc982003-01-28 23:17:50 +00005191 echo "$as_me:$LINENO: result: failed" >&5
5192echo "${ECHO_T}failed" >&6
5193else
5194 echo "$as_me:$LINENO: result: ok" >&5
5195echo "${ECHO_T}ok" >&6
5196fi
5197
jjakoacba8e62005-03-14 21:53:10 +00005198echo "$as_me:$LINENO: checking for objdir" >&5
5199echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5200if test "${lt_cv_objdir+set}" = set; then
jjako08d331d2003-10-13 20:33:30 +00005201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
jjakoacba8e62005-03-14 21:53:10 +00005203 rm -f .libs 2>/dev/null
5204mkdir .libs 2>/dev/null
5205if test -d .libs; then
5206 lt_cv_objdir=.libs
jjako286bc982003-01-28 23:17:50 +00005207else
jjakoacba8e62005-03-14 21:53:10 +00005208 # MS-DOS does not allow filenames that begin with a dot.
5209 lt_cv_objdir=_libs
jjako286bc982003-01-28 23:17:50 +00005210fi
jjakoacba8e62005-03-14 21:53:10 +00005211rmdir .libs 2>/dev/null
jjako286bc982003-01-28 23:17:50 +00005212fi
jjakoacba8e62005-03-14 21:53:10 +00005213echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5214echo "${ECHO_T}$lt_cv_objdir" >&6
5215objdir=$lt_cv_objdir
jjako286bc982003-01-28 23:17:50 +00005216
5217
5218
5219
5220
jjakoacba8e62005-03-14 21:53:10 +00005221case $host_os in
5222aix3*)
5223 # AIX sometimes has problems with the GCC collect2 program. For some
5224 # reason, if we set the COLLECT_NAMES environment variable, the problems
5225 # vanish in a puff of smoke.
5226 if test "X${COLLECT_NAMES+set}" != Xset; then
5227 COLLECT_NAMES=
5228 export COLLECT_NAMES
jjako286bc982003-01-28 23:17:50 +00005229 fi
jjakoacba8e62005-03-14 21:53:10 +00005230 ;;
jjako286bc982003-01-28 23:17:50 +00005231esac
jjakoacba8e62005-03-14 21:53:10 +00005232
5233# Sed substitution that helps us do robust quoting. It backslashifies
5234# metacharacters that are still active within double-quoted strings.
5235Xsed='sed -e s/^X//'
5236sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5237
5238# Same as above, but do not quote variable references.
5239double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5240
5241# Sed substitution to delay expansion of an escaped shell variable in a
5242# double_quote_subst'ed string.
5243delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5244
5245# Sed substitution to avoid accidental globbing in evaled expressions
5246no_glob_subst='s/\*/\\\*/g'
5247
5248# Constants:
5249rm="rm -f"
5250
5251# Global variables:
5252default_ofile=libtool
5253can_build_shared=yes
5254
5255# All known linkers require a `.a' archive for static linking (except M$VC,
5256# which needs '.lib').
5257libext=a
5258ltmain="$ac_aux_dir/ltmain.sh"
5259ofile="$default_ofile"
5260with_gnu_ld="$lt_cv_prog_gnu_ld"
5261
5262if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5264set dummy ${ac_tool_prefix}ar; ac_word=$2
5265echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267if test "${ac_cv_prog_AR+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00005268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
jjakoacba8e62005-03-14 21:53:10 +00005270 if test -n "$AR"; then
5271 ac_cv_prog_AR="$AR" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_AR="${ac_tool_prefix}ar"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284done
jjako286bc982003-01-28 23:17:50 +00005285done
5286
jjako286bc982003-01-28 23:17:50 +00005287fi
jjakoacba8e62005-03-14 21:53:10 +00005288fi
5289AR=$ac_cv_prog_AR
5290if test -n "$AR"; then
5291 echo "$as_me:$LINENO: result: $AR" >&5
5292echo "${ECHO_T}$AR" >&6
jjako286bc982003-01-28 23:17:50 +00005293else
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296fi
5297
jjakoacba8e62005-03-14 21:53:10 +00005298fi
5299if test -z "$ac_cv_prog_AR"; then
5300 ac_ct_AR=$AR
5301 # Extract the first word of "ar", so it can be a program name with args.
5302set dummy ar; ac_word=$2
5303echo "$as_me:$LINENO: checking for $ac_word" >&5
5304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00005306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
jjakoacba8e62005-03-14 21:53:10 +00005308 if test -n "$ac_ct_AR"; then
5309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_prog_ac_ct_AR="ar"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322done
5323done
jjako286bc982003-01-28 23:17:50 +00005324
jjakoacba8e62005-03-14 21:53:10 +00005325 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
jjako286bc982003-01-28 23:17:50 +00005326fi
jjakoacba8e62005-03-14 21:53:10 +00005327fi
5328ac_ct_AR=$ac_cv_prog_ac_ct_AR
5329if test -n "$ac_ct_AR"; then
5330 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5331echo "${ECHO_T}$ac_ct_AR" >&6
jjako286bc982003-01-28 23:17:50 +00005332else
5333 echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
5335fi
5336
jjakoacba8e62005-03-14 21:53:10 +00005337 AR=$ac_ct_AR
5338else
5339 AR="$ac_cv_prog_AR"
jjako286bc982003-01-28 23:17:50 +00005340fi
5341
jjako286bc982003-01-28 23:17:50 +00005342if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5344set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5345echo "$as_me:$LINENO: checking for $ac_word" >&5
5346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347if test "${ac_cv_prog_RANLIB+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 if test -n "$RANLIB"; then
5351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364done
5365done
5366
5367fi
5368fi
5369RANLIB=$ac_cv_prog_RANLIB
5370if test -n "$RANLIB"; then
5371 echo "$as_me:$LINENO: result: $RANLIB" >&5
5372echo "${ECHO_T}$RANLIB" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378fi
5379if test -z "$ac_cv_prog_RANLIB"; then
5380 ac_ct_RANLIB=$RANLIB
5381 # Extract the first word of "ranlib", so it can be a program name with args.
5382set dummy ranlib; ac_word=$2
5383echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 if test -n "$ac_ct_RANLIB"; then
5389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ac_ct_RANLIB="ranlib"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403done
5404
5405 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5406fi
5407fi
5408ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5409if test -n "$ac_ct_RANLIB"; then
5410 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5411echo "${ECHO_T}$ac_ct_RANLIB" >&6
5412else
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415fi
5416
5417 RANLIB=$ac_ct_RANLIB
5418else
5419 RANLIB="$ac_cv_prog_RANLIB"
5420fi
5421
5422if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5424set dummy ${ac_tool_prefix}strip; ac_word=$2
5425echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427if test "${ac_cv_prog_STRIP+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430 if test -n "$STRIP"; then
5431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5432else
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444done
5445done
5446
5447fi
5448fi
5449STRIP=$ac_cv_prog_STRIP
5450if test -n "$STRIP"; then
5451 echo "$as_me:$LINENO: result: $STRIP" >&5
5452echo "${ECHO_T}$STRIP" >&6
5453else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457
5458fi
5459if test -z "$ac_cv_prog_STRIP"; then
5460 ac_ct_STRIP=$STRIP
5461 # Extract the first word of "strip", so it can be a program name with args.
5462set dummy strip; ac_word=$2
5463echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 if test -n "$ac_ct_STRIP"; then
5469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5470else
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_STRIP="strip"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482done
5483done
5484
5485 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5486fi
5487fi
5488ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5489if test -n "$ac_ct_STRIP"; then
5490 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5491echo "${ECHO_T}$ac_ct_STRIP" >&6
5492else
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495fi
5496
5497 STRIP=$ac_ct_STRIP
5498else
5499 STRIP="$ac_cv_prog_STRIP"
5500fi
5501
5502
jjako286bc982003-01-28 23:17:50 +00005503old_CC="$CC"
5504old_CFLAGS="$CFLAGS"
5505
5506# Set sane defaults for various variables
5507test -z "$AR" && AR=ar
5508test -z "$AR_FLAGS" && AR_FLAGS=cru
5509test -z "$AS" && AS=as
5510test -z "$CC" && CC=cc
jjakoacba8e62005-03-14 21:53:10 +00005511test -z "$LTCC" && LTCC=$CC
jjako286bc982003-01-28 23:17:50 +00005512test -z "$DLLTOOL" && DLLTOOL=dlltool
5513test -z "$LD" && LD=ld
5514test -z "$LN_S" && LN_S="ln -s"
5515test -z "$MAGIC_CMD" && MAGIC_CMD=file
5516test -z "$NM" && NM=nm
jjakoacba8e62005-03-14 21:53:10 +00005517test -z "$SED" && SED=sed
jjako286bc982003-01-28 23:17:50 +00005518test -z "$OBJDUMP" && OBJDUMP=objdump
5519test -z "$RANLIB" && RANLIB=:
5520test -z "$STRIP" && STRIP=:
5521test -z "$ac_objext" && ac_objext=o
5522
jjako286bc982003-01-28 23:17:50 +00005523# Determine commands to create old-style static archives.
5524old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5525old_postinstall_cmds='chmod 644 $oldlib'
5526old_postuninstall_cmds=
5527
5528if test -n "$RANLIB"; then
5529 case $host_os in
5530 openbsd*)
5531 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00005532 ;;
5533 *)
jjako286bc982003-01-28 23:17:50 +00005534 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00005535 ;;
jjako286bc982003-01-28 23:17:50 +00005536 esac
5537 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5538fi
5539
jjakoacba8e62005-03-14 21:53:10 +00005540# Only perform the check for file, if the check method requires it
5541case $deplibs_check_method in
5542file_magic*)
5543 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5544 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5545echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5546if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00005548else
jjakoacba8e62005-03-14 21:53:10 +00005549 case $MAGIC_CMD in
5550[\\/*] | ?:[\\/]*)
5551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5552 ;;
5553*)
5554 lt_save_MAGIC_CMD="$MAGIC_CMD"
5555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5557 for ac_dir in $ac_dummy; do
5558 IFS="$lt_save_ifs"
5559 test -z "$ac_dir" && ac_dir=.
5560 if test -f $ac_dir/${ac_tool_prefix}file; then
5561 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5562 if test -n "$file_magic_test_file"; then
5563 case $deplibs_check_method in
5564 "file_magic "*)
5565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5568 $EGREP "$file_magic_regex" > /dev/null; then
5569 :
5570 else
5571 cat <<EOF 1>&2
jjako286bc982003-01-28 23:17:50 +00005572
jjakoacba8e62005-03-14 21:53:10 +00005573*** Warning: the command libtool uses to detect shared libraries,
5574*** $file_magic_cmd, produces output that libtool cannot recognize.
5575*** The result is that libtool may fail to recognize shared libraries
5576*** as such. This will affect the creation of libtool libraries that
5577*** depend on shared libraries, but programs linked with such libtool
5578*** libraries will work regardless of this problem. Nevertheless, you
5579*** may want to report the problem to your system manager and/or to
5580*** bug-libtool@gnu.org
5581
5582EOF
5583 fi ;;
5584 esac
5585 fi
5586 break
5587 fi
5588 done
5589 IFS="$lt_save_ifs"
5590 MAGIC_CMD="$lt_save_MAGIC_CMD"
5591 ;;
5592esac
5593fi
5594
5595MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5596if test -n "$MAGIC_CMD"; then
5597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5598echo "${ECHO_T}$MAGIC_CMD" >&6
5599else
5600 echo "$as_me:$LINENO: result: no" >&5
5601echo "${ECHO_T}no" >&6
5602fi
5603
5604if test -z "$lt_cv_path_MAGIC_CMD"; then
5605 if test -n "$ac_tool_prefix"; then
5606 echo "$as_me:$LINENO: checking for file" >&5
5607echo $ECHO_N "checking for file... $ECHO_C" >&6
5608if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611 case $MAGIC_CMD in
5612[\\/*] | ?:[\\/]*)
5613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5614 ;;
5615*)
5616 lt_save_MAGIC_CMD="$MAGIC_CMD"
5617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5619 for ac_dir in $ac_dummy; do
5620 IFS="$lt_save_ifs"
5621 test -z "$ac_dir" && ac_dir=.
5622 if test -f $ac_dir/file; then
5623 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5624 if test -n "$file_magic_test_file"; then
5625 case $deplibs_check_method in
5626 "file_magic "*)
5627 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5630 $EGREP "$file_magic_regex" > /dev/null; then
5631 :
5632 else
5633 cat <<EOF 1>&2
5634
5635*** Warning: the command libtool uses to detect shared libraries,
5636*** $file_magic_cmd, produces output that libtool cannot recognize.
5637*** The result is that libtool may fail to recognize shared libraries
5638*** as such. This will affect the creation of libtool libraries that
5639*** depend on shared libraries, but programs linked with such libtool
5640*** libraries will work regardless of this problem. Nevertheless, you
5641*** may want to report the problem to your system manager and/or to
5642*** bug-libtool@gnu.org
5643
5644EOF
5645 fi ;;
5646 esac
5647 fi
5648 break
5649 fi
5650 done
5651 IFS="$lt_save_ifs"
5652 MAGIC_CMD="$lt_save_MAGIC_CMD"
5653 ;;
5654esac
5655fi
5656
5657MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5658if test -n "$MAGIC_CMD"; then
5659 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5660echo "${ECHO_T}$MAGIC_CMD" >&6
5661else
5662 echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664fi
5665
5666 else
5667 MAGIC_CMD=:
5668 fi
5669fi
5670
5671 fi
5672 ;;
5673esac
5674
5675enable_dlopen=no
5676enable_win32_dll=no
5677
5678# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5679if test "${enable_libtool_lock+set}" = set; then
5680 enableval="$enable_libtool_lock"
5681
5682fi;
5683test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
jjako286bc982003-01-28 23:17:50 +00005684
5685
5686# Check whether --with-pic or --without-pic was given.
5687if test "${with_pic+set}" = set; then
5688 withval="$with_pic"
5689 pic_mode="$withval"
5690else
5691 pic_mode=default
5692fi;
5693test -z "$pic_mode" && pic_mode=default
5694
jjakoacba8e62005-03-14 21:53:10 +00005695# Use C for the default configuration in the libtool script
5696tagname=
5697lt_save_CC="$CC"
5698ac_ext=c
5699ac_cpp='$CPP $CPPFLAGS'
5700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704
5705# Source file extension for C test sources.
5706ac_ext=c
5707
5708# Object file extension for compiled C test sources.
5709objext=o
5710objext=$objext
5711
5712# Code to be used in simple compile tests
5713lt_simple_compile_test_code="int some_variable = 0;\n"
5714
5715# Code to be used in simple link tests
5716lt_simple_link_test_code='int main(){return(0);}\n'
5717
5718
5719# If no C compiler was specified, use CC.
5720LTCC=${LTCC-"$CC"}
5721
5722# Allow CC to be a program name with arguments.
5723compiler=$CC
5724
5725
5726#
5727# Check for any special shared library compilation flags.
5728#
5729lt_prog_cc_shlib=
5730if test "$GCC" = no; then
5731 case $host_os in
5732 sco3.2v5*)
5733 lt_prog_cc_shlib='-belf'
5734 ;;
5735 esac
5736fi
5737if test -n "$lt_prog_cc_shlib"; then
5738 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5739echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5740 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5741 else
5742 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5743echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5744 lt_cv_prog_cc_can_build_shared=no
5745 fi
5746fi
5747
5748
5749#
5750# Check to make sure the static flag actually works.
5751#
5752echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5753echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5754if test "${lt_prog_compiler_static_works+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00005755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
jjakoacba8e62005-03-14 21:53:10 +00005757 lt_prog_compiler_static_works=no
5758 save_LDFLAGS="$LDFLAGS"
5759 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5760 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5762 # The compiler can only warn and ignore the option if not recognized
5763 # So say no if there are warnings
5764 if test -s conftest.err; then
5765 # Append any errors to the config.log.
5766 cat conftest.err 1>&5
5767 else
5768 lt_prog_compiler_static_works=yes
5769 fi
5770 fi
5771 $rm conftest*
5772 LDFLAGS="$save_LDFLAGS"
5773
5774fi
5775echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5776echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5777
5778if test x"$lt_prog_compiler_static_works" = xyes; then
5779 :
5780else
5781 lt_prog_compiler_static=
5782fi
5783
5784
5785
5786
5787lt_prog_compiler_no_builtin_flag=
5788
5789if test "$GCC" = yes; then
5790 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5791
5792
5793echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5794echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5795if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798 lt_cv_prog_compiler_rtti_exceptions=no
5799 ac_outfile=conftest.$ac_objext
5800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5801 lt_compiler_flag="-fno-rtti -fno-exceptions"
5802 # Insert the option either (1) after the last *FLAGS variable, or
5803 # (2) before a word containing "conftest.", or (3) at the end.
5804 # Note that $ac_compile itself does not contain backslashes and begins
5805 # with a dollar sign (not a hyphen), so the echo should work correctly.
5806 # The option is referenced via a variable to avoid confusing sed.
5807 lt_compile=`echo "$ac_compile" | $SED \
5808 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5810 -e 's:$: $lt_compiler_flag:'`
5811 (eval echo "\"\$as_me:5811: $lt_compile\"" >&5)
5812 (eval "$lt_compile" 2>conftest.err)
5813 ac_status=$?
5814 cat conftest.err >&5
5815 echo "$as_me:5815: \$? = $ac_status" >&5
5816 if (exit $ac_status) && test -s "$ac_outfile"; then
5817 # The compiler can only warn and ignore the option if not recognized
5818 # So say no if there are warnings
5819 if test ! -s conftest.err; then
5820 lt_cv_prog_compiler_rtti_exceptions=yes
5821 fi
5822 fi
5823 $rm conftest*
5824
5825fi
5826echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5827echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5828
5829if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5830 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5831else
5832 :
5833fi
5834
5835fi
5836
5837lt_prog_compiler_wl=
5838lt_prog_compiler_pic=
5839lt_prog_compiler_static=
5840
5841echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5842echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00005843
5844 if test "$GCC" = yes; then
jjakoacba8e62005-03-14 21:53:10 +00005845 lt_prog_compiler_wl='-Wl,'
5846 lt_prog_compiler_static='-static'
jjako286bc982003-01-28 23:17:50 +00005847
5848 case $host_os in
jjakoacba8e62005-03-14 21:53:10 +00005849 aix*)
5850 # All AIX code is PIC.
5851 if test "$host_cpu" = ia64; then
5852 # AIX 5 now supports IA64 processor
5853 lt_prog_compiler_static='-Bstatic'
5854 fi
jjako286bc982003-01-28 23:17:50 +00005855 ;;
jjakoacba8e62005-03-14 21:53:10 +00005856
jjako286bc982003-01-28 23:17:50 +00005857 amigaos*)
5858 # FIXME: we need at least 68020 code to build shared libraries, but
5859 # adding the `-m68020' flag to GCC prevents building anything better,
5860 # like `-m68040'.
jjakoacba8e62005-03-14 21:53:10 +00005861 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
jjako286bc982003-01-28 23:17:50 +00005862 ;;
jjakoacba8e62005-03-14 21:53:10 +00005863
5864 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
jjako286bc982003-01-28 23:17:50 +00005865 # PIC is the default for these OSes.
5866 ;;
jjakoacba8e62005-03-14 21:53:10 +00005867
5868 mingw* | pw32* | os2*)
5869 # This hack is so that the source file can tell whether it is being
5870 # built for inclusion in a dll (and should export symbols for example).
5871 lt_prog_compiler_pic='-DDLL_EXPORT'
5872 ;;
5873
jjako286bc982003-01-28 23:17:50 +00005874 darwin* | rhapsody*)
5875 # PIC is the default on this platform
5876 # Common symbols not allowed in MH_DYLIB files
jjakoacba8e62005-03-14 21:53:10 +00005877 lt_prog_compiler_pic='-fno-common'
jjako286bc982003-01-28 23:17:50 +00005878 ;;
jjakoacba8e62005-03-14 21:53:10 +00005879
5880 msdosdjgpp*)
5881 # Just because we use GCC doesn't mean we suddenly get shared libraries
5882 # on systems that don't support them.
5883 lt_prog_compiler_can_build_shared=no
5884 enable_shared=no
jjako286bc982003-01-28 23:17:50 +00005885 ;;
jjakoacba8e62005-03-14 21:53:10 +00005886
jjako286bc982003-01-28 23:17:50 +00005887 sysv4*MP*)
5888 if test -d /usr/nec; then
jjakoacba8e62005-03-14 21:53:10 +00005889 lt_prog_compiler_pic=-Kconform_pic
jjako286bc982003-01-28 23:17:50 +00005890 fi
5891 ;;
jjakoacba8e62005-03-14 21:53:10 +00005892
5893 hpux*)
5894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5895 # not for PA HP-UX.
5896 case "$host_cpu" in
5897 hppa*64*|ia64*)
5898 # +Z the default
5899 ;;
5900 *)
5901 lt_prog_compiler_pic='-fPIC'
5902 ;;
5903 esac
5904 ;;
5905
jjako286bc982003-01-28 23:17:50 +00005906 *)
jjakoacba8e62005-03-14 21:53:10 +00005907 lt_prog_compiler_pic='-fPIC'
jjako286bc982003-01-28 23:17:50 +00005908 ;;
5909 esac
jjako52c24142002-12-16 13:33:51 +00005910 else
jjakoacba8e62005-03-14 21:53:10 +00005911 # PORTME Check for flag to pass linker flags through the system compiler.
jjako286bc982003-01-28 23:17:50 +00005912 case $host_os in
jjakoacba8e62005-03-14 21:53:10 +00005913 aix*)
5914 lt_prog_compiler_wl='-Wl,'
jjako286bc982003-01-28 23:17:50 +00005915 if test "$host_cpu" = ia64; then
5916 # AIX 5 now supports IA64 processor
jjakoacba8e62005-03-14 21:53:10 +00005917 lt_prog_compiler_static='-Bstatic'
jjako286bc982003-01-28 23:17:50 +00005918 else
jjakoacba8e62005-03-14 21:53:10 +00005919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
jjako286bc982003-01-28 23:17:50 +00005920 fi
5921 ;;
5922
jjakoacba8e62005-03-14 21:53:10 +00005923 mingw* | pw32* | os2*)
5924 # This hack is so that the source file can tell whether it is being
5925 # built for inclusion in a dll (and should export symbols for example).
5926 lt_prog_compiler_pic='-DDLL_EXPORT'
5927 ;;
5928
jjako286bc982003-01-28 23:17:50 +00005929 hpux9* | hpux10* | hpux11*)
jjakoacba8e62005-03-14 21:53:10 +00005930 lt_prog_compiler_wl='-Wl,'
5931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5932 # not for PA HP-UX.
5933 case "$host_cpu" in
5934 hppa*64*|ia64*)
5935 # +Z the default
5936 ;;
5937 *)
5938 lt_prog_compiler_pic='+Z'
5939 ;;
5940 esac
5941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5942 lt_prog_compiler_static='${wl}-a ${wl}archive'
jjako286bc982003-01-28 23:17:50 +00005943 ;;
5944
jjako08d331d2003-10-13 20:33:30 +00005945 irix5* | irix6* | nonstopux*)
jjakoacba8e62005-03-14 21:53:10 +00005946 lt_prog_compiler_wl='-Wl,'
jjako286bc982003-01-28 23:17:50 +00005947 # PIC (with -KPIC) is the default.
jjakoacba8e62005-03-14 21:53:10 +00005948 lt_prog_compiler_static='-non_shared'
jjako286bc982003-01-28 23:17:50 +00005949 ;;
5950
5951 newsos6)
jjakoacba8e62005-03-14 21:53:10 +00005952 lt_prog_compiler_pic='-KPIC'
5953 lt_prog_compiler_static='-Bstatic'
5954 ;;
5955
5956 linux*)
5957 case $CC in
5958 icc* | ecc*)
5959 lt_prog_compiler_wl='-Wl,'
5960 lt_prog_compiler_pic='-KPIC'
5961 lt_prog_compiler_static='-static'
5962 ;;
5963 ccc*)
5964 lt_prog_compiler_wl='-Wl,'
5965 # All Alpha code is PIC.
5966 lt_prog_compiler_static='-non_shared'
5967 ;;
5968 esac
jjako286bc982003-01-28 23:17:50 +00005969 ;;
5970
5971 osf3* | osf4* | osf5*)
jjakoacba8e62005-03-14 21:53:10 +00005972 lt_prog_compiler_wl='-Wl,'
jjako286bc982003-01-28 23:17:50 +00005973 # All OSF/1 code is PIC.
jjakoacba8e62005-03-14 21:53:10 +00005974 lt_prog_compiler_static='-non_shared'
jjako286bc982003-01-28 23:17:50 +00005975 ;;
5976
5977 sco3.2v5*)
jjakoacba8e62005-03-14 21:53:10 +00005978 lt_prog_compiler_pic='-Kpic'
5979 lt_prog_compiler_static='-dn'
jjako286bc982003-01-28 23:17:50 +00005980 ;;
5981
5982 solaris*)
jjakoacba8e62005-03-14 21:53:10 +00005983 lt_prog_compiler_wl='-Wl,'
5984 lt_prog_compiler_pic='-KPIC'
5985 lt_prog_compiler_static='-Bstatic'
jjako286bc982003-01-28 23:17:50 +00005986 ;;
5987
5988 sunos4*)
jjakoacba8e62005-03-14 21:53:10 +00005989 lt_prog_compiler_wl='-Qoption ld '
5990 lt_prog_compiler_pic='-PIC'
5991 lt_prog_compiler_static='-Bstatic'
jjako286bc982003-01-28 23:17:50 +00005992 ;;
5993
5994 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
jjakoacba8e62005-03-14 21:53:10 +00005995 lt_prog_compiler_wl='-Wl,'
5996 lt_prog_compiler_pic='-KPIC'
5997 lt_prog_compiler_static='-Bstatic'
jjako286bc982003-01-28 23:17:50 +00005998 ;;
5999
6000 sysv4*MP*)
6001 if test -d /usr/nec ;then
jjakoacba8e62005-03-14 21:53:10 +00006002 lt_prog_compiler_pic='-Kconform_pic'
6003 lt_prog_compiler_static='-Bstatic'
jjako286bc982003-01-28 23:17:50 +00006004 fi
6005 ;;
6006
jjakoacba8e62005-03-14 21:53:10 +00006007 uts4*)
6008 lt_prog_compiler_pic='-pic'
6009 lt_prog_compiler_static='-Bstatic'
6010 ;;
6011
jjako286bc982003-01-28 23:17:50 +00006012 *)
jjakoacba8e62005-03-14 21:53:10 +00006013 lt_prog_compiler_can_build_shared=no
jjako286bc982003-01-28 23:17:50 +00006014 ;;
6015 esac
6016 fi
6017
jjakoacba8e62005-03-14 21:53:10 +00006018echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6019echo "${ECHO_T}$lt_prog_compiler_pic" >&6
jjako286bc982003-01-28 23:17:50 +00006020
jjakoacba8e62005-03-14 21:53:10 +00006021#
6022# Check to make sure the PIC flag actually works.
6023#
6024if test -n "$lt_prog_compiler_pic"; then
jjako286bc982003-01-28 23:17:50 +00006025
jjakoacba8e62005-03-14 21:53:10 +00006026echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6027echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6028if test "${lt_prog_compiler_pic_works+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00006029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
jjakoacba8e62005-03-14 21:53:10 +00006031 lt_prog_compiler_pic_works=no
6032 ac_outfile=conftest.$ac_objext
6033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6034 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6035 # Insert the option either (1) after the last *FLAGS variable, or
6036 # (2) before a word containing "conftest.", or (3) at the end.
6037 # Note that $ac_compile itself does not contain backslashes and begins
6038 # with a dollar sign (not a hyphen), so the echo should work correctly.
6039 # The option is referenced via a variable to avoid confusing sed.
6040 lt_compile=`echo "$ac_compile" | $SED \
6041 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6043 -e 's:$: $lt_compiler_flag:'`
6044 (eval echo "\"\$as_me:6044: $lt_compile\"" >&5)
6045 (eval "$lt_compile" 2>conftest.err)
6046 ac_status=$?
6047 cat conftest.err >&5
6048 echo "$as_me:6048: \$? = $ac_status" >&5
6049 if (exit $ac_status) && test -s "$ac_outfile"; then
6050 # The compiler can only warn and ignore the option if not recognized
6051 # So say no if there are warnings
6052 if test ! -s conftest.err; then
6053 lt_prog_compiler_pic_works=yes
6054 fi
6055 fi
6056 $rm conftest*
jjako286bc982003-01-28 23:17:50 +00006057
jjakoacba8e62005-03-14 21:53:10 +00006058fi
6059echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6060echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
jjako286bc982003-01-28 23:17:50 +00006061
jjakoacba8e62005-03-14 21:53:10 +00006062if test x"$lt_prog_compiler_pic_works" = xyes; then
6063 case $lt_prog_compiler_pic in
6064 "" | " "*) ;;
6065 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6066 esac
jjako286bc982003-01-28 23:17:50 +00006067else
jjakoacba8e62005-03-14 21:53:10 +00006068 lt_prog_compiler_pic=
6069 lt_prog_compiler_can_build_shared=no
jjako286bc982003-01-28 23:17:50 +00006070fi
6071
jjako286bc982003-01-28 23:17:50 +00006072fi
jjakoacba8e62005-03-14 21:53:10 +00006073case "$host_os" in
6074 # For platforms which do not support PIC, -DPIC is meaningless:
6075 *djgpp*)
6076 lt_prog_compiler_pic=
6077 ;;
6078 *)
6079 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6080 ;;
6081esac
jjako286bc982003-01-28 23:17:50 +00006082
jjako286bc982003-01-28 23:17:50 +00006083echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6084echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
jjakoacba8e62005-03-14 21:53:10 +00006085if test "${lt_cv_prog_compiler_c_o+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00006086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
jjakoacba8e62005-03-14 21:53:10 +00006088 lt_cv_prog_compiler_c_o=no
6089 $rm -r conftest 2>/dev/null
6090 mkdir conftest
6091 cd conftest
6092 mkdir out
6093 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00006094
jjakoacba8e62005-03-14 21:53:10 +00006095 lt_compiler_flag="-o out/conftest2.$ac_objext"
6096 # Insert the option either (1) after the last *FLAGS variable, or
6097 # (2) before a word containing "conftest.", or (3) at the end.
6098 # Note that $ac_compile itself does not contain backslashes and begins
6099 # with a dollar sign (not a hyphen), so the echo should work correctly.
6100 lt_compile=`echo "$ac_compile" | $SED \
6101 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6103 -e 's:$: $lt_compiler_flag:'`
6104 (eval echo "\"\$as_me:6104: $lt_compile\"" >&5)
6105 (eval "$lt_compile" 2>out/conftest.err)
6106 ac_status=$?
6107 cat out/conftest.err >&5
6108 echo "$as_me:6108: \$? = $ac_status" >&5
6109 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6110 then
6111 # The compiler can only warn and ignore the option if not recognized
6112 # So say no if there are warnings
6113 if test ! -s out/conftest.err; then
6114 lt_cv_prog_compiler_c_o=yes
6115 fi
6116 fi
6117 chmod u+w .
6118 $rm conftest*
6119 # SGI C++ compiler will create directory out/ii_files/ for
6120 # template instantiation
6121 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6122 $rm out/* && rmdir out
6123 cd ..
6124 rmdir conftest
6125 $rm conftest*
jjako286bc982003-01-28 23:17:50 +00006126
6127fi
jjakoacba8e62005-03-14 21:53:10 +00006128echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6129echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
jjako286bc982003-01-28 23:17:50 +00006130
jjako286bc982003-01-28 23:17:50 +00006131
jjako286bc982003-01-28 23:17:50 +00006132hard_links="nottested"
jjakoacba8e62005-03-14 21:53:10 +00006133if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
jjako286bc982003-01-28 23:17:50 +00006134 # do not overwrite the value of need_locks provided by the user
6135 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6136echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6137 hard_links=yes
6138 $rm conftest*
6139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6140 touch conftest.a
6141 ln conftest.a conftest.b 2>&5 || hard_links=no
6142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6143 echo "$as_me:$LINENO: result: $hard_links" >&5
6144echo "${ECHO_T}$hard_links" >&6
6145 if test "$hard_links" = no; then
6146 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6147echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6148 need_locks=warn
6149 fi
6150else
6151 need_locks=no
6152fi
6153
jjakoacba8e62005-03-14 21:53:10 +00006154echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6155echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00006156
jjakoacba8e62005-03-14 21:53:10 +00006157 runpath_var=
6158 allow_undefined_flag=
6159 enable_shared_with_static_runtimes=no
6160 archive_cmds=
6161 archive_expsym_cmds=
6162 old_archive_From_new_cmds=
6163 old_archive_from_expsyms_cmds=
6164 export_dynamic_flag_spec=
6165 whole_archive_flag_spec=
6166 thread_safe_flag_spec=
6167 hardcode_libdir_flag_spec=
6168 hardcode_libdir_flag_spec_ld=
6169 hardcode_libdir_separator=
6170 hardcode_direct=no
6171 hardcode_minus_L=no
6172 hardcode_shlibpath_var=unsupported
6173 link_all_deplibs=unknown
6174 hardcode_automatic=no
6175 module_cmds=
6176 module_expsym_cmds=
6177 always_export_symbols=no
6178 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6179 # include_expsyms should be a list of space-separated symbols to be *always*
6180 # included in the symbol list
6181 include_expsyms=
6182 # exclude_expsyms can be an extended regexp of symbols to exclude
6183 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6184 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6185 # as well as any symbol that contains `d'.
6186 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6187 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6188 # platforms (ab)use it in PIC code, but their linkers get confused if
6189 # the symbol is explicitly referenced. Since portable code cannot
6190 # rely on this symbol name, it's probably fine to never include it in
6191 # preloaded symbol tables.
6192 extract_expsyms_cmds=
jjako286bc982003-01-28 23:17:50 +00006193
jjako286bc982003-01-28 23:17:50 +00006194 case $host_os in
jjakoacba8e62005-03-14 21:53:10 +00006195 cygwin* | mingw* | pw32*)
6196 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6197 # When not using gcc, we currently assume that we are using
6198 # Microsoft Visual C++.
6199 if test "$GCC" != yes; then
6200 with_gnu_ld=no
6201 fi
6202 ;;
6203 openbsd*)
6204 with_gnu_ld=no
6205 ;;
6206 esac
6207
6208 ld_shlibs=yes
6209 if test "$with_gnu_ld" = yes; then
6210 # If archive_cmds runs LD, not CC, wlarc should be empty
6211 wlarc='${wl}'
6212
6213 # See if GNU ld supports shared libraries.
6214 case $host_os in
6215 aix3* | aix4* | aix5*)
6216 # On AIX/PPC, the GNU linker is very broken
6217 if test "$host_cpu" != ia64; then
6218 ld_shlibs=no
6219 cat <<EOF 1>&2
jjako286bc982003-01-28 23:17:50 +00006220
6221*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6222*** to be unable to reliably create shared libraries on AIX.
6223*** Therefore, libtool is disabling shared libraries support. If you
6224*** really care for shared libraries, you may want to modify your PATH
6225*** so that a non-GNU linker is found, and then restart.
6226
6227EOF
jjakoacba8e62005-03-14 21:53:10 +00006228 fi
jjako286bc982003-01-28 23:17:50 +00006229 ;;
jjako286bc982003-01-28 23:17:50 +00006230
jjakoacba8e62005-03-14 21:53:10 +00006231 amigaos*)
6232 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)'
6233 hardcode_libdir_flag_spec='-L$libdir'
6234 hardcode_minus_L=yes
jjako286bc982003-01-28 23:17:50 +00006235
jjakoacba8e62005-03-14 21:53:10 +00006236 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6237 # that the semantics of dynamic libraries on AmigaOS, at least up
6238 # to version 4, is to share data among multiple programs linked
6239 # with the same dynamic library. Since this doesn't match the
6240 # behavior of shared libraries on other platforms, we can't use
6241 # them.
jjako286bc982003-01-28 23:17:50 +00006242 ld_shlibs=no
jjakoacba8e62005-03-14 21:53:10 +00006243 ;;
6244
6245 beos*)
6246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6247 allow_undefined_flag=unsupported
6248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6249 # support --undefined. This deserves some investigation. FIXME
6250 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6251 else
6252 ld_shlibs=no
6253 fi
6254 ;;
6255
6256 cygwin* | mingw* | pw32*)
6257 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6258 # as there is no search path for DLLs.
6259 hardcode_libdir_flag_spec='-L$libdir'
6260 allow_undefined_flag=unsupported
6261 always_export_symbols=no
6262 enable_shared_with_static_runtimes=yes
6263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6264
6265 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6267 # If the export-symbols file already is a .def file (1st line
6268 # is EXPORTS), use it as is; otherwise, prepend...
6269 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6270 cp $export_symbols $output_objdir/$soname.def;
6271 else
6272 echo EXPORTS > $output_objdir/$soname.def;
6273 cat $export_symbols >> $output_objdir/$soname.def;
6274 fi~
6275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6276 else
6277 ld_shlibs=no
6278 fi
6279 ;;
6280
6281 netbsd*)
6282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6283 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6284 wlarc=
6285 else
6286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6288 fi
6289 ;;
6290
6291 solaris* | sysv5*)
6292 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6293 ld_shlibs=no
6294 cat <<EOF 1>&2
jjako286bc982003-01-28 23:17:50 +00006295
6296*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6297*** create shared libraries on Solaris systems. Therefore, libtool
6298*** is disabling shared libraries support. We urge you to upgrade GNU
6299*** binutils to release 2.9.1 or newer. Another option is to modify
6300*** your PATH or compiler configuration so that the native linker is
6301*** used, and then restart.
6302
6303EOF
jjakoacba8e62005-03-14 21:53:10 +00006304 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
jjako286bc982003-01-28 23:17:50 +00006307 else
jjakoacba8e62005-03-14 21:53:10 +00006308 ld_shlibs=no
jjako286bc982003-01-28 23:17:50 +00006309 fi
6310 ;;
jjakoacba8e62005-03-14 21:53:10 +00006311
6312 sunos4*)
6313 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6314 wlarc=
6315 hardcode_direct=yes
6316 hardcode_shlibpath_var=no
6317 ;;
6318
6319 linux*)
6320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6321 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6322 archive_cmds="$tmp_archive_cmds"
6323 supports_anon_versioning=no
6324 case `$LD -v 2>/dev/null` in
6325 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6326 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6327 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6328 *\ 2.11.*) ;; # other 2.11 versions
6329 *) supports_anon_versioning=yes ;;
6330 esac
6331 if test $supports_anon_versioning = yes; then
6332 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6333cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6334$echo "local: *; };" >> $output_objdir/$libname.ver~
6335 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6336 else
6337 archive_expsym_cmds="$tmp_archive_cmds"
6338 fi
6339 else
6340 ld_shlibs=no
6341 fi
6342 ;;
6343
6344 *)
6345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6348 else
6349 ld_shlibs=no
6350 fi
6351 ;;
6352 esac
6353
6354 if test "$ld_shlibs" = yes; then
6355 runpath_var=LD_RUN_PATH
6356 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6357 export_dynamic_flag_spec='${wl}--export-dynamic'
6358 # ancient GNU ld didn't support --whole-archive et. al.
6359 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6360 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6361 else
6362 whole_archive_flag_spec=
6363 fi
6364 fi
6365 else
6366 # PORTME fill in a description of your system's linker (not GNU ld)
6367 case $host_os in
6368 aix3*)
6369 allow_undefined_flag=unsupported
6370 always_export_symbols=yes
6371 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'
6372 # Note: this linker hardcodes the directories in LIBPATH if there
6373 # are no directories specified by -L.
6374 hardcode_minus_L=yes
6375 if test "$GCC" = yes && test -z "$link_static_flag"; then
6376 # Neither direct hardcoding nor static linking is supported with a
6377 # broken collect2.
6378 hardcode_direct=unsupported
6379 fi
6380 ;;
6381
6382 aix4* | aix5*)
6383 if test "$host_cpu" = ia64; then
6384 # On IA64, the linker does run time linking by default, so we don't
6385 # have to do anything special.
6386 aix_use_runtimelinking=no
6387 exp_sym_flag='-Bexport'
6388 no_entry_flag=""
6389 else
6390 # If we're using GNU nm, then we don't want the "-C" option.
6391 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6392 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6393 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'
6394 else
6395 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'
6396 fi
6397 aix_use_runtimelinking=no
6398
6399 # Test if we are trying to use run time linking or normal
6400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6401 # need to do runtime linking.
6402 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6403 for ld_flag in $LDFLAGS; do
6404 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6405 aix_use_runtimelinking=yes
6406 break
6407 fi
6408 done
6409 esac
6410
6411 exp_sym_flag='-bexport'
6412 no_entry_flag='-bnoentry'
6413 fi
6414
6415 # When large executables or shared objects are built, AIX ld can
6416 # have problems creating the table of contents. If linking a library
6417 # or program results in "error TOC overflow" add -mminimal-toc to
6418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6420
6421 archive_cmds=''
6422 hardcode_direct=yes
6423 hardcode_libdir_separator=':'
6424 link_all_deplibs=yes
6425
6426 if test "$GCC" = yes; then
6427 case $host_os in aix4.012|aix4.012.*)
6428 # We only want to do this on AIX 4.2 and lower, the check
6429 # below for broken collect2 doesn't work under 4.3+
6430 collect2name=`${CC} -print-prog-name=collect2`
6431 if test -f "$collect2name" && \
6432 strings "$collect2name" | grep resolve_lib_name >/dev/null
6433 then
6434 # We have reworked collect2
6435 hardcode_direct=yes
6436 else
6437 # We have old collect2
6438 hardcode_direct=unsupported
6439 # It fails to find uninstalled libraries when the uninstalled
6440 # path is not listed in the libpath. Setting hardcode_minus_L
6441 # to unsupported forces relinking
6442 hardcode_minus_L=yes
6443 hardcode_libdir_flag_spec='-L$libdir'
6444 hardcode_libdir_separator=
6445 fi
6446 esac
6447 shared_flag='-shared'
6448 else
6449 # not using gcc
6450 if test "$host_cpu" = ia64; then
6451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6452 # chokes on -Wl,-G. The following line is correct:
6453 shared_flag='-G'
6454 else
6455 if test "$aix_use_runtimelinking" = yes; then
6456 shared_flag='${wl}-G'
6457 else
6458 shared_flag='${wl}-bM:SRE'
6459 fi
6460 fi
6461 fi
6462
6463 # It seems that -bexpall does not export symbols beginning with
6464 # underscore (_), so it is better to generate a list of symbols to export.
6465 always_export_symbols=yes
6466 if test "$aix_use_runtimelinking" = yes; then
6467 # Warning - without using the other runtime loading flags (-brtl),
6468 # -berok will link without error, but may produce a broken library.
6469 allow_undefined_flag='-berok'
6470 # Determine the default libpath from the value encoded in an empty executable.
6471 cat >conftest.$ac_ext <<_ACEOF
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
6477
6478int
6479main ()
6480{
6481
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486rm -f conftest.$ac_objext conftest$ac_exeext
6487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest$ac_exeext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508
6509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6510}'`
6511# Check for a 64-bit object if we didn't find anything.
6512if 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; }
6513}'`; fi
6514else
6515 echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518fi
6519rm -f conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6522
6523 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6524 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6525 else
6526 if test "$host_cpu" = ia64; then
6527 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6528 allow_undefined_flag="-z nodefs"
6529 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6530 else
6531 # Determine the default libpath from the value encoded in an empty executable.
6532 cat >conftest.$ac_ext <<_ACEOF
6533/* confdefs.h. */
6534_ACEOF
6535cat confdefs.h >>conftest.$ac_ext
6536cat >>conftest.$ac_ext <<_ACEOF
6537/* end confdefs.h. */
6538
6539int
6540main ()
6541{
6542
6543 ;
6544 return 0;
6545}
6546_ACEOF
6547rm -f conftest.$ac_objext conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569
6570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6571}'`
6572# Check for a 64-bit object if we didn't find anything.
6573if 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; }
6574}'`; fi
6575else
6576 echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579fi
6580rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6583
6584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6585 # Warning - without using the other run time loading flags,
6586 # -berok will link without error, but may produce a broken library.
6587 no_undefined_flag=' ${wl}-bernotok'
6588 allow_undefined_flag=' ${wl}-berok'
6589 # -bexpall does not export symbols beginning with underscore (_)
6590 always_export_symbols=yes
6591 # Exported symbols can be pulled into shared objects from archives
6592 whole_archive_flag_spec=' '
6593 archive_cmds_need_lc=yes
6594 # This is similar to how AIX traditionally builds it's shared libraries.
6595 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6596 fi
6597 fi
6598 ;;
6599
6600 amigaos*)
6601 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)'
6602 hardcode_libdir_flag_spec='-L$libdir'
6603 hardcode_minus_L=yes
6604 # see comment about different semantics on the GNU ld section
6605 ld_shlibs=no
6606 ;;
6607
6608 bsdi4*)
6609 export_dynamic_flag_spec=-rdynamic
6610 ;;
6611
6612 cygwin* | mingw* | pw32*)
6613 # When not using gcc, we currently assume that we are using
6614 # Microsoft Visual C++.
6615 # hardcode_libdir_flag_spec is actually meaningless, as there is
6616 # no search path for DLLs.
6617 hardcode_libdir_flag_spec=' '
6618 allow_undefined_flag=unsupported
6619 # Tell ltmain to make .lib files, not .a files.
6620 libext=lib
6621 # Tell ltmain to make .dll files, not .so files.
6622 shrext_cmds=".dll"
6623 # FIXME: Setting linknames here is a bad hack.
6624 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6625 # The linker will automatically build a .lib file if we build a DLL.
6626 old_archive_From_new_cmds='true'
6627 # FIXME: Should let the user specify the lib program.
6628 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6629 fix_srcfile_path='`cygpath -w "$srcfile"`'
6630 enable_shared_with_static_runtimes=yes
6631 ;;
6632
6633 darwin* | rhapsody*)
6634 if test "$GXX" = yes ; then
6635 archive_cmds_need_lc=no
6636 case "$host_os" in
6637 rhapsody* | darwin1.[012])
6638 allow_undefined_flag='-undefined suppress'
6639 ;;
6640 *) # Darwin 1.3 on
6641 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6642 allow_undefined_flag='-flat_namespace -undefined suppress'
6643 else
6644 case ${MACOSX_DEPLOYMENT_TARGET} in
6645 10.[012])
6646 allow_undefined_flag='-flat_namespace -undefined suppress'
6647 ;;
6648 10.*)
6649 allow_undefined_flag='-undefined dynamic_lookup'
6650 ;;
6651 esac
6652 fi
6653 ;;
6654 esac
6655 lt_int_apple_cc_single_mod=no
6656 output_verbose_link_cmd='echo'
6657 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6658 lt_int_apple_cc_single_mod=yes
6659 fi
6660 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6661 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6662 else
6663 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6664 fi
6665 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6667 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6668 archive_expsym_cmds='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}'
6669 else
6670 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6671 fi
6672 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}'
6673 hardcode_direct=no
6674 hardcode_automatic=yes
6675 hardcode_shlibpath_var=unsupported
6676 whole_archive_flag_spec='-all_load $convenience'
6677 link_all_deplibs=yes
6678 else
6679 ld_shlibs=no
6680 fi
6681 ;;
6682
6683 dgux*)
6684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6685 hardcode_libdir_flag_spec='-L$libdir'
6686 hardcode_shlibpath_var=no
6687 ;;
6688
6689 freebsd1*)
6690 ld_shlibs=no
6691 ;;
6692
6693 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6694 # support. Future versions do this automatically, but an explicit c++rt0.o
6695 # does not break anything, and helps significantly (at the cost of a little
6696 # extra space).
6697 freebsd2.2*)
6698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6699 hardcode_libdir_flag_spec='-R$libdir'
6700 hardcode_direct=yes
6701 hardcode_shlibpath_var=no
6702 ;;
6703
6704 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6705 freebsd2*)
6706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6707 hardcode_direct=yes
6708 hardcode_minus_L=yes
6709 hardcode_shlibpath_var=no
6710 ;;
6711
6712 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6713 freebsd* | kfreebsd*-gnu)
6714 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6715 hardcode_libdir_flag_spec='-R$libdir'
6716 hardcode_direct=yes
6717 hardcode_shlibpath_var=no
6718 ;;
6719
6720 hpux9*)
6721 if test "$GCC" = yes; then
6722 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'
6723 else
6724 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'
6725 fi
6726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6727 hardcode_libdir_separator=:
6728 hardcode_direct=yes
6729
6730 # hardcode_minus_L: Not really in the search PATH,
6731 # but as the default location of the library.
6732 hardcode_minus_L=yes
6733 export_dynamic_flag_spec='${wl}-E'
6734 ;;
6735
6736 hpux10* | hpux11*)
6737 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6738 case "$host_cpu" in
6739 hppa*64*|ia64*)
6740 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6741 ;;
6742 *)
6743 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6744 ;;
6745 esac
6746 else
6747 case "$host_cpu" in
6748 hppa*64*|ia64*)
6749 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6750 ;;
6751 *)
6752 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6753 ;;
6754 esac
6755 fi
6756 if test "$with_gnu_ld" = no; then
6757 case "$host_cpu" in
6758 hppa*64*)
6759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6760 hardcode_libdir_flag_spec_ld='+b $libdir'
6761 hardcode_libdir_separator=:
6762 hardcode_direct=no
6763 hardcode_shlibpath_var=no
6764 ;;
6765 ia64*)
6766 hardcode_libdir_flag_spec='-L$libdir'
6767 hardcode_direct=no
6768 hardcode_shlibpath_var=no
6769
6770 # hardcode_minus_L: Not really in the search PATH,
6771 # but as the default location of the library.
6772 hardcode_minus_L=yes
6773 ;;
6774 *)
6775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6776 hardcode_libdir_separator=:
6777 hardcode_direct=yes
6778 export_dynamic_flag_spec='${wl}-E'
6779
6780 # hardcode_minus_L: Not really in the search PATH,
6781 # but as the default location of the library.
6782 hardcode_minus_L=yes
6783 ;;
6784 esac
6785 fi
6786 ;;
6787
6788 irix5* | irix6* | nonstopux*)
6789 if test "$GCC" = yes; then
6790 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'
6791 else
6792 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'
6793 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6794 fi
6795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6796 hardcode_libdir_separator=:
6797 link_all_deplibs=yes
6798 ;;
6799
6800 netbsd*)
6801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6803 else
6804 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6805 fi
6806 hardcode_libdir_flag_spec='-R$libdir'
6807 hardcode_direct=yes
6808 hardcode_shlibpath_var=no
6809 ;;
6810
6811 newsos6)
6812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6813 hardcode_direct=yes
6814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6815 hardcode_libdir_separator=:
6816 hardcode_shlibpath_var=no
6817 ;;
6818
6819 openbsd*)
6820 hardcode_direct=yes
6821 hardcode_shlibpath_var=no
6822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6824 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6825 export_dynamic_flag_spec='${wl}-E'
6826 else
6827 case $host_os in
6828 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6830 hardcode_libdir_flag_spec='-R$libdir'
6831 ;;
6832 *)
6833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6835 ;;
6836 esac
6837 fi
6838 ;;
6839
6840 os2*)
6841 hardcode_libdir_flag_spec='-L$libdir'
6842 hardcode_minus_L=yes
6843 allow_undefined_flag=unsupported
6844 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'
6845 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6846 ;;
6847
6848 osf3*)
6849 if test "$GCC" = yes; then
6850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6851 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'
6852 else
6853 allow_undefined_flag=' -expect_unresolved \*'
6854 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'
6855 fi
6856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6857 hardcode_libdir_separator=:
6858 ;;
6859
6860 osf4* | osf5*) # as osf3* with the addition of -msym flag
6861 if test "$GCC" = yes; then
6862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6863 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'
6864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6865 else
6866 allow_undefined_flag=' -expect_unresolved \*'
6867 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'
6868 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6869 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6870
6871 # Both c and cxx compiler support -rpath directly
6872 hardcode_libdir_flag_spec='-rpath $libdir'
6873 fi
6874 hardcode_libdir_separator=:
6875 ;;
6876
6877 sco3.2v5*)
6878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6879 hardcode_shlibpath_var=no
6880 export_dynamic_flag_spec='${wl}-Bexport'
6881 runpath_var=LD_RUN_PATH
6882 hardcode_runpath_var=yes
6883 ;;
6884
6885 solaris*)
6886 no_undefined_flag=' -z text'
6887 if test "$GCC" = yes; then
6888 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6889 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6890 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6891 else
6892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6893 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6895 fi
6896 hardcode_libdir_flag_spec='-R$libdir'
6897 hardcode_shlibpath_var=no
6898 case $host_os in
6899 solaris2.[0-5] | solaris2.[0-5].*) ;;
6900 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6901 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6902 esac
6903 link_all_deplibs=yes
6904 ;;
6905
6906 sunos4*)
6907 if test "x$host_vendor" = xsequent; then
6908 # Use $CC to link under sequent, because it throws in some extra .o
6909 # files that make .init and .fini sections work.
6910 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6911 else
6912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6913 fi
6914 hardcode_libdir_flag_spec='-L$libdir'
6915 hardcode_direct=yes
6916 hardcode_minus_L=yes
6917 hardcode_shlibpath_var=no
6918 ;;
6919
6920 sysv4)
6921 case $host_vendor in
6922 sni)
6923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6924 hardcode_direct=yes # is this really true???
6925 ;;
6926 siemens)
6927 ## LD is ld it makes a PLAMLIB
6928 ## CC just makes a GrossModule.
6929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6930 reload_cmds='$CC -r -o $output$reload_objs'
6931 hardcode_direct=no
6932 ;;
6933 motorola)
6934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6936 ;;
6937 esac
6938 runpath_var='LD_RUN_PATH'
6939 hardcode_shlibpath_var=no
6940 ;;
6941
6942 sysv4.3*)
6943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6944 hardcode_shlibpath_var=no
6945 export_dynamic_flag_spec='-Bexport'
6946 ;;
6947
6948 sysv4*MP*)
6949 if test -d /usr/nec; then
6950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6951 hardcode_shlibpath_var=no
6952 runpath_var=LD_RUN_PATH
6953 hardcode_runpath_var=yes
6954 ld_shlibs=yes
6955 fi
6956 ;;
6957
6958 sysv4.2uw2*)
6959 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6960 hardcode_direct=yes
6961 hardcode_minus_L=no
6962 hardcode_shlibpath_var=no
6963 hardcode_runpath_var=yes
6964 runpath_var=LD_RUN_PATH
6965 ;;
6966
6967 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6968 no_undefined_flag='${wl}-z ${wl}text'
6969 if test "$GCC" = yes; then
6970 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6971 else
6972 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6973 fi
6974 runpath_var='LD_RUN_PATH'
6975 hardcode_shlibpath_var=no
6976 ;;
6977
6978 sysv5*)
6979 no_undefined_flag=' -z text'
6980 # $CC -shared without GNU ld will not create a library from C++
6981 # object files and a static libstdc++, better avoid it by now
6982 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6984 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6985 hardcode_libdir_flag_spec=
6986 hardcode_shlibpath_var=no
6987 runpath_var='LD_RUN_PATH'
6988 ;;
6989
6990 uts4*)
6991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6992 hardcode_libdir_flag_spec='-L$libdir'
6993 hardcode_shlibpath_var=no
6994 ;;
6995
6996 *)
6997 ld_shlibs=no
6998 ;;
jjako286bc982003-01-28 23:17:50 +00006999 esac
7000 fi
jjako286bc982003-01-28 23:17:50 +00007001
jjako286bc982003-01-28 23:17:50 +00007002echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7003echo "${ECHO_T}$ld_shlibs" >&6
7004test "$ld_shlibs" = no && can_build_shared=no
7005
jjakoacba8e62005-03-14 21:53:10 +00007006variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7007if test "$GCC" = yes; then
7008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7009fi
jjako286bc982003-01-28 23:17:50 +00007010
jjakoacba8e62005-03-14 21:53:10 +00007011#
7012# Do we need to explicitly link libc?
7013#
7014case "x$archive_cmds_need_lc" in
7015x|xyes)
7016 # Assume -lc should be added
7017 archive_cmds_need_lc=yes
7018
7019 if test "$enable_shared" = yes && test "$GCC" = yes; then
7020 case $archive_cmds in
7021 *'~'*)
7022 # FIXME: we may have to deal with multi-command sequences.
7023 ;;
7024 '$CC '*)
7025 # Test whether the compiler implicitly links with -lc since on some
7026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7027 # to ld, don't add -lc before -lgcc.
7028 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7029echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7030 $rm conftest*
7031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7032
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } 2>conftest.err; then
7038 soname=conftest
7039 lib=conftest
7040 libobjs=conftest.$ac_objext
7041 deplibs=
7042 wl=$lt_prog_compiler_wl
7043 compiler_flags=-v
7044 linker_flags=-v
7045 verstring=
7046 output_objdir=.
7047 libname=conftest
7048 lt_save_allow_undefined_flag=$allow_undefined_flag
7049 allow_undefined_flag=
7050 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7051 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }
7055 then
7056 archive_cmds_need_lc=no
7057 else
7058 archive_cmds_need_lc=yes
7059 fi
7060 allow_undefined_flag=$lt_save_allow_undefined_flag
7061 else
7062 cat conftest.err 1>&5
7063 fi
7064 $rm conftest*
7065 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7066echo "${ECHO_T}$archive_cmds_need_lc" >&6
7067 ;;
7068 esac
jjako286bc982003-01-28 23:17:50 +00007069 fi
jjakoacba8e62005-03-14 21:53:10 +00007070 ;;
7071esac
jjako286bc982003-01-28 23:17:50 +00007072
jjako286bc982003-01-28 23:17:50 +00007073echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7074echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7075library_names_spec=
7076libname_spec='lib$name'
7077soname_spec=
jjakoacba8e62005-03-14 21:53:10 +00007078shrext_cmds=".so"
jjako286bc982003-01-28 23:17:50 +00007079postinstall_cmds=
7080postuninstall_cmds=
7081finish_cmds=
7082finish_eval=
7083shlibpath_var=
7084shlibpath_overrides_runpath=unknown
7085version_type=none
7086dynamic_linker="$host_os ld.so"
7087sys_lib_dlsearch_path_spec="/lib /usr/lib"
jjakoacba8e62005-03-14 21:53:10 +00007088if test "$GCC" = yes; then
7089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7090 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7091 # if the path contains ";" then we assume it to be the separator
7092 # otherwise default to the standard path separator (i.e. ":") - it is
7093 # assumed that no part of a normal pathname contains ";" but that should
7094 # okay in the real world where ";" in dirpaths is itself problematic.
7095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7096 else
7097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7098 fi
7099else
7100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7101fi
7102need_lib_prefix=unknown
7103hardcode_into_libs=no
7104
7105# when you set need_version to no, make sure it does not cause -set_version
7106# flags to be left without arguments
7107need_version=unknown
jjako286bc982003-01-28 23:17:50 +00007108
7109case $host_os in
7110aix3*)
7111 version_type=linux
jjakoacba8e62005-03-14 21:53:10 +00007112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
jjako286bc982003-01-28 23:17:50 +00007113 shlibpath_var=LIBPATH
7114
jjakoacba8e62005-03-14 21:53:10 +00007115 # AIX 3 has no versioning support, so we append a major version to the name.
7116 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007117 ;;
7118
7119aix4* | aix5*)
7120 version_type=linux
jjako08d331d2003-10-13 20:33:30 +00007121 need_lib_prefix=no
7122 need_version=no
7123 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00007124 if test "$host_cpu" = ia64; then
7125 # AIX 5 supports IA64
jjakoacba8e62005-03-14 21:53:10 +00007126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
jjako286bc982003-01-28 23:17:50 +00007127 shlibpath_var=LD_LIBRARY_PATH
7128 else
7129 # With GCC up to 2.95.x, collect2 would create an import file
7130 # for dependence libraries. The import file would start with
7131 # the line `#! .'. This would cause the generated library to
7132 # depend on `.', always an invalid library. This was fixed in
7133 # development snapshots of GCC prior to 3.0.
7134 case $host_os in
7135 aix4 | aix4.[01] | aix4.[01].*)
jjakoacba8e62005-03-14 21:53:10 +00007136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7137 echo ' yes '
7138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7139 :
7140 else
7141 can_build_shared=no
7142 fi
7143 ;;
jjako286bc982003-01-28 23:17:50 +00007144 esac
jjakoacba8e62005-03-14 21:53:10 +00007145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7146 # soname into executable. Probably we can add versioning support to
7147 # collect2, so additional links can be useful in future.
jjako286bc982003-01-28 23:17:50 +00007148 if test "$aix_use_runtimelinking" = yes; then
7149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7150 # instead of lib<name>.a to let people know that these are not
7151 # typical AIX shared libraries.
jjakoacba8e62005-03-14 21:53:10 +00007152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
jjako286bc982003-01-28 23:17:50 +00007153 else
7154 # We preserve .a as extension for shared libraries through AIX4.2
7155 # and later when we are not doing run time linking.
7156 library_names_spec='${libname}${release}.a $libname.a'
jjakoacba8e62005-03-14 21:53:10 +00007157 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007158 fi
7159 shlibpath_var=LIBPATH
7160 fi
7161 ;;
7162
7163amigaos*)
7164 library_names_spec='$libname.ixlibrary $libname.a'
7165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
jjakoacba8e62005-03-14 21:53:10 +00007166 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'
jjako286bc982003-01-28 23:17:50 +00007167 ;;
7168
7169beos*)
jjakoacba8e62005-03-14 21:53:10 +00007170 library_names_spec='${libname}${shared_ext}'
jjako286bc982003-01-28 23:17:50 +00007171 dynamic_linker="$host_os ld.so"
7172 shlibpath_var=LIBRARY_PATH
7173 ;;
7174
7175bsdi4*)
7176 version_type=linux
7177 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7179 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7181 shlibpath_var=LD_LIBRARY_PATH
7182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
jjako286bc982003-01-28 23:17:50 +00007184 # the default ld.so.conf also contains /usr/contrib/lib and
7185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7186 # libtool to hard-code these into programs
7187 ;;
7188
7189cygwin* | mingw* | pw32*)
7190 version_type=windows
jjakoacba8e62005-03-14 21:53:10 +00007191 shrext_cmds=".dll"
jjako286bc982003-01-28 23:17:50 +00007192 need_version=no
7193 need_lib_prefix=no
jjakoacba8e62005-03-14 21:53:10 +00007194
jjako286bc982003-01-28 23:17:50 +00007195 case $GCC,$host_os in
jjakoacba8e62005-03-14 21:53:10 +00007196 yes,cygwin* | yes,mingw* | yes,pw32*)
jjako286bc982003-01-28 23:17:50 +00007197 library_names_spec='$libname.dll.a'
jjakoacba8e62005-03-14 21:53:10 +00007198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7199 postinstall_cmds='base_file=`basename \${file}`~
7200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
jjako286bc982003-01-28 23:17:50 +00007201 dldir=$destdir/`dirname \$dlpath`~
7202 test -d \$dldir || mkdir -p \$dldir~
jjakoacba8e62005-03-14 21:53:10 +00007203 $install_prog $dir/$dlname \$dldir/$dlname'
7204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
jjako286bc982003-01-28 23:17:50 +00007205 dlpath=$dir/\$dldll~
7206 $rm \$dlpath'
jjakoacba8e62005-03-14 21:53:10 +00007207 shlibpath_overrides_runpath=yes
7208
7209 case $host_os in
7210 cygwin*)
7211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7214 ;;
7215 mingw*)
7216 # MinGW DLLs use traditional 'lib' prefix
7217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7220 # It is most probably a Windows format PATH printed by
7221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7222 # path with ; separators, and with drive letters. We can handle the
7223 # drive letters (cygwin fileutils understands them), so leave them,
7224 # especially as we might pass files found there to a mingw objdump,
7225 # which wouldn't understand a cygwinified path. Ahh.
7226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7227 else
7228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7229 fi
7230 ;;
7231 pw32*)
7232 # pw32 DLLs use 'pw' prefix rather than 'lib'
7233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7234 ;;
7235 esac
jjako286bc982003-01-28 23:17:50 +00007236 ;;
jjakoacba8e62005-03-14 21:53:10 +00007237
jjako286bc982003-01-28 23:17:50 +00007238 *)
jjakoacba8e62005-03-14 21:53:10 +00007239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
jjako286bc982003-01-28 23:17:50 +00007240 ;;
7241 esac
7242 dynamic_linker='Win32 ld.exe'
7243 # FIXME: first we should search . and the directory the executable is in
7244 shlibpath_var=PATH
7245 ;;
7246
7247darwin* | rhapsody*)
7248 dynamic_linker="$host_os dyld"
7249 version_type=darwin
7250 need_lib_prefix=no
7251 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7253 soname_spec='${libname}${release}${major}$shared_ext'
jjako286bc982003-01-28 23:17:50 +00007254 shlibpath_overrides_runpath=yes
7255 shlibpath_var=DYLD_LIBRARY_PATH
jjakoacba8e62005-03-14 21:53:10 +00007256 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7258 if test "$GCC" = yes; then
7259 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"`
7260 else
7261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7262 fi
7263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7264 ;;
7265
7266dgux*)
7267 version_type=linux
7268 need_lib_prefix=no
7269 need_version=no
7270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7271 soname_spec='${libname}${release}${shared_ext}$major'
7272 shlibpath_var=LD_LIBRARY_PATH
jjako286bc982003-01-28 23:17:50 +00007273 ;;
7274
7275freebsd1*)
7276 dynamic_linker=no
7277 ;;
7278
jjakoacba8e62005-03-14 21:53:10 +00007279kfreebsd*-gnu)
7280 version_type=linux
7281 need_lib_prefix=no
7282 need_version=no
7283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7284 soname_spec='${libname}${release}${shared_ext}$major'
7285 shlibpath_var=LD_LIBRARY_PATH
7286 shlibpath_overrides_runpath=no
7287 hardcode_into_libs=yes
7288 dynamic_linker='GNU ld.so'
7289 ;;
7290
jjako286bc982003-01-28 23:17:50 +00007291freebsd*)
7292 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7293 version_type=freebsd-$objformat
7294 case $version_type in
7295 freebsd-elf*)
jjakoacba8e62005-03-14 21:53:10 +00007296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
jjako286bc982003-01-28 23:17:50 +00007297 need_version=no
7298 need_lib_prefix=no
7299 ;;
7300 freebsd-*)
jjakoacba8e62005-03-14 21:53:10 +00007301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
jjako286bc982003-01-28 23:17:50 +00007302 need_version=yes
7303 ;;
7304 esac
7305 shlibpath_var=LD_LIBRARY_PATH
7306 case $host_os in
7307 freebsd2*)
7308 shlibpath_overrides_runpath=yes
7309 ;;
jjakoacba8e62005-03-14 21:53:10 +00007310 freebsd3.01* | freebsdelf3.01*)
7311 shlibpath_overrides_runpath=yes
7312 hardcode_into_libs=yes
7313 ;;
7314 *) # from 3.2 on
jjako286bc982003-01-28 23:17:50 +00007315 shlibpath_overrides_runpath=no
7316 hardcode_into_libs=yes
7317 ;;
7318 esac
7319 ;;
7320
7321gnu*)
7322 version_type=linux
7323 need_lib_prefix=no
7324 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7326 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007327 shlibpath_var=LD_LIBRARY_PATH
7328 hardcode_into_libs=yes
7329 ;;
7330
7331hpux9* | hpux10* | hpux11*)
7332 # Give a soname corresponding to the major version so that dld.sl refuses to
7333 # link against other versions.
jjako286bc982003-01-28 23:17:50 +00007334 version_type=sunos
7335 need_lib_prefix=no
7336 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007337 case "$host_cpu" in
7338 ia64*)
7339 shrext_cmds='.so'
7340 hardcode_into_libs=yes
7341 dynamic_linker="$host_os dld.so"
7342 shlibpath_var=LD_LIBRARY_PATH
7343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345 soname_spec='${libname}${release}${shared_ext}$major'
7346 if test "X$HPUX_IA64_MODE" = X32; then
7347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7348 else
7349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7350 fi
7351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7352 ;;
7353 hppa*64*)
7354 shrext_cmds='.sl'
7355 hardcode_into_libs=yes
7356 dynamic_linker="$host_os dld.sl"
7357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7360 soname_spec='${libname}${release}${shared_ext}$major'
7361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7363 ;;
7364 *)
7365 shrext_cmds='.sl'
7366 dynamic_linker="$host_os dld.sl"
7367 shlibpath_var=SHLIB_PATH
7368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370 soname_spec='${libname}${release}${shared_ext}$major'
7371 ;;
7372 esac
jjako286bc982003-01-28 23:17:50 +00007373 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7374 postinstall_cmds='chmod 555 $lib'
7375 ;;
7376
jjako08d331d2003-10-13 20:33:30 +00007377irix5* | irix6* | nonstopux*)
7378 case $host_os in
7379 nonstopux*) version_type=nonstopux ;;
jjakoacba8e62005-03-14 21:53:10 +00007380 *)
7381 if test "$lt_cv_prog_gnu_ld" = yes; then
7382 version_type=linux
7383 else
7384 version_type=irix
7385 fi ;;
jjako08d331d2003-10-13 20:33:30 +00007386 esac
jjako286bc982003-01-28 23:17:50 +00007387 need_lib_prefix=no
7388 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007389 soname_spec='${libname}${release}${shared_ext}$major'
7390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
jjako286bc982003-01-28 23:17:50 +00007391 case $host_os in
jjako08d331d2003-10-13 20:33:30 +00007392 irix5* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00007393 libsuff= shlibsuff=
7394 ;;
7395 *)
7396 case $LD in # libtool.m4 will add one of these switches to LD
jjakoacba8e62005-03-14 21:53:10 +00007397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7398 libsuff= shlibsuff= libmagic=32-bit;;
7399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7400 libsuff=32 shlibsuff=N32 libmagic=N32;;
7401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
jjako286bc982003-01-28 23:17:50 +00007403 *) libsuff= shlibsuff= libmagic=never-match;;
7404 esac
7405 ;;
7406 esac
7407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7408 shlibpath_overrides_runpath=no
7409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
jjakoacba8e62005-03-14 21:53:10 +00007411 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00007412 ;;
7413
7414# No shared lib support for Linux oldld, aout, or coff.
jjakoacba8e62005-03-14 21:53:10 +00007415linux*oldld* | linux*aout* | linux*coff*)
jjako286bc982003-01-28 23:17:50 +00007416 dynamic_linker=no
7417 ;;
7418
7419# This must be Linux ELF.
jjakoacba8e62005-03-14 21:53:10 +00007420linux*)
jjako286bc982003-01-28 23:17:50 +00007421 version_type=linux
7422 need_lib_prefix=no
7423 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7425 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7427 shlibpath_var=LD_LIBRARY_PATH
7428 shlibpath_overrides_runpath=no
7429 # This implies no fast_install, which is unacceptable.
7430 # Some rework will be needed to allow for fast_install
7431 # before this can be enabled.
7432 hardcode_into_libs=yes
7433
jjakoacba8e62005-03-14 21:53:10 +00007434 # find out which ABI we are using
jjako08d331d2003-10-13 20:33:30 +00007435 libsuff=
7436 case "$host_cpu" in
jjakoacba8e62005-03-14 21:53:10 +00007437 x86_64*|s390x*|powerpc64*)
7438 echo '#line 7438 "configure"' > conftest.$ac_ext
jjako08d331d2003-10-13 20:33:30 +00007439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7440 (eval $ac_compile) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; then
7444 case `/usr/bin/file conftest.$ac_objext` in
7445 *64-bit*)
7446 libsuff=64
jjakoacba8e62005-03-14 21:53:10 +00007447 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
jjako08d331d2003-10-13 20:33:30 +00007448 ;;
7449 esac
7450 fi
7451 rm -rf conftest*
7452 ;;
jjako08d331d2003-10-13 20:33:30 +00007453 esac
jjakoacba8e62005-03-14 21:53:10 +00007454
7455 # Append ld.so.conf contents to the search path
7456 if test -f /etc/ld.so.conf; then
7457 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7458 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7459 fi
7460
7461 # We used to test for /lib/ld.so.1 and disable shared libraries on
7462 # powerpc, because MkLinux only supported shared libraries with the
7463 # GNU dynamic linker. Since this was broken with cross compilers,
7464 # most powerpc-linux boxes support dynamic linking these days and
7465 # people can always --disable-shared, the test was removed, and we
7466 # assume the GNU/Linux dynamic linker is in use.
7467 dynamic_linker='GNU/Linux ld.so'
7468 ;;
7469
7470knetbsd*-gnu)
7471 version_type=linux
7472 need_lib_prefix=no
7473 need_version=no
7474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7475 soname_spec='${libname}${release}${shared_ext}$major'
7476 shlibpath_var=LD_LIBRARY_PATH
7477 shlibpath_overrides_runpath=no
7478 hardcode_into_libs=yes
7479 dynamic_linker='GNU ld.so'
jjako286bc982003-01-28 23:17:50 +00007480 ;;
7481
7482netbsd*)
7483 version_type=sunos
7484 need_lib_prefix=no
7485 need_version=no
7486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
jjakoacba8e62005-03-14 21:53:10 +00007487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
jjako286bc982003-01-28 23:17:50 +00007488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7489 dynamic_linker='NetBSD (a.out) ld.so'
7490 else
jjakoacba8e62005-03-14 21:53:10 +00007491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7492 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007493 dynamic_linker='NetBSD ld.elf_so'
7494 fi
7495 shlibpath_var=LD_LIBRARY_PATH
7496 shlibpath_overrides_runpath=yes
7497 hardcode_into_libs=yes
7498 ;;
7499
7500newsos6)
7501 version_type=linux
jjakoacba8e62005-03-14 21:53:10 +00007502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503 shlibpath_var=LD_LIBRARY_PATH
7504 shlibpath_overrides_runpath=yes
7505 ;;
7506
7507nto-qnx*)
7508 version_type=linux
7509 need_lib_prefix=no
7510 need_version=no
7511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7512 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007513 shlibpath_var=LD_LIBRARY_PATH
7514 shlibpath_overrides_runpath=yes
7515 ;;
7516
7517openbsd*)
7518 version_type=sunos
7519 need_lib_prefix=no
jjakoacba8e62005-03-14 21:53:10 +00007520 need_version=yes
7521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7523 shlibpath_var=LD_LIBRARY_PATH
jjako286bc982003-01-28 23:17:50 +00007524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
jjakoacba8e62005-03-14 21:53:10 +00007525 case $host_os in
7526 openbsd2.[89] | openbsd2.[89].*)
7527 shlibpath_overrides_runpath=no
7528 ;;
7529 *)
7530 shlibpath_overrides_runpath=yes
7531 ;;
7532 esac
jjako286bc982003-01-28 23:17:50 +00007533 else
7534 shlibpath_overrides_runpath=yes
7535 fi
jjako286bc982003-01-28 23:17:50 +00007536 ;;
7537
7538os2*)
7539 libname_spec='$name'
jjakoacba8e62005-03-14 21:53:10 +00007540 shrext_cmds=".dll"
jjako286bc982003-01-28 23:17:50 +00007541 need_lib_prefix=no
jjakoacba8e62005-03-14 21:53:10 +00007542 library_names_spec='$libname${shared_ext} $libname.a'
jjako286bc982003-01-28 23:17:50 +00007543 dynamic_linker='OS/2 ld.exe'
7544 shlibpath_var=LIBPATH
7545 ;;
7546
7547osf3* | osf4* | osf5*)
7548 version_type=osf
jjakoacba8e62005-03-14 21:53:10 +00007549 need_lib_prefix=no
jjako286bc982003-01-28 23:17:50 +00007550 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007551 soname_spec='${libname}${release}${shared_ext}$major'
7552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
jjako286bc982003-01-28 23:17:50 +00007553 shlibpath_var=LD_LIBRARY_PATH
7554 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7555 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7556 ;;
7557
7558sco3.2v5*)
7559 version_type=osf
jjakoacba8e62005-03-14 21:53:10 +00007560 soname_spec='${libname}${release}${shared_ext}$major'
7561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
jjako286bc982003-01-28 23:17:50 +00007562 shlibpath_var=LD_LIBRARY_PATH
7563 ;;
7564
7565solaris*)
7566 version_type=linux
7567 need_lib_prefix=no
7568 need_version=no
jjakoacba8e62005-03-14 21:53:10 +00007569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7570 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007571 shlibpath_var=LD_LIBRARY_PATH
7572 shlibpath_overrides_runpath=yes
7573 hardcode_into_libs=yes
7574 # ldd complains unless libraries are executable
7575 postinstall_cmds='chmod +x $lib'
7576 ;;
7577
7578sunos4*)
7579 version_type=sunos
jjakoacba8e62005-03-14 21:53:10 +00007580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
jjako286bc982003-01-28 23:17:50 +00007581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7582 shlibpath_var=LD_LIBRARY_PATH
7583 shlibpath_overrides_runpath=yes
7584 if test "$with_gnu_ld" = yes; then
7585 need_lib_prefix=no
7586 fi
7587 need_version=yes
7588 ;;
7589
7590sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7591 version_type=linux
jjakoacba8e62005-03-14 21:53:10 +00007592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7593 soname_spec='${libname}${release}${shared_ext}$major'
jjako286bc982003-01-28 23:17:50 +00007594 shlibpath_var=LD_LIBRARY_PATH
7595 case $host_vendor in
7596 sni)
7597 shlibpath_overrides_runpath=no
jjako08d331d2003-10-13 20:33:30 +00007598 need_lib_prefix=no
7599 export_dynamic_flag_spec='${wl}-Blargedynsym'
7600 runpath_var=LD_RUN_PATH
7601 ;;
7602 siemens)
7603 need_lib_prefix=no
jjako286bc982003-01-28 23:17:50 +00007604 ;;
7605 motorola)
7606 need_lib_prefix=no
7607 need_version=no
7608 shlibpath_overrides_runpath=no
7609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7610 ;;
7611 esac
7612 ;;
7613
jjako286bc982003-01-28 23:17:50 +00007614sysv4*MP*)
7615 if test -d /usr/nec ;then
7616 version_type=linux
jjakoacba8e62005-03-14 21:53:10 +00007617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7618 soname_spec='$libname${shared_ext}.$major'
jjako286bc982003-01-28 23:17:50 +00007619 shlibpath_var=LD_LIBRARY_PATH
7620 fi
7621 ;;
7622
jjakoacba8e62005-03-14 21:53:10 +00007623uts4*)
7624 version_type=linux
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7626 soname_spec='${libname}${release}${shared_ext}$major'
7627 shlibpath_var=LD_LIBRARY_PATH
7628 ;;
7629
jjako286bc982003-01-28 23:17:50 +00007630*)
7631 dynamic_linker=no
7632 ;;
7633esac
7634echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7635echo "${ECHO_T}$dynamic_linker" >&6
7636test "$dynamic_linker" = no && can_build_shared=no
7637
jjakoacba8e62005-03-14 21:53:10 +00007638echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7639echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7640hardcode_action=
7641if test -n "$hardcode_libdir_flag_spec" || \
7642 test -n "$runpath_var " || \
7643 test "X$hardcode_automatic"="Xyes" ; then
jjako286bc982003-01-28 23:17:50 +00007644
jjakoacba8e62005-03-14 21:53:10 +00007645 # We can hardcode non-existant directories.
7646 if test "$hardcode_direct" != no &&
7647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7648 # have to relink, otherwise we might link with an installed library
7649 # when we should be linking with a yet-to-be-installed one
7650 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7651 test "$hardcode_minus_L" != no; then
7652 # Linking always hardcodes the temporary library directory.
7653 hardcode_action=relink
7654 else
7655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7656 hardcode_action=immediate
jjako286bc982003-01-28 23:17:50 +00007657 fi
jjakoacba8e62005-03-14 21:53:10 +00007658else
7659 # We cannot hardcode anything, or else we can only hardcode existing
7660 # directories.
7661 hardcode_action=unsupported
7662fi
7663echo "$as_me:$LINENO: result: $hardcode_action" >&5
7664echo "${ECHO_T}$hardcode_action" >&6
jjako286bc982003-01-28 23:17:50 +00007665
7666if test "$hardcode_action" = relink; then
7667 # Fast installation is not supported
7668 enable_fast_install=no
7669elif test "$shlibpath_overrides_runpath" = yes ||
7670 test "$enable_shared" = no; then
7671 # Fast installation is not necessary
7672 enable_fast_install=needless
7673fi
7674
jjakoacba8e62005-03-14 21:53:10 +00007675striplib=
7676old_striplib=
7677echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7678echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7679if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7681 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7682 echo "$as_me:$LINENO: result: yes" >&5
7683echo "${ECHO_T}yes" >&6
7684else
7685# FIXME - insert some real tests, host_os isn't really good enough
7686 case $host_os in
7687 darwin*)
7688 if test -n "$STRIP" ; then
7689 striplib="$STRIP -x"
7690 echo "$as_me:$LINENO: result: yes" >&5
7691echo "${ECHO_T}yes" >&6
7692 else
7693 echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
7695fi
7696 ;;
7697 *)
7698 echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
7700 ;;
7701 esac
jjako286bc982003-01-28 23:17:50 +00007702fi
7703
7704if test "x$enable_dlopen" != xyes; then
7705 enable_dlopen=unknown
7706 enable_dlopen_self=unknown
7707 enable_dlopen_self_static=unknown
7708else
7709 lt_cv_dlopen=no
7710 lt_cv_dlopen_libs=
7711
7712 case $host_os in
7713 beos*)
7714 lt_cv_dlopen="load_add_on"
7715 lt_cv_dlopen_libs=
7716 lt_cv_dlopen_self=yes
7717 ;;
7718
jjakoacba8e62005-03-14 21:53:10 +00007719 mingw* | pw32*)
jjako286bc982003-01-28 23:17:50 +00007720 lt_cv_dlopen="LoadLibrary"
7721 lt_cv_dlopen_libs=
7722 ;;
7723
jjakoacba8e62005-03-14 21:53:10 +00007724 cygwin*)
7725 lt_cv_dlopen="dlopen"
7726 lt_cv_dlopen_libs=
7727 ;;
7728
7729 darwin*)
7730 # if libdl is installed we need to link against it
7731 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7732echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7733if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736 ac_check_lib_save_LIBS=$LIBS
7737LIBS="-ldl $LIBS"
7738cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744
7745/* Override any gcc2 internal prototype to avoid an error. */
7746#ifdef __cplusplus
7747extern "C"
7748#endif
7749/* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751char dlopen ();
7752int
7753main ()
7754{
7755dlopen ();
7756 ;
7757 return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext conftest$ac_exeext
7761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag"
7770 || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_lib_dl_dlopen=yes
7783else
7784 echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787ac_cv_lib_dl_dlopen=no
7788fi
7789rm -f conftest.err conftest.$ac_objext \
7790 conftest$ac_exeext conftest.$ac_ext
7791LIBS=$ac_check_lib_save_LIBS
7792fi
7793echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7794echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7795if test $ac_cv_lib_dl_dlopen = yes; then
7796 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7797else
7798
7799 lt_cv_dlopen="dyld"
7800 lt_cv_dlopen_libs=
7801 lt_cv_dlopen_self=yes
7802
7803fi
7804
7805 ;;
7806
jjako286bc982003-01-28 23:17:50 +00007807 *)
7808 echo "$as_me:$LINENO: checking for shl_load" >&5
7809echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7810if test "${ac_cv_func_shl_load+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00007814/* confdefs.h. */
7815_ACEOF
7816cat confdefs.h >>conftest.$ac_ext
7817cat >>conftest.$ac_ext <<_ACEOF
7818/* end confdefs.h. */
jjakoacba8e62005-03-14 21:53:10 +00007819/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7821#define shl_load innocuous_shl_load
7822
jjako286bc982003-01-28 23:17:50 +00007823/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00007824 which can conflict with char shl_load (); below.
7825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7826 <limits.h> exists even on freestanding compilers. */
jjakoacba8e62005-03-14 21:53:10 +00007827
jjako08d331d2003-10-13 20:33:30 +00007828#ifdef __STDC__
7829# include <limits.h>
7830#else
7831# include <assert.h>
7832#endif
jjakoacba8e62005-03-14 21:53:10 +00007833
7834#undef shl_load
7835
jjako286bc982003-01-28 23:17:50 +00007836/* Override any gcc2 internal prototype to avoid an error. */
7837#ifdef __cplusplus
7838extern "C"
jjako08d331d2003-10-13 20:33:30 +00007839{
jjako286bc982003-01-28 23:17:50 +00007840#endif
7841/* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7843char shl_load ();
jjako286bc982003-01-28 23:17:50 +00007844/* The GNU C library defines this for functions which it implements
7845 to always fail with ENOSYS. Some functions are actually named
7846 something starting with __ and the normal name is an alias. */
7847#if defined (__stub_shl_load) || defined (__stub___shl_load)
7848choke me
7849#else
jjako08d331d2003-10-13 20:33:30 +00007850char (*f) () = shl_load;
7851#endif
7852#ifdef __cplusplus
7853}
jjako286bc982003-01-28 23:17:50 +00007854#endif
7855
jjako08d331d2003-10-13 20:33:30 +00007856int
7857main ()
7858{
7859return f != shl_load;
jjako286bc982003-01-28 23:17:50 +00007860 ;
7861 return 0;
7862}
7863_ACEOF
7864rm -f conftest.$ac_objext conftest$ac_exeext
7865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00007866 (eval $ac_link) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00007867 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00007868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00007871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00007873 { ac_try='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try='test -s conftest$ac_exeext'
jjako286bc982003-01-28 23:17:50 +00007881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_func_shl_load=yes
7887else
7888 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00007889sed 's/^/| /' conftest.$ac_ext >&5
7890
jjako286bc982003-01-28 23:17:50 +00007891ac_cv_func_shl_load=no
7892fi
jjakoacba8e62005-03-14 21:53:10 +00007893rm -f conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00007895fi
7896echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7897echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7898if test $ac_cv_func_shl_load = yes; then
7899 lt_cv_dlopen="shl_load"
7900else
7901 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7902echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7903if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906 ac_check_lib_save_LIBS=$LIBS
7907LIBS="-ldld $LIBS"
7908cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00007909/* confdefs.h. */
7910_ACEOF
7911cat confdefs.h >>conftest.$ac_ext
7912cat >>conftest.$ac_ext <<_ACEOF
7913/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00007914
7915/* Override any gcc2 internal prototype to avoid an error. */
7916#ifdef __cplusplus
7917extern "C"
7918#endif
7919/* We use char because int might match the return type of a gcc2
7920 builtin and then its argument prototype would still apply. */
7921char shl_load ();
jjako286bc982003-01-28 23:17:50 +00007922int
7923main ()
7924{
7925shl_load ();
7926 ;
7927 return 0;
7928}
7929_ACEOF
7930rm -f conftest.$ac_objext conftest$ac_exeext
7931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00007932 (eval $ac_link) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00007933 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00007934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00007937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00007939 { ac_try='test -z "$ac_c_werror_flag"
7940 || test ! -s conftest.err'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; } &&
7946 { ac_try='test -s conftest$ac_exeext'
jjako286bc982003-01-28 23:17:50 +00007947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 ac_cv_lib_dld_shl_load=yes
7953else
7954 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00007955sed 's/^/| /' conftest.$ac_ext >&5
7956
jjako286bc982003-01-28 23:17:50 +00007957ac_cv_lib_dld_shl_load=no
7958fi
jjakoacba8e62005-03-14 21:53:10 +00007959rm -f conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00007961LIBS=$ac_check_lib_save_LIBS
7962fi
7963echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7964echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7965if test $ac_cv_lib_dld_shl_load = yes; then
7966 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7967else
7968 echo "$as_me:$LINENO: checking for dlopen" >&5
7969echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7970if test "${ac_cv_func_dlopen+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00007974/* confdefs.h. */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h. */
jjakoacba8e62005-03-14 21:53:10 +00007979/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7981#define dlopen innocuous_dlopen
7982
jjako286bc982003-01-28 23:17:50 +00007983/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00007984 which can conflict with char dlopen (); below.
7985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7986 <limits.h> exists even on freestanding compilers. */
jjakoacba8e62005-03-14 21:53:10 +00007987
jjako08d331d2003-10-13 20:33:30 +00007988#ifdef __STDC__
7989# include <limits.h>
7990#else
7991# include <assert.h>
7992#endif
jjakoacba8e62005-03-14 21:53:10 +00007993
7994#undef dlopen
7995
jjako286bc982003-01-28 23:17:50 +00007996/* Override any gcc2 internal prototype to avoid an error. */
7997#ifdef __cplusplus
7998extern "C"
jjako08d331d2003-10-13 20:33:30 +00007999{
jjako286bc982003-01-28 23:17:50 +00008000#endif
8001/* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8003char dlopen ();
jjako286bc982003-01-28 23:17:50 +00008004/* The GNU C library defines this for functions which it implements
8005 to always fail with ENOSYS. Some functions are actually named
8006 something starting with __ and the normal name is an alias. */
8007#if defined (__stub_dlopen) || defined (__stub___dlopen)
8008choke me
8009#else
jjako08d331d2003-10-13 20:33:30 +00008010char (*f) () = dlopen;
8011#endif
8012#ifdef __cplusplus
8013}
jjako286bc982003-01-28 23:17:50 +00008014#endif
8015
jjako08d331d2003-10-13 20:33:30 +00008016int
8017main ()
8018{
8019return f != dlopen;
jjako286bc982003-01-28 23:17:50 +00008020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00008026 (eval $ac_link) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00008027 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00008028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00008031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00008033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
jjako286bc982003-01-28 23:17:50 +00008041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_func_dlopen=yes
8047else
8048 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008049sed 's/^/| /' conftest.$ac_ext >&5
8050
jjako286bc982003-01-28 23:17:50 +00008051ac_cv_func_dlopen=no
8052fi
jjakoacba8e62005-03-14 21:53:10 +00008053rm -f conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00008055fi
8056echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8057echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8058if test $ac_cv_func_dlopen = yes; then
8059 lt_cv_dlopen="dlopen"
8060else
8061 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8062echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8063if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066 ac_check_lib_save_LIBS=$LIBS
8067LIBS="-ldl $LIBS"
8068cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00008069/* confdefs.h. */
8070_ACEOF
8071cat confdefs.h >>conftest.$ac_ext
8072cat >>conftest.$ac_ext <<_ACEOF
8073/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008074
8075/* Override any gcc2 internal prototype to avoid an error. */
8076#ifdef __cplusplus
8077extern "C"
8078#endif
8079/* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8081char dlopen ();
jjako286bc982003-01-28 23:17:50 +00008082int
8083main ()
8084{
8085dlopen ();
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090rm -f conftest.$ac_objext conftest$ac_exeext
8091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00008092 (eval $ac_link) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00008093 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00008094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00008097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00008099 { ac_try='test -z "$ac_c_werror_flag"
8100 || test ! -s conftest.err'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest$ac_exeext'
jjako286bc982003-01-28 23:17:50 +00008107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_cv_lib_dl_dlopen=yes
8113else
8114 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008115sed 's/^/| /' conftest.$ac_ext >&5
8116
jjako286bc982003-01-28 23:17:50 +00008117ac_cv_lib_dl_dlopen=no
8118fi
jjakoacba8e62005-03-14 21:53:10 +00008119rm -f conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00008121LIBS=$ac_check_lib_save_LIBS
8122fi
8123echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8124echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8125if test $ac_cv_lib_dl_dlopen = yes; then
8126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8127else
8128 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8129echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8130if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132else
8133 ac_check_lib_save_LIBS=$LIBS
8134LIBS="-lsvld $LIBS"
8135cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00008136/* confdefs.h. */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008141
8142/* Override any gcc2 internal prototype to avoid an error. */
8143#ifdef __cplusplus
8144extern "C"
8145#endif
8146/* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148char dlopen ();
jjako286bc982003-01-28 23:17:50 +00008149int
8150main ()
8151{
8152dlopen ();
8153 ;
8154 return 0;
8155}
8156_ACEOF
8157rm -f conftest.$ac_objext conftest$ac_exeext
8158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00008159 (eval $ac_link) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00008160 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00008161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00008164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00008166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest$ac_exeext'
jjako286bc982003-01-28 23:17:50 +00008174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 ac_cv_lib_svld_dlopen=yes
8180else
8181 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008182sed 's/^/| /' conftest.$ac_ext >&5
8183
jjako286bc982003-01-28 23:17:50 +00008184ac_cv_lib_svld_dlopen=no
8185fi
jjakoacba8e62005-03-14 21:53:10 +00008186rm -f conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00008188LIBS=$ac_check_lib_save_LIBS
8189fi
8190echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8191echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8192if test $ac_cv_lib_svld_dlopen = yes; then
8193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8194else
8195 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8196echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8197if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200 ac_check_lib_save_LIBS=$LIBS
8201LIBS="-ldld $LIBS"
8202cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +00008203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008208
8209/* Override any gcc2 internal prototype to avoid an error. */
8210#ifdef __cplusplus
8211extern "C"
8212#endif
8213/* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8215char dld_link ();
jjako286bc982003-01-28 23:17:50 +00008216int
8217main ()
8218{
8219dld_link ();
8220 ;
8221 return 0;
8222}
8223_ACEOF
8224rm -f conftest.$ac_objext conftest$ac_exeext
8225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +00008226 (eval $ac_link) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +00008227 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +00008228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +00008231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +00008233 { ac_try='test -z "$ac_c_werror_flag"
8234 || test ! -s conftest.err'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; } &&
8240 { ac_try='test -s conftest$ac_exeext'
jjako286bc982003-01-28 23:17:50 +00008241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_lib_dld_dld_link=yes
8247else
8248 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008249sed 's/^/| /' conftest.$ac_ext >&5
8250
jjako286bc982003-01-28 23:17:50 +00008251ac_cv_lib_dld_dld_link=no
8252fi
jjakoacba8e62005-03-14 21:53:10 +00008253rm -f conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00008255LIBS=$ac_check_lib_save_LIBS
8256fi
8257echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8258echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8259if test $ac_cv_lib_dld_dld_link = yes; then
8260 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8261fi
8262
8263
8264fi
8265
8266
8267fi
8268
8269
8270fi
8271
8272
8273fi
8274
8275
8276fi
8277
8278 ;;
8279 esac
8280
8281 if test "x$lt_cv_dlopen" != xno; then
8282 enable_dlopen=yes
8283 else
8284 enable_dlopen=no
8285 fi
8286
8287 case $lt_cv_dlopen in
8288 dlopen)
8289 save_CPPFLAGS="$CPPFLAGS"
jjakoacba8e62005-03-14 21:53:10 +00008290 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
jjako286bc982003-01-28 23:17:50 +00008291
8292 save_LDFLAGS="$LDFLAGS"
8293 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8294
8295 save_LIBS="$LIBS"
8296 LIBS="$lt_cv_dlopen_libs $LIBS"
8297
8298 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8299echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8300if test "${lt_cv_dlopen_self+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 if test "$cross_compiling" = yes; then :
8304 lt_cv_dlopen_self=cross
8305else
jjakoacba8e62005-03-14 21:53:10 +00008306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
jjako286bc982003-01-28 23:17:50 +00008307 lt_status=$lt_dlunknown
8308 cat > conftest.$ac_ext <<EOF
jjakoacba8e62005-03-14 21:53:10 +00008309#line 8309 "configure"
jjako286bc982003-01-28 23:17:50 +00008310#include "confdefs.h"
8311
8312#if HAVE_DLFCN_H
8313#include <dlfcn.h>
8314#endif
8315
8316#include <stdio.h>
8317
8318#ifdef RTLD_GLOBAL
8319# define LT_DLGLOBAL RTLD_GLOBAL
8320#else
8321# ifdef DL_GLOBAL
8322# define LT_DLGLOBAL DL_GLOBAL
8323# else
8324# define LT_DLGLOBAL 0
8325# endif
8326#endif
8327
8328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8329 find out it does not work in some platform. */
8330#ifndef LT_DLLAZY_OR_NOW
8331# ifdef RTLD_LAZY
8332# define LT_DLLAZY_OR_NOW RTLD_LAZY
8333# else
8334# ifdef DL_LAZY
8335# define LT_DLLAZY_OR_NOW DL_LAZY
8336# else
8337# ifdef RTLD_NOW
8338# define LT_DLLAZY_OR_NOW RTLD_NOW
8339# else
8340# ifdef DL_NOW
8341# define LT_DLLAZY_OR_NOW DL_NOW
8342# else
8343# define LT_DLLAZY_OR_NOW 0
8344# endif
8345# endif
8346# endif
8347# endif
8348#endif
8349
8350#ifdef __cplusplus
8351extern "C" void exit (int);
8352#endif
8353
8354void fnord() { int i=42;}
8355int main ()
8356{
8357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8358 int status = $lt_dlunknown;
8359
8360 if (self)
8361 {
8362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8363 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8364 /* dlclose (self); */
8365 }
8366
8367 exit (status);
8368}
8369EOF
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8375 (./conftest; exit; ) 2>/dev/null
8376 lt_status=$?
8377 case x$lt_status in
8378 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8379 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8380 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8381 esac
8382 else :
8383 # compilation failed
8384 lt_cv_dlopen_self=no
8385 fi
8386fi
8387rm -fr conftest*
8388
8389
8390fi
8391echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8392echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8393
8394 if test "x$lt_cv_dlopen_self" = xyes; then
8395 LDFLAGS="$LDFLAGS $link_static_flag"
8396 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8397echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8398if test "${lt_cv_dlopen_self_static+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400else
8401 if test "$cross_compiling" = yes; then :
8402 lt_cv_dlopen_self_static=cross
8403else
jjakoacba8e62005-03-14 21:53:10 +00008404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
jjako286bc982003-01-28 23:17:50 +00008405 lt_status=$lt_dlunknown
8406 cat > conftest.$ac_ext <<EOF
jjakoacba8e62005-03-14 21:53:10 +00008407#line 8407 "configure"
jjako286bc982003-01-28 23:17:50 +00008408#include "confdefs.h"
8409
8410#if HAVE_DLFCN_H
8411#include <dlfcn.h>
8412#endif
8413
8414#include <stdio.h>
8415
8416#ifdef RTLD_GLOBAL
8417# define LT_DLGLOBAL RTLD_GLOBAL
8418#else
8419# ifdef DL_GLOBAL
8420# define LT_DLGLOBAL DL_GLOBAL
8421# else
8422# define LT_DLGLOBAL 0
8423# endif
8424#endif
8425
8426/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8427 find out it does not work in some platform. */
8428#ifndef LT_DLLAZY_OR_NOW
8429# ifdef RTLD_LAZY
8430# define LT_DLLAZY_OR_NOW RTLD_LAZY
8431# else
8432# ifdef DL_LAZY
8433# define LT_DLLAZY_OR_NOW DL_LAZY
8434# else
8435# ifdef RTLD_NOW
8436# define LT_DLLAZY_OR_NOW RTLD_NOW
8437# else
8438# ifdef DL_NOW
8439# define LT_DLLAZY_OR_NOW DL_NOW
8440# else
8441# define LT_DLLAZY_OR_NOW 0
8442# endif
8443# endif
8444# endif
8445# endif
8446#endif
8447
8448#ifdef __cplusplus
8449extern "C" void exit (int);
8450#endif
8451
8452void fnord() { int i=42;}
8453int main ()
8454{
8455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8456 int status = $lt_dlunknown;
8457
8458 if (self)
8459 {
8460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8461 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8462 /* dlclose (self); */
8463 }
8464
8465 exit (status);
8466}
8467EOF
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8473 (./conftest; exit; ) 2>/dev/null
8474 lt_status=$?
8475 case x$lt_status in
8476 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8477 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8478 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8479 esac
8480 else :
8481 # compilation failed
8482 lt_cv_dlopen_self_static=no
8483 fi
8484fi
8485rm -fr conftest*
8486
8487
8488fi
8489echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8490echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8491 fi
8492
8493 CPPFLAGS="$save_CPPFLAGS"
8494 LDFLAGS="$save_LDFLAGS"
8495 LIBS="$save_LIBS"
8496 ;;
8497 esac
8498
8499 case $lt_cv_dlopen_self in
8500 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8501 *) enable_dlopen_self=unknown ;;
8502 esac
8503
8504 case $lt_cv_dlopen_self_static in
8505 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8506 *) enable_dlopen_self_static=unknown ;;
8507 esac
8508fi
8509
8510
jjakoacba8e62005-03-14 21:53:10 +00008511# Report which librarie types wil actually be built
8512echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8513echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8514echo "$as_me:$LINENO: result: $can_build_shared" >&5
8515echo "${ECHO_T}$can_build_shared" >&6
jjako286bc982003-01-28 23:17:50 +00008516
jjakoacba8e62005-03-14 21:53:10 +00008517echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8518echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8519test "$can_build_shared" = "no" && enable_shared=no
8520
8521# On AIX, shared libraries and static libraries use the same namespace, and
8522# are all built from PIC.
8523case "$host_os" in
8524aix3*)
8525 test "$enable_shared" = yes && enable_static=no
8526 if test -n "$RANLIB"; then
8527 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8528 postinstall_cmds='$RANLIB $lib'
8529 fi
8530 ;;
8531
8532aix4* | aix5*)
8533 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8534 test "$enable_shared" = yes && enable_static=no
8535 fi
8536 ;;
8537 darwin* | rhapsody*)
8538 if test "$GCC" = yes; then
8539 archive_cmds_need_lc=no
8540 case "$host_os" in
8541 rhapsody* | darwin1.[012])
8542 allow_undefined_flag='-undefined suppress'
8543 ;;
8544 *) # Darwin 1.3 on
8545 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8546 allow_undefined_flag='-flat_namespace -undefined suppress'
jjako286bc982003-01-28 23:17:50 +00008547 else
jjakoacba8e62005-03-14 21:53:10 +00008548 case ${MACOSX_DEPLOYMENT_TARGET} in
8549 10.[012])
8550 allow_undefined_flag='-flat_namespace -undefined suppress'
8551 ;;
8552 10.*)
8553 allow_undefined_flag='-undefined dynamic_lookup'
8554 ;;
8555 esac
jjako286bc982003-01-28 23:17:50 +00008556 fi
jjakoacba8e62005-03-14 21:53:10 +00008557 ;;
8558 esac
8559 output_verbose_link_cmd='echo'
8560 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8561 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8563 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}'
8564 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}'
8565 hardcode_direct=no
8566 hardcode_automatic=yes
8567 hardcode_shlibpath_var=unsupported
8568 whole_archive_flag_spec='-all_load $convenience'
8569 link_all_deplibs=yes
8570 else
8571 ld_shlibs=no
8572 fi
jjako286bc982003-01-28 23:17:50 +00008573 ;;
jjakoacba8e62005-03-14 21:53:10 +00008574esac
8575echo "$as_me:$LINENO: result: $enable_shared" >&5
8576echo "${ECHO_T}$enable_shared" >&6
jjako286bc982003-01-28 23:17:50 +00008577
jjakoacba8e62005-03-14 21:53:10 +00008578echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8579echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8580# Make sure either enable_shared or enable_static is yes.
8581test "$enable_shared" = yes || enable_static=yes
8582echo "$as_me:$LINENO: result: $enable_static" >&5
8583echo "${ECHO_T}$enable_static" >&6
8584
8585# The else clause should only fire when bootstrapping the
jjako286bc982003-01-28 23:17:50 +00008586# libtool distribution, otherwise you forgot to ship ltmain.sh
8587# with your package, and you will get complaints that there are
8588# no rules to generate ltmain.sh.
8589if test -f "$ltmain"; then
jjakoacba8e62005-03-14 21:53:10 +00008590 # See if we are running on zsh, and set the options which allow our commands through
8591 # without removal of \ escapes.
8592 if test -n "${ZSH_VERSION+set}" ; then
8593 setopt NO_GLOB_SUBST
8594 fi
jjako286bc982003-01-28 23:17:50 +00008595 # Now quote all the things that may contain metacharacters while being
8596 # careful not to overquote the AC_SUBSTed values. We take copies of the
8597 # variables and quote the copies for generation of the libtool script.
jjakoacba8e62005-03-14 21:53:10 +00008598 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8599 SED SHELL STRIP \
8600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8602 deplibs_check_method reload_flag reload_cmds need_locks \
8603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8604 lt_cv_sys_global_symbol_to_c_name_address \
jjako286bc982003-01-28 23:17:50 +00008605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
jjakoacba8e62005-03-14 21:53:10 +00008606 old_postinstall_cmds old_postuninstall_cmds \
8607 compiler \
8608 CC \
8609 LD \
8610 lt_prog_compiler_wl \
8611 lt_prog_compiler_pic \
8612 lt_prog_compiler_static \
8613 lt_prog_compiler_no_builtin_flag \
8614 export_dynamic_flag_spec \
8615 thread_safe_flag_spec \
8616 whole_archive_flag_spec \
8617 enable_shared_with_static_runtimes \
8618 old_archive_cmds \
8619 old_archive_from_new_cmds \
8620 predep_objects \
8621 postdep_objects \
8622 predeps \
8623 postdeps \
8624 compiler_lib_search_path \
8625 archive_cmds \
8626 archive_expsym_cmds \
8627 postinstall_cmds \
8628 postuninstall_cmds \
8629 old_archive_from_expsyms_cmds \
8630 allow_undefined_flag \
8631 no_undefined_flag \
8632 export_symbols_cmds \
8633 hardcode_libdir_flag_spec \
8634 hardcode_libdir_flag_spec_ld \
8635 hardcode_libdir_separator \
8636 hardcode_automatic \
8637 module_cmds \
8638 module_expsym_cmds \
8639 lt_cv_prog_compiler_c_o \
8640 exclude_expsyms \
8641 include_expsyms; do
jjako286bc982003-01-28 23:17:50 +00008642
8643 case $var in
jjakoacba8e62005-03-14 21:53:10 +00008644 old_archive_cmds | \
8645 old_archive_from_new_cmds | \
8646 archive_cmds | \
8647 archive_expsym_cmds | \
8648 module_cmds | \
8649 module_expsym_cmds | \
8650 old_archive_from_expsyms_cmds | \
8651 export_symbols_cmds | \
8652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
jjako286bc982003-01-28 23:17:50 +00008653 postinstall_cmds | postuninstall_cmds | \
jjakoacba8e62005-03-14 21:53:10 +00008654 old_postinstall_cmds | old_postuninstall_cmds | \
8655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
jjako286bc982003-01-28 23:17:50 +00008656 # Double-quote double-evaled strings.
8657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8658 ;;
8659 *)
8660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8661 ;;
8662 esac
8663 done
8664
jjakoacba8e62005-03-14 21:53:10 +00008665 case $lt_echo in
8666 *'\$0 --fallback-echo"')
8667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8668 ;;
8669 esac
8670
8671cfgfile="${ofile}T"
8672 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8673 $rm -f "$cfgfile"
8674 { echo "$as_me:$LINENO: creating $ofile" >&5
8675echo "$as_me: creating $ofile" >&6;}
8676
8677 cat <<__EOF__ >> "$cfgfile"
jjako286bc982003-01-28 23:17:50 +00008678#! $SHELL
8679
jjakoacba8e62005-03-14 21:53:10 +00008680# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
jjako286bc982003-01-28 23:17:50 +00008681# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8682# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8683#
jjakoacba8e62005-03-14 21:53:10 +00008684# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8685# Free Software Foundation, Inc.
8686#
8687# This file is part of GNU Libtool:
jjako286bc982003-01-28 23:17:50 +00008688# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8689#
8690# This program is free software; you can redistribute it and/or modify
8691# it under the terms of the GNU General Public License as published by
8692# the Free Software Foundation; either version 2 of the License, or
8693# (at your option) any later version.
8694#
8695# This program is distributed in the hope that it will be useful, but
8696# WITHOUT ANY WARRANTY; without even the implied warranty of
8697# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8698# General Public License for more details.
8699#
8700# You should have received a copy of the GNU General Public License
8701# along with this program; if not, write to the Free Software
8702# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8703#
8704# As a special exception to the GNU General Public License, if you
8705# distribute this file as part of a program that contains a
8706# configuration script generated by Autoconf, you may include it under
8707# the same distribution terms that you use for the rest of that program.
8708
jjakoacba8e62005-03-14 21:53:10 +00008709# A sed program that does not truncate output.
jjako08d331d2003-10-13 20:33:30 +00008710SED=$lt_SED
8711
jjako286bc982003-01-28 23:17:50 +00008712# Sed that helps us avoid accidentally triggering echo(1) options like -n.
jjakoacba8e62005-03-14 21:53:10 +00008713Xsed="$SED -e s/^X//"
jjako286bc982003-01-28 23:17:50 +00008714
8715# The HP-UX ksh and POSIX shell print the target directory to stdout
8716# if CDPATH is set.
8717if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8718
jjakoacba8e62005-03-14 21:53:10 +00008719# The names of the tagged configurations supported by this script.
8720available_tags=
8721
jjako286bc982003-01-28 23:17:50 +00008722# ### BEGIN LIBTOOL CONFIG
8723
8724# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8725
8726# Shell to use when invoking shell scripts.
8727SHELL=$lt_SHELL
8728
8729# Whether or not to build shared libraries.
8730build_libtool_libs=$enable_shared
8731
8732# Whether or not to build static libraries.
8733build_old_libs=$enable_static
8734
8735# Whether or not to add -lc for building shared libraries.
jjakoacba8e62005-03-14 21:53:10 +00008736build_libtool_need_lc=$archive_cmds_need_lc
8737
8738# Whether or not to disallow shared libs when runtime libs are static
8739allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
jjako286bc982003-01-28 23:17:50 +00008740
8741# Whether or not to optimize for fast installation.
8742fast_install=$enable_fast_install
8743
8744# The host system.
8745host_alias=$host_alias
8746host=$host
8747
8748# An echo program that does not interpret backslashes.
8749echo=$lt_echo
8750
8751# The archiver.
8752AR=$lt_AR
8753AR_FLAGS=$lt_AR_FLAGS
8754
jjakoacba8e62005-03-14 21:53:10 +00008755# A C compiler.
8756LTCC=$lt_LTCC
8757
8758# A language-specific compiler.
8759CC=$lt_compiler
jjako286bc982003-01-28 23:17:50 +00008760
8761# Is the compiler the GNU C compiler?
8762with_gcc=$GCC
8763
jjakoacba8e62005-03-14 21:53:10 +00008764# An ERE matcher.
8765EGREP=$lt_EGREP
8766
jjako286bc982003-01-28 23:17:50 +00008767# The linker used to build libraries.
8768LD=$lt_LD
8769
8770# Whether we need hard or soft links.
8771LN_S=$lt_LN_S
8772
8773# A BSD-compatible nm program.
8774NM=$lt_NM
8775
8776# A symbol stripping program
jjakoacba8e62005-03-14 21:53:10 +00008777STRIP=$lt_STRIP
jjako286bc982003-01-28 23:17:50 +00008778
8779# Used to examine libraries when file_magic_cmd begins "file"
8780MAGIC_CMD=$MAGIC_CMD
8781
8782# Used on cygwin: DLL creation program.
8783DLLTOOL="$DLLTOOL"
8784
8785# Used on cygwin: object dumper.
8786OBJDUMP="$OBJDUMP"
8787
8788# Used on cygwin: assembler.
8789AS="$AS"
8790
8791# The name of the directory that contains temporary libtool files.
8792objdir=$objdir
8793
8794# How to create reloadable object files.
8795reload_flag=$lt_reload_flag
8796reload_cmds=$lt_reload_cmds
8797
8798# How to pass a linker flag through the compiler.
jjakoacba8e62005-03-14 21:53:10 +00008799wl=$lt_lt_prog_compiler_wl
jjako286bc982003-01-28 23:17:50 +00008800
8801# Object file suffix (normally "o").
8802objext="$ac_objext"
8803
8804# Old archive suffix (normally "a").
8805libext="$libext"
8806
jjakoacba8e62005-03-14 21:53:10 +00008807# Shared library suffix (normally ".so").
8808shrext_cmds='$shrext_cmds'
8809
jjako286bc982003-01-28 23:17:50 +00008810# Executable file suffix (normally "").
8811exeext="$exeext"
8812
8813# Additional compiler flags for building library objects.
jjakoacba8e62005-03-14 21:53:10 +00008814pic_flag=$lt_lt_prog_compiler_pic
jjako286bc982003-01-28 23:17:50 +00008815pic_mode=$pic_mode
8816
jjakoacba8e62005-03-14 21:53:10 +00008817# What is the maximum length of a command?
8818max_cmd_len=$lt_cv_sys_max_cmd_len
jjako286bc982003-01-28 23:17:50 +00008819
jjakoacba8e62005-03-14 21:53:10 +00008820# Does compiler simultaneously support -c and -o options?
8821compiler_c_o=$lt_lt_cv_prog_compiler_c_o
jjako286bc982003-01-28 23:17:50 +00008822
8823# Must we lock files when doing compilation ?
8824need_locks=$lt_need_locks
8825
8826# Do we need the lib prefix for modules?
8827need_lib_prefix=$need_lib_prefix
8828
8829# Do we need a version for libraries?
8830need_version=$need_version
8831
8832# Whether dlopen is supported.
8833dlopen_support=$enable_dlopen
8834
8835# Whether dlopen of programs is supported.
8836dlopen_self=$enable_dlopen_self
8837
8838# Whether dlopen of statically linked programs is supported.
8839dlopen_self_static=$enable_dlopen_self_static
8840
8841# Compiler flag to prevent dynamic linking.
jjakoacba8e62005-03-14 21:53:10 +00008842link_static_flag=$lt_lt_prog_compiler_static
jjako286bc982003-01-28 23:17:50 +00008843
8844# Compiler flag to turn off builtin functions.
jjakoacba8e62005-03-14 21:53:10 +00008845no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
jjako286bc982003-01-28 23:17:50 +00008846
8847# Compiler flag to allow reflexive dlopens.
8848export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8849
8850# Compiler flag to generate shared objects directly from archives.
8851whole_archive_flag_spec=$lt_whole_archive_flag_spec
8852
8853# Compiler flag to generate thread-safe objects.
8854thread_safe_flag_spec=$lt_thread_safe_flag_spec
8855
8856# Library versioning type.
8857version_type=$version_type
8858
8859# Format of library name prefix.
8860libname_spec=$lt_libname_spec
8861
8862# List of archive names. First name is the real one, the rest are links.
8863# The last name is the one that the linker finds with -lNAME.
8864library_names_spec=$lt_library_names_spec
8865
8866# The coded name of the library, if different from the real name.
8867soname_spec=$lt_soname_spec
8868
8869# Commands used to build and install an old-style archive.
8870RANLIB=$lt_RANLIB
8871old_archive_cmds=$lt_old_archive_cmds
8872old_postinstall_cmds=$lt_old_postinstall_cmds
8873old_postuninstall_cmds=$lt_old_postuninstall_cmds
8874
8875# Create an old-style archive from a shared archive.
8876old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8877
8878# Create a temporary old-style archive to link instead of a shared archive.
8879old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8880
8881# Commands used to build and install a shared archive.
8882archive_cmds=$lt_archive_cmds
8883archive_expsym_cmds=$lt_archive_expsym_cmds
8884postinstall_cmds=$lt_postinstall_cmds
8885postuninstall_cmds=$lt_postuninstall_cmds
8886
jjakoacba8e62005-03-14 21:53:10 +00008887# Commands used to build a loadable module (assumed same as above if empty)
8888module_cmds=$lt_module_cmds
8889module_expsym_cmds=$lt_module_expsym_cmds
8890
jjako286bc982003-01-28 23:17:50 +00008891# Commands to strip libraries.
8892old_striplib=$lt_old_striplib
8893striplib=$lt_striplib
8894
jjakoacba8e62005-03-14 21:53:10 +00008895# Dependencies to place before the objects being linked to create a
8896# shared library.
8897predep_objects=$lt_predep_objects
8898
8899# Dependencies to place after the objects being linked to create a
8900# shared library.
8901postdep_objects=$lt_postdep_objects
8902
8903# Dependencies to place before the objects being linked to create a
8904# shared library.
8905predeps=$lt_predeps
8906
8907# Dependencies to place after the objects being linked to create a
8908# shared library.
8909postdeps=$lt_postdeps
8910
8911# The library search path used internally by the compiler when linking
8912# a shared library.
8913compiler_lib_search_path=$lt_compiler_lib_search_path
8914
jjako286bc982003-01-28 23:17:50 +00008915# Method to check whether dependent libraries are shared objects.
8916deplibs_check_method=$lt_deplibs_check_method
8917
8918# Command to use when deplibs_check_method == file_magic.
8919file_magic_cmd=$lt_file_magic_cmd
8920
8921# Flag that allows shared libraries with undefined symbols to be built.
8922allow_undefined_flag=$lt_allow_undefined_flag
8923
8924# Flag that forces no undefined symbols.
8925no_undefined_flag=$lt_no_undefined_flag
8926
8927# Commands used to finish a libtool library installation in a directory.
8928finish_cmds=$lt_finish_cmds
8929
8930# Same as above, but a single script fragment to be evaled but not shown.
8931finish_eval=$lt_finish_eval
8932
8933# Take the output of nm and produce a listing of raw symbols and C names.
jjakoacba8e62005-03-14 21:53:10 +00008934global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
jjako286bc982003-01-28 23:17:50 +00008935
8936# Transform the output of nm in a proper C declaration
jjakoacba8e62005-03-14 21:53:10 +00008937global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
jjako286bc982003-01-28 23:17:50 +00008938
8939# Transform the output of nm in a C name address pair
jjakoacba8e62005-03-14 21:53:10 +00008940global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
jjako286bc982003-01-28 23:17:50 +00008941
8942# This is the shared library runtime path variable.
8943runpath_var=$runpath_var
8944
8945# This is the shared library path variable.
8946shlibpath_var=$shlibpath_var
8947
8948# Is shlibpath searched before the hard-coded library search path?
8949shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8950
8951# How to hardcode a shared library path into an executable.
8952hardcode_action=$hardcode_action
8953
8954# Whether we should hardcode library paths into libraries.
8955hardcode_into_libs=$hardcode_into_libs
8956
8957# Flag to hardcode \$libdir into a binary during linking.
8958# This must work even if \$libdir does not exist.
8959hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8960
jjakoacba8e62005-03-14 21:53:10 +00008961# If ld is used when linking, flag to hardcode \$libdir into
8962# a binary during linking. This must work even if \$libdir does
8963# not exist.
8964hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8965
jjako286bc982003-01-28 23:17:50 +00008966# Whether we need a single -rpath flag with a separated argument.
8967hardcode_libdir_separator=$lt_hardcode_libdir_separator
8968
jjakoacba8e62005-03-14 21:53:10 +00008969# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
jjako286bc982003-01-28 23:17:50 +00008970# resulting binary.
8971hardcode_direct=$hardcode_direct
8972
8973# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8974# resulting binary.
8975hardcode_minus_L=$hardcode_minus_L
8976
8977# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8978# the resulting binary.
8979hardcode_shlibpath_var=$hardcode_shlibpath_var
8980
jjakoacba8e62005-03-14 21:53:10 +00008981# Set to yes if building a shared library automatically hardcodes DIR into the library
8982# and all subsequent libraries and executables linked against it.
8983hardcode_automatic=$hardcode_automatic
8984
jjako286bc982003-01-28 23:17:50 +00008985# Variables whose values should be saved in libtool wrapper scripts and
8986# restored at relink time.
8987variables_saved_for_relink="$variables_saved_for_relink"
8988
8989# Whether libtool must link a program against all its dependency libraries.
8990link_all_deplibs=$link_all_deplibs
8991
8992# Compile-time system search path for libraries
8993sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8994
8995# Run-time system search path for libraries
8996sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8997
8998# Fix the shell variable \$srcfile for the compiler.
8999fix_srcfile_path="$fix_srcfile_path"
9000
9001# Set to yes if exported symbols are required.
9002always_export_symbols=$always_export_symbols
9003
9004# The commands to list exported symbols.
9005export_symbols_cmds=$lt_export_symbols_cmds
9006
9007# The commands to extract the exported symbol list from a shared archive.
9008extract_expsyms_cmds=$lt_extract_expsyms_cmds
9009
9010# Symbols that should not be listed in the preloaded symbols.
9011exclude_expsyms=$lt_exclude_expsyms
9012
9013# Symbols that must always be exported.
9014include_expsyms=$lt_include_expsyms
9015
9016# ### END LIBTOOL CONFIG
9017
9018__EOF__
9019
jjakoacba8e62005-03-14 21:53:10 +00009020
jjako286bc982003-01-28 23:17:50 +00009021 case $host_os in
9022 aix3*)
jjakoacba8e62005-03-14 21:53:10 +00009023 cat <<\EOF >> "$cfgfile"
jjako286bc982003-01-28 23:17:50 +00009024
9025# AIX sometimes has problems with the GCC collect2 program. For some
9026# reason, if we set the COLLECT_NAMES environment variable, the problems
9027# vanish in a puff of smoke.
9028if test "X${COLLECT_NAMES+set}" != Xset; then
9029 COLLECT_NAMES=
9030 export COLLECT_NAMES
9031fi
9032EOF
9033 ;;
9034 esac
9035
jjako286bc982003-01-28 23:17:50 +00009036 # We use sed instead of cat because bash on DJGPP gets confused if
9037 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9038 # text mode, it properly converts lines to CR/LF. This bash problem
9039 # is reportedly fixed, but why not run on old versions too?
jjakoacba8e62005-03-14 21:53:10 +00009040 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
jjako286bc982003-01-28 23:17:50 +00009041
jjakoacba8e62005-03-14 21:53:10 +00009042 mv -f "$cfgfile" "$ofile" || \
9043 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
jjako286bc982003-01-28 23:17:50 +00009044 chmod +x "$ofile"
jjakoacba8e62005-03-14 21:53:10 +00009045
9046else
9047 # If there is no Makefile yet, we rely on a make rule to execute
9048 # `config.status --recheck' to rerun these tests and create the
9049 # libtool script then.
9050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9051 if test -f "$ltmain_in"; then
9052 test -f Makefile && make "$ltmain"
9053 fi
jjako286bc982003-01-28 23:17:50 +00009054fi
9055
9056
jjakoacba8e62005-03-14 21:53:10 +00009057ac_ext=c
9058ac_cpp='$CPP $CPPFLAGS'
9059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061ac_compiler_gnu=$ac_cv_c_compiler_gnu
9062
9063CC="$lt_save_CC"
9064
9065
9066# Check whether --with-tags or --without-tags was given.
9067if test "${with_tags+set}" = set; then
9068 withval="$with_tags"
9069 tagnames="$withval"
9070fi;
9071
9072if test -f "$ltmain" && test -n "$tagnames"; then
9073 if test ! -f "${ofile}"; then
9074 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9075echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9076 fi
9077
9078 if test -z "$LTCC"; then
9079 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9080 if test -z "$LTCC"; then
9081 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9082echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9083 else
9084 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9085echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9086 fi
9087 fi
9088
9089 # Extract list of available tagged configurations in $ofile.
9090 # Note that this assumes the entire list is on one line.
9091 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9092
9093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9094 for tagname in $tagnames; do
9095 IFS="$lt_save_ifs"
9096 # Check whether tagname contains only valid characters
9097 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9098 "") ;;
9099 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9100echo "$as_me: error: invalid tag name: $tagname" >&2;}
9101 { (exit 1); exit 1; }; }
9102 ;;
9103 esac
9104
9105 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9106 then
9107 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9108echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9109 { (exit 1); exit 1; }; }
9110 fi
9111
9112 # Update the list of available tags.
9113 if test -n "$tagname"; then
9114 echo appending configuration tag \"$tagname\" to $ofile
9115
9116 case $tagname in
9117 CXX)
9118 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9119 ac_ext=cc
9120ac_cpp='$CXXCPP $CPPFLAGS'
9121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9124
9125
9126
9127
9128archive_cmds_need_lc_CXX=no
9129allow_undefined_flag_CXX=
9130always_export_symbols_CXX=no
9131archive_expsym_cmds_CXX=
9132export_dynamic_flag_spec_CXX=
9133hardcode_direct_CXX=no
9134hardcode_libdir_flag_spec_CXX=
9135hardcode_libdir_flag_spec_ld_CXX=
9136hardcode_libdir_separator_CXX=
9137hardcode_minus_L_CXX=no
9138hardcode_automatic_CXX=no
9139module_cmds_CXX=
9140module_expsym_cmds_CXX=
9141link_all_deplibs_CXX=unknown
9142old_archive_cmds_CXX=$old_archive_cmds
9143no_undefined_flag_CXX=
9144whole_archive_flag_spec_CXX=
9145enable_shared_with_static_runtimes_CXX=no
9146
9147# Dependencies to place before and after the object being linked:
9148predep_objects_CXX=
9149postdep_objects_CXX=
9150predeps_CXX=
9151postdeps_CXX=
9152compiler_lib_search_path_CXX=
9153
9154# Source file extension for C++ test sources.
9155ac_ext=cc
9156
9157# Object file extension for compiled C++ test sources.
9158objext=o
9159objext_CXX=$objext
9160
9161# Code to be used in simple compile tests
9162lt_simple_compile_test_code="int some_variable = 0;\n"
9163
9164# Code to be used in simple link tests
9165lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9166
9167# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9168
9169# If no C compiler was specified, use CC.
9170LTCC=${LTCC-"$CC"}
9171
9172# Allow CC to be a program name with arguments.
9173compiler=$CC
9174
9175
9176# Allow CC to be a program name with arguments.
9177lt_save_CC=$CC
9178lt_save_LD=$LD
9179lt_save_GCC=$GCC
9180GCC=$GXX
9181lt_save_with_gnu_ld=$with_gnu_ld
9182lt_save_path_LD=$lt_cv_path_LD
9183if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9184 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9185else
9186 unset lt_cv_prog_gnu_ld
9187fi
9188if test -n "${lt_cv_path_LDCXX+set}"; then
9189 lt_cv_path_LD=$lt_cv_path_LDCXX
9190else
9191 unset lt_cv_path_LD
9192fi
9193test -z "${LDCXX+set}" || LD=$LDCXX
9194CC=${CXX-"c++"}
9195compiler=$CC
9196compiler_CXX=$CC
9197cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9198
9199# We don't want -fno-exception wen compiling C++ code, so set the
9200# no_builtin_flag separately
9201if test "$GXX" = yes; then
9202 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9203else
9204 lt_prog_compiler_no_builtin_flag_CXX=
9205fi
9206
9207if test "$GXX" = yes; then
9208 # Set up default GNU C++ configuration
9209
9210
9211# Check whether --with-gnu-ld or --without-gnu-ld was given.
9212if test "${with_gnu_ld+set}" = set; then
9213 withval="$with_gnu_ld"
9214 test "$withval" = no || with_gnu_ld=yes
9215else
9216 with_gnu_ld=no
9217fi;
9218ac_prog=ld
9219if test "$GCC" = yes; then
9220 # Check if gcc -print-prog-name=ld gives a path.
9221 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9222echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9223 case $host in
9224 *-*-mingw*)
9225 # gcc leaves a trailing carriage return which upsets mingw
9226 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9227 *)
9228 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9229 esac
9230 case $ac_prog in
9231 # Accept absolute paths.
9232 [\\/]* | ?:[\\/]*)
9233 re_direlt='/[^/][^/]*/\.\./'
9234 # Canonicalize the pathname of ld
9235 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9236 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9237 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9238 done
9239 test -z "$LD" && LD="$ac_prog"
9240 ;;
9241 "")
9242 # If it fails, then pretend we aren't using GCC.
9243 ac_prog=ld
9244 ;;
9245 *)
9246 # If it is relative, then search for the first ld in PATH.
9247 with_gnu_ld=unknown
9248 ;;
9249 esac
9250elif test "$with_gnu_ld" = yes; then
9251 echo "$as_me:$LINENO: checking for GNU ld" >&5
9252echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9253else
9254 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9255echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9256fi
9257if test "${lt_cv_path_LD+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260 if test -z "$LD"; then
9261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9262 for ac_dir in $PATH; do
9263 IFS="$lt_save_ifs"
9264 test -z "$ac_dir" && ac_dir=.
9265 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9266 lt_cv_path_LD="$ac_dir/$ac_prog"
9267 # Check to see if the program is GNU ld. I'd rather use --version,
9268 # but apparently some GNU ld's only accept -v.
9269 # Break only if it was the GNU/non-GNU ld that we prefer.
9270 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9271 *GNU* | *'with BFD'*)
9272 test "$with_gnu_ld" != no && break
9273 ;;
9274 *)
9275 test "$with_gnu_ld" != yes && break
9276 ;;
9277 esac
9278 fi
9279 done
9280 IFS="$lt_save_ifs"
9281else
9282 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9283fi
9284fi
9285
9286LD="$lt_cv_path_LD"
9287if test -n "$LD"; then
9288 echo "$as_me:$LINENO: result: $LD" >&5
9289echo "${ECHO_T}$LD" >&6
9290else
9291 echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6
9293fi
9294test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9295echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9296 { (exit 1); exit 1; }; }
9297echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9298echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9299if test "${lt_cv_prog_gnu_ld+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301else
9302 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9303case `$LD -v 2>&1 </dev/null` in
9304*GNU* | *'with BFD'*)
9305 lt_cv_prog_gnu_ld=yes
9306 ;;
9307*)
9308 lt_cv_prog_gnu_ld=no
9309 ;;
9310esac
9311fi
9312echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9313echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9314with_gnu_ld=$lt_cv_prog_gnu_ld
9315
9316
9317
9318 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9319 # archiving commands below assume that GNU ld is being used.
9320 if test "$with_gnu_ld" = yes; then
9321 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322 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'
9323
9324 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9326
9327 # If archive_cmds runs LD, not CC, wlarc should be empty
9328 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9329 # investigate it a little bit more. (MM)
9330 wlarc='${wl}'
9331
9332 # ancient GNU ld didn't support --whole-archive et. al.
9333 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9334 grep 'no-whole-archive' > /dev/null; then
9335 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9336 else
9337 whole_archive_flag_spec_CXX=
9338 fi
9339 else
9340 with_gnu_ld=no
9341 wlarc=
9342
9343 # A generic and very simple default shared library creation
9344 # command for GNU C++ for the case where it uses the native
9345 # linker, instead of GNU ld. If possible, this setting should
9346 # overridden to take advantage of the native linker features on
9347 # the platform it is being used on.
9348 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9349 fi
9350
9351 # Commands to make compiler produce verbose output that lists
9352 # what "hidden" libraries, object files and flags are used when
9353 # linking a shared library.
9354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9355
9356else
9357 GXX=no
9358 with_gnu_ld=no
9359 wlarc=
9360fi
9361
9362# PORTME: fill in a description of your system's C++ link characteristics
9363echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9364echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9365ld_shlibs_CXX=yes
9366case $host_os in
9367 aix3*)
9368 # FIXME: insert proper C++ library support
9369 ld_shlibs_CXX=no
9370 ;;
9371 aix4* | aix5*)
9372 if test "$host_cpu" = ia64; then
9373 # On IA64, the linker does run time linking by default, so we don't
9374 # have to do anything special.
9375 aix_use_runtimelinking=no
9376 exp_sym_flag='-Bexport'
9377 no_entry_flag=""
9378 else
9379 aix_use_runtimelinking=no
9380
9381 # Test if we are trying to use run time linking or normal
9382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9383 # need to do runtime linking.
9384 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9385 for ld_flag in $LDFLAGS; do
9386 case $ld_flag in
9387 *-brtl*)
9388 aix_use_runtimelinking=yes
9389 break
9390 ;;
9391 esac
9392 done
9393 esac
9394
9395 exp_sym_flag='-bexport'
9396 no_entry_flag='-bnoentry'
9397 fi
9398
9399 # When large executables or shared objects are built, AIX ld can
9400 # have problems creating the table of contents. If linking a library
9401 # or program results in "error TOC overflow" add -mminimal-toc to
9402 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9403 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9404
9405 archive_cmds_CXX=''
9406 hardcode_direct_CXX=yes
9407 hardcode_libdir_separator_CXX=':'
9408 link_all_deplibs_CXX=yes
9409
9410 if test "$GXX" = yes; then
9411 case $host_os in aix4.012|aix4.012.*)
9412 # We only want to do this on AIX 4.2 and lower, the check
9413 # below for broken collect2 doesn't work under 4.3+
9414 collect2name=`${CC} -print-prog-name=collect2`
9415 if test -f "$collect2name" && \
9416 strings "$collect2name" | grep resolve_lib_name >/dev/null
9417 then
9418 # We have reworked collect2
9419 hardcode_direct_CXX=yes
9420 else
9421 # We have old collect2
9422 hardcode_direct_CXX=unsupported
9423 # It fails to find uninstalled libraries when the uninstalled
9424 # path is not listed in the libpath. Setting hardcode_minus_L
9425 # to unsupported forces relinking
9426 hardcode_minus_L_CXX=yes
9427 hardcode_libdir_flag_spec_CXX='-L$libdir'
9428 hardcode_libdir_separator_CXX=
9429 fi
9430 esac
9431 shared_flag='-shared'
9432 else
9433 # not using gcc
9434 if test "$host_cpu" = ia64; then
9435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9436 # chokes on -Wl,-G. The following line is correct:
9437 shared_flag='-G'
9438 else
9439 if test "$aix_use_runtimelinking" = yes; then
9440 shared_flag='${wl}-G'
9441 else
9442 shared_flag='${wl}-bM:SRE'
9443 fi
9444 fi
9445 fi
9446
9447 # It seems that -bexpall does not export symbols beginning with
9448 # underscore (_), so it is better to generate a list of symbols to export.
9449 always_export_symbols_CXX=yes
9450 if test "$aix_use_runtimelinking" = yes; then
9451 # Warning - without using the other runtime loading flags (-brtl),
9452 # -berok will link without error, but may produce a broken library.
9453 allow_undefined_flag_CXX='-berok'
9454 # Determine the default libpath from the value encoded in an empty executable.
9455 cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h. */
9461
9462int
9463main ()
9464{
9465
9466 ;
9467 return 0;
9468}
9469_ACEOF
9470rm -f conftest.$ac_objext conftest$ac_exeext
9471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_cxx_werror_flag"
9480 || test ! -s conftest.err'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492
9493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9494}'`
9495# Check for a 64-bit object if we didn't find anything.
9496if 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; }
9497}'`; fi
9498else
9499 echo "$as_me: failed program was:" >&5
9500sed 's/^/| /' conftest.$ac_ext >&5
9501
9502fi
9503rm -f conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9506
9507 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9508
9509 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9510 else
9511 if test "$host_cpu" = ia64; then
9512 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9513 allow_undefined_flag_CXX="-z nodefs"
9514 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9515 else
9516 # Determine the default libpath from the value encoded in an empty executable.
9517 cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h. */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
9522/* end confdefs.h. */
9523
9524int
9525main ()
9526{
9527
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext conftest$ac_exeext
9533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534 (eval $ac_link) 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_cxx_werror_flag"
9542 || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554
9555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9556}'`
9557# Check for a 64-bit object if we didn't find anything.
9558if 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; }
9559}'`; fi
9560else
9561 echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
9564fi
9565rm -f conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9568
9569 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9570 # Warning - without using the other run time loading flags,
9571 # -berok will link without error, but may produce a broken library.
9572 no_undefined_flag_CXX=' ${wl}-bernotok'
9573 allow_undefined_flag_CXX=' ${wl}-berok'
9574 # -bexpall does not export symbols beginning with underscore (_)
9575 always_export_symbols_CXX=yes
9576 # Exported symbols can be pulled into shared objects from archives
9577 whole_archive_flag_spec_CXX=' '
9578 archive_cmds_need_lc_CXX=yes
9579 # This is similar to how AIX traditionally builds it's shared libraries.
9580 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9581 fi
9582 fi
9583 ;;
9584 chorus*)
9585 case $cc_basename in
9586 *)
9587 # FIXME: insert proper C++ library support
9588 ld_shlibs_CXX=no
9589 ;;
9590 esac
9591 ;;
9592
9593 cygwin* | mingw* | pw32*)
9594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9595 # as there is no search path for DLLs.
9596 hardcode_libdir_flag_spec_CXX='-L$libdir'
9597 allow_undefined_flag_CXX=unsupported
9598 always_export_symbols_CXX=no
9599 enable_shared_with_static_runtimes_CXX=yes
9600
9601 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9602 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9603 # If the export-symbols file already is a .def file (1st line
9604 # is EXPORTS), use it as is; otherwise, prepend...
9605 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9606 cp $export_symbols $output_objdir/$soname.def;
9607 else
9608 echo EXPORTS > $output_objdir/$soname.def;
9609 cat $export_symbols >> $output_objdir/$soname.def;
9610 fi~
9611 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9612 else
9613 ld_shlibs_CXX=no
9614 fi
9615 ;;
9616
9617 darwin* | rhapsody*)
9618 if test "$GXX" = yes; then
9619 archive_cmds_need_lc_CXX=no
9620 case "$host_os" in
9621 rhapsody* | darwin1.[012])
9622 allow_undefined_flag_CXX='-undefined suppress'
9623 ;;
9624 *) # Darwin 1.3 on
9625 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9626 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9627 else
9628 case ${MACOSX_DEPLOYMENT_TARGET} in
9629 10.[012])
9630 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9631 ;;
9632 10.*)
9633 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9634 ;;
9635 esac
9636 fi
9637 ;;
9638 esac
9639 lt_int_apple_cc_single_mod=no
9640 output_verbose_link_cmd='echo'
9641 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9642 lt_int_apple_cc_single_mod=yes
9643 fi
9644 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9645 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9646 else
9647 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9648 fi
9649 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9650
9651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9652 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9653 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}'
9654 else
9655 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9656 fi
9657 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}'
9658 hardcode_direct_CXX=no
9659 hardcode_automatic_CXX=yes
9660 hardcode_shlibpath_var_CXX=unsupported
9661 whole_archive_flag_spec_CXX='-all_load $convenience'
9662 link_all_deplibs_CXX=yes
9663 else
9664 ld_shlibs_CXX=no
9665 fi
9666 ;;
9667
9668 dgux*)
9669 case $cc_basename in
9670 ec++)
9671 # FIXME: insert proper C++ library support
9672 ld_shlibs_CXX=no
9673 ;;
9674 ghcx)
9675 # Green Hills C++ Compiler
9676 # FIXME: insert proper C++ library support
9677 ld_shlibs_CXX=no
9678 ;;
9679 *)
9680 # FIXME: insert proper C++ library support
9681 ld_shlibs_CXX=no
9682 ;;
9683 esac
9684 ;;
9685 freebsd12*)
9686 # C++ shared libraries reported to be fairly broken before switch to ELF
9687 ld_shlibs_CXX=no
9688 ;;
9689 freebsd-elf*)
9690 archive_cmds_need_lc_CXX=no
9691 ;;
9692 freebsd* | kfreebsd*-gnu)
9693 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9694 # conventions
9695 ld_shlibs_CXX=yes
9696 ;;
9697 gnu*)
9698 ;;
9699 hpux9*)
9700 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9701 hardcode_libdir_separator_CXX=:
9702 export_dynamic_flag_spec_CXX='${wl}-E'
9703 hardcode_direct_CXX=yes
9704 hardcode_minus_L_CXX=yes # Not in the search PATH,
9705 # but as the default
9706 # location of the library.
9707
9708 case $cc_basename in
9709 CC)
9710 # FIXME: insert proper C++ library support
9711 ld_shlibs_CXX=no
9712 ;;
9713 aCC)
9714 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'
9715 # Commands to make compiler produce verbose output that lists
9716 # what "hidden" libraries, object files and flags are used when
9717 # linking a shared library.
9718 #
9719 # There doesn't appear to be a way to prevent this compiler from
9720 # explicitly linking system object files so we need to strip them
9721 # from the output so that they don't get included in the library
9722 # dependencies.
9723 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'
9724 ;;
9725 *)
9726 if test "$GXX" = yes; then
9727 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'
9728 else
9729 # FIXME: insert proper C++ library support
9730 ld_shlibs_CXX=no
9731 fi
9732 ;;
9733 esac
9734 ;;
9735 hpux10*|hpux11*)
9736 if test $with_gnu_ld = no; then
9737 case "$host_cpu" in
9738 hppa*64*)
9739 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9740 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9741 hardcode_libdir_separator_CXX=:
9742 ;;
9743 ia64*)
9744 hardcode_libdir_flag_spec_CXX='-L$libdir'
9745 ;;
9746 *)
9747 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9748 hardcode_libdir_separator_CXX=:
9749 export_dynamic_flag_spec_CXX='${wl}-E'
9750 ;;
9751 esac
9752 fi
9753 case "$host_cpu" in
9754 hppa*64*)
9755 hardcode_direct_CXX=no
9756 hardcode_shlibpath_var_CXX=no
9757 ;;
9758 ia64*)
9759 hardcode_direct_CXX=no
9760 hardcode_shlibpath_var_CXX=no
9761 hardcode_minus_L_CXX=yes # Not in the search PATH,
9762 # but as the default
9763 # location of the library.
9764 ;;
9765 *)
9766 hardcode_direct_CXX=yes
9767 hardcode_minus_L_CXX=yes # Not in the search PATH,
9768 # but as the default
9769 # location of the library.
9770 ;;
9771 esac
9772
9773 case $cc_basename in
9774 CC)
9775 # FIXME: insert proper C++ library support
9776 ld_shlibs_CXX=no
9777 ;;
9778 aCC)
9779 case "$host_cpu" in
9780 hppa*64*|ia64*)
9781 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9782 ;;
9783 *)
9784 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9785 ;;
9786 esac
9787 # Commands to make compiler produce verbose output that lists
9788 # what "hidden" libraries, object files and flags are used when
9789 # linking a shared library.
9790 #
9791 # There doesn't appear to be a way to prevent this compiler from
9792 # explicitly linking system object files so we need to strip them
9793 # from the output so that they don't get included in the library
9794 # dependencies.
9795 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'
9796 ;;
9797 *)
9798 if test "$GXX" = yes; then
9799 if test $with_gnu_ld = no; then
9800 case "$host_cpu" in
9801 ia64*|hppa*64*)
9802 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9803 ;;
9804 *)
9805 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'
9806 ;;
9807 esac
9808 fi
9809 else
9810 # FIXME: insert proper C++ library support
9811 ld_shlibs_CXX=no
9812 fi
9813 ;;
9814 esac
9815 ;;
9816 irix5* | irix6*)
9817 case $cc_basename in
9818 CC)
9819 # SGI C++
9820 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 ${objdir}/so_locations -o $lib'
9821
9822 # Archives containing C++ object files must be created using
9823 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9824 # necessary to make sure instantiated templates are included
9825 # in the archive.
9826 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9827 ;;
9828 *)
9829 if test "$GXX" = yes; then
9830 if test "$with_gnu_ld" = no; then
9831 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}${objdir}/so_locations -o $lib'
9832 else
9833 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'
9834 fi
9835 fi
9836 link_all_deplibs_CXX=yes
9837 ;;
9838 esac
9839 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9840 hardcode_libdir_separator_CXX=:
9841 ;;
9842 linux*)
9843 case $cc_basename in
9844 KCC)
9845 # Kuck and Associates, Inc. (KAI) C++ Compiler
9846
9847 # KCC will only create a shared library if the output file
9848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9849 # to its proper name (with version) after linking.
9850 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'
9851 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'
9852 # Commands to make compiler produce verbose output that lists
9853 # what "hidden" libraries, object files and flags are used when
9854 # linking a shared library.
9855 #
9856 # There doesn't appear to be a way to prevent this compiler from
9857 # explicitly linking system object files so we need to strip them
9858 # from the output so that they don't get included in the library
9859 # dependencies.
9860 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'
9861
9862 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9863 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9864
9865 # Archives containing C++ object files must be created using
9866 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9867 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9868 ;;
9869 icpc)
9870 # Intel C++
9871 with_gnu_ld=yes
9872 archive_cmds_need_lc_CXX=no
9873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874 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'
9875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9876 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9877 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9878 ;;
9879 cxx)
9880 # Compaq C++
9881 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9882 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'
9883
9884 runpath_var=LD_RUN_PATH
9885 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9886 hardcode_libdir_separator_CXX=:
9887
9888 # Commands to make compiler produce verbose output that lists
9889 # what "hidden" libraries, object files and flags are used when
9890 # linking a shared library.
9891 #
9892 # There doesn't appear to be a way to prevent this compiler from
9893 # explicitly linking system object files so we need to strip them
9894 # from the output so that they don't get included in the library
9895 # dependencies.
9896 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'
9897 ;;
9898 esac
9899 ;;
9900 lynxos*)
9901 # FIXME: insert proper C++ library support
9902 ld_shlibs_CXX=no
9903 ;;
9904 m88k*)
9905 # FIXME: insert proper C++ library support
9906 ld_shlibs_CXX=no
9907 ;;
9908 mvs*)
9909 case $cc_basename in
9910 cxx)
9911 # FIXME: insert proper C++ library support
9912 ld_shlibs_CXX=no
9913 ;;
9914 *)
9915 # FIXME: insert proper C++ library support
9916 ld_shlibs_CXX=no
9917 ;;
9918 esac
9919 ;;
9920 netbsd*)
9921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9922 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9923 wlarc=
9924 hardcode_libdir_flag_spec_CXX='-R$libdir'
9925 hardcode_direct_CXX=yes
9926 hardcode_shlibpath_var_CXX=no
9927 fi
9928 # Workaround some broken pre-1.5 toolchains
9929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9930 ;;
9931 osf3*)
9932 case $cc_basename in
9933 KCC)
9934 # Kuck and Associates, Inc. (KAI) C++ Compiler
9935
9936 # KCC will only create a shared library if the output file
9937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9938 # to its proper name (with version) after linking.
9939 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'
9940
9941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9942 hardcode_libdir_separator_CXX=:
9943
9944 # Archives containing C++ object files must be created using
9945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9947
9948 ;;
9949 RCC)
9950 # Rational C++ 2.4.1
9951 # FIXME: insert proper C++ library support
9952 ld_shlibs_CXX=no
9953 ;;
9954 cxx)
9955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9956 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 ${objdir}/so_locations -o $lib'
9957
9958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9959 hardcode_libdir_separator_CXX=:
9960
9961 # Commands to make compiler produce verbose output that lists
9962 # what "hidden" libraries, object files and flags are used when
9963 # linking a shared library.
9964 #
9965 # There doesn't appear to be a way to prevent this compiler from
9966 # explicitly linking system object files so we need to strip them
9967 # from the output so that they don't get included in the library
9968 # dependencies.
9969 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'
9970 ;;
9971 *)
9972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9973 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9974 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}${objdir}/so_locations -o $lib'
9975
9976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9977 hardcode_libdir_separator_CXX=:
9978
9979 # Commands to make compiler produce verbose output that lists
9980 # what "hidden" libraries, object files and flags are used when
9981 # linking a shared library.
9982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9983
9984 else
9985 # FIXME: insert proper C++ library support
9986 ld_shlibs_CXX=no
9987 fi
9988 ;;
9989 esac
9990 ;;
9991 osf4* | osf5*)
9992 case $cc_basename in
9993 KCC)
9994 # Kuck and Associates, Inc. (KAI) C++ Compiler
9995
9996 # KCC will only create a shared library if the output file
9997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9998 # to its proper name (with version) after linking.
9999 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'
10000
10001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10002 hardcode_libdir_separator_CXX=:
10003
10004 # Archives containing C++ object files must be created using
10005 # the KAI C++ compiler.
10006 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10007 ;;
10008 RCC)
10009 # Rational C++ 2.4.1
10010 # FIXME: insert proper C++ library support
10011 ld_shlibs_CXX=no
10012 ;;
10013 cxx)
10014 allow_undefined_flag_CXX=' -expect_unresolved \*'
10015 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 ${objdir}/so_locations -o $lib'
10016 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10017 echo "-hidden">> $lib.exp~
10018 $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 $objdir/so_locations -o $lib~
10019 $rm $lib.exp'
10020
10021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10022 hardcode_libdir_separator_CXX=:
10023
10024 # Commands to make compiler produce verbose output that lists
10025 # what "hidden" libraries, object files and flags are used when
10026 # linking a shared library.
10027 #
10028 # There doesn't appear to be a way to prevent this compiler from
10029 # explicitly linking system object files so we need to strip them
10030 # from the output so that they don't get included in the library
10031 # dependencies.
10032 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'
10033 ;;
10034 *)
10035 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10036 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10037 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}${objdir}/so_locations -o $lib'
10038
10039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10040 hardcode_libdir_separator_CXX=:
10041
10042 # Commands to make compiler produce verbose output that lists
10043 # what "hidden" libraries, object files and flags are used when
10044 # linking a shared library.
10045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10046
10047 else
10048 # FIXME: insert proper C++ library support
10049 ld_shlibs_CXX=no
10050 fi
10051 ;;
10052 esac
10053 ;;
10054 psos*)
10055 # FIXME: insert proper C++ library support
10056 ld_shlibs_CXX=no
10057 ;;
10058 sco*)
10059 archive_cmds_need_lc_CXX=no
10060 case $cc_basename in
10061 CC)
10062 # FIXME: insert proper C++ library support
10063 ld_shlibs_CXX=no
10064 ;;
10065 *)
10066 # FIXME: insert proper C++ library support
10067 ld_shlibs_CXX=no
10068 ;;
10069 esac
10070 ;;
10071 sunos4*)
10072 case $cc_basename in
10073 CC)
10074 # Sun C++ 4.x
10075 # FIXME: insert proper C++ library support
10076 ld_shlibs_CXX=no
10077 ;;
10078 lcc)
10079 # Lucid
10080 # FIXME: insert proper C++ library support
10081 ld_shlibs_CXX=no
10082 ;;
10083 *)
10084 # FIXME: insert proper C++ library support
10085 ld_shlibs_CXX=no
10086 ;;
10087 esac
10088 ;;
10089 solaris*)
10090 case $cc_basename in
10091 CC)
10092 # Sun C++ 4.2, 5.x and Centerline C++
10093 no_undefined_flag_CXX=' -zdefs'
10094 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10095 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10096 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10097
10098 hardcode_libdir_flag_spec_CXX='-R$libdir'
10099 hardcode_shlibpath_var_CXX=no
10100 case $host_os in
10101 solaris2.0-5 | solaris2.0-5.*) ;;
10102 *)
10103 # The C++ compiler is used as linker so we must use $wl
10104 # flag to pass the commands to the underlying system
10105 # linker.
10106 # Supported since Solaris 2.6 (maybe 2.5.1?)
10107 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10108 ;;
10109 esac
10110 link_all_deplibs_CXX=yes
10111
10112 # Commands to make compiler produce verbose output that lists
10113 # what "hidden" libraries, object files and flags are used when
10114 # linking a shared library.
10115 #
10116 # There doesn't appear to be a way to prevent this compiler from
10117 # explicitly linking system object files so we need to strip them
10118 # from the output so that they don't get included in the library
10119 # dependencies.
10120 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10121
10122 # Archives containing C++ object files must be created using
10123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10124 # necessary to make sure instantiated templates are included
10125 # in the archive.
10126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10127 ;;
10128 gcx)
10129 # Green Hills C++ Compiler
10130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10131
10132 # The C++ compiler must be used to create the archive.
10133 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10134 ;;
10135 *)
10136 # GNU C++ compiler with Solaris linker
10137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10138 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10139 if $CC --version | grep -v '^2\.7' > /dev/null; then
10140 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10141 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10142 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10143
10144 # Commands to make compiler produce verbose output that lists
10145 # what "hidden" libraries, object files and flags are used when
10146 # linking a shared library.
10147 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10148 else
10149 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10150 # platform.
10151 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10152 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10153 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10154
10155 # Commands to make compiler produce verbose output that lists
10156 # what "hidden" libraries, object files and flags are used when
10157 # linking a shared library.
10158 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10159 fi
10160
10161 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10162 fi
10163 ;;
10164 esac
10165 ;;
10166 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10167 archive_cmds_need_lc_CXX=no
10168 ;;
10169 tandem*)
10170 case $cc_basename in
10171 NCC)
10172 # NonStop-UX NCC 3.20
10173 # FIXME: insert proper C++ library support
10174 ld_shlibs_CXX=no
10175 ;;
10176 *)
10177 # FIXME: insert proper C++ library support
10178 ld_shlibs_CXX=no
10179 ;;
10180 esac
10181 ;;
10182 vxworks*)
10183 # FIXME: insert proper C++ library support
10184 ld_shlibs_CXX=no
10185 ;;
10186 *)
10187 # FIXME: insert proper C++ library support
10188 ld_shlibs_CXX=no
10189 ;;
10190esac
10191echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10192echo "${ECHO_T}$ld_shlibs_CXX" >&6
10193test "$ld_shlibs_CXX" = no && can_build_shared=no
10194
10195GCC_CXX="$GXX"
10196LD_CXX="$LD"
10197
10198
10199cat > conftest.$ac_ext <<EOF
10200class Foo
10201{
10202public:
10203 Foo (void) { a = 0; }
10204private:
10205 int a;
10206};
10207EOF
10208
10209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; then
10214 # Parse the compiler output and extract the necessary
10215 # objects, libraries and library flags.
10216
10217 # Sentinel used to keep track of whether or not we are before
10218 # the conftest object file.
10219 pre_test_object_deps_done=no
10220
10221 # The `*' in the case matches for architectures that use `case' in
10222 # $output_verbose_cmd can trigger glob expansion during the loop
10223 # eval without this substitution.
10224 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10225
10226 for p in `eval $output_verbose_link_cmd`; do
10227 case $p in
10228
10229 -L* | -R* | -l*)
10230 # Some compilers place space between "-{L,R}" and the path.
10231 # Remove the space.
10232 if test $p = "-L" \
10233 || test $p = "-R"; then
10234 prev=$p
10235 continue
10236 else
10237 prev=
10238 fi
10239
10240 if test "$pre_test_object_deps_done" = no; then
10241 case $p in
10242 -L* | -R*)
10243 # Internal compiler library paths should come after those
10244 # provided the user. The postdeps already come after the
10245 # user supplied libs so there is no need to process them.
10246 if test -z "$compiler_lib_search_path_CXX"; then
10247 compiler_lib_search_path_CXX="${prev}${p}"
10248 else
10249 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10250 fi
10251 ;;
10252 # The "-l" case would never come before the object being
10253 # linked, so don't bother handling this case.
10254 esac
10255 else
10256 if test -z "$postdeps_CXX"; then
10257 postdeps_CXX="${prev}${p}"
10258 else
10259 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10260 fi
10261 fi
10262 ;;
10263
10264 *.$objext)
10265 # This assumes that the test object file only shows up
10266 # once in the compiler output.
10267 if test "$p" = "conftest.$objext"; then
10268 pre_test_object_deps_done=yes
10269 continue
10270 fi
10271
10272 if test "$pre_test_object_deps_done" = no; then
10273 if test -z "$predep_objects_CXX"; then
10274 predep_objects_CXX="$p"
10275 else
10276 predep_objects_CXX="$predep_objects_CXX $p"
10277 fi
10278 else
10279 if test -z "$postdep_objects_CXX"; then
10280 postdep_objects_CXX="$p"
10281 else
10282 postdep_objects_CXX="$postdep_objects_CXX $p"
10283 fi
10284 fi
10285 ;;
10286
10287 *) ;; # Ignore the rest.
10288
10289 esac
10290 done
10291
10292 # Clean up.
10293 rm -f a.out a.exe
10294else
10295 echo "libtool.m4: error: problem compiling CXX test program"
10296fi
10297
10298$rm -f confest.$objext
10299
10300case " $postdeps_CXX " in
10301*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10302esac
10303
10304lt_prog_compiler_wl_CXX=
10305lt_prog_compiler_pic_CXX=
10306lt_prog_compiler_static_CXX=
10307
10308echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10309echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10310
10311 # C++ specific cases for pic, static, wl, etc.
10312 if test "$GXX" = yes; then
10313 lt_prog_compiler_wl_CXX='-Wl,'
10314 lt_prog_compiler_static_CXX='-static'
10315
10316 case $host_os in
10317 aix*)
10318 # All AIX code is PIC.
10319 if test "$host_cpu" = ia64; then
10320 # AIX 5 now supports IA64 processor
10321 lt_prog_compiler_static_CXX='-Bstatic'
10322 fi
10323 ;;
10324 amigaos*)
10325 # FIXME: we need at least 68020 code to build shared libraries, but
10326 # adding the `-m68020' flag to GCC prevents building anything better,
10327 # like `-m68040'.
10328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10329 ;;
10330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10331 # PIC is the default for these OSes.
10332 ;;
10333 mingw* | os2* | pw32*)
10334 # This hack is so that the source file can tell whether it is being
10335 # built for inclusion in a dll (and should export symbols for example).
10336 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10337 ;;
10338 darwin* | rhapsody*)
10339 # PIC is the default on this platform
10340 # Common symbols not allowed in MH_DYLIB files
10341 lt_prog_compiler_pic_CXX='-fno-common'
10342 ;;
10343 *djgpp*)
10344 # DJGPP does not support shared libraries at all
10345 lt_prog_compiler_pic_CXX=
10346 ;;
10347 sysv4*MP*)
10348 if test -d /usr/nec; then
10349 lt_prog_compiler_pic_CXX=-Kconform_pic
10350 fi
10351 ;;
10352 hpux*)
10353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10354 # not for PA HP-UX.
10355 case "$host_cpu" in
10356 hppa*64*|ia64*)
10357 ;;
10358 *)
10359 lt_prog_compiler_pic_CXX='-fPIC'
10360 ;;
10361 esac
10362 ;;
10363 *)
10364 lt_prog_compiler_pic_CXX='-fPIC'
10365 ;;
10366 esac
10367 else
10368 case $host_os in
10369 aix4* | aix5*)
10370 # All AIX code is PIC.
10371 if test "$host_cpu" = ia64; then
10372 # AIX 5 now supports IA64 processor
10373 lt_prog_compiler_static_CXX='-Bstatic'
10374 else
10375 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10376 fi
10377 ;;
10378 chorus*)
10379 case $cc_basename in
10380 cxch68)
10381 # Green Hills C++ Compiler
10382 # _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"
10383 ;;
10384 esac
10385 ;;
10386 dgux*)
10387 case $cc_basename in
10388 ec++)
10389 lt_prog_compiler_pic_CXX='-KPIC'
10390 ;;
10391 ghcx)
10392 # Green Hills C++ Compiler
10393 lt_prog_compiler_pic_CXX='-pic'
10394 ;;
10395 *)
10396 ;;
10397 esac
10398 ;;
10399 freebsd* | kfreebsd*-gnu)
10400 # FreeBSD uses GNU C++
10401 ;;
10402 hpux9* | hpux10* | hpux11*)
10403 case $cc_basename in
10404 CC)
10405 lt_prog_compiler_wl_CXX='-Wl,'
10406 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10407 if test "$host_cpu" != ia64; then
10408 lt_prog_compiler_pic_CXX='+Z'
10409 fi
10410 ;;
10411 aCC)
10412 lt_prog_compiler_wl_CXX='-Wl,'
10413 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10414 case "$host_cpu" in
10415 hppa*64*|ia64*)
10416 # +Z the default
10417 ;;
10418 *)
10419 lt_prog_compiler_pic_CXX='+Z'
10420 ;;
10421 esac
10422 ;;
10423 *)
10424 ;;
10425 esac
10426 ;;
10427 irix5* | irix6* | nonstopux*)
10428 case $cc_basename in
10429 CC)
10430 lt_prog_compiler_wl_CXX='-Wl,'
10431 lt_prog_compiler_static_CXX='-non_shared'
10432 # CC pic flag -KPIC is the default.
10433 ;;
10434 *)
10435 ;;
10436 esac
10437 ;;
10438 linux*)
10439 case $cc_basename in
10440 KCC)
10441 # KAI C++ Compiler
10442 lt_prog_compiler_wl_CXX='--backend -Wl,'
10443 lt_prog_compiler_pic_CXX='-fPIC'
10444 ;;
10445 icpc)
10446 # Intel C++
10447 lt_prog_compiler_wl_CXX='-Wl,'
10448 lt_prog_compiler_pic_CXX='-KPIC'
10449 lt_prog_compiler_static_CXX='-static'
10450 ;;
10451 cxx)
10452 # Compaq C++
10453 # Make sure the PIC flag is empty. It appears that all Alpha
10454 # Linux and Compaq Tru64 Unix objects are PIC.
10455 lt_prog_compiler_pic_CXX=
10456 lt_prog_compiler_static_CXX='-non_shared'
10457 ;;
10458 *)
10459 ;;
10460 esac
10461 ;;
10462 lynxos*)
10463 ;;
10464 m88k*)
10465 ;;
10466 mvs*)
10467 case $cc_basename in
10468 cxx)
10469 lt_prog_compiler_pic_CXX='-W c,exportall'
10470 ;;
10471 *)
10472 ;;
10473 esac
10474 ;;
10475 netbsd*)
10476 ;;
10477 osf3* | osf4* | osf5*)
10478 case $cc_basename in
10479 KCC)
10480 lt_prog_compiler_wl_CXX='--backend -Wl,'
10481 ;;
10482 RCC)
10483 # Rational C++ 2.4.1
10484 lt_prog_compiler_pic_CXX='-pic'
10485 ;;
10486 cxx)
10487 # Digital/Compaq C++
10488 lt_prog_compiler_wl_CXX='-Wl,'
10489 # Make sure the PIC flag is empty. It appears that all Alpha
10490 # Linux and Compaq Tru64 Unix objects are PIC.
10491 lt_prog_compiler_pic_CXX=
10492 lt_prog_compiler_static_CXX='-non_shared'
10493 ;;
10494 *)
10495 ;;
10496 esac
10497 ;;
10498 psos*)
10499 ;;
10500 sco*)
10501 case $cc_basename in
10502 CC)
10503 lt_prog_compiler_pic_CXX='-fPIC'
10504 ;;
10505 *)
10506 ;;
10507 esac
10508 ;;
10509 solaris*)
10510 case $cc_basename in
10511 CC)
10512 # Sun C++ 4.2, 5.x and Centerline C++
10513 lt_prog_compiler_pic_CXX='-KPIC'
10514 lt_prog_compiler_static_CXX='-Bstatic'
10515 lt_prog_compiler_wl_CXX='-Qoption ld '
10516 ;;
10517 gcx)
10518 # Green Hills C++ Compiler
10519 lt_prog_compiler_pic_CXX='-PIC'
10520 ;;
10521 *)
10522 ;;
10523 esac
10524 ;;
10525 sunos4*)
10526 case $cc_basename in
10527 CC)
10528 # Sun C++ 4.x
10529 lt_prog_compiler_pic_CXX='-pic'
10530 lt_prog_compiler_static_CXX='-Bstatic'
10531 ;;
10532 lcc)
10533 # Lucid
10534 lt_prog_compiler_pic_CXX='-pic'
10535 ;;
10536 *)
10537 ;;
10538 esac
10539 ;;
10540 tandem*)
10541 case $cc_basename in
10542 NCC)
10543 # NonStop-UX NCC 3.20
10544 lt_prog_compiler_pic_CXX='-KPIC'
10545 ;;
10546 *)
10547 ;;
10548 esac
10549 ;;
10550 unixware*)
10551 ;;
10552 vxworks*)
10553 ;;
10554 *)
10555 lt_prog_compiler_can_build_shared_CXX=no
10556 ;;
10557 esac
10558 fi
10559
10560echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10561echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10562
10563#
10564# Check to make sure the PIC flag actually works.
10565#
10566if test -n "$lt_prog_compiler_pic_CXX"; then
10567
10568echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10569echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10570if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572else
10573 lt_prog_compiler_pic_works_CXX=no
10574 ac_outfile=conftest.$ac_objext
10575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10576 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10577 # Insert the option either (1) after the last *FLAGS variable, or
10578 # (2) before a word containing "conftest.", or (3) at the end.
10579 # Note that $ac_compile itself does not contain backslashes and begins
10580 # with a dollar sign (not a hyphen), so the echo should work correctly.
10581 # The option is referenced via a variable to avoid confusing sed.
10582 lt_compile=`echo "$ac_compile" | $SED \
10583 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10585 -e 's:$: $lt_compiler_flag:'`
10586 (eval echo "\"\$as_me:10586: $lt_compile\"" >&5)
10587 (eval "$lt_compile" 2>conftest.err)
10588 ac_status=$?
10589 cat conftest.err >&5
10590 echo "$as_me:10590: \$? = $ac_status" >&5
10591 if (exit $ac_status) && test -s "$ac_outfile"; then
10592 # The compiler can only warn and ignore the option if not recognized
10593 # So say no if there are warnings
10594 if test ! -s conftest.err; then
10595 lt_prog_compiler_pic_works_CXX=yes
10596 fi
10597 fi
10598 $rm conftest*
10599
10600fi
10601echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10602echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10603
10604if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10605 case $lt_prog_compiler_pic_CXX in
10606 "" | " "*) ;;
10607 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10608 esac
10609else
10610 lt_prog_compiler_pic_CXX=
10611 lt_prog_compiler_can_build_shared_CXX=no
10612fi
10613
10614fi
10615case "$host_os" in
10616 # For platforms which do not support PIC, -DPIC is meaningless:
10617 *djgpp*)
10618 lt_prog_compiler_pic_CXX=
10619 ;;
10620 *)
10621 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10622 ;;
10623esac
10624
10625echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10626echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10627if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 lt_cv_prog_compiler_c_o_CXX=no
10631 $rm -r conftest 2>/dev/null
10632 mkdir conftest
10633 cd conftest
10634 mkdir out
10635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10636
10637 lt_compiler_flag="-o out/conftest2.$ac_objext"
10638 # Insert the option either (1) after the last *FLAGS variable, or
10639 # (2) before a word containing "conftest.", or (3) at the end.
10640 # Note that $ac_compile itself does not contain backslashes and begins
10641 # with a dollar sign (not a hyphen), so the echo should work correctly.
10642 lt_compile=`echo "$ac_compile" | $SED \
10643 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10645 -e 's:$: $lt_compiler_flag:'`
10646 (eval echo "\"\$as_me:10646: $lt_compile\"" >&5)
10647 (eval "$lt_compile" 2>out/conftest.err)
10648 ac_status=$?
10649 cat out/conftest.err >&5
10650 echo "$as_me:10650: \$? = $ac_status" >&5
10651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10652 then
10653 # The compiler can only warn and ignore the option if not recognized
10654 # So say no if there are warnings
10655 if test ! -s out/conftest.err; then
10656 lt_cv_prog_compiler_c_o_CXX=yes
10657 fi
10658 fi
10659 chmod u+w .
10660 $rm conftest*
10661 # SGI C++ compiler will create directory out/ii_files/ for
10662 # template instantiation
10663 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10664 $rm out/* && rmdir out
10665 cd ..
10666 rmdir conftest
10667 $rm conftest*
10668
10669fi
10670echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10671echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10672
10673
10674hard_links="nottested"
10675if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10676 # do not overwrite the value of need_locks provided by the user
10677 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10678echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10679 hard_links=yes
10680 $rm conftest*
10681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10682 touch conftest.a
10683 ln conftest.a conftest.b 2>&5 || hard_links=no
10684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10685 echo "$as_me:$LINENO: result: $hard_links" >&5
10686echo "${ECHO_T}$hard_links" >&6
10687 if test "$hard_links" = no; then
10688 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10689echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10690 need_locks=warn
10691 fi
10692else
10693 need_locks=no
10694fi
10695
10696echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10697echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10698
10699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10700 case $host_os in
10701 aix4* | aix5*)
10702 # If we're using GNU nm, then we don't want the "-C" option.
10703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10704 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10705 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'
10706 else
10707 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'
10708 fi
10709 ;;
10710 pw32*)
10711 export_symbols_cmds_CXX="$ltdll_cmds"
10712 ;;
10713 cygwin* | mingw*)
10714 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10715 ;;
10716 *)
10717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10718 ;;
10719 esac
10720
10721echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10722echo "${ECHO_T}$ld_shlibs_CXX" >&6
10723test "$ld_shlibs_CXX" = no && can_build_shared=no
10724
10725variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10726if test "$GCC" = yes; then
10727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10728fi
10729
10730#
10731# Do we need to explicitly link libc?
10732#
10733case "x$archive_cmds_need_lc_CXX" in
10734x|xyes)
10735 # Assume -lc should be added
10736 archive_cmds_need_lc_CXX=yes
10737
10738 if test "$enable_shared" = yes && test "$GCC" = yes; then
10739 case $archive_cmds_CXX in
10740 *'~'*)
10741 # FIXME: we may have to deal with multi-command sequences.
10742 ;;
10743 '$CC '*)
10744 # Test whether the compiler implicitly links with -lc since on some
10745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10746 # to ld, don't add -lc before -lgcc.
10747 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10748echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10749 $rm conftest*
10750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10751
10752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10753 (eval $ac_compile) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } 2>conftest.err; then
10757 soname=conftest
10758 lib=conftest
10759 libobjs=conftest.$ac_objext
10760 deplibs=
10761 wl=$lt_prog_compiler_wl_CXX
10762 compiler_flags=-v
10763 linker_flags=-v
10764 verstring=
10765 output_objdir=.
10766 libname=conftest
10767 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10768 allow_undefined_flag_CXX=
10769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10770 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }
10774 then
10775 archive_cmds_need_lc_CXX=no
10776 else
10777 archive_cmds_need_lc_CXX=yes
10778 fi
10779 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10780 else
10781 cat conftest.err 1>&5
10782 fi
10783 $rm conftest*
10784 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10785echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10786 ;;
10787 esac
10788 fi
10789 ;;
10790esac
10791
10792echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10793echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10794library_names_spec=
10795libname_spec='lib$name'
10796soname_spec=
10797shrext_cmds=".so"
10798postinstall_cmds=
10799postuninstall_cmds=
10800finish_cmds=
10801finish_eval=
10802shlibpath_var=
10803shlibpath_overrides_runpath=unknown
10804version_type=none
10805dynamic_linker="$host_os ld.so"
10806sys_lib_dlsearch_path_spec="/lib /usr/lib"
10807if test "$GCC" = yes; then
10808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10810 # if the path contains ";" then we assume it to be the separator
10811 # otherwise default to the standard path separator (i.e. ":") - it is
10812 # assumed that no part of a normal pathname contains ";" but that should
10813 # okay in the real world where ";" in dirpaths is itself problematic.
10814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10815 else
10816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10817 fi
10818else
10819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10820fi
10821need_lib_prefix=unknown
10822hardcode_into_libs=no
10823
10824# when you set need_version to no, make sure it does not cause -set_version
10825# flags to be left without arguments
10826need_version=unknown
10827
10828case $host_os in
10829aix3*)
10830 version_type=linux
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10832 shlibpath_var=LIBPATH
10833
10834 # AIX 3 has no versioning support, so we append a major version to the name.
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 ;;
10837
10838aix4* | aix5*)
10839 version_type=linux
10840 need_lib_prefix=no
10841 need_version=no
10842 hardcode_into_libs=yes
10843 if test "$host_cpu" = ia64; then
10844 # AIX 5 supports IA64
10845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 else
10848 # With GCC up to 2.95.x, collect2 would create an import file
10849 # for dependence libraries. The import file would start with
10850 # the line `#! .'. This would cause the generated library to
10851 # depend on `.', always an invalid library. This was fixed in
10852 # development snapshots of GCC prior to 3.0.
10853 case $host_os in
10854 aix4 | aix4.[01] | aix4.[01].*)
10855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10856 echo ' yes '
10857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10858 :
10859 else
10860 can_build_shared=no
10861 fi
10862 ;;
10863 esac
10864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10865 # soname into executable. Probably we can add versioning support to
10866 # collect2, so additional links can be useful in future.
10867 if test "$aix_use_runtimelinking" = yes; then
10868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10869 # instead of lib<name>.a to let people know that these are not
10870 # typical AIX shared libraries.
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 else
10873 # We preserve .a as extension for shared libraries through AIX4.2
10874 # and later when we are not doing run time linking.
10875 library_names_spec='${libname}${release}.a $libname.a'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 fi
10878 shlibpath_var=LIBPATH
10879 fi
10880 ;;
10881
10882amigaos*)
10883 library_names_spec='$libname.ixlibrary $libname.a'
10884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10885 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'
10886 ;;
10887
10888beos*)
10889 library_names_spec='${libname}${shared_ext}'
10890 dynamic_linker="$host_os ld.so"
10891 shlibpath_var=LIBRARY_PATH
10892 ;;
10893
10894bsdi4*)
10895 version_type=linux
10896 need_version=no
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10903 # the default ld.so.conf also contains /usr/contrib/lib and
10904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10905 # libtool to hard-code these into programs
10906 ;;
10907
10908cygwin* | mingw* | pw32*)
10909 version_type=windows
10910 shrext_cmds=".dll"
10911 need_version=no
10912 need_lib_prefix=no
10913
10914 case $GCC,$host_os in
10915 yes,cygwin* | yes,mingw* | yes,pw32*)
10916 library_names_spec='$libname.dll.a'
10917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10918 postinstall_cmds='base_file=`basename \${file}`~
10919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10920 dldir=$destdir/`dirname \$dlpath`~
10921 test -d \$dldir || mkdir -p \$dldir~
10922 $install_prog $dir/$dlname \$dldir/$dlname'
10923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10924 dlpath=$dir/\$dldll~
10925 $rm \$dlpath'
10926 shlibpath_overrides_runpath=yes
10927
10928 case $host_os in
10929 cygwin*)
10930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10933 ;;
10934 mingw*)
10935 # MinGW DLLs use traditional 'lib' prefix
10936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10939 # It is most probably a Windows format PATH printed by
10940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10941 # path with ; separators, and with drive letters. We can handle the
10942 # drive letters (cygwin fileutils understands them), so leave them,
10943 # especially as we might pass files found there to a mingw objdump,
10944 # which wouldn't understand a cygwinified path. Ahh.
10945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10946 else
10947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10948 fi
10949 ;;
10950 pw32*)
10951 # pw32 DLLs use 'pw' prefix rather than 'lib'
10952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10953 ;;
10954 esac
10955 ;;
10956
10957 *)
10958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10959 ;;
10960 esac
10961 dynamic_linker='Win32 ld.exe'
10962 # FIXME: first we should search . and the directory the executable is in
10963 shlibpath_var=PATH
10964 ;;
10965
10966darwin* | rhapsody*)
10967 dynamic_linker="$host_os dyld"
10968 version_type=darwin
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10972 soname_spec='${libname}${release}${major}$shared_ext'
10973 shlibpath_overrides_runpath=yes
10974 shlibpath_var=DYLD_LIBRARY_PATH
10975 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10977 if test "$GCC" = yes; then
10978 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"`
10979 else
10980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10981 fi
10982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10983 ;;
10984
10985dgux*)
10986 version_type=linux
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 ;;
10993
10994freebsd1*)
10995 dynamic_linker=no
10996 ;;
10997
10998kfreebsd*-gnu)
10999 version_type=linux
11000 need_lib_prefix=no
11001 need_version=no
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=no
11006 hardcode_into_libs=yes
11007 dynamic_linker='GNU ld.so'
11008 ;;
11009
11010freebsd*)
11011 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11012 version_type=freebsd-$objformat
11013 case $version_type in
11014 freebsd-elf*)
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11016 need_version=no
11017 need_lib_prefix=no
11018 ;;
11019 freebsd-*)
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11021 need_version=yes
11022 ;;
11023 esac
11024 shlibpath_var=LD_LIBRARY_PATH
11025 case $host_os in
11026 freebsd2*)
11027 shlibpath_overrides_runpath=yes
11028 ;;
11029 freebsd3.01* | freebsdelf3.01*)
11030 shlibpath_overrides_runpath=yes
11031 hardcode_into_libs=yes
11032 ;;
11033 *) # from 3.2 on
11034 shlibpath_overrides_runpath=no
11035 hardcode_into_libs=yes
11036 ;;
11037 esac
11038 ;;
11039
11040gnu*)
11041 version_type=linux
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 hardcode_into_libs=yes
11048 ;;
11049
11050hpux9* | hpux10* | hpux11*)
11051 # Give a soname corresponding to the major version so that dld.sl refuses to
11052 # link against other versions.
11053 version_type=sunos
11054 need_lib_prefix=no
11055 need_version=no
11056 case "$host_cpu" in
11057 ia64*)
11058 shrext_cmds='.so'
11059 hardcode_into_libs=yes
11060 dynamic_linker="$host_os dld.so"
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 if test "X$HPUX_IA64_MODE" = X32; then
11066 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11067 else
11068 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11069 fi
11070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11071 ;;
11072 hppa*64*)
11073 shrext_cmds='.sl'
11074 hardcode_into_libs=yes
11075 dynamic_linker="$host_os dld.sl"
11076 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11082 ;;
11083 *)
11084 shrext_cmds='.sl'
11085 dynamic_linker="$host_os dld.sl"
11086 shlibpath_var=SHLIB_PATH
11087 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 ;;
11091 esac
11092 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11093 postinstall_cmds='chmod 555 $lib'
11094 ;;
11095
11096irix5* | irix6* | nonstopux*)
11097 case $host_os in
11098 nonstopux*) version_type=nonstopux ;;
11099 *)
11100 if test "$lt_cv_prog_gnu_ld" = yes; then
11101 version_type=linux
11102 else
11103 version_type=irix
11104 fi ;;
11105 esac
11106 need_lib_prefix=no
11107 need_version=no
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11110 case $host_os in
11111 irix5* | nonstopux*)
11112 libsuff= shlibsuff=
11113 ;;
11114 *)
11115 case $LD in # libtool.m4 will add one of these switches to LD
11116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11117 libsuff= shlibsuff= libmagic=32-bit;;
11118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11119 libsuff=32 shlibsuff=N32 libmagic=N32;;
11120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11122 *) libsuff= shlibsuff= libmagic=never-match;;
11123 esac
11124 ;;
11125 esac
11126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11127 shlibpath_overrides_runpath=no
11128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11130 hardcode_into_libs=yes
11131 ;;
11132
11133# No shared lib support for Linux oldld, aout, or coff.
11134linux*oldld* | linux*aout* | linux*coff*)
11135 dynamic_linker=no
11136 ;;
11137
11138# This must be Linux ELF.
11139linux*)
11140 version_type=linux
11141 need_lib_prefix=no
11142 need_version=no
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=no
11148 # This implies no fast_install, which is unacceptable.
11149 # Some rework will be needed to allow for fast_install
11150 # before this can be enabled.
11151 hardcode_into_libs=yes
11152
11153 # find out which ABI we are using
11154 libsuff=
11155 case "$host_cpu" in
11156 x86_64*|s390x*|powerpc64*)
11157 echo '#line 11157 "configure"' > conftest.$ac_ext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; then
11163 case `/usr/bin/file conftest.$ac_objext` in
11164 *64-bit*)
11165 libsuff=64
11166 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11167 ;;
11168 esac
11169 fi
11170 rm -rf conftest*
11171 ;;
11172 esac
11173
11174 # Append ld.so.conf contents to the search path
11175 if test -f /etc/ld.so.conf; then
11176 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11177 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11178 fi
11179
11180 # We used to test for /lib/ld.so.1 and disable shared libraries on
11181 # powerpc, because MkLinux only supported shared libraries with the
11182 # GNU dynamic linker. Since this was broken with cross compilers,
11183 # most powerpc-linux boxes support dynamic linking these days and
11184 # people can always --disable-shared, the test was removed, and we
11185 # assume the GNU/Linux dynamic linker is in use.
11186 dynamic_linker='GNU/Linux ld.so'
11187 ;;
11188
11189knetbsd*-gnu)
11190 version_type=linux
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=no
11197 hardcode_into_libs=yes
11198 dynamic_linker='GNU ld.so'
11199 ;;
11200
11201netbsd*)
11202 version_type=sunos
11203 need_lib_prefix=no
11204 need_version=no
11205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11208 dynamic_linker='NetBSD (a.out) ld.so'
11209 else
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 dynamic_linker='NetBSD ld.elf_so'
11213 fi
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=yes
11216 hardcode_into_libs=yes
11217 ;;
11218
11219newsos6)
11220 version_type=linux
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=yes
11224 ;;
11225
11226nto-qnx*)
11227 version_type=linux
11228 need_lib_prefix=no
11229 need_version=no
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234 ;;
11235
11236openbsd*)
11237 version_type=sunos
11238 need_lib_prefix=no
11239 need_version=yes
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11244 case $host_os in
11245 openbsd2.[89] | openbsd2.[89].*)
11246 shlibpath_overrides_runpath=no
11247 ;;
11248 *)
11249 shlibpath_overrides_runpath=yes
11250 ;;
11251 esac
11252 else
11253 shlibpath_overrides_runpath=yes
11254 fi
11255 ;;
11256
11257os2*)
11258 libname_spec='$name'
11259 shrext_cmds=".dll"
11260 need_lib_prefix=no
11261 library_names_spec='$libname${shared_ext} $libname.a'
11262 dynamic_linker='OS/2 ld.exe'
11263 shlibpath_var=LIBPATH
11264 ;;
11265
11266osf3* | osf4* | osf5*)
11267 version_type=osf
11268 need_lib_prefix=no
11269 need_version=no
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11275 ;;
11276
11277sco3.2v5*)
11278 version_type=osf
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 ;;
11283
11284solaris*)
11285 version_type=linux
11286 need_lib_prefix=no
11287 need_version=no
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 shlibpath_overrides_runpath=yes
11292 hardcode_into_libs=yes
11293 # ldd complains unless libraries are executable
11294 postinstall_cmds='chmod +x $lib'
11295 ;;
11296
11297sunos4*)
11298 version_type=sunos
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 shlibpath_overrides_runpath=yes
11303 if test "$with_gnu_ld" = yes; then
11304 need_lib_prefix=no
11305 fi
11306 need_version=yes
11307 ;;
11308
11309sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11310 version_type=linux
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 case $host_vendor in
11315 sni)
11316 shlibpath_overrides_runpath=no
11317 need_lib_prefix=no
11318 export_dynamic_flag_spec='${wl}-Blargedynsym'
11319 runpath_var=LD_RUN_PATH
11320 ;;
11321 siemens)
11322 need_lib_prefix=no
11323 ;;
11324 motorola)
11325 need_lib_prefix=no
11326 need_version=no
11327 shlibpath_overrides_runpath=no
11328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11329 ;;
11330 esac
11331 ;;
11332
11333sysv4*MP*)
11334 if test -d /usr/nec ;then
11335 version_type=linux
11336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11337 soname_spec='$libname${shared_ext}.$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 fi
11340 ;;
11341
11342uts4*)
11343 version_type=linux
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 ;;
11348
11349*)
11350 dynamic_linker=no
11351 ;;
11352esac
11353echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11354echo "${ECHO_T}$dynamic_linker" >&6
11355test "$dynamic_linker" = no && can_build_shared=no
11356
11357echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11358echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11359hardcode_action_CXX=
11360if test -n "$hardcode_libdir_flag_spec_CXX" || \
11361 test -n "$runpath_var CXX" || \
11362 test "X$hardcode_automatic_CXX"="Xyes" ; then
11363
11364 # We can hardcode non-existant directories.
11365 if test "$hardcode_direct_CXX" != no &&
11366 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11367 # have to relink, otherwise we might link with an installed library
11368 # when we should be linking with a yet-to-be-installed one
11369 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11370 test "$hardcode_minus_L_CXX" != no; then
11371 # Linking always hardcodes the temporary library directory.
11372 hardcode_action_CXX=relink
11373 else
11374 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11375 hardcode_action_CXX=immediate
11376 fi
11377else
11378 # We cannot hardcode anything, or else we can only hardcode existing
11379 # directories.
11380 hardcode_action_CXX=unsupported
11381fi
11382echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11383echo "${ECHO_T}$hardcode_action_CXX" >&6
11384
11385if test "$hardcode_action_CXX" = relink; then
11386 # Fast installation is not supported
11387 enable_fast_install=no
11388elif test "$shlibpath_overrides_runpath" = yes ||
11389 test "$enable_shared" = no; then
11390 # Fast installation is not necessary
11391 enable_fast_install=needless
11392fi
11393
11394striplib=
11395old_striplib=
11396echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11397echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11398if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11401 echo "$as_me:$LINENO: result: yes" >&5
11402echo "${ECHO_T}yes" >&6
11403else
11404# FIXME - insert some real tests, host_os isn't really good enough
11405 case $host_os in
11406 darwin*)
11407 if test -n "$STRIP" ; then
11408 striplib="$STRIP -x"
11409 echo "$as_me:$LINENO: result: yes" >&5
11410echo "${ECHO_T}yes" >&6
11411 else
11412 echo "$as_me:$LINENO: result: no" >&5
11413echo "${ECHO_T}no" >&6
11414fi
11415 ;;
11416 *)
11417 echo "$as_me:$LINENO: result: no" >&5
11418echo "${ECHO_T}no" >&6
11419 ;;
11420 esac
11421fi
11422
11423if test "x$enable_dlopen" != xyes; then
11424 enable_dlopen=unknown
11425 enable_dlopen_self=unknown
11426 enable_dlopen_self_static=unknown
11427else
11428 lt_cv_dlopen=no
11429 lt_cv_dlopen_libs=
11430
11431 case $host_os in
11432 beos*)
11433 lt_cv_dlopen="load_add_on"
11434 lt_cv_dlopen_libs=
11435 lt_cv_dlopen_self=yes
11436 ;;
11437
11438 mingw* | pw32*)
11439 lt_cv_dlopen="LoadLibrary"
11440 lt_cv_dlopen_libs=
11441 ;;
11442
11443 cygwin*)
11444 lt_cv_dlopen="dlopen"
11445 lt_cv_dlopen_libs=
11446 ;;
11447
11448 darwin*)
11449 # if libdl is installed we need to link against it
11450 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11451echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11452if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455 ac_check_lib_save_LIBS=$LIBS
11456LIBS="-ldl $LIBS"
11457cat >conftest.$ac_ext <<_ACEOF
11458/* confdefs.h. */
11459_ACEOF
11460cat confdefs.h >>conftest.$ac_ext
11461cat >>conftest.$ac_ext <<_ACEOF
11462/* end confdefs.h. */
11463
11464/* Override any gcc2 internal prototype to avoid an error. */
11465#ifdef __cplusplus
11466extern "C"
11467#endif
11468/* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11470char dlopen ();
11471int
11472main ()
11473{
11474dlopen ();
11475 ;
11476 return 0;
11477}
11478_ACEOF
11479rm -f conftest.$ac_objext conftest$ac_exeext
11480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481 (eval $ac_link) 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -z "$ac_cxx_werror_flag"
11489 || test ! -s conftest.err'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try='test -s conftest$ac_exeext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_lib_dl_dlopen=yes
11502else
11503 echo "$as_me: failed program was:" >&5
11504sed 's/^/| /' conftest.$ac_ext >&5
11505
11506ac_cv_lib_dl_dlopen=no
11507fi
11508rm -f conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510LIBS=$ac_check_lib_save_LIBS
11511fi
11512echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11513echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11514if test $ac_cv_lib_dl_dlopen = yes; then
11515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11516else
11517
11518 lt_cv_dlopen="dyld"
11519 lt_cv_dlopen_libs=
11520 lt_cv_dlopen_self=yes
11521
11522fi
11523
11524 ;;
11525
11526 *)
11527 echo "$as_me:$LINENO: checking for shl_load" >&5
11528echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11529if test "${ac_cv_func_shl_load+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531else
11532 cat >conftest.$ac_ext <<_ACEOF
11533/* confdefs.h. */
11534_ACEOF
11535cat confdefs.h >>conftest.$ac_ext
11536cat >>conftest.$ac_ext <<_ACEOF
11537/* end confdefs.h. */
11538/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11540#define shl_load innocuous_shl_load
11541
11542/* System header to define __stub macros and hopefully few prototypes,
11543 which can conflict with char shl_load (); below.
11544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11545 <limits.h> exists even on freestanding compilers. */
11546
11547#ifdef __STDC__
11548# include <limits.h>
11549#else
11550# include <assert.h>
11551#endif
11552
11553#undef shl_load
11554
11555/* Override any gcc2 internal prototype to avoid an error. */
11556#ifdef __cplusplus
11557extern "C"
11558{
11559#endif
11560/* We use char because int might match the return type of a gcc2
11561 builtin and then its argument prototype would still apply. */
11562char shl_load ();
11563/* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566#if defined (__stub_shl_load) || defined (__stub___shl_load)
11567choke me
11568#else
11569char (*f) () = shl_load;
11570#endif
11571#ifdef __cplusplus
11572}
11573#endif
11574
11575int
11576main ()
11577{
11578return f != shl_load;
11579 ;
11580 return 0;
11581}
11582_ACEOF
11583rm -f conftest.$ac_objext conftest$ac_exeext
11584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_cxx_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_func_shl_load=yes
11606else
11607 echo "$as_me: failed program was:" >&5
11608sed 's/^/| /' conftest.$ac_ext >&5
11609
11610ac_cv_func_shl_load=no
11611fi
11612rm -f conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11614fi
11615echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11616echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11617if test $ac_cv_func_shl_load = yes; then
11618 lt_cv_dlopen="shl_load"
11619else
11620 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11621echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11622if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624else
11625 ac_check_lib_save_LIBS=$LIBS
11626LIBS="-ldld $LIBS"
11627cat >conftest.$ac_ext <<_ACEOF
11628/* confdefs.h. */
11629_ACEOF
11630cat confdefs.h >>conftest.$ac_ext
11631cat >>conftest.$ac_ext <<_ACEOF
11632/* end confdefs.h. */
11633
11634/* Override any gcc2 internal prototype to avoid an error. */
11635#ifdef __cplusplus
11636extern "C"
11637#endif
11638/* We use char because int might match the return type of a gcc2
11639 builtin and then its argument prototype would still apply. */
11640char shl_load ();
11641int
11642main ()
11643{
11644shl_load ();
11645 ;
11646 return 0;
11647}
11648_ACEOF
11649rm -f conftest.$ac_objext conftest$ac_exeext
11650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11651 (eval $ac_link) 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -z "$ac_cxx_werror_flag"
11659 || test ! -s conftest.err'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try='test -s conftest$ac_exeext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 ac_cv_lib_dld_shl_load=yes
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676ac_cv_lib_dld_shl_load=no
11677fi
11678rm -f conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680LIBS=$ac_check_lib_save_LIBS
11681fi
11682echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11683echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11684if test $ac_cv_lib_dld_shl_load = yes; then
11685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11686else
11687 echo "$as_me:$LINENO: checking for dlopen" >&5
11688echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11689if test "${ac_cv_func_dlopen+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700#define dlopen innocuous_dlopen
11701
11702/* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char dlopen (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11706
11707#ifdef __STDC__
11708# include <limits.h>
11709#else
11710# include <assert.h>
11711#endif
11712
11713#undef dlopen
11714
11715/* Override any gcc2 internal prototype to avoid an error. */
11716#ifdef __cplusplus
11717extern "C"
11718{
11719#endif
11720/* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722char dlopen ();
11723/* The GNU C library defines this for functions which it implements
11724 to always fail with ENOSYS. Some functions are actually named
11725 something starting with __ and the normal name is an alias. */
11726#if defined (__stub_dlopen) || defined (__stub___dlopen)
11727choke me
11728#else
11729char (*f) () = dlopen;
11730#endif
11731#ifdef __cplusplus
11732}
11733#endif
11734
11735int
11736main ()
11737{
11738return f != dlopen;
11739 ;
11740 return 0;
11741}
11742_ACEOF
11743rm -f conftest.$ac_objext conftest$ac_exeext
11744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11745 (eval $ac_link) 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_cxx_werror_flag"
11753 || test ! -s conftest.err'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_cv_func_dlopen=yes
11766else
11767 echo "$as_me: failed program was:" >&5
11768sed 's/^/| /' conftest.$ac_ext >&5
11769
11770ac_cv_func_dlopen=no
11771fi
11772rm -f conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774fi
11775echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11776echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11777if test $ac_cv_func_dlopen = yes; then
11778 lt_cv_dlopen="dlopen"
11779else
11780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11782if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784else
11785 ac_check_lib_save_LIBS=$LIBS
11786LIBS="-ldl $LIBS"
11787cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */
11793
11794/* Override any gcc2 internal prototype to avoid an error. */
11795#ifdef __cplusplus
11796extern "C"
11797#endif
11798/* We use char because int might match the return type of a gcc2
11799 builtin and then its argument prototype would still apply. */
11800char dlopen ();
11801int
11802main ()
11803{
11804dlopen ();
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809rm -f conftest.$ac_objext conftest$ac_exeext
11810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_cxx_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_cv_lib_dl_dlopen=yes
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836ac_cv_lib_dl_dlopen=no
11837fi
11838rm -f conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840LIBS=$ac_check_lib_save_LIBS
11841fi
11842echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11843echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11844if test $ac_cv_lib_dl_dlopen = yes; then
11845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11846else
11847 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11848echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11849if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851else
11852 ac_check_lib_save_LIBS=$LIBS
11853LIBS="-lsvld $LIBS"
11854cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860
11861/* Override any gcc2 internal prototype to avoid an error. */
11862#ifdef __cplusplus
11863extern "C"
11864#endif
11865/* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11867char dlopen ();
11868int
11869main ()
11870{
11871dlopen ();
11872 ;
11873 return 0;
11874}
11875_ACEOF
11876rm -f conftest.$ac_objext conftest$ac_exeext
11877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_cxx_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_lib_svld_dlopen=yes
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903ac_cv_lib_svld_dlopen=no
11904fi
11905rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907LIBS=$ac_check_lib_save_LIBS
11908fi
11909echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11910echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11911if test $ac_cv_lib_svld_dlopen = yes; then
11912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11913else
11914 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11915echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11916if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 ac_check_lib_save_LIBS=$LIBS
11920LIBS="-ldld $LIBS"
11921cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927
11928/* Override any gcc2 internal prototype to avoid an error. */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932/* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11934char dld_link ();
11935int
11936main ()
11937{
11938dld_link ();
11939 ;
11940 return 0;
11941}
11942_ACEOF
11943rm -f conftest.$ac_objext conftest$ac_exeext
11944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_cxx_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_cv_lib_dld_dld_link=yes
11966else
11967 echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
11970ac_cv_lib_dld_dld_link=no
11971fi
11972rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974LIBS=$ac_check_lib_save_LIBS
11975fi
11976echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11977echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11978if test $ac_cv_lib_dld_dld_link = yes; then
11979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11980fi
11981
11982
11983fi
11984
11985
11986fi
11987
11988
11989fi
11990
11991
11992fi
11993
11994
11995fi
11996
11997 ;;
11998 esac
11999
12000 if test "x$lt_cv_dlopen" != xno; then
12001 enable_dlopen=yes
12002 else
12003 enable_dlopen=no
12004 fi
12005
12006 case $lt_cv_dlopen in
12007 dlopen)
12008 save_CPPFLAGS="$CPPFLAGS"
12009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12010
12011 save_LDFLAGS="$LDFLAGS"
12012 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12013
12014 save_LIBS="$LIBS"
12015 LIBS="$lt_cv_dlopen_libs $LIBS"
12016
12017 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12018echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12019if test "${lt_cv_dlopen_self+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022 if test "$cross_compiling" = yes; then :
12023 lt_cv_dlopen_self=cross
12024else
12025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12026 lt_status=$lt_dlunknown
12027 cat > conftest.$ac_ext <<EOF
12028#line 12028 "configure"
12029#include "confdefs.h"
12030
12031#if HAVE_DLFCN_H
12032#include <dlfcn.h>
12033#endif
12034
12035#include <stdio.h>
12036
12037#ifdef RTLD_GLOBAL
12038# define LT_DLGLOBAL RTLD_GLOBAL
12039#else
12040# ifdef DL_GLOBAL
12041# define LT_DLGLOBAL DL_GLOBAL
12042# else
12043# define LT_DLGLOBAL 0
12044# endif
12045#endif
12046
12047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12048 find out it does not work in some platform. */
12049#ifndef LT_DLLAZY_OR_NOW
12050# ifdef RTLD_LAZY
12051# define LT_DLLAZY_OR_NOW RTLD_LAZY
12052# else
12053# ifdef DL_LAZY
12054# define LT_DLLAZY_OR_NOW DL_LAZY
12055# else
12056# ifdef RTLD_NOW
12057# define LT_DLLAZY_OR_NOW RTLD_NOW
12058# else
12059# ifdef DL_NOW
12060# define LT_DLLAZY_OR_NOW DL_NOW
12061# else
12062# define LT_DLLAZY_OR_NOW 0
12063# endif
12064# endif
12065# endif
12066# endif
12067#endif
12068
12069#ifdef __cplusplus
12070extern "C" void exit (int);
12071#endif
12072
12073void fnord() { int i=42;}
12074int main ()
12075{
12076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12077 int status = $lt_dlunknown;
12078
12079 if (self)
12080 {
12081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12083 /* dlclose (self); */
12084 }
12085
12086 exit (status);
12087}
12088EOF
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12094 (./conftest; exit; ) 2>/dev/null
12095 lt_status=$?
12096 case x$lt_status in
12097 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12098 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12099 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12100 esac
12101 else :
12102 # compilation failed
12103 lt_cv_dlopen_self=no
12104 fi
12105fi
12106rm -fr conftest*
12107
12108
12109fi
12110echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12111echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12112
12113 if test "x$lt_cv_dlopen_self" = xyes; then
12114 LDFLAGS="$LDFLAGS $link_static_flag"
12115 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12116echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12117if test "${lt_cv_dlopen_self_static+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 if test "$cross_compiling" = yes; then :
12121 lt_cv_dlopen_self_static=cross
12122else
12123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12124 lt_status=$lt_dlunknown
12125 cat > conftest.$ac_ext <<EOF
12126#line 12126 "configure"
12127#include "confdefs.h"
12128
12129#if HAVE_DLFCN_H
12130#include <dlfcn.h>
12131#endif
12132
12133#include <stdio.h>
12134
12135#ifdef RTLD_GLOBAL
12136# define LT_DLGLOBAL RTLD_GLOBAL
12137#else
12138# ifdef DL_GLOBAL
12139# define LT_DLGLOBAL DL_GLOBAL
12140# else
12141# define LT_DLGLOBAL 0
12142# endif
12143#endif
12144
12145/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12146 find out it does not work in some platform. */
12147#ifndef LT_DLLAZY_OR_NOW
12148# ifdef RTLD_LAZY
12149# define LT_DLLAZY_OR_NOW RTLD_LAZY
12150# else
12151# ifdef DL_LAZY
12152# define LT_DLLAZY_OR_NOW DL_LAZY
12153# else
12154# ifdef RTLD_NOW
12155# define LT_DLLAZY_OR_NOW RTLD_NOW
12156# else
12157# ifdef DL_NOW
12158# define LT_DLLAZY_OR_NOW DL_NOW
12159# else
12160# define LT_DLLAZY_OR_NOW 0
12161# endif
12162# endif
12163# endif
12164# endif
12165#endif
12166
12167#ifdef __cplusplus
12168extern "C" void exit (int);
12169#endif
12170
12171void fnord() { int i=42;}
12172int main ()
12173{
12174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12175 int status = $lt_dlunknown;
12176
12177 if (self)
12178 {
12179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12181 /* dlclose (self); */
12182 }
12183
12184 exit (status);
12185}
12186EOF
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12192 (./conftest; exit; ) 2>/dev/null
12193 lt_status=$?
12194 case x$lt_status in
12195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12197 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12198 esac
12199 else :
12200 # compilation failed
12201 lt_cv_dlopen_self_static=no
12202 fi
12203fi
12204rm -fr conftest*
12205
12206
12207fi
12208echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12209echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12210 fi
12211
12212 CPPFLAGS="$save_CPPFLAGS"
12213 LDFLAGS="$save_LDFLAGS"
12214 LIBS="$save_LIBS"
12215 ;;
12216 esac
12217
12218 case $lt_cv_dlopen_self in
12219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12220 *) enable_dlopen_self=unknown ;;
12221 esac
12222
12223 case $lt_cv_dlopen_self_static in
12224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12225 *) enable_dlopen_self_static=unknown ;;
12226 esac
12227fi
12228
12229
12230# The else clause should only fire when bootstrapping the
12231# libtool distribution, otherwise you forgot to ship ltmain.sh
12232# with your package, and you will get complaints that there are
12233# no rules to generate ltmain.sh.
12234if test -f "$ltmain"; then
12235 # See if we are running on zsh, and set the options which allow our commands through
12236 # without removal of \ escapes.
12237 if test -n "${ZSH_VERSION+set}" ; then
12238 setopt NO_GLOB_SUBST
12239 fi
12240 # Now quote all the things that may contain metacharacters while being
12241 # careful not to overquote the AC_SUBSTed values. We take copies of the
12242 # variables and quote the copies for generation of the libtool script.
12243 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12244 SED SHELL STRIP \
12245 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12246 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12247 deplibs_check_method reload_flag reload_cmds need_locks \
12248 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12249 lt_cv_sys_global_symbol_to_c_name_address \
12250 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12251 old_postinstall_cmds old_postuninstall_cmds \
12252 compiler_CXX \
12253 CC_CXX \
12254 LD_CXX \
12255 lt_prog_compiler_wl_CXX \
12256 lt_prog_compiler_pic_CXX \
12257 lt_prog_compiler_static_CXX \
12258 lt_prog_compiler_no_builtin_flag_CXX \
12259 export_dynamic_flag_spec_CXX \
12260 thread_safe_flag_spec_CXX \
12261 whole_archive_flag_spec_CXX \
12262 enable_shared_with_static_runtimes_CXX \
12263 old_archive_cmds_CXX \
12264 old_archive_from_new_cmds_CXX \
12265 predep_objects_CXX \
12266 postdep_objects_CXX \
12267 predeps_CXX \
12268 postdeps_CXX \
12269 compiler_lib_search_path_CXX \
12270 archive_cmds_CXX \
12271 archive_expsym_cmds_CXX \
12272 postinstall_cmds_CXX \
12273 postuninstall_cmds_CXX \
12274 old_archive_from_expsyms_cmds_CXX \
12275 allow_undefined_flag_CXX \
12276 no_undefined_flag_CXX \
12277 export_symbols_cmds_CXX \
12278 hardcode_libdir_flag_spec_CXX \
12279 hardcode_libdir_flag_spec_ld_CXX \
12280 hardcode_libdir_separator_CXX \
12281 hardcode_automatic_CXX \
12282 module_cmds_CXX \
12283 module_expsym_cmds_CXX \
12284 lt_cv_prog_compiler_c_o_CXX \
12285 exclude_expsyms_CXX \
12286 include_expsyms_CXX; do
12287
12288 case $var in
12289 old_archive_cmds_CXX | \
12290 old_archive_from_new_cmds_CXX | \
12291 archive_cmds_CXX | \
12292 archive_expsym_cmds_CXX | \
12293 module_cmds_CXX | \
12294 module_expsym_cmds_CXX | \
12295 old_archive_from_expsyms_cmds_CXX | \
12296 export_symbols_cmds_CXX | \
12297 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12298 postinstall_cmds | postuninstall_cmds | \
12299 old_postinstall_cmds | old_postuninstall_cmds | \
12300 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12301 # Double-quote double-evaled strings.
12302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12303 ;;
12304 *)
12305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12306 ;;
12307 esac
12308 done
12309
12310 case $lt_echo in
12311 *'\$0 --fallback-echo"')
12312 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12313 ;;
12314 esac
12315
12316cfgfile="$ofile"
12317
12318 cat <<__EOF__ >> "$cfgfile"
12319# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12320
12321# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12322
12323# Shell to use when invoking shell scripts.
12324SHELL=$lt_SHELL
12325
12326# Whether or not to build shared libraries.
12327build_libtool_libs=$enable_shared
12328
12329# Whether or not to build static libraries.
12330build_old_libs=$enable_static
12331
12332# Whether or not to add -lc for building shared libraries.
12333build_libtool_need_lc=$archive_cmds_need_lc_CXX
12334
12335# Whether or not to disallow shared libs when runtime libs are static
12336allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12337
12338# Whether or not to optimize for fast installation.
12339fast_install=$enable_fast_install
12340
12341# The host system.
12342host_alias=$host_alias
12343host=$host
12344
12345# An echo program that does not interpret backslashes.
12346echo=$lt_echo
12347
12348# The archiver.
12349AR=$lt_AR
12350AR_FLAGS=$lt_AR_FLAGS
12351
12352# A C compiler.
12353LTCC=$lt_LTCC
12354
12355# A language-specific compiler.
12356CC=$lt_compiler_CXX
12357
12358# Is the compiler the GNU C compiler?
12359with_gcc=$GCC_CXX
12360
12361# An ERE matcher.
12362EGREP=$lt_EGREP
12363
12364# The linker used to build libraries.
12365LD=$lt_LD_CXX
12366
12367# Whether we need hard or soft links.
12368LN_S=$lt_LN_S
12369
12370# A BSD-compatible nm program.
12371NM=$lt_NM
12372
12373# A symbol stripping program
12374STRIP=$lt_STRIP
12375
12376# Used to examine libraries when file_magic_cmd begins "file"
12377MAGIC_CMD=$MAGIC_CMD
12378
12379# Used on cygwin: DLL creation program.
12380DLLTOOL="$DLLTOOL"
12381
12382# Used on cygwin: object dumper.
12383OBJDUMP="$OBJDUMP"
12384
12385# Used on cygwin: assembler.
12386AS="$AS"
12387
12388# The name of the directory that contains temporary libtool files.
12389objdir=$objdir
12390
12391# How to create reloadable object files.
12392reload_flag=$lt_reload_flag
12393reload_cmds=$lt_reload_cmds
12394
12395# How to pass a linker flag through the compiler.
12396wl=$lt_lt_prog_compiler_wl_CXX
12397
12398# Object file suffix (normally "o").
12399objext="$ac_objext"
12400
12401# Old archive suffix (normally "a").
12402libext="$libext"
12403
12404# Shared library suffix (normally ".so").
12405shrext_cmds='$shrext_cmds'
12406
12407# Executable file suffix (normally "").
12408exeext="$exeext"
12409
12410# Additional compiler flags for building library objects.
12411pic_flag=$lt_lt_prog_compiler_pic_CXX
12412pic_mode=$pic_mode
12413
12414# What is the maximum length of a command?
12415max_cmd_len=$lt_cv_sys_max_cmd_len
12416
12417# Does compiler simultaneously support -c and -o options?
12418compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12419
12420# Must we lock files when doing compilation ?
12421need_locks=$lt_need_locks
12422
12423# Do we need the lib prefix for modules?
12424need_lib_prefix=$need_lib_prefix
12425
12426# Do we need a version for libraries?
12427need_version=$need_version
12428
12429# Whether dlopen is supported.
12430dlopen_support=$enable_dlopen
12431
12432# Whether dlopen of programs is supported.
12433dlopen_self=$enable_dlopen_self
12434
12435# Whether dlopen of statically linked programs is supported.
12436dlopen_self_static=$enable_dlopen_self_static
12437
12438# Compiler flag to prevent dynamic linking.
12439link_static_flag=$lt_lt_prog_compiler_static_CXX
12440
12441# Compiler flag to turn off builtin functions.
12442no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12443
12444# Compiler flag to allow reflexive dlopens.
12445export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12446
12447# Compiler flag to generate shared objects directly from archives.
12448whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12449
12450# Compiler flag to generate thread-safe objects.
12451thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12452
12453# Library versioning type.
12454version_type=$version_type
12455
12456# Format of library name prefix.
12457libname_spec=$lt_libname_spec
12458
12459# List of archive names. First name is the real one, the rest are links.
12460# The last name is the one that the linker finds with -lNAME.
12461library_names_spec=$lt_library_names_spec
12462
12463# The coded name of the library, if different from the real name.
12464soname_spec=$lt_soname_spec
12465
12466# Commands used to build and install an old-style archive.
12467RANLIB=$lt_RANLIB
12468old_archive_cmds=$lt_old_archive_cmds_CXX
12469old_postinstall_cmds=$lt_old_postinstall_cmds
12470old_postuninstall_cmds=$lt_old_postuninstall_cmds
12471
12472# Create an old-style archive from a shared archive.
12473old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12474
12475# Create a temporary old-style archive to link instead of a shared archive.
12476old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12477
12478# Commands used to build and install a shared archive.
12479archive_cmds=$lt_archive_cmds_CXX
12480archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12481postinstall_cmds=$lt_postinstall_cmds
12482postuninstall_cmds=$lt_postuninstall_cmds
12483
12484# Commands used to build a loadable module (assumed same as above if empty)
12485module_cmds=$lt_module_cmds_CXX
12486module_expsym_cmds=$lt_module_expsym_cmds_CXX
12487
12488# Commands to strip libraries.
12489old_striplib=$lt_old_striplib
12490striplib=$lt_striplib
12491
12492# Dependencies to place before the objects being linked to create a
12493# shared library.
12494predep_objects=$lt_predep_objects_CXX
12495
12496# Dependencies to place after the objects being linked to create a
12497# shared library.
12498postdep_objects=$lt_postdep_objects_CXX
12499
12500# Dependencies to place before the objects being linked to create a
12501# shared library.
12502predeps=$lt_predeps_CXX
12503
12504# Dependencies to place after the objects being linked to create a
12505# shared library.
12506postdeps=$lt_postdeps_CXX
12507
12508# The library search path used internally by the compiler when linking
12509# a shared library.
12510compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12511
12512# Method to check whether dependent libraries are shared objects.
12513deplibs_check_method=$lt_deplibs_check_method
12514
12515# Command to use when deplibs_check_method == file_magic.
12516file_magic_cmd=$lt_file_magic_cmd
12517
12518# Flag that allows shared libraries with undefined symbols to be built.
12519allow_undefined_flag=$lt_allow_undefined_flag_CXX
12520
12521# Flag that forces no undefined symbols.
12522no_undefined_flag=$lt_no_undefined_flag_CXX
12523
12524# Commands used to finish a libtool library installation in a directory.
12525finish_cmds=$lt_finish_cmds
12526
12527# Same as above, but a single script fragment to be evaled but not shown.
12528finish_eval=$lt_finish_eval
12529
12530# Take the output of nm and produce a listing of raw symbols and C names.
12531global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12532
12533# Transform the output of nm in a proper C declaration
12534global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12535
12536# Transform the output of nm in a C name address pair
12537global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12538
12539# This is the shared library runtime path variable.
12540runpath_var=$runpath_var
12541
12542# This is the shared library path variable.
12543shlibpath_var=$shlibpath_var
12544
12545# Is shlibpath searched before the hard-coded library search path?
12546shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12547
12548# How to hardcode a shared library path into an executable.
12549hardcode_action=$hardcode_action_CXX
12550
12551# Whether we should hardcode library paths into libraries.
12552hardcode_into_libs=$hardcode_into_libs
12553
12554# Flag to hardcode \$libdir into a binary during linking.
12555# This must work even if \$libdir does not exist.
12556hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12557
12558# If ld is used when linking, flag to hardcode \$libdir into
12559# a binary during linking. This must work even if \$libdir does
12560# not exist.
12561hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12562
12563# Whether we need a single -rpath flag with a separated argument.
12564hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12565
12566# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12567# resulting binary.
12568hardcode_direct=$hardcode_direct_CXX
12569
12570# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12571# resulting binary.
12572hardcode_minus_L=$hardcode_minus_L_CXX
12573
12574# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12575# the resulting binary.
12576hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12577
12578# Set to yes if building a shared library automatically hardcodes DIR into the library
12579# and all subsequent libraries and executables linked against it.
12580hardcode_automatic=$hardcode_automatic_CXX
12581
12582# Variables whose values should be saved in libtool wrapper scripts and
12583# restored at relink time.
12584variables_saved_for_relink="$variables_saved_for_relink"
12585
12586# Whether libtool must link a program against all its dependency libraries.
12587link_all_deplibs=$link_all_deplibs_CXX
12588
12589# Compile-time system search path for libraries
12590sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12591
12592# Run-time system search path for libraries
12593sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12594
12595# Fix the shell variable \$srcfile for the compiler.
12596fix_srcfile_path="$fix_srcfile_path_CXX"
12597
12598# Set to yes if exported symbols are required.
12599always_export_symbols=$always_export_symbols_CXX
12600
12601# The commands to list exported symbols.
12602export_symbols_cmds=$lt_export_symbols_cmds_CXX
12603
12604# The commands to extract the exported symbol list from a shared archive.
12605extract_expsyms_cmds=$lt_extract_expsyms_cmds
12606
12607# Symbols that should not be listed in the preloaded symbols.
12608exclude_expsyms=$lt_exclude_expsyms_CXX
12609
12610# Symbols that must always be exported.
12611include_expsyms=$lt_include_expsyms_CXX
12612
12613# ### END LIBTOOL TAG CONFIG: $tagname
12614
12615__EOF__
12616
12617
12618else
12619 # If there is no Makefile yet, we rely on a make rule to execute
12620 # `config.status --recheck' to rerun these tests and create the
12621 # libtool script then.
12622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12623 if test -f "$ltmain_in"; then
12624 test -f Makefile && make "$ltmain"
12625 fi
12626fi
12627
12628
12629ac_ext=c
12630ac_cpp='$CPP $CPPFLAGS'
12631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12633ac_compiler_gnu=$ac_cv_c_compiler_gnu
12634
12635CC=$lt_save_CC
12636LDCXX=$LD
12637LD=$lt_save_LD
12638GCC=$lt_save_GCC
12639with_gnu_ldcxx=$with_gnu_ld
12640with_gnu_ld=$lt_save_with_gnu_ld
12641lt_cv_path_LDCXX=$lt_cv_path_LD
12642lt_cv_path_LD=$lt_save_path_LD
12643lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12644lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12645
12646 else
12647 tagname=""
12648 fi
12649 ;;
12650
12651 F77)
12652 if test -n "$F77" && test "X$F77" != "Xno"; then
12653
12654ac_ext=f
12655ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12656ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12657ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12658
12659
12660archive_cmds_need_lc_F77=no
12661allow_undefined_flag_F77=
12662always_export_symbols_F77=no
12663archive_expsym_cmds_F77=
12664export_dynamic_flag_spec_F77=
12665hardcode_direct_F77=no
12666hardcode_libdir_flag_spec_F77=
12667hardcode_libdir_flag_spec_ld_F77=
12668hardcode_libdir_separator_F77=
12669hardcode_minus_L_F77=no
12670hardcode_automatic_F77=no
12671module_cmds_F77=
12672module_expsym_cmds_F77=
12673link_all_deplibs_F77=unknown
12674old_archive_cmds_F77=$old_archive_cmds
12675no_undefined_flag_F77=
12676whole_archive_flag_spec_F77=
12677enable_shared_with_static_runtimes_F77=no
12678
12679# Source file extension for f77 test sources.
12680ac_ext=f
12681
12682# Object file extension for compiled f77 test sources.
12683objext=o
12684objext_F77=$objext
12685
12686# Code to be used in simple compile tests
12687lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12688
12689# Code to be used in simple link tests
12690lt_simple_link_test_code=" program t\n end\n"
12691
12692# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12693
12694# If no C compiler was specified, use CC.
12695LTCC=${LTCC-"$CC"}
12696
12697# Allow CC to be a program name with arguments.
12698compiler=$CC
12699
12700
12701# Allow CC to be a program name with arguments.
12702lt_save_CC="$CC"
12703CC=${F77-"f77"}
12704compiler=$CC
12705compiler_F77=$CC
12706cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12707
12708echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12709echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12710echo "$as_me:$LINENO: result: $can_build_shared" >&5
12711echo "${ECHO_T}$can_build_shared" >&6
12712
12713echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12714echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12715test "$can_build_shared" = "no" && enable_shared=no
12716
12717# On AIX, shared libraries and static libraries use the same namespace, and
12718# are all built from PIC.
12719case "$host_os" in
12720aix3*)
12721 test "$enable_shared" = yes && enable_static=no
12722 if test -n "$RANLIB"; then
12723 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12724 postinstall_cmds='$RANLIB $lib'
12725 fi
12726 ;;
12727aix4* | aix5*)
12728 test "$enable_shared" = yes && enable_static=no
12729 ;;
12730esac
12731echo "$as_me:$LINENO: result: $enable_shared" >&5
12732echo "${ECHO_T}$enable_shared" >&6
12733
12734echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12735echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12736# Make sure either enable_shared or enable_static is yes.
12737test "$enable_shared" = yes || enable_static=yes
12738echo "$as_me:$LINENO: result: $enable_static" >&5
12739echo "${ECHO_T}$enable_static" >&6
12740
12741test "$ld_shlibs_F77" = no && can_build_shared=no
12742
12743GCC_F77="$G77"
12744LD_F77="$LD"
12745
12746lt_prog_compiler_wl_F77=
12747lt_prog_compiler_pic_F77=
12748lt_prog_compiler_static_F77=
12749
12750echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12751echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12752
12753 if test "$GCC" = yes; then
12754 lt_prog_compiler_wl_F77='-Wl,'
12755 lt_prog_compiler_static_F77='-static'
12756
12757 case $host_os in
12758 aix*)
12759 # All AIX code is PIC.
12760 if test "$host_cpu" = ia64; then
12761 # AIX 5 now supports IA64 processor
12762 lt_prog_compiler_static_F77='-Bstatic'
12763 fi
12764 ;;
12765
12766 amigaos*)
12767 # FIXME: we need at least 68020 code to build shared libraries, but
12768 # adding the `-m68020' flag to GCC prevents building anything better,
12769 # like `-m68040'.
12770 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12771 ;;
12772
12773 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12774 # PIC is the default for these OSes.
12775 ;;
12776
12777 mingw* | pw32* | os2*)
12778 # This hack is so that the source file can tell whether it is being
12779 # built for inclusion in a dll (and should export symbols for example).
12780 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12781 ;;
12782
12783 darwin* | rhapsody*)
12784 # PIC is the default on this platform
12785 # Common symbols not allowed in MH_DYLIB files
12786 lt_prog_compiler_pic_F77='-fno-common'
12787 ;;
12788
12789 msdosdjgpp*)
12790 # Just because we use GCC doesn't mean we suddenly get shared libraries
12791 # on systems that don't support them.
12792 lt_prog_compiler_can_build_shared_F77=no
12793 enable_shared=no
12794 ;;
12795
12796 sysv4*MP*)
12797 if test -d /usr/nec; then
12798 lt_prog_compiler_pic_F77=-Kconform_pic
12799 fi
12800 ;;
12801
12802 hpux*)
12803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12804 # not for PA HP-UX.
12805 case "$host_cpu" in
12806 hppa*64*|ia64*)
12807 # +Z the default
12808 ;;
12809 *)
12810 lt_prog_compiler_pic_F77='-fPIC'
12811 ;;
12812 esac
12813 ;;
12814
12815 *)
12816 lt_prog_compiler_pic_F77='-fPIC'
12817 ;;
12818 esac
12819 else
12820 # PORTME Check for flag to pass linker flags through the system compiler.
12821 case $host_os in
12822 aix*)
12823 lt_prog_compiler_wl_F77='-Wl,'
12824 if test "$host_cpu" = ia64; then
12825 # AIX 5 now supports IA64 processor
12826 lt_prog_compiler_static_F77='-Bstatic'
12827 else
12828 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12829 fi
12830 ;;
12831
12832 mingw* | pw32* | os2*)
12833 # This hack is so that the source file can tell whether it is being
12834 # built for inclusion in a dll (and should export symbols for example).
12835 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12836 ;;
12837
12838 hpux9* | hpux10* | hpux11*)
12839 lt_prog_compiler_wl_F77='-Wl,'
12840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12841 # not for PA HP-UX.
12842 case "$host_cpu" in
12843 hppa*64*|ia64*)
12844 # +Z the default
12845 ;;
12846 *)
12847 lt_prog_compiler_pic_F77='+Z'
12848 ;;
12849 esac
12850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12851 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12852 ;;
12853
12854 irix5* | irix6* | nonstopux*)
12855 lt_prog_compiler_wl_F77='-Wl,'
12856 # PIC (with -KPIC) is the default.
12857 lt_prog_compiler_static_F77='-non_shared'
12858 ;;
12859
12860 newsos6)
12861 lt_prog_compiler_pic_F77='-KPIC'
12862 lt_prog_compiler_static_F77='-Bstatic'
12863 ;;
12864
12865 linux*)
12866 case $CC in
12867 icc* | ecc*)
12868 lt_prog_compiler_wl_F77='-Wl,'
12869 lt_prog_compiler_pic_F77='-KPIC'
12870 lt_prog_compiler_static_F77='-static'
12871 ;;
12872 ccc*)
12873 lt_prog_compiler_wl_F77='-Wl,'
12874 # All Alpha code is PIC.
12875 lt_prog_compiler_static_F77='-non_shared'
12876 ;;
12877 esac
12878 ;;
12879
12880 osf3* | osf4* | osf5*)
12881 lt_prog_compiler_wl_F77='-Wl,'
12882 # All OSF/1 code is PIC.
12883 lt_prog_compiler_static_F77='-non_shared'
12884 ;;
12885
12886 sco3.2v5*)
12887 lt_prog_compiler_pic_F77='-Kpic'
12888 lt_prog_compiler_static_F77='-dn'
12889 ;;
12890
12891 solaris*)
12892 lt_prog_compiler_wl_F77='-Wl,'
12893 lt_prog_compiler_pic_F77='-KPIC'
12894 lt_prog_compiler_static_F77='-Bstatic'
12895 ;;
12896
12897 sunos4*)
12898 lt_prog_compiler_wl_F77='-Qoption ld '
12899 lt_prog_compiler_pic_F77='-PIC'
12900 lt_prog_compiler_static_F77='-Bstatic'
12901 ;;
12902
12903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12904 lt_prog_compiler_wl_F77='-Wl,'
12905 lt_prog_compiler_pic_F77='-KPIC'
12906 lt_prog_compiler_static_F77='-Bstatic'
12907 ;;
12908
12909 sysv4*MP*)
12910 if test -d /usr/nec ;then
12911 lt_prog_compiler_pic_F77='-Kconform_pic'
12912 lt_prog_compiler_static_F77='-Bstatic'
12913 fi
12914 ;;
12915
12916 uts4*)
12917 lt_prog_compiler_pic_F77='-pic'
12918 lt_prog_compiler_static_F77='-Bstatic'
12919 ;;
12920
12921 *)
12922 lt_prog_compiler_can_build_shared_F77=no
12923 ;;
12924 esac
12925 fi
12926
12927echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12928echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12929
12930#
12931# Check to make sure the PIC flag actually works.
12932#
12933if test -n "$lt_prog_compiler_pic_F77"; then
12934
12935echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12936echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12937if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
12940 lt_prog_compiler_pic_works_F77=no
12941 ac_outfile=conftest.$ac_objext
12942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12943 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12944 # Insert the option either (1) after the last *FLAGS variable, or
12945 # (2) before a word containing "conftest.", or (3) at the end.
12946 # Note that $ac_compile itself does not contain backslashes and begins
12947 # with a dollar sign (not a hyphen), so the echo should work correctly.
12948 # The option is referenced via a variable to avoid confusing sed.
12949 lt_compile=`echo "$ac_compile" | $SED \
12950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952 -e 's:$: $lt_compiler_flag:'`
12953 (eval echo "\"\$as_me:12953: $lt_compile\"" >&5)
12954 (eval "$lt_compile" 2>conftest.err)
12955 ac_status=$?
12956 cat conftest.err >&5
12957 echo "$as_me:12957: \$? = $ac_status" >&5
12958 if (exit $ac_status) && test -s "$ac_outfile"; then
12959 # The compiler can only warn and ignore the option if not recognized
12960 # So say no if there are warnings
12961 if test ! -s conftest.err; then
12962 lt_prog_compiler_pic_works_F77=yes
12963 fi
12964 fi
12965 $rm conftest*
12966
12967fi
12968echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12969echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12970
12971if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12972 case $lt_prog_compiler_pic_F77 in
12973 "" | " "*) ;;
12974 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12975 esac
12976else
12977 lt_prog_compiler_pic_F77=
12978 lt_prog_compiler_can_build_shared_F77=no
12979fi
12980
12981fi
12982case "$host_os" in
12983 # For platforms which do not support PIC, -DPIC is meaningless:
12984 *djgpp*)
12985 lt_prog_compiler_pic_F77=
12986 ;;
12987 *)
12988 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12989 ;;
12990esac
12991
12992echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12993echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12994if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997 lt_cv_prog_compiler_c_o_F77=no
12998 $rm -r conftest 2>/dev/null
12999 mkdir conftest
13000 cd conftest
13001 mkdir out
13002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13003
13004 lt_compiler_flag="-o out/conftest2.$ac_objext"
13005 # Insert the option either (1) after the last *FLAGS variable, or
13006 # (2) before a word containing "conftest.", or (3) at the end.
13007 # Note that $ac_compile itself does not contain backslashes and begins
13008 # with a dollar sign (not a hyphen), so the echo should work correctly.
13009 lt_compile=`echo "$ac_compile" | $SED \
13010 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13012 -e 's:$: $lt_compiler_flag:'`
13013 (eval echo "\"\$as_me:13013: $lt_compile\"" >&5)
13014 (eval "$lt_compile" 2>out/conftest.err)
13015 ac_status=$?
13016 cat out/conftest.err >&5
13017 echo "$as_me:13017: \$? = $ac_status" >&5
13018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13019 then
13020 # The compiler can only warn and ignore the option if not recognized
13021 # So say no if there are warnings
13022 if test ! -s out/conftest.err; then
13023 lt_cv_prog_compiler_c_o_F77=yes
13024 fi
13025 fi
13026 chmod u+w .
13027 $rm conftest*
13028 # SGI C++ compiler will create directory out/ii_files/ for
13029 # template instantiation
13030 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13031 $rm out/* && rmdir out
13032 cd ..
13033 rmdir conftest
13034 $rm conftest*
13035
13036fi
13037echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13038echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13039
13040
13041hard_links="nottested"
13042if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13043 # do not overwrite the value of need_locks provided by the user
13044 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13045echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13046 hard_links=yes
13047 $rm conftest*
13048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13049 touch conftest.a
13050 ln conftest.a conftest.b 2>&5 || hard_links=no
13051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13052 echo "$as_me:$LINENO: result: $hard_links" >&5
13053echo "${ECHO_T}$hard_links" >&6
13054 if test "$hard_links" = no; then
13055 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13056echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13057 need_locks=warn
13058 fi
13059else
13060 need_locks=no
13061fi
13062
13063echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13064echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13065
13066 runpath_var=
13067 allow_undefined_flag_F77=
13068 enable_shared_with_static_runtimes_F77=no
13069 archive_cmds_F77=
13070 archive_expsym_cmds_F77=
13071 old_archive_From_new_cmds_F77=
13072 old_archive_from_expsyms_cmds_F77=
13073 export_dynamic_flag_spec_F77=
13074 whole_archive_flag_spec_F77=
13075 thread_safe_flag_spec_F77=
13076 hardcode_libdir_flag_spec_F77=
13077 hardcode_libdir_flag_spec_ld_F77=
13078 hardcode_libdir_separator_F77=
13079 hardcode_direct_F77=no
13080 hardcode_minus_L_F77=no
13081 hardcode_shlibpath_var_F77=unsupported
13082 link_all_deplibs_F77=unknown
13083 hardcode_automatic_F77=no
13084 module_cmds_F77=
13085 module_expsym_cmds_F77=
13086 always_export_symbols_F77=no
13087 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13088 # include_expsyms should be a list of space-separated symbols to be *always*
13089 # included in the symbol list
13090 include_expsyms_F77=
13091 # exclude_expsyms can be an extended regexp of symbols to exclude
13092 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13093 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13094 # as well as any symbol that contains `d'.
13095 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13096 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13097 # platforms (ab)use it in PIC code, but their linkers get confused if
13098 # the symbol is explicitly referenced. Since portable code cannot
13099 # rely on this symbol name, it's probably fine to never include it in
13100 # preloaded symbol tables.
13101 extract_expsyms_cmds=
13102
13103 case $host_os in
13104 cygwin* | mingw* | pw32*)
13105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13106 # When not using gcc, we currently assume that we are using
13107 # Microsoft Visual C++.
13108 if test "$GCC" != yes; then
13109 with_gnu_ld=no
13110 fi
13111 ;;
13112 openbsd*)
13113 with_gnu_ld=no
13114 ;;
13115 esac
13116
13117 ld_shlibs_F77=yes
13118 if test "$with_gnu_ld" = yes; then
13119 # If archive_cmds runs LD, not CC, wlarc should be empty
13120 wlarc='${wl}'
13121
13122 # See if GNU ld supports shared libraries.
13123 case $host_os in
13124 aix3* | aix4* | aix5*)
13125 # On AIX/PPC, the GNU linker is very broken
13126 if test "$host_cpu" != ia64; then
13127 ld_shlibs_F77=no
13128 cat <<EOF 1>&2
13129
13130*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13131*** to be unable to reliably create shared libraries on AIX.
13132*** Therefore, libtool is disabling shared libraries support. If you
13133*** really care for shared libraries, you may want to modify your PATH
13134*** so that a non-GNU linker is found, and then restart.
13135
13136EOF
13137 fi
13138 ;;
13139
13140 amigaos*)
13141 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)'
13142 hardcode_libdir_flag_spec_F77='-L$libdir'
13143 hardcode_minus_L_F77=yes
13144
13145 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13146 # that the semantics of dynamic libraries on AmigaOS, at least up
13147 # to version 4, is to share data among multiple programs linked
13148 # with the same dynamic library. Since this doesn't match the
13149 # behavior of shared libraries on other platforms, we can't use
13150 # them.
13151 ld_shlibs_F77=no
13152 ;;
13153
13154 beos*)
13155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13156 allow_undefined_flag_F77=unsupported
13157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13158 # support --undefined. This deserves some investigation. FIXME
13159 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13160 else
13161 ld_shlibs_F77=no
13162 fi
13163 ;;
13164
13165 cygwin* | mingw* | pw32*)
13166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13167 # as there is no search path for DLLs.
13168 hardcode_libdir_flag_spec_F77='-L$libdir'
13169 allow_undefined_flag_F77=unsupported
13170 always_export_symbols_F77=no
13171 enable_shared_with_static_runtimes_F77=yes
13172 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13173
13174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13176 # If the export-symbols file already is a .def file (1st line
13177 # is EXPORTS), use it as is; otherwise, prepend...
13178 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13179 cp $export_symbols $output_objdir/$soname.def;
13180 else
13181 echo EXPORTS > $output_objdir/$soname.def;
13182 cat $export_symbols >> $output_objdir/$soname.def;
13183 fi~
13184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13185 else
13186 ld_shlibs=no
13187 fi
13188 ;;
13189
13190 netbsd*)
13191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13192 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13193 wlarc=
13194 else
13195 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13197 fi
13198 ;;
13199
13200 solaris* | sysv5*)
13201 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13202 ld_shlibs_F77=no
13203 cat <<EOF 1>&2
13204
13205*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13206*** create shared libraries on Solaris systems. Therefore, libtool
13207*** is disabling shared libraries support. We urge you to upgrade GNU
13208*** binutils to release 2.9.1 or newer. Another option is to modify
13209*** your PATH or compiler configuration so that the native linker is
13210*** used, and then restart.
13211
13212EOF
13213 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13214 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13215 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13216 else
13217 ld_shlibs_F77=no
13218 fi
13219 ;;
13220
13221 sunos4*)
13222 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13223 wlarc=
13224 hardcode_direct_F77=yes
13225 hardcode_shlibpath_var_F77=no
13226 ;;
13227
13228 linux*)
13229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13230 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231 archive_cmds_F77="$tmp_archive_cmds"
13232 supports_anon_versioning=no
13233 case `$LD -v 2>/dev/null` in
13234 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13237 *\ 2.11.*) ;; # other 2.11 versions
13238 *) supports_anon_versioning=yes ;;
13239 esac
13240 if test $supports_anon_versioning = yes; then
13241 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13242cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13243$echo "local: *; };" >> $output_objdir/$libname.ver~
13244 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13245 else
13246 archive_expsym_cmds_F77="$tmp_archive_cmds"
13247 fi
13248 else
13249 ld_shlibs_F77=no
13250 fi
13251 ;;
13252
13253 *)
13254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13256 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13257 else
13258 ld_shlibs_F77=no
13259 fi
13260 ;;
13261 esac
13262
13263 if test "$ld_shlibs_F77" = yes; then
13264 runpath_var=LD_RUN_PATH
13265 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13266 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13267 # ancient GNU ld didn't support --whole-archive et. al.
13268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13269 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13270 else
13271 whole_archive_flag_spec_F77=
13272 fi
13273 fi
13274 else
13275 # PORTME fill in a description of your system's linker (not GNU ld)
13276 case $host_os in
13277 aix3*)
13278 allow_undefined_flag_F77=unsupported
13279 always_export_symbols_F77=yes
13280 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'
13281 # Note: this linker hardcodes the directories in LIBPATH if there
13282 # are no directories specified by -L.
13283 hardcode_minus_L_F77=yes
13284 if test "$GCC" = yes && test -z "$link_static_flag"; then
13285 # Neither direct hardcoding nor static linking is supported with a
13286 # broken collect2.
13287 hardcode_direct_F77=unsupported
13288 fi
13289 ;;
13290
13291 aix4* | aix5*)
13292 if test "$host_cpu" = ia64; then
13293 # On IA64, the linker does run time linking by default, so we don't
13294 # have to do anything special.
13295 aix_use_runtimelinking=no
13296 exp_sym_flag='-Bexport'
13297 no_entry_flag=""
13298 else
13299 # If we're using GNU nm, then we don't want the "-C" option.
13300 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13301 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13302 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'
13303 else
13304 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'
13305 fi
13306 aix_use_runtimelinking=no
13307
13308 # Test if we are trying to use run time linking or normal
13309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13310 # need to do runtime linking.
13311 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13312 for ld_flag in $LDFLAGS; do
13313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13314 aix_use_runtimelinking=yes
13315 break
13316 fi
13317 done
13318 esac
13319
13320 exp_sym_flag='-bexport'
13321 no_entry_flag='-bnoentry'
13322 fi
13323
13324 # When large executables or shared objects are built, AIX ld can
13325 # have problems creating the table of contents. If linking a library
13326 # or program results in "error TOC overflow" add -mminimal-toc to
13327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13329
13330 archive_cmds_F77=''
13331 hardcode_direct_F77=yes
13332 hardcode_libdir_separator_F77=':'
13333 link_all_deplibs_F77=yes
13334
13335 if test "$GCC" = yes; then
13336 case $host_os in aix4.012|aix4.012.*)
13337 # We only want to do this on AIX 4.2 and lower, the check
13338 # below for broken collect2 doesn't work under 4.3+
13339 collect2name=`${CC} -print-prog-name=collect2`
13340 if test -f "$collect2name" && \
13341 strings "$collect2name" | grep resolve_lib_name >/dev/null
13342 then
13343 # We have reworked collect2
13344 hardcode_direct_F77=yes
13345 else
13346 # We have old collect2
13347 hardcode_direct_F77=unsupported
13348 # It fails to find uninstalled libraries when the uninstalled
13349 # path is not listed in the libpath. Setting hardcode_minus_L
13350 # to unsupported forces relinking
13351 hardcode_minus_L_F77=yes
13352 hardcode_libdir_flag_spec_F77='-L$libdir'
13353 hardcode_libdir_separator_F77=
13354 fi
13355 esac
13356 shared_flag='-shared'
13357 else
13358 # not using gcc
13359 if test "$host_cpu" = ia64; then
13360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13361 # chokes on -Wl,-G. The following line is correct:
13362 shared_flag='-G'
13363 else
13364 if test "$aix_use_runtimelinking" = yes; then
13365 shared_flag='${wl}-G'
13366 else
13367 shared_flag='${wl}-bM:SRE'
13368 fi
13369 fi
13370 fi
13371
13372 # It seems that -bexpall does not export symbols beginning with
13373 # underscore (_), so it is better to generate a list of symbols to export.
13374 always_export_symbols_F77=yes
13375 if test "$aix_use_runtimelinking" = yes; then
13376 # Warning - without using the other runtime loading flags (-brtl),
13377 # -berok will link without error, but may produce a broken library.
13378 allow_undefined_flag_F77='-berok'
13379 # Determine the default libpath from the value encoded in an empty executable.
13380 cat >conftest.$ac_ext <<_ACEOF
13381 program main
13382
13383 end
13384_ACEOF
13385rm -f conftest.$ac_objext conftest$ac_exeext
13386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_f77_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407
13408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13409}'`
13410# Check for a 64-bit object if we didn't find anything.
13411if 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; }
13412}'`; fi
13413else
13414 echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417fi
13418rm -f conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13421
13422 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13423 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13424 else
13425 if test "$host_cpu" = ia64; then
13426 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13427 allow_undefined_flag_F77="-z nodefs"
13428 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13429 else
13430 # Determine the default libpath from the value encoded in an empty executable.
13431 cat >conftest.$ac_ext <<_ACEOF
13432 program main
13433
13434 end
13435_ACEOF
13436rm -f conftest.$ac_objext conftest$ac_exeext
13437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438 (eval $ac_link) 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
13445 { ac_try='test -z "$ac_f77_werror_flag"
13446 || test ! -s conftest.err'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest$ac_exeext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458
13459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13460}'`
13461# Check for a 64-bit object if we didn't find anything.
13462if 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; }
13463}'`; fi
13464else
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468fi
13469rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13472
13473 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13474 # Warning - without using the other run time loading flags,
13475 # -berok will link without error, but may produce a broken library.
13476 no_undefined_flag_F77=' ${wl}-bernotok'
13477 allow_undefined_flag_F77=' ${wl}-berok'
13478 # -bexpall does not export symbols beginning with underscore (_)
13479 always_export_symbols_F77=yes
13480 # Exported symbols can be pulled into shared objects from archives
13481 whole_archive_flag_spec_F77=' '
13482 archive_cmds_need_lc_F77=yes
13483 # This is similar to how AIX traditionally builds it's shared libraries.
13484 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13485 fi
13486 fi
13487 ;;
13488
13489 amigaos*)
13490 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)'
13491 hardcode_libdir_flag_spec_F77='-L$libdir'
13492 hardcode_minus_L_F77=yes
13493 # see comment about different semantics on the GNU ld section
13494 ld_shlibs_F77=no
13495 ;;
13496
13497 bsdi4*)
13498 export_dynamic_flag_spec_F77=-rdynamic
13499 ;;
13500
13501 cygwin* | mingw* | pw32*)
13502 # When not using gcc, we currently assume that we are using
13503 # Microsoft Visual C++.
13504 # hardcode_libdir_flag_spec is actually meaningless, as there is
13505 # no search path for DLLs.
13506 hardcode_libdir_flag_spec_F77=' '
13507 allow_undefined_flag_F77=unsupported
13508 # Tell ltmain to make .lib files, not .a files.
13509 libext=lib
13510 # Tell ltmain to make .dll files, not .so files.
13511 shrext_cmds=".dll"
13512 # FIXME: Setting linknames here is a bad hack.
13513 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13514 # The linker will automatically build a .lib file if we build a DLL.
13515 old_archive_From_new_cmds_F77='true'
13516 # FIXME: Should let the user specify the lib program.
13517 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13518 fix_srcfile_path='`cygpath -w "$srcfile"`'
13519 enable_shared_with_static_runtimes_F77=yes
13520 ;;
13521
13522 darwin* | rhapsody*)
13523 if test "$GXX" = yes ; then
13524 archive_cmds_need_lc_F77=no
13525 case "$host_os" in
13526 rhapsody* | darwin1.[012])
13527 allow_undefined_flag_F77='-undefined suppress'
13528 ;;
13529 *) # Darwin 1.3 on
13530 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13531 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13532 else
13533 case ${MACOSX_DEPLOYMENT_TARGET} in
13534 10.[012])
13535 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13536 ;;
13537 10.*)
13538 allow_undefined_flag_F77='-undefined dynamic_lookup'
13539 ;;
13540 esac
13541 fi
13542 ;;
13543 esac
13544 lt_int_apple_cc_single_mod=no
13545 output_verbose_link_cmd='echo'
13546 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13547 lt_int_apple_cc_single_mod=yes
13548 fi
13549 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13550 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13551 else
13552 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13553 fi
13554 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13557 archive_expsym_cmds_F77='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}'
13558 else
13559 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13560 fi
13561 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}'
13562 hardcode_direct_F77=no
13563 hardcode_automatic_F77=yes
13564 hardcode_shlibpath_var_F77=unsupported
13565 whole_archive_flag_spec_F77='-all_load $convenience'
13566 link_all_deplibs_F77=yes
13567 else
13568 ld_shlibs_F77=no
13569 fi
13570 ;;
13571
13572 dgux*)
13573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13574 hardcode_libdir_flag_spec_F77='-L$libdir'
13575 hardcode_shlibpath_var_F77=no
13576 ;;
13577
13578 freebsd1*)
13579 ld_shlibs_F77=no
13580 ;;
13581
13582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13583 # support. Future versions do this automatically, but an explicit c++rt0.o
13584 # does not break anything, and helps significantly (at the cost of a little
13585 # extra space).
13586 freebsd2.2*)
13587 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13588 hardcode_libdir_flag_spec_F77='-R$libdir'
13589 hardcode_direct_F77=yes
13590 hardcode_shlibpath_var_F77=no
13591 ;;
13592
13593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13594 freebsd2*)
13595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_direct_F77=yes
13597 hardcode_minus_L_F77=yes
13598 hardcode_shlibpath_var_F77=no
13599 ;;
13600
13601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13602 freebsd* | kfreebsd*-gnu)
13603 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13604 hardcode_libdir_flag_spec_F77='-R$libdir'
13605 hardcode_direct_F77=yes
13606 hardcode_shlibpath_var_F77=no
13607 ;;
13608
13609 hpux9*)
13610 if test "$GCC" = yes; then
13611 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'
13612 else
13613 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'
13614 fi
13615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13616 hardcode_libdir_separator_F77=:
13617 hardcode_direct_F77=yes
13618
13619 # hardcode_minus_L: Not really in the search PATH,
13620 # but as the default location of the library.
13621 hardcode_minus_L_F77=yes
13622 export_dynamic_flag_spec_F77='${wl}-E'
13623 ;;
13624
13625 hpux10* | hpux11*)
13626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13627 case "$host_cpu" in
13628 hppa*64*|ia64*)
13629 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13630 ;;
13631 *)
13632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13633 ;;
13634 esac
13635 else
13636 case "$host_cpu" in
13637 hppa*64*|ia64*)
13638 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13639 ;;
13640 *)
13641 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13642 ;;
13643 esac
13644 fi
13645 if test "$with_gnu_ld" = no; then
13646 case "$host_cpu" in
13647 hppa*64*)
13648 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13649 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13650 hardcode_libdir_separator_F77=:
13651 hardcode_direct_F77=no
13652 hardcode_shlibpath_var_F77=no
13653 ;;
13654 ia64*)
13655 hardcode_libdir_flag_spec_F77='-L$libdir'
13656 hardcode_direct_F77=no
13657 hardcode_shlibpath_var_F77=no
13658
13659 # hardcode_minus_L: Not really in the search PATH,
13660 # but as the default location of the library.
13661 hardcode_minus_L_F77=yes
13662 ;;
13663 *)
13664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13665 hardcode_libdir_separator_F77=:
13666 hardcode_direct_F77=yes
13667 export_dynamic_flag_spec_F77='${wl}-E'
13668
13669 # hardcode_minus_L: Not really in the search PATH,
13670 # but as the default location of the library.
13671 hardcode_minus_L_F77=yes
13672 ;;
13673 esac
13674 fi
13675 ;;
13676
13677 irix5* | irix6* | nonstopux*)
13678 if test "$GCC" = yes; then
13679 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'
13680 else
13681 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'
13682 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13683 fi
13684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13685 hardcode_libdir_separator_F77=:
13686 link_all_deplibs_F77=yes
13687 ;;
13688
13689 netbsd*)
13690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13691 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13692 else
13693 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13694 fi
13695 hardcode_libdir_flag_spec_F77='-R$libdir'
13696 hardcode_direct_F77=yes
13697 hardcode_shlibpath_var_F77=no
13698 ;;
13699
13700 newsos6)
13701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13702 hardcode_direct_F77=yes
13703 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13704 hardcode_libdir_separator_F77=:
13705 hardcode_shlibpath_var_F77=no
13706 ;;
13707
13708 openbsd*)
13709 hardcode_direct_F77=yes
13710 hardcode_shlibpath_var_F77=no
13711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13712 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13713 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13714 export_dynamic_flag_spec_F77='${wl}-E'
13715 else
13716 case $host_os in
13717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13719 hardcode_libdir_flag_spec_F77='-R$libdir'
13720 ;;
13721 *)
13722 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13723 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13724 ;;
13725 esac
13726 fi
13727 ;;
13728
13729 os2*)
13730 hardcode_libdir_flag_spec_F77='-L$libdir'
13731 hardcode_minus_L_F77=yes
13732 allow_undefined_flag_F77=unsupported
13733 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'
13734 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13735 ;;
13736
13737 osf3*)
13738 if test "$GCC" = yes; then
13739 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13740 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'
13741 else
13742 allow_undefined_flag_F77=' -expect_unresolved \*'
13743 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'
13744 fi
13745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13746 hardcode_libdir_separator_F77=:
13747 ;;
13748
13749 osf4* | osf5*) # as osf3* with the addition of -msym flag
13750 if test "$GCC" = yes; then
13751 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13752 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'
13753 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13754 else
13755 allow_undefined_flag_F77=' -expect_unresolved \*'
13756 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'
13757 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~
13758 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13759
13760 # Both c and cxx compiler support -rpath directly
13761 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13762 fi
13763 hardcode_libdir_separator_F77=:
13764 ;;
13765
13766 sco3.2v5*)
13767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13768 hardcode_shlibpath_var_F77=no
13769 export_dynamic_flag_spec_F77='${wl}-Bexport'
13770 runpath_var=LD_RUN_PATH
13771 hardcode_runpath_var=yes
13772 ;;
13773
13774 solaris*)
13775 no_undefined_flag_F77=' -z text'
13776 if test "$GCC" = yes; then
13777 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13779 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13780 else
13781 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13783 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13784 fi
13785 hardcode_libdir_flag_spec_F77='-R$libdir'
13786 hardcode_shlibpath_var_F77=no
13787 case $host_os in
13788 solaris2.[0-5] | solaris2.[0-5].*) ;;
13789 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13790 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13791 esac
13792 link_all_deplibs_F77=yes
13793 ;;
13794
13795 sunos4*)
13796 if test "x$host_vendor" = xsequent; then
13797 # Use $CC to link under sequent, because it throws in some extra .o
13798 # files that make .init and .fini sections work.
13799 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13800 else
13801 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13802 fi
13803 hardcode_libdir_flag_spec_F77='-L$libdir'
13804 hardcode_direct_F77=yes
13805 hardcode_minus_L_F77=yes
13806 hardcode_shlibpath_var_F77=no
13807 ;;
13808
13809 sysv4)
13810 case $host_vendor in
13811 sni)
13812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813 hardcode_direct_F77=yes # is this really true???
13814 ;;
13815 siemens)
13816 ## LD is ld it makes a PLAMLIB
13817 ## CC just makes a GrossModule.
13818 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13819 reload_cmds_F77='$CC -r -o $output$reload_objs'
13820 hardcode_direct_F77=no
13821 ;;
13822 motorola)
13823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13825 ;;
13826 esac
13827 runpath_var='LD_RUN_PATH'
13828 hardcode_shlibpath_var_F77=no
13829 ;;
13830
13831 sysv4.3*)
13832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833 hardcode_shlibpath_var_F77=no
13834 export_dynamic_flag_spec_F77='-Bexport'
13835 ;;
13836
13837 sysv4*MP*)
13838 if test -d /usr/nec; then
13839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840 hardcode_shlibpath_var_F77=no
13841 runpath_var=LD_RUN_PATH
13842 hardcode_runpath_var=yes
13843 ld_shlibs_F77=yes
13844 fi
13845 ;;
13846
13847 sysv4.2uw2*)
13848 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_direct_F77=yes
13850 hardcode_minus_L_F77=no
13851 hardcode_shlibpath_var_F77=no
13852 hardcode_runpath_var=yes
13853 runpath_var=LD_RUN_PATH
13854 ;;
13855
13856 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13857 no_undefined_flag_F77='${wl}-z ${wl}text'
13858 if test "$GCC" = yes; then
13859 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 else
13861 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13862 fi
13863 runpath_var='LD_RUN_PATH'
13864 hardcode_shlibpath_var_F77=no
13865 ;;
13866
13867 sysv5*)
13868 no_undefined_flag_F77=' -z text'
13869 # $CC -shared without GNU ld will not create a library from C++
13870 # object files and a static libstdc++, better avoid it by now
13871 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13873 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13874 hardcode_libdir_flag_spec_F77=
13875 hardcode_shlibpath_var_F77=no
13876 runpath_var='LD_RUN_PATH'
13877 ;;
13878
13879 uts4*)
13880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 hardcode_libdir_flag_spec_F77='-L$libdir'
13882 hardcode_shlibpath_var_F77=no
13883 ;;
13884
13885 *)
13886 ld_shlibs_F77=no
13887 ;;
13888 esac
13889 fi
13890
13891echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13892echo "${ECHO_T}$ld_shlibs_F77" >&6
13893test "$ld_shlibs_F77" = no && can_build_shared=no
13894
13895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13896if test "$GCC" = yes; then
13897 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13898fi
13899
13900#
13901# Do we need to explicitly link libc?
13902#
13903case "x$archive_cmds_need_lc_F77" in
13904x|xyes)
13905 # Assume -lc should be added
13906 archive_cmds_need_lc_F77=yes
13907
13908 if test "$enable_shared" = yes && test "$GCC" = yes; then
13909 case $archive_cmds_F77 in
13910 *'~'*)
13911 # FIXME: we may have to deal with multi-command sequences.
13912 ;;
13913 '$CC '*)
13914 # Test whether the compiler implicitly links with -lc since on some
13915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13916 # to ld, don't add -lc before -lgcc.
13917 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13918echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13919 $rm conftest*
13920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13921
13922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13923 (eval $ac_compile) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } 2>conftest.err; then
13927 soname=conftest
13928 lib=conftest
13929 libobjs=conftest.$ac_objext
13930 deplibs=
13931 wl=$lt_prog_compiler_wl_F77
13932 compiler_flags=-v
13933 linker_flags=-v
13934 verstring=
13935 output_objdir=.
13936 libname=conftest
13937 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13938 allow_undefined_flag_F77=
13939 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13940 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }
13944 then
13945 archive_cmds_need_lc_F77=no
13946 else
13947 archive_cmds_need_lc_F77=yes
13948 fi
13949 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13950 else
13951 cat conftest.err 1>&5
13952 fi
13953 $rm conftest*
13954 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13955echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13956 ;;
13957 esac
13958 fi
13959 ;;
13960esac
13961
13962echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13963echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13964library_names_spec=
13965libname_spec='lib$name'
13966soname_spec=
13967shrext_cmds=".so"
13968postinstall_cmds=
13969postuninstall_cmds=
13970finish_cmds=
13971finish_eval=
13972shlibpath_var=
13973shlibpath_overrides_runpath=unknown
13974version_type=none
13975dynamic_linker="$host_os ld.so"
13976sys_lib_dlsearch_path_spec="/lib /usr/lib"
13977if test "$GCC" = yes; then
13978 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13979 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13980 # if the path contains ";" then we assume it to be the separator
13981 # otherwise default to the standard path separator (i.e. ":") - it is
13982 # assumed that no part of a normal pathname contains ";" but that should
13983 # okay in the real world where ";" in dirpaths is itself problematic.
13984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13985 else
13986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13987 fi
13988else
13989 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13990fi
13991need_lib_prefix=unknown
13992hardcode_into_libs=no
13993
13994# when you set need_version to no, make sure it does not cause -set_version
13995# flags to be left without arguments
13996need_version=unknown
13997
13998case $host_os in
13999aix3*)
14000 version_type=linux
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14002 shlibpath_var=LIBPATH
14003
14004 # AIX 3 has no versioning support, so we append a major version to the name.
14005 soname_spec='${libname}${release}${shared_ext}$major'
14006 ;;
14007
14008aix4* | aix5*)
14009 version_type=linux
14010 need_lib_prefix=no
14011 need_version=no
14012 hardcode_into_libs=yes
14013 if test "$host_cpu" = ia64; then
14014 # AIX 5 supports IA64
14015 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14016 shlibpath_var=LD_LIBRARY_PATH
14017 else
14018 # With GCC up to 2.95.x, collect2 would create an import file
14019 # for dependence libraries. The import file would start with
14020 # the line `#! .'. This would cause the generated library to
14021 # depend on `.', always an invalid library. This was fixed in
14022 # development snapshots of GCC prior to 3.0.
14023 case $host_os in
14024 aix4 | aix4.[01] | aix4.[01].*)
14025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14026 echo ' yes '
14027 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14028 :
14029 else
14030 can_build_shared=no
14031 fi
14032 ;;
14033 esac
14034 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14035 # soname into executable. Probably we can add versioning support to
14036 # collect2, so additional links can be useful in future.
14037 if test "$aix_use_runtimelinking" = yes; then
14038 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14039 # instead of lib<name>.a to let people know that these are not
14040 # typical AIX shared libraries.
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14042 else
14043 # We preserve .a as extension for shared libraries through AIX4.2
14044 # and later when we are not doing run time linking.
14045 library_names_spec='${libname}${release}.a $libname.a'
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 fi
14048 shlibpath_var=LIBPATH
14049 fi
14050 ;;
14051
14052amigaos*)
14053 library_names_spec='$libname.ixlibrary $libname.a'
14054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14055 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'
14056 ;;
14057
14058beos*)
14059 library_names_spec='${libname}${shared_ext}'
14060 dynamic_linker="$host_os ld.so"
14061 shlibpath_var=LIBRARY_PATH
14062 ;;
14063
14064bsdi4*)
14065 version_type=linux
14066 need_version=no
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14070 shlibpath_var=LD_LIBRARY_PATH
14071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14073 # the default ld.so.conf also contains /usr/contrib/lib and
14074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14075 # libtool to hard-code these into programs
14076 ;;
14077
14078cygwin* | mingw* | pw32*)
14079 version_type=windows
14080 shrext_cmds=".dll"
14081 need_version=no
14082 need_lib_prefix=no
14083
14084 case $GCC,$host_os in
14085 yes,cygwin* | yes,mingw* | yes,pw32*)
14086 library_names_spec='$libname.dll.a'
14087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14088 postinstall_cmds='base_file=`basename \${file}`~
14089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14090 dldir=$destdir/`dirname \$dlpath`~
14091 test -d \$dldir || mkdir -p \$dldir~
14092 $install_prog $dir/$dlname \$dldir/$dlname'
14093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14094 dlpath=$dir/\$dldll~
14095 $rm \$dlpath'
14096 shlibpath_overrides_runpath=yes
14097
14098 case $host_os in
14099 cygwin*)
14100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14102 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14103 ;;
14104 mingw*)
14105 # MinGW DLLs use traditional 'lib' prefix
14106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14108 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14109 # It is most probably a Windows format PATH printed by
14110 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14111 # path with ; separators, and with drive letters. We can handle the
14112 # drive letters (cygwin fileutils understands them), so leave them,
14113 # especially as we might pass files found there to a mingw objdump,
14114 # which wouldn't understand a cygwinified path. Ahh.
14115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14116 else
14117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14118 fi
14119 ;;
14120 pw32*)
14121 # pw32 DLLs use 'pw' prefix rather than 'lib'
14122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14123 ;;
14124 esac
14125 ;;
14126
14127 *)
14128 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14129 ;;
14130 esac
14131 dynamic_linker='Win32 ld.exe'
14132 # FIXME: first we should search . and the directory the executable is in
14133 shlibpath_var=PATH
14134 ;;
14135
14136darwin* | rhapsody*)
14137 dynamic_linker="$host_os dyld"
14138 version_type=darwin
14139 need_lib_prefix=no
14140 need_version=no
14141 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14142 soname_spec='${libname}${release}${major}$shared_ext'
14143 shlibpath_overrides_runpath=yes
14144 shlibpath_var=DYLD_LIBRARY_PATH
14145 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14146 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14147 if test "$GCC" = yes; then
14148 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"`
14149 else
14150 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14151 fi
14152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14153 ;;
14154
14155dgux*)
14156 version_type=linux
14157 need_lib_prefix=no
14158 need_version=no
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 shlibpath_var=LD_LIBRARY_PATH
14162 ;;
14163
14164freebsd1*)
14165 dynamic_linker=no
14166 ;;
14167
14168kfreebsd*-gnu)
14169 version_type=linux
14170 need_lib_prefix=no
14171 need_version=no
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14173 soname_spec='${libname}${release}${shared_ext}$major'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 shlibpath_overrides_runpath=no
14176 hardcode_into_libs=yes
14177 dynamic_linker='GNU ld.so'
14178 ;;
14179
14180freebsd*)
14181 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14182 version_type=freebsd-$objformat
14183 case $version_type in
14184 freebsd-elf*)
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14186 need_version=no
14187 need_lib_prefix=no
14188 ;;
14189 freebsd-*)
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14191 need_version=yes
14192 ;;
14193 esac
14194 shlibpath_var=LD_LIBRARY_PATH
14195 case $host_os in
14196 freebsd2*)
14197 shlibpath_overrides_runpath=yes
14198 ;;
14199 freebsd3.01* | freebsdelf3.01*)
14200 shlibpath_overrides_runpath=yes
14201 hardcode_into_libs=yes
14202 ;;
14203 *) # from 3.2 on
14204 shlibpath_overrides_runpath=no
14205 hardcode_into_libs=yes
14206 ;;
14207 esac
14208 ;;
14209
14210gnu*)
14211 version_type=linux
14212 need_lib_prefix=no
14213 need_version=no
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14215 soname_spec='${libname}${release}${shared_ext}$major'
14216 shlibpath_var=LD_LIBRARY_PATH
14217 hardcode_into_libs=yes
14218 ;;
14219
14220hpux9* | hpux10* | hpux11*)
14221 # Give a soname corresponding to the major version so that dld.sl refuses to
14222 # link against other versions.
14223 version_type=sunos
14224 need_lib_prefix=no
14225 need_version=no
14226 case "$host_cpu" in
14227 ia64*)
14228 shrext_cmds='.so'
14229 hardcode_into_libs=yes
14230 dynamic_linker="$host_os dld.so"
14231 shlibpath_var=LD_LIBRARY_PATH
14232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 soname_spec='${libname}${release}${shared_ext}$major'
14235 if test "X$HPUX_IA64_MODE" = X32; then
14236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14237 else
14238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14239 fi
14240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14241 ;;
14242 hppa*64*)
14243 shrext_cmds='.sl'
14244 hardcode_into_libs=yes
14245 dynamic_linker="$host_os dld.sl"
14246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249 soname_spec='${libname}${release}${shared_ext}$major'
14250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14252 ;;
14253 *)
14254 shrext_cmds='.sl'
14255 dynamic_linker="$host_os dld.sl"
14256 shlibpath_var=SHLIB_PATH
14257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 ;;
14261 esac
14262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14263 postinstall_cmds='chmod 555 $lib'
14264 ;;
14265
14266irix5* | irix6* | nonstopux*)
14267 case $host_os in
14268 nonstopux*) version_type=nonstopux ;;
14269 *)
14270 if test "$lt_cv_prog_gnu_ld" = yes; then
14271 version_type=linux
14272 else
14273 version_type=irix
14274 fi ;;
14275 esac
14276 need_lib_prefix=no
14277 need_version=no
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14280 case $host_os in
14281 irix5* | nonstopux*)
14282 libsuff= shlibsuff=
14283 ;;
14284 *)
14285 case $LD in # libtool.m4 will add one of these switches to LD
14286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14287 libsuff= shlibsuff= libmagic=32-bit;;
14288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14289 libsuff=32 shlibsuff=N32 libmagic=N32;;
14290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14292 *) libsuff= shlibsuff= libmagic=never-match;;
14293 esac
14294 ;;
14295 esac
14296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14297 shlibpath_overrides_runpath=no
14298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14300 hardcode_into_libs=yes
14301 ;;
14302
14303# No shared lib support for Linux oldld, aout, or coff.
14304linux*oldld* | linux*aout* | linux*coff*)
14305 dynamic_linker=no
14306 ;;
14307
14308# This must be Linux ELF.
14309linux*)
14310 version_type=linux
14311 need_lib_prefix=no
14312 need_version=no
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath=no
14318 # This implies no fast_install, which is unacceptable.
14319 # Some rework will be needed to allow for fast_install
14320 # before this can be enabled.
14321 hardcode_into_libs=yes
14322
14323 # find out which ABI we are using
14324 libsuff=
14325 case "$host_cpu" in
14326 x86_64*|s390x*|powerpc64*)
14327 echo '#line 14327 "configure"' > conftest.$ac_ext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; then
14333 case `/usr/bin/file conftest.$ac_objext` in
14334 *64-bit*)
14335 libsuff=64
14336 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14337 ;;
14338 esac
14339 fi
14340 rm -rf conftest*
14341 ;;
14342 esac
14343
14344 # Append ld.so.conf contents to the search path
14345 if test -f /etc/ld.so.conf; then
14346 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14347 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14348 fi
14349
14350 # We used to test for /lib/ld.so.1 and disable shared libraries on
14351 # powerpc, because MkLinux only supported shared libraries with the
14352 # GNU dynamic linker. Since this was broken with cross compilers,
14353 # most powerpc-linux boxes support dynamic linking these days and
14354 # people can always --disable-shared, the test was removed, and we
14355 # assume the GNU/Linux dynamic linker is in use.
14356 dynamic_linker='GNU/Linux ld.so'
14357 ;;
14358
14359knetbsd*-gnu)
14360 version_type=linux
14361 need_lib_prefix=no
14362 need_version=no
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 shlibpath_var=LD_LIBRARY_PATH
14366 shlibpath_overrides_runpath=no
14367 hardcode_into_libs=yes
14368 dynamic_linker='GNU ld.so'
14369 ;;
14370
14371netbsd*)
14372 version_type=sunos
14373 need_lib_prefix=no
14374 need_version=no
14375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14378 dynamic_linker='NetBSD (a.out) ld.so'
14379 else
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 dynamic_linker='NetBSD ld.elf_so'
14383 fi
14384 shlibpath_var=LD_LIBRARY_PATH
14385 shlibpath_overrides_runpath=yes
14386 hardcode_into_libs=yes
14387 ;;
14388
14389newsos6)
14390 version_type=linux
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392 shlibpath_var=LD_LIBRARY_PATH
14393 shlibpath_overrides_runpath=yes
14394 ;;
14395
14396nto-qnx*)
14397 version_type=linux
14398 need_lib_prefix=no
14399 need_version=no
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 soname_spec='${libname}${release}${shared_ext}$major'
14402 shlibpath_var=LD_LIBRARY_PATH
14403 shlibpath_overrides_runpath=yes
14404 ;;
14405
14406openbsd*)
14407 version_type=sunos
14408 need_lib_prefix=no
14409 need_version=yes
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14414 case $host_os in
14415 openbsd2.[89] | openbsd2.[89].*)
14416 shlibpath_overrides_runpath=no
14417 ;;
14418 *)
14419 shlibpath_overrides_runpath=yes
14420 ;;
14421 esac
14422 else
14423 shlibpath_overrides_runpath=yes
14424 fi
14425 ;;
14426
14427os2*)
14428 libname_spec='$name'
14429 shrext_cmds=".dll"
14430 need_lib_prefix=no
14431 library_names_spec='$libname${shared_ext} $libname.a'
14432 dynamic_linker='OS/2 ld.exe'
14433 shlibpath_var=LIBPATH
14434 ;;
14435
14436osf3* | osf4* | osf5*)
14437 version_type=osf
14438 need_lib_prefix=no
14439 need_version=no
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14445 ;;
14446
14447sco3.2v5*)
14448 version_type=osf
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 ;;
14453
14454solaris*)
14455 version_type=linux
14456 need_lib_prefix=no
14457 need_version=no
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath=yes
14462 hardcode_into_libs=yes
14463 # ldd complains unless libraries are executable
14464 postinstall_cmds='chmod +x $lib'
14465 ;;
14466
14467sunos4*)
14468 version_type=sunos
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 shlibpath_overrides_runpath=yes
14473 if test "$with_gnu_ld" = yes; then
14474 need_lib_prefix=no
14475 fi
14476 need_version=yes
14477 ;;
14478
14479sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14480 version_type=linux
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 case $host_vendor in
14485 sni)
14486 shlibpath_overrides_runpath=no
14487 need_lib_prefix=no
14488 export_dynamic_flag_spec='${wl}-Blargedynsym'
14489 runpath_var=LD_RUN_PATH
14490 ;;
14491 siemens)
14492 need_lib_prefix=no
14493 ;;
14494 motorola)
14495 need_lib_prefix=no
14496 need_version=no
14497 shlibpath_overrides_runpath=no
14498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14499 ;;
14500 esac
14501 ;;
14502
14503sysv4*MP*)
14504 if test -d /usr/nec ;then
14505 version_type=linux
14506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14507 soname_spec='$libname${shared_ext}.$major'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 fi
14510 ;;
14511
14512uts4*)
14513 version_type=linux
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 ;;
14518
14519*)
14520 dynamic_linker=no
14521 ;;
14522esac
14523echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14524echo "${ECHO_T}$dynamic_linker" >&6
14525test "$dynamic_linker" = no && can_build_shared=no
14526
14527echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14528echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14529hardcode_action_F77=
14530if test -n "$hardcode_libdir_flag_spec_F77" || \
14531 test -n "$runpath_var F77" || \
14532 test "X$hardcode_automatic_F77"="Xyes" ; then
14533
14534 # We can hardcode non-existant directories.
14535 if test "$hardcode_direct_F77" != no &&
14536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14537 # have to relink, otherwise we might link with an installed library
14538 # when we should be linking with a yet-to-be-installed one
14539 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14540 test "$hardcode_minus_L_F77" != no; then
14541 # Linking always hardcodes the temporary library directory.
14542 hardcode_action_F77=relink
14543 else
14544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14545 hardcode_action_F77=immediate
14546 fi
14547else
14548 # We cannot hardcode anything, or else we can only hardcode existing
14549 # directories.
14550 hardcode_action_F77=unsupported
14551fi
14552echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14553echo "${ECHO_T}$hardcode_action_F77" >&6
14554
14555if test "$hardcode_action_F77" = relink; then
14556 # Fast installation is not supported
14557 enable_fast_install=no
14558elif test "$shlibpath_overrides_runpath" = yes ||
14559 test "$enable_shared" = no; then
14560 # Fast installation is not necessary
14561 enable_fast_install=needless
14562fi
14563
14564striplib=
14565old_striplib=
14566echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14567echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14568if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14569 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14570 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14571 echo "$as_me:$LINENO: result: yes" >&5
14572echo "${ECHO_T}yes" >&6
14573else
14574# FIXME - insert some real tests, host_os isn't really good enough
14575 case $host_os in
14576 darwin*)
14577 if test -n "$STRIP" ; then
14578 striplib="$STRIP -x"
14579 echo "$as_me:$LINENO: result: yes" >&5
14580echo "${ECHO_T}yes" >&6
14581 else
14582 echo "$as_me:$LINENO: result: no" >&5
14583echo "${ECHO_T}no" >&6
14584fi
14585 ;;
14586 *)
14587 echo "$as_me:$LINENO: result: no" >&5
14588echo "${ECHO_T}no" >&6
14589 ;;
14590 esac
14591fi
14592
14593
14594
14595# The else clause should only fire when bootstrapping the
14596# libtool distribution, otherwise you forgot to ship ltmain.sh
14597# with your package, and you will get complaints that there are
14598# no rules to generate ltmain.sh.
14599if test -f "$ltmain"; then
14600 # See if we are running on zsh, and set the options which allow our commands through
14601 # without removal of \ escapes.
14602 if test -n "${ZSH_VERSION+set}" ; then
14603 setopt NO_GLOB_SUBST
14604 fi
14605 # Now quote all the things that may contain metacharacters while being
14606 # careful not to overquote the AC_SUBSTed values. We take copies of the
14607 # variables and quote the copies for generation of the libtool script.
14608 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14609 SED SHELL STRIP \
14610 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14611 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14612 deplibs_check_method reload_flag reload_cmds need_locks \
14613 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14614 lt_cv_sys_global_symbol_to_c_name_address \
14615 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14616 old_postinstall_cmds old_postuninstall_cmds \
14617 compiler_F77 \
14618 CC_F77 \
14619 LD_F77 \
14620 lt_prog_compiler_wl_F77 \
14621 lt_prog_compiler_pic_F77 \
14622 lt_prog_compiler_static_F77 \
14623 lt_prog_compiler_no_builtin_flag_F77 \
14624 export_dynamic_flag_spec_F77 \
14625 thread_safe_flag_spec_F77 \
14626 whole_archive_flag_spec_F77 \
14627 enable_shared_with_static_runtimes_F77 \
14628 old_archive_cmds_F77 \
14629 old_archive_from_new_cmds_F77 \
14630 predep_objects_F77 \
14631 postdep_objects_F77 \
14632 predeps_F77 \
14633 postdeps_F77 \
14634 compiler_lib_search_path_F77 \
14635 archive_cmds_F77 \
14636 archive_expsym_cmds_F77 \
14637 postinstall_cmds_F77 \
14638 postuninstall_cmds_F77 \
14639 old_archive_from_expsyms_cmds_F77 \
14640 allow_undefined_flag_F77 \
14641 no_undefined_flag_F77 \
14642 export_symbols_cmds_F77 \
14643 hardcode_libdir_flag_spec_F77 \
14644 hardcode_libdir_flag_spec_ld_F77 \
14645 hardcode_libdir_separator_F77 \
14646 hardcode_automatic_F77 \
14647 module_cmds_F77 \
14648 module_expsym_cmds_F77 \
14649 lt_cv_prog_compiler_c_o_F77 \
14650 exclude_expsyms_F77 \
14651 include_expsyms_F77; do
14652
14653 case $var in
14654 old_archive_cmds_F77 | \
14655 old_archive_from_new_cmds_F77 | \
14656 archive_cmds_F77 | \
14657 archive_expsym_cmds_F77 | \
14658 module_cmds_F77 | \
14659 module_expsym_cmds_F77 | \
14660 old_archive_from_expsyms_cmds_F77 | \
14661 export_symbols_cmds_F77 | \
14662 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14663 postinstall_cmds | postuninstall_cmds | \
14664 old_postinstall_cmds | old_postuninstall_cmds | \
14665 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14666 # Double-quote double-evaled strings.
14667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14668 ;;
14669 *)
14670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14671 ;;
14672 esac
14673 done
14674
14675 case $lt_echo in
14676 *'\$0 --fallback-echo"')
14677 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14678 ;;
14679 esac
14680
14681cfgfile="$ofile"
14682
14683 cat <<__EOF__ >> "$cfgfile"
14684# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14685
14686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14687
14688# Shell to use when invoking shell scripts.
14689SHELL=$lt_SHELL
14690
14691# Whether or not to build shared libraries.
14692build_libtool_libs=$enable_shared
14693
14694# Whether or not to build static libraries.
14695build_old_libs=$enable_static
14696
14697# Whether or not to add -lc for building shared libraries.
14698build_libtool_need_lc=$archive_cmds_need_lc_F77
14699
14700# Whether or not to disallow shared libs when runtime libs are static
14701allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14702
14703# Whether or not to optimize for fast installation.
14704fast_install=$enable_fast_install
14705
14706# The host system.
14707host_alias=$host_alias
14708host=$host
14709
14710# An echo program that does not interpret backslashes.
14711echo=$lt_echo
14712
14713# The archiver.
14714AR=$lt_AR
14715AR_FLAGS=$lt_AR_FLAGS
14716
14717# A C compiler.
14718LTCC=$lt_LTCC
14719
14720# A language-specific compiler.
14721CC=$lt_compiler_F77
14722
14723# Is the compiler the GNU C compiler?
14724with_gcc=$GCC_F77
14725
14726# An ERE matcher.
14727EGREP=$lt_EGREP
14728
14729# The linker used to build libraries.
14730LD=$lt_LD_F77
14731
14732# Whether we need hard or soft links.
14733LN_S=$lt_LN_S
14734
14735# A BSD-compatible nm program.
14736NM=$lt_NM
14737
14738# A symbol stripping program
14739STRIP=$lt_STRIP
14740
14741# Used to examine libraries when file_magic_cmd begins "file"
14742MAGIC_CMD=$MAGIC_CMD
14743
14744# Used on cygwin: DLL creation program.
14745DLLTOOL="$DLLTOOL"
14746
14747# Used on cygwin: object dumper.
14748OBJDUMP="$OBJDUMP"
14749
14750# Used on cygwin: assembler.
14751AS="$AS"
14752
14753# The name of the directory that contains temporary libtool files.
14754objdir=$objdir
14755
14756# How to create reloadable object files.
14757reload_flag=$lt_reload_flag
14758reload_cmds=$lt_reload_cmds
14759
14760# How to pass a linker flag through the compiler.
14761wl=$lt_lt_prog_compiler_wl_F77
14762
14763# Object file suffix (normally "o").
14764objext="$ac_objext"
14765
14766# Old archive suffix (normally "a").
14767libext="$libext"
14768
14769# Shared library suffix (normally ".so").
14770shrext_cmds='$shrext_cmds'
14771
14772# Executable file suffix (normally "").
14773exeext="$exeext"
14774
14775# Additional compiler flags for building library objects.
14776pic_flag=$lt_lt_prog_compiler_pic_F77
14777pic_mode=$pic_mode
14778
14779# What is the maximum length of a command?
14780max_cmd_len=$lt_cv_sys_max_cmd_len
14781
14782# Does compiler simultaneously support -c and -o options?
14783compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14784
14785# Must we lock files when doing compilation ?
14786need_locks=$lt_need_locks
14787
14788# Do we need the lib prefix for modules?
14789need_lib_prefix=$need_lib_prefix
14790
14791# Do we need a version for libraries?
14792need_version=$need_version
14793
14794# Whether dlopen is supported.
14795dlopen_support=$enable_dlopen
14796
14797# Whether dlopen of programs is supported.
14798dlopen_self=$enable_dlopen_self
14799
14800# Whether dlopen of statically linked programs is supported.
14801dlopen_self_static=$enable_dlopen_self_static
14802
14803# Compiler flag to prevent dynamic linking.
14804link_static_flag=$lt_lt_prog_compiler_static_F77
14805
14806# Compiler flag to turn off builtin functions.
14807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14808
14809# Compiler flag to allow reflexive dlopens.
14810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14811
14812# Compiler flag to generate shared objects directly from archives.
14813whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14814
14815# Compiler flag to generate thread-safe objects.
14816thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14817
14818# Library versioning type.
14819version_type=$version_type
14820
14821# Format of library name prefix.
14822libname_spec=$lt_libname_spec
14823
14824# List of archive names. First name is the real one, the rest are links.
14825# The last name is the one that the linker finds with -lNAME.
14826library_names_spec=$lt_library_names_spec
14827
14828# The coded name of the library, if different from the real name.
14829soname_spec=$lt_soname_spec
14830
14831# Commands used to build and install an old-style archive.
14832RANLIB=$lt_RANLIB
14833old_archive_cmds=$lt_old_archive_cmds_F77
14834old_postinstall_cmds=$lt_old_postinstall_cmds
14835old_postuninstall_cmds=$lt_old_postuninstall_cmds
14836
14837# Create an old-style archive from a shared archive.
14838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14839
14840# Create a temporary old-style archive to link instead of a shared archive.
14841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14842
14843# Commands used to build and install a shared archive.
14844archive_cmds=$lt_archive_cmds_F77
14845archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14846postinstall_cmds=$lt_postinstall_cmds
14847postuninstall_cmds=$lt_postuninstall_cmds
14848
14849# Commands used to build a loadable module (assumed same as above if empty)
14850module_cmds=$lt_module_cmds_F77
14851module_expsym_cmds=$lt_module_expsym_cmds_F77
14852
14853# Commands to strip libraries.
14854old_striplib=$lt_old_striplib
14855striplib=$lt_striplib
14856
14857# Dependencies to place before the objects being linked to create a
14858# shared library.
14859predep_objects=$lt_predep_objects_F77
14860
14861# Dependencies to place after the objects being linked to create a
14862# shared library.
14863postdep_objects=$lt_postdep_objects_F77
14864
14865# Dependencies to place before the objects being linked to create a
14866# shared library.
14867predeps=$lt_predeps_F77
14868
14869# Dependencies to place after the objects being linked to create a
14870# shared library.
14871postdeps=$lt_postdeps_F77
14872
14873# The library search path used internally by the compiler when linking
14874# a shared library.
14875compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14876
14877# Method to check whether dependent libraries are shared objects.
14878deplibs_check_method=$lt_deplibs_check_method
14879
14880# Command to use when deplibs_check_method == file_magic.
14881file_magic_cmd=$lt_file_magic_cmd
14882
14883# Flag that allows shared libraries with undefined symbols to be built.
14884allow_undefined_flag=$lt_allow_undefined_flag_F77
14885
14886# Flag that forces no undefined symbols.
14887no_undefined_flag=$lt_no_undefined_flag_F77
14888
14889# Commands used to finish a libtool library installation in a directory.
14890finish_cmds=$lt_finish_cmds
14891
14892# Same as above, but a single script fragment to be evaled but not shown.
14893finish_eval=$lt_finish_eval
14894
14895# Take the output of nm and produce a listing of raw symbols and C names.
14896global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14897
14898# Transform the output of nm in a proper C declaration
14899global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14900
14901# Transform the output of nm in a C name address pair
14902global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14903
14904# This is the shared library runtime path variable.
14905runpath_var=$runpath_var
14906
14907# This is the shared library path variable.
14908shlibpath_var=$shlibpath_var
14909
14910# Is shlibpath searched before the hard-coded library search path?
14911shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14912
14913# How to hardcode a shared library path into an executable.
14914hardcode_action=$hardcode_action_F77
14915
14916# Whether we should hardcode library paths into libraries.
14917hardcode_into_libs=$hardcode_into_libs
14918
14919# Flag to hardcode \$libdir into a binary during linking.
14920# This must work even if \$libdir does not exist.
14921hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14922
14923# If ld is used when linking, flag to hardcode \$libdir into
14924# a binary during linking. This must work even if \$libdir does
14925# not exist.
14926hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14927
14928# Whether we need a single -rpath flag with a separated argument.
14929hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14930
14931# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14932# resulting binary.
14933hardcode_direct=$hardcode_direct_F77
14934
14935# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14936# resulting binary.
14937hardcode_minus_L=$hardcode_minus_L_F77
14938
14939# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14940# the resulting binary.
14941hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14942
14943# Set to yes if building a shared library automatically hardcodes DIR into the library
14944# and all subsequent libraries and executables linked against it.
14945hardcode_automatic=$hardcode_automatic_F77
14946
14947# Variables whose values should be saved in libtool wrapper scripts and
14948# restored at relink time.
14949variables_saved_for_relink="$variables_saved_for_relink"
14950
14951# Whether libtool must link a program against all its dependency libraries.
14952link_all_deplibs=$link_all_deplibs_F77
14953
14954# Compile-time system search path for libraries
14955sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14956
14957# Run-time system search path for libraries
14958sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14959
14960# Fix the shell variable \$srcfile for the compiler.
14961fix_srcfile_path="$fix_srcfile_path_F77"
14962
14963# Set to yes if exported symbols are required.
14964always_export_symbols=$always_export_symbols_F77
14965
14966# The commands to list exported symbols.
14967export_symbols_cmds=$lt_export_symbols_cmds_F77
14968
14969# The commands to extract the exported symbol list from a shared archive.
14970extract_expsyms_cmds=$lt_extract_expsyms_cmds
14971
14972# Symbols that should not be listed in the preloaded symbols.
14973exclude_expsyms=$lt_exclude_expsyms_F77
14974
14975# Symbols that must always be exported.
14976include_expsyms=$lt_include_expsyms_F77
14977
14978# ### END LIBTOOL TAG CONFIG: $tagname
14979
14980__EOF__
14981
14982
14983else
14984 # If there is no Makefile yet, we rely on a make rule to execute
14985 # `config.status --recheck' to rerun these tests and create the
14986 # libtool script then.
14987 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14988 if test -f "$ltmain_in"; then
14989 test -f Makefile && make "$ltmain"
14990 fi
14991fi
14992
14993
14994ac_ext=c
14995ac_cpp='$CPP $CPPFLAGS'
14996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14998ac_compiler_gnu=$ac_cv_c_compiler_gnu
14999
15000CC="$lt_save_CC"
15001
15002 else
15003 tagname=""
15004 fi
15005 ;;
15006
15007 GCJ)
15008 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15009
15010
15011
15012# Source file extension for Java test sources.
15013ac_ext=java
15014
15015# Object file extension for compiled Java test sources.
15016objext=o
15017objext_GCJ=$objext
15018
15019# Code to be used in simple compile tests
15020lt_simple_compile_test_code="class foo {}\n"
15021
15022# Code to be used in simple link tests
15023lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15024
15025# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15026
15027# If no C compiler was specified, use CC.
15028LTCC=${LTCC-"$CC"}
15029
15030# Allow CC to be a program name with arguments.
15031compiler=$CC
15032
15033
15034# Allow CC to be a program name with arguments.
15035lt_save_CC="$CC"
15036CC=${GCJ-"gcj"}
15037compiler=$CC
15038compiler_GCJ=$CC
15039
15040# GCJ did not exist at the time GCC didn't implicitly link libc in.
15041archive_cmds_need_lc_GCJ=no
15042
15043
15044lt_prog_compiler_no_builtin_flag_GCJ=
15045
15046if test "$GCC" = yes; then
15047 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15048
15049
15050echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15051echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15052if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054else
15055 lt_cv_prog_compiler_rtti_exceptions=no
15056 ac_outfile=conftest.$ac_objext
15057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15058 lt_compiler_flag="-fno-rtti -fno-exceptions"
15059 # Insert the option either (1) after the last *FLAGS variable, or
15060 # (2) before a word containing "conftest.", or (3) at the end.
15061 # Note that $ac_compile itself does not contain backslashes and begins
15062 # with a dollar sign (not a hyphen), so the echo should work correctly.
15063 # The option is referenced via a variable to avoid confusing sed.
15064 lt_compile=`echo "$ac_compile" | $SED \
15065 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15067 -e 's:$: $lt_compiler_flag:'`
15068 (eval echo "\"\$as_me:15068: $lt_compile\"" >&5)
15069 (eval "$lt_compile" 2>conftest.err)
15070 ac_status=$?
15071 cat conftest.err >&5
15072 echo "$as_me:15072: \$? = $ac_status" >&5
15073 if (exit $ac_status) && test -s "$ac_outfile"; then
15074 # The compiler can only warn and ignore the option if not recognized
15075 # So say no if there are warnings
15076 if test ! -s conftest.err; then
15077 lt_cv_prog_compiler_rtti_exceptions=yes
15078 fi
15079 fi
15080 $rm conftest*
15081
15082fi
15083echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15084echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15085
15086if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15087 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15088else
15089 :
15090fi
15091
15092fi
15093
15094lt_prog_compiler_wl_GCJ=
15095lt_prog_compiler_pic_GCJ=
15096lt_prog_compiler_static_GCJ=
15097
15098echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15099echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15100
15101 if test "$GCC" = yes; then
15102 lt_prog_compiler_wl_GCJ='-Wl,'
15103 lt_prog_compiler_static_GCJ='-static'
15104
15105 case $host_os in
15106 aix*)
15107 # All AIX code is PIC.
15108 if test "$host_cpu" = ia64; then
15109 # AIX 5 now supports IA64 processor
15110 lt_prog_compiler_static_GCJ='-Bstatic'
15111 fi
15112 ;;
15113
15114 amigaos*)
15115 # FIXME: we need at least 68020 code to build shared libraries, but
15116 # adding the `-m68020' flag to GCC prevents building anything better,
15117 # like `-m68040'.
15118 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15119 ;;
15120
15121 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15122 # PIC is the default for these OSes.
15123 ;;
15124
15125 mingw* | pw32* | os2*)
15126 # This hack is so that the source file can tell whether it is being
15127 # built for inclusion in a dll (and should export symbols for example).
15128 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15129 ;;
15130
15131 darwin* | rhapsody*)
15132 # PIC is the default on this platform
15133 # Common symbols not allowed in MH_DYLIB files
15134 lt_prog_compiler_pic_GCJ='-fno-common'
15135 ;;
15136
15137 msdosdjgpp*)
15138 # Just because we use GCC doesn't mean we suddenly get shared libraries
15139 # on systems that don't support them.
15140 lt_prog_compiler_can_build_shared_GCJ=no
15141 enable_shared=no
15142 ;;
15143
15144 sysv4*MP*)
15145 if test -d /usr/nec; then
15146 lt_prog_compiler_pic_GCJ=-Kconform_pic
15147 fi
15148 ;;
15149
15150 hpux*)
15151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15152 # not for PA HP-UX.
15153 case "$host_cpu" in
15154 hppa*64*|ia64*)
15155 # +Z the default
15156 ;;
15157 *)
15158 lt_prog_compiler_pic_GCJ='-fPIC'
15159 ;;
15160 esac
15161 ;;
15162
15163 *)
15164 lt_prog_compiler_pic_GCJ='-fPIC'
15165 ;;
15166 esac
15167 else
15168 # PORTME Check for flag to pass linker flags through the system compiler.
15169 case $host_os in
15170 aix*)
15171 lt_prog_compiler_wl_GCJ='-Wl,'
15172 if test "$host_cpu" = ia64; then
15173 # AIX 5 now supports IA64 processor
15174 lt_prog_compiler_static_GCJ='-Bstatic'
15175 else
15176 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15177 fi
15178 ;;
15179
15180 mingw* | pw32* | os2*)
15181 # This hack is so that the source file can tell whether it is being
15182 # built for inclusion in a dll (and should export symbols for example).
15183 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15184 ;;
15185
15186 hpux9* | hpux10* | hpux11*)
15187 lt_prog_compiler_wl_GCJ='-Wl,'
15188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15189 # not for PA HP-UX.
15190 case "$host_cpu" in
15191 hppa*64*|ia64*)
15192 # +Z the default
15193 ;;
15194 *)
15195 lt_prog_compiler_pic_GCJ='+Z'
15196 ;;
15197 esac
15198 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15199 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15200 ;;
15201
15202 irix5* | irix6* | nonstopux*)
15203 lt_prog_compiler_wl_GCJ='-Wl,'
15204 # PIC (with -KPIC) is the default.
15205 lt_prog_compiler_static_GCJ='-non_shared'
15206 ;;
15207
15208 newsos6)
15209 lt_prog_compiler_pic_GCJ='-KPIC'
15210 lt_prog_compiler_static_GCJ='-Bstatic'
15211 ;;
15212
15213 linux*)
15214 case $CC in
15215 icc* | ecc*)
15216 lt_prog_compiler_wl_GCJ='-Wl,'
15217 lt_prog_compiler_pic_GCJ='-KPIC'
15218 lt_prog_compiler_static_GCJ='-static'
15219 ;;
15220 ccc*)
15221 lt_prog_compiler_wl_GCJ='-Wl,'
15222 # All Alpha code is PIC.
15223 lt_prog_compiler_static_GCJ='-non_shared'
15224 ;;
15225 esac
15226 ;;
15227
15228 osf3* | osf4* | osf5*)
15229 lt_prog_compiler_wl_GCJ='-Wl,'
15230 # All OSF/1 code is PIC.
15231 lt_prog_compiler_static_GCJ='-non_shared'
15232 ;;
15233
15234 sco3.2v5*)
15235 lt_prog_compiler_pic_GCJ='-Kpic'
15236 lt_prog_compiler_static_GCJ='-dn'
15237 ;;
15238
15239 solaris*)
15240 lt_prog_compiler_wl_GCJ='-Wl,'
15241 lt_prog_compiler_pic_GCJ='-KPIC'
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15243 ;;
15244
15245 sunos4*)
15246 lt_prog_compiler_wl_GCJ='-Qoption ld '
15247 lt_prog_compiler_pic_GCJ='-PIC'
15248 lt_prog_compiler_static_GCJ='-Bstatic'
15249 ;;
15250
15251 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15252 lt_prog_compiler_wl_GCJ='-Wl,'
15253 lt_prog_compiler_pic_GCJ='-KPIC'
15254 lt_prog_compiler_static_GCJ='-Bstatic'
15255 ;;
15256
15257 sysv4*MP*)
15258 if test -d /usr/nec ;then
15259 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15260 lt_prog_compiler_static_GCJ='-Bstatic'
15261 fi
15262 ;;
15263
15264 uts4*)
15265 lt_prog_compiler_pic_GCJ='-pic'
15266 lt_prog_compiler_static_GCJ='-Bstatic'
15267 ;;
15268
15269 *)
15270 lt_prog_compiler_can_build_shared_GCJ=no
15271 ;;
15272 esac
15273 fi
15274
15275echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15276echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15277
15278#
15279# Check to make sure the PIC flag actually works.
15280#
15281if test -n "$lt_prog_compiler_pic_GCJ"; then
15282
15283echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15284echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15285if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287else
15288 lt_prog_compiler_pic_works_GCJ=no
15289 ac_outfile=conftest.$ac_objext
15290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15291 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15292 # Insert the option either (1) after the last *FLAGS variable, or
15293 # (2) before a word containing "conftest.", or (3) at the end.
15294 # Note that $ac_compile itself does not contain backslashes and begins
15295 # with a dollar sign (not a hyphen), so the echo should work correctly.
15296 # The option is referenced via a variable to avoid confusing sed.
15297 lt_compile=`echo "$ac_compile" | $SED \
15298 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15300 -e 's:$: $lt_compiler_flag:'`
15301 (eval echo "\"\$as_me:15301: $lt_compile\"" >&5)
15302 (eval "$lt_compile" 2>conftest.err)
15303 ac_status=$?
15304 cat conftest.err >&5
15305 echo "$as_me:15305: \$? = $ac_status" >&5
15306 if (exit $ac_status) && test -s "$ac_outfile"; then
15307 # The compiler can only warn and ignore the option if not recognized
15308 # So say no if there are warnings
15309 if test ! -s conftest.err; then
15310 lt_prog_compiler_pic_works_GCJ=yes
15311 fi
15312 fi
15313 $rm conftest*
15314
15315fi
15316echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15317echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15318
15319if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15320 case $lt_prog_compiler_pic_GCJ in
15321 "" | " "*) ;;
15322 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15323 esac
15324else
15325 lt_prog_compiler_pic_GCJ=
15326 lt_prog_compiler_can_build_shared_GCJ=no
15327fi
15328
15329fi
15330case "$host_os" in
15331 # For platforms which do not support PIC, -DPIC is meaningless:
15332 *djgpp*)
15333 lt_prog_compiler_pic_GCJ=
15334 ;;
15335 *)
15336 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15337 ;;
15338esac
15339
15340echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15341echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15342if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15344else
15345 lt_cv_prog_compiler_c_o_GCJ=no
15346 $rm -r conftest 2>/dev/null
15347 mkdir conftest
15348 cd conftest
15349 mkdir out
15350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15351
15352 lt_compiler_flag="-o out/conftest2.$ac_objext"
15353 # Insert the option either (1) after the last *FLAGS variable, or
15354 # (2) before a word containing "conftest.", or (3) at the end.
15355 # Note that $ac_compile itself does not contain backslashes and begins
15356 # with a dollar sign (not a hyphen), so the echo should work correctly.
15357 lt_compile=`echo "$ac_compile" | $SED \
15358 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15360 -e 's:$: $lt_compiler_flag:'`
15361 (eval echo "\"\$as_me:15361: $lt_compile\"" >&5)
15362 (eval "$lt_compile" 2>out/conftest.err)
15363 ac_status=$?
15364 cat out/conftest.err >&5
15365 echo "$as_me:15365: \$? = $ac_status" >&5
15366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15367 then
15368 # The compiler can only warn and ignore the option if not recognized
15369 # So say no if there are warnings
15370 if test ! -s out/conftest.err; then
15371 lt_cv_prog_compiler_c_o_GCJ=yes
15372 fi
15373 fi
15374 chmod u+w .
15375 $rm conftest*
15376 # SGI C++ compiler will create directory out/ii_files/ for
15377 # template instantiation
15378 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15379 $rm out/* && rmdir out
15380 cd ..
15381 rmdir conftest
15382 $rm conftest*
15383
15384fi
15385echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15386echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15387
15388
15389hard_links="nottested"
15390if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15391 # do not overwrite the value of need_locks provided by the user
15392 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15393echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15394 hard_links=yes
15395 $rm conftest*
15396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397 touch conftest.a
15398 ln conftest.a conftest.b 2>&5 || hard_links=no
15399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400 echo "$as_me:$LINENO: result: $hard_links" >&5
15401echo "${ECHO_T}$hard_links" >&6
15402 if test "$hard_links" = no; then
15403 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15404echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15405 need_locks=warn
15406 fi
15407else
15408 need_locks=no
15409fi
15410
15411echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15412echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15413
15414 runpath_var=
15415 allow_undefined_flag_GCJ=
15416 enable_shared_with_static_runtimes_GCJ=no
15417 archive_cmds_GCJ=
15418 archive_expsym_cmds_GCJ=
15419 old_archive_From_new_cmds_GCJ=
15420 old_archive_from_expsyms_cmds_GCJ=
15421 export_dynamic_flag_spec_GCJ=
15422 whole_archive_flag_spec_GCJ=
15423 thread_safe_flag_spec_GCJ=
15424 hardcode_libdir_flag_spec_GCJ=
15425 hardcode_libdir_flag_spec_ld_GCJ=
15426 hardcode_libdir_separator_GCJ=
15427 hardcode_direct_GCJ=no
15428 hardcode_minus_L_GCJ=no
15429 hardcode_shlibpath_var_GCJ=unsupported
15430 link_all_deplibs_GCJ=unknown
15431 hardcode_automatic_GCJ=no
15432 module_cmds_GCJ=
15433 module_expsym_cmds_GCJ=
15434 always_export_symbols_GCJ=no
15435 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15436 # include_expsyms should be a list of space-separated symbols to be *always*
15437 # included in the symbol list
15438 include_expsyms_GCJ=
15439 # exclude_expsyms can be an extended regexp of symbols to exclude
15440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15442 # as well as any symbol that contains `d'.
15443 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15445 # platforms (ab)use it in PIC code, but their linkers get confused if
15446 # the symbol is explicitly referenced. Since portable code cannot
15447 # rely on this symbol name, it's probably fine to never include it in
15448 # preloaded symbol tables.
15449 extract_expsyms_cmds=
15450
15451 case $host_os in
15452 cygwin* | mingw* | pw32*)
15453 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15454 # When not using gcc, we currently assume that we are using
15455 # Microsoft Visual C++.
15456 if test "$GCC" != yes; then
15457 with_gnu_ld=no
15458 fi
15459 ;;
15460 openbsd*)
15461 with_gnu_ld=no
15462 ;;
15463 esac
15464
15465 ld_shlibs_GCJ=yes
15466 if test "$with_gnu_ld" = yes; then
15467 # If archive_cmds runs LD, not CC, wlarc should be empty
15468 wlarc='${wl}'
15469
15470 # See if GNU ld supports shared libraries.
15471 case $host_os in
15472 aix3* | aix4* | aix5*)
15473 # On AIX/PPC, the GNU linker is very broken
15474 if test "$host_cpu" != ia64; then
15475 ld_shlibs_GCJ=no
15476 cat <<EOF 1>&2
15477
15478*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15479*** to be unable to reliably create shared libraries on AIX.
15480*** Therefore, libtool is disabling shared libraries support. If you
15481*** really care for shared libraries, you may want to modify your PATH
15482*** so that a non-GNU linker is found, and then restart.
15483
15484EOF
15485 fi
15486 ;;
15487
15488 amigaos*)
15489 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)'
15490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15491 hardcode_minus_L_GCJ=yes
15492
15493 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15494 # that the semantics of dynamic libraries on AmigaOS, at least up
15495 # to version 4, is to share data among multiple programs linked
15496 # with the same dynamic library. Since this doesn't match the
15497 # behavior of shared libraries on other platforms, we can't use
15498 # them.
15499 ld_shlibs_GCJ=no
15500 ;;
15501
15502 beos*)
15503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15504 allow_undefined_flag_GCJ=unsupported
15505 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15506 # support --undefined. This deserves some investigation. FIXME
15507 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508 else
15509 ld_shlibs_GCJ=no
15510 fi
15511 ;;
15512
15513 cygwin* | mingw* | pw32*)
15514 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15515 # as there is no search path for DLLs.
15516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15517 allow_undefined_flag_GCJ=unsupported
15518 always_export_symbols_GCJ=no
15519 enable_shared_with_static_runtimes_GCJ=yes
15520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15521
15522 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15523 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15524 # If the export-symbols file already is a .def file (1st line
15525 # is EXPORTS), use it as is; otherwise, prepend...
15526 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15527 cp $export_symbols $output_objdir/$soname.def;
15528 else
15529 echo EXPORTS > $output_objdir/$soname.def;
15530 cat $export_symbols >> $output_objdir/$soname.def;
15531 fi~
15532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15533 else
15534 ld_shlibs=no
15535 fi
15536 ;;
15537
15538 netbsd*)
15539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15540 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15541 wlarc=
15542 else
15543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545 fi
15546 ;;
15547
15548 solaris* | sysv5*)
15549 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15550 ld_shlibs_GCJ=no
15551 cat <<EOF 1>&2
15552
15553*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15554*** create shared libraries on Solaris systems. Therefore, libtool
15555*** is disabling shared libraries support. We urge you to upgrade GNU
15556*** binutils to release 2.9.1 or newer. Another option is to modify
15557*** your PATH or compiler configuration so that the native linker is
15558*** used, and then restart.
15559
15560EOF
15561 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15564 else
15565 ld_shlibs_GCJ=no
15566 fi
15567 ;;
15568
15569 sunos4*)
15570 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 wlarc=
15572 hardcode_direct_GCJ=yes
15573 hardcode_shlibpath_var_GCJ=no
15574 ;;
15575
15576 linux*)
15577 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15578 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15579 archive_cmds_GCJ="$tmp_archive_cmds"
15580 supports_anon_versioning=no
15581 case `$LD -v 2>/dev/null` in
15582 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15585 *\ 2.11.*) ;; # other 2.11 versions
15586 *) supports_anon_versioning=yes ;;
15587 esac
15588 if test $supports_anon_versioning = yes; then
15589 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15590cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15591$echo "local: *; };" >> $output_objdir/$libname.ver~
15592 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15593 else
15594 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15595 fi
15596 else
15597 ld_shlibs_GCJ=no
15598 fi
15599 ;;
15600
15601 *)
15602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15605 else
15606 ld_shlibs_GCJ=no
15607 fi
15608 ;;
15609 esac
15610
15611 if test "$ld_shlibs_GCJ" = yes; then
15612 runpath_var=LD_RUN_PATH
15613 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15614 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15615 # ancient GNU ld didn't support --whole-archive et. al.
15616 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15617 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15618 else
15619 whole_archive_flag_spec_GCJ=
15620 fi
15621 fi
15622 else
15623 # PORTME fill in a description of your system's linker (not GNU ld)
15624 case $host_os in
15625 aix3*)
15626 allow_undefined_flag_GCJ=unsupported
15627 always_export_symbols_GCJ=yes
15628 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'
15629 # Note: this linker hardcodes the directories in LIBPATH if there
15630 # are no directories specified by -L.
15631 hardcode_minus_L_GCJ=yes
15632 if test "$GCC" = yes && test -z "$link_static_flag"; then
15633 # Neither direct hardcoding nor static linking is supported with a
15634 # broken collect2.
15635 hardcode_direct_GCJ=unsupported
15636 fi
15637 ;;
15638
15639 aix4* | aix5*)
15640 if test "$host_cpu" = ia64; then
15641 # On IA64, the linker does run time linking by default, so we don't
15642 # have to do anything special.
15643 aix_use_runtimelinking=no
15644 exp_sym_flag='-Bexport'
15645 no_entry_flag=""
15646 else
15647 # If we're using GNU nm, then we don't want the "-C" option.
15648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15649 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15650 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'
15651 else
15652 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'
15653 fi
15654 aix_use_runtimelinking=no
15655
15656 # Test if we are trying to use run time linking or normal
15657 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15658 # need to do runtime linking.
15659 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15660 for ld_flag in $LDFLAGS; do
15661 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15662 aix_use_runtimelinking=yes
15663 break
15664 fi
15665 done
15666 esac
15667
15668 exp_sym_flag='-bexport'
15669 no_entry_flag='-bnoentry'
15670 fi
15671
15672 # When large executables or shared objects are built, AIX ld can
15673 # have problems creating the table of contents. If linking a library
15674 # or program results in "error TOC overflow" add -mminimal-toc to
15675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15677
15678 archive_cmds_GCJ=''
15679 hardcode_direct_GCJ=yes
15680 hardcode_libdir_separator_GCJ=':'
15681 link_all_deplibs_GCJ=yes
15682
15683 if test "$GCC" = yes; then
15684 case $host_os in aix4.012|aix4.012.*)
15685 # We only want to do this on AIX 4.2 and lower, the check
15686 # below for broken collect2 doesn't work under 4.3+
15687 collect2name=`${CC} -print-prog-name=collect2`
15688 if test -f "$collect2name" && \
15689 strings "$collect2name" | grep resolve_lib_name >/dev/null
15690 then
15691 # We have reworked collect2
15692 hardcode_direct_GCJ=yes
15693 else
15694 # We have old collect2
15695 hardcode_direct_GCJ=unsupported
15696 # It fails to find uninstalled libraries when the uninstalled
15697 # path is not listed in the libpath. Setting hardcode_minus_L
15698 # to unsupported forces relinking
15699 hardcode_minus_L_GCJ=yes
15700 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15701 hardcode_libdir_separator_GCJ=
15702 fi
15703 esac
15704 shared_flag='-shared'
15705 else
15706 # not using gcc
15707 if test "$host_cpu" = ia64; then
15708 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15709 # chokes on -Wl,-G. The following line is correct:
15710 shared_flag='-G'
15711 else
15712 if test "$aix_use_runtimelinking" = yes; then
15713 shared_flag='${wl}-G'
15714 else
15715 shared_flag='${wl}-bM:SRE'
15716 fi
15717 fi
15718 fi
15719
15720 # It seems that -bexpall does not export symbols beginning with
15721 # underscore (_), so it is better to generate a list of symbols to export.
15722 always_export_symbols_GCJ=yes
15723 if test "$aix_use_runtimelinking" = yes; then
15724 # Warning - without using the other runtime loading flags (-brtl),
15725 # -berok will link without error, but may produce a broken library.
15726 allow_undefined_flag_GCJ='-berok'
15727 # Determine the default libpath from the value encoded in an empty executable.
15728 cat >conftest.$ac_ext <<_ACEOF
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
15734
15735int
15736main ()
15737{
15738
15739 ;
15740 return 0;
15741}
15742_ACEOF
15743rm -f conftest.$ac_objext conftest$ac_exeext
15744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>conftest.er1
15746 ac_status=$?
15747 grep -v '^ *+' conftest.er1 >conftest.err
15748 rm -f conftest.er1
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } &&
15752 { ac_try='test -z "$ac_c_werror_flag"
15753 || test ! -s conftest.err'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest$ac_exeext'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765
15766aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15767}'`
15768# Check for a 64-bit object if we didn't find anything.
15769if 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; }
15770}'`; fi
15771else
15772 echo "$as_me: failed program was:" >&5
15773sed 's/^/| /' conftest.$ac_ext >&5
15774
15775fi
15776rm -f conftest.err conftest.$ac_objext \
15777 conftest$ac_exeext conftest.$ac_ext
15778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15779
15780 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15781 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15782 else
15783 if test "$host_cpu" = ia64; then
15784 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15785 allow_undefined_flag_GCJ="-z nodefs"
15786 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15787 else
15788 # Determine the default libpath from the value encoded in an empty executable.
15789 cat >conftest.$ac_ext <<_ACEOF
15790/* confdefs.h. */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h. */
15795
15796int
15797main ()
15798{
15799
15800 ;
15801 return 0;
15802}
15803_ACEOF
15804rm -f conftest.$ac_objext conftest$ac_exeext
15805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -z "$ac_c_werror_flag"
15814 || test ! -s conftest.err'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; } &&
15820 { ac_try='test -s conftest$ac_exeext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826
15827aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15828}'`
15829# Check for a 64-bit object if we didn't find anything.
15830if 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; }
15831}'`; fi
15832else
15833 echo "$as_me: failed program was:" >&5
15834sed 's/^/| /' conftest.$ac_ext >&5
15835
15836fi
15837rm -f conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15840
15841 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15842 # Warning - without using the other run time loading flags,
15843 # -berok will link without error, but may produce a broken library.
15844 no_undefined_flag_GCJ=' ${wl}-bernotok'
15845 allow_undefined_flag_GCJ=' ${wl}-berok'
15846 # -bexpall does not export symbols beginning with underscore (_)
15847 always_export_symbols_GCJ=yes
15848 # Exported symbols can be pulled into shared objects from archives
15849 whole_archive_flag_spec_GCJ=' '
15850 archive_cmds_need_lc_GCJ=yes
15851 # This is similar to how AIX traditionally builds it's shared libraries.
15852 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15853 fi
15854 fi
15855 ;;
15856
15857 amigaos*)
15858 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)'
15859 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15860 hardcode_minus_L_GCJ=yes
15861 # see comment about different semantics on the GNU ld section
15862 ld_shlibs_GCJ=no
15863 ;;
15864
15865 bsdi4*)
15866 export_dynamic_flag_spec_GCJ=-rdynamic
15867 ;;
15868
15869 cygwin* | mingw* | pw32*)
15870 # When not using gcc, we currently assume that we are using
15871 # Microsoft Visual C++.
15872 # hardcode_libdir_flag_spec is actually meaningless, as there is
15873 # no search path for DLLs.
15874 hardcode_libdir_flag_spec_GCJ=' '
15875 allow_undefined_flag_GCJ=unsupported
15876 # Tell ltmain to make .lib files, not .a files.
15877 libext=lib
15878 # Tell ltmain to make .dll files, not .so files.
15879 shrext_cmds=".dll"
15880 # FIXME: Setting linknames here is a bad hack.
15881 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15882 # The linker will automatically build a .lib file if we build a DLL.
15883 old_archive_From_new_cmds_GCJ='true'
15884 # FIXME: Should let the user specify the lib program.
15885 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15886 fix_srcfile_path='`cygpath -w "$srcfile"`'
15887 enable_shared_with_static_runtimes_GCJ=yes
15888 ;;
15889
15890 darwin* | rhapsody*)
15891 if test "$GXX" = yes ; then
15892 archive_cmds_need_lc_GCJ=no
15893 case "$host_os" in
15894 rhapsody* | darwin1.[012])
15895 allow_undefined_flag_GCJ='-undefined suppress'
15896 ;;
15897 *) # Darwin 1.3 on
15898 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15899 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15900 else
15901 case ${MACOSX_DEPLOYMENT_TARGET} in
15902 10.[012])
15903 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15904 ;;
15905 10.*)
15906 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15907 ;;
15908 esac
15909 fi
15910 ;;
15911 esac
15912 lt_int_apple_cc_single_mod=no
15913 output_verbose_link_cmd='echo'
15914 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15915 lt_int_apple_cc_single_mod=yes
15916 fi
15917 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15918 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15919 else
15920 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15921 fi
15922 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15923 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15924 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15925 archive_expsym_cmds_GCJ='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}'
15926 else
15927 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15928 fi
15929 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}'
15930 hardcode_direct_GCJ=no
15931 hardcode_automatic_GCJ=yes
15932 hardcode_shlibpath_var_GCJ=unsupported
15933 whole_archive_flag_spec_GCJ='-all_load $convenience'
15934 link_all_deplibs_GCJ=yes
15935 else
15936 ld_shlibs_GCJ=no
15937 fi
15938 ;;
15939
15940 dgux*)
15941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15943 hardcode_shlibpath_var_GCJ=no
15944 ;;
15945
15946 freebsd1*)
15947 ld_shlibs_GCJ=no
15948 ;;
15949
15950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15951 # support. Future versions do this automatically, but an explicit c++rt0.o
15952 # does not break anything, and helps significantly (at the cost of a little
15953 # extra space).
15954 freebsd2.2*)
15955 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15956 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15957 hardcode_direct_GCJ=yes
15958 hardcode_shlibpath_var_GCJ=no
15959 ;;
15960
15961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15962 freebsd2*)
15963 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15964 hardcode_direct_GCJ=yes
15965 hardcode_minus_L_GCJ=yes
15966 hardcode_shlibpath_var_GCJ=no
15967 ;;
15968
15969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15970 freebsd* | kfreebsd*-gnu)
15971 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15972 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15973 hardcode_direct_GCJ=yes
15974 hardcode_shlibpath_var_GCJ=no
15975 ;;
15976
15977 hpux9*)
15978 if test "$GCC" = yes; then
15979 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'
15980 else
15981 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'
15982 fi
15983 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15984 hardcode_libdir_separator_GCJ=:
15985 hardcode_direct_GCJ=yes
15986
15987 # hardcode_minus_L: Not really in the search PATH,
15988 # but as the default location of the library.
15989 hardcode_minus_L_GCJ=yes
15990 export_dynamic_flag_spec_GCJ='${wl}-E'
15991 ;;
15992
15993 hpux10* | hpux11*)
15994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15995 case "$host_cpu" in
15996 hppa*64*|ia64*)
15997 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15998 ;;
15999 *)
16000 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16001 ;;
16002 esac
16003 else
16004 case "$host_cpu" in
16005 hppa*64*|ia64*)
16006 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16007 ;;
16008 *)
16009 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16010 ;;
16011 esac
16012 fi
16013 if test "$with_gnu_ld" = no; then
16014 case "$host_cpu" in
16015 hppa*64*)
16016 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16017 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16018 hardcode_libdir_separator_GCJ=:
16019 hardcode_direct_GCJ=no
16020 hardcode_shlibpath_var_GCJ=no
16021 ;;
16022 ia64*)
16023 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16024 hardcode_direct_GCJ=no
16025 hardcode_shlibpath_var_GCJ=no
16026
16027 # hardcode_minus_L: Not really in the search PATH,
16028 # but as the default location of the library.
16029 hardcode_minus_L_GCJ=yes
16030 ;;
16031 *)
16032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16033 hardcode_libdir_separator_GCJ=:
16034 hardcode_direct_GCJ=yes
16035 export_dynamic_flag_spec_GCJ='${wl}-E'
16036
16037 # hardcode_minus_L: Not really in the search PATH,
16038 # but as the default location of the library.
16039 hardcode_minus_L_GCJ=yes
16040 ;;
16041 esac
16042 fi
16043 ;;
16044
16045 irix5* | irix6* | nonstopux*)
16046 if test "$GCC" = yes; then
16047 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'
16048 else
16049 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'
16050 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16051 fi
16052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16053 hardcode_libdir_separator_GCJ=:
16054 link_all_deplibs_GCJ=yes
16055 ;;
16056
16057 netbsd*)
16058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16059 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16060 else
16061 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16062 fi
16063 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16064 hardcode_direct_GCJ=yes
16065 hardcode_shlibpath_var_GCJ=no
16066 ;;
16067
16068 newsos6)
16069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070 hardcode_direct_GCJ=yes
16071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16072 hardcode_libdir_separator_GCJ=:
16073 hardcode_shlibpath_var_GCJ=no
16074 ;;
16075
16076 openbsd*)
16077 hardcode_direct_GCJ=yes
16078 hardcode_shlibpath_var_GCJ=no
16079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16080 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16081 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16082 export_dynamic_flag_spec_GCJ='${wl}-E'
16083 else
16084 case $host_os in
16085 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16086 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16088 ;;
16089 *)
16090 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16091 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16092 ;;
16093 esac
16094 fi
16095 ;;
16096
16097 os2*)
16098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16099 hardcode_minus_L_GCJ=yes
16100 allow_undefined_flag_GCJ=unsupported
16101 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'
16102 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16103 ;;
16104
16105 osf3*)
16106 if test "$GCC" = yes; then
16107 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16108 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'
16109 else
16110 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16111 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'
16112 fi
16113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16114 hardcode_libdir_separator_GCJ=:
16115 ;;
16116
16117 osf4* | osf5*) # as osf3* with the addition of -msym flag
16118 if test "$GCC" = yes; then
16119 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16120 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'
16121 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16122 else
16123 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16124 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'
16125 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~
16126 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16127
16128 # Both c and cxx compiler support -rpath directly
16129 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16130 fi
16131 hardcode_libdir_separator_GCJ=:
16132 ;;
16133
16134 sco3.2v5*)
16135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_shlibpath_var_GCJ=no
16137 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16138 runpath_var=LD_RUN_PATH
16139 hardcode_runpath_var=yes
16140 ;;
16141
16142 solaris*)
16143 no_undefined_flag_GCJ=' -z text'
16144 if test "$GCC" = yes; then
16145 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16146 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16147 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16148 else
16149 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16152 fi
16153 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16154 hardcode_shlibpath_var_GCJ=no
16155 case $host_os in
16156 solaris2.[0-5] | solaris2.[0-5].*) ;;
16157 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16158 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16159 esac
16160 link_all_deplibs_GCJ=yes
16161 ;;
16162
16163 sunos4*)
16164 if test "x$host_vendor" = xsequent; then
16165 # Use $CC to link under sequent, because it throws in some extra .o
16166 # files that make .init and .fini sections work.
16167 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16168 else
16169 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16170 fi
16171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16172 hardcode_direct_GCJ=yes
16173 hardcode_minus_L_GCJ=yes
16174 hardcode_shlibpath_var_GCJ=no
16175 ;;
16176
16177 sysv4)
16178 case $host_vendor in
16179 sni)
16180 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16181 hardcode_direct_GCJ=yes # is this really true???
16182 ;;
16183 siemens)
16184 ## LD is ld it makes a PLAMLIB
16185 ## CC just makes a GrossModule.
16186 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16187 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16188 hardcode_direct_GCJ=no
16189 ;;
16190 motorola)
16191 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16193 ;;
16194 esac
16195 runpath_var='LD_RUN_PATH'
16196 hardcode_shlibpath_var_GCJ=no
16197 ;;
16198
16199 sysv4.3*)
16200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201 hardcode_shlibpath_var_GCJ=no
16202 export_dynamic_flag_spec_GCJ='-Bexport'
16203 ;;
16204
16205 sysv4*MP*)
16206 if test -d /usr/nec; then
16207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_shlibpath_var_GCJ=no
16209 runpath_var=LD_RUN_PATH
16210 hardcode_runpath_var=yes
16211 ld_shlibs_GCJ=yes
16212 fi
16213 ;;
16214
16215 sysv4.2uw2*)
16216 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16217 hardcode_direct_GCJ=yes
16218 hardcode_minus_L_GCJ=no
16219 hardcode_shlibpath_var_GCJ=no
16220 hardcode_runpath_var=yes
16221 runpath_var=LD_RUN_PATH
16222 ;;
16223
16224 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16225 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16226 if test "$GCC" = yes; then
16227 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 else
16229 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16230 fi
16231 runpath_var='LD_RUN_PATH'
16232 hardcode_shlibpath_var_GCJ=no
16233 ;;
16234
16235 sysv5*)
16236 no_undefined_flag_GCJ=' -z text'
16237 # $CC -shared without GNU ld will not create a library from C++
16238 # object files and a static libstdc++, better avoid it by now
16239 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16242 hardcode_libdir_flag_spec_GCJ=
16243 hardcode_shlibpath_var_GCJ=no
16244 runpath_var='LD_RUN_PATH'
16245 ;;
16246
16247 uts4*)
16248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16249 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16250 hardcode_shlibpath_var_GCJ=no
16251 ;;
16252
16253 *)
16254 ld_shlibs_GCJ=no
16255 ;;
16256 esac
16257 fi
16258
16259echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16260echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16261test "$ld_shlibs_GCJ" = no && can_build_shared=no
16262
16263variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16264if test "$GCC" = yes; then
16265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16266fi
16267
16268#
16269# Do we need to explicitly link libc?
16270#
16271case "x$archive_cmds_need_lc_GCJ" in
16272x|xyes)
16273 # Assume -lc should be added
16274 archive_cmds_need_lc_GCJ=yes
16275
16276 if test "$enable_shared" = yes && test "$GCC" = yes; then
16277 case $archive_cmds_GCJ in
16278 *'~'*)
16279 # FIXME: we may have to deal with multi-command sequences.
16280 ;;
16281 '$CC '*)
16282 # Test whether the compiler implicitly links with -lc since on some
16283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16284 # to ld, don't add -lc before -lgcc.
16285 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16286echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16287 $rm conftest*
16288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16289
16290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16291 (eval $ac_compile) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } 2>conftest.err; then
16295 soname=conftest
16296 lib=conftest
16297 libobjs=conftest.$ac_objext
16298 deplibs=
16299 wl=$lt_prog_compiler_wl_GCJ
16300 compiler_flags=-v
16301 linker_flags=-v
16302 verstring=
16303 output_objdir=.
16304 libname=conftest
16305 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16306 allow_undefined_flag_GCJ=
16307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16308 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }
16312 then
16313 archive_cmds_need_lc_GCJ=no
16314 else
16315 archive_cmds_need_lc_GCJ=yes
16316 fi
16317 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16318 else
16319 cat conftest.err 1>&5
16320 fi
16321 $rm conftest*
16322 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16323echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16324 ;;
16325 esac
16326 fi
16327 ;;
16328esac
16329
16330echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16331echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16332library_names_spec=
16333libname_spec='lib$name'
16334soname_spec=
16335shrext_cmds=".so"
16336postinstall_cmds=
16337postuninstall_cmds=
16338finish_cmds=
16339finish_eval=
16340shlibpath_var=
16341shlibpath_overrides_runpath=unknown
16342version_type=none
16343dynamic_linker="$host_os ld.so"
16344sys_lib_dlsearch_path_spec="/lib /usr/lib"
16345if test "$GCC" = yes; then
16346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16347 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16348 # if the path contains ";" then we assume it to be the separator
16349 # otherwise default to the standard path separator (i.e. ":") - it is
16350 # assumed that no part of a normal pathname contains ";" but that should
16351 # okay in the real world where ";" in dirpaths is itself problematic.
16352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16353 else
16354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16355 fi
16356else
16357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16358fi
16359need_lib_prefix=unknown
16360hardcode_into_libs=no
16361
16362# when you set need_version to no, make sure it does not cause -set_version
16363# flags to be left without arguments
16364need_version=unknown
16365
16366case $host_os in
16367aix3*)
16368 version_type=linux
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16370 shlibpath_var=LIBPATH
16371
16372 # AIX 3 has no versioning support, so we append a major version to the name.
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 ;;
16375
16376aix4* | aix5*)
16377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 hardcode_into_libs=yes
16381 if test "$host_cpu" = ia64; then
16382 # AIX 5 supports IA64
16383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 else
16386 # With GCC up to 2.95.x, collect2 would create an import file
16387 # for dependence libraries. The import file would start with
16388 # the line `#! .'. This would cause the generated library to
16389 # depend on `.', always an invalid library. This was fixed in
16390 # development snapshots of GCC prior to 3.0.
16391 case $host_os in
16392 aix4 | aix4.[01] | aix4.[01].*)
16393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16394 echo ' yes '
16395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16396 :
16397 else
16398 can_build_shared=no
16399 fi
16400 ;;
16401 esac
16402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16403 # soname into executable. Probably we can add versioning support to
16404 # collect2, so additional links can be useful in future.
16405 if test "$aix_use_runtimelinking" = yes; then
16406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16407 # instead of lib<name>.a to let people know that these are not
16408 # typical AIX shared libraries.
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 else
16411 # We preserve .a as extension for shared libraries through AIX4.2
16412 # and later when we are not doing run time linking.
16413 library_names_spec='${libname}${release}.a $libname.a'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 fi
16416 shlibpath_var=LIBPATH
16417 fi
16418 ;;
16419
16420amigaos*)
16421 library_names_spec='$libname.ixlibrary $libname.a'
16422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423 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'
16424 ;;
16425
16426beos*)
16427 library_names_spec='${libname}${shared_ext}'
16428 dynamic_linker="$host_os ld.so"
16429 shlibpath_var=LIBRARY_PATH
16430 ;;
16431
16432bsdi4*)
16433 version_type=linux
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16441 # the default ld.so.conf also contains /usr/contrib/lib and
16442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16443 # libtool to hard-code these into programs
16444 ;;
16445
16446cygwin* | mingw* | pw32*)
16447 version_type=windows
16448 shrext_cmds=".dll"
16449 need_version=no
16450 need_lib_prefix=no
16451
16452 case $GCC,$host_os in
16453 yes,cygwin* | yes,mingw* | yes,pw32*)
16454 library_names_spec='$libname.dll.a'
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname'
16461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16462 dlpath=$dir/\$dldll~
16463 $rm \$dlpath'
16464 shlibpath_overrides_runpath=yes
16465
16466 case $host_os in
16467 cygwin*)
16468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16471 ;;
16472 mingw*)
16473 # MinGW DLLs use traditional 'lib' prefix
16474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16477 # It is most probably a Windows format PATH printed by
16478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16479 # path with ; separators, and with drive letters. We can handle the
16480 # drive letters (cygwin fileutils understands them), so leave them,
16481 # especially as we might pass files found there to a mingw objdump,
16482 # which wouldn't understand a cygwinified path. Ahh.
16483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16484 else
16485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16486 fi
16487 ;;
16488 pw32*)
16489 # pw32 DLLs use 'pw' prefix rather than 'lib'
16490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16491 ;;
16492 esac
16493 ;;
16494
16495 *)
16496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16497 ;;
16498 esac
16499 dynamic_linker='Win32 ld.exe'
16500 # FIXME: first we should search . and the directory the executable is in
16501 shlibpath_var=PATH
16502 ;;
16503
16504darwin* | rhapsody*)
16505 dynamic_linker="$host_os dyld"
16506 version_type=darwin
16507 need_lib_prefix=no
16508 need_version=no
16509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16510 soname_spec='${libname}${release}${major}$shared_ext'
16511 shlibpath_overrides_runpath=yes
16512 shlibpath_var=DYLD_LIBRARY_PATH
16513 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16514 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16515 if test "$GCC" = yes; then
16516 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"`
16517 else
16518 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16519 fi
16520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16521 ;;
16522
16523dgux*)
16524 version_type=linux
16525 need_lib_prefix=no
16526 need_version=no
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 ;;
16531
16532freebsd1*)
16533 dynamic_linker=no
16534 ;;
16535
16536kfreebsd*-gnu)
16537 version_type=linux
16538 need_lib_prefix=no
16539 need_version=no
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 shlibpath_overrides_runpath=no
16544 hardcode_into_libs=yes
16545 dynamic_linker='GNU ld.so'
16546 ;;
16547
16548freebsd*)
16549 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16550 version_type=freebsd-$objformat
16551 case $version_type in
16552 freebsd-elf*)
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16554 need_version=no
16555 need_lib_prefix=no
16556 ;;
16557 freebsd-*)
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16559 need_version=yes
16560 ;;
16561 esac
16562 shlibpath_var=LD_LIBRARY_PATH
16563 case $host_os in
16564 freebsd2*)
16565 shlibpath_overrides_runpath=yes
16566 ;;
16567 freebsd3.01* | freebsdelf3.01*)
16568 shlibpath_overrides_runpath=yes
16569 hardcode_into_libs=yes
16570 ;;
16571 *) # from 3.2 on
16572 shlibpath_overrides_runpath=no
16573 hardcode_into_libs=yes
16574 ;;
16575 esac
16576 ;;
16577
16578gnu*)
16579 version_type=linux
16580 need_lib_prefix=no
16581 need_version=no
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 shlibpath_var=LD_LIBRARY_PATH
16585 hardcode_into_libs=yes
16586 ;;
16587
16588hpux9* | hpux10* | hpux11*)
16589 # Give a soname corresponding to the major version so that dld.sl refuses to
16590 # link against other versions.
16591 version_type=sunos
16592 need_lib_prefix=no
16593 need_version=no
16594 case "$host_cpu" in
16595 ia64*)
16596 shrext_cmds='.so'
16597 hardcode_into_libs=yes
16598 dynamic_linker="$host_os dld.so"
16599 shlibpath_var=LD_LIBRARY_PATH
16600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 if test "X$HPUX_IA64_MODE" = X32; then
16604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16605 else
16606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16607 fi
16608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16609 ;;
16610 hppa*64*)
16611 shrext_cmds='.sl'
16612 hardcode_into_libs=yes
16613 dynamic_linker="$host_os dld.sl"
16614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 soname_spec='${libname}${release}${shared_ext}$major'
16618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16620 ;;
16621 *)
16622 shrext_cmds='.sl'
16623 dynamic_linker="$host_os dld.sl"
16624 shlibpath_var=SHLIB_PATH
16625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 ;;
16629 esac
16630 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16631 postinstall_cmds='chmod 555 $lib'
16632 ;;
16633
16634irix5* | irix6* | nonstopux*)
16635 case $host_os in
16636 nonstopux*) version_type=nonstopux ;;
16637 *)
16638 if test "$lt_cv_prog_gnu_ld" = yes; then
16639 version_type=linux
16640 else
16641 version_type=irix
16642 fi ;;
16643 esac
16644 need_lib_prefix=no
16645 need_version=no
16646 soname_spec='${libname}${release}${shared_ext}$major'
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16648 case $host_os in
16649 irix5* | nonstopux*)
16650 libsuff= shlibsuff=
16651 ;;
16652 *)
16653 case $LD in # libtool.m4 will add one of these switches to LD
16654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16655 libsuff= shlibsuff= libmagic=32-bit;;
16656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16657 libsuff=32 shlibsuff=N32 libmagic=N32;;
16658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16660 *) libsuff= shlibsuff= libmagic=never-match;;
16661 esac
16662 ;;
16663 esac
16664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16665 shlibpath_overrides_runpath=no
16666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16668 hardcode_into_libs=yes
16669 ;;
16670
16671# No shared lib support for Linux oldld, aout, or coff.
16672linux*oldld* | linux*aout* | linux*coff*)
16673 dynamic_linker=no
16674 ;;
16675
16676# This must be Linux ELF.
16677linux*)
16678 version_type=linux
16679 need_lib_prefix=no
16680 need_version=no
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16684 shlibpath_var=LD_LIBRARY_PATH
16685 shlibpath_overrides_runpath=no
16686 # This implies no fast_install, which is unacceptable.
16687 # Some rework will be needed to allow for fast_install
16688 # before this can be enabled.
16689 hardcode_into_libs=yes
16690
16691 # find out which ABI we are using
16692 libsuff=
16693 case "$host_cpu" in
16694 x86_64*|s390x*|powerpc64*)
16695 echo '#line 16695 "configure"' > conftest.$ac_ext
16696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16697 (eval $ac_compile) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; then
16701 case `/usr/bin/file conftest.$ac_objext` in
16702 *64-bit*)
16703 libsuff=64
16704 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16705 ;;
16706 esac
16707 fi
16708 rm -rf conftest*
16709 ;;
16710 esac
16711
16712 # Append ld.so.conf contents to the search path
16713 if test -f /etc/ld.so.conf; then
16714 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16715 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16716 fi
16717
16718 # We used to test for /lib/ld.so.1 and disable shared libraries on
16719 # powerpc, because MkLinux only supported shared libraries with the
16720 # GNU dynamic linker. Since this was broken with cross compilers,
16721 # most powerpc-linux boxes support dynamic linking these days and
16722 # people can always --disable-shared, the test was removed, and we
16723 # assume the GNU/Linux dynamic linker is in use.
16724 dynamic_linker='GNU/Linux ld.so'
16725 ;;
16726
16727knetbsd*-gnu)
16728 version_type=linux
16729 need_lib_prefix=no
16730 need_version=no
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16732 soname_spec='${libname}${release}${shared_ext}$major'
16733 shlibpath_var=LD_LIBRARY_PATH
16734 shlibpath_overrides_runpath=no
16735 hardcode_into_libs=yes
16736 dynamic_linker='GNU ld.so'
16737 ;;
16738
16739netbsd*)
16740 version_type=sunos
16741 need_lib_prefix=no
16742 need_version=no
16743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16746 dynamic_linker='NetBSD (a.out) ld.so'
16747 else
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 dynamic_linker='NetBSD ld.elf_so'
16751 fi
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=yes
16754 hardcode_into_libs=yes
16755 ;;
16756
16757newsos6)
16758 version_type=linux
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 shlibpath_overrides_runpath=yes
16762 ;;
16763
16764nto-qnx*)
16765 version_type=linux
16766 need_lib_prefix=no
16767 need_version=no
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769 soname_spec='${libname}${release}${shared_ext}$major'
16770 shlibpath_var=LD_LIBRARY_PATH
16771 shlibpath_overrides_runpath=yes
16772 ;;
16773
16774openbsd*)
16775 version_type=sunos
16776 need_lib_prefix=no
16777 need_version=yes
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16782 case $host_os in
16783 openbsd2.[89] | openbsd2.[89].*)
16784 shlibpath_overrides_runpath=no
16785 ;;
16786 *)
16787 shlibpath_overrides_runpath=yes
16788 ;;
16789 esac
16790 else
16791 shlibpath_overrides_runpath=yes
16792 fi
16793 ;;
16794
16795os2*)
16796 libname_spec='$name'
16797 shrext_cmds=".dll"
16798 need_lib_prefix=no
16799 library_names_spec='$libname${shared_ext} $libname.a'
16800 dynamic_linker='OS/2 ld.exe'
16801 shlibpath_var=LIBPATH
16802 ;;
16803
16804osf3* | osf4* | osf5*)
16805 version_type=osf
16806 need_lib_prefix=no
16807 need_version=no
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16813 ;;
16814
16815sco3.2v5*)
16816 version_type=osf
16817 soname_spec='${libname}${release}${shared_ext}$major'
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 ;;
16821
16822solaris*)
16823 version_type=linux
16824 need_lib_prefix=no
16825 need_version=no
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 shlibpath_overrides_runpath=yes
16830 hardcode_into_libs=yes
16831 # ldd complains unless libraries are executable
16832 postinstall_cmds='chmod +x $lib'
16833 ;;
16834
16835sunos4*)
16836 version_type=sunos
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 shlibpath_overrides_runpath=yes
16841 if test "$with_gnu_ld" = yes; then
16842 need_lib_prefix=no
16843 fi
16844 need_version=yes
16845 ;;
16846
16847sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16848 version_type=linux
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 case $host_vendor in
16853 sni)
16854 shlibpath_overrides_runpath=no
16855 need_lib_prefix=no
16856 export_dynamic_flag_spec='${wl}-Blargedynsym'
16857 runpath_var=LD_RUN_PATH
16858 ;;
16859 siemens)
16860 need_lib_prefix=no
16861 ;;
16862 motorola)
16863 need_lib_prefix=no
16864 need_version=no
16865 shlibpath_overrides_runpath=no
16866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16867 ;;
16868 esac
16869 ;;
16870
16871sysv4*MP*)
16872 if test -d /usr/nec ;then
16873 version_type=linux
16874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16875 soname_spec='$libname${shared_ext}.$major'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 fi
16878 ;;
16879
16880uts4*)
16881 version_type=linux
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 ;;
16886
16887*)
16888 dynamic_linker=no
16889 ;;
16890esac
16891echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16892echo "${ECHO_T}$dynamic_linker" >&6
16893test "$dynamic_linker" = no && can_build_shared=no
16894
16895echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16896echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16897hardcode_action_GCJ=
16898if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16899 test -n "$runpath_var GCJ" || \
16900 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16901
16902 # We can hardcode non-existant directories.
16903 if test "$hardcode_direct_GCJ" != no &&
16904 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16905 # have to relink, otherwise we might link with an installed library
16906 # when we should be linking with a yet-to-be-installed one
16907 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16908 test "$hardcode_minus_L_GCJ" != no; then
16909 # Linking always hardcodes the temporary library directory.
16910 hardcode_action_GCJ=relink
16911 else
16912 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16913 hardcode_action_GCJ=immediate
16914 fi
16915else
16916 # We cannot hardcode anything, or else we can only hardcode existing
16917 # directories.
16918 hardcode_action_GCJ=unsupported
16919fi
16920echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16921echo "${ECHO_T}$hardcode_action_GCJ" >&6
16922
16923if test "$hardcode_action_GCJ" = relink; then
16924 # Fast installation is not supported
16925 enable_fast_install=no
16926elif test "$shlibpath_overrides_runpath" = yes ||
16927 test "$enable_shared" = no; then
16928 # Fast installation is not necessary
16929 enable_fast_install=needless
16930fi
16931
16932striplib=
16933old_striplib=
16934echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16935echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16936if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16937 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16938 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16939 echo "$as_me:$LINENO: result: yes" >&5
16940echo "${ECHO_T}yes" >&6
16941else
16942# FIXME - insert some real tests, host_os isn't really good enough
16943 case $host_os in
16944 darwin*)
16945 if test -n "$STRIP" ; then
16946 striplib="$STRIP -x"
16947 echo "$as_me:$LINENO: result: yes" >&5
16948echo "${ECHO_T}yes" >&6
16949 else
16950 echo "$as_me:$LINENO: result: no" >&5
16951echo "${ECHO_T}no" >&6
16952fi
16953 ;;
16954 *)
16955 echo "$as_me:$LINENO: result: no" >&5
16956echo "${ECHO_T}no" >&6
16957 ;;
16958 esac
16959fi
16960
16961if test "x$enable_dlopen" != xyes; then
16962 enable_dlopen=unknown
16963 enable_dlopen_self=unknown
16964 enable_dlopen_self_static=unknown
16965else
16966 lt_cv_dlopen=no
16967 lt_cv_dlopen_libs=
16968
16969 case $host_os in
16970 beos*)
16971 lt_cv_dlopen="load_add_on"
16972 lt_cv_dlopen_libs=
16973 lt_cv_dlopen_self=yes
16974 ;;
16975
16976 mingw* | pw32*)
16977 lt_cv_dlopen="LoadLibrary"
16978 lt_cv_dlopen_libs=
16979 ;;
16980
16981 cygwin*)
16982 lt_cv_dlopen="dlopen"
16983 lt_cv_dlopen_libs=
16984 ;;
16985
16986 darwin*)
16987 # if libdl is installed we need to link against it
16988 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16989echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16990if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992else
16993 ac_check_lib_save_LIBS=$LIBS
16994LIBS="-ldl $LIBS"
16995cat >conftest.$ac_ext <<_ACEOF
16996/* confdefs.h. */
16997_ACEOF
16998cat confdefs.h >>conftest.$ac_ext
16999cat >>conftest.$ac_ext <<_ACEOF
17000/* end confdefs.h. */
17001
17002/* Override any gcc2 internal prototype to avoid an error. */
17003#ifdef __cplusplus
17004extern "C"
17005#endif
17006/* We use char because int might match the return type of a gcc2
17007 builtin and then its argument prototype would still apply. */
17008char dlopen ();
17009int
17010main ()
17011{
17012dlopen ();
17013 ;
17014 return 0;
17015}
17016_ACEOF
17017rm -f conftest.$ac_objext conftest$ac_exeext
17018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019 (eval $ac_link) 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag"
17027 || test ! -s conftest.err'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest$ac_exeext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_lib_dl_dlopen=yes
17040else
17041 echo "$as_me: failed program was:" >&5
17042sed 's/^/| /' conftest.$ac_ext >&5
17043
17044ac_cv_lib_dl_dlopen=no
17045fi
17046rm -f conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17048LIBS=$ac_check_lib_save_LIBS
17049fi
17050echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17051echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17052if test $ac_cv_lib_dl_dlopen = yes; then
17053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17054else
17055
17056 lt_cv_dlopen="dyld"
17057 lt_cv_dlopen_libs=
17058 lt_cv_dlopen_self=yes
17059
17060fi
17061
17062 ;;
17063
17064 *)
17065 echo "$as_me:$LINENO: checking for shl_load" >&5
17066echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17067if test "${ac_cv_func_shl_load+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17069else
17070 cat >conftest.$ac_ext <<_ACEOF
17071/* confdefs.h. */
17072_ACEOF
17073cat confdefs.h >>conftest.$ac_ext
17074cat >>conftest.$ac_ext <<_ACEOF
17075/* end confdefs.h. */
17076/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17078#define shl_load innocuous_shl_load
17079
17080/* System header to define __stub macros and hopefully few prototypes,
17081 which can conflict with char shl_load (); below.
17082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083 <limits.h> exists even on freestanding compilers. */
17084
17085#ifdef __STDC__
17086# include <limits.h>
17087#else
17088# include <assert.h>
17089#endif
17090
17091#undef shl_load
17092
17093/* Override any gcc2 internal prototype to avoid an error. */
17094#ifdef __cplusplus
17095extern "C"
17096{
17097#endif
17098/* We use char because int might match the return type of a gcc2
17099 builtin and then its argument prototype would still apply. */
17100char shl_load ();
17101/* The GNU C library defines this for functions which it implements
17102 to always fail with ENOSYS. Some functions are actually named
17103 something starting with __ and the normal name is an alias. */
17104#if defined (__stub_shl_load) || defined (__stub___shl_load)
17105choke me
17106#else
17107char (*f) () = shl_load;
17108#endif
17109#ifdef __cplusplus
17110}
17111#endif
17112
17113int
17114main ()
17115{
17116return f != shl_load;
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext conftest$ac_exeext
17122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_func_shl_load=yes
17144else
17145 echo "$as_me: failed program was:" >&5
17146sed 's/^/| /' conftest.$ac_ext >&5
17147
17148ac_cv_func_shl_load=no
17149fi
17150rm -f conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17152fi
17153echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17154echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17155if test $ac_cv_func_shl_load = yes; then
17156 lt_cv_dlopen="shl_load"
17157else
17158 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17159echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17160if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 ac_check_lib_save_LIBS=$LIBS
17164LIBS="-ldld $LIBS"
17165cat >conftest.$ac_ext <<_ACEOF
17166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
17171
17172/* Override any gcc2 internal prototype to avoid an error. */
17173#ifdef __cplusplus
17174extern "C"
17175#endif
17176/* We use char because int might match the return type of a gcc2
17177 builtin and then its argument prototype would still apply. */
17178char shl_load ();
17179int
17180main ()
17181{
17182shl_load ();
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest.$ac_objext conftest$ac_exeext
17188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>conftest.er1
17190 ac_status=$?
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try='test -z "$ac_c_werror_flag"
17197 || test ! -s conftest.err'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest$ac_exeext'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_cv_lib_dld_shl_load=yes
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214ac_cv_lib_dld_shl_load=no
17215fi
17216rm -f conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17218LIBS=$ac_check_lib_save_LIBS
17219fi
17220echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17221echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17222if test $ac_cv_lib_dld_shl_load = yes; then
17223 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17224else
17225 echo "$as_me:$LINENO: checking for dlopen" >&5
17226echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17227if test "${ac_cv_func_dlopen+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230 cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17238#define dlopen innocuous_dlopen
17239
17240/* System header to define __stub macros and hopefully few prototypes,
17241 which can conflict with char dlopen (); below.
17242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17243 <limits.h> exists even on freestanding compilers. */
17244
17245#ifdef __STDC__
17246# include <limits.h>
17247#else
17248# include <assert.h>
17249#endif
17250
17251#undef dlopen
17252
17253/* Override any gcc2 internal prototype to avoid an error. */
17254#ifdef __cplusplus
17255extern "C"
17256{
17257#endif
17258/* We use char because int might match the return type of a gcc2
17259 builtin and then its argument prototype would still apply. */
17260char dlopen ();
17261/* The GNU C library defines this for functions which it implements
17262 to always fail with ENOSYS. Some functions are actually named
17263 something starting with __ and the normal name is an alias. */
17264#if defined (__stub_dlopen) || defined (__stub___dlopen)
17265choke me
17266#else
17267char (*f) () = dlopen;
17268#endif
17269#ifdef __cplusplus
17270}
17271#endif
17272
17273int
17274main ()
17275{
17276return f != dlopen;
17277 ;
17278 return 0;
17279}
17280_ACEOF
17281rm -f conftest.$ac_objext conftest$ac_exeext
17282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17283 (eval $ac_link) 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
17290 { ac_try='test -z "$ac_c_werror_flag"
17291 || test ! -s conftest.err'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest$ac_exeext'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_func_dlopen=yes
17304else
17305 echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308ac_cv_func_dlopen=no
17309fi
17310rm -f conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312fi
17313echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17314echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17315if test $ac_cv_func_dlopen = yes; then
17316 lt_cv_dlopen="dlopen"
17317else
17318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17319echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17320if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17322else
17323 ac_check_lib_save_LIBS=$LIBS
17324LIBS="-ldl $LIBS"
17325cat >conftest.$ac_ext <<_ACEOF
17326/* confdefs.h. */
17327_ACEOF
17328cat confdefs.h >>conftest.$ac_ext
17329cat >>conftest.$ac_ext <<_ACEOF
17330/* end confdefs.h. */
17331
17332/* Override any gcc2 internal prototype to avoid an error. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336/* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17338char dlopen ();
17339int
17340main ()
17341{
17342dlopen ();
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext conftest$ac_exeext
17348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17349 (eval $ac_link) 2>conftest.er1
17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_c_werror_flag"
17357 || test ! -s conftest.err'
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest$ac_exeext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_cv_lib_dl_dlopen=yes
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374ac_cv_lib_dl_dlopen=no
17375fi
17376rm -f conftest.err conftest.$ac_objext \
17377 conftest$ac_exeext conftest.$ac_ext
17378LIBS=$ac_check_lib_save_LIBS
17379fi
17380echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17381echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17382if test $ac_cv_lib_dl_dlopen = yes; then
17383 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17384else
17385 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17386echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17387if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389else
17390 ac_check_lib_save_LIBS=$LIBS
17391LIBS="-lsvld $LIBS"
17392cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h. */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h. */
17398
17399/* Override any gcc2 internal prototype to avoid an error. */
17400#ifdef __cplusplus
17401extern "C"
17402#endif
17403/* We use char because int might match the return type of a gcc2
17404 builtin and then its argument prototype would still apply. */
17405char dlopen ();
17406int
17407main ()
17408{
17409dlopen ();
17410 ;
17411 return 0;
17412}
17413_ACEOF
17414rm -f conftest.$ac_objext conftest$ac_exeext
17415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try='test -z "$ac_c_werror_flag"
17424 || test ! -s conftest.err'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_svld_dlopen=yes
17437else
17438 echo "$as_me: failed program was:" >&5
17439sed 's/^/| /' conftest.$ac_ext >&5
17440
17441ac_cv_lib_svld_dlopen=no
17442fi
17443rm -f conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
17445LIBS=$ac_check_lib_save_LIBS
17446fi
17447echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17448echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17449if test $ac_cv_lib_svld_dlopen = yes; then
17450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17451else
17452 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17453echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17454if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456else
17457 ac_check_lib_save_LIBS=$LIBS
17458LIBS="-ldld $LIBS"
17459cat >conftest.$ac_ext <<_ACEOF
17460/* confdefs.h. */
17461_ACEOF
17462cat confdefs.h >>conftest.$ac_ext
17463cat >>conftest.$ac_ext <<_ACEOF
17464/* end confdefs.h. */
17465
17466/* Override any gcc2 internal prototype to avoid an error. */
17467#ifdef __cplusplus
17468extern "C"
17469#endif
17470/* We use char because int might match the return type of a gcc2
17471 builtin and then its argument prototype would still apply. */
17472char dld_link ();
17473int
17474main ()
17475{
17476dld_link ();
17477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext conftest$ac_exeext
17482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest$ac_exeext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_lib_dld_dld_link=yes
17504else
17505 echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508ac_cv_lib_dld_dld_link=no
17509fi
17510rm -f conftest.err conftest.$ac_objext \
17511 conftest$ac_exeext conftest.$ac_ext
17512LIBS=$ac_check_lib_save_LIBS
17513fi
17514echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17515echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17516if test $ac_cv_lib_dld_dld_link = yes; then
17517 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17518fi
17519
17520
17521fi
17522
17523
17524fi
17525
17526
17527fi
17528
17529
17530fi
17531
17532
17533fi
17534
17535 ;;
17536 esac
17537
17538 if test "x$lt_cv_dlopen" != xno; then
17539 enable_dlopen=yes
17540 else
17541 enable_dlopen=no
17542 fi
17543
17544 case $lt_cv_dlopen in
17545 dlopen)
17546 save_CPPFLAGS="$CPPFLAGS"
17547 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17548
17549 save_LDFLAGS="$LDFLAGS"
17550 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17551
17552 save_LIBS="$LIBS"
17553 LIBS="$lt_cv_dlopen_libs $LIBS"
17554
17555 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17556echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17557if test "${lt_cv_dlopen_self+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560 if test "$cross_compiling" = yes; then :
17561 lt_cv_dlopen_self=cross
17562else
17563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17564 lt_status=$lt_dlunknown
17565 cat > conftest.$ac_ext <<EOF
17566#line 17566 "configure"
17567#include "confdefs.h"
17568
17569#if HAVE_DLFCN_H
17570#include <dlfcn.h>
17571#endif
17572
17573#include <stdio.h>
17574
17575#ifdef RTLD_GLOBAL
17576# define LT_DLGLOBAL RTLD_GLOBAL
17577#else
17578# ifdef DL_GLOBAL
17579# define LT_DLGLOBAL DL_GLOBAL
17580# else
17581# define LT_DLGLOBAL 0
17582# endif
17583#endif
17584
17585/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17586 find out it does not work in some platform. */
17587#ifndef LT_DLLAZY_OR_NOW
17588# ifdef RTLD_LAZY
17589# define LT_DLLAZY_OR_NOW RTLD_LAZY
17590# else
17591# ifdef DL_LAZY
17592# define LT_DLLAZY_OR_NOW DL_LAZY
17593# else
17594# ifdef RTLD_NOW
17595# define LT_DLLAZY_OR_NOW RTLD_NOW
17596# else
17597# ifdef DL_NOW
17598# define LT_DLLAZY_OR_NOW DL_NOW
17599# else
17600# define LT_DLLAZY_OR_NOW 0
17601# endif
17602# endif
17603# endif
17604# endif
17605#endif
17606
17607#ifdef __cplusplus
17608extern "C" void exit (int);
17609#endif
17610
17611void fnord() { int i=42;}
17612int main ()
17613{
17614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17615 int status = $lt_dlunknown;
17616
17617 if (self)
17618 {
17619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17620 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17621 /* dlclose (self); */
17622 }
17623
17624 exit (status);
17625}
17626EOF
17627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628 (eval $ac_link) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17632 (./conftest; exit; ) 2>/dev/null
17633 lt_status=$?
17634 case x$lt_status in
17635 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17636 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17637 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17638 esac
17639 else :
17640 # compilation failed
17641 lt_cv_dlopen_self=no
17642 fi
17643fi
17644rm -fr conftest*
17645
17646
17647fi
17648echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17649echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17650
17651 if test "x$lt_cv_dlopen_self" = xyes; then
17652 LDFLAGS="$LDFLAGS $link_static_flag"
17653 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17654echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17655if test "${lt_cv_dlopen_self_static+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657else
17658 if test "$cross_compiling" = yes; then :
17659 lt_cv_dlopen_self_static=cross
17660else
17661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17662 lt_status=$lt_dlunknown
17663 cat > conftest.$ac_ext <<EOF
17664#line 17664 "configure"
17665#include "confdefs.h"
17666
17667#if HAVE_DLFCN_H
17668#include <dlfcn.h>
17669#endif
17670
17671#include <stdio.h>
17672
17673#ifdef RTLD_GLOBAL
17674# define LT_DLGLOBAL RTLD_GLOBAL
17675#else
17676# ifdef DL_GLOBAL
17677# define LT_DLGLOBAL DL_GLOBAL
17678# else
17679# define LT_DLGLOBAL 0
17680# endif
17681#endif
17682
17683/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17684 find out it does not work in some platform. */
17685#ifndef LT_DLLAZY_OR_NOW
17686# ifdef RTLD_LAZY
17687# define LT_DLLAZY_OR_NOW RTLD_LAZY
17688# else
17689# ifdef DL_LAZY
17690# define LT_DLLAZY_OR_NOW DL_LAZY
17691# else
17692# ifdef RTLD_NOW
17693# define LT_DLLAZY_OR_NOW RTLD_NOW
17694# else
17695# ifdef DL_NOW
17696# define LT_DLLAZY_OR_NOW DL_NOW
17697# else
17698# define LT_DLLAZY_OR_NOW 0
17699# endif
17700# endif
17701# endif
17702# endif
17703#endif
17704
17705#ifdef __cplusplus
17706extern "C" void exit (int);
17707#endif
17708
17709void fnord() { int i=42;}
17710int main ()
17711{
17712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17713 int status = $lt_dlunknown;
17714
17715 if (self)
17716 {
17717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17719 /* dlclose (self); */
17720 }
17721
17722 exit (status);
17723}
17724EOF
17725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17726 (eval $ac_link) 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17730 (./conftest; exit; ) 2>/dev/null
17731 lt_status=$?
17732 case x$lt_status in
17733 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17734 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17735 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17736 esac
17737 else :
17738 # compilation failed
17739 lt_cv_dlopen_self_static=no
17740 fi
17741fi
17742rm -fr conftest*
17743
17744
17745fi
17746echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17747echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17748 fi
17749
17750 CPPFLAGS="$save_CPPFLAGS"
17751 LDFLAGS="$save_LDFLAGS"
17752 LIBS="$save_LIBS"
17753 ;;
17754 esac
17755
17756 case $lt_cv_dlopen_self in
17757 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17758 *) enable_dlopen_self=unknown ;;
17759 esac
17760
17761 case $lt_cv_dlopen_self_static in
17762 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17763 *) enable_dlopen_self_static=unknown ;;
17764 esac
17765fi
17766
17767
17768# The else clause should only fire when bootstrapping the
17769# libtool distribution, otherwise you forgot to ship ltmain.sh
17770# with your package, and you will get complaints that there are
17771# no rules to generate ltmain.sh.
17772if test -f "$ltmain"; then
17773 # See if we are running on zsh, and set the options which allow our commands through
17774 # without removal of \ escapes.
17775 if test -n "${ZSH_VERSION+set}" ; then
17776 setopt NO_GLOB_SUBST
17777 fi
17778 # Now quote all the things that may contain metacharacters while being
17779 # careful not to overquote the AC_SUBSTed values. We take copies of the
17780 # variables and quote the copies for generation of the libtool script.
17781 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17782 SED SHELL STRIP \
17783 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17784 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17785 deplibs_check_method reload_flag reload_cmds need_locks \
17786 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17787 lt_cv_sys_global_symbol_to_c_name_address \
17788 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17789 old_postinstall_cmds old_postuninstall_cmds \
17790 compiler_GCJ \
17791 CC_GCJ \
17792 LD_GCJ \
17793 lt_prog_compiler_wl_GCJ \
17794 lt_prog_compiler_pic_GCJ \
17795 lt_prog_compiler_static_GCJ \
17796 lt_prog_compiler_no_builtin_flag_GCJ \
17797 export_dynamic_flag_spec_GCJ \
17798 thread_safe_flag_spec_GCJ \
17799 whole_archive_flag_spec_GCJ \
17800 enable_shared_with_static_runtimes_GCJ \
17801 old_archive_cmds_GCJ \
17802 old_archive_from_new_cmds_GCJ \
17803 predep_objects_GCJ \
17804 postdep_objects_GCJ \
17805 predeps_GCJ \
17806 postdeps_GCJ \
17807 compiler_lib_search_path_GCJ \
17808 archive_cmds_GCJ \
17809 archive_expsym_cmds_GCJ \
17810 postinstall_cmds_GCJ \
17811 postuninstall_cmds_GCJ \
17812 old_archive_from_expsyms_cmds_GCJ \
17813 allow_undefined_flag_GCJ \
17814 no_undefined_flag_GCJ \
17815 export_symbols_cmds_GCJ \
17816 hardcode_libdir_flag_spec_GCJ \
17817 hardcode_libdir_flag_spec_ld_GCJ \
17818 hardcode_libdir_separator_GCJ \
17819 hardcode_automatic_GCJ \
17820 module_cmds_GCJ \
17821 module_expsym_cmds_GCJ \
17822 lt_cv_prog_compiler_c_o_GCJ \
17823 exclude_expsyms_GCJ \
17824 include_expsyms_GCJ; do
17825
17826 case $var in
17827 old_archive_cmds_GCJ | \
17828 old_archive_from_new_cmds_GCJ | \
17829 archive_cmds_GCJ | \
17830 archive_expsym_cmds_GCJ | \
17831 module_cmds_GCJ | \
17832 module_expsym_cmds_GCJ | \
17833 old_archive_from_expsyms_cmds_GCJ | \
17834 export_symbols_cmds_GCJ | \
17835 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17836 postinstall_cmds | postuninstall_cmds | \
17837 old_postinstall_cmds | old_postuninstall_cmds | \
17838 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17839 # Double-quote double-evaled strings.
17840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17841 ;;
17842 *)
17843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17844 ;;
17845 esac
17846 done
17847
17848 case $lt_echo in
17849 *'\$0 --fallback-echo"')
17850 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17851 ;;
17852 esac
17853
17854cfgfile="$ofile"
17855
17856 cat <<__EOF__ >> "$cfgfile"
17857# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17858
17859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17860
17861# Shell to use when invoking shell scripts.
17862SHELL=$lt_SHELL
17863
17864# Whether or not to build shared libraries.
17865build_libtool_libs=$enable_shared
17866
17867# Whether or not to build static libraries.
17868build_old_libs=$enable_static
17869
17870# Whether or not to add -lc for building shared libraries.
17871build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17872
17873# Whether or not to disallow shared libs when runtime libs are static
17874allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17875
17876# Whether or not to optimize for fast installation.
17877fast_install=$enable_fast_install
17878
17879# The host system.
17880host_alias=$host_alias
17881host=$host
17882
17883# An echo program that does not interpret backslashes.
17884echo=$lt_echo
17885
17886# The archiver.
17887AR=$lt_AR
17888AR_FLAGS=$lt_AR_FLAGS
17889
17890# A C compiler.
17891LTCC=$lt_LTCC
17892
17893# A language-specific compiler.
17894CC=$lt_compiler_GCJ
17895
17896# Is the compiler the GNU C compiler?
17897with_gcc=$GCC_GCJ
17898
17899# An ERE matcher.
17900EGREP=$lt_EGREP
17901
17902# The linker used to build libraries.
17903LD=$lt_LD_GCJ
17904
17905# Whether we need hard or soft links.
17906LN_S=$lt_LN_S
17907
17908# A BSD-compatible nm program.
17909NM=$lt_NM
17910
17911# A symbol stripping program
17912STRIP=$lt_STRIP
17913
17914# Used to examine libraries when file_magic_cmd begins "file"
17915MAGIC_CMD=$MAGIC_CMD
17916
17917# Used on cygwin: DLL creation program.
17918DLLTOOL="$DLLTOOL"
17919
17920# Used on cygwin: object dumper.
17921OBJDUMP="$OBJDUMP"
17922
17923# Used on cygwin: assembler.
17924AS="$AS"
17925
17926# The name of the directory that contains temporary libtool files.
17927objdir=$objdir
17928
17929# How to create reloadable object files.
17930reload_flag=$lt_reload_flag
17931reload_cmds=$lt_reload_cmds
17932
17933# How to pass a linker flag through the compiler.
17934wl=$lt_lt_prog_compiler_wl_GCJ
17935
17936# Object file suffix (normally "o").
17937objext="$ac_objext"
17938
17939# Old archive suffix (normally "a").
17940libext="$libext"
17941
17942# Shared library suffix (normally ".so").
17943shrext_cmds='$shrext_cmds'
17944
17945# Executable file suffix (normally "").
17946exeext="$exeext"
17947
17948# Additional compiler flags for building library objects.
17949pic_flag=$lt_lt_prog_compiler_pic_GCJ
17950pic_mode=$pic_mode
17951
17952# What is the maximum length of a command?
17953max_cmd_len=$lt_cv_sys_max_cmd_len
17954
17955# Does compiler simultaneously support -c and -o options?
17956compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17957
17958# Must we lock files when doing compilation ?
17959need_locks=$lt_need_locks
17960
17961# Do we need the lib prefix for modules?
17962need_lib_prefix=$need_lib_prefix
17963
17964# Do we need a version for libraries?
17965need_version=$need_version
17966
17967# Whether dlopen is supported.
17968dlopen_support=$enable_dlopen
17969
17970# Whether dlopen of programs is supported.
17971dlopen_self=$enable_dlopen_self
17972
17973# Whether dlopen of statically linked programs is supported.
17974dlopen_self_static=$enable_dlopen_self_static
17975
17976# Compiler flag to prevent dynamic linking.
17977link_static_flag=$lt_lt_prog_compiler_static_GCJ
17978
17979# Compiler flag to turn off builtin functions.
17980no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17981
17982# Compiler flag to allow reflexive dlopens.
17983export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17984
17985# Compiler flag to generate shared objects directly from archives.
17986whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17987
17988# Compiler flag to generate thread-safe objects.
17989thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17990
17991# Library versioning type.
17992version_type=$version_type
17993
17994# Format of library name prefix.
17995libname_spec=$lt_libname_spec
17996
17997# List of archive names. First name is the real one, the rest are links.
17998# The last name is the one that the linker finds with -lNAME.
17999library_names_spec=$lt_library_names_spec
18000
18001# The coded name of the library, if different from the real name.
18002soname_spec=$lt_soname_spec
18003
18004# Commands used to build and install an old-style archive.
18005RANLIB=$lt_RANLIB
18006old_archive_cmds=$lt_old_archive_cmds_GCJ
18007old_postinstall_cmds=$lt_old_postinstall_cmds
18008old_postuninstall_cmds=$lt_old_postuninstall_cmds
18009
18010# Create an old-style archive from a shared archive.
18011old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18012
18013# Create a temporary old-style archive to link instead of a shared archive.
18014old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18015
18016# Commands used to build and install a shared archive.
18017archive_cmds=$lt_archive_cmds_GCJ
18018archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18019postinstall_cmds=$lt_postinstall_cmds
18020postuninstall_cmds=$lt_postuninstall_cmds
18021
18022# Commands used to build a loadable module (assumed same as above if empty)
18023module_cmds=$lt_module_cmds_GCJ
18024module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18025
18026# Commands to strip libraries.
18027old_striplib=$lt_old_striplib
18028striplib=$lt_striplib
18029
18030# Dependencies to place before the objects being linked to create a
18031# shared library.
18032predep_objects=$lt_predep_objects_GCJ
18033
18034# Dependencies to place after the objects being linked to create a
18035# shared library.
18036postdep_objects=$lt_postdep_objects_GCJ
18037
18038# Dependencies to place before the objects being linked to create a
18039# shared library.
18040predeps=$lt_predeps_GCJ
18041
18042# Dependencies to place after the objects being linked to create a
18043# shared library.
18044postdeps=$lt_postdeps_GCJ
18045
18046# The library search path used internally by the compiler when linking
18047# a shared library.
18048compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18049
18050# Method to check whether dependent libraries are shared objects.
18051deplibs_check_method=$lt_deplibs_check_method
18052
18053# Command to use when deplibs_check_method == file_magic.
18054file_magic_cmd=$lt_file_magic_cmd
18055
18056# Flag that allows shared libraries with undefined symbols to be built.
18057allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18058
18059# Flag that forces no undefined symbols.
18060no_undefined_flag=$lt_no_undefined_flag_GCJ
18061
18062# Commands used to finish a libtool library installation in a directory.
18063finish_cmds=$lt_finish_cmds
18064
18065# Same as above, but a single script fragment to be evaled but not shown.
18066finish_eval=$lt_finish_eval
18067
18068# Take the output of nm and produce a listing of raw symbols and C names.
18069global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18070
18071# Transform the output of nm in a proper C declaration
18072global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18073
18074# Transform the output of nm in a C name address pair
18075global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18076
18077# This is the shared library runtime path variable.
18078runpath_var=$runpath_var
18079
18080# This is the shared library path variable.
18081shlibpath_var=$shlibpath_var
18082
18083# Is shlibpath searched before the hard-coded library search path?
18084shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18085
18086# How to hardcode a shared library path into an executable.
18087hardcode_action=$hardcode_action_GCJ
18088
18089# Whether we should hardcode library paths into libraries.
18090hardcode_into_libs=$hardcode_into_libs
18091
18092# Flag to hardcode \$libdir into a binary during linking.
18093# This must work even if \$libdir does not exist.
18094hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18095
18096# If ld is used when linking, flag to hardcode \$libdir into
18097# a binary during linking. This must work even if \$libdir does
18098# not exist.
18099hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18100
18101# Whether we need a single -rpath flag with a separated argument.
18102hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18103
18104# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18105# resulting binary.
18106hardcode_direct=$hardcode_direct_GCJ
18107
18108# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18109# resulting binary.
18110hardcode_minus_L=$hardcode_minus_L_GCJ
18111
18112# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18113# the resulting binary.
18114hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18115
18116# Set to yes if building a shared library automatically hardcodes DIR into the library
18117# and all subsequent libraries and executables linked against it.
18118hardcode_automatic=$hardcode_automatic_GCJ
18119
18120# Variables whose values should be saved in libtool wrapper scripts and
18121# restored at relink time.
18122variables_saved_for_relink="$variables_saved_for_relink"
18123
18124# Whether libtool must link a program against all its dependency libraries.
18125link_all_deplibs=$link_all_deplibs_GCJ
18126
18127# Compile-time system search path for libraries
18128sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18129
18130# Run-time system search path for libraries
18131sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18132
18133# Fix the shell variable \$srcfile for the compiler.
18134fix_srcfile_path="$fix_srcfile_path_GCJ"
18135
18136# Set to yes if exported symbols are required.
18137always_export_symbols=$always_export_symbols_GCJ
18138
18139# The commands to list exported symbols.
18140export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18141
18142# The commands to extract the exported symbol list from a shared archive.
18143extract_expsyms_cmds=$lt_extract_expsyms_cmds
18144
18145# Symbols that should not be listed in the preloaded symbols.
18146exclude_expsyms=$lt_exclude_expsyms_GCJ
18147
18148# Symbols that must always be exported.
18149include_expsyms=$lt_include_expsyms_GCJ
18150
18151# ### END LIBTOOL TAG CONFIG: $tagname
18152
18153__EOF__
18154
18155
18156else
18157 # If there is no Makefile yet, we rely on a make rule to execute
18158 # `config.status --recheck' to rerun these tests and create the
18159 # libtool script then.
18160 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18161 if test -f "$ltmain_in"; then
18162 test -f Makefile && make "$ltmain"
18163 fi
18164fi
18165
18166
18167ac_ext=c
18168ac_cpp='$CPP $CPPFLAGS'
18169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18171ac_compiler_gnu=$ac_cv_c_compiler_gnu
18172
18173CC="$lt_save_CC"
18174
18175 else
18176 tagname=""
18177 fi
18178 ;;
18179
18180 RC)
18181
18182
18183
18184# Source file extension for RC test sources.
18185ac_ext=rc
18186
18187# Object file extension for compiled RC test sources.
18188objext=o
18189objext_RC=$objext
18190
18191# Code to be used in simple compile tests
18192lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18193
18194# Code to be used in simple link tests
18195lt_simple_link_test_code="$lt_simple_compile_test_code"
18196
18197# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18198
18199# If no C compiler was specified, use CC.
18200LTCC=${LTCC-"$CC"}
18201
18202# Allow CC to be a program name with arguments.
18203compiler=$CC
18204
18205
18206# Allow CC to be a program name with arguments.
18207lt_save_CC="$CC"
18208CC=${RC-"windres"}
18209compiler=$CC
18210compiler_RC=$CC
18211lt_cv_prog_compiler_c_o_RC=yes
18212
18213# The else clause should only fire when bootstrapping the
18214# libtool distribution, otherwise you forgot to ship ltmain.sh
18215# with your package, and you will get complaints that there are
18216# no rules to generate ltmain.sh.
18217if test -f "$ltmain"; then
18218 # See if we are running on zsh, and set the options which allow our commands through
18219 # without removal of \ escapes.
18220 if test -n "${ZSH_VERSION+set}" ; then
18221 setopt NO_GLOB_SUBST
18222 fi
18223 # Now quote all the things that may contain metacharacters while being
18224 # careful not to overquote the AC_SUBSTed values. We take copies of the
18225 # variables and quote the copies for generation of the libtool script.
18226 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18227 SED SHELL STRIP \
18228 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18229 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18230 deplibs_check_method reload_flag reload_cmds need_locks \
18231 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18232 lt_cv_sys_global_symbol_to_c_name_address \
18233 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18234 old_postinstall_cmds old_postuninstall_cmds \
18235 compiler_RC \
18236 CC_RC \
18237 LD_RC \
18238 lt_prog_compiler_wl_RC \
18239 lt_prog_compiler_pic_RC \
18240 lt_prog_compiler_static_RC \
18241 lt_prog_compiler_no_builtin_flag_RC \
18242 export_dynamic_flag_spec_RC \
18243 thread_safe_flag_spec_RC \
18244 whole_archive_flag_spec_RC \
18245 enable_shared_with_static_runtimes_RC \
18246 old_archive_cmds_RC \
18247 old_archive_from_new_cmds_RC \
18248 predep_objects_RC \
18249 postdep_objects_RC \
18250 predeps_RC \
18251 postdeps_RC \
18252 compiler_lib_search_path_RC \
18253 archive_cmds_RC \
18254 archive_expsym_cmds_RC \
18255 postinstall_cmds_RC \
18256 postuninstall_cmds_RC \
18257 old_archive_from_expsyms_cmds_RC \
18258 allow_undefined_flag_RC \
18259 no_undefined_flag_RC \
18260 export_symbols_cmds_RC \
18261 hardcode_libdir_flag_spec_RC \
18262 hardcode_libdir_flag_spec_ld_RC \
18263 hardcode_libdir_separator_RC \
18264 hardcode_automatic_RC \
18265 module_cmds_RC \
18266 module_expsym_cmds_RC \
18267 lt_cv_prog_compiler_c_o_RC \
18268 exclude_expsyms_RC \
18269 include_expsyms_RC; do
18270
18271 case $var in
18272 old_archive_cmds_RC | \
18273 old_archive_from_new_cmds_RC | \
18274 archive_cmds_RC | \
18275 archive_expsym_cmds_RC | \
18276 module_cmds_RC | \
18277 module_expsym_cmds_RC | \
18278 old_archive_from_expsyms_cmds_RC | \
18279 export_symbols_cmds_RC | \
18280 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18281 postinstall_cmds | postuninstall_cmds | \
18282 old_postinstall_cmds | old_postuninstall_cmds | \
18283 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18284 # Double-quote double-evaled strings.
18285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18286 ;;
18287 *)
18288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18289 ;;
18290 esac
18291 done
18292
18293 case $lt_echo in
18294 *'\$0 --fallback-echo"')
18295 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18296 ;;
18297 esac
18298
18299cfgfile="$ofile"
18300
18301 cat <<__EOF__ >> "$cfgfile"
18302# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18303
18304# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18305
18306# Shell to use when invoking shell scripts.
18307SHELL=$lt_SHELL
18308
18309# Whether or not to build shared libraries.
18310build_libtool_libs=$enable_shared
18311
18312# Whether or not to build static libraries.
18313build_old_libs=$enable_static
18314
18315# Whether or not to add -lc for building shared libraries.
18316build_libtool_need_lc=$archive_cmds_need_lc_RC
18317
18318# Whether or not to disallow shared libs when runtime libs are static
18319allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18320
18321# Whether or not to optimize for fast installation.
18322fast_install=$enable_fast_install
18323
18324# The host system.
18325host_alias=$host_alias
18326host=$host
18327
18328# An echo program that does not interpret backslashes.
18329echo=$lt_echo
18330
18331# The archiver.
18332AR=$lt_AR
18333AR_FLAGS=$lt_AR_FLAGS
18334
18335# A C compiler.
18336LTCC=$lt_LTCC
18337
18338# A language-specific compiler.
18339CC=$lt_compiler_RC
18340
18341# Is the compiler the GNU C compiler?
18342with_gcc=$GCC_RC
18343
18344# An ERE matcher.
18345EGREP=$lt_EGREP
18346
18347# The linker used to build libraries.
18348LD=$lt_LD_RC
18349
18350# Whether we need hard or soft links.
18351LN_S=$lt_LN_S
18352
18353# A BSD-compatible nm program.
18354NM=$lt_NM
18355
18356# A symbol stripping program
18357STRIP=$lt_STRIP
18358
18359# Used to examine libraries when file_magic_cmd begins "file"
18360MAGIC_CMD=$MAGIC_CMD
18361
18362# Used on cygwin: DLL creation program.
18363DLLTOOL="$DLLTOOL"
18364
18365# Used on cygwin: object dumper.
18366OBJDUMP="$OBJDUMP"
18367
18368# Used on cygwin: assembler.
18369AS="$AS"
18370
18371# The name of the directory that contains temporary libtool files.
18372objdir=$objdir
18373
18374# How to create reloadable object files.
18375reload_flag=$lt_reload_flag
18376reload_cmds=$lt_reload_cmds
18377
18378# How to pass a linker flag through the compiler.
18379wl=$lt_lt_prog_compiler_wl_RC
18380
18381# Object file suffix (normally "o").
18382objext="$ac_objext"
18383
18384# Old archive suffix (normally "a").
18385libext="$libext"
18386
18387# Shared library suffix (normally ".so").
18388shrext_cmds='$shrext_cmds'
18389
18390# Executable file suffix (normally "").
18391exeext="$exeext"
18392
18393# Additional compiler flags for building library objects.
18394pic_flag=$lt_lt_prog_compiler_pic_RC
18395pic_mode=$pic_mode
18396
18397# What is the maximum length of a command?
18398max_cmd_len=$lt_cv_sys_max_cmd_len
18399
18400# Does compiler simultaneously support -c and -o options?
18401compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18402
18403# Must we lock files when doing compilation ?
18404need_locks=$lt_need_locks
18405
18406# Do we need the lib prefix for modules?
18407need_lib_prefix=$need_lib_prefix
18408
18409# Do we need a version for libraries?
18410need_version=$need_version
18411
18412# Whether dlopen is supported.
18413dlopen_support=$enable_dlopen
18414
18415# Whether dlopen of programs is supported.
18416dlopen_self=$enable_dlopen_self
18417
18418# Whether dlopen of statically linked programs is supported.
18419dlopen_self_static=$enable_dlopen_self_static
18420
18421# Compiler flag to prevent dynamic linking.
18422link_static_flag=$lt_lt_prog_compiler_static_RC
18423
18424# Compiler flag to turn off builtin functions.
18425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18426
18427# Compiler flag to allow reflexive dlopens.
18428export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18429
18430# Compiler flag to generate shared objects directly from archives.
18431whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18432
18433# Compiler flag to generate thread-safe objects.
18434thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18435
18436# Library versioning type.
18437version_type=$version_type
18438
18439# Format of library name prefix.
18440libname_spec=$lt_libname_spec
18441
18442# List of archive names. First name is the real one, the rest are links.
18443# The last name is the one that the linker finds with -lNAME.
18444library_names_spec=$lt_library_names_spec
18445
18446# The coded name of the library, if different from the real name.
18447soname_spec=$lt_soname_spec
18448
18449# Commands used to build and install an old-style archive.
18450RANLIB=$lt_RANLIB
18451old_archive_cmds=$lt_old_archive_cmds_RC
18452old_postinstall_cmds=$lt_old_postinstall_cmds
18453old_postuninstall_cmds=$lt_old_postuninstall_cmds
18454
18455# Create an old-style archive from a shared archive.
18456old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18457
18458# Create a temporary old-style archive to link instead of a shared archive.
18459old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18460
18461# Commands used to build and install a shared archive.
18462archive_cmds=$lt_archive_cmds_RC
18463archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18464postinstall_cmds=$lt_postinstall_cmds
18465postuninstall_cmds=$lt_postuninstall_cmds
18466
18467# Commands used to build a loadable module (assumed same as above if empty)
18468module_cmds=$lt_module_cmds_RC
18469module_expsym_cmds=$lt_module_expsym_cmds_RC
18470
18471# Commands to strip libraries.
18472old_striplib=$lt_old_striplib
18473striplib=$lt_striplib
18474
18475# Dependencies to place before the objects being linked to create a
18476# shared library.
18477predep_objects=$lt_predep_objects_RC
18478
18479# Dependencies to place after the objects being linked to create a
18480# shared library.
18481postdep_objects=$lt_postdep_objects_RC
18482
18483# Dependencies to place before the objects being linked to create a
18484# shared library.
18485predeps=$lt_predeps_RC
18486
18487# Dependencies to place after the objects being linked to create a
18488# shared library.
18489postdeps=$lt_postdeps_RC
18490
18491# The library search path used internally by the compiler when linking
18492# a shared library.
18493compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18494
18495# Method to check whether dependent libraries are shared objects.
18496deplibs_check_method=$lt_deplibs_check_method
18497
18498# Command to use when deplibs_check_method == file_magic.
18499file_magic_cmd=$lt_file_magic_cmd
18500
18501# Flag that allows shared libraries with undefined symbols to be built.
18502allow_undefined_flag=$lt_allow_undefined_flag_RC
18503
18504# Flag that forces no undefined symbols.
18505no_undefined_flag=$lt_no_undefined_flag_RC
18506
18507# Commands used to finish a libtool library installation in a directory.
18508finish_cmds=$lt_finish_cmds
18509
18510# Same as above, but a single script fragment to be evaled but not shown.
18511finish_eval=$lt_finish_eval
18512
18513# Take the output of nm and produce a listing of raw symbols and C names.
18514global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18515
18516# Transform the output of nm in a proper C declaration
18517global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18518
18519# Transform the output of nm in a C name address pair
18520global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18521
18522# This is the shared library runtime path variable.
18523runpath_var=$runpath_var
18524
18525# This is the shared library path variable.
18526shlibpath_var=$shlibpath_var
18527
18528# Is shlibpath searched before the hard-coded library search path?
18529shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18530
18531# How to hardcode a shared library path into an executable.
18532hardcode_action=$hardcode_action_RC
18533
18534# Whether we should hardcode library paths into libraries.
18535hardcode_into_libs=$hardcode_into_libs
18536
18537# Flag to hardcode \$libdir into a binary during linking.
18538# This must work even if \$libdir does not exist.
18539hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18540
18541# If ld is used when linking, flag to hardcode \$libdir into
18542# a binary during linking. This must work even if \$libdir does
18543# not exist.
18544hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18545
18546# Whether we need a single -rpath flag with a separated argument.
18547hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18548
18549# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18550# resulting binary.
18551hardcode_direct=$hardcode_direct_RC
18552
18553# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18554# resulting binary.
18555hardcode_minus_L=$hardcode_minus_L_RC
18556
18557# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18558# the resulting binary.
18559hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18560
18561# Set to yes if building a shared library automatically hardcodes DIR into the library
18562# and all subsequent libraries and executables linked against it.
18563hardcode_automatic=$hardcode_automatic_RC
18564
18565# Variables whose values should be saved in libtool wrapper scripts and
18566# restored at relink time.
18567variables_saved_for_relink="$variables_saved_for_relink"
18568
18569# Whether libtool must link a program against all its dependency libraries.
18570link_all_deplibs=$link_all_deplibs_RC
18571
18572# Compile-time system search path for libraries
18573sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18574
18575# Run-time system search path for libraries
18576sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18577
18578# Fix the shell variable \$srcfile for the compiler.
18579fix_srcfile_path="$fix_srcfile_path_RC"
18580
18581# Set to yes if exported symbols are required.
18582always_export_symbols=$always_export_symbols_RC
18583
18584# The commands to list exported symbols.
18585export_symbols_cmds=$lt_export_symbols_cmds_RC
18586
18587# The commands to extract the exported symbol list from a shared archive.
18588extract_expsyms_cmds=$lt_extract_expsyms_cmds
18589
18590# Symbols that should not be listed in the preloaded symbols.
18591exclude_expsyms=$lt_exclude_expsyms_RC
18592
18593# Symbols that must always be exported.
18594include_expsyms=$lt_include_expsyms_RC
18595
18596# ### END LIBTOOL TAG CONFIG: $tagname
18597
18598__EOF__
18599
18600
18601else
18602 # If there is no Makefile yet, we rely on a make rule to execute
18603 # `config.status --recheck' to rerun these tests and create the
18604 # libtool script then.
18605 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18606 if test -f "$ltmain_in"; then
18607 test -f Makefile && make "$ltmain"
18608 fi
18609fi
18610
18611
18612ac_ext=c
18613ac_cpp='$CPP $CPPFLAGS'
18614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616ac_compiler_gnu=$ac_cv_c_compiler_gnu
18617
18618CC="$lt_save_CC"
18619
18620 ;;
18621
18622 *)
18623 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18624echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18625 { (exit 1); exit 1; }; }
18626 ;;
18627 esac
18628
18629 # Append the new tag name to the list of available tags.
18630 if test -n "$tagname" ; then
18631 available_tags="$available_tags $tagname"
18632 fi
18633 fi
18634 done
18635 IFS="$lt_save_ifs"
18636
18637 # Now substitute the updated list of available tags.
18638 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18639 mv "${ofile}T" "$ofile"
18640 chmod +x "$ofile"
18641 else
18642 rm -f "${ofile}T"
18643 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18644echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18645 { (exit 1); exit 1; }; }
18646 fi
18647fi
jjako286bc982003-01-28 23:17:50 +000018648
jjako52c24142002-12-16 13:33:51 +000018649
18650
18651# This can be used to rebuild libtool when needed
jjako286bc982003-01-28 23:17:50 +000018652LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
jjako52c24142002-12-16 13:33:51 +000018653
18654# Always use our own libtool.
18655LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18656
jjako286bc982003-01-28 23:17:50 +000018657# Prevent multiple expansion
jjako52c24142002-12-16 13:33:51 +000018658
18659
jjako286bc982003-01-28 23:17:50 +000018660
18661
jjakoacba8e62005-03-14 21:53:10 +000018662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
jjakoa9639f32003-07-07 15:30:11 +000018680# Check whether --enable-static-exec or --disable-static-exec was given.
18681if test "${enable_static_exec+set}" = set; then
18682 enableval="$enable_static_exec"
18683 EXEC_LDFLAGS="-all-static"
18684fi;
18685
18686
jjako286bc982003-01-28 23:17:50 +000018687
jjakoe31b2402004-12-30 23:07:42 +000018688
jjako77edc822004-09-10 17:19:31 +000018689case "${host}" in
jjakoe31b2402004-12-30 23:07:42 +000018690 i*86-*-linux-gnu*)
18691 EXEC_LDADD="-Wl,--rpath -Wl,/usr/local/lib" ;;
jjako77edc822004-09-10 17:19:31 +000018692 *solaris*)
jjakoe31b2402004-12-30 23:07:42 +000018693 EXEC_LDADD="-lresolv -lsocket -lnsl" ;;
jjako77edc822004-09-10 17:19:31 +000018694esac
18695
18696
jjako77edc822004-09-10 17:19:31 +000018697
18698
jjako286bc982003-01-28 23:17:50 +000018699# Checks for libraries.
18700# FIXME: Replace `main' with a function in `-le':
jjakoa9639f32003-07-07 15:30:11 +000018701#AC_CHECK_LIB([e], [main])
jjako286bc982003-01-28 23:17:50 +000018702# FIXME: Replace `main' with a function in `-lgtp':
jjakoa9639f32003-07-07 15:30:11 +000018703#AC_CHECK_LIB([gtp], [main])
jjako286bc982003-01-28 23:17:50 +000018704# FIXME: Replace `main' with a function in `-links':
jjakoa9639f32003-07-07 15:30:11 +000018705#AC_CHECK_LIB([inks], [main])
jjako286bc982003-01-28 23:17:50 +000018706
18707# Checks for header files.
18708echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18709echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18710if test "${ac_cv_header_stdc+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712else
18713 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000018714/* confdefs.h. */
18715_ACEOF
18716cat confdefs.h >>conftest.$ac_ext
18717cat >>conftest.$ac_ext <<_ACEOF
18718/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000018719#include <stdlib.h>
18720#include <stdarg.h>
18721#include <string.h>
18722#include <float.h>
jjako286bc982003-01-28 23:17:50 +000018723
jjako08d331d2003-10-13 20:33:30 +000018724int
18725main ()
18726{
18727
18728 ;
18729 return 0;
18730}
jjako286bc982003-01-28 23:17:50 +000018731_ACEOF
jjako08d331d2003-10-13 20:33:30 +000018732rm -f conftest.$ac_objext
18733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000018734 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000018735 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000018736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000018739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjako08d331d2003-10-13 20:33:30 +000018740 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000018741 { ac_try='test -z "$ac_c_werror_flag"
18742 || test ! -s conftest.err'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest.$ac_objext'
jjako08d331d2003-10-13 20:33:30 +000018749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +000018754 ac_cv_header_stdc=yes
18755else
jjako286bc982003-01-28 23:17:50 +000018756 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000018757sed 's/^/| /' conftest.$ac_ext >&5
18758
18759ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +000018760fi
jjakoacba8e62005-03-14 21:53:10 +000018761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +000018762
18763if test $ac_cv_header_stdc = yes; then
18764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +000018765 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000018766/* confdefs.h. */
18767_ACEOF
18768cat confdefs.h >>conftest.$ac_ext
18769cat >>conftest.$ac_ext <<_ACEOF
18770/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000018771#include <string.h>
jjako286bc982003-01-28 23:17:50 +000018772
18773_ACEOF
jjako52c24142002-12-16 13:33:51 +000018774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +000018775 $EGREP "memchr" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +000018776 :
18777else
jjako52c24142002-12-16 13:33:51 +000018778 ac_cv_header_stdc=no
18779fi
18780rm -f conftest*
18781
18782fi
18783
18784if test $ac_cv_header_stdc = yes; then
18785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +000018786 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000018787/* confdefs.h. */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000018792#include <stdlib.h>
jjako286bc982003-01-28 23:17:50 +000018793
18794_ACEOF
jjako52c24142002-12-16 13:33:51 +000018795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +000018796 $EGREP "free" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +000018797 :
18798else
jjako52c24142002-12-16 13:33:51 +000018799 ac_cv_header_stdc=no
18800fi
18801rm -f conftest*
18802
18803fi
18804
18805if test $ac_cv_header_stdc = yes; then
18806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jjako286bc982003-01-28 23:17:50 +000018807 if test "$cross_compiling" = yes; then
jjako52c24142002-12-16 13:33:51 +000018808 :
18809else
jjako286bc982003-01-28 23:17:50 +000018810 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000018811/* confdefs.h. */
18812_ACEOF
18813cat confdefs.h >>conftest.$ac_ext
18814cat >>conftest.$ac_ext <<_ACEOF
18815/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000018816#include <ctype.h>
jjako286bc982003-01-28 23:17:50 +000018817#if ((' ' & 0x0FF) == 0x020)
18818# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18819# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18820#else
jjako08d331d2003-10-13 20:33:30 +000018821# define ISLOWER(c) \
jjakoacba8e62005-03-14 21:53:10 +000018822 (('a' <= (c) && (c) <= 'i') \
18823 || ('j' <= (c) && (c) <= 'r') \
18824 || ('s' <= (c) && (c) <= 'z'))
jjako286bc982003-01-28 23:17:50 +000018825# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18826#endif
jjako52c24142002-12-16 13:33:51 +000018827
jjako286bc982003-01-28 23:17:50 +000018828#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18829int
18830main ()
18831{
18832 int i;
18833 for (i = 0; i < 256; i++)
18834 if (XOR (islower (i), ISLOWER (i))
jjakoacba8e62005-03-14 21:53:10 +000018835 || toupper (i) != TOUPPER (i))
jjako286bc982003-01-28 23:17:50 +000018836 exit(2);
18837 exit (0);
18838}
18839_ACEOF
18840rm -f conftest$ac_exeext
18841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +000018851 :
18852else
jjako286bc982003-01-28 23:17:50 +000018853 echo "$as_me: program exited with status $ac_status" >&5
18854echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000018855sed 's/^/| /' conftest.$ac_ext >&5
18856
jjako286bc982003-01-28 23:17:50 +000018857( exit $ac_status )
18858ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +000018859fi
jjakoacba8e62005-03-14 21:53:10 +000018860rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +000018861fi
18862fi
jjako286bc982003-01-28 23:17:50 +000018863fi
18864echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18865echo "${ECHO_T}$ac_cv_header_stdc" >&6
jjako52c24142002-12-16 13:33:51 +000018866if test $ac_cv_header_stdc = yes; then
jjako286bc982003-01-28 23:17:50 +000018867
18868cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000018869#define STDC_HEADERS 1
jjako286bc982003-01-28 23:17:50 +000018870_ACEOF
jjako52c24142002-12-16 13:33:51 +000018871
18872fi
18873
jjako286bc982003-01-28 23:17:50 +000018874echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18875echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18876if test "${ac_cv_header_sys_wait_h+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000018878else
jjako286bc982003-01-28 23:17:50 +000018879 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000018880/* confdefs.h. */
18881_ACEOF
18882cat confdefs.h >>conftest.$ac_ext
18883cat >>conftest.$ac_ext <<_ACEOF
18884/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000018885#include <sys/types.h>
18886#include <sys/wait.h>
18887#ifndef WEXITSTATUS
jjako286bc982003-01-28 23:17:50 +000018888# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
jjako52c24142002-12-16 13:33:51 +000018889#endif
18890#ifndef WIFEXITED
jjako286bc982003-01-28 23:17:50 +000018891# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
jjako52c24142002-12-16 13:33:51 +000018892#endif
jjako286bc982003-01-28 23:17:50 +000018893
jjako286bc982003-01-28 23:17:50 +000018894int
18895main ()
18896{
18897 int s;
18898 wait (&s);
18899 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18900 ;
18901 return 0;
18902}
18903_ACEOF
18904rm -f conftest.$ac_objext
18905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000018906 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000018907 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000018908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000018911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000018913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +000018921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +000018926 ac_cv_header_sys_wait_h=yes
18927else
jjako286bc982003-01-28 23:17:50 +000018928 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000018929sed 's/^/| /' conftest.$ac_ext >&5
18930
jjako286bc982003-01-28 23:17:50 +000018931ac_cv_header_sys_wait_h=no
jjako52c24142002-12-16 13:33:51 +000018932fi
jjakoacba8e62005-03-14 21:53:10 +000018933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +000018934fi
jjako286bc982003-01-28 23:17:50 +000018935echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18936echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
jjako52c24142002-12-16 13:33:51 +000018937if test $ac_cv_header_sys_wait_h = yes; then
jjako286bc982003-01-28 23:17:50 +000018938
18939cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000018940#define HAVE_SYS_WAIT_H 1
jjako286bc982003-01-28 23:17:50 +000018941_ACEOF
jjako52c24142002-12-16 13:33:51 +000018942
18943fi
18944
jjako286bc982003-01-28 23:17:50 +000018945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h
jjako52c24142002-12-16 13:33:51 +000018958do
jjako286bc982003-01-28 23:17:50 +000018959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18960if eval "test \"\${$as_ac_Header+set}\" = set"; then
18961 echo "$as_me:$LINENO: checking for $ac_header" >&5
18962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18963if eval "test \"\${$as_ac_Header+set}\" = set"; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965fi
18966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +000018968else
jjako286bc982003-01-28 23:17:50 +000018969 # Is the header compilable?
18970echo "$as_me:$LINENO: checking $ac_header usability" >&5
18971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18972cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000018973/* confdefs.h. */
18974_ACEOF
18975cat confdefs.h >>conftest.$ac_ext
18976cat >>conftest.$ac_ext <<_ACEOF
18977/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +000018978$ac_includes_default
18979#include <$ac_header>
18980_ACEOF
18981rm -f conftest.$ac_objext
18982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000018983 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000018984 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000018985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000018988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000018990 { ac_try='test -z "$ac_c_werror_flag"
18991 || test ! -s conftest.err'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +000018998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +000019004else
jjako286bc982003-01-28 23:17:50 +000019005 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000019006sed 's/^/| /' conftest.$ac_ext >&5
19007
jjako286bc982003-01-28 23:17:50 +000019008ac_header_compiler=no
19009fi
jjakoacba8e62005-03-14 21:53:10 +000019010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +000019011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19012echo "${ECHO_T}$ac_header_compiler" >&6
19013
19014# Is the header present?
19015echo "$as_me:$LINENO: checking $ac_header presence" >&5
19016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19017cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000019018/* confdefs.h. */
19019_ACEOF
19020cat confdefs.h >>conftest.$ac_ext
19021cat >>conftest.$ac_ext <<_ACEOF
19022/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +000019023#include <$ac_header>
19024_ACEOF
19025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19027 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +000019028 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +000019029 rm -f conftest.er1
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } >/dev/null; then
19033 if test -s conftest.err; then
19034 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +000019035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako286bc982003-01-28 23:17:50 +000019036 else
19037 ac_cpp_err=
19038 fi
19039else
19040 ac_cpp_err=yes
19041fi
19042if test -z "$ac_cpp_err"; then
19043 ac_header_preproc=yes
19044else
19045 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000019046sed 's/^/| /' conftest.$ac_ext >&5
19047
jjako286bc982003-01-28 23:17:50 +000019048 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +000019049fi
jjako286bc982003-01-28 23:17:50 +000019050rm -f conftest.err conftest.$ac_ext
19051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19052echo "${ECHO_T}$ac_header_preproc" >&6
19053
19054# So? What about this header?
jjakoacba8e62005-03-14 21:53:10 +000019055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19056 yes:no: )
jjako286bc982003-01-28 23:17:50 +000019057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19061 ac_header_preproc=yes
jjako08d331d2003-10-13 20:33:30 +000019062 ;;
jjakoacba8e62005-03-14 21:53:10 +000019063 no:yes:* )
jjako286bc982003-01-28 23:17:50 +000019064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
jjako286bc982003-01-28 23:17:50 +000019072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +000019073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
jjako08d331d2003-10-13 20:33:30 +000019076 (
19077 cat <<\_ASBOX
jjakoacba8e62005-03-14 21:53:10 +000019078## ------------------------------ ##
19079## Report this to jj@openggsn.org ##
19080## ------------------------------ ##
jjako08d331d2003-10-13 20:33:30 +000019081_ASBOX
19082 ) |
19083 sed "s/^/$as_me: WARNING: /" >&2
19084 ;;
jjako286bc982003-01-28 23:17:50 +000019085esac
19086echo "$as_me:$LINENO: checking for $ac_header" >&5
19087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19088if eval "test \"\${$as_ac_Header+set}\" = set"; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000019090else
jjakoacba8e62005-03-14 21:53:10 +000019091 eval "$as_ac_Header=\$ac_header_preproc"
jjako52c24142002-12-16 13:33:51 +000019092fi
jjako286bc982003-01-28 23:17:50 +000019093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19095
19096fi
19097if test `eval echo '${'$as_ac_Header'}'` = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19100_ACEOF
19101
19102fi
19103
jjako52c24142002-12-16 13:33:51 +000019104done
19105
19106
jjako77edc822004-09-10 17:19:31 +000019107# Check for if header
19108
19109
19110for ac_header in linux/if.h net/if.h
19111do
19112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19113if eval "test \"\${$as_ac_Header+set}\" = set"; then
19114 echo "$as_me:$LINENO: checking for $ac_header" >&5
19115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19116if eval "test \"\${$as_ac_Header+set}\" = set"; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19118fi
19119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19121else
19122 # Is the header compilable?
19123echo "$as_me:$LINENO: checking $ac_header usability" >&5
19124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19125cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
19130/* end confdefs.h. */
19131$ac_includes_default
19132#include <$ac_header>
19133_ACEOF
19134rm -f conftest.$ac_objext
19135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000019136 (eval $ac_compile) 2>conftest.er1
jjako77edc822004-09-10 17:19:31 +000019137 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000019138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
jjako77edc822004-09-10 17:19:31 +000019141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000019143 { ac_try='test -z "$ac_c_werror_flag"
19144 || test ! -s conftest.err'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
jjako77edc822004-09-10 17:19:31 +000019151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 ac_header_compiler=yes
19157else
19158 echo "$as_me: failed program was:" >&5
19159sed 's/^/| /' conftest.$ac_ext >&5
19160
19161ac_header_compiler=no
19162fi
jjakoacba8e62005-03-14 21:53:10 +000019163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako77edc822004-09-10 17:19:31 +000019164echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19165echo "${ECHO_T}$ac_header_compiler" >&6
19166
19167# Is the header present?
19168echo "$as_me:$LINENO: checking $ac_header presence" >&5
19169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19170cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
19176#include <$ac_header>
19177_ACEOF
19178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19180 ac_status=$?
19181 grep -v '^ *+' conftest.er1 >conftest.err
19182 rm -f conftest.er1
19183 cat conftest.err >&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } >/dev/null; then
19186 if test -s conftest.err; then
19187 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +000019188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako77edc822004-09-10 17:19:31 +000019189 else
19190 ac_cpp_err=
19191 fi
19192else
19193 ac_cpp_err=yes
19194fi
19195if test -z "$ac_cpp_err"; then
19196 ac_header_preproc=yes
19197else
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
19201 ac_header_preproc=no
19202fi
19203rm -f conftest.err conftest.$ac_ext
19204echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19205echo "${ECHO_T}$ac_header_preproc" >&6
19206
19207# So? What about this header?
jjakoacba8e62005-03-14 21:53:10 +000019208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19209 yes:no: )
jjako77edc822004-09-10 17:19:31 +000019210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19211echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19213echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19214 ac_header_preproc=yes
jjako77edc822004-09-10 17:19:31 +000019215 ;;
jjakoacba8e62005-03-14 21:53:10 +000019216 no:yes:* )
jjako77edc822004-09-10 17:19:31 +000019217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19218echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19220echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19222echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19224echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
jjako77edc822004-09-10 17:19:31 +000019225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19226echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19228echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
jjako77edc822004-09-10 17:19:31 +000019229 (
19230 cat <<\_ASBOX
jjakoacba8e62005-03-14 21:53:10 +000019231## ------------------------------ ##
19232## Report this to jj@openggsn.org ##
19233## ------------------------------ ##
jjako77edc822004-09-10 17:19:31 +000019234_ASBOX
19235 ) |
19236 sed "s/^/$as_me: WARNING: /" >&2
19237 ;;
19238esac
19239echo "$as_me:$LINENO: checking for $ac_header" >&5
19240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19241if eval "test \"\${$as_ac_Header+set}\" = set"; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
jjakoacba8e62005-03-14 21:53:10 +000019244 eval "$as_ac_Header=\$ac_header_preproc"
jjako77edc822004-09-10 17:19:31 +000019245fi
19246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19248
19249fi
19250if test `eval echo '${'$as_ac_Header'}'` = yes; then
19251 cat >>confdefs.h <<_ACEOF
19252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19253_ACEOF
19254
19255fi
19256
19257done
19258
19259
19260# Check for tun header
19261
19262
19263for ac_header in linux/if_tun.h net/if_tun.h
19264do
19265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19266if eval "test \"\${$as_ac_Header+set}\" = set"; then
19267 echo "$as_me:$LINENO: checking for $ac_header" >&5
19268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19269if eval "test \"\${$as_ac_Header+set}\" = set"; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271fi
19272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19274else
19275 # Is the header compilable?
19276echo "$as_me:$LINENO: checking $ac_header usability" >&5
19277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19278cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019279/* confdefs.h. */
19280_ACEOF
19281cat confdefs.h >>conftest.$ac_ext
19282cat >>conftest.$ac_ext <<_ACEOF
19283/* end confdefs.h. */
19284$ac_includes_default
19285#include <$ac_header>
19286_ACEOF
19287rm -f conftest.$ac_objext
19288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000019289 (eval $ac_compile) 2>conftest.er1
jjako77edc822004-09-10 17:19:31 +000019290 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000019291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
jjako77edc822004-09-10 17:19:31 +000019294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000019296 { ac_try='test -z "$ac_c_werror_flag"
19297 || test ! -s conftest.err'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try='test -s conftest.$ac_objext'
jjako77edc822004-09-10 17:19:31 +000019304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_header_compiler=yes
19310else
19311 echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
19314ac_header_compiler=no
19315fi
jjakoacba8e62005-03-14 21:53:10 +000019316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako77edc822004-09-10 17:19:31 +000019317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19318echo "${ECHO_T}$ac_header_compiler" >&6
19319
19320# Is the header present?
19321echo "$as_me:$LINENO: checking $ac_header presence" >&5
19322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19323cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h. */
19329#include <$ac_header>
19330_ACEOF
19331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19333 ac_status=$?
19334 grep -v '^ *+' conftest.er1 >conftest.err
19335 rm -f conftest.er1
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } >/dev/null; then
19339 if test -s conftest.err; then
19340 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +000019341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako77edc822004-09-10 17:19:31 +000019342 else
19343 ac_cpp_err=
19344 fi
19345else
19346 ac_cpp_err=yes
19347fi
19348if test -z "$ac_cpp_err"; then
19349 ac_header_preproc=yes
19350else
19351 echo "$as_me: failed program was:" >&5
19352sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_header_preproc=no
19355fi
19356rm -f conftest.err conftest.$ac_ext
19357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19358echo "${ECHO_T}$ac_header_preproc" >&6
19359
19360# So? What about this header?
jjakoacba8e62005-03-14 21:53:10 +000019361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19362 yes:no: )
jjako77edc822004-09-10 17:19:31 +000019363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19364echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19366echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19367 ac_header_preproc=yes
jjako77edc822004-09-10 17:19:31 +000019368 ;;
jjakoacba8e62005-03-14 21:53:10 +000019369 no:yes:* )
jjako77edc822004-09-10 17:19:31 +000019370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19371echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19373echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19375echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19377echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
jjako77edc822004-09-10 17:19:31 +000019378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19379echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19381echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
jjako77edc822004-09-10 17:19:31 +000019382 (
19383 cat <<\_ASBOX
jjakoacba8e62005-03-14 21:53:10 +000019384## ------------------------------ ##
19385## Report this to jj@openggsn.org ##
19386## ------------------------------ ##
jjako77edc822004-09-10 17:19:31 +000019387_ASBOX
19388 ) |
19389 sed "s/^/$as_me: WARNING: /" >&2
19390 ;;
19391esac
19392echo "$as_me:$LINENO: checking for $ac_header" >&5
19393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19394if eval "test \"\${$as_ac_Header+set}\" = set"; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396else
jjakoacba8e62005-03-14 21:53:10 +000019397 eval "$as_ac_Header=\$ac_header_preproc"
jjako77edc822004-09-10 17:19:31 +000019398fi
19399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19401
19402fi
19403if test `eval echo '${'$as_ac_Header'}'` = yes; then
19404 cat >>confdefs.h <<_ACEOF
19405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19406_ACEOF
19407
19408fi
19409
19410done
19411
19412
19413# Check for netlink and rtnetlink headers
19414
19415
19416for ac_header in linux/netlink.h linux/rtnetlink.h
19417do
19418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19419if eval "test \"\${$as_ac_Header+set}\" = set"; then
19420 echo "$as_me:$LINENO: checking for $ac_header" >&5
19421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19422if eval "test \"\${$as_ac_Header+set}\" = set"; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424fi
19425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19427else
19428 # Is the header compilable?
19429echo "$as_me:$LINENO: checking $ac_header usability" >&5
19430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19431cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019432/* confdefs.h. */
19433_ACEOF
19434cat confdefs.h >>conftest.$ac_ext
19435cat >>conftest.$ac_ext <<_ACEOF
19436/* end confdefs.h. */
19437$ac_includes_default
19438#include <$ac_header>
19439_ACEOF
19440rm -f conftest.$ac_objext
19441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000019442 (eval $ac_compile) 2>conftest.er1
jjako77edc822004-09-10 17:19:31 +000019443 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000019444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
jjako77edc822004-09-10 17:19:31 +000019447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000019449 { ac_try='test -z "$ac_c_werror_flag"
19450 || test ! -s conftest.err'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try='test -s conftest.$ac_objext'
jjako77edc822004-09-10 17:19:31 +000019457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_header_compiler=yes
19463else
19464 echo "$as_me: failed program was:" >&5
19465sed 's/^/| /' conftest.$ac_ext >&5
19466
19467ac_header_compiler=no
19468fi
jjakoacba8e62005-03-14 21:53:10 +000019469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako77edc822004-09-10 17:19:31 +000019470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19471echo "${ECHO_T}$ac_header_compiler" >&6
19472
19473# Is the header present?
19474echo "$as_me:$LINENO: checking $ac_header presence" >&5
19475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19476cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019477/* confdefs.h. */
19478_ACEOF
19479cat confdefs.h >>conftest.$ac_ext
19480cat >>conftest.$ac_ext <<_ACEOF
19481/* end confdefs.h. */
19482#include <$ac_header>
19483_ACEOF
19484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19486 ac_status=$?
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } >/dev/null; then
19492 if test -s conftest.err; then
19493 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +000019494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako77edc822004-09-10 17:19:31 +000019495 else
19496 ac_cpp_err=
19497 fi
19498else
19499 ac_cpp_err=yes
19500fi
19501if test -z "$ac_cpp_err"; then
19502 ac_header_preproc=yes
19503else
19504 echo "$as_me: failed program was:" >&5
19505sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 ac_header_preproc=no
19508fi
19509rm -f conftest.err conftest.$ac_ext
19510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19511echo "${ECHO_T}$ac_header_preproc" >&6
19512
19513# So? What about this header?
jjakoacba8e62005-03-14 21:53:10 +000019514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19515 yes:no: )
jjako77edc822004-09-10 17:19:31 +000019516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19520 ac_header_preproc=yes
jjako77edc822004-09-10 17:19:31 +000019521 ;;
jjakoacba8e62005-03-14 21:53:10 +000019522 no:yes:* )
jjako77edc822004-09-10 17:19:31 +000019523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
jjako77edc822004-09-10 17:19:31 +000019531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000019533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
jjako77edc822004-09-10 17:19:31 +000019535 (
19536 cat <<\_ASBOX
jjakoacba8e62005-03-14 21:53:10 +000019537## ------------------------------ ##
19538## Report this to jj@openggsn.org ##
19539## ------------------------------ ##
jjako77edc822004-09-10 17:19:31 +000019540_ASBOX
19541 ) |
19542 sed "s/^/$as_me: WARNING: /" >&2
19543 ;;
19544esac
19545echo "$as_me:$LINENO: checking for $ac_header" >&5
19546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19547if eval "test \"\${$as_ac_Header+set}\" = set"; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549else
jjakoacba8e62005-03-14 21:53:10 +000019550 eval "$as_ac_Header=\$ac_header_preproc"
jjako77edc822004-09-10 17:19:31 +000019551fi
19552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19554
19555fi
19556if test `eval echo '${'$as_ac_Header'}'` = yes; then
19557 cat >>confdefs.h <<_ACEOF
19558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19559_ACEOF
19560
19561fi
19562
19563done
19564
19565
19566
jjako286bc982003-01-28 23:17:50 +000019567# Checks for typedefs, structures, and compiler characteristics.
jjako286bc982003-01-28 23:17:50 +000019568echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19569echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19570if test "${ac_cv_c_const+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000019574/* confdefs.h. */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000019579
jjako286bc982003-01-28 23:17:50 +000019580int
19581main ()
19582{
19583/* FIXME: Include the comments suggested by Paul. */
19584#ifndef __cplusplus
19585 /* Ultrix mips cc rejects this. */
19586 typedef int charset[2];
19587 const charset x;
19588 /* SunOS 4.1.1 cc rejects this. */
19589 char const *const *ccp;
19590 char **p;
19591 /* NEC SVR4.0.2 mips cc rejects this. */
19592 struct point {int x, y;};
19593 static struct point const zero = {0,0};
19594 /* AIX XL C 1.02.0.0 rejects this.
19595 It does not let you subtract one const X* pointer from another in
19596 an arm of an if-expression whose if-part is not a constant
19597 expression */
19598 const char *g = "string";
19599 ccp = &g + (g ? g-g : 0);
19600 /* HPUX 7.0 cc rejects these. */
19601 ++ccp;
19602 p = (char**) ccp;
19603 ccp = (char const *const *) p;
19604 { /* SCO 3.2v4 cc rejects this. */
19605 char *t;
19606 char const *s = 0 ? (char *) 0 : (char const *) 0;
jjako52c24142002-12-16 13:33:51 +000019607
jjako286bc982003-01-28 23:17:50 +000019608 *t++ = 0;
19609 }
19610 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19611 int x[] = {25, 17};
19612 const int *foo = &x[0];
19613 ++foo;
19614 }
19615 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19616 typedef const int *iptr;
19617 iptr p = 0;
19618 ++p;
19619 }
19620 { /* AIX XL C 1.02.0.0 rejects this saying
19621 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19622 struct s { int j; const int *ap[3]; };
19623 struct s *b; b->j = 5;
19624 }
19625 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19626 const int foo = 10;
19627 }
19628#endif
jjako52c24142002-12-16 13:33:51 +000019629
jjako286bc982003-01-28 23:17:50 +000019630 ;
19631 return 0;
jjako52c24142002-12-16 13:33:51 +000019632}
jjako286bc982003-01-28 23:17:50 +000019633_ACEOF
19634rm -f conftest.$ac_objext
19635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000019636 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000019637 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000019638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000019641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000019643 { ac_try='test -z "$ac_c_werror_flag"
19644 || test ! -s conftest.err'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +000019651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +000019656 ac_cv_c_const=yes
19657else
jjako286bc982003-01-28 23:17:50 +000019658 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000019659sed 's/^/| /' conftest.$ac_ext >&5
19660
jjako286bc982003-01-28 23:17:50 +000019661ac_cv_c_const=no
jjako52c24142002-12-16 13:33:51 +000019662fi
jjakoacba8e62005-03-14 21:53:10 +000019663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +000019664fi
jjako286bc982003-01-28 23:17:50 +000019665echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19666echo "${ECHO_T}$ac_cv_c_const" >&6
jjako52c24142002-12-16 13:33:51 +000019667if test $ac_cv_c_const = no; then
jjako286bc982003-01-28 23:17:50 +000019668
19669cat >>confdefs.h <<\_ACEOF
19670#define const
19671_ACEOF
jjako52c24142002-12-16 13:33:51 +000019672
19673fi
19674
jjako286bc982003-01-28 23:17:50 +000019675echo "$as_me:$LINENO: checking for mode_t" >&5
19676echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
19677if test "${ac_cv_type_mode_t+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000019679else
jjako286bc982003-01-28 23:17:50 +000019680 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000019681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +000019686$ac_includes_default
jjako286bc982003-01-28 23:17:50 +000019687int
19688main ()
19689{
19690if ((mode_t *) 0)
19691 return 0;
19692if (sizeof (mode_t))
19693 return 0;
19694 ;
19695 return 0;
19696}
19697_ACEOF
19698rm -f conftest.$ac_objext
19699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000019700 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000019701 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000019702 grep -v '^ *+' conftest.er1 >conftest.err
19703 rm -f conftest.er1
19704 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000019705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000019707 { ac_try='test -z "$ac_c_werror_flag"
19708 || test ! -s conftest.err'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } &&
19714 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +000019715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 ac_cv_type_mode_t=yes
19721else
19722 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000019723sed 's/^/| /' conftest.$ac_ext >&5
19724
jjako286bc982003-01-28 23:17:50 +000019725ac_cv_type_mode_t=no
19726fi
jjakoacba8e62005-03-14 21:53:10 +000019727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +000019728fi
19729echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19730echo "${ECHO_T}$ac_cv_type_mode_t" >&6
19731if test $ac_cv_type_mode_t = yes; then
19732 :
19733else
19734
19735cat >>confdefs.h <<_ACEOF
19736#define mode_t int
19737_ACEOF
19738
19739fi
19740
19741echo "$as_me:$LINENO: checking for size_t" >&5
19742echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19743if test "${ac_cv_type_size_t+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745else
19746 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000019747/* confdefs.h. */
19748_ACEOF
19749cat confdefs.h >>conftest.$ac_ext
19750cat >>conftest.$ac_ext <<_ACEOF
19751/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +000019752$ac_includes_default
jjako286bc982003-01-28 23:17:50 +000019753int
19754main ()
19755{
19756if ((size_t *) 0)
19757 return 0;
19758if (sizeof (size_t))
19759 return 0;
19760 ;
19761 return 0;
19762}
19763_ACEOF
19764rm -f conftest.$ac_objext
19765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000019766 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000019767 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000019768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000019771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000019773 { ac_try='test -z "$ac_c_werror_flag"
19774 || test ! -s conftest.err'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +000019781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +000019786 ac_cv_type_size_t=yes
19787else
jjako286bc982003-01-28 23:17:50 +000019788 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000019789sed 's/^/| /' conftest.$ac_ext >&5
19790
jjako286bc982003-01-28 23:17:50 +000019791ac_cv_type_size_t=no
jjako52c24142002-12-16 13:33:51 +000019792fi
jjakoacba8e62005-03-14 21:53:10 +000019793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +000019794fi
jjako286bc982003-01-28 23:17:50 +000019795echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19796echo "${ECHO_T}$ac_cv_type_size_t" >&6
19797if test $ac_cv_type_size_t = yes; then
19798 :
jjako52c24142002-12-16 13:33:51 +000019799else
jjako286bc982003-01-28 23:17:50 +000019800
19801cat >>confdefs.h <<_ACEOF
19802#define size_t unsigned
19803_ACEOF
19804
19805fi
19806
19807echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19808echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19809if test "${ac_cv_header_time+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811else
19812 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000019813/* confdefs.h. */
19814_ACEOF
19815cat confdefs.h >>conftest.$ac_ext
19816cat >>conftest.$ac_ext <<_ACEOF
19817/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000019818#include <sys/types.h>
19819#include <sys/time.h>
19820#include <time.h>
jjako286bc982003-01-28 23:17:50 +000019821
jjako286bc982003-01-28 23:17:50 +000019822int
19823main ()
19824{
19825if ((struct tm *) 0)
19826return 0;
19827 ;
19828 return 0;
19829}
19830_ACEOF
19831rm -f conftest.$ac_objext
19832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000019833 (eval $ac_compile) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000019834 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000019835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000019838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000019840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest.$ac_objext'
jjako286bc982003-01-28 23:17:50 +000019848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +000019853 ac_cv_header_time=yes
19854else
jjako286bc982003-01-28 23:17:50 +000019855 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000019856sed 's/^/| /' conftest.$ac_ext >&5
19857
jjako286bc982003-01-28 23:17:50 +000019858ac_cv_header_time=no
jjako52c24142002-12-16 13:33:51 +000019859fi
jjakoacba8e62005-03-14 21:53:10 +000019860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +000019861fi
jjako286bc982003-01-28 23:17:50 +000019862echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19863echo "${ECHO_T}$ac_cv_header_time" >&6
jjako52c24142002-12-16 13:33:51 +000019864if test $ac_cv_header_time = yes; then
jjako286bc982003-01-28 23:17:50 +000019865
19866cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000019867#define TIME_WITH_SYS_TIME 1
jjako286bc982003-01-28 23:17:50 +000019868_ACEOF
jjako52c24142002-12-16 13:33:51 +000019869
19870fi
19871
19872
jjako77edc822004-09-10 17:19:31 +000019873# check for ifaliasreq
19874echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
19875echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
19876
19877
19878cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019879/* confdefs.h. */
19880_ACEOF
19881cat confdefs.h >>conftest.$ac_ext
19882cat >>conftest.$ac_ext <<_ACEOF
19883/* end confdefs.h. */
19884#include <net/if.h>
19885
19886_ACEOF
19887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19888 $EGREP "ifaliasreq" >/dev/null 2>&1; then
19889 echo "$as_me:$LINENO: result: yes" >&5
19890echo "${ECHO_T}yes" >&6
19891 cat >>confdefs.h <<\_ACEOF
19892#define HAVE_IFALIASREQ 1
19893_ACEOF
19894
19895else
19896 echo "$as_me:$LINENO: result: no" >&5
19897echo "${ECHO_T}no" >&6
19898fi
19899rm -f conftest*
19900
19901
19902# check for ifreq.ifru_netmask
19903echo "$as_me:$LINENO: checking whether struct ifreq.ifru_netmask exist" >&5
19904echo $ECHO_N "checking whether struct ifreq.ifru_netmask exist... $ECHO_C" >&6
19905
19906
19907cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019908/* confdefs.h. */
19909_ACEOF
19910cat confdefs.h >>conftest.$ac_ext
19911cat >>conftest.$ac_ext <<_ACEOF
19912/* end confdefs.h. */
19913#include <linux/if.h>
19914
19915_ACEOF
19916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19917 $EGREP "ifru_netmask" >/dev/null 2>&1; then
19918 echo "$as_me:$LINENO: result: yes" >&5
19919echo "${ECHO_T}yes" >&6
19920 cat >>confdefs.h <<\_ACEOF
19921#define HAVE_IFREQ_IFRU_NETMASK 1
19922_ACEOF
19923
19924else
19925 echo "$as_me:$LINENO: result: no" >&5
19926echo "${ECHO_T}no" >&6
19927fi
19928rm -f conftest*
19929
19930
19931
19932# check for rt_msghdr
19933echo "$as_me:$LINENO: checking whether struct rt_msghdr exist" >&5
19934echo $ECHO_N "checking whether struct rt_msghdr exist... $ECHO_C" >&6
19935
19936
19937cat >conftest.$ac_ext <<_ACEOF
jjako77edc822004-09-10 17:19:31 +000019938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
19943#include <net/route.h>
19944
19945_ACEOF
19946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19947 $EGREP "rt_msghdr" >/dev/null 2>&1; then
19948 echo "$as_me:$LINENO: result: yes" >&5
19949echo "${ECHO_T}yes" >&6
19950 cat >>confdefs.h <<\_ACEOF
19951#define HAVE_RT_MSGHDR 1
19952_ACEOF
19953
19954else
19955 echo "$as_me:$LINENO: result: no" >&5
19956echo "${ECHO_T}no" >&6
19957fi
19958rm -f conftest*
19959
19960
19961
jjako286bc982003-01-28 23:17:50 +000019962# Checks for library functions.
19963if test $ac_cv_c_compiler_gnu = yes; then
19964 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
19965echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
19966if test "${ac_cv_prog_gcc_traditional+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000019968else
19969 ac_pattern="Autoconf.*'x'"
jjako286bc982003-01-28 23:17:50 +000019970 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000019971/* confdefs.h. */
19972_ACEOF
19973cat confdefs.h >>conftest.$ac_ext
19974cat >>conftest.$ac_ext <<_ACEOF
19975/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000019976#include <sgtty.h>
19977Autoconf TIOCGETP
jjako286bc982003-01-28 23:17:50 +000019978_ACEOF
jjako52c24142002-12-16 13:33:51 +000019979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +000019980 $EGREP "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +000019981 ac_cv_prog_gcc_traditional=yes
19982else
jjako52c24142002-12-16 13:33:51 +000019983 ac_cv_prog_gcc_traditional=no
19984fi
19985rm -f conftest*
19986
19987
19988 if test $ac_cv_prog_gcc_traditional = no; then
jjako286bc982003-01-28 23:17:50 +000019989 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000019990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +000019995#include <termio.h>
19996Autoconf TCGETA
jjako286bc982003-01-28 23:17:50 +000019997_ACEOF
jjako52c24142002-12-16 13:33:51 +000019998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +000019999 $EGREP "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +000020000 ac_cv_prog_gcc_traditional=yes
20001fi
20002rm -f conftest*
20003
20004 fi
20005fi
jjako286bc982003-01-28 23:17:50 +000020006echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20007echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
jjako52c24142002-12-16 13:33:51 +000020008 if test $ac_cv_prog_gcc_traditional = yes; then
20009 CC="$CC -traditional"
20010 fi
20011fi
20012
jjakoacba8e62005-03-14 21:53:10 +000020013# AC_FUNC_MALLOC
jjako1d3db972004-01-16 09:56:56 +000020014# AC_FUNC_MEMCMP
jjako286bc982003-01-28 23:17:50 +000020015
20016
20017
20018
20019
20020
20021
20022
20023for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol
jjako52c24142002-12-16 13:33:51 +000020024do
jjako286bc982003-01-28 23:17:50 +000020025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20026echo "$as_me:$LINENO: checking for $ac_func" >&5
20027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20028if eval "test \"\${$as_ac_var+set}\" = set"; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000020030else
jjako286bc982003-01-28 23:17:50 +000020031 cat >conftest.$ac_ext <<_ACEOF
jjako08d331d2003-10-13 20:33:30 +000020032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
jjakoacba8e62005-03-14 21:53:10 +000020037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20039#define $ac_func innocuous_$ac_func
20040
jjako52c24142002-12-16 13:33:51 +000020041/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +000020042 which can conflict with char $ac_func (); below.
20043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20044 <limits.h> exists even on freestanding compilers. */
jjakoacba8e62005-03-14 21:53:10 +000020045
jjako08d331d2003-10-13 20:33:30 +000020046#ifdef __STDC__
20047# include <limits.h>
20048#else
20049# include <assert.h>
20050#endif
jjakoacba8e62005-03-14 21:53:10 +000020051
20052#undef $ac_func
20053
jjako52c24142002-12-16 13:33:51 +000020054/* Override any gcc2 internal prototype to avoid an error. */
jjako286bc982003-01-28 23:17:50 +000020055#ifdef __cplusplus
20056extern "C"
jjako08d331d2003-10-13 20:33:30 +000020057{
jjako286bc982003-01-28 23:17:50 +000020058#endif
jjako52c24142002-12-16 13:33:51 +000020059/* We use char because int might match the return type of a gcc2
jjako286bc982003-01-28 23:17:50 +000020060 builtin and then its argument prototype would still apply. */
20061char $ac_func ();
jjako52c24142002-12-16 13:33:51 +000020062/* The GNU C library defines this for functions which it implements
20063 to always fail with ENOSYS. Some functions are actually named
20064 something starting with __ and the normal name is an alias. */
20065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20066choke me
20067#else
jjako08d331d2003-10-13 20:33:30 +000020068char (*f) () = $ac_func;
20069#endif
20070#ifdef __cplusplus
20071}
jjako52c24142002-12-16 13:33:51 +000020072#endif
20073
jjako08d331d2003-10-13 20:33:30 +000020074int
20075main ()
20076{
20077return f != $ac_func;
jjako286bc982003-01-28 23:17:50 +000020078 ;
20079 return 0;
20080}
20081_ACEOF
20082rm -f conftest.$ac_objext conftest$ac_exeext
20083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000020084 (eval $ac_link) 2>conftest.er1
jjako286bc982003-01-28 23:17:50 +000020085 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000020086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
jjako286bc982003-01-28 23:17:50 +000020089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000020091 { ac_try='test -z "$ac_c_werror_flag"
20092 || test ! -s conftest.err'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; } &&
20098 { ac_try='test -s conftest$ac_exeext'
jjako286bc982003-01-28 23:17:50 +000020099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20104 eval "$as_ac_var=yes"
jjako52c24142002-12-16 13:33:51 +000020105else
jjako286bc982003-01-28 23:17:50 +000020106 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +000020107sed 's/^/| /' conftest.$ac_ext >&5
20108
jjako286bc982003-01-28 23:17:50 +000020109eval "$as_ac_var=no"
jjako52c24142002-12-16 13:33:51 +000020110fi
jjakoacba8e62005-03-14 21:53:10 +000020111rm -f conftest.err conftest.$ac_objext \
20112 conftest$ac_exeext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +000020113fi
jjako286bc982003-01-28 23:17:50 +000020114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20115echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20116if test `eval echo '${'$as_ac_var'}'` = yes; then
20117 cat >>confdefs.h <<_ACEOF
20118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20119_ACEOF
jjako52c24142002-12-16 13:33:51 +000020120
jjako52c24142002-12-16 13:33:51 +000020121fi
20122done
20123
20124
jjako1d3db972004-01-16 09:56:56 +000020125
20126for ac_func in inet_aton inet_addr
20127do
20128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20129echo "$as_me:$LINENO: checking for $ac_func" >&5
20130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20131if eval "test \"\${$as_ac_var+set}\" = set"; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133else
20134 cat >conftest.$ac_ext <<_ACEOF
jjako1d3db972004-01-16 09:56:56 +000020135/* confdefs.h. */
20136_ACEOF
20137cat confdefs.h >>conftest.$ac_ext
20138cat >>conftest.$ac_ext <<_ACEOF
20139/* end confdefs.h. */
jjakoacba8e62005-03-14 21:53:10 +000020140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20142#define $ac_func innocuous_$ac_func
20143
jjako1d3db972004-01-16 09:56:56 +000020144/* System header to define __stub macros and hopefully few prototypes,
20145 which can conflict with char $ac_func (); below.
20146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20147 <limits.h> exists even on freestanding compilers. */
jjakoacba8e62005-03-14 21:53:10 +000020148
jjako1d3db972004-01-16 09:56:56 +000020149#ifdef __STDC__
20150# include <limits.h>
20151#else
20152# include <assert.h>
20153#endif
jjakoacba8e62005-03-14 21:53:10 +000020154
20155#undef $ac_func
20156
jjako1d3db972004-01-16 09:56:56 +000020157/* Override any gcc2 internal prototype to avoid an error. */
20158#ifdef __cplusplus
20159extern "C"
20160{
20161#endif
20162/* We use char because int might match the return type of a gcc2
20163 builtin and then its argument prototype would still apply. */
20164char $ac_func ();
20165/* The GNU C library defines this for functions which it implements
20166 to always fail with ENOSYS. Some functions are actually named
20167 something starting with __ and the normal name is an alias. */
20168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20169choke me
20170#else
20171char (*f) () = $ac_func;
20172#endif
20173#ifdef __cplusplus
20174}
20175#endif
20176
20177int
20178main ()
20179{
20180return f != $ac_func;
20181 ;
20182 return 0;
20183}
20184_ACEOF
20185rm -f conftest.$ac_objext conftest$ac_exeext
20186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000020187 (eval $ac_link) 2>conftest.er1
jjako1d3db972004-01-16 09:56:56 +000020188 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000020189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
jjako1d3db972004-01-16 09:56:56 +000020192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000020194 { ac_try='test -z "$ac_c_werror_flag"
20195 || test ! -s conftest.err'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest$ac_exeext'
jjako1d3db972004-01-16 09:56:56 +000020202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 eval "$as_ac_var=yes"
20208else
20209 echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
20212eval "$as_ac_var=no"
20213fi
jjakoacba8e62005-03-14 21:53:10 +000020214rm -f conftest.err conftest.$ac_objext \
20215 conftest$ac_exeext conftest.$ac_ext
jjako1d3db972004-01-16 09:56:56 +000020216fi
20217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20219if test `eval echo '${'$as_ac_var'}'` = yes; then
20220 cat >>confdefs.h <<_ACEOF
20221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20222_ACEOF
20223 break
20224fi
20225done
20226
20227
20228# check for getopt in standard library
20229 # clean out junk possibly left behind by a previous configuration
20230 rm -f lib/getopt.h
20231 # Check for getopt_long support
20232
20233for ac_header in getopt.h
20234do
20235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236if eval "test \"\${$as_ac_Header+set}\" = set"; then
20237 echo "$as_me:$LINENO: checking for $ac_header" >&5
20238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20239if eval "test \"\${$as_ac_Header+set}\" = set"; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20241fi
20242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20244else
20245 # Is the header compilable?
20246echo "$as_me:$LINENO: checking $ac_header usability" >&5
20247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20248cat >conftest.$ac_ext <<_ACEOF
jjako1d3db972004-01-16 09:56:56 +000020249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
20254$ac_includes_default
20255#include <$ac_header>
20256_ACEOF
20257rm -f conftest.$ac_objext
20258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000020259 (eval $ac_compile) 2>conftest.er1
jjako1d3db972004-01-16 09:56:56 +000020260 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000020261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
jjako1d3db972004-01-16 09:56:56 +000020264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000020266 { ac_try='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
jjako1d3db972004-01-16 09:56:56 +000020274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_header_compiler=yes
20280else
20281 echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
20283
20284ac_header_compiler=no
20285fi
jjakoacba8e62005-03-14 21:53:10 +000020286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
jjako1d3db972004-01-16 09:56:56 +000020287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20288echo "${ECHO_T}$ac_header_compiler" >&6
20289
20290# Is the header present?
20291echo "$as_me:$LINENO: checking $ac_header presence" >&5
20292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20293cat >conftest.$ac_ext <<_ACEOF
jjako1d3db972004-01-16 09:56:56 +000020294/* confdefs.h. */
20295_ACEOF
20296cat confdefs.h >>conftest.$ac_ext
20297cat >>conftest.$ac_ext <<_ACEOF
20298/* end confdefs.h. */
20299#include <$ac_header>
20300_ACEOF
20301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } >/dev/null; then
20309 if test -s conftest.err; then
20310 ac_cpp_err=$ac_c_preproc_warn_flag
jjakoacba8e62005-03-14 21:53:10 +000020311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
jjako1d3db972004-01-16 09:56:56 +000020312 else
20313 ac_cpp_err=
20314 fi
20315else
20316 ac_cpp_err=yes
20317fi
20318if test -z "$ac_cpp_err"; then
20319 ac_header_preproc=yes
20320else
20321 echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ac_header_preproc=no
20325fi
20326rm -f conftest.err conftest.$ac_ext
20327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20328echo "${ECHO_T}$ac_header_preproc" >&6
20329
20330# So? What about this header?
jjakoacba8e62005-03-14 21:53:10 +000020331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20332 yes:no: )
jjako1d3db972004-01-16 09:56:56 +000020333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000020335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20337 ac_header_preproc=yes
jjako1d3db972004-01-16 09:56:56 +000020338 ;;
jjakoacba8e62005-03-14 21:53:10 +000020339 no:yes:* )
jjako1d3db972004-01-16 09:56:56 +000020340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000020342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
jjako1d3db972004-01-16 09:56:56 +000020348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
jjakoacba8e62005-03-14 21:53:10 +000020350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
jjako1d3db972004-01-16 09:56:56 +000020352 (
20353 cat <<\_ASBOX
jjakoacba8e62005-03-14 21:53:10 +000020354## ------------------------------ ##
20355## Report this to jj@openggsn.org ##
20356## ------------------------------ ##
jjako1d3db972004-01-16 09:56:56 +000020357_ASBOX
20358 ) |
20359 sed "s/^/$as_me: WARNING: /" >&2
20360 ;;
20361esac
20362echo "$as_me:$LINENO: checking for $ac_header" >&5
20363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20364if eval "test \"\${$as_ac_Header+set}\" = set"; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20366else
jjakoacba8e62005-03-14 21:53:10 +000020367 eval "$as_ac_Header=\$ac_header_preproc"
jjako1d3db972004-01-16 09:56:56 +000020368fi
20369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20371
20372fi
20373if test `eval echo '${'$as_ac_Header'}'` = yes; then
20374 cat >>confdefs.h <<_ACEOF
20375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20376_ACEOF
20377
20378fi
20379
20380done
20381
20382
20383for ac_func in getopt_long
20384do
20385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20386echo "$as_me:$LINENO: checking for $ac_func" >&5
20387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20388if eval "test \"\${$as_ac_var+set}\" = set"; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20390else
20391 cat >conftest.$ac_ext <<_ACEOF
jjako1d3db972004-01-16 09:56:56 +000020392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
jjakoacba8e62005-03-14 21:53:10 +000020397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20399#define $ac_func innocuous_$ac_func
20400
jjako1d3db972004-01-16 09:56:56 +000020401/* System header to define __stub macros and hopefully few prototypes,
20402 which can conflict with char $ac_func (); below.
20403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20404 <limits.h> exists even on freestanding compilers. */
jjakoacba8e62005-03-14 21:53:10 +000020405
jjako1d3db972004-01-16 09:56:56 +000020406#ifdef __STDC__
20407# include <limits.h>
20408#else
20409# include <assert.h>
20410#endif
jjakoacba8e62005-03-14 21:53:10 +000020411
20412#undef $ac_func
20413
jjako1d3db972004-01-16 09:56:56 +000020414/* Override any gcc2 internal prototype to avoid an error. */
20415#ifdef __cplusplus
20416extern "C"
20417{
20418#endif
20419/* We use char because int might match the return type of a gcc2
20420 builtin and then its argument prototype would still apply. */
20421char $ac_func ();
20422/* The GNU C library defines this for functions which it implements
20423 to always fail with ENOSYS. Some functions are actually named
20424 something starting with __ and the normal name is an alias. */
20425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20426choke me
20427#else
20428char (*f) () = $ac_func;
20429#endif
20430#ifdef __cplusplus
20431}
20432#endif
20433
20434int
20435main ()
20436{
20437return f != $ac_func;
20438 ;
20439 return 0;
20440}
20441_ACEOF
20442rm -f conftest.$ac_objext conftest$ac_exeext
20443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000020444 (eval $ac_link) 2>conftest.er1
jjako1d3db972004-01-16 09:56:56 +000020445 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000020446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
jjako1d3db972004-01-16 09:56:56 +000020449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000020451 { ac_try='test -z "$ac_c_werror_flag"
20452 || test ! -s conftest.err'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest$ac_exeext'
jjako1d3db972004-01-16 09:56:56 +000020459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 eval "$as_ac_var=yes"
20465else
20466 echo "$as_me: failed program was:" >&5
20467sed 's/^/| /' conftest.$ac_ext >&5
20468
20469eval "$as_ac_var=no"
20470fi
jjakoacba8e62005-03-14 21:53:10 +000020471rm -f conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
jjako1d3db972004-01-16 09:56:56 +000020473fi
20474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20476if test `eval echo '${'$as_ac_var'}'` = yes; then
20477 cat >>confdefs.h <<_ACEOF
20478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20479_ACEOF
20480
20481else
20482 # FreeBSD has a gnugetopt library for this
20483 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
20484echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
20485if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20487else
20488 ac_check_lib_save_LIBS=$LIBS
20489LIBS="-lgnugetopt $LIBS"
20490cat >conftest.$ac_ext <<_ACEOF
jjako1d3db972004-01-16 09:56:56 +000020491/* confdefs.h. */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h. */
20496
20497/* Override any gcc2 internal prototype to avoid an error. */
20498#ifdef __cplusplus
20499extern "C"
20500#endif
20501/* We use char because int might match the return type of a gcc2
20502 builtin and then its argument prototype would still apply. */
20503char getopt_long ();
20504int
20505main ()
20506{
20507getopt_long ();
20508 ;
20509 return 0;
20510}
20511_ACEOF
20512rm -f conftest.$ac_objext conftest$ac_exeext
20513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jjakoacba8e62005-03-14 21:53:10 +000020514 (eval $ac_link) 2>conftest.er1
jjako1d3db972004-01-16 09:56:56 +000020515 ac_status=$?
jjakoacba8e62005-03-14 21:53:10 +000020516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
jjako1d3db972004-01-16 09:56:56 +000020519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
jjakoacba8e62005-03-14 21:53:10 +000020521 { ac_try='test -z "$ac_c_werror_flag"
20522 || test ! -s conftest.err'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; } &&
20528 { ac_try='test -s conftest$ac_exeext'
jjako1d3db972004-01-16 09:56:56 +000020529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 ac_cv_lib_gnugetopt_getopt_long=yes
20535else
20536 echo "$as_me: failed program was:" >&5
20537sed 's/^/| /' conftest.$ac_ext >&5
20538
20539ac_cv_lib_gnugetopt_getopt_long=no
20540fi
jjakoacba8e62005-03-14 21:53:10 +000020541rm -f conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
jjako1d3db972004-01-16 09:56:56 +000020543LIBS=$ac_check_lib_save_LIBS
20544fi
20545echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
20546echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
20547if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
20548 cat >>confdefs.h <<\_ACEOF
20549#define HAVE_GETOPT_LONG 1
20550_ACEOF
20551
20552else
20553 # use the GNU replacement
jjakoacba8e62005-03-14 21:53:10 +000020554 case $LIBOBJS in
20555 "getopt.$ac_objext" | \
20556 *" getopt.$ac_objext" | \
20557 "getopt.$ac_objext "* | \
20558 *" getopt.$ac_objext "* ) ;;
20559 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
20560esac
20561
20562 case $LIBOBJS in
20563 "getopt1.$ac_objext" | \
20564 *" getopt1.$ac_objext" | \
20565 "getopt1.$ac_objext "* | \
20566 *" getopt1.$ac_objext "* ) ;;
20567 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
20568esac
20569
jjako1d3db972004-01-16 09:56:56 +000020570 ac_config_links="$ac_config_links ggsn/getopt.h:ggsn/gnugetopt.h"
20571
20572 ac_config_links="$ac_config_links sgsnemu/getopt.h:sgsnemu/gnugetopt.h"
20573
20574fi
20575
20576fi
20577done
20578
20579
jjakoacba8e62005-03-14 21:53:10 +000020580am__api_version="1.9"
jjako286bc982003-01-28 23:17:50 +000020581echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20582echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000020583# Just in case
20584sleep 1
jjako286bc982003-01-28 23:17:50 +000020585echo timestamp > conftest.file
jjako52c24142002-12-16 13:33:51 +000020586# Do `set' in a subshell so we don't clobber the current shell's
20587# arguments. Must try -L first in case configure is actually a
20588# symlink; some systems play weird games with the mod time of symlinks
20589# (eg FreeBSD returns the mod time of the symlink's containing
20590# directory).
20591if (
jjako286bc982003-01-28 23:17:50 +000020592 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
jjako52c24142002-12-16 13:33:51 +000020593 if test "$*" = "X"; then
20594 # -L didn't work.
jjako286bc982003-01-28 23:17:50 +000020595 set X `ls -t $srcdir/configure conftest.file`
jjako52c24142002-12-16 13:33:51 +000020596 fi
jjako286bc982003-01-28 23:17:50 +000020597 rm -f conftest.file
20598 if test "$*" != "X $srcdir/configure conftest.file" \
20599 && test "$*" != "X conftest.file $srcdir/configure"; then
jjako52c24142002-12-16 13:33:51 +000020600
20601 # If neither matched, then we have a broken ls. This can happen
20602 # if, for instance, CONFIG_SHELL is bash and it inherits a
20603 # broken ls alias from the environment. This has actually
20604 # happened. Such a system could not be considered "sane".
jjako286bc982003-01-28 23:17:50 +000020605 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20606alias in your environment" >&5
20607echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20608alias in your environment" >&2;}
20609 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +000020610 fi
20611
jjako286bc982003-01-28 23:17:50 +000020612 test "$2" = conftest.file
jjako52c24142002-12-16 13:33:51 +000020613 )
20614then
20615 # Ok.
20616 :
20617else
jjako286bc982003-01-28 23:17:50 +000020618 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20619Check your system clock" >&5
20620echo "$as_me: error: newly created file is older than distributed files!
20621Check your system clock" >&2;}
20622 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +000020623fi
jjako286bc982003-01-28 23:17:50 +000020624echo "$as_me:$LINENO: result: yes" >&5
20625echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +000020626test "$program_prefix" != NONE &&
jjako286bc982003-01-28 23:17:50 +000020627 program_transform_name="s,^,$program_prefix,;$program_transform_name"
jjako52c24142002-12-16 13:33:51 +000020628# Use a double $ so make ignores it.
20629test "$program_suffix" != NONE &&
jjako286bc982003-01-28 23:17:50 +000020630 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
20631# Double any \ or $. echo might interpret backslashes.
20632# By default was `s,x,x', remove it if useless.
20633cat <<\_ACEOF >conftest.sed
20634s/[\\$]/&&/g;s/;s,x,x,$//
20635_ACEOF
20636program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
20637rm conftest.sed
jjako52c24142002-12-16 13:33:51 +000020638
jjako286bc982003-01-28 23:17:50 +000020639# expand $ac_aux_dir to an absolute path
20640am_aux_dir=`cd $ac_aux_dir && pwd`
20641
20642test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20643# Use eval to expand $SHELL
20644if eval "$MISSING --run true"; then
20645 am_missing_run="$MISSING --run "
jjako52c24142002-12-16 13:33:51 +000020646else
jjako286bc982003-01-28 23:17:50 +000020647 am_missing_run=
20648 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20649echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20650fi
20651
jjakoacba8e62005-03-14 21:53:10 +000020652if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
20653 # We used to keeping the `.' as first argument, in order to
20654 # allow $(mkdir_p) to be used without argument. As in
20655 # $(mkdir_p) $(somedir)
20656 # where $(somedir) is conditionally defined. However this is wrong
20657 # for two reasons:
20658 # 1. if the package is installed by a user who cannot write `.'
20659 # make install will fail,
20660 # 2. the above comment should most certainly read
20661 # $(mkdir_p) $(DESTDIR)$(somedir)
20662 # so it does not work when $(somedir) is undefined and
20663 # $(DESTDIR) is not.
20664 # To support the latter case, we have to write
20665 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
20666 # so the `.' trick is pointless.
20667 mkdir_p='mkdir -p --'
20668else
20669 # On NextStep and OpenStep, the `mkdir' command does not
20670 # recognize any option. It will interpret all options as
20671 # directories to create, and then abort because `.' already
20672 # exists.
20673 for d in ./-p ./--version;
20674 do
20675 test -d $d && rmdir $d
20676 done
20677 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
20678 if test -f "$ac_aux_dir/mkinstalldirs"; then
20679 mkdir_p='$(mkinstalldirs)'
20680 else
20681 mkdir_p='$(install_sh) -d'
20682 fi
20683fi
20684
jjako08d331d2003-10-13 20:33:30 +000020685echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20686echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
jjakoacba8e62005-03-14 21:53:10 +000020687set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
jjako286bc982003-01-28 23:17:50 +000020688if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691 cat >conftest.make <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000020692all:
jjako08d331d2003-10-13 20:33:30 +000020693 @echo 'ac_maketemp="$(MAKE)"'
jjako286bc982003-01-28 23:17:50 +000020694_ACEOF
jjako52c24142002-12-16 13:33:51 +000020695# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
jjako286bc982003-01-28 23:17:50 +000020696eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
jjako52c24142002-12-16 13:33:51 +000020697if test -n "$ac_maketemp"; then
20698 eval ac_cv_prog_make_${ac_make}_set=yes
20699else
20700 eval ac_cv_prog_make_${ac_make}_set=no
20701fi
jjako286bc982003-01-28 23:17:50 +000020702rm -f conftest.make
jjako52c24142002-12-16 13:33:51 +000020703fi
20704if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
jjako286bc982003-01-28 23:17:50 +000020705 echo "$as_me:$LINENO: result: yes" >&5
20706echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +000020707 SET_MAKE=
20708else
jjako286bc982003-01-28 23:17:50 +000020709 echo "$as_me:$LINENO: result: no" >&5
20710echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +000020711 SET_MAKE="MAKE=${MAKE-make}"
20712fi
20713
jjakoacba8e62005-03-14 21:53:10 +000020714rm -rf .tst 2>/dev/null
20715mkdir .tst 2>/dev/null
20716if test -d .tst; then
20717 am__leading_dot=.
jjako286bc982003-01-28 23:17:50 +000020718else
jjakoacba8e62005-03-14 21:53:10 +000020719 am__leading_dot=_
jjako52c24142002-12-16 13:33:51 +000020720fi
jjakoacba8e62005-03-14 21:53:10 +000020721rmdir .tst 2>/dev/null
jjako286bc982003-01-28 23:17:50 +000020722
jjakoacba8e62005-03-14 21:53:10 +000020723DEPDIR="${am__leading_dot}deps"
jjako286bc982003-01-28 23:17:50 +000020724
jjako08d331d2003-10-13 20:33:30 +000020725 ac_config_commands="$ac_config_commands depfiles"
jjako286bc982003-01-28 23:17:50 +000020726
20727
20728am_make=${MAKE-make}
20729cat > confinc << 'END'
jjakoacba8e62005-03-14 21:53:10 +000020730am__doit:
jjako286bc982003-01-28 23:17:50 +000020731 @echo done
jjakoacba8e62005-03-14 21:53:10 +000020732.PHONY: am__doit
jjako286bc982003-01-28 23:17:50 +000020733END
20734# If we don't find an include directive, just comment out the code.
20735echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
20736echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
20737am__include="#"
20738am__quote=
20739_am_result=none
20740# First try GNU make style include.
20741echo "include confinc" > confmf
20742# We grep out `Entering directory' and `Leaving directory'
20743# messages which can occur if `w' ends up in MAKEFLAGS.
20744# In particular we don't look at `^make:' because GNU make might
20745# be invoked under some other name (usually "gmake"), in which
20746# case it prints its new name instead of `make'.
jjakoacba8e62005-03-14 21:53:10 +000020747if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
jjako286bc982003-01-28 23:17:50 +000020748 am__include=include
20749 am__quote=
20750 _am_result=GNU
20751fi
20752# Now try BSD make style include.
20753if test "$am__include" = "#"; then
20754 echo '.include "confinc"' > confmf
20755 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
20756 am__include=.include
20757 am__quote="\""
20758 _am_result=BSD
20759 fi
20760fi
20761
20762
20763echo "$as_me:$LINENO: result: $_am_result" >&5
20764echo "${ECHO_T}$_am_result" >&6
20765rm -f confinc confmf
20766
20767# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
20768if test "${enable_dependency_tracking+set}" = set; then
20769 enableval="$enable_dependency_tracking"
20770
20771fi;
20772if test "x$enable_dependency_tracking" != xno; then
20773 am_depcomp="$ac_aux_dir/depcomp"
20774 AMDEPBACKSLASH='\'
20775fi
20776
20777
20778if test "x$enable_dependency_tracking" != xno; then
20779 AMDEP_TRUE=
20780 AMDEP_FALSE='#'
20781else
20782 AMDEP_TRUE='#'
20783 AMDEP_FALSE=
20784fi
20785
20786
20787
jjakoacba8e62005-03-14 21:53:10 +000020788# test to see if srcdir already configured
jjako286bc982003-01-28 23:17:50 +000020789if test "`cd $srcdir && pwd`" != "`pwd`" &&
20790 test -f $srcdir/config.status; then
20791 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
20792echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
20793 { (exit 1); exit 1; }; }
20794fi
20795
jjakoacba8e62005-03-14 21:53:10 +000020796# test whether we have cygpath
20797if test -z "$CYGPATH_W"; then
20798 if (cygpath --version) >/dev/null 2>/dev/null; then
20799 CYGPATH_W='cygpath -w'
20800 else
20801 CYGPATH_W=echo
20802 fi
20803fi
20804
20805
jjako286bc982003-01-28 23:17:50 +000020806# Define the identity of the package.
jjakoacba8e62005-03-14 21:53:10 +000020807 PACKAGE='openggsn'
20808 VERSION='0.84'
jjako286bc982003-01-28 23:17:50 +000020809
20810
20811cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +000020812#define PACKAGE "$PACKAGE"
jjako286bc982003-01-28 23:17:50 +000020813_ACEOF
jjako52c24142002-12-16 13:33:51 +000020814
jjako286bc982003-01-28 23:17:50 +000020815
20816cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +000020817#define VERSION "$VERSION"
jjako286bc982003-01-28 23:17:50 +000020818_ACEOF
20819
20820# Some tools Automake needs.
20821
20822ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
jjako52c24142002-12-16 13:33:51 +000020823
20824
jjako286bc982003-01-28 23:17:50 +000020825AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
jjako52c24142002-12-16 13:33:51 +000020826
jjako286bc982003-01-28 23:17:50 +000020827
20828AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
20829
20830
20831AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20832
20833
20834MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
20835
jjako286bc982003-01-28 23:17:50 +000020836install_sh=${install_sh-"$am_aux_dir/install-sh"}
20837
20838# Installed binaries are usually stripped using `strip' when the user
20839# run `make install-strip'. However `strip' might not be the right
20840# tool to use in cross-compilation environments, therefore Automake
20841# will honor the `STRIP' environment variable to overrule this program.
20842if test "$cross_compiling" != no; then
20843 if test -n "$ac_tool_prefix"; then
20844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20845set dummy ${ac_tool_prefix}strip; ac_word=$2
20846echo "$as_me:$LINENO: checking for $ac_word" >&5
20847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20848if test "${ac_cv_prog_STRIP+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000020850else
jjako286bc982003-01-28 23:17:50 +000020851 if test -n "$STRIP"; then
20852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20853else
20854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20855for as_dir in $PATH
20856do
20857 IFS=$as_save_IFS
20858 test -z "$as_dir" && as_dir=.
20859 for ac_exec_ext in '' $ac_executable_extensions; do
20860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20863 break 2
20864 fi
20865done
20866done
20867
20868fi
20869fi
20870STRIP=$ac_cv_prog_STRIP
20871if test -n "$STRIP"; then
20872 echo "$as_me:$LINENO: result: $STRIP" >&5
20873echo "${ECHO_T}$STRIP" >&6
20874else
20875 echo "$as_me:$LINENO: result: no" >&5
20876echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +000020877fi
20878
jjako286bc982003-01-28 23:17:50 +000020879fi
20880if test -z "$ac_cv_prog_STRIP"; then
20881 ac_ct_STRIP=$STRIP
20882 # Extract the first word of "strip", so it can be a program name with args.
20883set dummy strip; ac_word=$2
20884echo "$as_me:$LINENO: checking for $ac_word" >&5
20885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20886if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000020888else
jjako286bc982003-01-28 23:17:50 +000020889 if test -n "$ac_ct_STRIP"; then
20890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20891else
20892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20893for as_dir in $PATH
20894do
20895 IFS=$as_save_IFS
20896 test -z "$as_dir" && as_dir=.
20897 for ac_exec_ext in '' $ac_executable_extensions; do
20898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20899 ac_cv_prog_ac_ct_STRIP="strip"
20900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20901 break 2
20902 fi
20903done
20904done
20905
20906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
20907fi
20908fi
20909ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20910if test -n "$ac_ct_STRIP"; then
20911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
20912echo "${ECHO_T}$ac_ct_STRIP" >&6
20913else
20914 echo "$as_me:$LINENO: result: no" >&5
20915echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +000020916fi
20917
jjako286bc982003-01-28 23:17:50 +000020918 STRIP=$ac_ct_STRIP
jjako52c24142002-12-16 13:33:51 +000020919else
jjako286bc982003-01-28 23:17:50 +000020920 STRIP="$ac_cv_prog_STRIP"
jjako52c24142002-12-16 13:33:51 +000020921fi
20922
jjako286bc982003-01-28 23:17:50 +000020923fi
20924INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
20925
20926# We need awk for the "check" target. The system "awk" is bad on
20927# some platforms.
jjakoacba8e62005-03-14 21:53:10 +000020928# Always define AMTAR for backward compatibility.
20929
20930AMTAR=${AMTAR-"${am_missing_run}tar"}
20931
20932am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
20933
20934
jjako286bc982003-01-28 23:17:50 +000020935
20936
20937depcc="$CC" am_compiler_list=
20938
20939echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20940echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20941if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000020943else
jjako286bc982003-01-28 23:17:50 +000020944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20945 # We make a subdir and do the tests there. Otherwise we can end up
20946 # making bogus files that we don't know about and never remove. For
20947 # instance it was reported that on HP-UX the gcc test will end up
20948 # making a dummy file named `D' -- because `-MD' means `put the output
20949 # in D'.
20950 mkdir conftest.dir
20951 # Copy depcomp to subdir because otherwise we won't find it if we're
20952 # using a relative directory.
20953 cp "$am_depcomp" conftest.dir
20954 cd conftest.dir
jjakoacba8e62005-03-14 21:53:10 +000020955 # We will build objects and dependencies in a subdirectory because
20956 # it helps to detect inapplicable dependency modes. For instance
20957 # both Tru64's cc and ICC support -MD to output dependencies as a
20958 # side effect of compilation, but ICC will put the dependencies in
20959 # the current directory while Tru64 will put them in the object
20960 # directory.
20961 mkdir sub
jjako286bc982003-01-28 23:17:50 +000020962
20963 am_cv_CC_dependencies_compiler_type=none
20964 if test "$am_compiler_list" = ""; then
20965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20966 fi
20967 for depmode in $am_compiler_list; do
jjakoacba8e62005-03-14 21:53:10 +000020968 # Setup a source with many dependencies, because some compilers
20969 # like to wrap large dependency lists on column 80 (with \), and
20970 # we should not choose a depcomp mode which is confused by this.
20971 #
jjako286bc982003-01-28 23:17:50 +000020972 # We need to recreate these files for each test, as the compiler may
20973 # overwrite some of them when testing with obscure command lines.
20974 # This happens at least with the AIX C compiler.
jjakoacba8e62005-03-14 21:53:10 +000020975 : > sub/conftest.c
20976 for i in 1 2 3 4 5 6; do
20977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20978 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20979 # Solaris 8's {/usr,}/bin/sh.
20980 touch sub/conftst$i.h
20981 done
20982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
jjako286bc982003-01-28 23:17:50 +000020983
20984 case $depmode in
20985 nosideeffect)
20986 # after this tag, mechanisms are not by side-effect, so they'll
20987 # only be used when explicitly requested
20988 if test "x$enable_dependency_tracking" = xyes; then
20989 continue
20990 else
20991 break
20992 fi
20993 ;;
20994 none) break ;;
20995 esac
20996 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20997 # mode. It turns out that the SunPro C++ compiler does not properly
20998 # handle `-M -o', and we need to detect this.
20999 if depmode=$depmode \
jjakoacba8e62005-03-14 21:53:10 +000021000 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21002 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21003 >/dev/null 2>conftest.err &&
21004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21005 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
jjako286bc982003-01-28 23:17:50 +000021006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
jjakoacba8e62005-03-14 21:53:10 +000021007 # icc doesn't choke on unknown options, it will just issue warnings
21008 # or remarks (even with -Werror). So we grep stderr for any message
21009 # that says an option was ignored or not supported.
21010 # When given -MP, icc 7.0 and 7.1 complain thusly:
21011 # icc: Command line warning: ignoring option '-M'; no argument required
21012 # The diagnosis changed in icc 8.0:
21013 # icc: Command line remark: option '-MP' not supported
21014 if (grep 'ignoring option' conftest.err ||
21015 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21016 am_cv_CC_dependencies_compiler_type=$depmode
21017 break
21018 fi
jjako286bc982003-01-28 23:17:50 +000021019 fi
21020 done
21021
21022 cd ..
21023 rm -rf conftest.dir
21024else
21025 am_cv_CC_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +000021026fi
21027
jjako286bc982003-01-28 23:17:50 +000021028fi
21029echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
21030echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
21031CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
21032
21033
jjakoacba8e62005-03-14 21:53:10 +000021034
21035if
21036 test "x$enable_dependency_tracking" != xno \
21037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
21038 am__fastdepCC_TRUE=
21039 am__fastdepCC_FALSE='#'
21040else
21041 am__fastdepCC_TRUE='#'
21042 am__fastdepCC_FALSE=
21043fi
21044
21045
jjako286bc982003-01-28 23:17:50 +000021046depcc="$CXX" am_compiler_list=
21047
21048echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21049echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
21050if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000021052else
jjako286bc982003-01-28 23:17:50 +000021053 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21054 # We make a subdir and do the tests there. Otherwise we can end up
21055 # making bogus files that we don't know about and never remove. For
21056 # instance it was reported that on HP-UX the gcc test will end up
21057 # making a dummy file named `D' -- because `-MD' means `put the output
21058 # in D'.
21059 mkdir conftest.dir
21060 # Copy depcomp to subdir because otherwise we won't find it if we're
21061 # using a relative directory.
21062 cp "$am_depcomp" conftest.dir
21063 cd conftest.dir
jjakoacba8e62005-03-14 21:53:10 +000021064 # We will build objects and dependencies in a subdirectory because
21065 # it helps to detect inapplicable dependency modes. For instance
21066 # both Tru64's cc and ICC support -MD to output dependencies as a
21067 # side effect of compilation, but ICC will put the dependencies in
21068 # the current directory while Tru64 will put them in the object
21069 # directory.
21070 mkdir sub
jjako286bc982003-01-28 23:17:50 +000021071
21072 am_cv_CXX_dependencies_compiler_type=none
21073 if test "$am_compiler_list" = ""; then
21074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21075 fi
21076 for depmode in $am_compiler_list; do
jjakoacba8e62005-03-14 21:53:10 +000021077 # Setup a source with many dependencies, because some compilers
21078 # like to wrap large dependency lists on column 80 (with \), and
21079 # we should not choose a depcomp mode which is confused by this.
21080 #
jjako286bc982003-01-28 23:17:50 +000021081 # We need to recreate these files for each test, as the compiler may
21082 # overwrite some of them when testing with obscure command lines.
21083 # This happens at least with the AIX C compiler.
jjakoacba8e62005-03-14 21:53:10 +000021084 : > sub/conftest.c
21085 for i in 1 2 3 4 5 6; do
21086 echo '#include "conftst'$i'.h"' >> sub/conftest.c
21087 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21088 # Solaris 8's {/usr,}/bin/sh.
21089 touch sub/conftst$i.h
21090 done
21091 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
jjako286bc982003-01-28 23:17:50 +000021092
21093 case $depmode in
21094 nosideeffect)
21095 # after this tag, mechanisms are not by side-effect, so they'll
21096 # only be used when explicitly requested
21097 if test "x$enable_dependency_tracking" = xyes; then
21098 continue
21099 else
21100 break
21101 fi
21102 ;;
21103 none) break ;;
21104 esac
21105 # We check with `-c' and `-o' for the sake of the "dashmstdout"
21106 # mode. It turns out that the SunPro C++ compiler does not properly
21107 # handle `-M -o', and we need to detect this.
21108 if depmode=$depmode \
jjakoacba8e62005-03-14 21:53:10 +000021109 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21110 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21111 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21112 >/dev/null 2>conftest.err &&
21113 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21114 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
jjako286bc982003-01-28 23:17:50 +000021115 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
jjakoacba8e62005-03-14 21:53:10 +000021116 # icc doesn't choke on unknown options, it will just issue warnings
21117 # or remarks (even with -Werror). So we grep stderr for any message
21118 # that says an option was ignored or not supported.
21119 # When given -MP, icc 7.0 and 7.1 complain thusly:
21120 # icc: Command line warning: ignoring option '-M'; no argument required
21121 # The diagnosis changed in icc 8.0:
21122 # icc: Command line remark: option '-MP' not supported
21123 if (grep 'ignoring option' conftest.err ||
21124 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21125 am_cv_CXX_dependencies_compiler_type=$depmode
21126 break
21127 fi
jjako286bc982003-01-28 23:17:50 +000021128 fi
21129 done
21130
21131 cd ..
21132 rm -rf conftest.dir
21133else
21134 am_cv_CXX_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +000021135fi
21136
jjako286bc982003-01-28 23:17:50 +000021137fi
21138echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21139echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
21140CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
jjako52c24142002-12-16 13:33:51 +000021141
21142
jjako286bc982003-01-28 23:17:50 +000021143
jjakoacba8e62005-03-14 21:53:10 +000021144if
21145 test "x$enable_dependency_tracking" != xno \
21146 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21147 am__fastdepCXX_TRUE=
21148 am__fastdepCXX_FALSE='#'
21149else
21150 am__fastdepCXX_TRUE='#'
21151 am__fastdepCXX_FALSE=
21152fi
21153
21154
21155
jjako286bc982003-01-28 23:17:50 +000021156
jjako08d331d2003-10-13 20:33:30 +000021157 ac_config_files="$ac_config_files Makefile doc/Makefile ggsn/Makefile gtp/Makefile intl/Makefile po/Makefile sgsnemu/Makefile src/Makefile tests/Makefile openggsn.spec"
jjako286bc982003-01-28 23:17:50 +000021158
21159cat >confcache <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000021160# This file is a shell script that caches the results of configure
21161# tests run on this system so they can be shared between configure
jjako286bc982003-01-28 23:17:50 +000021162# scripts and configure runs, see configure's option --config-cache.
21163# It is not useful on other systems. If it contains results you don't
21164# want to keep, you may remove or edit it.
jjako52c24142002-12-16 13:33:51 +000021165#
jjako286bc982003-01-28 23:17:50 +000021166# config.status only pays attention to the cache file if you give it
21167# the --recheck option to rerun configure.
jjako52c24142002-12-16 13:33:51 +000021168#
jjako08d331d2003-10-13 20:33:30 +000021169# `ac_cv_env_foo' variables (set or unset) will be overridden when
jjako286bc982003-01-28 23:17:50 +000021170# loading this file, other *unset* `ac_cv_foo' will be assigned the
21171# following values.
21172
21173_ACEOF
21174
jjako52c24142002-12-16 13:33:51 +000021175# The following way of writing the cache mishandles newlines in values,
21176# but we know of no workaround that is simple, portable, and efficient.
21177# So, don't put newlines in cache variables' values.
21178# Ultrix sh set writes to stderr and can't be redirected directly,
21179# and sets the high bit in the cache file unless we assign to the vars.
jjako286bc982003-01-28 23:17:50 +000021180{
21181 (set) 2>&1 |
21182 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21183 *ac_space=\ *)
21184 # `set' does not quote correctly, so add quotes (double-quote
21185 # substitution turns \\\\ into \\, and sed turns \\ into \).
21186 sed -n \
jjakoacba8e62005-03-14 21:53:10 +000021187 "s/'/'\\\\''/g;
21188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jjako286bc982003-01-28 23:17:50 +000021189 ;;
21190 *)
21191 # `set' quotes correctly as required by POSIX, so do not add quotes.
21192 sed -n \
jjakoacba8e62005-03-14 21:53:10 +000021193 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
jjako286bc982003-01-28 23:17:50 +000021194 ;;
21195 esac;
21196} |
21197 sed '
21198 t clear
21199 : clear
21200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21201 t end
21202 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21203 : end' >>confcache
jjako08d331d2003-10-13 20:33:30 +000021204if diff $cache_file confcache >/dev/null 2>&1; then :; else
jjako52c24142002-12-16 13:33:51 +000021205 if test -w $cache_file; then
jjako286bc982003-01-28 23:17:50 +000021206 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21207 cat confcache >$cache_file
jjako52c24142002-12-16 13:33:51 +000021208 else
21209 echo "not updating unwritable cache $cache_file"
21210 fi
21211fi
21212rm -f confcache
21213
jjako52c24142002-12-16 13:33:51 +000021214test "x$prefix" = xNONE && prefix=$ac_default_prefix
21215# Let make expand exec_prefix.
21216test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21217
jjako286bc982003-01-28 23:17:50 +000021218# VPATH may cause trouble with some makes, so we remove $(srcdir),
21219# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21220# trailing colons and then remove the whole line if VPATH becomes empty
21221# (actually we leave an empty line to preserve line numbers).
jjako52c24142002-12-16 13:33:51 +000021222if test "x$srcdir" = x.; then
jjakoacba8e62005-03-14 21:53:10 +000021223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
jjako286bc982003-01-28 23:17:50 +000021224s/:*\$(srcdir):*/:/;
21225s/:*\${srcdir}:*/:/;
21226s/:*@srcdir@:*/:/;
jjakoacba8e62005-03-14 21:53:10 +000021227s/^\([^=]*=[ ]*\):*/\1/;
jjako286bc982003-01-28 23:17:50 +000021228s/:*$//;
jjakoacba8e62005-03-14 21:53:10 +000021229s/^[^=]*=[ ]*$//;
jjako286bc982003-01-28 23:17:50 +000021230}'
jjako52c24142002-12-16 13:33:51 +000021231fi
21232
jjako286bc982003-01-28 23:17:50 +000021233DEFS=-DHAVE_CONFIG_H
jjako52c24142002-12-16 13:33:51 +000021234
jjako08d331d2003-10-13 20:33:30 +000021235ac_libobjs=
21236ac_ltlibobjs=
21237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21238 # 1. Remove the extension, and $U if already installed.
21239 ac_i=`echo "$ac_i" |
jjakoacba8e62005-03-14 21:53:10 +000021240 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
jjako08d331d2003-10-13 20:33:30 +000021241 # 2. Add them.
21242 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21243 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21244done
21245LIBOBJS=$ac_libobjs
21246
21247LTLIBOBJS=$ac_ltlibobjs
21248
21249
jjako286bc982003-01-28 23:17:50 +000021250if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21251 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21252Usually this means the macro was only invoked conditionally." >&5
21253echo "$as_me: error: conditional \"AMDEP\" was never defined.
21254Usually this means the macro was only invoked conditionally." >&2;}
21255 { (exit 1); exit 1; }; }
21256fi
jjakoacba8e62005-03-14 21:53:10 +000021257if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21258 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21259Usually this means the macro was only invoked conditionally." >&5
21260echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21261Usually this means the macro was only invoked conditionally." >&2;}
21262 { (exit 1); exit 1; }; }
21263fi
21264if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21265 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21266Usually this means the macro was only invoked conditionally." >&5
21267echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21268Usually this means the macro was only invoked conditionally." >&2;}
21269 { (exit 1); exit 1; }; }
21270fi
jjako52c24142002-12-16 13:33:51 +000021271
jjako52c24142002-12-16 13:33:51 +000021272: ${CONFIG_STATUS=./config.status}
jjako286bc982003-01-28 23:17:50 +000021273ac_clean_files_save=$ac_clean_files
21274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21275{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21276echo "$as_me: creating $CONFIG_STATUS" >&6;}
21277cat >$CONFIG_STATUS <<_ACEOF
21278#! $SHELL
21279# Generated by $as_me.
jjako52c24142002-12-16 13:33:51 +000021280# Run this file to recreate the current configuration.
jjako52c24142002-12-16 13:33:51 +000021281# Compiler output produced by configure, useful for debugging
jjako286bc982003-01-28 23:17:50 +000021282# configure, is in config.log if it exists.
jjako52c24142002-12-16 13:33:51 +000021283
jjako286bc982003-01-28 23:17:50 +000021284debug=false
jjako08d331d2003-10-13 20:33:30 +000021285ac_cs_recheck=false
21286ac_cs_silent=false
jjako286bc982003-01-28 23:17:50 +000021287SHELL=\${CONFIG_SHELL-$SHELL}
21288_ACEOF
jjako52c24142002-12-16 13:33:51 +000021289
jjako286bc982003-01-28 23:17:50 +000021290cat >>$CONFIG_STATUS <<\_ACEOF
jjako286bc982003-01-28 23:17:50 +000021291## --------------------- ##
21292## M4sh Initialization. ##
21293## --------------------- ##
jjako52c24142002-12-16 13:33:51 +000021294
jjako286bc982003-01-28 23:17:50 +000021295# Be Bourne compatible
21296if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21297 emulate sh
21298 NULLCMD=:
jjako08d331d2003-10-13 20:33:30 +000021299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21300 # is contrary to our usage. Disable this feature.
21301 alias -g '${1+"$@"}'='"$@"'
jjako286bc982003-01-28 23:17:50 +000021302elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21303 set -o posix
jjako52c24142002-12-16 13:33:51 +000021304fi
jjakoacba8e62005-03-14 21:53:10 +000021305DUALCASE=1; export DUALCASE # for MKS sh
jjako52c24142002-12-16 13:33:51 +000021306
jjako286bc982003-01-28 23:17:50 +000021307# Support unset when possible.
jjakoacba8e62005-03-14 21:53:10 +000021308if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +000021309 as_unset=unset
21310else
21311 as_unset=false
21312fi
jjako52c24142002-12-16 13:33:51 +000021313
jjako08d331d2003-10-13 20:33:30 +000021314
21315# Work around bugs in pre-3.0 UWIN ksh.
21316$as_unset ENV MAIL MAILPATH
21317PS1='$ '
21318PS2='> '
21319PS4='+ '
21320
21321# NLS nuisances.
21322for as_var in \
21323 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21324 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21325 LC_TELEPHONE LC_TIME
21326do
jjakoacba8e62005-03-14 21:53:10 +000021327 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
jjako08d331d2003-10-13 20:33:30 +000021328 eval $as_var=C; export $as_var
21329 else
21330 $as_unset $as_var
21331 fi
21332done
21333
21334# Required to use basename.
21335if expr a : '\(a\)' >/dev/null 2>&1; then
21336 as_expr=expr
21337else
21338 as_expr=false
21339fi
21340
21341if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21342 as_basename=basename
21343else
21344 as_basename=false
21345fi
jjako286bc982003-01-28 23:17:50 +000021346
21347
21348# Name of the executable.
jjako08d331d2003-10-13 20:33:30 +000021349as_me=`$as_basename "$0" ||
jjako286bc982003-01-28 23:17:50 +000021350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21351 X"$0" : 'X\(//\)$' \| \
21352 X"$0" : 'X\(/\)$' \| \
21353 . : '\(.\)' 2>/dev/null ||
21354echo X/"$0" |
21355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21356 /^X\/\(\/\/\)$/{ s//\1/; q; }
21357 /^X\/\(\/\).*/{ s//\1/; q; }
21358 s/.*/./; q'`
21359
jjako08d331d2003-10-13 20:33:30 +000021360
jjako286bc982003-01-28 23:17:50 +000021361# PATH needs CR, and LINENO needs CR and PATH.
21362# Avoid depending upon Character Ranges.
21363as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21364as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21365as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21366as_cr_digits='0123456789'
21367as_cr_alnum=$as_cr_Letters$as_cr_digits
21368
21369# The user is always right.
21370if test "${PATH_SEPARATOR+set}" != set; then
jjako08d331d2003-10-13 20:33:30 +000021371 echo "#! /bin/sh" >conf$$.sh
21372 echo "exit 0" >>conf$$.sh
21373 chmod +x conf$$.sh
21374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +000021375 PATH_SEPARATOR=';'
21376 else
21377 PATH_SEPARATOR=:
21378 fi
jjako08d331d2003-10-13 20:33:30 +000021379 rm -f conf$$.sh
jjako286bc982003-01-28 23:17:50 +000021380fi
21381
21382
21383 as_lineno_1=$LINENO
21384 as_lineno_2=$LINENO
21385 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21386 test "x$as_lineno_1" != "x$as_lineno_2" &&
21387 test "x$as_lineno_3" = "x$as_lineno_2" || {
21388 # Find who we are. Look in the path if we contain no path at all
21389 # relative or not.
21390 case $0 in
21391 *[\\/]* ) as_myself=$0 ;;
21392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21393for as_dir in $PATH
21394do
21395 IFS=$as_save_IFS
21396 test -z "$as_dir" && as_dir=.
21397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21398done
21399
21400 ;;
21401 esac
21402 # We did not find ourselves, most probably we were run as `sh COMMAND'
21403 # in which case we are not to be found in the path.
21404 if test "x$as_myself" = x; then
21405 as_myself=$0
21406 fi
21407 if test ! -f "$as_myself"; then
21408 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21409echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21410 { (exit 1); exit 1; }; }
21411 fi
21412 case $CONFIG_SHELL in
21413 '')
21414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21415for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21416do
21417 IFS=$as_save_IFS
21418 test -z "$as_dir" && as_dir=.
21419 for as_base in sh bash ksh sh5; do
21420 case $as_dir in
21421 /*)
21422 if ("$as_dir/$as_base" -c '
21423 as_lineno_1=$LINENO
21424 as_lineno_2=$LINENO
21425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21426 test "x$as_lineno_1" != "x$as_lineno_2" &&
21427 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
jjako08d331d2003-10-13 20:33:30 +000021428 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21429 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
jjako286bc982003-01-28 23:17:50 +000021430 CONFIG_SHELL=$as_dir/$as_base
21431 export CONFIG_SHELL
21432 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21433 fi;;
21434 esac
21435 done
21436done
21437;;
jjako52c24142002-12-16 13:33:51 +000021438 esac
21439
jjako286bc982003-01-28 23:17:50 +000021440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21441 # uniformly replaced by the line number. The first 'sed' inserts a
21442 # line-number line before each line; the second 'sed' does the real
21443 # work. The second script uses 'N' to pair each line-number line
21444 # with the numbered line, and appends trailing '-' during
21445 # substitution so that $LINENO is not a special case at line end.
21446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21447 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21448 sed '=' <$as_myself |
21449 sed '
21450 N
21451 s,$,-,
21452 : loop
21453 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21454 t loop
21455 s,-$,,
21456 s,^['$as_cr_digits']*\n,,
21457 ' >$as_me.lineno &&
21458 chmod +x $as_me.lineno ||
21459 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21460echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21461 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +000021462
jjako286bc982003-01-28 23:17:50 +000021463 # Don't try to exec as it changes $[0], causing all sort of problems
21464 # (the dirname of $[0] is not the place where we might find the
21465 # original and so on. Autoconf is especially sensible to this).
21466 . ./$as_me.lineno
21467 # Exit status is that of the last command.
21468 exit
21469}
21470
21471
21472case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21473 *c*,-n*) ECHO_N= ECHO_C='
21474' ECHO_T=' ' ;;
21475 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21476 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21477esac
21478
21479if expr a : '\(a\)' >/dev/null 2>&1; then
21480 as_expr=expr
21481else
21482 as_expr=false
21483fi
21484
21485rm -f conf$$ conf$$.exe conf$$.file
21486echo >conf$$.file
21487if ln -s conf$$.file conf$$ 2>/dev/null; then
21488 # We could just check for DJGPP; but this test a) works b) is more generic
21489 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21490 if test -f conf$$.exe; then
21491 # Don't use ln at all; we don't have any links
21492 as_ln_s='cp -p'
jjako52c24142002-12-16 13:33:51 +000021493 else
jjako286bc982003-01-28 23:17:50 +000021494 as_ln_s='ln -s'
21495 fi
21496elif ln conf$$.file conf$$ 2>/dev/null; then
21497 as_ln_s=ln
21498else
21499 as_ln_s='cp -p'
21500fi
21501rm -f conf$$ conf$$.exe conf$$.file
21502
jjako08d331d2003-10-13 20:33:30 +000021503if mkdir -p . 2>/dev/null; then
21504 as_mkdir_p=:
21505else
jjakoacba8e62005-03-14 21:53:10 +000021506 test -d ./-p && rmdir ./-p
jjako08d331d2003-10-13 20:33:30 +000021507 as_mkdir_p=false
21508fi
21509
jjako286bc982003-01-28 23:17:50 +000021510as_executable_p="test -f"
21511
21512# Sed expression to map a string onto a valid CPP name.
jjakoacba8e62005-03-14 21:53:10 +000021513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
jjako286bc982003-01-28 23:17:50 +000021514
21515# Sed expression to map a string onto a valid variable name.
jjakoacba8e62005-03-14 21:53:10 +000021516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
jjako286bc982003-01-28 23:17:50 +000021517
21518
21519# IFS
21520# We need space, tab and new line, in precisely that order.
21521as_nl='
21522'
21523IFS=" $as_nl"
21524
21525# CDPATH.
jjako08d331d2003-10-13 20:33:30 +000021526$as_unset CDPATH
jjako286bc982003-01-28 23:17:50 +000021527
21528exec 6>&1
21529
21530# Open the log real soon, to keep \$[0] and so on meaningful, and to
21531# report actual input values of CONFIG_FILES etc. instead of their
21532# values after options handling. Logging --version etc. is OK.
21533exec 5>>config.log
21534{
21535 echo
21536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21537## Running $as_me. ##
21538_ASBOX
21539} >&5
21540cat >&5 <<_CSEOF
21541
jjakoa24c7ec2004-12-30 23:37:18 +000021542This file was extended by openggsn $as_me 0.84, which was
jjakoacba8e62005-03-14 21:53:10 +000021543generated by GNU Autoconf 2.59. Invocation command line was
jjako286bc982003-01-28 23:17:50 +000021544
21545 CONFIG_FILES = $CONFIG_FILES
21546 CONFIG_HEADERS = $CONFIG_HEADERS
21547 CONFIG_LINKS = $CONFIG_LINKS
21548 CONFIG_COMMANDS = $CONFIG_COMMANDS
21549 $ $0 $@
21550
21551_CSEOF
21552echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21553echo >&5
21554_ACEOF
21555
21556# Files that config.status was made for.
21557if test -n "$ac_config_files"; then
21558 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21559fi
21560
21561if test -n "$ac_config_headers"; then
21562 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21563fi
21564
21565if test -n "$ac_config_links"; then
21566 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21567fi
21568
21569if test -n "$ac_config_commands"; then
21570 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21571fi
21572
21573cat >>$CONFIG_STATUS <<\_ACEOF
21574
21575ac_cs_usage="\
21576\`$as_me' instantiates files from templates according to the
21577current configuration.
21578
21579Usage: $0 [OPTIONS] [FILE]...
21580
21581 -h, --help print this help, then exit
21582 -V, --version print version number, then exit
jjako08d331d2003-10-13 20:33:30 +000021583 -q, --quiet do not print progress messages
jjako286bc982003-01-28 23:17:50 +000021584 -d, --debug don't remove temporary files
21585 --recheck update $as_me by reconfiguring in the same conditions
21586 --file=FILE[:TEMPLATE]
jjakoacba8e62005-03-14 21:53:10 +000021587 instantiate the configuration file FILE
jjako286bc982003-01-28 23:17:50 +000021588 --header=FILE[:TEMPLATE]
jjakoacba8e62005-03-14 21:53:10 +000021589 instantiate the configuration header FILE
jjako286bc982003-01-28 23:17:50 +000021590
21591Configuration files:
21592$config_files
21593
21594Configuration headers:
21595$config_headers
21596
jjako1d3db972004-01-16 09:56:56 +000021597Configuration links:
21598$config_links
21599
jjako286bc982003-01-28 23:17:50 +000021600Configuration commands:
21601$config_commands
21602
21603Report bugs to <bug-autoconf@gnu.org>."
21604_ACEOF
21605
21606cat >>$CONFIG_STATUS <<_ACEOF
21607ac_cs_version="\\
jjakoa24c7ec2004-12-30 23:37:18 +000021608openggsn config.status 0.84
jjakoacba8e62005-03-14 21:53:10 +000021609configured by $0, generated by GNU Autoconf 2.59,
jjako286bc982003-01-28 23:17:50 +000021610 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21611
jjakoacba8e62005-03-14 21:53:10 +000021612Copyright (C) 2003 Free Software Foundation, Inc.
jjako286bc982003-01-28 23:17:50 +000021613This config.status script is free software; the Free Software Foundation
21614gives unlimited permission to copy, distribute and modify it."
21615srcdir=$srcdir
21616INSTALL="$INSTALL"
21617_ACEOF
21618
21619cat >>$CONFIG_STATUS <<\_ACEOF
21620# If no file are specified by the user, then we need to provide default
21621# value. By we need to know if files were specified by the user.
21622ac_need_defaults=:
21623while test $# != 0
21624do
21625 case $1 in
21626 --*=*)
21627 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21628 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
jjako08d331d2003-10-13 20:33:30 +000021629 ac_shift=:
jjako286bc982003-01-28 23:17:50 +000021630 ;;
jjako08d331d2003-10-13 20:33:30 +000021631 -*)
21632 ac_option=$1
21633 ac_optarg=$2
21634 ac_shift=shift
21635 ;;
jjako286bc982003-01-28 23:17:50 +000021636 *) # This is not an option, so the user has probably given explicit
21637 # arguments.
jjako08d331d2003-10-13 20:33:30 +000021638 ac_option=$1
jjako286bc982003-01-28 23:17:50 +000021639 ac_need_defaults=false;;
21640 esac
21641
jjako08d331d2003-10-13 20:33:30 +000021642 case $ac_option in
jjako286bc982003-01-28 23:17:50 +000021643 # Handling of the options.
21644_ACEOF
jjako0a120b22003-07-10 18:35:50 +000021645cat >>$CONFIG_STATUS <<\_ACEOF
jjako08d331d2003-10-13 20:33:30 +000021646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21647 ac_cs_recheck=: ;;
jjako286bc982003-01-28 23:17:50 +000021648 --version | --vers* | -V )
21649 echo "$ac_cs_version"; exit 0 ;;
21650 --he | --h)
21651 # Conflict between --help and --header
21652 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21653Try \`$0 --help' for more information." >&5
21654echo "$as_me: error: ambiguous option: $1
21655Try \`$0 --help' for more information." >&2;}
21656 { (exit 1); exit 1; }; };;
21657 --help | --hel | -h )
21658 echo "$ac_cs_usage"; exit 0 ;;
21659 --debug | --d* | -d )
21660 debug=: ;;
21661 --file | --fil | --fi | --f )
jjako08d331d2003-10-13 20:33:30 +000021662 $ac_shift
21663 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
jjako286bc982003-01-28 23:17:50 +000021664 ac_need_defaults=false;;
21665 --header | --heade | --head | --hea )
jjako08d331d2003-10-13 20:33:30 +000021666 $ac_shift
21667 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
jjako286bc982003-01-28 23:17:50 +000021668 ac_need_defaults=false;;
jjako08d331d2003-10-13 20:33:30 +000021669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21671 ac_cs_silent=: ;;
jjako286bc982003-01-28 23:17:50 +000021672
21673 # This is an error.
21674 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21675Try \`$0 --help' for more information." >&5
21676echo "$as_me: error: unrecognized option: $1
21677Try \`$0 --help' for more information." >&2;}
21678 { (exit 1); exit 1; }; } ;;
21679
21680 *) ac_config_targets="$ac_config_targets $1" ;;
21681
21682 esac
21683 shift
21684done
21685
jjako08d331d2003-10-13 20:33:30 +000021686ac_configure_extra_args=
21687
21688if $ac_cs_silent; then
21689 exec 6>/dev/null
21690 ac_configure_extra_args="$ac_configure_extra_args --silent"
21691fi
21692
21693_ACEOF
21694cat >>$CONFIG_STATUS <<_ACEOF
21695if \$ac_cs_recheck; then
21696 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21697 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21698fi
21699
jjako286bc982003-01-28 23:17:50 +000021700_ACEOF
21701
21702cat >>$CONFIG_STATUS <<_ACEOF
21703#
21704# INIT-COMMANDS section.
21705#
21706
21707AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21708
21709_ACEOF
21710
21711
21712
21713cat >>$CONFIG_STATUS <<\_ACEOF
21714for ac_config_target in $ac_config_targets
21715do
21716 case "$ac_config_target" in
21717 # Handling of arguments.
21718 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21719 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21720 "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;;
21721 "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;;
21722 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
21723 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
21724 "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;;
21725 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21726 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
jjakoa9639f32003-07-07 15:30:11 +000021727 "openggsn.spec" ) CONFIG_FILES="$CONFIG_FILES openggsn.spec" ;;
jjako1d3db972004-01-16 09:56:56 +000021728 "ggsn/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS ggsn/getopt.h:ggsn/gnugetopt.h" ;;
21729 "sgsnemu/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS sgsnemu/getopt.h:sgsnemu/gnugetopt.h" ;;
jjako286bc982003-01-28 23:17:50 +000021730 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21731 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21733echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21734 { (exit 1); exit 1; }; };;
21735 esac
21736done
21737
21738# If the user did not use the arguments to specify the items to instantiate,
21739# then the envvar interface is used. Set only those that are not.
21740# We use the long form for the default assignment because of an extremely
21741# bizarre bug on SunOS 4.1.3.
21742if $ac_need_defaults; then
21743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
jjako1d3db972004-01-16 09:56:56 +000021745 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
jjako286bc982003-01-28 23:17:50 +000021746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21747fi
21748
jjako08d331d2003-10-13 20:33:30 +000021749# Have a temporary directory for convenience. Make it in the build tree
21750# simply because there is no reason to put it here, and in addition,
21751# creating and moving files from /tmp can sometimes cause problems.
jjako286bc982003-01-28 23:17:50 +000021752# Create a temporary directory, and hook for its removal unless debugging.
21753$debug ||
21754{
21755 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21756 trap '{ (exit 1); exit 1; }' 1 2 13 15
21757}
21758
21759# Create a (secure) tmp directory for tmp files.
jjako08d331d2003-10-13 20:33:30 +000021760
jjako286bc982003-01-28 23:17:50 +000021761{
jjako08d331d2003-10-13 20:33:30 +000021762 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
jjako286bc982003-01-28 23:17:50 +000021763 test -n "$tmp" && test -d "$tmp"
21764} ||
21765{
jjako08d331d2003-10-13 20:33:30 +000021766 tmp=./confstat$$-$RANDOM
jjako286bc982003-01-28 23:17:50 +000021767 (umask 077 && mkdir $tmp)
21768} ||
21769{
jjako08d331d2003-10-13 20:33:30 +000021770 echo "$me: cannot create a temporary directory in ." >&2
jjako286bc982003-01-28 23:17:50 +000021771 { (exit 1); exit 1; }
21772}
21773
21774_ACEOF
21775
21776cat >>$CONFIG_STATUS <<_ACEOF
21777
21778#
21779# CONFIG_FILES section.
21780#
21781
21782# No need to generate the scripts if there are no CONFIG_FILES.
21783# This happens for instance when ./config.status config.h
21784if test -n "\$CONFIG_FILES"; then
21785 # Protect against being on the right side of a sed subst in config.status.
21786 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21787 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21788s,@SHELL@,$SHELL,;t t
21789s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21790s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21791s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21792s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21793s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21794s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21795s,@exec_prefix@,$exec_prefix,;t t
21796s,@prefix@,$prefix,;t t
21797s,@program_transform_name@,$program_transform_name,;t t
21798s,@bindir@,$bindir,;t t
21799s,@sbindir@,$sbindir,;t t
21800s,@libexecdir@,$libexecdir,;t t
21801s,@datadir@,$datadir,;t t
21802s,@sysconfdir@,$sysconfdir,;t t
21803s,@sharedstatedir@,$sharedstatedir,;t t
21804s,@localstatedir@,$localstatedir,;t t
21805s,@libdir@,$libdir,;t t
21806s,@includedir@,$includedir,;t t
21807s,@oldincludedir@,$oldincludedir,;t t
21808s,@infodir@,$infodir,;t t
21809s,@mandir@,$mandir,;t t
21810s,@build_alias@,$build_alias,;t t
21811s,@host_alias@,$host_alias,;t t
21812s,@target_alias@,$target_alias,;t t
21813s,@DEFS@,$DEFS,;t t
21814s,@ECHO_C@,$ECHO_C,;t t
21815s,@ECHO_N@,$ECHO_N,;t t
21816s,@ECHO_T@,$ECHO_T,;t t
21817s,@LIBS@,$LIBS,;t t
jjako77edc822004-09-10 17:19:31 +000021818s,@build@,$build,;t t
21819s,@build_cpu@,$build_cpu,;t t
21820s,@build_vendor@,$build_vendor,;t t
21821s,@build_os@,$build_os,;t t
21822s,@host@,$host,;t t
21823s,@host_cpu@,$host_cpu,;t t
21824s,@host_vendor@,$host_vendor,;t t
21825s,@host_os@,$host_os,;t t
21826s,@target@,$target,;t t
21827s,@target_cpu@,$target_cpu,;t t
21828s,@target_vendor@,$target_vendor,;t t
21829s,@target_os@,$target_os,;t t
jjako286bc982003-01-28 23:17:50 +000021830s,@CC@,$CC,;t t
21831s,@CFLAGS@,$CFLAGS,;t t
21832s,@LDFLAGS@,$LDFLAGS,;t t
21833s,@CPPFLAGS@,$CPPFLAGS,;t t
21834s,@ac_ct_CC@,$ac_ct_CC,;t t
21835s,@EXEEXT@,$EXEEXT,;t t
21836s,@OBJEXT@,$OBJEXT,;t t
21837s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21838s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21839s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21840s,@AWK@,$AWK,;t t
21841s,@CPP@,$CPP,;t t
21842s,@CXX@,$CXX,;t t
21843s,@CXXFLAGS@,$CXXFLAGS,;t t
21844s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21845s,@RANLIB@,$RANLIB,;t t
21846s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
jjakoacba8e62005-03-14 21:53:10 +000021847s,@EGREP@,$EGREP,;t t
jjako286bc982003-01-28 23:17:50 +000021848s,@LN_S@,$LN_S,;t t
21849s,@ECHO@,$ECHO,;t t
jjakoacba8e62005-03-14 21:53:10 +000021850s,@AR@,$AR,;t t
21851s,@ac_ct_AR@,$ac_ct_AR,;t t
jjako286bc982003-01-28 23:17:50 +000021852s,@STRIP@,$STRIP,;t t
21853s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
jjakoacba8e62005-03-14 21:53:10 +000021854s,@CXXCPP@,$CXXCPP,;t t
21855s,@F77@,$F77,;t t
21856s,@FFLAGS@,$FFLAGS,;t t
21857s,@ac_ct_F77@,$ac_ct_F77,;t t
jjako286bc982003-01-28 23:17:50 +000021858s,@LIBTOOL@,$LIBTOOL,;t t
jjakoa9639f32003-07-07 15:30:11 +000021859s,@EXEC_LDFLAGS@,$EXEC_LDFLAGS,;t t
jjakoe31b2402004-12-30 23:07:42 +000021860s,@EXEC_LDADD@,$EXEC_LDADD,;t t
jjako286bc982003-01-28 23:17:50 +000021861s,@LIBOBJS@,$LIBOBJS,;t t
jjakoacba8e62005-03-14 21:53:10 +000021862s,@CYGPATH_W@,$CYGPATH_W,;t t
jjako286bc982003-01-28 23:17:50 +000021863s,@PACKAGE@,$PACKAGE,;t t
21864s,@VERSION@,$VERSION,;t t
21865s,@ACLOCAL@,$ACLOCAL,;t t
21866s,@AUTOCONF@,$AUTOCONF,;t t
21867s,@AUTOMAKE@,$AUTOMAKE,;t t
21868s,@AUTOHEADER@,$AUTOHEADER,;t t
21869s,@MAKEINFO@,$MAKEINFO,;t t
jjako286bc982003-01-28 23:17:50 +000021870s,@install_sh@,$install_sh,;t t
21871s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
jjakoacba8e62005-03-14 21:53:10 +000021872s,@mkdir_p@,$mkdir_p,;t t
jjako286bc982003-01-28 23:17:50 +000021873s,@SET_MAKE@,$SET_MAKE,;t t
jjakoacba8e62005-03-14 21:53:10 +000021874s,@am__leading_dot@,$am__leading_dot,;t t
21875s,@AMTAR@,$AMTAR,;t t
21876s,@am__tar@,$am__tar,;t t
21877s,@am__untar@,$am__untar,;t t
jjako286bc982003-01-28 23:17:50 +000021878s,@DEPDIR@,$DEPDIR,;t t
21879s,@am__include@,$am__include,;t t
21880s,@am__quote@,$am__quote,;t t
21881s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21882s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21883s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21884s,@CCDEPMODE@,$CCDEPMODE,;t t
jjakoacba8e62005-03-14 21:53:10 +000021885s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21886s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
jjako286bc982003-01-28 23:17:50 +000021887s,@CXXDEPMODE@,$CXXDEPMODE,;t t
jjakoacba8e62005-03-14 21:53:10 +000021888s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21889s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
jjako08d331d2003-10-13 20:33:30 +000021890s,@LTLIBOBJS@,$LTLIBOBJS,;t t
jjako286bc982003-01-28 23:17:50 +000021891CEOF
21892
21893_ACEOF
21894
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 # Split the substitutions into bite-sized pieces for seds with
21897 # small command number limits, like on Digital OSF/1 and HP-UX.
21898 ac_max_sed_lines=48
21899 ac_sed_frag=1 # Number of current file.
21900 ac_beg=1 # First line for current file.
21901 ac_end=$ac_max_sed_lines # Line after last line for current file.
21902 ac_more_lines=:
21903 ac_sed_cmds=
21904 while $ac_more_lines; do
21905 if test $ac_beg -gt 1; then
21906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21907 else
21908 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21909 fi
21910 if test ! -s $tmp/subs.frag; then
21911 ac_more_lines=false
21912 else
21913 # The purpose of the label and of the branching condition is to
21914 # speed up the sed processing (if there are no `@' at all, there
21915 # is no need to browse any of the substitutions).
21916 # These are the two extra sed commands mentioned above.
21917 (echo ':t
21918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21919 if test -z "$ac_sed_cmds"; then
jjakoacba8e62005-03-14 21:53:10 +000021920 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
jjako286bc982003-01-28 23:17:50 +000021921 else
jjakoacba8e62005-03-14 21:53:10 +000021922 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
jjako286bc982003-01-28 23:17:50 +000021923 fi
21924 ac_sed_frag=`expr $ac_sed_frag + 1`
21925 ac_beg=$ac_end
21926 ac_end=`expr $ac_end + $ac_max_sed_lines`
21927 fi
21928 done
21929 if test -z "$ac_sed_cmds"; then
21930 ac_sed_cmds=cat
21931 fi
21932fi # test -n "$CONFIG_FILES"
21933
21934_ACEOF
21935cat >>$CONFIG_STATUS <<\_ACEOF
21936for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21938 case $ac_file in
21939 - | *:- | *:-:* ) # input from stdin
jjakoacba8e62005-03-14 21:53:10 +000021940 cat >$tmp/stdin
21941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
jjako286bc982003-01-28 23:17:50 +000021943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
jjakoacba8e62005-03-14 21:53:10 +000021944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
jjako286bc982003-01-28 23:17:50 +000021945 * ) ac_file_in=$ac_file.in ;;
21946 esac
21947
21948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21949 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21950$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000021951 X"$ac_file" : 'X\(//\)[^/]' \| \
21952 X"$ac_file" : 'X\(//\)$' \| \
21953 X"$ac_file" : 'X\(/\)' \| \
21954 . : '\(.\)' 2>/dev/null ||
jjako286bc982003-01-28 23:17:50 +000021955echo X"$ac_file" |
21956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21958 /^X\(\/\/\)$/{ s//\1/; q; }
21959 /^X\(\/\).*/{ s//\1/; q; }
21960 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000021961 { if $as_mkdir_p; then
21962 mkdir -p "$ac_dir"
21963 else
21964 as_dir="$ac_dir"
21965 as_dirs=
21966 while test ! -d "$as_dir"; do
21967 as_dirs="$as_dir $as_dirs"
21968 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21969$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000021970 X"$as_dir" : 'X\(//\)[^/]' \| \
21971 X"$as_dir" : 'X\(//\)$' \| \
21972 X"$as_dir" : 'X\(/\)' \| \
21973 . : '\(.\)' 2>/dev/null ||
jjako08d331d2003-10-13 20:33:30 +000021974echo X"$as_dir" |
21975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21977 /^X\(\/\/\)$/{ s//\1/; q; }
21978 /^X\(\/\).*/{ s//\1/; q; }
21979 s/.*/./; q'`
21980 done
21981 test ! -n "$as_dirs" || mkdir $as_dirs
21982 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21983echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21984 { (exit 1); exit 1; }; }; }
jjako286bc982003-01-28 23:17:50 +000021985
21986 ac_builddir=.
21987
21988if test "$ac_dir" != .; then
21989 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21990 # A "../" for each directory in $ac_dir_suffix.
21991 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21992else
21993 ac_dir_suffix= ac_top_builddir=
21994fi
21995
21996case $srcdir in
21997 .) # No --srcdir option. We are building in place.
21998 ac_srcdir=.
21999 if test -z "$ac_top_builddir"; then
22000 ac_top_srcdir=.
22001 else
22002 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22003 fi ;;
22004 [\\/]* | ?:[\\/]* ) # Absolute path.
22005 ac_srcdir=$srcdir$ac_dir_suffix;
22006 ac_top_srcdir=$srcdir ;;
22007 *) # Relative path.
22008 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22009 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22010esac
jjakoacba8e62005-03-14 21:53:10 +000022011
22012# Do not use `cd foo && pwd` to compute absolute paths, because
22013# the directories may not exist.
22014case `pwd` in
22015.) ac_abs_builddir="$ac_dir";;
22016*)
22017 case "$ac_dir" in
22018 .) ac_abs_builddir=`pwd`;;
22019 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22020 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22021 esac;;
22022esac
22023case $ac_abs_builddir in
22024.) ac_abs_top_builddir=${ac_top_builddir}.;;
22025*)
22026 case ${ac_top_builddir}. in
22027 .) ac_abs_top_builddir=$ac_abs_builddir;;
22028 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22029 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22030 esac;;
22031esac
22032case $ac_abs_builddir in
22033.) ac_abs_srcdir=$ac_srcdir;;
22034*)
22035 case $ac_srcdir in
22036 .) ac_abs_srcdir=$ac_abs_builddir;;
22037 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22038 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22039 esac;;
22040esac
22041case $ac_abs_builddir in
22042.) ac_abs_top_srcdir=$ac_top_srcdir;;
22043*)
22044 case $ac_top_srcdir in
22045 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22046 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22047 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22048 esac;;
22049esac
jjako286bc982003-01-28 23:17:50 +000022050
22051
22052 case $INSTALL in
22053 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22054 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22055 esac
22056
22057 if test x"$ac_file" != x-; then
22058 { echo "$as_me:$LINENO: creating $ac_file" >&5
22059echo "$as_me: creating $ac_file" >&6;}
22060 rm -f "$ac_file"
22061 fi
22062 # Let's still pretend it is `configure' which instantiates (i.e., don't
22063 # use $as_me), people would be surprised to read:
22064 # /* config.h. Generated by config.status. */
22065 if test x"$ac_file" = x-; then
22066 configure_input=
22067 else
22068 configure_input="$ac_file. "
22069 fi
22070 configure_input=$configure_input"Generated from `echo $ac_file_in |
jjakoacba8e62005-03-14 21:53:10 +000022071 sed 's,.*/,,'` by configure."
jjako286bc982003-01-28 23:17:50 +000022072
22073 # First look for the input files in the build tree, otherwise in the
22074 # src tree.
22075 ac_file_inputs=`IFS=:
22076 for f in $ac_file_in; do
22077 case $f in
22078 -) echo $tmp/stdin ;;
22079 [\\/$]*)
jjakoacba8e62005-03-14 21:53:10 +000022080 # Absolute (can't be DOS-style, as IFS=:)
22081 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
jjako286bc982003-01-28 23:17:50 +000022082echo "$as_me: error: cannot find input file: $f" >&2;}
22083 { (exit 1); exit 1; }; }
jjakoacba8e62005-03-14 21:53:10 +000022084 echo "$f";;
jjako286bc982003-01-28 23:17:50 +000022085 *) # Relative
jjakoacba8e62005-03-14 21:53:10 +000022086 if test -f "$f"; then
22087 # Build tree
22088 echo "$f"
22089 elif test -f "$srcdir/$f"; then
22090 # Source tree
22091 echo "$srcdir/$f"
22092 else
22093 # /dev/null tree
22094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
jjako286bc982003-01-28 23:17:50 +000022095echo "$as_me: error: cannot find input file: $f" >&2;}
22096 { (exit 1); exit 1; }; }
jjakoacba8e62005-03-14 21:53:10 +000022097 fi;;
jjako286bc982003-01-28 23:17:50 +000022098 esac
22099 done` || { (exit 1); exit 1; }
22100_ACEOF
22101cat >>$CONFIG_STATUS <<_ACEOF
22102 sed "$ac_vpsub
22103$extrasub
22104_ACEOF
22105cat >>$CONFIG_STATUS <<\_ACEOF
22106:t
22107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22108s,@configure_input@,$configure_input,;t t
22109s,@srcdir@,$ac_srcdir,;t t
22110s,@abs_srcdir@,$ac_abs_srcdir,;t t
22111s,@top_srcdir@,$ac_top_srcdir,;t t
22112s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22113s,@builddir@,$ac_builddir,;t t
22114s,@abs_builddir@,$ac_abs_builddir,;t t
22115s,@top_builddir@,$ac_top_builddir,;t t
22116s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22117s,@INSTALL@,$ac_INSTALL,;t t
22118" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22119 rm -f $tmp/stdin
22120 if test x"$ac_file" != x-; then
22121 mv $tmp/out $ac_file
22122 else
22123 cat $tmp/out
22124 rm -f $tmp/out
jjako52c24142002-12-16 13:33:51 +000022125 fi
22126
jjako286bc982003-01-28 23:17:50 +000022127done
22128_ACEOF
22129cat >>$CONFIG_STATUS <<\_ACEOF
22130
22131#
22132# CONFIG_HEADER section.
22133#
22134
22135# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22136# NAME is the cpp macro being defined and VALUE is the value it is being given.
22137#
22138# ac_d sets the value in "#define NAME VALUE" lines.
jjakoacba8e62005-03-14 21:53:10 +000022139ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22140ac_dB='[ ].*$,\1#\2'
jjako286bc982003-01-28 23:17:50 +000022141ac_dC=' '
22142ac_dD=',;t'
22143# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
jjakoacba8e62005-03-14 21:53:10 +000022144ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
jjako286bc982003-01-28 23:17:50 +000022145ac_uB='$,\1#\2define\3'
22146ac_uC=' '
22147ac_uD=',;t'
22148
22149for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22150 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22151 case $ac_file in
22152 - | *:- | *:-:* ) # input from stdin
jjakoacba8e62005-03-14 21:53:10 +000022153 cat >$tmp/stdin
22154 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
jjako286bc982003-01-28 23:17:50 +000022156 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
jjakoacba8e62005-03-14 21:53:10 +000022157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
jjako286bc982003-01-28 23:17:50 +000022158 * ) ac_file_in=$ac_file.in ;;
22159 esac
22160
22161 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22162echo "$as_me: creating $ac_file" >&6;}
22163
22164 # First look for the input files in the build tree, otherwise in the
22165 # src tree.
22166 ac_file_inputs=`IFS=:
22167 for f in $ac_file_in; do
22168 case $f in
22169 -) echo $tmp/stdin ;;
22170 [\\/$]*)
jjakoacba8e62005-03-14 21:53:10 +000022171 # Absolute (can't be DOS-style, as IFS=:)
22172 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
jjako286bc982003-01-28 23:17:50 +000022173echo "$as_me: error: cannot find input file: $f" >&2;}
22174 { (exit 1); exit 1; }; }
jjakoacba8e62005-03-14 21:53:10 +000022175 # Do quote $f, to prevent DOS paths from being IFS'd.
22176 echo "$f";;
jjako286bc982003-01-28 23:17:50 +000022177 *) # Relative
jjakoacba8e62005-03-14 21:53:10 +000022178 if test -f "$f"; then
22179 # Build tree
22180 echo "$f"
22181 elif test -f "$srcdir/$f"; then
22182 # Source tree
22183 echo "$srcdir/$f"
22184 else
22185 # /dev/null tree
22186 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
jjako286bc982003-01-28 23:17:50 +000022187echo "$as_me: error: cannot find input file: $f" >&2;}
22188 { (exit 1); exit 1; }; }
jjakoacba8e62005-03-14 21:53:10 +000022189 fi;;
jjako286bc982003-01-28 23:17:50 +000022190 esac
22191 done` || { (exit 1); exit 1; }
22192 # Remove the trailing spaces.
jjakoacba8e62005-03-14 21:53:10 +000022193 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
jjako286bc982003-01-28 23:17:50 +000022194
22195_ACEOF
22196
22197# Transform confdefs.h into two sed scripts, `conftest.defines' and
22198# `conftest.undefs', that substitutes the proper values into
22199# config.h.in to produce config.h. The first handles `#define'
22200# templates, and the second `#undef' templates.
22201# And first: Protect against being on the right side of a sed subst in
22202# config.status. Protect against being in an unquoted here document
22203# in config.status.
22204rm -f conftest.defines conftest.undefs
22205# Using a here document instead of a string reduces the quoting nightmare.
22206# Putting comments in sed scripts is not portable.
22207#
22208# `end' is used to avoid that the second main sed command (meant for
22209# 0-ary CPP macros) applies to n-ary macro definitions.
22210# See the Autoconf documentation for `clear'.
22211cat >confdef2sed.sed <<\_ACEOF
22212s/[\\&,]/\\&/g
22213s,[\\$`],\\&,g
22214t clear
22215: clear
jjakoacba8e62005-03-14 21:53:10 +000022216s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
jjako286bc982003-01-28 23:17:50 +000022217t end
jjakoacba8e62005-03-14 21:53:10 +000022218s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
jjako286bc982003-01-28 23:17:50 +000022219: end
22220_ACEOF
22221# If some macros were called several times there might be several times
22222# the same #defines, which is useless. Nevertheless, we may not want to
22223# sort them, since we want the *last* AC-DEFINE to be honored.
22224uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22225sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22226rm -f confdef2sed.sed
22227
22228# This sed command replaces #undef with comments. This is necessary, for
22229# example, in the case of _POSIX_SOURCE, which is predefined and required
22230# on some systems where configure will not decide to define it.
22231cat >>conftest.undefs <<\_ACEOF
jjakoacba8e62005-03-14 21:53:10 +000022232s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
jjako286bc982003-01-28 23:17:50 +000022233_ACEOF
22234
22235# Break up conftest.defines because some shells have a limit on the size
22236# of here documents, and old seds have small limits too (100 cmds).
22237echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
jjakoacba8e62005-03-14 21:53:10 +000022238echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000022239echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22240echo ' :' >>$CONFIG_STATUS
22241rm -f conftest.tail
22242while grep . conftest.defines >/dev/null
22243do
22244 # Write a limited-size here document to $tmp/defines.sed.
22245 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22246 # Speed up: don't consider the non `#define' lines.
jjakoacba8e62005-03-14 21:53:10 +000022247 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000022248 # Work around the forget-to-reset-the-flag bug.
22249 echo 't clr' >>$CONFIG_STATUS
22250 echo ': clr' >>$CONFIG_STATUS
22251 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22252 echo 'CEOF
22253 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22254 rm -f $tmp/in
22255 mv $tmp/out $tmp/in
22256' >>$CONFIG_STATUS
22257 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22258 rm -f conftest.defines
22259 mv conftest.tail conftest.defines
22260done
22261rm -f conftest.defines
jjako08d331d2003-10-13 20:33:30 +000022262echo ' fi # grep' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000022263echo >>$CONFIG_STATUS
22264
22265# Break up conftest.undefs because some shells have a limit on the size
22266# of here documents, and old seds have small limits too (100 cmds).
22267echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22268rm -f conftest.tail
22269while grep . conftest.undefs >/dev/null
22270do
22271 # Write a limited-size here document to $tmp/undefs.sed.
22272 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22273 # Speed up: don't consider the non `#undef'
jjakoacba8e62005-03-14 21:53:10 +000022274 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000022275 # Work around the forget-to-reset-the-flag bug.
22276 echo 't clr' >>$CONFIG_STATUS
22277 echo ': clr' >>$CONFIG_STATUS
22278 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22279 echo 'CEOF
22280 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22281 rm -f $tmp/in
22282 mv $tmp/out $tmp/in
22283' >>$CONFIG_STATUS
22284 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22285 rm -f conftest.undefs
22286 mv conftest.tail conftest.undefs
22287done
22288rm -f conftest.undefs
22289
22290cat >>$CONFIG_STATUS <<\_ACEOF
22291 # Let's still pretend it is `configure' which instantiates (i.e., don't
22292 # use $as_me), people would be surprised to read:
22293 # /* config.h. Generated by config.status. */
22294 if test x"$ac_file" = x-; then
22295 echo "/* Generated by configure. */" >$tmp/config.h
22296 else
22297 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22298 fi
22299 cat $tmp/in >>$tmp/config.h
22300 rm -f $tmp/in
22301 if test x"$ac_file" != x-; then
jjako08d331d2003-10-13 20:33:30 +000022302 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +000022303 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22304echo "$as_me: $ac_file is unchanged" >&6;}
22305 else
22306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22307$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022308 X"$ac_file" : 'X\(//\)[^/]' \| \
22309 X"$ac_file" : 'X\(//\)$' \| \
22310 X"$ac_file" : 'X\(/\)' \| \
22311 . : '\(.\)' 2>/dev/null ||
jjako286bc982003-01-28 23:17:50 +000022312echo X"$ac_file" |
22313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22315 /^X\(\/\/\)$/{ s//\1/; q; }
22316 /^X\(\/\).*/{ s//\1/; q; }
22317 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000022318 { if $as_mkdir_p; then
22319 mkdir -p "$ac_dir"
22320 else
22321 as_dir="$ac_dir"
22322 as_dirs=
22323 while test ! -d "$as_dir"; do
22324 as_dirs="$as_dir $as_dirs"
22325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022327 X"$as_dir" : 'X\(//\)[^/]' \| \
22328 X"$as_dir" : 'X\(//\)$' \| \
22329 X"$as_dir" : 'X\(/\)' \| \
22330 . : '\(.\)' 2>/dev/null ||
jjako08d331d2003-10-13 20:33:30 +000022331echo X"$as_dir" |
22332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22334 /^X\(\/\/\)$/{ s//\1/; q; }
22335 /^X\(\/\).*/{ s//\1/; q; }
22336 s/.*/./; q'`
22337 done
22338 test ! -n "$as_dirs" || mkdir $as_dirs
22339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22340echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22341 { (exit 1); exit 1; }; }; }
jjako286bc982003-01-28 23:17:50 +000022342
22343 rm -f $ac_file
22344 mv $tmp/config.h $ac_file
22345 fi
22346 else
22347 cat $tmp/config.h
22348 rm -f $tmp/config.h
22349 fi
jjakoacba8e62005-03-14 21:53:10 +000022350# Compute $ac_file's index in $config_headers.
22351_am_stamp_count=1
22352for _am_header in $config_headers :; do
22353 case $_am_header in
22354 $ac_file | $ac_file:* )
22355 break ;;
22356 * )
22357 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
jjako286bc982003-01-28 23:17:50 +000022358 esac
22359done
jjakoacba8e62005-03-14 21:53:10 +000022360echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22361$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22362 X$ac_file : 'X\(//\)[^/]' \| \
22363 X$ac_file : 'X\(//\)$' \| \
22364 X$ac_file : 'X\(/\)' \| \
22365 . : '\(.\)' 2>/dev/null ||
22366echo X$ac_file |
22367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22369 /^X\(\/\/\)$/{ s//\1/; q; }
22370 /^X\(\/\).*/{ s//\1/; q; }
22371 s/.*/./; q'`/stamp-h$_am_stamp_count
22372done
jjako286bc982003-01-28 23:17:50 +000022373_ACEOF
22374cat >>$CONFIG_STATUS <<\_ACEOF
22375
22376#
jjako1d3db972004-01-16 09:56:56 +000022377# CONFIG_LINKS section.
22378#
22379
22380for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22381 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22382 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22383
22384 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22385echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22386
22387 if test ! -r $srcdir/$ac_source; then
22388 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22389echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22390 { (exit 1); exit 1; }; }
22391 fi
22392 rm -f $ac_dest
22393
22394 # Make relative symlinks.
22395 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22396$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022397 X"$ac_dest" : 'X\(//\)[^/]' \| \
22398 X"$ac_dest" : 'X\(//\)$' \| \
22399 X"$ac_dest" : 'X\(/\)' \| \
22400 . : '\(.\)' 2>/dev/null ||
jjako1d3db972004-01-16 09:56:56 +000022401echo X"$ac_dest" |
22402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22404 /^X\(\/\/\)$/{ s//\1/; q; }
22405 /^X\(\/\).*/{ s//\1/; q; }
22406 s/.*/./; q'`
22407 { if $as_mkdir_p; then
22408 mkdir -p "$ac_dest_dir"
22409 else
22410 as_dir="$ac_dest_dir"
22411 as_dirs=
22412 while test ! -d "$as_dir"; do
22413 as_dirs="$as_dir $as_dirs"
22414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022416 X"$as_dir" : 'X\(//\)[^/]' \| \
22417 X"$as_dir" : 'X\(//\)$' \| \
22418 X"$as_dir" : 'X\(/\)' \| \
22419 . : '\(.\)' 2>/dev/null ||
jjako1d3db972004-01-16 09:56:56 +000022420echo X"$as_dir" |
22421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22423 /^X\(\/\/\)$/{ s//\1/; q; }
22424 /^X\(\/\).*/{ s//\1/; q; }
22425 s/.*/./; q'`
22426 done
22427 test ! -n "$as_dirs" || mkdir $as_dirs
22428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22429echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22430 { (exit 1); exit 1; }; }; }
22431
22432 ac_builddir=.
22433
22434if test "$ac_dest_dir" != .; then
22435 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22436 # A "../" for each directory in $ac_dir_suffix.
22437 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22438else
22439 ac_dir_suffix= ac_top_builddir=
22440fi
22441
22442case $srcdir in
22443 .) # No --srcdir option. We are building in place.
22444 ac_srcdir=.
22445 if test -z "$ac_top_builddir"; then
22446 ac_top_srcdir=.
22447 else
22448 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22449 fi ;;
22450 [\\/]* | ?:[\\/]* ) # Absolute path.
22451 ac_srcdir=$srcdir$ac_dir_suffix;
22452 ac_top_srcdir=$srcdir ;;
22453 *) # Relative path.
22454 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22455 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22456esac
jjakoacba8e62005-03-14 21:53:10 +000022457
22458# Do not use `cd foo && pwd` to compute absolute paths, because
22459# the directories may not exist.
22460case `pwd` in
22461.) ac_abs_builddir="$ac_dest_dir";;
22462*)
22463 case "$ac_dest_dir" in
22464 .) ac_abs_builddir=`pwd`;;
22465 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22466 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22467 esac;;
22468esac
22469case $ac_abs_builddir in
22470.) ac_abs_top_builddir=${ac_top_builddir}.;;
22471*)
22472 case ${ac_top_builddir}. in
22473 .) ac_abs_top_builddir=$ac_abs_builddir;;
22474 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22475 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22476 esac;;
22477esac
22478case $ac_abs_builddir in
22479.) ac_abs_srcdir=$ac_srcdir;;
22480*)
22481 case $ac_srcdir in
22482 .) ac_abs_srcdir=$ac_abs_builddir;;
22483 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22484 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22485 esac;;
22486esac
22487case $ac_abs_builddir in
22488.) ac_abs_top_srcdir=$ac_top_srcdir;;
22489*)
22490 case $ac_top_srcdir in
22491 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22492 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22493 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22494 esac;;
22495esac
jjako1d3db972004-01-16 09:56:56 +000022496
22497
22498 case $srcdir in
22499 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22500 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22501 esac
22502
22503 # Try a symlink, then a hard link, then a copy.
22504 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22505 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22506 cp -p $srcdir/$ac_source $ac_dest ||
22507 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22508echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22509 { (exit 1); exit 1; }; }
22510done
22511_ACEOF
22512cat >>$CONFIG_STATUS <<\_ACEOF
22513
22514#
jjako286bc982003-01-28 23:17:50 +000022515# CONFIG_COMMANDS section.
22516#
22517for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22518 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22519 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22520 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22521$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022522 X"$ac_dest" : 'X\(//\)[^/]' \| \
22523 X"$ac_dest" : 'X\(//\)$' \| \
22524 X"$ac_dest" : 'X\(/\)' \| \
22525 . : '\(.\)' 2>/dev/null ||
jjako286bc982003-01-28 23:17:50 +000022526echo X"$ac_dest" |
22527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22529 /^X\(\/\/\)$/{ s//\1/; q; }
22530 /^X\(\/\).*/{ s//\1/; q; }
22531 s/.*/./; q'`
jjakoacba8e62005-03-14 21:53:10 +000022532 { if $as_mkdir_p; then
22533 mkdir -p "$ac_dir"
22534 else
22535 as_dir="$ac_dir"
22536 as_dirs=
22537 while test ! -d "$as_dir"; do
22538 as_dirs="$as_dir $as_dirs"
22539 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22541 X"$as_dir" : 'X\(//\)[^/]' \| \
22542 X"$as_dir" : 'X\(//\)$' \| \
22543 X"$as_dir" : 'X\(/\)' \| \
22544 . : '\(.\)' 2>/dev/null ||
22545echo X"$as_dir" |
22546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22548 /^X\(\/\/\)$/{ s//\1/; q; }
22549 /^X\(\/\).*/{ s//\1/; q; }
22550 s/.*/./; q'`
22551 done
22552 test ! -n "$as_dirs" || mkdir $as_dirs
22553 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22554echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22555 { (exit 1); exit 1; }; }; }
22556
jjako286bc982003-01-28 23:17:50 +000022557 ac_builddir=.
22558
22559if test "$ac_dir" != .; then
22560 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22561 # A "../" for each directory in $ac_dir_suffix.
22562 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22563else
22564 ac_dir_suffix= ac_top_builddir=
22565fi
22566
22567case $srcdir in
22568 .) # No --srcdir option. We are building in place.
22569 ac_srcdir=.
22570 if test -z "$ac_top_builddir"; then
22571 ac_top_srcdir=.
22572 else
22573 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22574 fi ;;
22575 [\\/]* | ?:[\\/]* ) # Absolute path.
22576 ac_srcdir=$srcdir$ac_dir_suffix;
22577 ac_top_srcdir=$srcdir ;;
jjako52c24142002-12-16 13:33:51 +000022578 *) # Relative path.
jjako286bc982003-01-28 23:17:50 +000022579 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22580 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22581esac
jjakoacba8e62005-03-14 21:53:10 +000022582
22583# Do not use `cd foo && pwd` to compute absolute paths, because
22584# the directories may not exist.
22585case `pwd` in
22586.) ac_abs_builddir="$ac_dir";;
22587*)
22588 case "$ac_dir" in
22589 .) ac_abs_builddir=`pwd`;;
22590 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22591 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22592 esac;;
22593esac
22594case $ac_abs_builddir in
22595.) ac_abs_top_builddir=${ac_top_builddir}.;;
22596*)
22597 case ${ac_top_builddir}. in
22598 .) ac_abs_top_builddir=$ac_abs_builddir;;
22599 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22600 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22601 esac;;
22602esac
22603case $ac_abs_builddir in
22604.) ac_abs_srcdir=$ac_srcdir;;
22605*)
22606 case $ac_srcdir in
22607 .) ac_abs_srcdir=$ac_abs_builddir;;
22608 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22609 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22610 esac;;
22611esac
22612case $ac_abs_builddir in
22613.) ac_abs_top_srcdir=$ac_top_srcdir;;
22614*)
22615 case $ac_top_srcdir in
22616 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22617 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22618 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22619 esac;;
22620esac
jjako286bc982003-01-28 23:17:50 +000022621
22622
22623 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22624echo "$as_me: executing $ac_dest commands" >&6;}
22625 case $ac_dest in
22626 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22627 # Strip MF so we end up with the name of the file.
22628 mf=`echo "$mf" | sed -e 's/:.*$//'`
22629 # Check whether this is an Automake generated Makefile or not.
22630 # We used to match only the files named `Makefile.in', but
22631 # some people rename them; so instead we look at the file content.
22632 # Grep'ing the first line is not enough: some people post-process
22633 # each Makefile.in and add a new line on top of each file to say so.
22634 # So let's grep whole file.
22635 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22636 dirpart=`(dirname "$mf") 2>/dev/null ||
22637$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022638 X"$mf" : 'X\(//\)[^/]' \| \
22639 X"$mf" : 'X\(//\)$' \| \
22640 X"$mf" : 'X\(/\)' \| \
22641 . : '\(.\)' 2>/dev/null ||
jjako286bc982003-01-28 23:17:50 +000022642echo X"$mf" |
22643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22645 /^X\(\/\/\)$/{ s//\1/; q; }
22646 /^X\(\/\).*/{ s//\1/; q; }
22647 s/.*/./; q'`
22648 else
22649 continue
22650 fi
jjakoacba8e62005-03-14 21:53:10 +000022651 # Extract the definition of DEPDIR, am__include, and am__quote
22652 # from the Makefile without running `make'.
22653 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
jjako286bc982003-01-28 23:17:50 +000022654 test -z "$DEPDIR" && continue
jjakoacba8e62005-03-14 21:53:10 +000022655 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22656 test -z "am__include" && continue
22657 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
jjako286bc982003-01-28 23:17:50 +000022658 # When using ansi2knr, U may be empty or an underscore; expand it
jjakoacba8e62005-03-14 21:53:10 +000022659 U=`sed -n 's/^U = //p' < "$mf"`
22660 # Find all dependency output files, they are included files with
22661 # $(DEPDIR) in their names. We invoke sed twice because it is the
22662 # simplest approach to changing $(DEPDIR) to its actual value in the
22663 # expansion.
22664 for file in `sed -n "
22665 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
jjako286bc982003-01-28 23:17:50 +000022666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22667 # Make sure the directory exists.
22668 test -f "$dirpart/$file" && continue
22669 fdir=`(dirname "$file") 2>/dev/null ||
22670$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022671 X"$file" : 'X\(//\)[^/]' \| \
22672 X"$file" : 'X\(//\)$' \| \
22673 X"$file" : 'X\(/\)' \| \
22674 . : '\(.\)' 2>/dev/null ||
jjako286bc982003-01-28 23:17:50 +000022675echo X"$file" |
22676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22678 /^X\(\/\/\)$/{ s//\1/; q; }
22679 /^X\(\/\).*/{ s//\1/; q; }
22680 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000022681 { if $as_mkdir_p; then
22682 mkdir -p $dirpart/$fdir
22683 else
22684 as_dir=$dirpart/$fdir
22685 as_dirs=
22686 while test ! -d "$as_dir"; do
22687 as_dirs="$as_dir $as_dirs"
22688 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
jjakoacba8e62005-03-14 21:53:10 +000022690 X"$as_dir" : 'X\(//\)[^/]' \| \
22691 X"$as_dir" : 'X\(//\)$' \| \
22692 X"$as_dir" : 'X\(/\)' \| \
22693 . : '\(.\)' 2>/dev/null ||
jjako08d331d2003-10-13 20:33:30 +000022694echo X"$as_dir" |
22695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22697 /^X\(\/\/\)$/{ s//\1/; q; }
22698 /^X\(\/\).*/{ s//\1/; q; }
22699 s/.*/./; q'`
22700 done
22701 test ! -n "$as_dirs" || mkdir $as_dirs
22702 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22703echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22704 { (exit 1); exit 1; }; }; }
jjako52c24142002-12-16 13:33:51 +000022705
jjako286bc982003-01-28 23:17:50 +000022706 # echo "creating $dirpart/$file"
22707 echo '# dummy' > "$dirpart/$file"
22708 done
22709done
22710 ;;
jjako52c24142002-12-16 13:33:51 +000022711 esac
jjako286bc982003-01-28 23:17:50 +000022712done
22713_ACEOF
jjako52c24142002-12-16 13:33:51 +000022714
jjako286bc982003-01-28 23:17:50 +000022715cat >>$CONFIG_STATUS <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000022716
jjako286bc982003-01-28 23:17:50 +000022717{ (exit 0); exit 0; }
22718_ACEOF
jjako52c24142002-12-16 13:33:51 +000022719chmod +x $CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000022720ac_clean_files=$ac_clean_files_save
22721
22722
22723# configure is writing to config.log, and then calls config.status.
22724# config.status does its own redirection, appending to config.log.
22725# Unfortunately, on DOS this fails, as config.log is still kept open
22726# by configure, so config.status won't be able to write to it; its
22727# output is simply discarded. So we exec the FD to /dev/null,
22728# effectively closing config.log, so it can be properly (re)opened and
22729# appended to by config.status. When coming back to configure, we
22730# need to make the FD available again.
22731if test "$no_create" != yes; then
22732 ac_cs_success=:
jjako08d331d2003-10-13 20:33:30 +000022733 ac_config_status_args=
22734 test "$silent" = yes &&
22735 ac_config_status_args="$ac_config_status_args --quiet"
jjako286bc982003-01-28 23:17:50 +000022736 exec 5>/dev/null
jjako08d331d2003-10-13 20:33:30 +000022737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
jjako286bc982003-01-28 23:17:50 +000022738 exec 5>>config.log
22739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22740 # would make configure fail if this is the last instruction.
22741 $ac_cs_success || { (exit 1); exit 1; }
22742fi
jjako52c24142002-12-16 13:33:51 +000022743