blob: dc463a1d39e34b3f5cb2bfbff3ae96797cc5256d [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.
jjakob62c3dd2004-05-27 18:51:55 +00003# Generated by GNU Autoconf 2.57 for openggsn 0.82.
jjako5f1c3972003-01-29 11:56:06 +00004#
jjako286bc982003-01-28 23:17:50 +00005# Report bugs to <jj@openggsn.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
jjako52c24142002-12-16 13:33:51 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
jjako08d331d2003-10-13 20:33:30 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
jjako52c24142002-12-16 13:33:51 +0000244
jjako286bc982003-01-28 23:17:50 +0000245# Find the correct PATH separator. Usually this is `:', but
246# DJGPP uses `;' like DOS.
247if test "X${PATH_SEPARATOR+set}" != Xset; then
248 UNAME=${UNAME-`uname 2>/dev/null`}
249 case X$UNAME in
250 *-DOS) lt_cv_sys_path_separator=';' ;;
251 *) lt_cv_sys_path_separator=':' ;;
252 esac
253 PATH_SEPARATOR=$lt_cv_sys_path_separator
254fi
255
256
257# Check that we are running under the correct shell.
258SHELL=${CONFIG_SHELL-/bin/sh}
259
260case X$ECHO in
261X*--fallback-echo)
262 # Remove one level of quotation (which was required for Make).
263 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
264 ;;
265esac
266
267echo=${ECHO-echo}
268if test "X$1" = X--no-reexec; then
269 # Discard the --no-reexec flag, and continue.
270 shift
271elif test "X$1" = X--fallback-echo; then
272 # Avoid inline document here, it may be left over
273 :
274elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275 # Yippee, $echo works!
276 :
277else
278 # Restart under the correct shell.
279 exec $SHELL "$0" --no-reexec ${1+"$@"}
280fi
281
282if test "X$1" = X--fallback-echo; then
283 # used as fallback echo
284 shift
285 cat <<EOF
286
287EOF
288 exit 0
289fi
290
291# The HP-UX ksh and POSIX shell print the target directory to stdout
292# if CDPATH is set.
293if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294
295if test -z "$ECHO"; then
296if test "X${echo_test_string+set}" != Xset; then
297# find a string as large as possible, as long as the shell can cope with it
298 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301 echo_test_string="`eval $cmd`" &&
302 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303 then
304 break
305 fi
306 done
307fi
308
309if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311 test "X$echo_testing_string" = "X$echo_test_string"; then
312 :
313else
314 # The Solaris, AIX, and Digital Unix default echo programs unquote
315 # backslashes. This makes it impossible to quote backslashes using
316 # echo "$something" | sed 's/\\/\\\\/g'
317 #
318 # So, first we look for a working echo in the user's PATH.
319
320 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321 for dir in $PATH /usr/ucb; do
322 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 echo="$dir/echo"
327 break
328 fi
329 done
330 IFS="$save_ifs"
331
332 if test "X$echo" = Xecho; then
333 # We didn't find a better echo, so look for alternatives.
334 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336 test "X$echo_testing_string" = "X$echo_test_string"; then
337 # This shell has a builtin print -r that does the trick.
338 echo='print -r'
339 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340 test "X$CONFIG_SHELL" != X/bin/ksh; then
341 # If we have ksh, try running configure again with it.
342 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343 export ORIGINAL_CONFIG_SHELL
344 CONFIG_SHELL=/bin/ksh
345 export CONFIG_SHELL
346 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
347 else
348 # Try using printf.
349 echo='printf %s\n'
350 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352 test "X$echo_testing_string" = "X$echo_test_string"; then
353 # Cool, printf works
354 :
355 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 export CONFIG_SHELL
361 SHELL="$CONFIG_SHELL"
362 export SHELL
363 echo="$CONFIG_SHELL $0 --fallback-echo"
364 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365 test "X$echo_testing_string" = 'X\t' &&
366 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367 test "X$echo_testing_string" = "X$echo_test_string"; then
368 echo="$CONFIG_SHELL $0 --fallback-echo"
369 else
370 # maybe with a smaller string...
371 prev=:
372
373 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
375 then
376 break
377 fi
378 prev="$cmd"
379 done
380
381 if test "$prev" != 'sed 50q "$0"'; then
382 echo_test_string=`eval $prev`
383 export echo_test_string
384 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 else
386 # Oops. We lost completely, so just stick with echo.
387 echo=echo
388 fi
389 fi
390 fi
391 fi
392fi
393fi
394
395# Copy echo and quote the copy suitably for passing to libtool from
396# the Makefile, instead of quoting the original, which is used later.
397ECHO=$echo
398if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400fi
401
402
403
jjako286bc982003-01-28 23:17:50 +0000404# Name of the host.
405# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406# so uname gets run too.
407ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
409exec 6>&1
410
411#
412# Initializations.
413#
jjako52c24142002-12-16 13:33:51 +0000414ac_default_prefix=/usr/local
jjako08d331d2003-10-13 20:33:30 +0000415ac_config_libobj_dir=.
jjako286bc982003-01-28 23:17:50 +0000416cross_compiling=no
417subdirs=
418MFLAGS=
419MAKEFLAGS=
420SHELL=${CONFIG_SHELL-/bin/sh}
421
422# Maximum number of lines to put in a shell here document.
423# This variable seems obsolete. It should probably be removed, and
424# only ac_max_sed_lines should be used.
425: ${ac_max_here_lines=38}
426
427# Identity of this package.
428PACKAGE_NAME='openggsn'
429PACKAGE_TARNAME='openggsn'
jjakob62c3dd2004-05-27 18:51:55 +0000430PACKAGE_VERSION='0.82'
431PACKAGE_STRING='openggsn 0.82'
jjako286bc982003-01-28 23:17:50 +0000432PACKAGE_BUGREPORT='jj@openggsn.org'
433
434ac_unique_file="gtp/gtp.c"
435# Factoring default headers for most tests.
436ac_includes_default="\
437#include <stdio.h>
438#if HAVE_SYS_TYPES_H
439# include <sys/types.h>
440#endif
441#if HAVE_SYS_STAT_H
442# include <sys/stat.h>
443#endif
444#if STDC_HEADERS
445# include <stdlib.h>
446# include <stddef.h>
447#else
448# if HAVE_STDLIB_H
449# include <stdlib.h>
450# endif
451#endif
452#if HAVE_STRING_H
453# if !STDC_HEADERS && HAVE_MEMORY_H
454# include <memory.h>
455# endif
456# include <string.h>
457#endif
458#if HAVE_STRINGS_H
459# include <strings.h>
460#endif
461#if HAVE_INTTYPES_H
462# include <inttypes.h>
463#else
464# if HAVE_STDINT_H
465# include <stdint.h>
466# endif
467#endif
468#if HAVE_UNISTD_H
469# include <unistd.h>
470#endif"
471
jjako08d331d2003-10-13 20:33:30 +0000472ac_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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL EXEC_LDFLAGS LIBOBJS PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM SET_MAKE DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXXDEPMODE LTLIBOBJS'
473ac_subst_files=''
jjako52c24142002-12-16 13:33:51 +0000474
475# Initialize some variables set by options.
jjako286bc982003-01-28 23:17:50 +0000476ac_init_help=
477ac_init_version=false
jjako52c24142002-12-16 13:33:51 +0000478# The variables have the same names as the options, with
479# dashes changed to underlines.
jjako286bc982003-01-28 23:17:50 +0000480cache_file=/dev/null
jjako52c24142002-12-16 13:33:51 +0000481exec_prefix=NONE
jjako52c24142002-12-16 13:33:51 +0000482no_create=
jjako52c24142002-12-16 13:33:51 +0000483no_recursion=
484prefix=NONE
485program_prefix=NONE
486program_suffix=NONE
487program_transform_name=s,x,x,
488silent=
489site=
490srcdir=
jjako52c24142002-12-16 13:33:51 +0000491verbose=
492x_includes=NONE
493x_libraries=NONE
jjako286bc982003-01-28 23:17:50 +0000494
495# Installation directory options.
496# These are left unexpanded so users can "make install exec_prefix=/foo"
497# and all the variables that are supposed to be based on exec_prefix
498# by default will actually change.
499# Use braces instead of parens because sh, perl, etc. also accept them.
jjako52c24142002-12-16 13:33:51 +0000500bindir='${exec_prefix}/bin'
501sbindir='${exec_prefix}/sbin'
502libexecdir='${exec_prefix}/libexec'
503datadir='${prefix}/share'
504sysconfdir='${prefix}/etc'
505sharedstatedir='${prefix}/com'
506localstatedir='${prefix}/var'
507libdir='${exec_prefix}/lib'
508includedir='${prefix}/include'
509oldincludedir='/usr/include'
510infodir='${prefix}/info'
511mandir='${prefix}/man'
512
jjako52c24142002-12-16 13:33:51 +0000513ac_prev=
514for ac_option
515do
jjako52c24142002-12-16 13:33:51 +0000516 # If the previous option needs an argument, assign it.
517 if test -n "$ac_prev"; then
518 eval "$ac_prev=\$ac_option"
519 ac_prev=
520 continue
521 fi
522
jjako286bc982003-01-28 23:17:50 +0000523 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000524
525 # Accept the important Cygnus configure options, so we can diagnose typos.
526
jjako286bc982003-01-28 23:17:50 +0000527 case $ac_option in
jjako52c24142002-12-16 13:33:51 +0000528
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 ac_prev=bindir ;;
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
jjako286bc982003-01-28 23:17:50 +0000532 bindir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000533
534 -build | --build | --buil | --bui | --bu)
jjako286bc982003-01-28 23:17:50 +0000535 ac_prev=build_alias ;;
jjako52c24142002-12-16 13:33:51 +0000536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
jjako286bc982003-01-28 23:17:50 +0000537 build_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000538
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
jjako286bc982003-01-28 23:17:50 +0000544 cache_file=$ac_optarg ;;
545
546 --config-cache | -C)
547 cache_file=config.cache ;;
jjako52c24142002-12-16 13:33:51 +0000548
549 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 ac_prev=datadir ;;
551 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 | --da=*)
jjako286bc982003-01-28 23:17:50 +0000553 datadir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000554
555 -disable-* | --disable-*)
jjako286bc982003-01-28 23:17:50 +0000556 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000557 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 eval "enable_$ac_feature=no" ;;
jjako52c24142002-12-16 13:33:51 +0000563
564 -enable-* | --enable-*)
jjako286bc982003-01-28 23:17:50 +0000565 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
jjako52c24142002-12-16 13:33:51 +0000566 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 case $ac_option in
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
jjako52c24142002-12-16 13:33:51 +0000573 *) ac_optarg=yes ;;
574 esac
jjako286bc982003-01-28 23:17:50 +0000575 eval "enable_$ac_feature='$ac_optarg'" ;;
jjako52c24142002-12-16 13:33:51 +0000576
577 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579 | --exec | --exe | --ex)
580 ac_prev=exec_prefix ;;
581 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583 | --exec=* | --exe=* | --ex=*)
jjako286bc982003-01-28 23:17:50 +0000584 exec_prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000585
586 -gas | --gas | --ga | --g)
587 # Obsolete; use --with-gas.
588 with_gas=yes ;;
589
jjako286bc982003-01-28 23:17:50 +0000590 -help | --help | --hel | --he | -h)
591 ac_init_help=long ;;
592 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593 ac_init_help=recursive ;;
594 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595 ac_init_help=short ;;
jjako52c24142002-12-16 13:33:51 +0000596
597 -host | --host | --hos | --ho)
jjako286bc982003-01-28 23:17:50 +0000598 ac_prev=host_alias ;;
jjako52c24142002-12-16 13:33:51 +0000599 -host=* | --host=* | --hos=* | --ho=*)
jjako286bc982003-01-28 23:17:50 +0000600 host_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000601
602 -includedir | --includedir | --includedi | --included | --include \
603 | --includ | --inclu | --incl | --inc)
604 ac_prev=includedir ;;
605 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606 | --includ=* | --inclu=* | --incl=* | --inc=*)
jjako286bc982003-01-28 23:17:50 +0000607 includedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000608
609 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 ac_prev=infodir ;;
611 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
jjako286bc982003-01-28 23:17:50 +0000612 infodir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000613
614 -libdir | --libdir | --libdi | --libd)
615 ac_prev=libdir ;;
616 -libdir=* | --libdir=* | --libdi=* | --libd=*)
jjako286bc982003-01-28 23:17:50 +0000617 libdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000618
619 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620 | --libexe | --libex | --libe)
621 ac_prev=libexecdir ;;
622 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623 | --libexe=* | --libex=* | --libe=*)
jjako286bc982003-01-28 23:17:50 +0000624 libexecdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000625
626 -localstatedir | --localstatedir | --localstatedi | --localstated \
627 | --localstate | --localstat | --localsta | --localst \
628 | --locals | --local | --loca | --loc | --lo)
629 ac_prev=localstatedir ;;
630 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
jjako286bc982003-01-28 23:17:50 +0000633 localstatedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000634
635 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 ac_prev=mandir ;;
637 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
jjako286bc982003-01-28 23:17:50 +0000638 mandir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000639
640 -nfp | --nfp | --nf)
641 # Obsolete; use --without-fp.
642 with_fp=no ;;
643
644 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
jjako286bc982003-01-28 23:17:50 +0000645 | --no-cr | --no-c | -n)
jjako52c24142002-12-16 13:33:51 +0000646 no_create=yes ;;
647
648 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 no_recursion=yes ;;
651
652 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654 | --oldin | --oldi | --old | --ol | --o)
655 ac_prev=oldincludedir ;;
656 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
jjako286bc982003-01-28 23:17:50 +0000659 oldincludedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000660
661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 ac_prev=prefix ;;
663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
jjako286bc982003-01-28 23:17:50 +0000664 prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000665
666 -program-prefix | --program-prefix | --program-prefi | --program-pref \
667 | --program-pre | --program-pr | --program-p)
668 ac_prev=program_prefix ;;
669 -program-prefix=* | --program-prefix=* | --program-prefi=* \
670 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
jjako286bc982003-01-28 23:17:50 +0000671 program_prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000672
673 -program-suffix | --program-suffix | --program-suffi | --program-suff \
674 | --program-suf | --program-su | --program-s)
675 ac_prev=program_suffix ;;
676 -program-suffix=* | --program-suffix=* | --program-suffi=* \
677 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
jjako286bc982003-01-28 23:17:50 +0000678 program_suffix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000679
680 -program-transform-name | --program-transform-name \
681 | --program-transform-nam | --program-transform-na \
682 | --program-transform-n | --program-transform- \
683 | --program-transform | --program-transfor \
684 | --program-transfo | --program-transf \
685 | --program-trans | --program-tran \
686 | --progr-tra | --program-tr | --program-t)
687 ac_prev=program_transform_name ;;
688 -program-transform-name=* | --program-transform-name=* \
689 | --program-transform-nam=* | --program-transform-na=* \
690 | --program-transform-n=* | --program-transform-=* \
691 | --program-transform=* | --program-transfor=* \
692 | --program-transfo=* | --program-transf=* \
693 | --program-trans=* | --program-tran=* \
694 | --progr-tra=* | --program-tr=* | --program-t=*)
jjako286bc982003-01-28 23:17:50 +0000695 program_transform_name=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000696
697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698 | -silent | --silent | --silen | --sile | --sil)
699 silent=yes ;;
700
701 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 ac_prev=sbindir ;;
703 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 | --sbi=* | --sb=*)
jjako286bc982003-01-28 23:17:50 +0000705 sbindir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000706
707 -sharedstatedir | --sharedstatedir | --sharedstatedi \
708 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709 | --sharedst | --shareds | --shared | --share | --shar \
710 | --sha | --sh)
711 ac_prev=sharedstatedir ;;
712 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 | --sha=* | --sh=*)
jjako286bc982003-01-28 23:17:50 +0000716 sharedstatedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000717
718 -site | --site | --sit)
719 ac_prev=site ;;
720 -site=* | --site=* | --sit=*)
jjako286bc982003-01-28 23:17:50 +0000721 site=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000722
723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 ac_prev=srcdir ;;
725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
jjako286bc982003-01-28 23:17:50 +0000726 srcdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000727
728 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729 | --syscon | --sysco | --sysc | --sys | --sy)
730 ac_prev=sysconfdir ;;
731 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
jjako286bc982003-01-28 23:17:50 +0000733 sysconfdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000734
735 -target | --target | --targe | --targ | --tar | --ta | --t)
jjako286bc982003-01-28 23:17:50 +0000736 ac_prev=target_alias ;;
jjako52c24142002-12-16 13:33:51 +0000737 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
jjako286bc982003-01-28 23:17:50 +0000738 target_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000739
740 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 verbose=yes ;;
742
jjako286bc982003-01-28 23:17:50 +0000743 -version | --version | --versio | --versi | --vers | -V)
744 ac_init_version=: ;;
jjako52c24142002-12-16 13:33:51 +0000745
746 -with-* | --with-*)
jjako286bc982003-01-28 23:17:50 +0000747 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
jjako52c24142002-12-16 13:33:51 +0000748 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000749 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750 { echo "$as_me: error: invalid package name: $ac_package" >&2
751 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000752 ac_package=`echo $ac_package| sed 's/-/_/g'`
jjako286bc982003-01-28 23:17:50 +0000753 case $ac_option in
754 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
jjako52c24142002-12-16 13:33:51 +0000755 *) ac_optarg=yes ;;
756 esac
jjako286bc982003-01-28 23:17:50 +0000757 eval "with_$ac_package='$ac_optarg'" ;;
jjako52c24142002-12-16 13:33:51 +0000758
759 -without-* | --without-*)
jjako286bc982003-01-28 23:17:50 +0000760 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000761 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000762 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763 { echo "$as_me: error: invalid package name: $ac_package" >&2
764 { (exit 1); exit 1; }; }
765 ac_package=`echo $ac_package | sed 's/-/_/g'`
766 eval "with_$ac_package=no" ;;
jjako52c24142002-12-16 13:33:51 +0000767
768 --x)
769 # Obsolete; use --with-x.
770 with_x=yes ;;
771
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
jjako286bc982003-01-28 23:17:50 +0000777 x_includes=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000778
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
jjako286bc982003-01-28 23:17:50 +0000784 x_libraries=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000785
jjako286bc982003-01-28 23:17:50 +0000786 -*) { echo "$as_me: error: unrecognized option: $ac_option
787Try \`$0 --help' for more information." >&2
788 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000789 ;;
790
jjako286bc982003-01-28 23:17:50 +0000791 *=*)
792 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796 { (exit 1); exit 1; }; }
797 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798 eval "$ac_envvar='$ac_optarg'"
799 export $ac_envvar ;;
800
jjako52c24142002-12-16 13:33:51 +0000801 *)
jjako286bc982003-01-28 23:17:50 +0000802 # FIXME: should be removed in autoconf 3.0.
803 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
jjako52c24142002-12-16 13:33:51 +0000807 ;;
808
809 esac
810done
811
812if test -n "$ac_prev"; then
jjako286bc982003-01-28 23:17:50 +0000813 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814 { echo "$as_me: error: missing argument to $ac_option" >&2
815 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000816fi
817
jjako286bc982003-01-28 23:17:50 +0000818# Be sure to have absolute paths.
819for ac_var in exec_prefix prefix
jjako52c24142002-12-16 13:33:51 +0000820do
jjako286bc982003-01-28 23:17:50 +0000821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
jjako52c24142002-12-16 13:33:51 +0000826 esac
827done
828
jjako286bc982003-01-28 23:17:50 +0000829# Be sure to have absolute paths.
830for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831 localstatedir libdir includedir oldincludedir infodir mandir
832do
833 eval ac_val=$`echo $ac_var`
834 case $ac_val in
835 [\\/$]* | ?:[\\/]* ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
838 esac
839done
jjako52c24142002-12-16 13:33:51 +0000840
jjako286bc982003-01-28 23:17:50 +0000841# There might be people who depend on the old broken behavior: `$host'
842# used to hold the argument of --host etc.
843# FIXME: To remove some day.
844build=$build_alias
845host=$host_alias
846target=$target_alias
jjako52c24142002-12-16 13:33:51 +0000847
jjako286bc982003-01-28 23:17:50 +0000848# FIXME: To remove some day.
849if test "x$host_alias" != x; then
850 if test "x$build_alias" = x; then
851 cross_compiling=maybe
852 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853 If a cross compiler is detected then cross compile mode will be used." >&2
854 elif test "x$build_alias" != "x$host_alias"; then
855 cross_compiling=yes
856 fi
857fi
858
859ac_tool_prefix=
860test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862test "$silent" = yes && exec 6>/dev/null
863
jjako52c24142002-12-16 13:33:51 +0000864
865# Find the source files, if location was not specified.
866if test -z "$srcdir"; then
867 ac_srcdir_defaulted=yes
868 # Try the directory containing this script, then its parent.
jjako286bc982003-01-28 23:17:50 +0000869 ac_confdir=`(dirname "$0") 2>/dev/null ||
870$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871 X"$0" : 'X\(//\)[^/]' \| \
872 X"$0" : 'X\(//\)$' \| \
873 X"$0" : 'X\(/\)' \| \
874 . : '\(.\)' 2>/dev/null ||
875echo X"$0" |
876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878 /^X\(\/\/\)$/{ s//\1/; q; }
879 /^X\(\/\).*/{ s//\1/; q; }
880 s/.*/./; q'`
jjako52c24142002-12-16 13:33:51 +0000881 srcdir=$ac_confdir
882 if test ! -r $srcdir/$ac_unique_file; then
883 srcdir=..
884 fi
885else
886 ac_srcdir_defaulted=no
887fi
888if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
jjako286bc982003-01-28 23:17:50 +0000890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000892 else
jjako286bc982003-01-28 23:17:50 +0000893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000895 fi
896fi
jjako08d331d2003-10-13 20:33:30 +0000897(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899 { (exit 1); exit 1; }; }
jjako286bc982003-01-28 23:17:50 +0000900srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901ac_env_build_alias_set=${build_alias+set}
902ac_env_build_alias_value=$build_alias
903ac_cv_env_build_alias_set=${build_alias+set}
904ac_cv_env_build_alias_value=$build_alias
905ac_env_host_alias_set=${host_alias+set}
906ac_env_host_alias_value=$host_alias
907ac_cv_env_host_alias_set=${host_alias+set}
908ac_cv_env_host_alias_value=$host_alias
909ac_env_target_alias_set=${target_alias+set}
910ac_env_target_alias_value=$target_alias
911ac_cv_env_target_alias_set=${target_alias+set}
912ac_cv_env_target_alias_value=$target_alias
913ac_env_CC_set=${CC+set}
914ac_env_CC_value=$CC
915ac_cv_env_CC_set=${CC+set}
916ac_cv_env_CC_value=$CC
917ac_env_CFLAGS_set=${CFLAGS+set}
918ac_env_CFLAGS_value=$CFLAGS
919ac_cv_env_CFLAGS_set=${CFLAGS+set}
920ac_cv_env_CFLAGS_value=$CFLAGS
921ac_env_LDFLAGS_set=${LDFLAGS+set}
922ac_env_LDFLAGS_value=$LDFLAGS
923ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924ac_cv_env_LDFLAGS_value=$LDFLAGS
925ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_env_CPPFLAGS_value=$CPPFLAGS
927ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929ac_env_CPP_set=${CPP+set}
930ac_env_CPP_value=$CPP
931ac_cv_env_CPP_set=${CPP+set}
932ac_cv_env_CPP_value=$CPP
933ac_env_CXX_set=${CXX+set}
934ac_env_CXX_value=$CXX
935ac_cv_env_CXX_set=${CXX+set}
936ac_cv_env_CXX_value=$CXX
937ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_env_CXXFLAGS_value=$CXXFLAGS
939ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940ac_cv_env_CXXFLAGS_value=$CXXFLAGS
jjako52c24142002-12-16 13:33:51 +0000941
jjako286bc982003-01-28 23:17:50 +0000942#
943# Report the --help message.
944#
945if test "$ac_init_help" = "long"; then
946 # Omit some internal or obsolete options to make the list less imposing.
947 # This message is too long to be a string in the A/UX 3.1 sh.
948 cat <<_ACEOF
jjakob62c3dd2004-05-27 18:51:55 +0000949\`configure' configures openggsn 0.82 to adapt to many kinds of systems.
jjako286bc982003-01-28 23:17:50 +0000950
951Usage: $0 [OPTION]... [VAR=VALUE]...
952
953To assign environment variables (e.g., CC, CFLAGS...), specify them as
954VAR=VALUE. See below for descriptions of some of the useful variables.
955
956Defaults for the options are specified in brackets.
957
958Configuration:
959 -h, --help display this help and exit
960 --help=short display options specific to this package
961 --help=recursive display the short help of all the included packages
962 -V, --version display version information and exit
963 -q, --quiet, --silent do not print \`checking...' messages
964 --cache-file=FILE cache test results in FILE [disabled]
965 -C, --config-cache alias for \`--cache-file=config.cache'
966 -n, --no-create do not create output files
967 --srcdir=DIR find the sources in DIR [configure dir or \`..']
968
969_ACEOF
970
971 cat <<_ACEOF
972Installation directories:
973 --prefix=PREFIX install architecture-independent files in PREFIX
974 [$ac_default_prefix]
975 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
976 [PREFIX]
977
978By default, \`make install' will install all the files in
979\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981for instance \`--prefix=\$HOME'.
982
983For better control, use the options below.
984
985Fine tuning of the installation directories:
986 --bindir=DIR user executables [EPREFIX/bin]
987 --sbindir=DIR system admin executables [EPREFIX/sbin]
988 --libexecdir=DIR program executables [EPREFIX/libexec]
989 --datadir=DIR read-only architecture-independent data [PREFIX/share]
990 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
991 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993 --libdir=DIR object code libraries [EPREFIX/lib]
994 --includedir=DIR C header files [PREFIX/include]
995 --oldincludedir=DIR C header files for non-gcc [/usr/include]
996 --infodir=DIR info documentation [PREFIX/info]
997 --mandir=DIR man documentation [PREFIX/man]
998_ACEOF
999
1000 cat <<\_ACEOF
1001
1002Program names:
1003 --program-prefix=PREFIX prepend PREFIX to installed program names
1004 --program-suffix=SUFFIX append SUFFIX to installed program names
1005 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1006
1007System types:
1008 --build=BUILD configure for building on BUILD [guessed]
1009 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010_ACEOF
1011fi
1012
1013if test -n "$ac_init_help"; then
1014 case $ac_init_help in
jjakob62c3dd2004-05-27 18:51:55 +00001015 short | recursive ) echo "Configuration of openggsn 0.82:";;
jjako286bc982003-01-28 23:17:50 +00001016 esac
1017 cat <<\_ACEOF
1018
1019Optional Features:
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-shared=PKGS build shared libraries default=yes
1023 --enable-static=PKGS build static libraries default=yes
1024 --enable-fast-install=PKGS optimize for fast installation default=yes
1025 --disable-libtool-lock avoid locking (might break parallel builds)
jjakoa9639f32003-07-07 15:30:11 +00001026 --enable-static-exec Enable static linking of executables
jjako286bc982003-01-28 23:17:50 +00001027 --disable-dependency-tracking Speeds up one-time builds
1028 --enable-dependency-tracking Do not reject slow dependency extractors
1029
1030Optional Packages:
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gnu-ld assume the C compiler uses GNU ld default=no
1034 --with-pic try to use only PIC/non-PIC objects default=use both
1035
1036Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CPP C preprocessor
1044 CXX C++ compiler command
1045 CXXFLAGS C++ compiler flags
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050Report bugs to <jj@openggsn.org>.
1051_ACEOF
1052fi
1053
1054if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1060
1061if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065else
1066 ac_dir_suffix= ac_top_builddir=
1067fi
1068
1069case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083esac
1084# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1085# absolute.
1086ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
jjako08d331d2003-10-13 20:33:30 +00001087ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
jjako286bc982003-01-28 23:17:50 +00001088ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1089ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1090
1091 cd $ac_dir
1092 # Check for guested configure; otherwise get Cygnus style configure.
1093 if test -f $ac_srcdir/configure.gnu; then
1094 echo
1095 $SHELL $ac_srcdir/configure.gnu --help=recursive
1096 elif test -f $ac_srcdir/configure; then
1097 echo
1098 $SHELL $ac_srcdir/configure --help=recursive
1099 elif test -f $ac_srcdir/configure.ac ||
1100 test -f $ac_srcdir/configure.in; then
1101 echo
1102 $ac_configure --help
1103 else
1104 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1105 fi
1106 cd $ac_popdir
1107 done
1108fi
1109
1110test -n "$ac_init_help" && exit 0
1111if $ac_init_version; then
1112 cat <<\_ACEOF
jjakob62c3dd2004-05-27 18:51:55 +00001113openggsn configure 0.82
jjako08d331d2003-10-13 20:33:30 +00001114generated by GNU Autoconf 2.57
jjako286bc982003-01-28 23:17:50 +00001115
1116Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1117Free Software Foundation, Inc.
1118This configure script is free software; the Free Software Foundation
1119gives unlimited permission to copy, distribute and modify it.
1120_ACEOF
1121 exit 0
1122fi
1123exec 5>config.log
1124cat >&5 <<_ACEOF
1125This file contains any messages produced by compilers while
1126running configure, to aid debugging if configure makes a mistake.
1127
jjakob62c3dd2004-05-27 18:51:55 +00001128It was created by openggsn $as_me 0.82, which was
jjako08d331d2003-10-13 20:33:30 +00001129generated by GNU Autoconf 2.57. Invocation command line was
jjako286bc982003-01-28 23:17:50 +00001130
1131 $ $0 $@
1132
1133_ACEOF
1134{
1135cat <<_ASUNAME
1136## --------- ##
1137## Platform. ##
1138## --------- ##
1139
1140hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1141uname -m = `(uname -m) 2>/dev/null || echo unknown`
1142uname -r = `(uname -r) 2>/dev/null || echo unknown`
1143uname -s = `(uname -s) 2>/dev/null || echo unknown`
1144uname -v = `(uname -v) 2>/dev/null || echo unknown`
1145
1146/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1147/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1148
1149/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1150/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1151/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1152hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1153/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1154/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1155/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1156
1157_ASUNAME
1158
1159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1160for as_dir in $PATH
1161do
1162 IFS=$as_save_IFS
1163 test -z "$as_dir" && as_dir=.
1164 echo "PATH: $as_dir"
1165done
1166
1167} >&5
1168
1169cat >&5 <<_ACEOF
1170
1171
1172## ----------- ##
1173## Core tests. ##
1174## ----------- ##
1175
1176_ACEOF
1177
1178
1179# Keep a trace of the command line.
1180# Strip out --no-create and --no-recursion so they do not pile up.
jjako08d331d2003-10-13 20:33:30 +00001181# Strip out --silent because we don't want to record it for future runs.
jjako286bc982003-01-28 23:17:50 +00001182# Also quote any args containing shell meta-characters.
jjako08d331d2003-10-13 20:33:30 +00001183# Make two passes to allow for proper duplicate-argument suppression.
jjako286bc982003-01-28 23:17:50 +00001184ac_configure_args=
jjako08d331d2003-10-13 20:33:30 +00001185ac_configure_args0=
1186ac_configure_args1=
jjako286bc982003-01-28 23:17:50 +00001187ac_sep=
jjako08d331d2003-10-13 20:33:30 +00001188ac_must_keep_next=false
1189for ac_pass in 1 2
jjako286bc982003-01-28 23:17:50 +00001190do
jjako08d331d2003-10-13 20:33:30 +00001191 for ac_arg
1192 do
1193 case $ac_arg in
1194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 continue ;;
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 esac
1201 case $ac_pass in
1202 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1203 2)
1204 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1205 if test $ac_must_keep_next = true; then
1206 ac_must_keep_next=false # Got value, back to normal.
1207 else
1208 case $ac_arg in
1209 *=* | --config-cache | -C | -disable-* | --disable-* \
1210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1212 | -with-* | --with-* | -without-* | --without-* | --x)
1213 case "$ac_configure_args0 " in
1214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1215 esac
1216 ;;
1217 -* ) ac_must_keep_next=true ;;
1218 esac
1219 fi
1220 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1221 # Get rid of the leading space.
1222 ac_sep=" "
1223 ;;
1224 esac
1225 done
jjako286bc982003-01-28 23:17:50 +00001226done
jjako08d331d2003-10-13 20:33:30 +00001227$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1228$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
jjako286bc982003-01-28 23:17:50 +00001229
1230# When interrupted or exit'd, cleanup temporary files, and complete
1231# config.log. We remove comments because anyway the quotes in there
1232# would cause problems or look ugly.
1233# WARNING: Be sure not to use single quotes in there, as some shells,
1234# such as our DU 5.0 friend, will then `close' the trap.
1235trap 'exit_status=$?
1236 # Save into config.log some information that might help in debugging.
1237 {
1238 echo
jjako08d331d2003-10-13 20:33:30 +00001239
jjako286bc982003-01-28 23:17:50 +00001240 cat <<\_ASBOX
1241## ---------------- ##
1242## Cache variables. ##
1243## ---------------- ##
1244_ASBOX
1245 echo
1246 # The following way of writing the cache mishandles newlines in values,
1247{
1248 (set) 2>&1 |
1249 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1250 *ac_space=\ *)
1251 sed -n \
1252 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1254 ;;
1255 *)
1256 sed -n \
1257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1258 ;;
1259 esac;
1260}
1261 echo
jjako08d331d2003-10-13 20:33:30 +00001262
1263 cat <<\_ASBOX
1264## ----------------- ##
1265## Output variables. ##
1266## ----------------- ##
1267_ASBOX
1268 echo
1269 for ac_var in $ac_subst_vars
1270 do
1271 eval ac_val=$`echo $ac_var`
1272 echo "$ac_var='"'"'$ac_val'"'"'"
1273 done | sort
1274 echo
1275
1276 if test -n "$ac_subst_files"; then
1277 cat <<\_ASBOX
1278## ------------- ##
1279## Output files. ##
1280## ------------- ##
1281_ASBOX
1282 echo
1283 for ac_var in $ac_subst_files
1284 do
1285 eval ac_val=$`echo $ac_var`
1286 echo "$ac_var='"'"'$ac_val'"'"'"
1287 done | sort
1288 echo
1289 fi
1290
jjako286bc982003-01-28 23:17:50 +00001291 if test -s confdefs.h; then
1292 cat <<\_ASBOX
1293## ----------- ##
1294## confdefs.h. ##
1295## ----------- ##
1296_ASBOX
1297 echo
jjako08d331d2003-10-13 20:33:30 +00001298 sed "/^$/d" confdefs.h | sort
jjako286bc982003-01-28 23:17:50 +00001299 echo
1300 fi
1301 test "$ac_signal" != 0 &&
1302 echo "$as_me: caught signal $ac_signal"
1303 echo "$as_me: exit $exit_status"
1304 } >&5
1305 rm -f core core.* *.core &&
1306 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1307 exit $exit_status
1308 ' 0
1309for ac_signal in 1 2 13 15; do
1310 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1311done
1312ac_signal=0
1313
1314# confdefs.h avoids OS command line length limits that DEFS can exceed.
1315rm -rf conftest* confdefs.h
1316# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1317echo >confdefs.h
1318
1319# Predefined preprocessor variables.
1320
1321cat >>confdefs.h <<_ACEOF
1322#define PACKAGE_NAME "$PACKAGE_NAME"
1323_ACEOF
1324
1325
1326cat >>confdefs.h <<_ACEOF
1327#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1328_ACEOF
1329
1330
1331cat >>confdefs.h <<_ACEOF
1332#define PACKAGE_VERSION "$PACKAGE_VERSION"
1333_ACEOF
1334
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_STRING "$PACKAGE_STRING"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1343_ACEOF
1344
1345
1346# Let the site file select an alternate cache file if it wants to.
jjako52c24142002-12-16 13:33:51 +00001347# Prefer explicitly selected file to automatically selected ones.
1348if test -z "$CONFIG_SITE"; then
1349 if test "x$prefix" != xNONE; then
1350 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1351 else
1352 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1353 fi
1354fi
1355for ac_site_file in $CONFIG_SITE; do
1356 if test -r "$ac_site_file"; then
jjako286bc982003-01-28 23:17:50 +00001357 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1358echo "$as_me: loading site script $ac_site_file" >&6;}
1359 sed 's/^/| /' "$ac_site_file" >&5
jjako52c24142002-12-16 13:33:51 +00001360 . "$ac_site_file"
1361 fi
1362done
1363
1364if test -r "$cache_file"; then
jjako286bc982003-01-28 23:17:50 +00001365 # Some versions of bash will fail to source /dev/null (special
1366 # files actually), so we avoid doing that.
1367 if test -f "$cache_file"; then
1368 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1369echo "$as_me: loading cache $cache_file" >&6;}
1370 case $cache_file in
1371 [\\/]* | ?:[\\/]* ) . $cache_file;;
1372 *) . ./$cache_file;;
1373 esac
1374 fi
jjako52c24142002-12-16 13:33:51 +00001375else
jjako286bc982003-01-28 23:17:50 +00001376 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1377echo "$as_me: creating cache $cache_file" >&6;}
1378 >$cache_file
1379fi
1380
1381# Check that the precious variables saved in the cache have kept the same
1382# value.
1383ac_cache_corrupted=false
1384for ac_var in `(set) 2>&1 |
1385 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1387 eval ac_new_set=\$ac_env_${ac_var}_set
1388 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1389 eval ac_new_val="\$ac_env_${ac_var}_value"
1390 case $ac_old_set,$ac_new_set in
1391 set,)
1392 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1393echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1394 ac_cache_corrupted=: ;;
1395 ,set)
1396 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1397echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1398 ac_cache_corrupted=: ;;
1399 ,);;
1400 *)
1401 if test "x$ac_old_val" != "x$ac_new_val"; then
1402 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1403echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1404 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1405echo "$as_me: former value: $ac_old_val" >&2;}
1406 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1407echo "$as_me: current value: $ac_new_val" >&2;}
1408 ac_cache_corrupted=:
1409 fi;;
1410 esac
1411 # Pass precious variables to config.status.
1412 if test "$ac_new_set" = set; then
1413 case $ac_new_val in
1414 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1415 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1416 *) ac_arg=$ac_var=$ac_new_val ;;
1417 esac
1418 case " $ac_configure_args " in
1419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1420 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1421 esac
1422 fi
1423done
1424if $ac_cache_corrupted; then
1425 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1426echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1427 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1428echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1429 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00001430fi
1431
1432ac_ext=c
jjako52c24142002-12-16 13:33:51 +00001433ac_cpp='$CPP $CPPFLAGS'
jjako286bc982003-01-28 23:17:50 +00001434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00001437
1438
1439
jjako52c24142002-12-16 13:33:51 +00001440
jjako52c24142002-12-16 13:33:51 +00001441
jjako286bc982003-01-28 23:17:50 +00001442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
jjako08d331d2003-10-13 20:33:30 +00001464
jjako286bc982003-01-28 23:17:50 +00001465# Add the stamp file to the list of files AC keeps track of,
1466# along with our hook.
jjako08d331d2003-10-13 20:33:30 +00001467 ac_config_headers="$ac_config_headers config.h"
jjako286bc982003-01-28 23:17:50 +00001468
1469
1470
1471#AC_CONFIG_HEADER([config.h])
1472
1473# Checks for programs.
1474ac_ext=c
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1481set dummy ${ac_tool_prefix}gcc; ac_word=$2
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001486else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489else
jjako286bc982003-01-28 23:17:50 +00001490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501done
1502done
1503
jjako52c24142002-12-16 13:33:51 +00001504fi
1505fi
jjako286bc982003-01-28 23:17:50 +00001506CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001507if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001508 echo "$as_me:$LINENO: result: $CC" >&5
1509echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001510else
jjako286bc982003-01-28 23:17:50 +00001511 echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
1513fi
1514
1515fi
1516if test -z "$ac_cv_prog_CC"; then
1517 ac_ct_CC=$CC
1518 # Extract the first word of "gcc", so it can be a program name with args.
1519set dummy gcc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="gcc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
1540done
1541
1542fi
1543fi
1544ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547echo "${ECHO_T}$ac_ct_CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553 CC=$ac_ct_CC
1554else
1555 CC="$ac_cv_prog_CC"
jjako52c24142002-12-16 13:33:51 +00001556fi
1557
1558if test -z "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001559 if test -n "$ac_tool_prefix"; then
1560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1561set dummy ${ac_tool_prefix}cc; ac_word=$2
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001566else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569else
jjako286bc982003-01-28 23:17:50 +00001570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571for as_dir in $PATH
1572do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_CC="${ac_tool_prefix}cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581done
1582done
1583
1584fi
1585fi
1586CC=$ac_cv_prog_CC
1587if test -n "$CC"; then
1588 echo "$as_me:$LINENO: result: $CC" >&5
1589echo "${ECHO_T}$CC" >&6
1590else
1591 echo "$as_me:$LINENO: result: no" >&5
1592echo "${ECHO_T}no" >&6
1593fi
1594
1595fi
1596if test -z "$ac_cv_prog_CC"; then
1597 ac_ct_CC=$CC
1598 # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 if test -n "$ac_ct_CC"; then
1606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1607else
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_ac_ct_CC="cc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 break 2
1618 fi
1619done
1620done
1621
1622fi
1623fi
1624ac_ct_CC=$ac_cv_prog_ac_ct_CC
1625if test -n "$ac_ct_CC"; then
1626 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1627echo "${ECHO_T}$ac_ct_CC" >&6
1628else
1629 echo "$as_me:$LINENO: result: no" >&5
1630echo "${ECHO_T}no" >&6
1631fi
1632
1633 CC=$ac_ct_CC
1634else
1635 CC="$ac_cv_prog_CC"
1636fi
1637
1638fi
1639if test -z "$CC"; then
1640 # Extract the first word of "cc", so it can be a program name with args.
1641set dummy cc; ac_word=$2
1642echo "$as_me:$LINENO: checking for $ac_word" >&5
1643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646else
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1649else
jjako52c24142002-12-16 13:33:51 +00001650 ac_prog_rejected=no
jjako286bc982003-01-28 23:17:50 +00001651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1659 ac_prog_rejected=yes
1660 continue
1661 fi
1662 ac_cv_prog_CC="cc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
1667done
1668
jjako52c24142002-12-16 13:33:51 +00001669if test $ac_prog_rejected = yes; then
1670 # We found a bogon in the path, so make sure we never use it.
1671 set dummy $ac_cv_prog_CC
1672 shift
jjako286bc982003-01-28 23:17:50 +00001673 if test $# != 0; then
jjako52c24142002-12-16 13:33:51 +00001674 # We chose a different compiler from the bogus one.
1675 # However, it has the same basename, so the bogon will be chosen
1676 # first if we set CC to just the basename; use the full file name.
1677 shift
jjako08d331d2003-10-13 20:33:30 +00001678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
jjako52c24142002-12-16 13:33:51 +00001679 fi
1680fi
1681fi
1682fi
jjako286bc982003-01-28 23:17:50 +00001683CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001684if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001685 echo "$as_me:$LINENO: result: $CC" >&5
1686echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001687else
jjako286bc982003-01-28 23:17:50 +00001688 echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001690fi
1691
jjako286bc982003-01-28 23:17:50 +00001692fi
1693if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 for ac_prog in cl
1696 do
1697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1699echo "$as_me:$LINENO: checking for $ac_word" >&5
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001703else
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC="$CC" # Let the user override the test.
1706else
jjako286bc982003-01-28 23:17:50 +00001707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
jjako52c24142002-12-16 13:33:51 +00001717 fi
jjako286bc982003-01-28 23:17:50 +00001718done
1719done
1720
1721fi
1722fi
1723CC=$ac_cv_prog_CC
1724if test -n "$CC"; then
1725 echo "$as_me:$LINENO: result: $CC" >&5
1726echo "${ECHO_T}$CC" >&6
1727else
1728 echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001730fi
1731
jjako286bc982003-01-28 23:17:50 +00001732 test -n "$CC" && break
1733 done
1734fi
1735if test -z "$CC"; then
1736 ac_ct_CC=$CC
1737 for ac_prog in cl
1738do
1739 # Extract the first word of "$ac_prog", so it can be a program name with args.
1740set dummy $ac_prog; ac_word=$2
1741echo "$as_me:$LINENO: checking for $ac_word" >&5
1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745else
1746 if test -n "$ac_ct_CC"; then
1747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1748else
1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_ac_ct_CC="$ac_prog"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 break 2
1759 fi
1760done
1761done
jjako52c24142002-12-16 13:33:51 +00001762
jjako286bc982003-01-28 23:17:50 +00001763fi
1764fi
1765ac_ct_CC=$ac_cv_prog_ac_ct_CC
1766if test -n "$ac_ct_CC"; then
1767 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1768echo "${ECHO_T}$ac_ct_CC" >&6
1769else
1770 echo "$as_me:$LINENO: result: no" >&5
1771echo "${ECHO_T}no" >&6
1772fi
jjako52c24142002-12-16 13:33:51 +00001773
jjako286bc982003-01-28 23:17:50 +00001774 test -n "$ac_ct_CC" && break
1775done
jjako52c24142002-12-16 13:33:51 +00001776
jjako286bc982003-01-28 23:17:50 +00001777 CC=$ac_ct_CC
1778fi
1779
1780fi
1781
1782
jjako08d331d2003-10-13 20:33:30 +00001783test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1784See \`config.log' for more details." >&5
1785echo "$as_me: error: no acceptable C compiler found in \$PATH
1786See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00001787 { (exit 1); exit 1; }; }
1788
1789# Provide some information about the compiler.
1790echo "$as_me:$LINENO:" \
1791 "checking for C compiler version" >&5
1792ac_compiler=`set X $ac_compile; echo $2`
1793{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1794 (eval $ac_compiler --version </dev/null >&5) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1799 (eval $ac_compiler -v </dev/null >&5) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }
1803{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1804 (eval $ac_compiler -V </dev/null >&5) 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }
1808
1809cat >conftest.$ac_ext <<_ACEOF
1810#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00001811/* confdefs.h. */
1812_ACEOF
1813cat confdefs.h >>conftest.$ac_ext
1814cat >>conftest.$ac_ext <<_ACEOF
1815/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00001816
jjako286bc982003-01-28 23:17:50 +00001817int
1818main ()
1819{
1820
1821 ;
1822 return 0;
1823}
1824_ACEOF
1825ac_clean_files_save=$ac_clean_files
jjako08d331d2003-10-13 20:33:30 +00001826ac_clean_files="$ac_clean_files a.out a.exe b.out"
jjako286bc982003-01-28 23:17:50 +00001827# Try to create an executable without -o first, disregard a.out.
1828# It will help us diagnose broken compilers, and finding out an intuition
1829# of exeext.
1830echo "$as_me:$LINENO: checking for C compiler default output" >&5
1831echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1832ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1833if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1834 (eval $ac_link_default) 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; then
1838 # Find the output, starting from the most likely. This scheme is
1839# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840# resort.
1841
1842# Be careful to initialize this variable, since it used to be cached.
1843# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1844ac_cv_exeext=
jjako08d331d2003-10-13 20:33:30 +00001845# b.out is created by i960 compilers.
1846for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1847do
1848 test -f "$ac_file" || continue
jjako286bc982003-01-28 23:17:50 +00001849 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00001850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851 ;;
1852 conftest.$ac_ext )
1853 # This is the source file.
1854 ;;
1855 [ab].out )
1856 # We found the default executable, but exeext='' is most
1857 # certainly right.
1858 break;;
1859 *.* )
1860 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1861 # FIXME: I believe we export ac_cv_exeext for Libtool,
1862 # but it would be cool to find out if it's true. Does anybody
1863 # maintain Libtool? --akim.
1864 export ac_cv_exeext
1865 break;;
1866 * )
1867 break;;
jjako286bc982003-01-28 23:17:50 +00001868 esac
1869done
jjako52c24142002-12-16 13:33:51 +00001870else
jjako286bc982003-01-28 23:17:50 +00001871 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00001872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: C compiler cannot create executables
1877See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00001878 { (exit 77); exit 77; }; }
jjako52c24142002-12-16 13:33:51 +00001879fi
1880
jjako286bc982003-01-28 23:17:50 +00001881ac_exeext=$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_file" >&5
1883echo "${ECHO_T}$ac_file" >&6
jjako52c24142002-12-16 13:33:51 +00001884
jjako286bc982003-01-28 23:17:50 +00001885# Check the compiler produces executables we can run. If not, either
1886# the compiler is broken, or we cross compile.
1887echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1888echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1889# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1890# If not cross compiling, check that we can run a simple program.
1891if test "$cross_compiling" != yes; then
1892 if { ac_try='./$ac_file'
1893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 (eval $ac_try) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; }; then
1898 cross_compiling=no
1899 else
1900 if test "$cross_compiling" = maybe; then
1901 cross_compiling=yes
1902 else
1903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
jjako08d331d2003-10-13 20:33:30 +00001904If you meant to cross compile, use \`--host'.
1905See \`config.log' for more details." >&5
jjako286bc982003-01-28 23:17:50 +00001906echo "$as_me: error: cannot run C compiled programs.
jjako08d331d2003-10-13 20:33:30 +00001907If you meant to cross compile, use \`--host'.
1908See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00001909 { (exit 1); exit 1; }; }
1910 fi
1911 fi
1912fi
1913echo "$as_me:$LINENO: result: yes" >&5
1914echo "${ECHO_T}yes" >&6
1915
jjako08d331d2003-10-13 20:33:30 +00001916rm -f a.out a.exe conftest$ac_cv_exeext b.out
jjako286bc982003-01-28 23:17:50 +00001917ac_clean_files=$ac_clean_files_save
1918# Check the compiler produces executables we can run. If not, either
1919# the compiler is broken, or we cross compile.
1920echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1921echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1922echo "$as_me:$LINENO: result: $cross_compiling" >&5
1923echo "${ECHO_T}$cross_compiling" >&6
1924
1925echo "$as_me:$LINENO: checking for suffix of executables" >&5
1926echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1928 (eval $ac_link) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; then
1932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1933# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1934# work properly (i.e., refer to `conftest.exe'), while it won't with
1935# `rm'.
jjako08d331d2003-10-13 20:33:30 +00001936for ac_file in conftest.exe conftest conftest.*; do
1937 test -f "$ac_file" || continue
jjako286bc982003-01-28 23:17:50 +00001938 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00001939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
jjako286bc982003-01-28 23:17:50 +00001940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941 export ac_cv_exeext
1942 break;;
1943 * ) break;;
1944 esac
1945done
jjako52c24142002-12-16 13:33:51 +00001946else
jjako08d331d2003-10-13 20:33:30 +00001947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1948See \`config.log' for more details." >&5
1949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1950See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00001951 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00001952fi
1953
jjako286bc982003-01-28 23:17:50 +00001954rm -f conftest$ac_cv_exeext
1955echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1956echo "${ECHO_T}$ac_cv_exeext" >&6
1957
1958rm -f conftest.$ac_ext
1959EXEEXT=$ac_cv_exeext
1960ac_exeext=$EXEEXT
1961echo "$as_me:$LINENO: checking for suffix of object files" >&5
1962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1963if test "${ac_cv_objext+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001965else
jjako286bc982003-01-28 23:17:50 +00001966 cat >conftest.$ac_ext <<_ACEOF
1967#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00001968/* confdefs.h. */
1969_ACEOF
1970cat confdefs.h >>conftest.$ac_ext
1971cat >>conftest.$ac_ext <<_ACEOF
1972/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00001973
jjako286bc982003-01-28 23:17:50 +00001974int
1975main ()
1976{
1977
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982rm -f conftest.o conftest.obj
1983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; then
1988 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1989 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00001990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
jjako286bc982003-01-28 23:17:50 +00001991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1992 break;;
1993 esac
1994done
1995else
1996 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00001997sed 's/^/| /' conftest.$ac_ext >&5
1998
1999{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2000See \`config.log' for more details." >&5
2001echo "$as_me: error: cannot compute suffix of object files: cannot compile
2002See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002003 { (exit 1); exit 1; }; }
2004fi
2005
2006rm -f conftest.$ac_cv_objext conftest.$ac_ext
2007fi
2008echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2009echo "${ECHO_T}$ac_cv_objext" >&6
2010OBJEXT=$ac_cv_objext
2011ac_objext=$OBJEXT
2012echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2013echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2014if test "${ac_cv_c_compiler_gnu+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016else
2017 cat >conftest.$ac_ext <<_ACEOF
2018#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002019/* confdefs.h. */
2020_ACEOF
2021cat confdefs.h >>conftest.$ac_ext
2022cat >>conftest.$ac_ext <<_ACEOF
2023/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002024
jjako286bc982003-01-28 23:17:50 +00002025int
2026main ()
2027{
2028#ifndef __GNUC__
2029 choke me
2030#endif
2031
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036rm -f conftest.$ac_objext
2037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 (eval $ac_try) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2048 ac_compiler_gnu=yes
2049else
2050 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002051sed 's/^/| /' conftest.$ac_ext >&5
2052
jjako286bc982003-01-28 23:17:50 +00002053ac_compiler_gnu=no
2054fi
2055rm -f conftest.$ac_objext conftest.$ac_ext
2056ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057
2058fi
2059echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2061GCC=`test $ac_compiler_gnu = yes && echo yes`
2062ac_test_CFLAGS=${CFLAGS+set}
2063ac_save_CFLAGS=$CFLAGS
2064CFLAGS="-g"
2065echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2067if test "${ac_cv_prog_cc_g+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070 cat >conftest.$ac_ext <<_ACEOF
2071#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002072/* confdefs.h. */
2073_ACEOF
2074cat confdefs.h >>conftest.$ac_ext
2075cat >>conftest.$ac_ext <<_ACEOF
2076/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002077
jjako286bc982003-01-28 23:17:50 +00002078int
2079main ()
2080{
2081
2082 ;
2083 return 0;
2084}
2085_ACEOF
2086rm -f conftest.$ac_objext
2087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00002098 ac_cv_prog_cc_g=yes
2099else
jjako286bc982003-01-28 23:17:50 +00002100 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002101sed 's/^/| /' conftest.$ac_ext >&5
2102
jjako286bc982003-01-28 23:17:50 +00002103ac_cv_prog_cc_g=no
jjako52c24142002-12-16 13:33:51 +00002104fi
jjako286bc982003-01-28 23:17:50 +00002105rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00002106fi
jjako286bc982003-01-28 23:17:50 +00002107echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
jjako52c24142002-12-16 13:33:51 +00002109if test "$ac_test_CFLAGS" = set; then
jjako286bc982003-01-28 23:17:50 +00002110 CFLAGS=$ac_save_CFLAGS
jjako52c24142002-12-16 13:33:51 +00002111elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2113 CFLAGS="-g -O2"
2114 else
2115 CFLAGS="-g"
2116 fi
2117else
2118 if test "$GCC" = yes; then
2119 CFLAGS="-O2"
2120 else
2121 CFLAGS=
2122 fi
2123fi
jjako08d331d2003-10-13 20:33:30 +00002124echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 ac_cv_prog_cc_stdc=no
2130ac_save_CC=$CC
2131cat >conftest.$ac_ext <<_ACEOF
2132#line $LINENO "configure"
2133/* confdefs.h. */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h. */
2138#include <stdarg.h>
2139#include <stdio.h>
2140#include <sys/types.h>
2141#include <sys/stat.h>
2142/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2143struct buf { int x; };
2144FILE * (*rcsopen) (struct buf *, struct stat *, int);
2145static char *e (p, i)
2146 char **p;
2147 int i;
2148{
2149 return p[i];
2150}
2151static char *f (char * (*g) (char **, int), char **p, ...)
2152{
2153 char *s;
2154 va_list v;
2155 va_start (v,p);
2156 s = g (p, va_arg (v,int));
2157 va_end (v);
2158 return s;
2159}
2160int test (int i, double x);
2161struct s1 {int (*f) (int a);};
2162struct s2 {int (*f) (double a);};
2163int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2164int argc;
2165char **argv;
2166int
2167main ()
2168{
2169return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174# Don't try gcc -ansi; that turns off useful extensions and
2175# breaks some systems' header files.
2176# AIX -qlanglvl=ansi
2177# Ultrix and OSF/1 -std1
2178# HP-UX 10.20 and later -Ae
2179# HP-UX older versions -Aa -D_HPUX_SOURCE
2180# SVR4 -Xc -D__EXTENSIONS__
2181for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2182do
2183 CC="$ac_save_CC $ac_arg"
2184 rm -f conftest.$ac_objext
2185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 ac_cv_prog_cc_stdc=$ac_arg
2197break
2198else
2199 echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202fi
2203rm -f conftest.$ac_objext
2204done
2205rm -f conftest.$ac_ext conftest.$ac_objext
2206CC=$ac_save_CC
2207
2208fi
2209
2210case "x$ac_cv_prog_cc_stdc" in
2211 x|xno)
2212 echo "$as_me:$LINENO: result: none needed" >&5
2213echo "${ECHO_T}none needed" >&6 ;;
2214 *)
2215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2216echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2217 CC="$CC $ac_cv_prog_cc_stdc" ;;
2218esac
2219
jjako286bc982003-01-28 23:17:50 +00002220# Some people use a C++ compiler to compile C. Since we use `exit',
2221# in C++ we need to declare it. In case someone uses the same compiler
2222# for both compiling C and C++ we need to have the C++ compiler decide
2223# the declaration of exit, since it's the most demanding environment.
2224cat >conftest.$ac_ext <<_ACEOF
2225#ifndef __cplusplus
2226 choke me
2227#endif
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2242 ''\
2243 '#include <stdlib.h>' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249do
2250 cat >conftest.$ac_ext <<_ACEOF
2251#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002252/* confdefs.h. */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002257#include <stdlib.h>
2258$ac_declaration
jjako286bc982003-01-28 23:17:50 +00002259int
2260main ()
2261{
2262exit (42);
2263 ;
2264 return 0;
2265}
2266_ACEOF
2267rm -f conftest.$ac_objext
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 :
2280else
2281 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002282sed 's/^/| /' conftest.$ac_ext >&5
2283
jjako286bc982003-01-28 23:17:50 +00002284continue
2285fi
2286rm -f conftest.$ac_objext conftest.$ac_ext
2287 cat >conftest.$ac_ext <<_ACEOF
2288#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002289/* confdefs.h. */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
2293/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002294$ac_declaration
jjako286bc982003-01-28 23:17:50 +00002295int
2296main ()
2297{
2298exit (42);
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303rm -f conftest.$ac_objext
2304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); } &&
2309 { ac_try='test -s conftest.$ac_objext'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 (eval $ac_try) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; }; then
2315 break
2316else
2317 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002318sed 's/^/| /' conftest.$ac_ext >&5
2319
jjako286bc982003-01-28 23:17:50 +00002320fi
2321rm -f conftest.$ac_objext conftest.$ac_ext
2322done
2323rm -f conftest*
2324if test -n "$ac_declaration"; then
2325 echo '#ifdef __cplusplus' >>confdefs.h
2326 echo $ac_declaration >>confdefs.h
2327 echo '#endif' >>confdefs.h
2328fi
2329
2330else
2331 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002332sed 's/^/| /' conftest.$ac_ext >&5
2333
jjako286bc982003-01-28 23:17:50 +00002334fi
2335rm -f conftest.$ac_objext conftest.$ac_ext
2336ac_ext=c
2337ac_cpp='$CPP $CPPFLAGS'
2338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00002341
2342ac_aux_dir=
2343for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2344 if test -f $ac_dir/install-sh; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install-sh -c"
2347 break
2348 elif test -f $ac_dir/install.sh; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install.sh -c"
2351 break
jjako286bc982003-01-28 23:17:50 +00002352 elif test -f $ac_dir/shtool; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/shtool install -c"
2355 break
jjako52c24142002-12-16 13:33:51 +00002356 fi
2357done
2358if test -z "$ac_aux_dir"; then
jjako286bc982003-01-28 23:17:50 +00002359 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2360echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2361 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00002362fi
jjako286bc982003-01-28 23:17:50 +00002363ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2364ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2365ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
jjako52c24142002-12-16 13:33:51 +00002366
2367# Find a good install program. We prefer a C program (faster),
2368# so one script is as good as another. But avoid the broken or
2369# incompatible versions:
2370# SysV /etc/install, /usr/sbin/install
2371# SunOS /usr/etc/install
2372# IRIX /sbin/install
2373# AIX /bin/install
jjako286bc982003-01-28 23:17:50 +00002374# AmigaOS /C/install, which installs bootblocks on floppy discs
jjako52c24142002-12-16 13:33:51 +00002375# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2376# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378# ./install, which can be erroneously created by make from ./install.sh.
jjako286bc982003-01-28 23:17:50 +00002379echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2380echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002381if test -z "$INSTALL"; then
jjako286bc982003-01-28 23:17:50 +00002382if test "${ac_cv_path_install+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002384else
jjako286bc982003-01-28 23:17:50 +00002385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 # Account for people who put trailing slashes in PATH elements.
2391case $as_dir/ in
2392 ./ | .// | /cC/* | \
2393 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2394 /usr/ucb/* ) ;;
2395 *)
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2398 # by default.
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2405 :
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2409 :
2410 else
2411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412 break 3
2413 fi
2414 fi
jjako52c24142002-12-16 13:33:51 +00002415 done
jjako286bc982003-01-28 23:17:50 +00002416 done
2417 ;;
2418esac
2419done
2420
jjako52c24142002-12-16 13:33:51 +00002421
2422fi
2423 if test "${ac_cv_path_install+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00002424 INSTALL=$ac_cv_path_install
jjako52c24142002-12-16 13:33:51 +00002425 else
2426 # As a last resort, use the slow shell script. We don't cache a
2427 # path for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the path is relative.
jjako286bc982003-01-28 23:17:50 +00002430 INSTALL=$ac_install_sh
jjako52c24142002-12-16 13:33:51 +00002431 fi
2432fi
jjako286bc982003-01-28 23:17:50 +00002433echo "$as_me:$LINENO: result: $INSTALL" >&5
2434echo "${ECHO_T}$INSTALL" >&6
jjako52c24142002-12-16 13:33:51 +00002435
2436# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437# It thinks the first close brace ends the variable substitution.
2438test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2439
jjako286bc982003-01-28 23:17:50 +00002440test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
jjako52c24142002-12-16 13:33:51 +00002441
2442test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2443
jjako286bc982003-01-28 23:17:50 +00002444for ac_prog in gawk mawk nawk awk
2445do
2446 # Extract the first word of "$ac_prog", so it can be a program name with args.
2447set dummy $ac_prog; ac_word=$2
2448echo "$as_me:$LINENO: checking for $ac_word" >&5
2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450if test "${ac_cv_prog_AWK+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002452else
jjako286bc982003-01-28 23:17:50 +00002453 if test -n "$AWK"; then
2454 ac_cv_prog_AWK="$AWK" # Let the user override the test.
jjako52c24142002-12-16 13:33:51 +00002455else
jjako286bc982003-01-28 23:17:50 +00002456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_AWK="$ac_prog"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467done
2468done
2469
jjako52c24142002-12-16 13:33:51 +00002470fi
2471fi
jjako286bc982003-01-28 23:17:50 +00002472AWK=$ac_cv_prog_AWK
2473if test -n "$AWK"; then
2474 echo "$as_me:$LINENO: result: $AWK" >&5
2475echo "${ECHO_T}$AWK" >&6
jjako52c24142002-12-16 13:33:51 +00002476else
jjako286bc982003-01-28 23:17:50 +00002477 echo "$as_me:$LINENO: result: no" >&5
2478echo "${ECHO_T}no" >&6
2479fi
2480
2481 test -n "$AWK" && break
2482done
2483
2484ac_ext=c
2485ac_cpp='$CPP $CPPFLAGS'
2486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2490echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2491# On Suns, sometimes $CPP names a directory.
2492if test -n "$CPP" && test -d "$CPP"; then
2493 CPP=
2494fi
2495if test -z "$CPP"; then
2496 if test "${ac_cv_prog_CPP+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498else
2499 # Double quotes because CPP needs to be expanded
2500 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2501 do
2502 ac_preproc_ok=false
2503for ac_c_preproc_warn_flag in '' yes
2504do
2505 # Use a header file that comes with gcc, so configuring glibc
2506 # with a fresh cross-compiler works.
jjako08d331d2003-10-13 20:33:30 +00002507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2508 # <limits.h> exists even on freestanding compilers.
jjako286bc982003-01-28 23:17:50 +00002509 # On the NeXT, cc -E runs the code through the compiler's parser,
2510 # not just through cpp. "Syntax error" is here to catch this case.
2511 cat >conftest.$ac_ext <<_ACEOF
2512#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002513/* confdefs.h. */
2514_ACEOF
2515cat confdefs.h >>conftest.$ac_ext
2516cat >>conftest.$ac_ext <<_ACEOF
2517/* end confdefs.h. */
2518#ifdef __STDC__
2519# include <limits.h>
2520#else
2521# include <assert.h>
2522#endif
jjako286bc982003-01-28 23:17:50 +00002523 Syntax error
2524_ACEOF
2525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002528 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2535 else
2536 ac_cpp_err=
2537 fi
2538else
2539 ac_cpp_err=yes
2540fi
2541if test -z "$ac_cpp_err"; then
2542 :
2543else
2544 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002545sed 's/^/| /' conftest.$ac_ext >&5
2546
jjako286bc982003-01-28 23:17:50 +00002547 # Broken: fails on valid input.
2548continue
2549fi
2550rm -f conftest.err conftest.$ac_ext
2551
2552 # OK, works on sane cases. Now check whether non-existent headers
2553 # can be detected and how.
2554 cat >conftest.$ac_ext <<_ACEOF
2555#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002556/* confdefs.h. */
2557_ACEOF
2558cat confdefs.h >>conftest.$ac_ext
2559cat >>conftest.$ac_ext <<_ACEOF
2560/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002561#include <ac_nonexistent.h>
2562_ACEOF
2563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002566 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev/null; then
2571 if test -s conftest.err; then
2572 ac_cpp_err=$ac_c_preproc_warn_flag
2573 else
2574 ac_cpp_err=
2575 fi
2576else
2577 ac_cpp_err=yes
2578fi
2579if test -z "$ac_cpp_err"; then
2580 # Broken: success on invalid input.
2581continue
2582else
2583 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002584sed 's/^/| /' conftest.$ac_ext >&5
2585
jjako286bc982003-01-28 23:17:50 +00002586 # Passes both tests.
2587ac_preproc_ok=:
2588break
2589fi
2590rm -f conftest.err conftest.$ac_ext
2591
2592done
2593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2594rm -f conftest.err conftest.$ac_ext
2595if $ac_preproc_ok; then
2596 break
2597fi
2598
2599 done
2600 ac_cv_prog_CPP=$CPP
2601
2602fi
2603 CPP=$ac_cv_prog_CPP
2604else
2605 ac_cv_prog_CPP=$CPP
2606fi
2607echo "$as_me:$LINENO: result: $CPP" >&5
2608echo "${ECHO_T}$CPP" >&6
2609ac_preproc_ok=false
2610for ac_c_preproc_warn_flag in '' yes
2611do
2612 # Use a header file that comes with gcc, so configuring glibc
2613 # with a fresh cross-compiler works.
jjako08d331d2003-10-13 20:33:30 +00002614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2615 # <limits.h> exists even on freestanding compilers.
jjako286bc982003-01-28 23:17:50 +00002616 # On the NeXT, cc -E runs the code through the compiler's parser,
2617 # not just through cpp. "Syntax error" is here to catch this case.
2618 cat >conftest.$ac_ext <<_ACEOF
2619#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h. */
2625#ifdef __STDC__
2626# include <limits.h>
2627#else
2628# include <assert.h>
2629#endif
jjako286bc982003-01-28 23:17:50 +00002630 Syntax error
2631_ACEOF
2632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002635 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002636 rm -f conftest.er1
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2642 else
2643 ac_cpp_err=
2644 fi
2645else
2646 ac_cpp_err=yes
2647fi
2648if test -z "$ac_cpp_err"; then
2649 :
2650else
2651 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002652sed 's/^/| /' conftest.$ac_ext >&5
2653
jjako286bc982003-01-28 23:17:50 +00002654 # Broken: fails on valid input.
2655continue
2656fi
2657rm -f conftest.err conftest.$ac_ext
2658
2659 # OK, works on sane cases. Now check whether non-existent headers
2660 # can be detected and how.
2661 cat >conftest.$ac_ext <<_ACEOF
2662#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002663/* confdefs.h. */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002668#include <ac_nonexistent.h>
2669_ACEOF
2670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2672 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002673 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } >/dev/null; then
2678 if test -s conftest.err; then
2679 ac_cpp_err=$ac_c_preproc_warn_flag
2680 else
2681 ac_cpp_err=
2682 fi
2683else
2684 ac_cpp_err=yes
2685fi
2686if test -z "$ac_cpp_err"; then
2687 # Broken: success on invalid input.
2688continue
2689else
2690 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002691sed 's/^/| /' conftest.$ac_ext >&5
2692
jjako286bc982003-01-28 23:17:50 +00002693 # Passes both tests.
2694ac_preproc_ok=:
2695break
2696fi
2697rm -f conftest.err conftest.$ac_ext
2698
2699done
2700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2701rm -f conftest.err conftest.$ac_ext
2702if $ac_preproc_ok; then
2703 :
2704else
jjako08d331d2003-10-13 20:33:30 +00002705 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2706See \`config.log' for more details." >&5
2707echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2708See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002709 { (exit 1); exit 1; }; }
2710fi
2711
2712ac_ext=c
2713ac_cpp='$CPP $CPPFLAGS'
2714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717
2718ac_ext=cc
2719ac_cpp='$CXXCPP $CPPFLAGS'
2720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2723if test -n "$ac_tool_prefix"; then
2724 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2725 do
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730if test "${ac_cv_prog_CXX+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733 if test -n "$CXX"; then
2734 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748done
2749
2750fi
2751fi
2752CXX=$ac_cv_prog_CXX
2753if test -n "$CXX"; then
2754 echo "$as_me:$LINENO: result: $CXX" >&5
2755echo "${ECHO_T}$CXX" >&6
2756else
2757 echo "$as_me:$LINENO: result: no" >&5
2758echo "${ECHO_T}no" >&6
2759fi
2760
2761 test -n "$CXX" && break
2762 done
2763fi
2764if test -z "$CXX"; then
2765 ac_ct_CXX=$CXX
2766 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2767do
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769set dummy $ac_prog; ac_word=$2
2770echo "$as_me:$LINENO: checking for $ac_word" >&5
2771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2772if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 if test -n "$ac_ct_CXX"; then
2776 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_ac_ct_CXX="$ac_prog"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790done
2791
2792fi
2793fi
2794ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2795if test -n "$ac_ct_CXX"; then
2796 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2797echo "${ECHO_T}$ac_ct_CXX" >&6
2798else
2799 echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6
2801fi
2802
2803 test -n "$ac_ct_CXX" && break
2804done
2805test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2806
2807 CXX=$ac_ct_CXX
jjako52c24142002-12-16 13:33:51 +00002808fi
2809
2810
jjako286bc982003-01-28 23:17:50 +00002811# Provide some information about the compiler.
2812echo "$as_me:$LINENO:" \
2813 "checking for C++ compiler version" >&5
2814ac_compiler=`set X $ac_compile; echo $2`
2815{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2816 (eval $ac_compiler --version </dev/null >&5) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }
2820{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2821 (eval $ac_compiler -v </dev/null >&5) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2826 (eval $ac_compiler -V </dev/null >&5) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830
2831echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2832echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2833if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836 cat >conftest.$ac_ext <<_ACEOF
2837#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002838/* confdefs.h. */
2839_ACEOF
2840cat confdefs.h >>conftest.$ac_ext
2841cat >>conftest.$ac_ext <<_ACEOF
2842/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002843
jjako286bc982003-01-28 23:17:50 +00002844int
2845main ()
2846{
2847#ifndef __GNUC__
2848 choke me
2849#endif
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext
2856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -s conftest.$ac_objext'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 ac_compiler_gnu=yes
2868else
2869 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002870sed 's/^/| /' conftest.$ac_ext >&5
2871
jjako286bc982003-01-28 23:17:50 +00002872ac_compiler_gnu=no
2873fi
2874rm -f conftest.$ac_objext conftest.$ac_ext
2875ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2876
2877fi
2878echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2879echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2880GXX=`test $ac_compiler_gnu = yes && echo yes`
2881ac_test_CXXFLAGS=${CXXFLAGS+set}
2882ac_save_CXXFLAGS=$CXXFLAGS
2883CXXFLAGS="-g"
2884echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2885echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2886if test "${ac_cv_prog_cxx_g+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 cat >conftest.$ac_ext <<_ACEOF
2890#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002896
jjako286bc982003-01-28 23:17:50 +00002897int
2898main ()
2899{
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext
2906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_prog_cxx_g=yes
2918else
2919 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002920sed 's/^/| /' conftest.$ac_ext >&5
2921
jjako286bc982003-01-28 23:17:50 +00002922ac_cv_prog_cxx_g=no
2923fi
2924rm -f conftest.$ac_objext conftest.$ac_ext
2925fi
2926echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2927echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2928if test "$ac_test_CXXFLAGS" = set; then
2929 CXXFLAGS=$ac_save_CXXFLAGS
2930elif test $ac_cv_prog_cxx_g = yes; then
2931 if test "$GXX" = yes; then
2932 CXXFLAGS="-g -O2"
2933 else
2934 CXXFLAGS="-g"
2935 fi
2936else
2937 if test "$GXX" = yes; then
2938 CXXFLAGS="-O2"
2939 else
2940 CXXFLAGS=
2941 fi
2942fi
2943for ac_declaration in \
2944 ''\
2945 '#include <stdlib.h>' \
2946 'extern "C" void std::exit (int) throw (); using std::exit;' \
2947 'extern "C" void std::exit (int); using std::exit;' \
2948 'extern "C" void exit (int) throw ();' \
2949 'extern "C" void exit (int);' \
2950 'void exit (int);'
2951do
2952 cat >conftest.$ac_ext <<_ACEOF
2953#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002954/* confdefs.h. */
2955_ACEOF
2956cat confdefs.h >>conftest.$ac_ext
2957cat >>conftest.$ac_ext <<_ACEOF
2958/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002959#include <stdlib.h>
2960$ac_declaration
jjako286bc982003-01-28 23:17:50 +00002961int
2962main ()
2963{
2964exit (42);
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext
2970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 :
2982else
2983 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002984sed 's/^/| /' conftest.$ac_ext >&5
2985
jjako286bc982003-01-28 23:17:50 +00002986continue
2987fi
2988rm -f conftest.$ac_objext conftest.$ac_ext
2989 cat >conftest.$ac_ext <<_ACEOF
2990#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002996$ac_declaration
jjako286bc982003-01-28 23:17:50 +00002997int
2998main ()
2999{
3000exit (42);
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007 (eval $ac_compile) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 break
3018else
3019 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003020sed 's/^/| /' conftest.$ac_ext >&5
3021
jjako286bc982003-01-28 23:17:50 +00003022fi
3023rm -f conftest.$ac_objext conftest.$ac_ext
3024done
3025rm -f conftest*
3026if test -n "$ac_declaration"; then
3027 echo '#ifdef __cplusplus' >>confdefs.h
3028 echo $ac_declaration >>confdefs.h
3029 echo '#endif' >>confdefs.h
3030fi
3031
3032ac_ext=c
3033ac_cpp='$CPP $CPPFLAGS'
3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3040set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043if test "${ac_cv_prog_RANLIB+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046 if test -n "$RANLIB"; then
3047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060done
3061done
3062
3063fi
3064fi
3065RANLIB=$ac_cv_prog_RANLIB
3066if test -n "$RANLIB"; then
3067 echo "$as_me:$LINENO: result: $RANLIB" >&5
3068echo "${ECHO_T}$RANLIB" >&6
3069else
3070 echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
3072fi
3073
3074fi
3075if test -z "$ac_cv_prog_RANLIB"; then
3076 ac_ct_RANLIB=$RANLIB
3077 # Extract the first word of "ranlib", so it can be a program name with args.
3078set dummy ranlib; ac_word=$2
3079echo "$as_me:$LINENO: checking for $ac_word" >&5
3080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084 if test -n "$ac_ct_RANLIB"; then
3085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_ac_ct_RANLIB="ranlib"
3095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098done
3099done
3100
3101 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3102fi
3103fi
3104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3105if test -n "$ac_ct_RANLIB"; then
3106 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3107echo "${ECHO_T}$ac_ct_RANLIB" >&6
3108else
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
3111fi
3112
3113 RANLIB=$ac_ct_RANLIB
3114else
3115 RANLIB="$ac_cv_prog_RANLIB"
3116fi
3117
3118
3119
3120#JJAKO Check for libtool
jjako52c24142002-12-16 13:33:51 +00003121# Check whether --enable-shared or --disable-shared was given.
3122if test "${enable_shared+set}" = set; then
3123 enableval="$enable_shared"
3124 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00003125case $enableval in
jjako52c24142002-12-16 13:33:51 +00003126yes) enable_shared=yes ;;
3127no) enable_shared=no ;;
3128*)
3129 enable_shared=no
3130 # Look at the argument we got. We use all the common list separators.
3131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3132 for pkg in $enableval; do
3133 if test "X$pkg" = "X$p"; then
3134 enable_shared=yes
3135 fi
3136 done
3137 IFS="$ac_save_ifs"
3138 ;;
3139esac
3140else
3141 enable_shared=yes
jjako286bc982003-01-28 23:17:50 +00003142fi;
jjako52c24142002-12-16 13:33:51 +00003143# Check whether --enable-static or --disable-static was given.
3144if test "${enable_static+set}" = set; then
3145 enableval="$enable_static"
3146 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00003147case $enableval in
jjako52c24142002-12-16 13:33:51 +00003148yes) enable_static=yes ;;
3149no) enable_static=no ;;
3150*)
3151 enable_static=no
3152 # Look at the argument we got. We use all the common list separators.
3153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3154 for pkg in $enableval; do
3155 if test "X$pkg" = "X$p"; then
3156 enable_static=yes
3157 fi
3158 done
3159 IFS="$ac_save_ifs"
3160 ;;
3161esac
3162else
3163 enable_static=yes
jjako286bc982003-01-28 23:17:50 +00003164fi;
jjako52c24142002-12-16 13:33:51 +00003165# Check whether --enable-fast-install or --disable-fast-install was given.
3166if test "${enable_fast_install+set}" = set; then
3167 enableval="$enable_fast_install"
3168 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00003169case $enableval in
jjako52c24142002-12-16 13:33:51 +00003170yes) enable_fast_install=yes ;;
3171no) enable_fast_install=no ;;
3172*)
3173 enable_fast_install=no
3174 # Look at the argument we got. We use all the common list separators.
3175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3176 for pkg in $enableval; do
3177 if test "X$pkg" = "X$p"; then
3178 enable_fast_install=yes
3179 fi
3180 done
3181 IFS="$ac_save_ifs"
3182 ;;
3183esac
3184else
3185 enable_fast_install=yes
jjako286bc982003-01-28 23:17:50 +00003186fi;
jjako52c24142002-12-16 13:33:51 +00003187# Make sure we can run config.sub.
jjako286bc982003-01-28 23:17:50 +00003188$ac_config_sub sun4 >/dev/null 2>&1 ||
3189 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3190echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3191 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00003192
jjako286bc982003-01-28 23:17:50 +00003193echo "$as_me:$LINENO: checking build system type" >&5
3194echo $ECHO_N "checking build system type... $ECHO_C" >&6
3195if test "${ac_cv_build+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003197else
jjako286bc982003-01-28 23:17:50 +00003198 ac_cv_build_alias=$build_alias
3199test -z "$ac_cv_build_alias" &&
3200 ac_cv_build_alias=`$ac_config_guess`
3201test -z "$ac_cv_build_alias" &&
3202 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3203echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3204 { (exit 1); exit 1; }; }
3205ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3206 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3207echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3208 { (exit 1); exit 1; }; }
3209
3210fi
3211echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3212echo "${ECHO_T}$ac_cv_build" >&6
3213build=$ac_cv_build
3214build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3215build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3216build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3217
3218
3219echo "$as_me:$LINENO: checking host system type" >&5
3220echo $ECHO_N "checking host system type... $ECHO_C" >&6
3221if test "${ac_cv_host+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003223else
jjako286bc982003-01-28 23:17:50 +00003224 ac_cv_host_alias=$host_alias
3225test -z "$ac_cv_host_alias" &&
3226 ac_cv_host_alias=$ac_cv_build_alias
3227ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3228 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3229echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3230 { (exit 1); exit 1; }; }
3231
jjako52c24142002-12-16 13:33:51 +00003232fi
jjako286bc982003-01-28 23:17:50 +00003233echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3234echo "${ECHO_T}$ac_cv_host" >&6
3235host=$ac_cv_host
3236host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3237host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3238host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3239
3240
3241# Find the correct PATH separator. Usually this is `:', but
3242# DJGPP uses `;' like DOS.
3243if test "X${PATH_SEPARATOR+set}" != Xset; then
3244 UNAME=${UNAME-`uname 2>/dev/null`}
3245 case X$UNAME in
3246 *-DOS) lt_cv_sys_path_separator=';' ;;
3247 *) lt_cv_sys_path_separator=':' ;;
3248 esac
3249 PATH_SEPARATOR=$lt_cv_sys_path_separator
jjako52c24142002-12-16 13:33:51 +00003250fi
jjako286bc982003-01-28 23:17:50 +00003251
jjako52c24142002-12-16 13:33:51 +00003252
3253# Check whether --with-gnu-ld or --without-gnu-ld was given.
3254if test "${with_gnu_ld+set}" = set; then
3255 withval="$with_gnu_ld"
3256 test "$withval" = no || with_gnu_ld=yes
3257else
3258 with_gnu_ld=no
jjako286bc982003-01-28 23:17:50 +00003259fi;
jjako52c24142002-12-16 13:33:51 +00003260ac_prog=ld
jjako286bc982003-01-28 23:17:50 +00003261if test "$GCC" = yes; then
jjako52c24142002-12-16 13:33:51 +00003262 # Check if gcc -print-prog-name=ld gives a path.
jjako286bc982003-01-28 23:17:50 +00003263 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3264echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3265 case $host in
3266 *-*-mingw*)
3267 # gcc leaves a trailing carriage return which upsets mingw
3268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3269 *)
3270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3271 esac
3272 case $ac_prog in
jjako52c24142002-12-16 13:33:51 +00003273 # Accept absolute paths.
3274 [\\/]* | [A-Za-z]:[\\/]*)
3275 re_direlt='/[^/][^/]*/\.\./'
3276 # Canonicalize the path of ld
3277 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3278 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3279 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3280 done
3281 test -z "$LD" && LD="$ac_prog"
3282 ;;
3283 "")
3284 # If it fails, then pretend we aren't using GCC.
3285 ac_prog=ld
3286 ;;
3287 *)
3288 # If it is relative, then search for the first ld in PATH.
3289 with_gnu_ld=unknown
3290 ;;
3291 esac
3292elif test "$with_gnu_ld" = yes; then
jjako286bc982003-01-28 23:17:50 +00003293 echo "$as_me:$LINENO: checking for GNU ld" >&5
3294echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003295else
jjako286bc982003-01-28 23:17:50 +00003296 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3297echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003298fi
jjako286bc982003-01-28 23:17:50 +00003299if test "${lt_cv_path_LD+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003301else
3302 if test -z "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003304 for ac_dir in $PATH; do
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
jjako286bc982003-01-28 23:17:50 +00003307 lt_cv_path_LD="$ac_dir/$ac_prog"
jjako52c24142002-12-16 13:33:51 +00003308 # Check to see if the program is GNU ld. I'd rather use --version,
3309 # but apparently some GNU ld's only accept -v.
3310 # Break only if it was the GNU/non-GNU ld that we prefer.
jjako286bc982003-01-28 23:17:50 +00003311 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
jjako52c24142002-12-16 13:33:51 +00003312 test "$with_gnu_ld" != no && break
3313 else
3314 test "$with_gnu_ld" != yes && break
3315 fi
3316 fi
3317 done
3318 IFS="$ac_save_ifs"
3319else
jjako286bc982003-01-28 23:17:50 +00003320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
jjako52c24142002-12-16 13:33:51 +00003321fi
3322fi
3323
jjako286bc982003-01-28 23:17:50 +00003324LD="$lt_cv_path_LD"
jjako52c24142002-12-16 13:33:51 +00003325if test -n "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003326 echo "$as_me:$LINENO: result: $LD" >&5
3327echo "${ECHO_T}$LD" >&6
jjako52c24142002-12-16 13:33:51 +00003328else
jjako286bc982003-01-28 23:17:50 +00003329 echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00003331fi
jjako286bc982003-01-28 23:17:50 +00003332test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3333echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3334 { (exit 1); exit 1; }; }
3335echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3336echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3337if test "${lt_cv_prog_gnu_ld+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003339else
3340 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3341if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
jjako286bc982003-01-28 23:17:50 +00003342 lt_cv_prog_gnu_ld=yes
jjako52c24142002-12-16 13:33:51 +00003343else
jjako286bc982003-01-28 23:17:50 +00003344 lt_cv_prog_gnu_ld=no
jjako52c24142002-12-16 13:33:51 +00003345fi
3346fi
jjako286bc982003-01-28 23:17:50 +00003347echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3348echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3349with_gnu_ld=$lt_cv_prog_gnu_ld
jjako52c24142002-12-16 13:33:51 +00003350
3351
jjako286bc982003-01-28 23:17:50 +00003352echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3353echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3354if test "${lt_cv_ld_reload_flag+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357 lt_cv_ld_reload_flag='-r'
3358fi
3359echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3360echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3361reload_flag=$lt_cv_ld_reload_flag
3362test -n "$reload_flag" && reload_flag=" $reload_flag"
3363
3364echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3365echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3366if test "${lt_cv_path_NM+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003368else
3369 if test -n "$NM"; then
3370 # Let the user override the test.
jjako286bc982003-01-28 23:17:50 +00003371 lt_cv_path_NM="$NM"
jjako52c24142002-12-16 13:33:51 +00003372else
jjako286bc982003-01-28 23:17:50 +00003373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003374 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3375 test -z "$ac_dir" && ac_dir=.
jjako286bc982003-01-28 23:17:50 +00003376 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3377 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
jjako52c24142002-12-16 13:33:51 +00003378 # Check to see if the nm accepts a BSD-compat flag.
3379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3380 # nm: unknown option "B" ignored
jjako286bc982003-01-28 23:17:50 +00003381 # Tru64's nm complains that /dev/null is an invalid object file
3382 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3383 lt_cv_path_NM="$tmp_nm -B"
jjako52c24142002-12-16 13:33:51 +00003384 break
jjako286bc982003-01-28 23:17:50 +00003385 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3386 lt_cv_path_NM="$tmp_nm -p"
jjako52c24142002-12-16 13:33:51 +00003387 break
3388 else
jjako286bc982003-01-28 23:17:50 +00003389 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
jjako52c24142002-12-16 13:33:51 +00003390 continue # so that we can try to find one that supports BSD flags
3391 fi
3392 fi
3393 done
3394 IFS="$ac_save_ifs"
jjako286bc982003-01-28 23:17:50 +00003395 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
jjako52c24142002-12-16 13:33:51 +00003396fi
3397fi
3398
jjako286bc982003-01-28 23:17:50 +00003399NM="$lt_cv_path_NM"
3400echo "$as_me:$LINENO: result: $NM" >&5
3401echo "${ECHO_T}$NM" >&6
jjako52c24142002-12-16 13:33:51 +00003402
jjako08d331d2003-10-13 20:33:30 +00003403echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3404echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3405if test "${lt_cv_path_SED+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 # Loop through the user's path and test for sed and gsed.
3409# Then use that list of sed's as ones to test for truncation.
3410as_executable_p="test -f"
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_prog in sed gsed; do
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3419 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3420 fi
3421 done
3422 done
3423done
3424
3425 # Create a temporary directory, and hook for its removal unless debugging.
3426$debug ||
3427{
3428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3429 trap '{ (exit 1); exit 1; }' 1 2 13 15
3430}
3431
3432# Create a (secure) tmp directory for tmp files.
3433: ${TMPDIR=/tmp}
3434{
3435 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3436 test -n "$tmp" && test -d "$tmp"
3437} ||
3438{
3439 tmp=$TMPDIR/sed$$-$RANDOM
3440 (umask 077 && mkdir $tmp)
3441} ||
3442{
3443 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3444 { (exit 1); exit 1; }
3445}
3446 _max=0
3447 _count=0
3448 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3449 # along with /bin/sed that truncates output.
3450 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3451 test ! -f ${_sed} && break
3452 cat /dev/null > "$tmp/sed.in"
3453 _count=0
3454 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3455 # Check for GNU sed and select it if it is found.
3456 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3457 lt_cv_path_SED=${_sed}
3458 break
3459 fi
3460 while true; do
3461 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3462 mv "$tmp/sed.tmp" "$tmp/sed.in"
3463 cp "$tmp/sed.in" "$tmp/sed.nl"
3464 echo >>"$tmp/sed.nl"
3465 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3466 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3467 # 40000 chars as input seems more than enough
3468 test $_count -gt 10 && break
3469 _count=`expr $_count + 1`
3470 if test $_count -gt $_max; then
3471 _max=$_count
3472 lt_cv_path_SED=$_sed
3473 fi
3474 done
3475 done
3476 rm -rf "$tmp"
3477
3478fi
3479
3480if test "X$SED" != "X"; then
3481 lt_cv_path_SED=$SED
3482else
3483 SED=$lt_cv_path_SED
3484fi
3485echo "$as_me:$LINENO: result: $SED" >&5
3486echo "${ECHO_T}$SED" >&6
3487
jjako286bc982003-01-28 23:17:50 +00003488echo "$as_me:$LINENO: checking whether ln -s works" >&5
3489echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3490LN_S=$as_ln_s
3491if test "$LN_S" = "ln -s"; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493echo "${ECHO_T}yes" >&6
3494else
3495 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3496echo "${ECHO_T}no, using $LN_S" >&6
3497fi
jjako52c24142002-12-16 13:33:51 +00003498
jjako08d331d2003-10-13 20:33:30 +00003499echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3500echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00003501if test "${lt_cv_deplibs_check_method+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 lt_cv_file_magic_cmd='$MAGIC_CMD'
3505lt_cv_file_magic_test_file=
3506lt_cv_deplibs_check_method='unknown'
3507# Need to set the preceding variable on all platforms that support
3508# interlibrary dependencies.
3509# 'none' -- dependencies not supported.
3510# `unknown' -- same as none, but documents that we really don't know.
3511# 'pass_all' -- all dependencies passed with no checks.
3512# 'test_compile' -- check by making test program.
3513# 'file_magic [[regex]]' -- check by looking for files in library path
3514# which responds to the $file_magic_cmd with a given egrep regex.
3515# If you have `file' or equivalent on your system and you're not sure
3516# whether `pass_all' will *always* work, you probably want this one.
3517
3518case $host_os in
3519aix4* | aix5*)
3520 lt_cv_deplibs_check_method=pass_all
3521 ;;
3522
3523beos*)
3524 lt_cv_deplibs_check_method=pass_all
3525 ;;
3526
3527bsdi4*)
3528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3529 lt_cv_file_magic_cmd='/usr/bin/file -L'
3530 lt_cv_file_magic_test_file=/shlib/libc.so
3531 ;;
3532
3533cygwin* | mingw* | pw32*)
3534 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3535 lt_cv_file_magic_cmd='$OBJDUMP -f'
3536 ;;
3537
3538darwin* | rhapsody*)
3539 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3540 lt_cv_file_magic_cmd='/usr/bin/file -L'
3541 case "$host_os" in
3542 rhapsody* | darwin1.[012])
3543 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3544 ;;
3545 *) # Darwin 1.3 on
3546 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3547 ;;
3548 esac
3549 ;;
3550
3551freebsd*)
3552 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3553 case $host_cpu in
3554 i*86 )
3555 # Not sure whether the presence of OpenBSD here was a mistake.
3556 # Let's accept both of them until this is cleared up.
3557 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3558 lt_cv_file_magic_cmd=/usr/bin/file
3559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3560 ;;
3561 esac
3562 else
3563 lt_cv_deplibs_check_method=pass_all
3564 fi
3565 ;;
3566
3567gnu*)
3568 lt_cv_deplibs_check_method=pass_all
3569 ;;
3570
3571hpux10.20*|hpux11*)
3572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3573 lt_cv_file_magic_cmd=/usr/bin/file
3574 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3575 ;;
3576
jjako08d331d2003-10-13 20:33:30 +00003577irix5* | irix6* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00003578 case $host_os in
jjako08d331d2003-10-13 20:33:30 +00003579 irix5* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00003580 # this will be overridden with pass_all, but let us keep it just in case
3581 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3582 ;;
3583 *)
3584 case $LD in
3585 *-32|*"-32 ") libmagic=32-bit;;
3586 *-n32|*"-n32 ") libmagic=N32;;
3587 *-64|*"-64 ") libmagic=64-bit;;
3588 *) libmagic=never-match;;
3589 esac
3590 # this will be overridden with pass_all, but let us keep it just in case
3591 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3592 ;;
3593 esac
3594 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3595 lt_cv_deplibs_check_method=pass_all
3596 ;;
3597
3598# This must be Linux ELF.
3599linux-gnu*)
3600 case $host_cpu in
jjako08d331d2003-10-13 20:33:30 +00003601 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
jjako286bc982003-01-28 23:17:50 +00003602 lt_cv_deplibs_check_method=pass_all ;;
3603 *)
3604 # glibc up to 2.1.1 does not perform some relocations on ARM
3605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3606 esac
3607 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3608 ;;
3609
3610netbsd*)
3611 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3612 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3613 else
3614 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3615 fi
3616 ;;
3617
3618newos6*)
3619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3620 lt_cv_file_magic_cmd=/usr/bin/file
3621 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3622 ;;
3623
3624openbsd*)
3625 lt_cv_file_magic_cmd=/usr/bin/file
3626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3629 else
3630 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3631 fi
3632 ;;
3633
3634osf3* | osf4* | osf5*)
3635 # this will be overridden with pass_all, but let us keep it just in case
3636 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3637 lt_cv_file_magic_test_file=/shlib/libc.so
3638 lt_cv_deplibs_check_method=pass_all
3639 ;;
3640
3641sco3.2v5*)
3642 lt_cv_deplibs_check_method=pass_all
3643 ;;
3644
3645solaris*)
3646 lt_cv_deplibs_check_method=pass_all
3647 lt_cv_file_magic_test_file=/lib/libc.so
3648 ;;
3649
3650sysv5uw[78]* | sysv4*uw2*)
3651 lt_cv_deplibs_check_method=pass_all
3652 ;;
3653
3654sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3655 case $host_vendor in
3656 motorola)
3657 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]'
3658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3659 ;;
3660 ncr)
3661 lt_cv_deplibs_check_method=pass_all
3662 ;;
3663 sequent)
3664 lt_cv_file_magic_cmd='/bin/file'
3665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3666 ;;
3667 sni)
3668 lt_cv_file_magic_cmd='/bin/file'
3669 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3670 lt_cv_file_magic_test_file=/lib/libc.so
3671 ;;
jjako08d331d2003-10-13 20:33:30 +00003672 siemens)
3673 lt_cv_deplibs_check_method=pass_all
3674 ;;
jjako286bc982003-01-28 23:17:50 +00003675 esac
3676 ;;
jjako52c24142002-12-16 13:33:51 +00003677esac
3678
jjako286bc982003-01-28 23:17:50 +00003679fi
3680echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3681echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3682file_magic_cmd=$lt_cv_file_magic_cmd
3683deplibs_check_method=$lt_cv_deplibs_check_method
jjako52c24142002-12-16 13:33:51 +00003684
3685
jjako286bc982003-01-28 23:17:50 +00003686
3687
3688
3689
3690
3691
3692# Check for command to grab the raw symbol name followed by C symbol from nm.
3693echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3694echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3695if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698
3699# These are sane defaults that work on at least a few old systems.
3700# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3701
3702# Character class describing NM global symbol codes.
3703symcode='[BCDEGRST]'
3704
3705# Regexp to match symbols that can be accessed directly from C.
3706sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3707
3708# Transform the above into a raw symbol and a C symbol.
3709symxfrm='\1 \2\3 \3'
3710
3711# Transform an extracted symbol line into a proper C declaration
3712lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3713
3714# Transform an extracted symbol line into symbol name and symbol address
3715lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3716
3717# Define system-specific variables.
3718case $host_os in
3719aix*)
3720 symcode='[BCDT]'
3721 ;;
3722cygwin* | mingw* | pw32*)
3723 symcode='[ABCDGISTW]'
3724 ;;
3725hpux*) # Its linker distinguishes data from code symbols
3726 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3727 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3728 ;;
jjako08d331d2003-10-13 20:33:30 +00003729irix* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00003730 symcode='[BCDEGRST]'
3731 ;;
jjako08d331d2003-10-13 20:33:30 +00003732osf*)
3733 symcode='[BCDEGQRST]'
3734 ;;
jjako286bc982003-01-28 23:17:50 +00003735solaris* | sysv5*)
3736 symcode='[BDT]'
3737 ;;
3738sysv4)
3739 symcode='[DFNSTU]'
3740 ;;
3741esac
3742
3743# Handle CRLF in mingw tool chain
3744opt_cr=
3745case $host_os in
3746mingw*)
3747 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3748 ;;
3749esac
3750
3751# If we're using GNU nm, then use its standard symbol codes.
3752if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3753 symcode='[ABCDGISTW]'
3754fi
3755
3756# Try without a prefix undercore, then with it.
3757for ac_symprfx in "" "_"; do
3758
3759 # Write the raw and C identifiers.
3760lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3761
3762 # Check to see that the pipe works correctly.
3763 pipe_works=no
3764 rm -f conftest*
3765 cat > conftest.$ac_ext <<EOF
3766#ifdef __cplusplus
3767extern "C" {
3768#endif
3769char nm_test_var;
3770void nm_test_func(){}
3771#ifdef __cplusplus
3772}
3773#endif
3774int main(){nm_test_var='a';nm_test_func();return(0);}
3775EOF
3776
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; then
3782 # Now try to grab the symbols.
3783 nlist=conftest.nm
3784 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3785 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } && test -s "$nlist"; then
3789 # Try sorting and uniquifying the output.
3790 if sort "$nlist" | uniq > "$nlist"T; then
3791 mv -f "$nlist"T "$nlist"
3792 else
3793 rm -f "$nlist"T
3794 fi
3795
3796 # Make sure that we snagged all the symbols we need.
3797 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3798 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3799 cat <<EOF > conftest.$ac_ext
3800#ifdef __cplusplus
3801extern "C" {
3802#endif
3803
3804EOF
3805 # Now generate the symbol file.
3806 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3807
3808 cat <<EOF >> conftest.$ac_ext
3809#if defined (__STDC__) && __STDC__
3810# define lt_ptr void *
3811#else
3812# define lt_ptr char *
3813# define const
3814#endif
3815
3816/* The mapping between symbol names and symbols. */
3817const struct {
3818 const char *name;
3819 lt_ptr address;
3820}
3821lt_preloaded_symbols[] =
3822{
3823EOF
3824 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3825 cat <<\EOF >> conftest.$ac_ext
3826 {0, (lt_ptr) 0}
3827};
3828
3829#ifdef __cplusplus
3830}
3831#endif
3832EOF
3833 # Now try linking the two files.
3834 mv conftest.$ac_objext conftstm.$ac_objext
3835 save_LIBS="$LIBS"
3836 save_CFLAGS="$CFLAGS"
3837 LIBS="conftstm.$ac_objext"
3838 CFLAGS="$CFLAGS$no_builtin_flag"
3839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3840 (eval $ac_link) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjako08d331d2003-10-13 20:33:30 +00003843 (exit $ac_status); } && test -s conftest$ac_exeext; then
jjako286bc982003-01-28 23:17:50 +00003844 pipe_works=yes
3845 fi
3846 LIBS="$save_LIBS"
3847 CFLAGS="$save_CFLAGS"
3848 else
3849 echo "cannot find nm_test_func in $nlist" >&5
3850 fi
3851 else
3852 echo "cannot find nm_test_var in $nlist" >&5
3853 fi
3854 else
3855 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3856 fi
3857 else
3858 echo "$progname: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 fi
3861 rm -f conftest* conftst*
3862
3863 # Do not use the global_symbol_pipe unless it works.
3864 if test "$pipe_works" = yes; then
3865 break
3866 else
3867 lt_cv_sys_global_symbol_pipe=
3868 fi
3869done
3870
3871fi
3872
3873global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3874if test -z "$lt_cv_sys_global_symbol_pipe"; then
3875 global_symbol_to_cdecl=
3876 global_symbol_to_c_name_address=
3877else
3878 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3879 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3880fi
3881if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3882then
3883 echo "$as_me:$LINENO: result: failed" >&5
3884echo "${ECHO_T}failed" >&6
3885else
3886 echo "$as_me:$LINENO: result: ok" >&5
3887echo "${ECHO_T}ok" >&6
3888fi
3889
3890
jjako08d331d2003-10-13 20:33:30 +00003891echo "$as_me:$LINENO: checking for egrep" >&5
3892echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3893if test "${ac_cv_prog_egrep+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3897 then ac_cv_prog_egrep='grep -E'
3898 else ac_cv_prog_egrep='egrep'
3899 fi
3900fi
3901echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3902echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3903 EGREP=$ac_cv_prog_egrep
3904
3905
jjako286bc982003-01-28 23:17:50 +00003906echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3907echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3908if test "${ac_cv_header_stdc+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 cat >conftest.$ac_ext <<_ACEOF
3912#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00003913/* confdefs.h. */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003918#include <stdlib.h>
3919#include <stdarg.h>
3920#include <string.h>
3921#include <float.h>
3922
jjako08d331d2003-10-13 20:33:30 +00003923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
jjako286bc982003-01-28 23:17:50 +00003930_ACEOF
jjako08d331d2003-10-13 20:33:30 +00003931rm -f conftest.$ac_objext
3932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>&5
jjako286bc982003-01-28 23:17:50 +00003934 ac_status=$?
jjako286bc982003-01-28 23:17:50 +00003935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjako08d331d2003-10-13 20:33:30 +00003936 (exit $ac_status); } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
jjako286bc982003-01-28 23:17:50 +00003943 ac_cv_header_stdc=yes
3944else
3945 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948ac_cv_header_stdc=no
jjako286bc982003-01-28 23:17:50 +00003949fi
jjako08d331d2003-10-13 20:33:30 +00003950rm -f conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00003951
3952if test $ac_cv_header_stdc = yes; then
3953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3954 cat >conftest.$ac_ext <<_ACEOF
3955#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00003956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003961#include <string.h>
3962
3963_ACEOF
3964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00003965 $EGREP "memchr" >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +00003966 :
3967else
3968 ac_cv_header_stdc=no
3969fi
3970rm -f conftest*
3971
3972fi
3973
3974if test $ac_cv_header_stdc = yes; then
3975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3976 cat >conftest.$ac_ext <<_ACEOF
3977#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00003978/* confdefs.h. */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003983#include <stdlib.h>
3984
3985_ACEOF
3986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00003987 $EGREP "free" >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +00003988 :
3989else
3990 ac_cv_header_stdc=no
3991fi
3992rm -f conftest*
3993
3994fi
3995
3996if test $ac_cv_header_stdc = yes; then
3997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3998 if test "$cross_compiling" = yes; then
3999 :
4000else
4001 cat >conftest.$ac_ext <<_ACEOF
4002#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004008#include <ctype.h>
4009#if ((' ' & 0x0FF) == 0x020)
4010# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4011# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4012#else
jjako08d331d2003-10-13 20:33:30 +00004013# define ISLOWER(c) \
4014 (('a' <= (c) && (c) <= 'i') \
jjako286bc982003-01-28 23:17:50 +00004015 || ('j' <= (c) && (c) <= 'r') \
4016 || ('s' <= (c) && (c) <= 'z'))
4017# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4018#endif
4019
4020#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4021int
4022main ()
4023{
4024 int i;
4025 for (i = 0; i < 256; i++)
4026 if (XOR (islower (i), ISLOWER (i))
4027 || toupper (i) != TOUPPER (i))
4028 exit(2);
4029 exit (0);
4030}
4031_ACEOF
4032rm -f conftest$ac_exeext
4033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4034 (eval $ac_link) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 :
4044else
4045 echo "$as_me: program exited with status $ac_status" >&5
4046echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004047sed 's/^/| /' conftest.$ac_ext >&5
4048
jjako286bc982003-01-28 23:17:50 +00004049( exit $ac_status )
4050ac_cv_header_stdc=no
4051fi
jjako08d331d2003-10-13 20:33:30 +00004052rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00004053fi
4054fi
4055fi
4056echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4057echo "${ECHO_T}$ac_cv_header_stdc" >&6
4058if test $ac_cv_header_stdc = yes; then
4059
4060cat >>confdefs.h <<\_ACEOF
4061#define STDC_HEADERS 1
4062_ACEOF
4063
4064fi
4065
4066# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4077 inttypes.h stdint.h unistd.h
4078do
4079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080echo "$as_me:$LINENO: checking for $ac_header" >&5
4081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4082if eval "test \"\${$as_ac_Header+set}\" = set"; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085 cat >conftest.$ac_ext <<_ACEOF
4086#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004092$ac_includes_default
4093
4094#include <$ac_header>
4095_ACEOF
4096rm -f conftest.$ac_objext
4097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 eval "$as_ac_Header=yes"
4109else
4110 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004111sed 's/^/| /' conftest.$ac_ext >&5
4112
jjako286bc982003-01-28 23:17:50 +00004113eval "$as_ac_Header=no"
4114fi
4115rm -f conftest.$ac_objext conftest.$ac_ext
4116fi
4117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122_ACEOF
4123
4124fi
4125
4126done
4127
4128
4129
4130for ac_header in dlfcn.h
4131do
4132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4133if eval "test \"\${$as_ac_Header+set}\" = set"; then
4134 echo "$as_me:$LINENO: checking for $ac_header" >&5
4135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4136if eval "test \"\${$as_ac_Header+set}\" = set"; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138fi
4139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4141else
4142 # Is the header compilable?
4143echo "$as_me:$LINENO: checking $ac_header usability" >&5
4144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4145cat >conftest.$ac_ext <<_ACEOF
4146#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004152$ac_includes_default
4153#include <$ac_header>
4154_ACEOF
4155rm -f conftest.$ac_objext
4156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_header_compiler=yes
4168else
4169 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004170sed 's/^/| /' conftest.$ac_ext >&5
4171
jjako286bc982003-01-28 23:17:50 +00004172ac_header_compiler=no
4173fi
4174rm -f conftest.$ac_objext conftest.$ac_ext
4175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4176echo "${ECHO_T}$ac_header_compiler" >&6
4177
4178# Is the header present?
4179echo "$as_me:$LINENO: checking $ac_header presence" >&5
4180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4181cat >conftest.$ac_ext <<_ACEOF
4182#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004188#include <$ac_header>
4189_ACEOF
4190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4192 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00004193 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00004194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } >/dev/null; then
4198 if test -s conftest.err; then
4199 ac_cpp_err=$ac_c_preproc_warn_flag
4200 else
4201 ac_cpp_err=
4202 fi
4203else
4204 ac_cpp_err=yes
4205fi
4206if test -z "$ac_cpp_err"; then
4207 ac_header_preproc=yes
4208else
4209 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004210sed 's/^/| /' conftest.$ac_ext >&5
4211
jjako286bc982003-01-28 23:17:50 +00004212 ac_header_preproc=no
4213fi
4214rm -f conftest.err conftest.$ac_ext
4215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4216echo "${ECHO_T}$ac_header_preproc" >&6
4217
4218# So? What about this header?
4219case $ac_header_compiler:$ac_header_preproc in
4220 yes:no )
4221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00004224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4225 (
4226 cat <<\_ASBOX
4227## ------------------------------------ ##
4228## Report this to bug-autoconf@gnu.org. ##
4229## ------------------------------------ ##
4230_ASBOX
4231 ) |
4232 sed "s/^/$as_me: WARNING: /" >&2
4233 ;;
jjako286bc982003-01-28 23:17:50 +00004234 no:yes )
4235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00004240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4241 (
4242 cat <<\_ASBOX
4243## ------------------------------------ ##
4244## Report this to bug-autoconf@gnu.org. ##
4245## ------------------------------------ ##
4246_ASBOX
4247 ) |
4248 sed "s/^/$as_me: WARNING: /" >&2
4249 ;;
jjako286bc982003-01-28 23:17:50 +00004250esac
4251echo "$as_me:$LINENO: checking for $ac_header" >&5
4252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4253if eval "test \"\${$as_ac_Header+set}\" = set"; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256 eval "$as_ac_Header=$ac_header_preproc"
4257fi
4258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260
4261fi
4262if test `eval echo '${'$as_ac_Header'}'` = yes; then
4263 cat >>confdefs.h <<_ACEOF
4264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4265_ACEOF
4266
4267fi
4268
4269done
4270
4271
4272
4273
4274
jjako08d331d2003-10-13 20:33:30 +00004275
jjako286bc982003-01-28 23:17:50 +00004276# Only perform the check for file, if the check method requires it
4277case $deplibs_check_method in
4278file_magic*)
4279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4280 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4281echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4282if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285 case $MAGIC_CMD in
4286 /*)
4287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4288 ;;
4289 ?:/*)
4290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4291 ;;
4292 *)
4293 ac_save_MAGIC_CMD="$MAGIC_CMD"
4294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4295 ac_dummy="/usr/bin:$PATH"
4296 for ac_dir in $ac_dummy; do
4297 test -z "$ac_dir" && ac_dir=.
4298 if test -f $ac_dir/${ac_tool_prefix}file; then
4299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4300 if test -n "$file_magic_test_file"; then
4301 case $deplibs_check_method in
4302 "file_magic "*)
4303 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4306 egrep "$file_magic_regex" > /dev/null; then
4307 :
4308 else
4309 cat <<EOF 1>&2
4310
4311*** Warning: the command libtool uses to detect shared libraries,
4312*** $file_magic_cmd, produces output that libtool cannot recognize.
4313*** The result is that libtool may fail to recognize shared libraries
4314*** as such. This will affect the creation of libtool libraries that
4315*** depend on shared libraries, but programs linked with such libtool
4316*** libraries will work regardless of this problem. Nevertheless, you
4317*** may want to report the problem to your system manager and/or to
4318*** bug-libtool@gnu.org
4319
4320EOF
4321 fi ;;
4322 esac
4323 fi
4324 break
4325 fi
4326 done
4327 IFS="$ac_save_ifs"
4328 MAGIC_CMD="$ac_save_MAGIC_CMD"
4329 ;;
4330esac
4331fi
4332
4333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4334if test -n "$MAGIC_CMD"; then
4335 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4336echo "${ECHO_T}$MAGIC_CMD" >&6
4337else
4338 echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6
4340fi
4341
4342if test -z "$lt_cv_path_MAGIC_CMD"; then
4343 if test -n "$ac_tool_prefix"; then
4344 echo "$as_me:$LINENO: checking for file" >&5
4345echo $ECHO_N "checking for file... $ECHO_C" >&6
4346if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
4349 case $MAGIC_CMD in
4350 /*)
4351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4352 ;;
4353 ?:/*)
4354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4355 ;;
4356 *)
4357 ac_save_MAGIC_CMD="$MAGIC_CMD"
4358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4359 ac_dummy="/usr/bin:$PATH"
4360 for ac_dir in $ac_dummy; do
4361 test -z "$ac_dir" && ac_dir=.
4362 if test -f $ac_dir/file; then
4363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4364 if test -n "$file_magic_test_file"; then
4365 case $deplibs_check_method in
4366 "file_magic "*)
4367 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4370 egrep "$file_magic_regex" > /dev/null; then
4371 :
4372 else
4373 cat <<EOF 1>&2
4374
4375*** Warning: the command libtool uses to detect shared libraries,
4376*** $file_magic_cmd, produces output that libtool cannot recognize.
4377*** The result is that libtool may fail to recognize shared libraries
4378*** as such. This will affect the creation of libtool libraries that
4379*** depend on shared libraries, but programs linked with such libtool
4380*** libraries will work regardless of this problem. Nevertheless, you
4381*** may want to report the problem to your system manager and/or to
4382*** bug-libtool@gnu.org
4383
4384EOF
4385 fi ;;
4386 esac
4387 fi
4388 break
4389 fi
4390 done
4391 IFS="$ac_save_ifs"
4392 MAGIC_CMD="$ac_save_MAGIC_CMD"
4393 ;;
4394esac
4395fi
4396
4397MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4398if test -n "$MAGIC_CMD"; then
4399 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4400echo "${ECHO_T}$MAGIC_CMD" >&6
4401else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404fi
4405
4406 else
4407 MAGIC_CMD=:
4408 fi
4409fi
4410
4411 fi
4412 ;;
4413esac
4414
4415if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4417set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4418echo "$as_me:$LINENO: checking for $ac_word" >&5
4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420if test "${ac_cv_prog_RANLIB+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423 if test -n "$RANLIB"; then
4424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437done
4438done
4439
4440fi
4441fi
4442RANLIB=$ac_cv_prog_RANLIB
4443if test -n "$RANLIB"; then
4444 echo "$as_me:$LINENO: result: $RANLIB" >&5
4445echo "${ECHO_T}$RANLIB" >&6
4446else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449fi
4450
4451fi
4452if test -z "$ac_cv_prog_RANLIB"; then
4453 ac_ct_RANLIB=$RANLIB
4454 # Extract the first word of "ranlib", so it can be a program name with args.
4455set dummy ranlib; ac_word=$2
4456echo "$as_me:$LINENO: checking for $ac_word" >&5
4457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 if test -n "$ac_ct_RANLIB"; then
4462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_RANLIB="ranlib"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
4476done
4477
4478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4479fi
4480fi
4481ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482if test -n "$ac_ct_RANLIB"; then
4483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4484echo "${ECHO_T}$ac_ct_RANLIB" >&6
4485else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488fi
4489
4490 RANLIB=$ac_ct_RANLIB
4491else
4492 RANLIB="$ac_cv_prog_RANLIB"
4493fi
4494
4495if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}strip; ac_word=$2
4498echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500if test "${ac_cv_prog_STRIP+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 if test -n "$STRIP"; then
4504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
4519
4520fi
4521fi
4522STRIP=$ac_cv_prog_STRIP
4523if test -n "$STRIP"; then
4524 echo "$as_me:$LINENO: result: $STRIP" >&5
4525echo "${ECHO_T}$STRIP" >&6
4526else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531fi
4532if test -z "$ac_cv_prog_STRIP"; then
4533 ac_ct_STRIP=$STRIP
4534 # Extract the first word of "strip", so it can be a program name with args.
4535set dummy strip; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 if test -n "$ac_ct_STRIP"; then
4542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_ac_ct_STRIP="strip"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555done
4556done
4557
4558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4559fi
4560fi
4561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562if test -n "$ac_ct_STRIP"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4564echo "${ECHO_T}$ac_ct_STRIP" >&6
4565else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568fi
4569
4570 STRIP=$ac_ct_STRIP
4571else
4572 STRIP="$ac_cv_prog_STRIP"
4573fi
4574
4575
4576enable_dlopen=no
4577enable_win32_dll=no
4578
jjako52c24142002-12-16 13:33:51 +00004579# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4580if test "${enable_libtool_lock+set}" = set; then
4581 enableval="$enable_libtool_lock"
jjako52c24142002-12-16 13:33:51 +00004582
jjako286bc982003-01-28 23:17:50 +00004583fi;
4584test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
jjako52c24142002-12-16 13:33:51 +00004585
4586# Some flags need to be propagated to the compiler or linker for good
4587# libtool support.
jjako286bc982003-01-28 23:17:50 +00004588case $host in
jjako52c24142002-12-16 13:33:51 +00004589*-*-irix6*)
4590 # Find out which ABI we are using.
jjako08d331d2003-10-13 20:33:30 +00004591 echo '#line 4591 "configure"' > conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00004592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; then
4597 case `/usr/bin/file conftest.$ac_objext` in
jjako52c24142002-12-16 13:33:51 +00004598 *32-bit*)
4599 LD="${LD-ld} -32"
4600 ;;
4601 *N32*)
4602 LD="${LD-ld} -n32"
4603 ;;
4604 *64-bit*)
4605 LD="${LD-ld} -64"
4606 ;;
4607 esac
4608 fi
4609 rm -rf conftest*
4610 ;;
4611
4612*-*-sco3.2v5*)
4613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4614 SAVE_CFLAGS="$CFLAGS"
4615 CFLAGS="$CFLAGS -belf"
jjako286bc982003-01-28 23:17:50 +00004616 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4617echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4618if test "${lt_cv_cc_needs_belf+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00004620else
jjako286bc982003-01-28 23:17:50 +00004621
4622
4623 ac_ext=c
4624ac_cpp='$CPP $CPPFLAGS'
4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
4629 cat >conftest.$ac_ext <<_ACEOF
4630#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00004636
jjako286bc982003-01-28 23:17:50 +00004637int
4638main ()
4639{
jjako52c24142002-12-16 13:33:51 +00004640
jjako286bc982003-01-28 23:17:50 +00004641 ;
4642 return 0;
4643}
4644_ACEOF
4645rm -f conftest.$ac_objext conftest$ac_exeext
4646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647 (eval $ac_link) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -s conftest$ac_exeext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00004657 lt_cv_cc_needs_belf=yes
4658else
jjako286bc982003-01-28 23:17:50 +00004659 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004660sed 's/^/| /' conftest.$ac_ext >&5
4661
jjako286bc982003-01-28 23:17:50 +00004662lt_cv_cc_needs_belf=no
jjako52c24142002-12-16 13:33:51 +00004663fi
jjako286bc982003-01-28 23:17:50 +00004664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665 ac_ext=c
4666ac_cpp='$CPP $CPPFLAGS'
4667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00004670
jjako286bc982003-01-28 23:17:50 +00004671fi
4672echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4673echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
jjako52c24142002-12-16 13:33:51 +00004674 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4675 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4676 CFLAGS="$SAVE_CFLAGS"
4677 fi
4678 ;;
4679
4680
4681esac
4682
jjako286bc982003-01-28 23:17:50 +00004683# Sed substitution that helps us do robust quoting. It backslashifies
4684# metacharacters that are still active within double-quoted strings.
4685Xsed='sed -e s/^X//'
4686sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
jjako52c24142002-12-16 13:33:51 +00004687
jjako286bc982003-01-28 23:17:50 +00004688# Same as above, but do not quote variable references.
4689double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4690
4691# Sed substitution to delay expansion of an escaped shell variable in a
4692# double_quote_subst'ed string.
4693delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4694
4695# Constants:
4696rm="rm -f"
4697
4698# Global variables:
4699default_ofile=libtool
4700can_build_shared=yes
4701
4702# All known linkers require a `.a' archive for static linking (except M$VC,
4703# which needs '.lib').
4704libext=a
4705ltmain="$ac_aux_dir/ltmain.sh"
4706ofile="$default_ofile"
4707with_gnu_ld="$lt_cv_prog_gnu_ld"
4708need_locks="$enable_libtool_lock"
4709
4710old_CC="$CC"
4711old_CFLAGS="$CFLAGS"
4712
4713# Set sane defaults for various variables
4714test -z "$AR" && AR=ar
4715test -z "$AR_FLAGS" && AR_FLAGS=cru
4716test -z "$AS" && AS=as
4717test -z "$CC" && CC=cc
4718test -z "$DLLTOOL" && DLLTOOL=dlltool
4719test -z "$LD" && LD=ld
4720test -z "$LN_S" && LN_S="ln -s"
4721test -z "$MAGIC_CMD" && MAGIC_CMD=file
4722test -z "$NM" && NM=nm
4723test -z "$OBJDUMP" && OBJDUMP=objdump
4724test -z "$RANLIB" && RANLIB=:
4725test -z "$STRIP" && STRIP=:
4726test -z "$ac_objext" && ac_objext=o
4727
4728if test x"$host" != x"$build"; then
4729 ac_tool_prefix=${host_alias}-
4730else
4731 ac_tool_prefix=
4732fi
4733
4734# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4735case $host_os in
4736linux-gnu*) ;;
4737linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4738esac
4739
4740case $host_os in
4741aix3*)
4742 # AIX sometimes has problems with the GCC collect2 program. For some
4743 # reason, if we set the COLLECT_NAMES environment variable, the problems
4744 # vanish in a puff of smoke.
4745 if test "X${COLLECT_NAMES+set}" != Xset; then
4746 COLLECT_NAMES=
4747 export COLLECT_NAMES
4748 fi
4749 ;;
4750esac
4751
4752# Determine commands to create old-style static archives.
4753old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4754old_postinstall_cmds='chmod 644 $oldlib'
4755old_postuninstall_cmds=
4756
4757if test -n "$RANLIB"; then
4758 case $host_os in
4759 openbsd*)
4760 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004761 ;;
4762 *)
jjako286bc982003-01-28 23:17:50 +00004763 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004764 ;;
jjako286bc982003-01-28 23:17:50 +00004765 esac
4766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4767fi
4768
4769# Allow CC to be a program name with arguments.
4770set dummy $CC
4771compiler="$2"
4772
4773echo "$as_me:$LINENO: checking for objdir" >&5
4774echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4775rm -f .libs 2>/dev/null
4776mkdir .libs 2>/dev/null
4777if test -d .libs; then
4778 objdir=.libs
jjako52c24142002-12-16 13:33:51 +00004779else
jjako286bc982003-01-28 23:17:50 +00004780 # MS-DOS does not allow filenames that begin with a dot.
4781 objdir=_libs
4782fi
4783rmdir .libs 2>/dev/null
4784echo "$as_me:$LINENO: result: $objdir" >&5
4785echo "${ECHO_T}$objdir" >&6
4786
4787
4788
4789# Check whether --with-pic or --without-pic was given.
4790if test "${with_pic+set}" = set; then
4791 withval="$with_pic"
4792 pic_mode="$withval"
4793else
4794 pic_mode=default
4795fi;
4796test -z "$pic_mode" && pic_mode=default
4797
4798# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4799# in isolation, and that seeing it set (from the cache) indicates that
4800# the associated values are set (in the cache) correctly too.
4801echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4802echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4803if test "${lt_cv_prog_cc_pic+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806 lt_cv_prog_cc_pic=
4807 lt_cv_prog_cc_shlib=
4808 lt_cv_prog_cc_wl=
4809 lt_cv_prog_cc_static=
4810 lt_cv_prog_cc_no_builtin=
4811 lt_cv_prog_cc_can_build_shared=$can_build_shared
4812
4813 if test "$GCC" = yes; then
4814 lt_cv_prog_cc_wl='-Wl,'
4815 lt_cv_prog_cc_static='-static'
4816
4817 case $host_os in
4818 aix*)
4819 # Below there is a dirty hack to force normal static linking with -ldl
4820 # The problem is because libdl dynamically linked with both libc and
4821 # libC (AIX C++ library), which obviously doesn't included in libraries
4822 # list by gcc. This cause undefined symbols with -static flags.
4823 # This hack allows C programs to be linked with "-static -ldl", but
4824 # not sure about C++ programs.
4825 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4826 ;;
4827 amigaos*)
4828 # FIXME: we need at least 68020 code to build shared libraries, but
4829 # adding the `-m68020' flag to GCC prevents building anything better,
4830 # like `-m68040'.
4831 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4832 ;;
jjako08d331d2003-10-13 20:33:30 +00004833 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
jjako286bc982003-01-28 23:17:50 +00004834 # PIC is the default for these OSes.
4835 ;;
4836 darwin* | rhapsody*)
4837 # PIC is the default on this platform
4838 # Common symbols not allowed in MH_DYLIB files
4839 lt_cv_prog_cc_pic='-fno-common'
4840 ;;
4841 cygwin* | mingw* | pw32* | os2*)
4842 # This hack is so that the source file can tell whether it is being
4843 # built for inclusion in a dll (and should export symbols for example).
4844 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4845 ;;
4846 sysv4*MP*)
4847 if test -d /usr/nec; then
4848 lt_cv_prog_cc_pic=-Kconform_pic
4849 fi
4850 ;;
4851 *)
4852 lt_cv_prog_cc_pic='-fPIC'
4853 ;;
4854 esac
jjako52c24142002-12-16 13:33:51 +00004855 else
jjako286bc982003-01-28 23:17:50 +00004856 # PORTME Check for PIC flags for the system compiler.
4857 case $host_os in
4858 aix3* | aix4* | aix5*)
4859 lt_cv_prog_cc_wl='-Wl,'
4860 # All AIX code is PIC.
4861 if test "$host_cpu" = ia64; then
4862 # AIX 5 now supports IA64 processor
4863 lt_cv_prog_cc_static='-Bstatic'
4864 else
4865 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4866 fi
4867 ;;
4868
4869 hpux9* | hpux10* | hpux11*)
4870 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4871 lt_cv_prog_cc_wl='-Wl,'
4872 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4873 lt_cv_prog_cc_pic='+Z'
4874 ;;
4875
jjako08d331d2003-10-13 20:33:30 +00004876 irix5* | irix6* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00004877 lt_cv_prog_cc_wl='-Wl,'
4878 lt_cv_prog_cc_static='-non_shared'
4879 # PIC (with -KPIC) is the default.
4880 ;;
4881
4882 cygwin* | mingw* | pw32* | os2*)
4883 # This hack is so that the source file can tell whether it is being
4884 # built for inclusion in a dll (and should export symbols for example).
4885 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4886 ;;
4887
4888 newsos6)
4889 lt_cv_prog_cc_pic='-KPIC'
4890 lt_cv_prog_cc_static='-Bstatic'
4891 ;;
4892
4893 osf3* | osf4* | osf5*)
4894 # All OSF/1 code is PIC.
4895 lt_cv_prog_cc_wl='-Wl,'
4896 lt_cv_prog_cc_static='-non_shared'
4897 ;;
4898
4899 sco3.2v5*)
4900 lt_cv_prog_cc_pic='-Kpic'
4901 lt_cv_prog_cc_static='-dn'
4902 lt_cv_prog_cc_shlib='-belf'
4903 ;;
4904
4905 solaris*)
4906 lt_cv_prog_cc_pic='-KPIC'
4907 lt_cv_prog_cc_static='-Bstatic'
4908 lt_cv_prog_cc_wl='-Wl,'
4909 ;;
4910
4911 sunos4*)
4912 lt_cv_prog_cc_pic='-PIC'
4913 lt_cv_prog_cc_static='-Bstatic'
4914 lt_cv_prog_cc_wl='-Qoption ld '
4915 ;;
4916
4917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4918 lt_cv_prog_cc_pic='-KPIC'
4919 lt_cv_prog_cc_static='-Bstatic'
jjako08d331d2003-10-13 20:33:30 +00004920 lt_cv_prog_cc_wl='-Wl,'
jjako286bc982003-01-28 23:17:50 +00004921 ;;
4922
4923 uts4*)
4924 lt_cv_prog_cc_pic='-pic'
4925 lt_cv_prog_cc_static='-Bstatic'
4926 ;;
4927
4928 sysv4*MP*)
4929 if test -d /usr/nec ;then
4930 lt_cv_prog_cc_pic='-Kconform_pic'
4931 lt_cv_prog_cc_static='-Bstatic'
4932 fi
4933 ;;
4934
4935 *)
4936 lt_cv_prog_cc_can_build_shared=no
4937 ;;
4938 esac
4939 fi
4940
4941fi
4942
4943if test -z "$lt_cv_prog_cc_pic"; then
4944 echo "$as_me:$LINENO: result: none" >&5
4945echo "${ECHO_T}none" >&6
4946else
4947 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4948echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4949
4950 # Check to make sure the pic_flag actually works.
4951 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4952echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4953 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956 save_CFLAGS="$CFLAGS"
4957 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4958 cat >conftest.$ac_ext <<_ACEOF
4959#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004965
jjako286bc982003-01-28 23:17:50 +00004966int
4967main ()
4968{
4969
4970 ;
4971 return 0;
4972}
4973_ACEOF
4974rm -f conftest.$ac_objext
4975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 case $host_os in
4987 hpux9* | hpux10* | hpux11*)
4988 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4989 # they create non-PIC objects. So, if there were any warnings, we
4990 # assume that PIC is not supported.
4991 if test -s conftest.err; then
4992 lt_cv_prog_cc_pic_works=no
4993 else
4994 lt_cv_prog_cc_pic_works=yes
4995 fi
4996 ;;
4997 *)
4998 lt_cv_prog_cc_pic_works=yes
4999 ;;
5000 esac
5001
5002else
5003 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005004sed 's/^/| /' conftest.$ac_ext >&5
5005
jjako286bc982003-01-28 23:17:50 +00005006 lt_cv_prog_cc_pic_works=no
5007
5008fi
5009rm -f conftest.$ac_objext conftest.$ac_ext
5010 CFLAGS="$save_CFLAGS"
5011
5012fi
5013
5014
5015 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5016 lt_cv_prog_cc_pic=
5017 lt_cv_prog_cc_can_build_shared=no
5018 else
5019 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5020 fi
5021
5022 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5023echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5024fi
5025
5026# Check for any special shared library compilation flags.
5027if test -n "$lt_cv_prog_cc_shlib"; then
5028 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5029echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5030 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5031 else
5032 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5033echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5034 lt_cv_prog_cc_can_build_shared=no
jjako52c24142002-12-16 13:33:51 +00005035 fi
5036fi
jjako52c24142002-12-16 13:33:51 +00005037
jjako286bc982003-01-28 23:17:50 +00005038echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5039echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5040if test "${lt_cv_prog_cc_static_works+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00005042else
jjako286bc982003-01-28 23:17:50 +00005043 lt_cv_prog_cc_static_works=no
5044 save_LDFLAGS="$LDFLAGS"
5045 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5046 cat >conftest.$ac_ext <<_ACEOF
5047#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00005048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00005053
jjako286bc982003-01-28 23:17:50 +00005054int
5055main ()
5056{
5057
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext conftest$ac_exeext
5063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -s conftest$ac_exeext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 lt_cv_prog_cc_static_works=yes
5075else
5076 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005077sed 's/^/| /' conftest.$ac_ext >&5
5078
jjako52c24142002-12-16 13:33:51 +00005079fi
jjako286bc982003-01-28 23:17:50 +00005080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5081 LDFLAGS="$save_LDFLAGS"
5082
5083fi
5084
5085
5086# Belt *and* braces to stop my trousers falling down:
5087test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5088echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5089echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5090
5091pic_flag="$lt_cv_prog_cc_pic"
5092special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5093wl="$lt_cv_prog_cc_wl"
5094link_static_flag="$lt_cv_prog_cc_static"
5095no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5096can_build_shared="$lt_cv_prog_cc_can_build_shared"
5097
5098
5099# Check to see if options -o and -c are simultaneously supported by compiler
5100echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5101echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5102if test "${lt_cv_compiler_c_o+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105
5106$rm -r conftest 2>/dev/null
5107mkdir conftest
5108cd conftest
5109echo "int some_variable = 0;" > conftest.$ac_ext
5110mkdir out
5111# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5112# that will create temporary files in the current directory regardless of
5113# the output directory. Thus, making CWD read-only will cause this test
5114# to fail, enabling locking or at least warning the user not to do parallel
5115# builds.
5116chmod -w .
5117save_CFLAGS="$CFLAGS"
5118CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5119compiler_c_o=no
jjako08d331d2003-10-13 20:33:30 +00005120if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
jjako286bc982003-01-28 23:17:50 +00005121 # The compiler can only warn and ignore the option if not recognized
5122 # So say no if there are warnings
5123 if test -s out/conftest.err; then
5124 lt_cv_compiler_c_o=no
5125 else
5126 lt_cv_compiler_c_o=yes
5127 fi
5128else
5129 # Append any errors to the config.log.
5130 cat out/conftest.err 1>&5
5131 lt_cv_compiler_c_o=no
5132fi
5133CFLAGS="$save_CFLAGS"
5134chmod u+w .
5135$rm conftest* out/*
5136rmdir out
5137cd ..
5138rmdir conftest
5139$rm -r conftest 2>/dev/null
5140
5141fi
5142
5143compiler_c_o=$lt_cv_compiler_c_o
5144echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5145echo "${ECHO_T}$compiler_c_o" >&6
5146
5147if test x"$compiler_c_o" = x"yes"; then
5148 # Check to see if we can write to a .lo
5149 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5150echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5151 if test "${lt_cv_compiler_o_lo+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154
5155 lt_cv_compiler_o_lo=no
5156 save_CFLAGS="$CFLAGS"
5157 CFLAGS="$CFLAGS -c -o conftest.lo"
5158 save_objext="$ac_objext"
5159 ac_objext=lo
5160 cat >conftest.$ac_ext <<_ACEOF
5161#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00005162/* confdefs.h. */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00005167
jjako286bc982003-01-28 23:17:50 +00005168int
5169main ()
5170{
5171int some_variable = 0;
5172 ;
5173 return 0;
5174}
5175_ACEOF
5176rm -f conftest.$ac_objext
5177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178 (eval $ac_compile) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -s conftest.$ac_objext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 # The compiler can only warn and ignore the option if not recognized
5189 # So say no if there are warnings
5190 if test -s conftest.err; then
5191 lt_cv_compiler_o_lo=no
5192 else
5193 lt_cv_compiler_o_lo=yes
5194 fi
5195
5196else
5197 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005198sed 's/^/| /' conftest.$ac_ext >&5
5199
jjako286bc982003-01-28 23:17:50 +00005200fi
5201rm -f conftest.$ac_objext conftest.$ac_ext
5202 ac_objext="$save_objext"
5203 CFLAGS="$save_CFLAGS"
5204
5205fi
5206
5207 compiler_o_lo=$lt_cv_compiler_o_lo
5208 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5209echo "${ECHO_T}$compiler_o_lo" >&6
5210else
5211 compiler_o_lo=no
5212fi
5213
5214# Check to see if we can do hard links to lock some files if needed
5215hard_links="nottested"
5216if test "$compiler_c_o" = no && test "$need_locks" != no; then
5217 # do not overwrite the value of need_locks provided by the user
5218 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5219echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5220 hard_links=yes
5221 $rm conftest*
5222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5223 touch conftest.a
5224 ln conftest.a conftest.b 2>&5 || hard_links=no
5225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5226 echo "$as_me:$LINENO: result: $hard_links" >&5
5227echo "${ECHO_T}$hard_links" >&6
5228 if test "$hard_links" = no; then
5229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5230echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5231 need_locks=warn
5232 fi
5233else
5234 need_locks=no
5235fi
5236
5237if test "$GCC" = yes; then
5238 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5239 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5240echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5241 echo "int some_variable = 0;" > conftest.$ac_ext
5242 save_CFLAGS="$CFLAGS"
5243 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5244 compiler_rtti_exceptions=no
5245 cat >conftest.$ac_ext <<_ACEOF
5246#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00005247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00005252
jjako286bc982003-01-28 23:17:50 +00005253int
5254main ()
5255{
5256int some_variable = 0;
5257 ;
5258 return 0;
5259}
5260_ACEOF
5261rm -f conftest.$ac_objext
5262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 # The compiler can only warn and ignore the option if not recognized
5274 # So say no if there are warnings
5275 if test -s conftest.err; then
5276 compiler_rtti_exceptions=no
5277 else
5278 compiler_rtti_exceptions=yes
5279 fi
5280
5281else
5282 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005283sed 's/^/| /' conftest.$ac_ext >&5
5284
jjako286bc982003-01-28 23:17:50 +00005285fi
5286rm -f conftest.$ac_objext conftest.$ac_ext
5287 CFLAGS="$save_CFLAGS"
5288 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5289echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5290
5291 if test "$compiler_rtti_exceptions" = "yes"; then
5292 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5293 else
5294 no_builtin_flag=' -fno-builtin'
5295 fi
5296fi
5297
5298# See if the linker supports building shared libraries.
5299echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5300echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5301
5302allow_undefined_flag=
5303no_undefined_flag=
5304need_lib_prefix=unknown
5305need_version=unknown
5306# when you set need_version to no, make sure it does not cause -set_version
5307# flags to be left without arguments
5308archive_cmds=
5309archive_expsym_cmds=
5310old_archive_from_new_cmds=
5311old_archive_from_expsyms_cmds=
5312export_dynamic_flag_spec=
5313whole_archive_flag_spec=
5314thread_safe_flag_spec=
5315hardcode_into_libs=no
5316hardcode_libdir_flag_spec=
5317hardcode_libdir_separator=
5318hardcode_direct=no
5319hardcode_minus_L=no
5320hardcode_shlibpath_var=unsupported
5321runpath_var=
5322link_all_deplibs=unknown
5323always_export_symbols=no
5324export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5325# include_expsyms should be a list of space-separated symbols to be *always*
5326# included in the symbol list
5327include_expsyms=
5328# exclude_expsyms can be an egrep regular expression of symbols to exclude
5329# it will be wrapped by ` (' and `)$', so one must not match beginning or
5330# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5331# as well as any symbol that contains `d'.
5332exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5333# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5334# platforms (ab)use it in PIC code, but their linkers get confused if
5335# the symbol is explicitly referenced. Since portable code cannot
5336# rely on this symbol name, it's probably fine to never include it in
5337# preloaded symbol tables.
5338extract_expsyms_cmds=
5339
5340case $host_os in
5341cygwin* | mingw* | pw32*)
5342 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5343 # When not using gcc, we currently assume that we are using
5344 # Microsoft Visual C++.
5345 if test "$GCC" != yes; then
5346 with_gnu_ld=no
5347 fi
5348 ;;
5349openbsd*)
5350 with_gnu_ld=no
5351 ;;
5352esac
5353
5354ld_shlibs=yes
5355if test "$with_gnu_ld" = yes; then
5356 # If archive_cmds runs LD, not CC, wlarc should be empty
5357 wlarc='${wl}'
5358
5359 # See if GNU ld supports shared libraries.
5360 case $host_os in
5361 aix3* | aix4* | aix5*)
5362 # On AIX, the GNU linker is very broken
5363 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5364 ld_shlibs=no
5365 cat <<EOF 1>&2
5366
5367*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5368*** to be unable to reliably create shared libraries on AIX.
5369*** Therefore, libtool is disabling shared libraries support. If you
5370*** really care for shared libraries, you may want to modify your PATH
5371*** so that a non-GNU linker is found, and then restart.
5372
5373EOF
5374 ;;
5375
5376 amigaos*)
5377 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)'
5378 hardcode_libdir_flag_spec='-L$libdir'
5379 hardcode_minus_L=yes
5380
5381 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5382 # that the semantics of dynamic libraries on AmigaOS, at least up
5383 # to version 4, is to share data among multiple programs linked
5384 # with the same dynamic library. Since this doesn't match the
5385 # behavior of shared libraries on other platforms, we can use
5386 # them.
5387 ld_shlibs=no
5388 ;;
5389
5390 beos*)
5391 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5392 allow_undefined_flag=unsupported
5393 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5394 # support --undefined. This deserves some investigation. FIXME
5395 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5396 else
5397 ld_shlibs=no
5398 fi
5399 ;;
5400
5401 cygwin* | mingw* | pw32*)
5402 # hardcode_libdir_flag_spec is actually meaningless, as there is
5403 # no search path for DLLs.
5404 hardcode_libdir_flag_spec='-L$libdir'
5405 allow_undefined_flag=unsupported
5406 always_export_symbols=yes
5407
5408 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5409 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5410 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5411 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5412 else $CC -o impgen impgen.c ; fi)~
5413 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5414
5415 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5416
5417 # cygwin and mingw dlls have different entry points and sets of symbols
5418 # to exclude.
5419 # FIXME: what about values for MSVC?
5420 dll_entry=__cygwin_dll_entry@12
5421 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5422 case $host_os in
5423 mingw*)
5424 # mingw values
5425 dll_entry=_DllMainCRTStartup@12
5426 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5427 ;;
5428 esac
5429
5430 # mingw and cygwin differ, and it's simplest to just exclude the union
5431 # of the two symbol sets.
5432 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5433
5434 # recent cygwin and mingw systems supply a stub DllMain which the user
5435 # can override, but on older systems we have to supply one (in ltdll.c)
5436 if test "x$lt_cv_need_dllmain" = "xyes"; then
5437 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5438 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5439 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5440 else
5441 ltdll_obj=
5442 ltdll_cmds=
5443 fi
5444
5445 # Extract the symbol export list from an `--export-all' def file,
5446 # then regenerate the def file from the symbol export list, so that
5447 # the compiled dll only exports the symbol export list.
5448 # Be careful not to strip the DATA tag left be newer dlltools.
5449 export_symbols_cmds="$ltdll_cmds"'
5450 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5451 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5452
5453 # If the export-symbols file already is a .def file (1st line
5454 # is EXPORTS), use it as is.
5455 # If DATA tags from a recent dlltool are present, honour them!
jjako08d331d2003-10-13 20:33:30 +00005456 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
jjako286bc982003-01-28 23:17:50 +00005457 cp $export_symbols $output_objdir/$soname-def;
5458 else
5459 echo EXPORTS > $output_objdir/$soname-def;
5460 _lt_hint=1;
5461 cat $export_symbols | while read symbol; do
5462 set dummy \$symbol;
5463 case \$# in
5464 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
jjako08d331d2003-10-13 20:33:30 +00005465 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
jjako286bc982003-01-28 23:17:50 +00005466 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5467 esac;
5468 _lt_hint=`expr 1 + \$_lt_hint`;
5469 done;
5470 fi~
5471 '"$ltdll_cmds"'
5472 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5473 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5474 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5475 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5476 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5477 ;;
5478
5479 netbsd*)
5480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5481 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5482 wlarc=
5483 else
5484 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5485 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5486 fi
5487 ;;
5488
5489 solaris* | sysv5*)
5490 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5491 ld_shlibs=no
5492 cat <<EOF 1>&2
5493
5494*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5495*** create shared libraries on Solaris systems. Therefore, libtool
5496*** is disabling shared libraries support. We urge you to upgrade GNU
5497*** binutils to release 2.9.1 or newer. Another option is to modify
5498*** your PATH or compiler configuration so that the native linker is
5499*** used, and then restart.
5500
5501EOF
5502 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5505 else
5506 ld_shlibs=no
5507 fi
5508 ;;
5509
5510 sunos4*)
5511 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5512 wlarc=
5513 hardcode_direct=yes
5514 hardcode_shlibpath_var=no
5515 ;;
5516
5517 *)
5518 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5520 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5521 else
5522 ld_shlibs=no
5523 fi
5524 ;;
5525 esac
5526
5527 if test "$ld_shlibs" = yes; then
5528 runpath_var=LD_RUN_PATH
5529 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5530 export_dynamic_flag_spec='${wl}--export-dynamic'
5531 case $host_os in
5532 cygwin* | mingw* | pw32*)
5533 # dlltool doesn't understand --whole-archive et. al.
5534 whole_archive_flag_spec=
5535 ;;
5536 *)
5537 # ancient GNU ld didn't support --whole-archive et. al.
5538 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5539 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5540 else
5541 whole_archive_flag_spec=
5542 fi
5543 ;;
5544 esac
5545 fi
5546else
5547 # PORTME fill in a description of your system's linker (not GNU ld)
5548 case $host_os in
5549 aix3*)
5550 allow_undefined_flag=unsupported
5551 always_export_symbols=yes
5552 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'
5553 # Note: this linker hardcodes the directories in LIBPATH if there
5554 # are no directories specified by -L.
5555 hardcode_minus_L=yes
5556 if test "$GCC" = yes && test -z "$link_static_flag"; then
5557 # Neither direct hardcoding nor static linking is supported with a
5558 # broken collect2.
5559 hardcode_direct=unsupported
5560 fi
5561 ;;
5562
5563 aix4* | aix5*)
5564 if test "$host_cpu" = ia64; then
5565 # On IA64, the linker does run time linking by default, so we don't
5566 # have to do anything special.
5567 aix_use_runtimelinking=no
5568 exp_sym_flag='-Bexport'
5569 no_entry_flag=""
5570 else
5571 aix_use_runtimelinking=no
5572
5573 # Test if we are trying to use run time linking or normal
5574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5575 # need to do runtime linking.
5576 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5577 for ld_flag in $LDFLAGS; do
jjako08d331d2003-10-13 20:33:30 +00005578 case $ld_flag in
5579 *-brtl*)
jjako286bc982003-01-28 23:17:50 +00005580 aix_use_runtimelinking=yes
5581 break
jjako08d331d2003-10-13 20:33:30 +00005582 ;;
5583 esac
jjako286bc982003-01-28 23:17:50 +00005584 done
5585 esac
5586
5587 exp_sym_flag='-bexport'
5588 no_entry_flag='-bnoentry'
5589 fi
5590
5591 # When large executables or shared objects are built, AIX ld can
5592 # have problems creating the table of contents. If linking a library
5593 # or program results in "error TOC overflow" add -mminimal-toc to
5594 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5595 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5596
5597 hardcode_direct=yes
5598 archive_cmds=''
5599 hardcode_libdir_separator=':'
5600 if test "$GCC" = yes; then
5601 case $host_os in aix4.[012]|aix4.[012].*)
5602 collect2name=`${CC} -print-prog-name=collect2`
5603 if test -f "$collect2name" && \
5604 strings "$collect2name" | grep resolve_lib_name >/dev/null
5605 then
5606 # We have reworked collect2
5607 hardcode_direct=yes
5608 else
5609 # We have old collect2
5610 hardcode_direct=unsupported
5611 # It fails to find uninstalled libraries when the uninstalled
5612 # path is not listed in the libpath. Setting hardcode_minus_L
5613 # to unsupported forces relinking
5614 hardcode_minus_L=yes
5615 hardcode_libdir_flag_spec='-L$libdir'
5616 hardcode_libdir_separator=
5617 fi
5618 esac
5619
5620 shared_flag='-shared'
5621 else
5622 # not using gcc
5623 if test "$host_cpu" = ia64; then
5624 shared_flag='${wl}-G'
5625 else
5626 if test "$aix_use_runtimelinking" = yes; then
5627 shared_flag='${wl}-G'
5628 else
5629 shared_flag='${wl}-bM:SRE'
5630 fi
5631 fi
5632 fi
5633
5634 # It seems that -bexpall can do strange things, so it is better to
5635 # generate a list of symbols to export.
5636 always_export_symbols=yes
5637 if test "$aix_use_runtimelinking" = yes; then
5638 # Warning - without using the other runtime loading flags (-brtl),
5639 # -berok will link without error, but may produce a broken library.
5640 allow_undefined_flag='-berok'
5641 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5642 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"
5643 else
5644 if test "$host_cpu" = ia64; then
5645 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5646 allow_undefined_flag="-z nodefs"
5647 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5648 else
5649 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5650 # Warning - without using the other run time loading flags,
5651 # -berok will link without error, but may produce a broken library.
5652 allow_undefined_flag='${wl}-berok'
5653 # This is a bit strange, but is similar to how AIX traditionally builds
5654 # it's shared libraries.
5655 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5656 fi
5657 fi
5658 ;;
5659
5660 amigaos*)
5661 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)'
5662 hardcode_libdir_flag_spec='-L$libdir'
5663 hardcode_minus_L=yes
5664 # see comment about different semantics on the GNU ld section
5665 ld_shlibs=no
5666 ;;
5667
5668 cygwin* | mingw* | pw32*)
5669 # When not using gcc, we currently assume that we are using
5670 # Microsoft Visual C++.
5671 # hardcode_libdir_flag_spec is actually meaningless, as there is
5672 # no search path for DLLs.
5673 hardcode_libdir_flag_spec=' '
5674 allow_undefined_flag=unsupported
5675 # Tell ltmain to make .lib files, not .a files.
5676 libext=lib
5677 # FIXME: Setting linknames here is a bad hack.
5678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5679 # The linker will automatically build a .lib file if we build a DLL.
5680 old_archive_from_new_cmds='true'
5681 # FIXME: Should let the user specify the lib program.
5682 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5683 fix_srcfile_path='`cygpath -w "$srcfile"`'
5684 ;;
5685
5686 darwin* | rhapsody*)
5687 case "$host_os" in
5688 rhapsody* | darwin1.[012])
5689 allow_undefined_flag='-undefined suppress'
5690 ;;
5691 *) # Darwin 1.3 on
5692 allow_undefined_flag='-flat_namespace -undefined suppress'
5693 ;;
5694 esac
5695 # FIXME: Relying on posixy $() will cause problems for
5696 # cross-compilation, but unfortunately the echo tests do not
jjako08d331d2003-10-13 20:33:30 +00005697 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5698 # `"' quotes if we put them in here... so don't!
5699 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
jjako286bc982003-01-28 23:17:50 +00005700 # We need to add '_' to the symbols in $export_symbols first
5701 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5702 hardcode_direct=yes
5703 hardcode_shlibpath_var=no
5704 whole_archive_flag_spec='-all_load $convenience'
5705 ;;
5706
5707 freebsd1*)
5708 ld_shlibs=no
5709 ;;
5710
5711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5712 # support. Future versions do this automatically, but an explicit c++rt0.o
5713 # does not break anything, and helps significantly (at the cost of a little
5714 # extra space).
5715 freebsd2.2*)
5716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5717 hardcode_libdir_flag_spec='-R$libdir'
5718 hardcode_direct=yes
5719 hardcode_shlibpath_var=no
5720 ;;
5721
5722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5723 freebsd2*)
5724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5725 hardcode_direct=yes
5726 hardcode_minus_L=yes
5727 hardcode_shlibpath_var=no
5728 ;;
5729
5730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5731 freebsd*)
5732 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5733 hardcode_libdir_flag_spec='-R$libdir'
5734 hardcode_direct=yes
5735 hardcode_shlibpath_var=no
5736 ;;
5737
5738 hpux9* | hpux10* | hpux11*)
5739 case $host_os in
5740 hpux9*) 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' ;;
5741 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5742 esac
5743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5744 hardcode_libdir_separator=:
5745 hardcode_direct=yes
5746 hardcode_minus_L=yes # Not in the search PATH, but as the default
5747 # location of the library.
5748 export_dynamic_flag_spec='${wl}-E'
5749 ;;
5750
jjako08d331d2003-10-13 20:33:30 +00005751 irix5* | irix6* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00005752 if test "$GCC" = yes; then
5753 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'
jjako08d331d2003-10-13 20:33:30 +00005754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
jjako286bc982003-01-28 23:17:50 +00005755 else
5756 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'
jjako08d331d2003-10-13 20:33:30 +00005757 hardcode_libdir_flag_spec='-rpath $libdir'
jjako286bc982003-01-28 23:17:50 +00005758 fi
jjako286bc982003-01-28 23:17:50 +00005759 hardcode_libdir_separator=:
5760 link_all_deplibs=yes
5761 ;;
5762
5763 netbsd*)
5764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5766 else
5767 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5768 fi
5769 hardcode_libdir_flag_spec='-R$libdir'
5770 hardcode_direct=yes
5771 hardcode_shlibpath_var=no
5772 ;;
5773
5774 newsos6)
5775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5776 hardcode_direct=yes
5777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5778 hardcode_libdir_separator=:
5779 hardcode_shlibpath_var=no
5780 ;;
5781
5782 openbsd*)
5783 hardcode_direct=yes
5784 hardcode_shlibpath_var=no
5785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
jjako08d331d2003-10-13 20:33:30 +00005786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
jjako286bc982003-01-28 23:17:50 +00005787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5788 export_dynamic_flag_spec='${wl}-E'
5789 else
5790 case "$host_os" in
5791 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5793 hardcode_libdir_flag_spec='-R$libdir'
5794 ;;
5795 *)
jjako08d331d2003-10-13 20:33:30 +00005796 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
jjako286bc982003-01-28 23:17:50 +00005797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5798 ;;
5799 esac
5800 fi
5801 ;;
5802
5803 os2*)
5804 hardcode_libdir_flag_spec='-L$libdir'
5805 hardcode_minus_L=yes
5806 allow_undefined_flag=unsupported
5807 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'
5808 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5809 ;;
5810
5811 osf3*)
5812 if test "$GCC" = yes; then
5813 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5814 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'
5815 else
5816 allow_undefined_flag=' -expect_unresolved \*'
5817 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'
5818 fi
5819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5820 hardcode_libdir_separator=:
5821 ;;
5822
5823 osf4* | osf5*) # as osf3* with the addition of -msym flag
5824 if test "$GCC" = yes; then
5825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5826 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'
5827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5828 else
5829 allow_undefined_flag=' -expect_unresolved \*'
5830 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'
5831 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5832 $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'
5833
5834 #Both c and cxx compiler support -rpath directly
5835 hardcode_libdir_flag_spec='-rpath $libdir'
5836 fi
5837 hardcode_libdir_separator=:
5838 ;;
5839
5840 sco3.2v5*)
5841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5842 hardcode_shlibpath_var=no
5843 runpath_var=LD_RUN_PATH
5844 hardcode_runpath_var=yes
5845 export_dynamic_flag_spec='${wl}-Bexport'
5846 ;;
5847
5848 solaris*)
5849 # gcc --version < 3.0 without binutils cannot create self contained
5850 # shared libraries reliably, requiring libgcc.a to resolve some of
5851 # the object symbols generated in some cases. Libraries that use
5852 # assert need libgcc.a to resolve __eprintf, for example. Linking
5853 # a copy of libgcc.a into every shared library to guarantee resolving
5854 # such symbols causes other problems: According to Tim Van Holder
5855 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5856 # (to the application) exception stack for one thing.
5857 no_undefined_flag=' -z defs'
5858 if test "$GCC" = yes; then
5859 case `$CC --version 2>/dev/null` in
5860 [12].*)
5861 cat <<EOF 1>&2
5862
5863*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5864*** create self contained shared libraries on Solaris systems, without
5865*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5866*** -no-undefined support, which will at least allow you to build shared
5867*** libraries. However, you may find that when you link such libraries
5868*** into an application without using GCC, you have to manually add
5869*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5870*** upgrade to a newer version of GCC. Another option is to rebuild your
5871*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5872
5873EOF
5874 no_undefined_flag=
5875 ;;
5876 esac
5877 fi
5878 # $CC -shared without GNU ld will not create a library from C++
5879 # object files and a static libstdc++, better avoid it by now
5880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5881 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5883 hardcode_libdir_flag_spec='-R$libdir'
5884 hardcode_shlibpath_var=no
5885 case $host_os in
5886 solaris2.[0-5] | solaris2.[0-5].*) ;;
5887 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5889 esac
5890 link_all_deplibs=yes
5891 ;;
5892
5893 sunos4*)
5894 if test "x$host_vendor" = xsequent; then
5895 # Use $CC to link under sequent, because it throws in some extra .o
5896 # files that make .init and .fini sections work.
5897 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5898 else
5899 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5900 fi
5901 hardcode_libdir_flag_spec='-L$libdir'
5902 hardcode_direct=yes
5903 hardcode_minus_L=yes
5904 hardcode_shlibpath_var=no
5905 ;;
5906
5907 sysv4)
jjako08d331d2003-10-13 20:33:30 +00005908 case $host_vendor in
5909 sni)
5910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5911 hardcode_direct=yes # is this really true???
5912 ;;
5913 siemens)
5914 ## LD is ld it makes a PLAMLIB
5915 ## CC just makes a GrossModule.
5916 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5917 reload_cmds='$CC -r -o $output$reload_objs'
5918 hardcode_direct=no
5919 ;;
5920 motorola)
5921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5923 ;;
5924 esac
jjako286bc982003-01-28 23:17:50 +00005925 runpath_var='LD_RUN_PATH'
5926 hardcode_shlibpath_var=no
5927 ;;
5928
5929 sysv4.3*)
5930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5931 hardcode_shlibpath_var=no
5932 export_dynamic_flag_spec='-Bexport'
5933 ;;
5934
5935 sysv5*)
5936 no_undefined_flag=' -z text'
5937 # $CC -shared without GNU ld will not create a library from C++
5938 # object files and a static libstdc++, better avoid it by now
5939 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5940 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5941 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5942 hardcode_libdir_flag_spec=
5943 hardcode_shlibpath_var=no
5944 runpath_var='LD_RUN_PATH'
5945 ;;
5946
5947 uts4*)
5948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5949 hardcode_libdir_flag_spec='-L$libdir'
5950 hardcode_shlibpath_var=no
5951 ;;
5952
5953 dgux*)
5954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5955 hardcode_libdir_flag_spec='-L$libdir'
5956 hardcode_shlibpath_var=no
5957 ;;
5958
5959 sysv4*MP*)
5960 if test -d /usr/nec; then
5961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5962 hardcode_shlibpath_var=no
5963 runpath_var=LD_RUN_PATH
5964 hardcode_runpath_var=yes
5965 ld_shlibs=yes
5966 fi
5967 ;;
5968
5969 sysv4.2uw2*)
5970 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5971 hardcode_direct=yes
5972 hardcode_minus_L=no
5973 hardcode_shlibpath_var=no
5974 hardcode_runpath_var=yes
5975 runpath_var=LD_RUN_PATH
5976 ;;
5977
5978 sysv5uw7* | unixware7*)
5979 no_undefined_flag='${wl}-z ${wl}text'
5980 if test "$GCC" = yes; then
5981 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5982 else
5983 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5984 fi
5985 runpath_var='LD_RUN_PATH'
5986 hardcode_shlibpath_var=no
5987 ;;
5988
5989 *)
5990 ld_shlibs=no
5991 ;;
5992 esac
5993fi
5994echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5995echo "${ECHO_T}$ld_shlibs" >&6
5996test "$ld_shlibs" = no && can_build_shared=no
5997
5998# Check hardcoding attributes.
5999echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6000echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6001hardcode_action=
6002if test -n "$hardcode_libdir_flag_spec" || \
6003 test -n "$runpath_var"; then
6004
6005 # We can hardcode non-existant directories.
6006 if test "$hardcode_direct" != no &&
6007 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6008 # have to relink, otherwise we might link with an installed library
6009 # when we should be linking with a yet-to-be-installed one
6010 ## test "$hardcode_shlibpath_var" != no &&
6011 test "$hardcode_minus_L" != no; then
6012 # Linking always hardcodes the temporary library directory.
6013 hardcode_action=relink
6014 else
6015 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6016 hardcode_action=immediate
6017 fi
6018else
6019 # We cannot hardcode anything, or else we can only hardcode existing
6020 # directories.
6021 hardcode_action=unsupported
6022fi
6023echo "$as_me:$LINENO: result: $hardcode_action" >&5
6024echo "${ECHO_T}$hardcode_action" >&6
6025
6026striplib=
6027old_striplib=
6028echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6029echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6030if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6031 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6032 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6033 echo "$as_me:$LINENO: result: yes" >&5
6034echo "${ECHO_T}yes" >&6
6035else
6036 echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
6038fi
6039
6040reload_cmds='$LD$reload_flag -o $output$reload_objs'
6041test -z "$deplibs_check_method" && deplibs_check_method=unknown
6042
6043# PORTME Fill in your ld.so characteristics
6044echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6045echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6046library_names_spec=
6047libname_spec='lib$name'
6048soname_spec=
6049postinstall_cmds=
6050postuninstall_cmds=
6051finish_cmds=
6052finish_eval=
6053shlibpath_var=
6054shlibpath_overrides_runpath=unknown
6055version_type=none
6056dynamic_linker="$host_os ld.so"
6057sys_lib_dlsearch_path_spec="/lib /usr/lib"
6058sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6059
6060case $host_os in
6061aix3*)
6062 version_type=linux
6063 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6064 shlibpath_var=LIBPATH
6065
6066 # AIX has no versioning support, so we append a major version to the name.
6067 soname_spec='${libname}${release}.so$major'
6068 ;;
6069
6070aix4* | aix5*)
6071 version_type=linux
jjako08d331d2003-10-13 20:33:30 +00006072 need_lib_prefix=no
6073 need_version=no
6074 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00006075 if test "$host_cpu" = ia64; then
6076 # AIX 5 supports IA64
6077 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6078 shlibpath_var=LD_LIBRARY_PATH
6079 else
6080 # With GCC up to 2.95.x, collect2 would create an import file
6081 # for dependence libraries. The import file would start with
6082 # the line `#! .'. This would cause the generated library to
6083 # depend on `.', always an invalid library. This was fixed in
6084 # development snapshots of GCC prior to 3.0.
6085 case $host_os in
6086 aix4 | aix4.[01] | aix4.[01].*)
6087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6088 echo ' yes '
6089 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6090 :
6091 else
6092 can_build_shared=no
6093 fi
6094 ;;
6095 esac
6096 # AIX (on Power*) has no versioning support, so currently we can
6097 # not hardcode correct soname into executable. Probably we can
6098 # add versioning support to collect2, so additional links can
6099 # be useful in future.
6100 if test "$aix_use_runtimelinking" = yes; then
6101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6102 # instead of lib<name>.a to let people know that these are not
6103 # typical AIX shared libraries.
6104 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6105 else
6106 # We preserve .a as extension for shared libraries through AIX4.2
6107 # and later when we are not doing run time linking.
6108 library_names_spec='${libname}${release}.a $libname.a'
6109 soname_spec='${libname}${release}.so$major'
6110 fi
6111 shlibpath_var=LIBPATH
6112 fi
jjako08d331d2003-10-13 20:33:30 +00006113 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00006114 ;;
6115
6116amigaos*)
6117 library_names_spec='$libname.ixlibrary $libname.a'
6118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6119 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'
6120 ;;
6121
6122beos*)
6123 library_names_spec='${libname}.so'
6124 dynamic_linker="$host_os ld.so"
6125 shlibpath_var=LIBRARY_PATH
6126 ;;
6127
6128bsdi4*)
6129 version_type=linux
6130 need_version=no
6131 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6132 soname_spec='${libname}${release}.so$major'
6133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6134 shlibpath_var=LD_LIBRARY_PATH
6135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6137 export_dynamic_flag_spec=-rdynamic
6138 # the default ld.so.conf also contains /usr/contrib/lib and
6139 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6140 # libtool to hard-code these into programs
6141 ;;
6142
6143cygwin* | mingw* | pw32*)
6144 version_type=windows
6145 need_version=no
6146 need_lib_prefix=no
6147 case $GCC,$host_os in
6148 yes,cygwin*)
6149 library_names_spec='$libname.dll.a'
6150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6151 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6152 dldir=$destdir/`dirname \$dlpath`~
6153 test -d \$dldir || mkdir -p \$dldir~
6154 $install_prog .libs/$dlname \$dldir/$dlname'
6155 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6156 dlpath=$dir/\$dldll~
6157 $rm \$dlpath'
6158 ;;
6159 yes,mingw*)
6160 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
jjako08d331d2003-10-13 20:33:30 +00006161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
jjako286bc982003-01-28 23:17:50 +00006162 ;;
6163 yes,pw32*)
6164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6165 ;;
6166 *)
6167 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6168 ;;
6169 esac
6170 dynamic_linker='Win32 ld.exe'
6171 # FIXME: first we should search . and the directory the executable is in
6172 shlibpath_var=PATH
6173 ;;
6174
6175darwin* | rhapsody*)
6176 dynamic_linker="$host_os dyld"
6177 version_type=darwin
6178 need_lib_prefix=no
6179 need_version=no
6180 # FIXME: Relying on posixy $() will cause problems for
6181 # cross-compilation, but unfortunately the echo tests do not
6182 # yet detect zsh echo's removal of \ escapes.
6183 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6184 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6185 shlibpath_overrides_runpath=yes
6186 shlibpath_var=DYLD_LIBRARY_PATH
6187 ;;
6188
6189freebsd1*)
6190 dynamic_linker=no
6191 ;;
6192
6193freebsd*)
6194 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6195 version_type=freebsd-$objformat
6196 case $version_type in
6197 freebsd-elf*)
6198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6199 need_version=no
6200 need_lib_prefix=no
6201 ;;
6202 freebsd-*)
6203 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6204 need_version=yes
6205 ;;
6206 esac
6207 shlibpath_var=LD_LIBRARY_PATH
6208 case $host_os in
6209 freebsd2*)
6210 shlibpath_overrides_runpath=yes
6211 ;;
6212 *)
6213 shlibpath_overrides_runpath=no
6214 hardcode_into_libs=yes
6215 ;;
6216 esac
6217 ;;
6218
6219gnu*)
6220 version_type=linux
6221 need_lib_prefix=no
6222 need_version=no
6223 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6224 soname_spec='${libname}${release}.so$major'
6225 shlibpath_var=LD_LIBRARY_PATH
6226 hardcode_into_libs=yes
6227 ;;
6228
6229hpux9* | hpux10* | hpux11*)
6230 # Give a soname corresponding to the major version so that dld.sl refuses to
6231 # link against other versions.
6232 dynamic_linker="$host_os dld.sl"
6233 version_type=sunos
6234 need_lib_prefix=no
6235 need_version=no
6236 shlibpath_var=SHLIB_PATH
6237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6238 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6239 soname_spec='${libname}${release}.sl$major'
6240 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6241 postinstall_cmds='chmod 555 $lib'
6242 ;;
6243
jjako08d331d2003-10-13 20:33:30 +00006244irix5* | irix6* | nonstopux*)
6245 case $host_os in
6246 nonstopux*) version_type=nonstopux ;;
6247 *) version_type=irix ;;
6248 esac
jjako286bc982003-01-28 23:17:50 +00006249 need_lib_prefix=no
6250 need_version=no
6251 soname_spec='${libname}${release}.so$major'
6252 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6253 case $host_os in
jjako08d331d2003-10-13 20:33:30 +00006254 irix5* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00006255 libsuff= shlibsuff=
6256 ;;
6257 *)
6258 case $LD in # libtool.m4 will add one of these switches to LD
6259 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6260 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6261 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6262 *) libsuff= shlibsuff= libmagic=never-match;;
6263 esac
6264 ;;
6265 esac
6266 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6267 shlibpath_overrides_runpath=no
6268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6270 ;;
6271
6272# No shared lib support for Linux oldld, aout, or coff.
6273linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6274 dynamic_linker=no
6275 ;;
6276
6277# This must be Linux ELF.
6278linux-gnu*)
6279 version_type=linux
6280 need_lib_prefix=no
6281 need_version=no
6282 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6283 soname_spec='${libname}${release}.so$major'
6284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6285 shlibpath_var=LD_LIBRARY_PATH
6286 shlibpath_overrides_runpath=no
6287 # This implies no fast_install, which is unacceptable.
6288 # Some rework will be needed to allow for fast_install
6289 # before this can be enabled.
6290 hardcode_into_libs=yes
6291
6292 # We used to test for /lib/ld.so.1 and disable shared libraries on
6293 # powerpc, because MkLinux only supported shared libraries with the
6294 # GNU dynamic linker. Since this was broken with cross compilers,
6295 # most powerpc-linux boxes support dynamic linking these days and
6296 # people can always --disable-shared, the test was removed, and we
6297 # assume the GNU/Linux dynamic linker is in use.
6298 dynamic_linker='GNU/Linux ld.so'
jjako08d331d2003-10-13 20:33:30 +00006299
6300 # Find out which ABI we are using (multilib Linux x86_64 hack).
6301 libsuff=
6302 case "$host_cpu" in
6303 x86_64*|s390x*)
6304 echo '#line 6304 "configure"' > conftest.$ac_ext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; then
6310 case `/usr/bin/file conftest.$ac_objext` in
6311 *64-bit*)
6312 libsuff=64
6313 ;;
6314 esac
6315 fi
6316 rm -rf conftest*
6317 ;;
6318 *)
6319 ;;
6320 esac
6321 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6322 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
jjako286bc982003-01-28 23:17:50 +00006323 ;;
6324
6325netbsd*)
6326 version_type=sunos
6327 need_lib_prefix=no
6328 need_version=no
6329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6330 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6332 dynamic_linker='NetBSD (a.out) ld.so'
6333 else
6334 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6335 soname_spec='${libname}${release}.so$major'
6336 dynamic_linker='NetBSD ld.elf_so'
6337 fi
6338 shlibpath_var=LD_LIBRARY_PATH
6339 shlibpath_overrides_runpath=yes
6340 hardcode_into_libs=yes
6341 ;;
6342
6343newsos6)
6344 version_type=linux
6345 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6346 shlibpath_var=LD_LIBRARY_PATH
6347 shlibpath_overrides_runpath=yes
6348 ;;
6349
6350openbsd*)
6351 version_type=sunos
6352 need_lib_prefix=no
6353 need_version=no
6354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6355 case "$host_os" in
6356 openbsd2.[89] | openbsd2.[89].*)
6357 shlibpath_overrides_runpath=no
6358 ;;
6359 *)
6360 shlibpath_overrides_runpath=yes
6361 ;;
6362 esac
6363 else
6364 shlibpath_overrides_runpath=yes
6365 fi
6366 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6368 shlibpath_var=LD_LIBRARY_PATH
6369 ;;
6370
6371os2*)
6372 libname_spec='$name'
6373 need_lib_prefix=no
6374 library_names_spec='$libname.dll $libname.a'
6375 dynamic_linker='OS/2 ld.exe'
6376 shlibpath_var=LIBPATH
6377 ;;
6378
6379osf3* | osf4* | osf5*)
6380 version_type=osf
6381 need_version=no
jjako08d331d2003-10-13 20:33:30 +00006382 soname_spec='${libname}${release}.so$major'
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
jjako286bc982003-01-28 23:17:50 +00006384 shlibpath_var=LD_LIBRARY_PATH
6385 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6386 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
jjako08d331d2003-10-13 20:33:30 +00006387 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00006388 ;;
6389
6390sco3.2v5*)
6391 version_type=osf
6392 soname_spec='${libname}${release}.so$major'
6393 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6394 shlibpath_var=LD_LIBRARY_PATH
6395 ;;
6396
6397solaris*)
6398 version_type=linux
6399 need_lib_prefix=no
6400 need_version=no
6401 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6402 soname_spec='${libname}${release}.so$major'
6403 shlibpath_var=LD_LIBRARY_PATH
6404 shlibpath_overrides_runpath=yes
6405 hardcode_into_libs=yes
6406 # ldd complains unless libraries are executable
6407 postinstall_cmds='chmod +x $lib'
6408 ;;
6409
6410sunos4*)
6411 version_type=sunos
6412 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6414 shlibpath_var=LD_LIBRARY_PATH
6415 shlibpath_overrides_runpath=yes
6416 if test "$with_gnu_ld" = yes; then
6417 need_lib_prefix=no
6418 fi
6419 need_version=yes
6420 ;;
6421
6422sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6423 version_type=linux
6424 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6425 soname_spec='${libname}${release}.so$major'
6426 shlibpath_var=LD_LIBRARY_PATH
6427 case $host_vendor in
6428 sni)
6429 shlibpath_overrides_runpath=no
jjako08d331d2003-10-13 20:33:30 +00006430 need_lib_prefix=no
6431 export_dynamic_flag_spec='${wl}-Blargedynsym'
6432 runpath_var=LD_RUN_PATH
6433 ;;
6434 siemens)
6435 need_lib_prefix=no
jjako286bc982003-01-28 23:17:50 +00006436 ;;
6437 motorola)
6438 need_lib_prefix=no
6439 need_version=no
6440 shlibpath_overrides_runpath=no
6441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6442 ;;
6443 esac
6444 ;;
6445
6446uts4*)
6447 version_type=linux
6448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449 soname_spec='${libname}${release}.so$major'
6450 shlibpath_var=LD_LIBRARY_PATH
6451 ;;
6452
6453dgux*)
6454 version_type=linux
6455 need_lib_prefix=no
6456 need_version=no
6457 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6458 soname_spec='${libname}${release}.so$major'
6459 shlibpath_var=LD_LIBRARY_PATH
6460 ;;
6461
6462sysv4*MP*)
6463 if test -d /usr/nec ;then
6464 version_type=linux
6465 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6466 soname_spec='$libname.so.$major'
6467 shlibpath_var=LD_LIBRARY_PATH
6468 fi
6469 ;;
6470
6471*)
6472 dynamic_linker=no
6473 ;;
6474esac
6475echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6476echo "${ECHO_T}$dynamic_linker" >&6
6477test "$dynamic_linker" = no && can_build_shared=no
6478
6479# Report the final consequences.
6480echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6481echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6482echo "$as_me:$LINENO: result: $can_build_shared" >&5
6483echo "${ECHO_T}$can_build_shared" >&6
6484
6485echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6486echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6487test "$can_build_shared" = "no" && enable_shared=no
6488
6489# On AIX, shared libraries and static libraries use the same namespace, and
6490# are all built from PIC.
6491case "$host_os" in
6492aix3*)
6493 test "$enable_shared" = yes && enable_static=no
6494 if test -n "$RANLIB"; then
6495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6496 postinstall_cmds='$RANLIB $lib'
6497 fi
6498 ;;
6499
6500aix4*)
6501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6502 test "$enable_shared" = yes && enable_static=no
6503 fi
6504 ;;
6505esac
6506echo "$as_me:$LINENO: result: $enable_shared" >&5
6507echo "${ECHO_T}$enable_shared" >&6
6508
6509echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6510echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6511# Make sure either enable_shared or enable_static is yes.
6512test "$enable_shared" = yes || enable_static=yes
6513echo "$as_me:$LINENO: result: $enable_static" >&5
6514echo "${ECHO_T}$enable_static" >&6
6515
6516if test "$hardcode_action" = relink; then
6517 # Fast installation is not supported
6518 enable_fast_install=no
6519elif test "$shlibpath_overrides_runpath" = yes ||
6520 test "$enable_shared" = no; then
6521 # Fast installation is not necessary
6522 enable_fast_install=needless
6523fi
6524
6525variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6526if test "$GCC" = yes; then
6527 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6528fi
6529
6530if test "x$enable_dlopen" != xyes; then
6531 enable_dlopen=unknown
6532 enable_dlopen_self=unknown
6533 enable_dlopen_self_static=unknown
6534else
6535 lt_cv_dlopen=no
6536 lt_cv_dlopen_libs=
6537
6538 case $host_os in
6539 beos*)
6540 lt_cv_dlopen="load_add_on"
6541 lt_cv_dlopen_libs=
6542 lt_cv_dlopen_self=yes
6543 ;;
6544
6545 cygwin* | mingw* | pw32*)
6546 lt_cv_dlopen="LoadLibrary"
6547 lt_cv_dlopen_libs=
6548 ;;
6549
6550 *)
6551 echo "$as_me:$LINENO: checking for shl_load" >&5
6552echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6553if test "${ac_cv_func_shl_load+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556 cat >conftest.$ac_ext <<_ACEOF
6557#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006558/* confdefs.h. */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006563/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00006564 which can conflict with char shl_load (); below.
6565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6566 <limits.h> exists even on freestanding compilers. */
6567#ifdef __STDC__
6568# include <limits.h>
6569#else
6570# include <assert.h>
6571#endif
jjako286bc982003-01-28 23:17:50 +00006572/* Override any gcc2 internal prototype to avoid an error. */
6573#ifdef __cplusplus
6574extern "C"
jjako08d331d2003-10-13 20:33:30 +00006575{
jjako286bc982003-01-28 23:17:50 +00006576#endif
6577/* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579char shl_load ();
jjako286bc982003-01-28 23:17:50 +00006580/* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583#if defined (__stub_shl_load) || defined (__stub___shl_load)
6584choke me
6585#else
jjako08d331d2003-10-13 20:33:30 +00006586char (*f) () = shl_load;
6587#endif
6588#ifdef __cplusplus
6589}
jjako286bc982003-01-28 23:17:50 +00006590#endif
6591
jjako08d331d2003-10-13 20:33:30 +00006592int
6593main ()
6594{
6595return f != shl_load;
jjako286bc982003-01-28 23:17:50 +00006596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 ac_cv_func_shl_load=yes
6613else
6614 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006615sed 's/^/| /' conftest.$ac_ext >&5
6616
jjako286bc982003-01-28 23:17:50 +00006617ac_cv_func_shl_load=no
6618fi
6619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6620fi
6621echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6622echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6623if test $ac_cv_func_shl_load = yes; then
6624 lt_cv_dlopen="shl_load"
6625else
6626 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6627echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6628if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631 ac_check_lib_save_LIBS=$LIBS
6632LIBS="-ldld $LIBS"
6633cat >conftest.$ac_ext <<_ACEOF
6634#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006635/* confdefs.h. */
6636_ACEOF
6637cat confdefs.h >>conftest.$ac_ext
6638cat >>conftest.$ac_ext <<_ACEOF
6639/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006640
6641/* Override any gcc2 internal prototype to avoid an error. */
6642#ifdef __cplusplus
6643extern "C"
6644#endif
6645/* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */
6647char shl_load ();
jjako286bc982003-01-28 23:17:50 +00006648int
6649main ()
6650{
6651shl_load ();
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656rm -f conftest.$ac_objext conftest$ac_exeext
6657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6658 (eval $ac_link) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_lib_dld_shl_load=yes
6669else
6670 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006671sed 's/^/| /' conftest.$ac_ext >&5
6672
jjako286bc982003-01-28 23:17:50 +00006673ac_cv_lib_dld_shl_load=no
6674fi
6675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6676LIBS=$ac_check_lib_save_LIBS
6677fi
6678echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6679echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6680if test $ac_cv_lib_dld_shl_load = yes; then
6681 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6682else
6683 echo "$as_me:$LINENO: checking for dlopen" >&5
6684echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6685if test "${ac_cv_func_dlopen+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 cat >conftest.$ac_ext <<_ACEOF
6689#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006690/* confdefs.h. */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006695/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00006696 which can conflict with char dlopen (); below.
6697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698 <limits.h> exists even on freestanding compilers. */
6699#ifdef __STDC__
6700# include <limits.h>
6701#else
6702# include <assert.h>
6703#endif
jjako286bc982003-01-28 23:17:50 +00006704/* Override any gcc2 internal prototype to avoid an error. */
6705#ifdef __cplusplus
6706extern "C"
jjako08d331d2003-10-13 20:33:30 +00006707{
jjako286bc982003-01-28 23:17:50 +00006708#endif
6709/* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6711char dlopen ();
jjako286bc982003-01-28 23:17:50 +00006712/* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715#if defined (__stub_dlopen) || defined (__stub___dlopen)
6716choke me
6717#else
jjako08d331d2003-10-13 20:33:30 +00006718char (*f) () = dlopen;
6719#endif
6720#ifdef __cplusplus
6721}
jjako286bc982003-01-28 23:17:50 +00006722#endif
6723
jjako08d331d2003-10-13 20:33:30 +00006724int
6725main ()
6726{
6727return f != dlopen;
jjako286bc982003-01-28 23:17:50 +00006728 ;
6729 return 0;
6730}
6731_ACEOF
6732rm -f conftest.$ac_objext conftest$ac_exeext
6733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6734 (eval $ac_link) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -s conftest$ac_exeext'
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 (eval $ac_try) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; }; then
6744 ac_cv_func_dlopen=yes
6745else
6746 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006747sed 's/^/| /' conftest.$ac_ext >&5
6748
jjako286bc982003-01-28 23:17:50 +00006749ac_cv_func_dlopen=no
6750fi
6751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6752fi
6753echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6754echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6755if test $ac_cv_func_dlopen = yes; then
6756 lt_cv_dlopen="dlopen"
6757else
6758 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6759echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6760if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763 ac_check_lib_save_LIBS=$LIBS
6764LIBS="-ldl $LIBS"
6765cat >conftest.$ac_ext <<_ACEOF
6766#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006767/* confdefs.h. */
6768_ACEOF
6769cat confdefs.h >>conftest.$ac_ext
6770cat >>conftest.$ac_ext <<_ACEOF
6771/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006772
6773/* Override any gcc2 internal prototype to avoid an error. */
6774#ifdef __cplusplus
6775extern "C"
6776#endif
6777/* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6779char dlopen ();
jjako286bc982003-01-28 23:17:50 +00006780int
6781main ()
6782{
6783dlopen ();
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788rm -f conftest.$ac_objext conftest$ac_exeext
6789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
6794 { ac_try='test -s conftest$ac_exeext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_cv_lib_dl_dlopen=yes
6801else
6802 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006803sed 's/^/| /' conftest.$ac_ext >&5
6804
jjako286bc982003-01-28 23:17:50 +00006805ac_cv_lib_dl_dlopen=no
6806fi
6807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6808LIBS=$ac_check_lib_save_LIBS
6809fi
6810echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6811echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6812if test $ac_cv_lib_dl_dlopen = yes; then
6813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6814else
6815 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6816echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6817if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 ac_check_lib_save_LIBS=$LIBS
6821LIBS="-lsvld $LIBS"
6822cat >conftest.$ac_ext <<_ACEOF
6823#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006824/* confdefs.h. */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006829
6830/* Override any gcc2 internal prototype to avoid an error. */
6831#ifdef __cplusplus
6832extern "C"
6833#endif
6834/* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6836char dlopen ();
jjako286bc982003-01-28 23:17:50 +00006837int
6838main ()
6839{
6840dlopen ();
6841 ;
6842 return 0;
6843}
6844_ACEOF
6845rm -f conftest.$ac_objext conftest$ac_exeext
6846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -s conftest$ac_exeext'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 (eval $ac_try) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 ac_cv_lib_svld_dlopen=yes
6858else
6859 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006860sed 's/^/| /' conftest.$ac_ext >&5
6861
jjako286bc982003-01-28 23:17:50 +00006862ac_cv_lib_svld_dlopen=no
6863fi
6864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6865LIBS=$ac_check_lib_save_LIBS
6866fi
6867echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6868echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6869if test $ac_cv_lib_svld_dlopen = yes; then
6870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6871else
6872 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6873echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6874if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877 ac_check_lib_save_LIBS=$LIBS
6878LIBS="-ldld $LIBS"
6879cat >conftest.$ac_ext <<_ACEOF
6880#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006886
6887/* Override any gcc2 internal prototype to avoid an error. */
6888#ifdef __cplusplus
6889extern "C"
6890#endif
6891/* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6893char dld_link ();
jjako286bc982003-01-28 23:17:50 +00006894int
6895main ()
6896{
6897dld_link ();
6898 ;
6899 return 0;
6900}
6901_ACEOF
6902rm -f conftest.$ac_objext conftest$ac_exeext
6903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_lib_dld_dld_link=yes
6915else
6916 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006917sed 's/^/| /' conftest.$ac_ext >&5
6918
jjako286bc982003-01-28 23:17:50 +00006919ac_cv_lib_dld_dld_link=no
6920fi
6921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6922LIBS=$ac_check_lib_save_LIBS
6923fi
6924echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6925echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6926if test $ac_cv_lib_dld_dld_link = yes; then
6927 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6928fi
6929
6930
6931fi
6932
6933
6934fi
6935
6936
6937fi
6938
6939
6940fi
6941
6942
6943fi
6944
6945 ;;
6946 esac
6947
6948 if test "x$lt_cv_dlopen" != xno; then
6949 enable_dlopen=yes
6950 else
6951 enable_dlopen=no
6952 fi
6953
6954 case $lt_cv_dlopen in
6955 dlopen)
6956 save_CPPFLAGS="$CPPFLAGS"
6957 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6958
6959 save_LDFLAGS="$LDFLAGS"
6960 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6961
6962 save_LIBS="$LIBS"
6963 LIBS="$lt_cv_dlopen_libs $LIBS"
6964
6965 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6966echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6967if test "${lt_cv_dlopen_self+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970 if test "$cross_compiling" = yes; then :
6971 lt_cv_dlopen_self=cross
6972else
6973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6974 lt_status=$lt_dlunknown
6975 cat > conftest.$ac_ext <<EOF
jjako08d331d2003-10-13 20:33:30 +00006976#line 6976 "configure"
jjako286bc982003-01-28 23:17:50 +00006977#include "confdefs.h"
6978
6979#if HAVE_DLFCN_H
6980#include <dlfcn.h>
6981#endif
6982
6983#include <stdio.h>
6984
6985#ifdef RTLD_GLOBAL
6986# define LT_DLGLOBAL RTLD_GLOBAL
6987#else
6988# ifdef DL_GLOBAL
6989# define LT_DLGLOBAL DL_GLOBAL
6990# else
6991# define LT_DLGLOBAL 0
6992# endif
6993#endif
6994
6995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6996 find out it does not work in some platform. */
6997#ifndef LT_DLLAZY_OR_NOW
6998# ifdef RTLD_LAZY
6999# define LT_DLLAZY_OR_NOW RTLD_LAZY
7000# else
7001# ifdef DL_LAZY
7002# define LT_DLLAZY_OR_NOW DL_LAZY
7003# else
7004# ifdef RTLD_NOW
7005# define LT_DLLAZY_OR_NOW RTLD_NOW
7006# else
7007# ifdef DL_NOW
7008# define LT_DLLAZY_OR_NOW DL_NOW
7009# else
7010# define LT_DLLAZY_OR_NOW 0
7011# endif
7012# endif
7013# endif
7014# endif
7015#endif
7016
7017#ifdef __cplusplus
7018extern "C" void exit (int);
7019#endif
7020
7021void fnord() { int i=42;}
7022int main ()
7023{
7024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7025 int status = $lt_dlunknown;
7026
7027 if (self)
7028 {
7029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7030 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7031 /* dlclose (self); */
7032 }
7033
7034 exit (status);
7035}
7036EOF
7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7042 (./conftest; exit; ) 2>/dev/null
7043 lt_status=$?
7044 case x$lt_status in
7045 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7046 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7047 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7048 esac
7049 else :
7050 # compilation failed
7051 lt_cv_dlopen_self=no
7052 fi
7053fi
7054rm -fr conftest*
7055
7056
7057fi
7058echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7059echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7060
7061 if test "x$lt_cv_dlopen_self" = xyes; then
7062 LDFLAGS="$LDFLAGS $link_static_flag"
7063 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7064echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7065if test "${lt_cv_dlopen_self_static+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068 if test "$cross_compiling" = yes; then :
7069 lt_cv_dlopen_self_static=cross
7070else
7071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7072 lt_status=$lt_dlunknown
7073 cat > conftest.$ac_ext <<EOF
jjako08d331d2003-10-13 20:33:30 +00007074#line 7074 "configure"
jjako286bc982003-01-28 23:17:50 +00007075#include "confdefs.h"
7076
7077#if HAVE_DLFCN_H
7078#include <dlfcn.h>
7079#endif
7080
7081#include <stdio.h>
7082
7083#ifdef RTLD_GLOBAL
7084# define LT_DLGLOBAL RTLD_GLOBAL
7085#else
7086# ifdef DL_GLOBAL
7087# define LT_DLGLOBAL DL_GLOBAL
7088# else
7089# define LT_DLGLOBAL 0
7090# endif
7091#endif
7092
7093/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7094 find out it does not work in some platform. */
7095#ifndef LT_DLLAZY_OR_NOW
7096# ifdef RTLD_LAZY
7097# define LT_DLLAZY_OR_NOW RTLD_LAZY
7098# else
7099# ifdef DL_LAZY
7100# define LT_DLLAZY_OR_NOW DL_LAZY
7101# else
7102# ifdef RTLD_NOW
7103# define LT_DLLAZY_OR_NOW RTLD_NOW
7104# else
7105# ifdef DL_NOW
7106# define LT_DLLAZY_OR_NOW DL_NOW
7107# else
7108# define LT_DLLAZY_OR_NOW 0
7109# endif
7110# endif
7111# endif
7112# endif
7113#endif
7114
7115#ifdef __cplusplus
7116extern "C" void exit (int);
7117#endif
7118
7119void fnord() { int i=42;}
7120int main ()
7121{
7122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7123 int status = $lt_dlunknown;
7124
7125 if (self)
7126 {
7127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7128 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7129 /* dlclose (self); */
7130 }
7131
7132 exit (status);
7133}
7134EOF
7135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7136 (eval $ac_link) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7140 (./conftest; exit; ) 2>/dev/null
7141 lt_status=$?
7142 case x$lt_status in
7143 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7144 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7145 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7146 esac
7147 else :
7148 # compilation failed
7149 lt_cv_dlopen_self_static=no
7150 fi
7151fi
7152rm -fr conftest*
7153
7154
7155fi
7156echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7157echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7158 fi
7159
7160 CPPFLAGS="$save_CPPFLAGS"
7161 LDFLAGS="$save_LDFLAGS"
7162 LIBS="$save_LIBS"
7163 ;;
7164 esac
7165
7166 case $lt_cv_dlopen_self in
7167 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7168 *) enable_dlopen_self=unknown ;;
7169 esac
7170
7171 case $lt_cv_dlopen_self_static in
7172 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7173 *) enable_dlopen_self_static=unknown ;;
7174 esac
7175fi
7176
7177
7178if test "$enable_shared" = yes && test "$GCC" = yes; then
7179 case $archive_cmds in
7180 *'~'*)
7181 # FIXME: we may have to deal with multi-command sequences.
7182 ;;
7183 '$CC '*)
7184 # Test whether the compiler implicitly links with -lc since on some
7185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7186 # to ld, don't add -lc before -lgcc.
7187 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7188echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7189 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 $rm conftest*
7193 echo 'static int dummy;' > conftest.$ac_ext
7194
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; then
7200 soname=conftest
7201 lib=conftest
7202 libobjs=conftest.$ac_objext
7203 deplibs=
7204 wl=$lt_cv_prog_cc_wl
7205 compiler_flags=-v
7206 linker_flags=-v
7207 verstring=
7208 output_objdir=.
7209 libname=conftest
7210 save_allow_undefined_flag=$allow_undefined_flag
7211 allow_undefined_flag=
7212 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7213 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }
7217 then
7218 lt_cv_archive_cmds_need_lc=no
7219 else
7220 lt_cv_archive_cmds_need_lc=yes
7221 fi
7222 allow_undefined_flag=$save_allow_undefined_flag
7223 else
7224 cat conftest.err 1>&5
7225 fi
7226fi
7227
7228 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7229echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7230 ;;
7231 esac
7232fi
7233need_lc=${lt_cv_archive_cmds_need_lc-yes}
7234
7235# The second clause should only fire when bootstrapping the
7236# libtool distribution, otherwise you forgot to ship ltmain.sh
7237# with your package, and you will get complaints that there are
7238# no rules to generate ltmain.sh.
7239if test -f "$ltmain"; then
7240 :
7241else
7242 # If there is no Makefile yet, we rely on a make rule to execute
7243 # `config.status --recheck' to rerun these tests and create the
7244 # libtool script then.
7245 test -f Makefile && make "$ltmain"
7246fi
7247
7248if test -f "$ltmain"; then
7249 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7250 $rm -f "${ofile}T"
7251
7252 echo creating $ofile
7253
7254 # Now quote all the things that may contain metacharacters while being
7255 # careful not to overquote the AC_SUBSTed values. We take copies of the
7256 # variables and quote the copies for generation of the libtool script.
jjako08d331d2003-10-13 20:33:30 +00007257 for var in echo old_CC old_CFLAGS SED \
jjako286bc982003-01-28 23:17:50 +00007258 AR AR_FLAGS CC LD LN_S NM SHELL \
7259 reload_flag reload_cmds wl \
7260 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7261 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7262 library_names_spec soname_spec \
7263 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7264 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7265 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7266 old_striplib striplib file_magic_cmd export_symbols_cmds \
7267 deplibs_check_method allow_undefined_flag no_undefined_flag \
7268 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7269 global_symbol_to_c_name_address \
7270 hardcode_libdir_flag_spec hardcode_libdir_separator \
7271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7272 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7273
7274 case $var in
7275 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7276 old_postinstall_cmds | old_postuninstall_cmds | \
7277 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7278 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7279 postinstall_cmds | postuninstall_cmds | \
7280 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7281 # Double-quote double-evaled strings.
7282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7283 ;;
7284 *)
7285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7286 ;;
7287 esac
7288 done
7289
7290 cat <<__EOF__ > "${ofile}T"
7291#! $SHELL
7292
7293# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7294# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7295# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7296#
7297# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7298# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7299#
7300# This program is free software; you can redistribute it and/or modify
7301# it under the terms of the GNU General Public License as published by
7302# the Free Software Foundation; either version 2 of the License, or
7303# (at your option) any later version.
7304#
7305# This program is distributed in the hope that it will be useful, but
7306# WITHOUT ANY WARRANTY; without even the implied warranty of
7307# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7308# General Public License for more details.
7309#
7310# You should have received a copy of the GNU General Public License
7311# along with this program; if not, write to the Free Software
7312# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7313#
7314# As a special exception to the GNU General Public License, if you
7315# distribute this file as part of a program that contains a
7316# configuration script generated by Autoconf, you may include it under
7317# the same distribution terms that you use for the rest of that program.
7318
jjako08d331d2003-10-13 20:33:30 +00007319# A sed that does not truncate output.
7320SED=$lt_SED
7321
jjako286bc982003-01-28 23:17:50 +00007322# Sed that helps us avoid accidentally triggering echo(1) options like -n.
jjako08d331d2003-10-13 20:33:30 +00007323Xsed="${SED} -e s/^X//"
jjako286bc982003-01-28 23:17:50 +00007324
7325# The HP-UX ksh and POSIX shell print the target directory to stdout
7326# if CDPATH is set.
7327if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7328
7329# ### BEGIN LIBTOOL CONFIG
7330
7331# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7332
7333# Shell to use when invoking shell scripts.
7334SHELL=$lt_SHELL
7335
7336# Whether or not to build shared libraries.
7337build_libtool_libs=$enable_shared
7338
7339# Whether or not to build static libraries.
7340build_old_libs=$enable_static
7341
7342# Whether or not to add -lc for building shared libraries.
7343build_libtool_need_lc=$need_lc
7344
7345# Whether or not to optimize for fast installation.
7346fast_install=$enable_fast_install
7347
7348# The host system.
7349host_alias=$host_alias
7350host=$host
7351
7352# An echo program that does not interpret backslashes.
7353echo=$lt_echo
7354
7355# The archiver.
7356AR=$lt_AR
7357AR_FLAGS=$lt_AR_FLAGS
7358
7359# The default C compiler.
7360CC=$lt_CC
7361
7362# Is the compiler the GNU C compiler?
7363with_gcc=$GCC
7364
7365# The linker used to build libraries.
7366LD=$lt_LD
7367
7368# Whether we need hard or soft links.
7369LN_S=$lt_LN_S
7370
7371# A BSD-compatible nm program.
7372NM=$lt_NM
7373
7374# A symbol stripping program
7375STRIP=$STRIP
7376
7377# Used to examine libraries when file_magic_cmd begins "file"
7378MAGIC_CMD=$MAGIC_CMD
7379
7380# Used on cygwin: DLL creation program.
7381DLLTOOL="$DLLTOOL"
7382
7383# Used on cygwin: object dumper.
7384OBJDUMP="$OBJDUMP"
7385
7386# Used on cygwin: assembler.
7387AS="$AS"
7388
7389# The name of the directory that contains temporary libtool files.
7390objdir=$objdir
7391
7392# How to create reloadable object files.
7393reload_flag=$lt_reload_flag
7394reload_cmds=$lt_reload_cmds
7395
7396# How to pass a linker flag through the compiler.
7397wl=$lt_wl
7398
7399# Object file suffix (normally "o").
7400objext="$ac_objext"
7401
7402# Old archive suffix (normally "a").
7403libext="$libext"
7404
7405# Executable file suffix (normally "").
7406exeext="$exeext"
7407
7408# Additional compiler flags for building library objects.
7409pic_flag=$lt_pic_flag
7410pic_mode=$pic_mode
7411
7412# Does compiler simultaneously support -c and -o options?
7413compiler_c_o=$lt_compiler_c_o
7414
7415# Can we write directly to a .lo ?
7416compiler_o_lo=$lt_compiler_o_lo
7417
7418# Must we lock files when doing compilation ?
7419need_locks=$lt_need_locks
7420
7421# Do we need the lib prefix for modules?
7422need_lib_prefix=$need_lib_prefix
7423
7424# Do we need a version for libraries?
7425need_version=$need_version
7426
7427# Whether dlopen is supported.
7428dlopen_support=$enable_dlopen
7429
7430# Whether dlopen of programs is supported.
7431dlopen_self=$enable_dlopen_self
7432
7433# Whether dlopen of statically linked programs is supported.
7434dlopen_self_static=$enable_dlopen_self_static
7435
7436# Compiler flag to prevent dynamic linking.
7437link_static_flag=$lt_link_static_flag
7438
7439# Compiler flag to turn off builtin functions.
7440no_builtin_flag=$lt_no_builtin_flag
7441
7442# Compiler flag to allow reflexive dlopens.
7443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7444
7445# Compiler flag to generate shared objects directly from archives.
7446whole_archive_flag_spec=$lt_whole_archive_flag_spec
7447
7448# Compiler flag to generate thread-safe objects.
7449thread_safe_flag_spec=$lt_thread_safe_flag_spec
7450
7451# Library versioning type.
7452version_type=$version_type
7453
7454# Format of library name prefix.
7455libname_spec=$lt_libname_spec
7456
7457# List of archive names. First name is the real one, the rest are links.
7458# The last name is the one that the linker finds with -lNAME.
7459library_names_spec=$lt_library_names_spec
7460
7461# The coded name of the library, if different from the real name.
7462soname_spec=$lt_soname_spec
7463
7464# Commands used to build and install an old-style archive.
7465RANLIB=$lt_RANLIB
7466old_archive_cmds=$lt_old_archive_cmds
7467old_postinstall_cmds=$lt_old_postinstall_cmds
7468old_postuninstall_cmds=$lt_old_postuninstall_cmds
7469
7470# Create an old-style archive from a shared archive.
7471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7472
7473# Create a temporary old-style archive to link instead of a shared archive.
7474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7475
7476# Commands used to build and install a shared archive.
7477archive_cmds=$lt_archive_cmds
7478archive_expsym_cmds=$lt_archive_expsym_cmds
7479postinstall_cmds=$lt_postinstall_cmds
7480postuninstall_cmds=$lt_postuninstall_cmds
7481
7482# Commands to strip libraries.
7483old_striplib=$lt_old_striplib
7484striplib=$lt_striplib
7485
7486# Method to check whether dependent libraries are shared objects.
7487deplibs_check_method=$lt_deplibs_check_method
7488
7489# Command to use when deplibs_check_method == file_magic.
7490file_magic_cmd=$lt_file_magic_cmd
7491
7492# Flag that allows shared libraries with undefined symbols to be built.
7493allow_undefined_flag=$lt_allow_undefined_flag
7494
7495# Flag that forces no undefined symbols.
7496no_undefined_flag=$lt_no_undefined_flag
7497
7498# Commands used to finish a libtool library installation in a directory.
7499finish_cmds=$lt_finish_cmds
7500
7501# Same as above, but a single script fragment to be evaled but not shown.
7502finish_eval=$lt_finish_eval
7503
7504# Take the output of nm and produce a listing of raw symbols and C names.
7505global_symbol_pipe=$lt_global_symbol_pipe
7506
7507# Transform the output of nm in a proper C declaration
7508global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7509
7510# Transform the output of nm in a C name address pair
7511global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7512
7513# This is the shared library runtime path variable.
7514runpath_var=$runpath_var
7515
7516# This is the shared library path variable.
7517shlibpath_var=$shlibpath_var
7518
7519# Is shlibpath searched before the hard-coded library search path?
7520shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7521
7522# How to hardcode a shared library path into an executable.
7523hardcode_action=$hardcode_action
7524
7525# Whether we should hardcode library paths into libraries.
7526hardcode_into_libs=$hardcode_into_libs
7527
7528# Flag to hardcode \$libdir into a binary during linking.
7529# This must work even if \$libdir does not exist.
7530hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7531
7532# Whether we need a single -rpath flag with a separated argument.
7533hardcode_libdir_separator=$lt_hardcode_libdir_separator
7534
7535# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7536# resulting binary.
7537hardcode_direct=$hardcode_direct
7538
7539# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7540# resulting binary.
7541hardcode_minus_L=$hardcode_minus_L
7542
7543# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7544# the resulting binary.
7545hardcode_shlibpath_var=$hardcode_shlibpath_var
7546
7547# Variables whose values should be saved in libtool wrapper scripts and
7548# restored at relink time.
7549variables_saved_for_relink="$variables_saved_for_relink"
7550
7551# Whether libtool must link a program against all its dependency libraries.
7552link_all_deplibs=$link_all_deplibs
7553
7554# Compile-time system search path for libraries
7555sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7556
7557# Run-time system search path for libraries
7558sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7559
7560# Fix the shell variable \$srcfile for the compiler.
7561fix_srcfile_path="$fix_srcfile_path"
7562
7563# Set to yes if exported symbols are required.
7564always_export_symbols=$always_export_symbols
7565
7566# The commands to list exported symbols.
7567export_symbols_cmds=$lt_export_symbols_cmds
7568
7569# The commands to extract the exported symbol list from a shared archive.
7570extract_expsyms_cmds=$lt_extract_expsyms_cmds
7571
7572# Symbols that should not be listed in the preloaded symbols.
7573exclude_expsyms=$lt_exclude_expsyms
7574
7575# Symbols that must always be exported.
7576include_expsyms=$lt_include_expsyms
7577
7578# ### END LIBTOOL CONFIG
7579
7580__EOF__
7581
7582 case $host_os in
7583 aix3*)
7584 cat <<\EOF >> "${ofile}T"
7585
7586# AIX sometimes has problems with the GCC collect2 program. For some
7587# reason, if we set the COLLECT_NAMES environment variable, the problems
7588# vanish in a puff of smoke.
7589if test "X${COLLECT_NAMES+set}" != Xset; then
7590 COLLECT_NAMES=
7591 export COLLECT_NAMES
7592fi
7593EOF
7594 ;;
7595 esac
7596
7597 case $host_os in
7598 cygwin* | mingw* | pw32* | os2*)
7599 cat <<'EOF' >> "${ofile}T"
7600 # This is a source program that is used to create dlls on Windows
7601 # Don't remove nor modify the starting and closing comments
7602# /* ltdll.c starts here */
7603# #define WIN32_LEAN_AND_MEAN
7604# #include <windows.h>
7605# #undef WIN32_LEAN_AND_MEAN
7606# #include <stdio.h>
7607#
7608# #ifndef __CYGWIN__
7609# # ifdef __CYGWIN32__
7610# # define __CYGWIN__ __CYGWIN32__
7611# # endif
7612# #endif
7613#
7614# #ifdef __cplusplus
7615# extern "C" {
7616# #endif
7617# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7618# #ifdef __cplusplus
7619# }
7620# #endif
7621#
7622# #ifdef __CYGWIN__
7623# #include <cygwin/cygwin_dll.h>
7624# DECLARE_CYGWIN_DLL( DllMain );
7625# #endif
7626# HINSTANCE __hDllInstance_base;
7627#
7628# BOOL APIENTRY
7629# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7630# {
7631# __hDllInstance_base = hInst;
7632# return TRUE;
7633# }
7634# /* ltdll.c ends here */
7635 # This is a source program that is used to create import libraries
7636 # on Windows for dlls which lack them. Don't remove nor modify the
7637 # starting and closing comments
7638# /* impgen.c starts here */
7639# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7640#
7641# This file is part of GNU libtool.
7642#
7643# This program is free software; you can redistribute it and/or modify
7644# it under the terms of the GNU General Public License as published by
7645# the Free Software Foundation; either version 2 of the License, or
7646# (at your option) any later version.
7647#
7648# This program is distributed in the hope that it will be useful,
7649# but WITHOUT ANY WARRANTY; without even the implied warranty of
7650# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7651# GNU General Public License for more details.
7652#
7653# You should have received a copy of the GNU General Public License
7654# along with this program; if not, write to the Free Software
7655# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7656# */
7657#
7658# #include <stdio.h> /* for printf() */
7659# #include <unistd.h> /* for open(), lseek(), read() */
7660# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7661# #include <string.h> /* for strdup() */
7662#
7663# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7664# #ifndef O_BINARY
7665# #define O_BINARY 0
7666# #endif
7667#
7668# static unsigned int
7669# pe_get16 (fd, offset)
7670# int fd;
7671# int offset;
7672# {
7673# unsigned char b[2];
7674# lseek (fd, offset, SEEK_SET);
7675# read (fd, b, 2);
7676# return b[0] + (b[1]<<8);
7677# }
7678#
7679# static unsigned int
7680# pe_get32 (fd, offset)
7681# int fd;
7682# int offset;
7683# {
7684# unsigned char b[4];
7685# lseek (fd, offset, SEEK_SET);
7686# read (fd, b, 4);
7687# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7688# }
7689#
7690# static unsigned int
7691# pe_as32 (ptr)
7692# void *ptr;
7693# {
7694# unsigned char *b = ptr;
7695# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7696# }
7697#
7698# int
7699# main (argc, argv)
7700# int argc;
7701# char *argv[];
7702# {
7703# int dll;
7704# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7705# unsigned long export_rva, export_size, nsections, secptr, expptr;
7706# unsigned long name_rvas, nexp;
7707# unsigned char *expdata, *erva;
7708# char *filename, *dll_name;
7709#
7710# filename = argv[1];
7711#
7712# dll = open(filename, O_RDONLY|O_BINARY);
7713# if (dll < 1)
7714# return 1;
7715#
7716# dll_name = filename;
7717#
7718# for (i=0; filename[i]; i++)
7719# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7720# dll_name = filename + i +1;
7721#
7722# pe_header_offset = pe_get32 (dll, 0x3c);
7723# opthdr_ofs = pe_header_offset + 4 + 20;
7724# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7725#
7726# if (num_entries < 1) /* no exports */
7727# return 1;
7728#
7729# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7730# export_size = pe_get32 (dll, opthdr_ofs + 100);
7731# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7732# secptr = (pe_header_offset + 4 + 20 +
7733# pe_get16 (dll, pe_header_offset + 4 + 16));
7734#
7735# expptr = 0;
7736# for (i = 0; i < nsections; i++)
7737# {
7738# char sname[8];
7739# unsigned long secptr1 = secptr + 40 * i;
7740# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7741# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7742# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7743# lseek(dll, secptr1, SEEK_SET);
7744# read(dll, sname, 8);
7745# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7746# {
7747# expptr = fptr + (export_rva - vaddr);
7748# if (export_rva + export_size > vaddr + vsize)
7749# export_size = vsize - (export_rva - vaddr);
7750# break;
7751# }
7752# }
7753#
7754# expdata = (unsigned char*)malloc(export_size);
7755# lseek (dll, expptr, SEEK_SET);
7756# read (dll, expdata, export_size);
7757# erva = expdata - export_rva;
7758#
7759# nexp = pe_as32 (expdata+24);
7760# name_rvas = pe_as32 (expdata+32);
7761#
7762# printf ("EXPORTS\n");
7763# for (i = 0; i<nexp; i++)
7764# {
7765# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7766# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7767# }
7768#
7769# return 0;
7770# }
7771# /* impgen.c ends here */
7772
7773EOF
7774 ;;
7775 esac
7776
7777 # We use sed instead of cat because bash on DJGPP gets confused if
7778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7779 # text mode, it properly converts lines to CR/LF. This bash problem
7780 # is reportedly fixed, but why not run on old versions too?
7781 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7782
7783 mv -f "${ofile}T" "$ofile" || \
7784 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7785 chmod +x "$ofile"
7786fi
7787
7788
7789
jjako52c24142002-12-16 13:33:51 +00007790
7791
7792# This can be used to rebuild libtool when needed
jjako286bc982003-01-28 23:17:50 +00007793LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
jjako52c24142002-12-16 13:33:51 +00007794
7795# Always use our own libtool.
7796LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7797
jjako286bc982003-01-28 23:17:50 +00007798# Prevent multiple expansion
jjako52c24142002-12-16 13:33:51 +00007799
7800
jjako286bc982003-01-28 23:17:50 +00007801
7802
jjakoa9639f32003-07-07 15:30:11 +00007803# Check whether --enable-static-exec or --disable-static-exec was given.
7804if test "${enable_static_exec+set}" = set; then
7805 enableval="$enable_static_exec"
7806 EXEC_LDFLAGS="-all-static"
7807fi;
7808
7809
jjako286bc982003-01-28 23:17:50 +00007810
7811# Checks for libraries.
7812# FIXME: Replace `main' with a function in `-le':
jjakoa9639f32003-07-07 15:30:11 +00007813#AC_CHECK_LIB([e], [main])
jjako286bc982003-01-28 23:17:50 +00007814# FIXME: Replace `main' with a function in `-lgtp':
jjakoa9639f32003-07-07 15:30:11 +00007815#AC_CHECK_LIB([gtp], [main])
jjako286bc982003-01-28 23:17:50 +00007816# FIXME: Replace `main' with a function in `-links':
jjakoa9639f32003-07-07 15:30:11 +00007817#AC_CHECK_LIB([inks], [main])
jjako286bc982003-01-28 23:17:50 +00007818
7819# Checks for header files.
7820echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7822if test "${ac_cv_header_stdc+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824else
7825 cat >conftest.$ac_ext <<_ACEOF
7826#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007827/* confdefs.h. */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007832#include <stdlib.h>
7833#include <stdarg.h>
7834#include <string.h>
7835#include <float.h>
jjako286bc982003-01-28 23:17:50 +00007836
jjako08d331d2003-10-13 20:33:30 +00007837int
7838main ()
7839{
7840
7841 ;
7842 return 0;
7843}
jjako286bc982003-01-28 23:17:50 +00007844_ACEOF
jjako08d331d2003-10-13 20:33:30 +00007845rm -f conftest.$ac_objext
7846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
jjako286bc982003-01-28 23:17:50 +00007848 ac_status=$?
jjako286bc982003-01-28 23:17:50 +00007849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjako08d331d2003-10-13 20:33:30 +00007850 (exit $ac_status); } &&
7851 { ac_try='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007857 ac_cv_header_stdc=yes
7858else
jjako286bc982003-01-28 23:17:50 +00007859 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00007860sed 's/^/| /' conftest.$ac_ext >&5
7861
7862ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +00007863fi
jjako08d331d2003-10-13 20:33:30 +00007864rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007865
7866if test $ac_cv_header_stdc = yes; then
7867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007868 cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007870/* confdefs.h. */
7871_ACEOF
7872cat confdefs.h >>conftest.$ac_ext
7873cat >>conftest.$ac_ext <<_ACEOF
7874/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007875#include <string.h>
jjako286bc982003-01-28 23:17:50 +00007876
7877_ACEOF
jjako52c24142002-12-16 13:33:51 +00007878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00007879 $EGREP "memchr" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00007880 :
7881else
jjako52c24142002-12-16 13:33:51 +00007882 ac_cv_header_stdc=no
7883fi
7884rm -f conftest*
7885
7886fi
7887
7888if test $ac_cv_header_stdc = yes; then
7889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007890 cat >conftest.$ac_ext <<_ACEOF
7891#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007892/* confdefs.h. */
7893_ACEOF
7894cat confdefs.h >>conftest.$ac_ext
7895cat >>conftest.$ac_ext <<_ACEOF
7896/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007897#include <stdlib.h>
jjako286bc982003-01-28 23:17:50 +00007898
7899_ACEOF
jjako52c24142002-12-16 13:33:51 +00007900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00007901 $EGREP "free" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00007902 :
7903else
jjako52c24142002-12-16 13:33:51 +00007904 ac_cv_header_stdc=no
7905fi
7906rm -f conftest*
7907
7908fi
7909
7910if test $ac_cv_header_stdc = yes; then
7911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jjako286bc982003-01-28 23:17:50 +00007912 if test "$cross_compiling" = yes; then
jjako52c24142002-12-16 13:33:51 +00007913 :
7914else
jjako286bc982003-01-28 23:17:50 +00007915 cat >conftest.$ac_ext <<_ACEOF
7916#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007917/* confdefs.h. */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007922#include <ctype.h>
jjako286bc982003-01-28 23:17:50 +00007923#if ((' ' & 0x0FF) == 0x020)
7924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7926#else
jjako08d331d2003-10-13 20:33:30 +00007927# define ISLOWER(c) \
7928 (('a' <= (c) && (c) <= 'i') \
jjako286bc982003-01-28 23:17:50 +00007929 || ('j' <= (c) && (c) <= 'r') \
7930 || ('s' <= (c) && (c) <= 'z'))
7931# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7932#endif
jjako52c24142002-12-16 13:33:51 +00007933
jjako286bc982003-01-28 23:17:50 +00007934#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7935int
7936main ()
7937{
7938 int i;
7939 for (i = 0; i < 256; i++)
7940 if (XOR (islower (i), ISLOWER (i))
7941 || toupper (i) != TOUPPER (i))
7942 exit(2);
7943 exit (0);
7944}
7945_ACEOF
7946rm -f conftest$ac_exeext
7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007957 :
7958else
jjako286bc982003-01-28 23:17:50 +00007959 echo "$as_me: program exited with status $ac_status" >&5
7960echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00007961sed 's/^/| /' conftest.$ac_ext >&5
7962
jjako286bc982003-01-28 23:17:50 +00007963( exit $ac_status )
7964ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +00007965fi
jjako08d331d2003-10-13 20:33:30 +00007966rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007967fi
7968fi
jjako286bc982003-01-28 23:17:50 +00007969fi
7970echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7971echo "${ECHO_T}$ac_cv_header_stdc" >&6
jjako52c24142002-12-16 13:33:51 +00007972if test $ac_cv_header_stdc = yes; then
jjako286bc982003-01-28 23:17:50 +00007973
7974cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00007975#define STDC_HEADERS 1
jjako286bc982003-01-28 23:17:50 +00007976_ACEOF
jjako52c24142002-12-16 13:33:51 +00007977
7978fi
7979
jjako286bc982003-01-28 23:17:50 +00007980echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7981echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7982if test "${ac_cv_header_sys_wait_h+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007984else
jjako286bc982003-01-28 23:17:50 +00007985 cat >conftest.$ac_ext <<_ACEOF
7986#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007992#include <sys/types.h>
7993#include <sys/wait.h>
7994#ifndef WEXITSTATUS
jjako286bc982003-01-28 23:17:50 +00007995# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
jjako52c24142002-12-16 13:33:51 +00007996#endif
7997#ifndef WIFEXITED
jjako286bc982003-01-28 23:17:50 +00007998# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
jjako52c24142002-12-16 13:33:51 +00007999#endif
jjako286bc982003-01-28 23:17:50 +00008000
jjako286bc982003-01-28 23:17:50 +00008001int
8002main ()
8003{
8004 int s;
8005 wait (&s);
8006 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8007 ;
8008 return 0;
8009}
8010_ACEOF
8011rm -f conftest.$ac_objext
8012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008023 ac_cv_header_sys_wait_h=yes
8024else
jjako286bc982003-01-28 23:17:50 +00008025 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008026sed 's/^/| /' conftest.$ac_ext >&5
8027
jjako286bc982003-01-28 23:17:50 +00008028ac_cv_header_sys_wait_h=no
jjako52c24142002-12-16 13:33:51 +00008029fi
jjako286bc982003-01-28 23:17:50 +00008030rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008031fi
jjako286bc982003-01-28 23:17:50 +00008032echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8033echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
jjako52c24142002-12-16 13:33:51 +00008034if test $ac_cv_header_sys_wait_h = yes; then
jjako286bc982003-01-28 23:17:50 +00008035
8036cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008037#define HAVE_SYS_WAIT_H 1
jjako286bc982003-01-28 23:17:50 +00008038_ACEOF
jjako52c24142002-12-16 13:33:51 +00008039
8040fi
8041
jjako286bc982003-01-28 23:17:50 +00008042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054for 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 +00008055do
jjako286bc982003-01-28 23:17:50 +00008056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8057if eval "test \"\${$as_ac_Header+set}\" = set"; then
8058 echo "$as_me:$LINENO: checking for $ac_header" >&5
8059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8060if eval "test \"\${$as_ac_Header+set}\" = set"; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062fi
8063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00008065else
jjako286bc982003-01-28 23:17:50 +00008066 # Is the header compilable?
8067echo "$as_me:$LINENO: checking $ac_header usability" >&5
8068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8069cat >conftest.$ac_ext <<_ACEOF
8070#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008071/* confdefs.h. */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008076$ac_includes_default
8077#include <$ac_header>
8078_ACEOF
8079rm -f conftest.$ac_objext
8080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -s conftest.$ac_objext'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; }; then
8091 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00008092else
jjako286bc982003-01-28 23:17:50 +00008093 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008094sed 's/^/| /' conftest.$ac_ext >&5
8095
jjako286bc982003-01-28 23:17:50 +00008096ac_header_compiler=no
8097fi
8098rm -f conftest.$ac_objext conftest.$ac_ext
8099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8100echo "${ECHO_T}$ac_header_compiler" >&6
8101
8102# Is the header present?
8103echo "$as_me:$LINENO: checking $ac_header presence" >&5
8104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8105cat >conftest.$ac_ext <<_ACEOF
8106#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008112#include <$ac_header>
8113_ACEOF
8114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8116 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00008117 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00008118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } >/dev/null; then
8122 if test -s conftest.err; then
8123 ac_cpp_err=$ac_c_preproc_warn_flag
8124 else
8125 ac_cpp_err=
8126 fi
8127else
8128 ac_cpp_err=yes
8129fi
8130if test -z "$ac_cpp_err"; then
8131 ac_header_preproc=yes
8132else
8133 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008134sed 's/^/| /' conftest.$ac_ext >&5
8135
jjako286bc982003-01-28 23:17:50 +00008136 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00008137fi
jjako286bc982003-01-28 23:17:50 +00008138rm -f conftest.err conftest.$ac_ext
8139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8140echo "${ECHO_T}$ac_header_preproc" >&6
8141
8142# So? What about this header?
8143case $ac_header_compiler:$ac_header_preproc in
8144 yes:no )
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00008148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8149 (
8150 cat <<\_ASBOX
8151## ------------------------------------ ##
8152## Report this to bug-autoconf@gnu.org. ##
8153## ------------------------------------ ##
8154_ASBOX
8155 ) |
8156 sed "s/^/$as_me: WARNING: /" >&2
8157 ;;
jjako286bc982003-01-28 23:17:50 +00008158 no:yes )
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00008164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8165 (
8166 cat <<\_ASBOX
8167## ------------------------------------ ##
8168## Report this to bug-autoconf@gnu.org. ##
8169## ------------------------------------ ##
8170_ASBOX
8171 ) |
8172 sed "s/^/$as_me: WARNING: /" >&2
8173 ;;
jjako286bc982003-01-28 23:17:50 +00008174esac
8175echo "$as_me:$LINENO: checking for $ac_header" >&5
8176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8177if eval "test \"\${$as_ac_Header+set}\" = set"; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008179else
jjako286bc982003-01-28 23:17:50 +00008180 eval "$as_ac_Header=$ac_header_preproc"
jjako52c24142002-12-16 13:33:51 +00008181fi
jjako286bc982003-01-28 23:17:50 +00008182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8184
8185fi
8186if test `eval echo '${'$as_ac_Header'}'` = yes; then
8187 cat >>confdefs.h <<_ACEOF
8188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8189_ACEOF
8190
8191fi
8192
jjako52c24142002-12-16 13:33:51 +00008193done
8194
8195
jjako286bc982003-01-28 23:17:50 +00008196# Checks for typedefs, structures, and compiler characteristics.
jjako286bc982003-01-28 23:17:50 +00008197echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8198echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8199if test "${ac_cv_c_const+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 cat >conftest.$ac_ext <<_ACEOF
8203#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008209
jjako286bc982003-01-28 23:17:50 +00008210int
8211main ()
8212{
8213/* FIXME: Include the comments suggested by Paul. */
8214#ifndef __cplusplus
8215 /* Ultrix mips cc rejects this. */
8216 typedef int charset[2];
8217 const charset x;
8218 /* SunOS 4.1.1 cc rejects this. */
8219 char const *const *ccp;
8220 char **p;
8221 /* NEC SVR4.0.2 mips cc rejects this. */
8222 struct point {int x, y;};
8223 static struct point const zero = {0,0};
8224 /* AIX XL C 1.02.0.0 rejects this.
8225 It does not let you subtract one const X* pointer from another in
8226 an arm of an if-expression whose if-part is not a constant
8227 expression */
8228 const char *g = "string";
8229 ccp = &g + (g ? g-g : 0);
8230 /* HPUX 7.0 cc rejects these. */
8231 ++ccp;
8232 p = (char**) ccp;
8233 ccp = (char const *const *) p;
8234 { /* SCO 3.2v4 cc rejects this. */
8235 char *t;
8236 char const *s = 0 ? (char *) 0 : (char const *) 0;
jjako52c24142002-12-16 13:33:51 +00008237
jjako286bc982003-01-28 23:17:50 +00008238 *t++ = 0;
8239 }
8240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8241 int x[] = {25, 17};
8242 const int *foo = &x[0];
8243 ++foo;
8244 }
8245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8246 typedef const int *iptr;
8247 iptr p = 0;
8248 ++p;
8249 }
8250 { /* AIX XL C 1.02.0.0 rejects this saying
8251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8252 struct s { int j; const int *ap[3]; };
8253 struct s *b; b->j = 5;
8254 }
8255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8256 const int foo = 10;
8257 }
8258#endif
jjako52c24142002-12-16 13:33:51 +00008259
jjako286bc982003-01-28 23:17:50 +00008260 ;
8261 return 0;
jjako52c24142002-12-16 13:33:51 +00008262}
jjako286bc982003-01-28 23:17:50 +00008263_ACEOF
8264rm -f conftest.$ac_objext
8265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8266 (eval $ac_compile) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest.$ac_objext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008276 ac_cv_c_const=yes
8277else
jjako286bc982003-01-28 23:17:50 +00008278 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008279sed 's/^/| /' conftest.$ac_ext >&5
8280
jjako286bc982003-01-28 23:17:50 +00008281ac_cv_c_const=no
jjako52c24142002-12-16 13:33:51 +00008282fi
jjako286bc982003-01-28 23:17:50 +00008283rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008284fi
jjako286bc982003-01-28 23:17:50 +00008285echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8286echo "${ECHO_T}$ac_cv_c_const" >&6
jjako52c24142002-12-16 13:33:51 +00008287if test $ac_cv_c_const = no; then
jjako286bc982003-01-28 23:17:50 +00008288
8289cat >>confdefs.h <<\_ACEOF
8290#define const
8291_ACEOF
jjako52c24142002-12-16 13:33:51 +00008292
8293fi
8294
jjako286bc982003-01-28 23:17:50 +00008295echo "$as_me:$LINENO: checking for mode_t" >&5
8296echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
8297if test "${ac_cv_type_mode_t+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008299else
jjako286bc982003-01-28 23:17:50 +00008300 cat >conftest.$ac_ext <<_ACEOF
8301#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008302/* confdefs.h. */
8303_ACEOF
8304cat confdefs.h >>conftest.$ac_ext
8305cat >>conftest.$ac_ext <<_ACEOF
8306/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008307$ac_includes_default
jjako286bc982003-01-28 23:17:50 +00008308int
8309main ()
8310{
8311if ((mode_t *) 0)
8312 return 0;
8313if (sizeof (mode_t))
8314 return 0;
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319rm -f conftest.$ac_objext
8320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -s conftest.$ac_objext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_cv_type_mode_t=yes
8332else
8333 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008334sed 's/^/| /' conftest.$ac_ext >&5
8335
jjako286bc982003-01-28 23:17:50 +00008336ac_cv_type_mode_t=no
8337fi
8338rm -f conftest.$ac_objext conftest.$ac_ext
8339fi
8340echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8341echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8342if test $ac_cv_type_mode_t = yes; then
8343 :
8344else
8345
8346cat >>confdefs.h <<_ACEOF
8347#define mode_t int
8348_ACEOF
8349
8350fi
8351
8352echo "$as_me:$LINENO: checking for size_t" >&5
8353echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8354if test "${ac_cv_type_size_t+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 cat >conftest.$ac_ext <<_ACEOF
8358#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008364$ac_includes_default
jjako286bc982003-01-28 23:17:50 +00008365int
8366main ()
8367{
8368if ((size_t *) 0)
8369 return 0;
8370if (sizeof (size_t))
8371 return 0;
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext
8377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378 (eval $ac_compile) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008388 ac_cv_type_size_t=yes
8389else
jjako286bc982003-01-28 23:17:50 +00008390 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008391sed 's/^/| /' conftest.$ac_ext >&5
8392
jjako286bc982003-01-28 23:17:50 +00008393ac_cv_type_size_t=no
jjako52c24142002-12-16 13:33:51 +00008394fi
jjako286bc982003-01-28 23:17:50 +00008395rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008396fi
jjako286bc982003-01-28 23:17:50 +00008397echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8398echo "${ECHO_T}$ac_cv_type_size_t" >&6
8399if test $ac_cv_type_size_t = yes; then
8400 :
jjako52c24142002-12-16 13:33:51 +00008401else
jjako286bc982003-01-28 23:17:50 +00008402
8403cat >>confdefs.h <<_ACEOF
8404#define size_t unsigned
8405_ACEOF
8406
8407fi
8408
8409echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8410echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8411if test "${ac_cv_header_time+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414 cat >conftest.$ac_ext <<_ACEOF
8415#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008416/* confdefs.h. */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008421#include <sys/types.h>
8422#include <sys/time.h>
8423#include <time.h>
jjako286bc982003-01-28 23:17:50 +00008424
jjako286bc982003-01-28 23:17:50 +00008425int
8426main ()
8427{
8428if ((struct tm *) 0)
8429return 0;
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434rm -f conftest.$ac_objext
8435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8436 (eval $ac_compile) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -s conftest.$ac_objext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008446 ac_cv_header_time=yes
8447else
jjako286bc982003-01-28 23:17:50 +00008448 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008449sed 's/^/| /' conftest.$ac_ext >&5
8450
jjako286bc982003-01-28 23:17:50 +00008451ac_cv_header_time=no
jjako52c24142002-12-16 13:33:51 +00008452fi
jjako286bc982003-01-28 23:17:50 +00008453rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008454fi
jjako286bc982003-01-28 23:17:50 +00008455echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8456echo "${ECHO_T}$ac_cv_header_time" >&6
jjako52c24142002-12-16 13:33:51 +00008457if test $ac_cv_header_time = yes; then
jjako286bc982003-01-28 23:17:50 +00008458
8459cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008460#define TIME_WITH_SYS_TIME 1
jjako286bc982003-01-28 23:17:50 +00008461_ACEOF
jjako52c24142002-12-16 13:33:51 +00008462
8463fi
8464
8465
jjako286bc982003-01-28 23:17:50 +00008466# Checks for library functions.
8467if test $ac_cv_c_compiler_gnu = yes; then
8468 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8469echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8470if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008472else
8473 ac_pattern="Autoconf.*'x'"
jjako286bc982003-01-28 23:17:50 +00008474 cat >conftest.$ac_ext <<_ACEOF
8475#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008481#include <sgtty.h>
8482Autoconf TIOCGETP
jjako286bc982003-01-28 23:17:50 +00008483_ACEOF
jjako52c24142002-12-16 13:33:51 +00008484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00008485 $EGREP "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00008486 ac_cv_prog_gcc_traditional=yes
8487else
jjako52c24142002-12-16 13:33:51 +00008488 ac_cv_prog_gcc_traditional=no
8489fi
8490rm -f conftest*
8491
8492
8493 if test $ac_cv_prog_gcc_traditional = no; then
jjako286bc982003-01-28 23:17:50 +00008494 cat >conftest.$ac_ext <<_ACEOF
8495#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008496/* confdefs.h. */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
8500/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008501#include <termio.h>
8502Autoconf TCGETA
jjako286bc982003-01-28 23:17:50 +00008503_ACEOF
jjako52c24142002-12-16 13:33:51 +00008504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00008505 $EGREP "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00008506 ac_cv_prog_gcc_traditional=yes
8507fi
8508rm -f conftest*
8509
8510 fi
8511fi
jjako286bc982003-01-28 23:17:50 +00008512echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8513echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
jjako52c24142002-12-16 13:33:51 +00008514 if test $ac_cv_prog_gcc_traditional = yes; then
8515 CC="$CC -traditional"
8516 fi
8517fi
8518
jjako286bc982003-01-28 23:17:50 +00008519
8520for ac_header in stdlib.h
8521do
8522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8523if eval "test \"\${$as_ac_Header+set}\" = set"; then
8524 echo "$as_me:$LINENO: checking for $ac_header" >&5
8525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8526if eval "test \"\${$as_ac_Header+set}\" = set"; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8528fi
8529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00008531else
jjako286bc982003-01-28 23:17:50 +00008532 # Is the header compilable?
8533echo "$as_me:$LINENO: checking $ac_header usability" >&5
8534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8535cat >conftest.$ac_ext <<_ACEOF
8536#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008537/* confdefs.h. */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008542$ac_includes_default
8543#include <$ac_header>
8544_ACEOF
8545rm -f conftest.$ac_objext
8546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00008558else
jjako286bc982003-01-28 23:17:50 +00008559 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008560sed 's/^/| /' conftest.$ac_ext >&5
8561
jjako286bc982003-01-28 23:17:50 +00008562ac_header_compiler=no
jjako52c24142002-12-16 13:33:51 +00008563fi
jjako286bc982003-01-28 23:17:50 +00008564rm -f conftest.$ac_objext conftest.$ac_ext
8565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8566echo "${ECHO_T}$ac_header_compiler" >&6
jjako52c24142002-12-16 13:33:51 +00008567
jjako286bc982003-01-28 23:17:50 +00008568# Is the header present?
8569echo "$as_me:$LINENO: checking $ac_header presence" >&5
8570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8571cat >conftest.$ac_ext <<_ACEOF
8572#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008573/* confdefs.h. */
8574_ACEOF
8575cat confdefs.h >>conftest.$ac_ext
8576cat >>conftest.$ac_ext <<_ACEOF
8577/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008578#include <$ac_header>
8579_ACEOF
8580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8582 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00008583 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00008584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } >/dev/null; then
8588 if test -s conftest.err; then
8589 ac_cpp_err=$ac_c_preproc_warn_flag
8590 else
8591 ac_cpp_err=
8592 fi
jjako52c24142002-12-16 13:33:51 +00008593else
jjako286bc982003-01-28 23:17:50 +00008594 ac_cpp_err=yes
8595fi
8596if test -z "$ac_cpp_err"; then
8597 ac_header_preproc=yes
8598else
8599 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008600sed 's/^/| /' conftest.$ac_ext >&5
8601
jjako286bc982003-01-28 23:17:50 +00008602 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00008603fi
jjako286bc982003-01-28 23:17:50 +00008604rm -f conftest.err conftest.$ac_ext
8605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8606echo "${ECHO_T}$ac_header_preproc" >&6
jjako52c24142002-12-16 13:33:51 +00008607
jjako286bc982003-01-28 23:17:50 +00008608# So? What about this header?
8609case $ac_header_compiler:$ac_header_preproc in
8610 yes:no )
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00008614echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8615 (
8616 cat <<\_ASBOX
8617## ------------------------------------ ##
8618## Report this to bug-autoconf@gnu.org. ##
8619## ------------------------------------ ##
8620_ASBOX
8621 ) |
8622 sed "s/^/$as_me: WARNING: /" >&2
8623 ;;
jjako286bc982003-01-28 23:17:50 +00008624 no:yes )
8625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00008630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8631 (
8632 cat <<\_ASBOX
8633## ------------------------------------ ##
8634## Report this to bug-autoconf@gnu.org. ##
8635## ------------------------------------ ##
8636_ASBOX
8637 ) |
8638 sed "s/^/$as_me: WARNING: /" >&2
8639 ;;
jjako286bc982003-01-28 23:17:50 +00008640esac
8641echo "$as_me:$LINENO: checking for $ac_header" >&5
8642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8643if eval "test \"\${$as_ac_Header+set}\" = set"; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008645else
jjako286bc982003-01-28 23:17:50 +00008646 eval "$as_ac_Header=$ac_header_preproc"
8647fi
8648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8650
8651fi
8652if test `eval echo '${'$as_ac_Header'}'` = yes; then
8653 cat >>confdefs.h <<_ACEOF
8654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8655_ACEOF
8656
jjako52c24142002-12-16 13:33:51 +00008657fi
8658
jjako286bc982003-01-28 23:17:50 +00008659done
8660
jjako08d331d2003-10-13 20:33:30 +00008661echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8662echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8663if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00008664 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008665else
8666 if test "$cross_compiling" = yes; then
jjako08d331d2003-10-13 20:33:30 +00008667 ac_cv_func_malloc_0_nonnull=no
jjako52c24142002-12-16 13:33:51 +00008668else
jjako286bc982003-01-28 23:17:50 +00008669 cat >conftest.$ac_ext <<_ACEOF
8670#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008671/* confdefs.h. */
8672_ACEOF
8673cat confdefs.h >>conftest.$ac_ext
8674cat >>conftest.$ac_ext <<_ACEOF
8675/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008676#if STDC_HEADERS || HAVE_STDLIB_H
8677# include <stdlib.h>
jjako52c24142002-12-16 13:33:51 +00008678#else
jjako286bc982003-01-28 23:17:50 +00008679char *malloc ();
jjako52c24142002-12-16 13:33:51 +00008680#endif
8681
jjako286bc982003-01-28 23:17:50 +00008682int
8683main ()
jjako52c24142002-12-16 13:33:51 +00008684{
jjako286bc982003-01-28 23:17:50 +00008685exit (malloc (0) ? 0 : 1);
8686 ;
8687 return 0;
jjako52c24142002-12-16 13:33:51 +00008688}
jjako286bc982003-01-28 23:17:50 +00008689_ACEOF
8690rm -f conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
jjako08d331d2003-10-13 20:33:30 +00008701 ac_cv_func_malloc_0_nonnull=yes
jjako52c24142002-12-16 13:33:51 +00008702else
jjako286bc982003-01-28 23:17:50 +00008703 echo "$as_me: program exited with status $ac_status" >&5
8704echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008705sed 's/^/| /' conftest.$ac_ext >&5
8706
jjako286bc982003-01-28 23:17:50 +00008707( exit $ac_status )
jjako08d331d2003-10-13 20:33:30 +00008708ac_cv_func_malloc_0_nonnull=no
jjako52c24142002-12-16 13:33:51 +00008709fi
jjako08d331d2003-10-13 20:33:30 +00008710rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008711fi
jjako286bc982003-01-28 23:17:50 +00008712fi
jjako08d331d2003-10-13 20:33:30 +00008713echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8714echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8715if test $ac_cv_func_malloc_0_nonnull = yes; then
jjako286bc982003-01-28 23:17:50 +00008716
8717cat >>confdefs.h <<\_ACEOF
8718#define HAVE_MALLOC 1
8719_ACEOF
jjako52c24142002-12-16 13:33:51 +00008720
jjako08d331d2003-10-13 20:33:30 +00008721else
8722 cat >>confdefs.h <<\_ACEOF
8723#define HAVE_MALLOC 0
8724_ACEOF
8725
8726 LIBOBJS="$LIBOBJS malloc.$ac_objext"
8727
8728cat >>confdefs.h <<\_ACEOF
8729#define malloc rpl_malloc
8730_ACEOF
8731
jjako52c24142002-12-16 13:33:51 +00008732fi
8733
jjako08d331d2003-10-13 20:33:30 +00008734
8735
jjako1d3db972004-01-16 09:56:56 +00008736# AC_FUNC_MEMCMP
jjako286bc982003-01-28 23:17:50 +00008737
8738
8739
8740
8741
8742
8743
8744
8745for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol
jjako52c24142002-12-16 13:33:51 +00008746do
jjako286bc982003-01-28 23:17:50 +00008747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8748echo "$as_me:$LINENO: checking for $ac_func" >&5
8749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8750if eval "test \"\${$as_ac_var+set}\" = set"; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008752else
jjako286bc982003-01-28 23:17:50 +00008753 cat >conftest.$ac_ext <<_ACEOF
8754#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008755/* confdefs.h. */
8756_ACEOF
8757cat confdefs.h >>conftest.$ac_ext
8758cat >>conftest.$ac_ext <<_ACEOF
8759/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008760/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00008761 which can conflict with char $ac_func (); below.
8762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8763 <limits.h> exists even on freestanding compilers. */
8764#ifdef __STDC__
8765# include <limits.h>
8766#else
8767# include <assert.h>
8768#endif
jjako52c24142002-12-16 13:33:51 +00008769/* Override any gcc2 internal prototype to avoid an error. */
jjako286bc982003-01-28 23:17:50 +00008770#ifdef __cplusplus
8771extern "C"
jjako08d331d2003-10-13 20:33:30 +00008772{
jjako286bc982003-01-28 23:17:50 +00008773#endif
jjako52c24142002-12-16 13:33:51 +00008774/* We use char because int might match the return type of a gcc2
jjako286bc982003-01-28 23:17:50 +00008775 builtin and then its argument prototype would still apply. */
8776char $ac_func ();
jjako52c24142002-12-16 13:33:51 +00008777/* The GNU C library defines this for functions which it implements
8778 to always fail with ENOSYS. Some functions are actually named
8779 something starting with __ and the normal name is an alias. */
8780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8781choke me
8782#else
jjako08d331d2003-10-13 20:33:30 +00008783char (*f) () = $ac_func;
8784#endif
8785#ifdef __cplusplus
8786}
jjako52c24142002-12-16 13:33:51 +00008787#endif
8788
jjako08d331d2003-10-13 20:33:30 +00008789int
8790main ()
8791{
8792return f != $ac_func;
jjako286bc982003-01-28 23:17:50 +00008793 ;
8794 return 0;
8795}
8796_ACEOF
8797rm -f conftest.$ac_objext conftest$ac_exeext
8798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 eval "$as_ac_var=yes"
jjako52c24142002-12-16 13:33:51 +00008810else
jjako286bc982003-01-28 23:17:50 +00008811 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008812sed 's/^/| /' conftest.$ac_ext >&5
8813
jjako286bc982003-01-28 23:17:50 +00008814eval "$as_ac_var=no"
jjako52c24142002-12-16 13:33:51 +00008815fi
jjako286bc982003-01-28 23:17:50 +00008816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008817fi
jjako286bc982003-01-28 23:17:50 +00008818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8820if test `eval echo '${'$as_ac_var'}'` = yes; then
8821 cat >>confdefs.h <<_ACEOF
8822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8823_ACEOF
jjako52c24142002-12-16 13:33:51 +00008824
jjako52c24142002-12-16 13:33:51 +00008825fi
8826done
8827
8828
jjako1d3db972004-01-16 09:56:56 +00008829
8830for ac_func in inet_aton inet_addr
8831do
8832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8833echo "$as_me:$LINENO: checking for $ac_func" >&5
8834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8835if eval "test \"\${$as_ac_var+set}\" = set"; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837else
8838 cat >conftest.$ac_ext <<_ACEOF
8839#line $LINENO "configure"
8840/* confdefs.h. */
8841_ACEOF
8842cat confdefs.h >>conftest.$ac_ext
8843cat >>conftest.$ac_ext <<_ACEOF
8844/* end confdefs.h. */
8845/* System header to define __stub macros and hopefully few prototypes,
8846 which can conflict with char $ac_func (); below.
8847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8848 <limits.h> exists even on freestanding compilers. */
8849#ifdef __STDC__
8850# include <limits.h>
8851#else
8852# include <assert.h>
8853#endif
8854/* Override any gcc2 internal prototype to avoid an error. */
8855#ifdef __cplusplus
8856extern "C"
8857{
8858#endif
8859/* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8861char $ac_func ();
8862/* The GNU C library defines this for functions which it implements
8863 to always fail with ENOSYS. Some functions are actually named
8864 something starting with __ and the normal name is an alias. */
8865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8866choke me
8867#else
8868char (*f) () = $ac_func;
8869#endif
8870#ifdef __cplusplus
8871}
8872#endif
8873
8874int
8875main ()
8876{
8877return f != $ac_func;
8878 ;
8879 return 0;
8880}
8881_ACEOF
8882rm -f conftest.$ac_objext conftest$ac_exeext
8883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 eval "$as_ac_var=yes"
8895else
8896 echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
8898
8899eval "$as_ac_var=no"
8900fi
8901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8902fi
8903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8905if test `eval echo '${'$as_ac_var'}'` = yes; then
8906 cat >>confdefs.h <<_ACEOF
8907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8908_ACEOF
8909 break
8910fi
8911done
8912
8913
8914# check for getopt in standard library
8915 # clean out junk possibly left behind by a previous configuration
8916 rm -f lib/getopt.h
8917 # Check for getopt_long support
8918
8919for ac_header in getopt.h
8920do
8921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8922if eval "test \"\${$as_ac_Header+set}\" = set"; then
8923 echo "$as_me:$LINENO: checking for $ac_header" >&5
8924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8925if eval "test \"\${$as_ac_Header+set}\" = set"; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927fi
8928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8930else
8931 # Is the header compilable?
8932echo "$as_me:$LINENO: checking $ac_header usability" >&5
8933echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8934cat >conftest.$ac_ext <<_ACEOF
8935#line $LINENO "configure"
8936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
8940/* end confdefs.h. */
8941$ac_includes_default
8942#include <$ac_header>
8943_ACEOF
8944rm -f conftest.$ac_objext
8945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8946 (eval $ac_compile) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -s conftest.$ac_objext'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 ac_header_compiler=yes
8957else
8958 echo "$as_me: failed program was:" >&5
8959sed 's/^/| /' conftest.$ac_ext >&5
8960
8961ac_header_compiler=no
8962fi
8963rm -f conftest.$ac_objext conftest.$ac_ext
8964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8965echo "${ECHO_T}$ac_header_compiler" >&6
8966
8967# Is the header present?
8968echo "$as_me:$LINENO: checking $ac_header presence" >&5
8969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8970cat >conftest.$ac_ext <<_ACEOF
8971#line $LINENO "configure"
8972/* confdefs.h. */
8973_ACEOF
8974cat confdefs.h >>conftest.$ac_ext
8975cat >>conftest.$ac_ext <<_ACEOF
8976/* end confdefs.h. */
8977#include <$ac_header>
8978_ACEOF
8979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } >/dev/null; then
8987 if test -s conftest.err; then
8988 ac_cpp_err=$ac_c_preproc_warn_flag
8989 else
8990 ac_cpp_err=
8991 fi
8992else
8993 ac_cpp_err=yes
8994fi
8995if test -z "$ac_cpp_err"; then
8996 ac_header_preproc=yes
8997else
8998 echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 ac_header_preproc=no
9002fi
9003rm -f conftest.err conftest.$ac_ext
9004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9005echo "${ECHO_T}$ac_header_preproc" >&6
9006
9007# So? What about this header?
9008case $ac_header_compiler:$ac_header_preproc in
9009 yes:no )
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9011echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9014 (
9015 cat <<\_ASBOX
9016## ------------------------------------ ##
9017## Report this to bug-autoconf@gnu.org. ##
9018## ------------------------------------ ##
9019_ASBOX
9020 ) |
9021 sed "s/^/$as_me: WARNING: /" >&2
9022 ;;
9023 no:yes )
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9025echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9027echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9030 (
9031 cat <<\_ASBOX
9032## ------------------------------------ ##
9033## Report this to bug-autoconf@gnu.org. ##
9034## ------------------------------------ ##
9035_ASBOX
9036 ) |
9037 sed "s/^/$as_me: WARNING: /" >&2
9038 ;;
9039esac
9040echo "$as_me:$LINENO: checking for $ac_header" >&5
9041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9042if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 eval "$as_ac_Header=$ac_header_preproc"
9046fi
9047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049
9050fi
9051if test `eval echo '${'$as_ac_Header'}'` = yes; then
9052 cat >>confdefs.h <<_ACEOF
9053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9054_ACEOF
9055
9056fi
9057
9058done
9059
9060
9061for ac_func in getopt_long
9062do
9063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9064echo "$as_me:$LINENO: checking for $ac_func" >&5
9065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9066if eval "test \"\${$as_ac_var+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069 cat >conftest.$ac_ext <<_ACEOF
9070#line $LINENO "configure"
9071/* confdefs.h. */
9072_ACEOF
9073cat confdefs.h >>conftest.$ac_ext
9074cat >>conftest.$ac_ext <<_ACEOF
9075/* end confdefs.h. */
9076/* System header to define __stub macros and hopefully few prototypes,
9077 which can conflict with char $ac_func (); below.
9078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9079 <limits.h> exists even on freestanding compilers. */
9080#ifdef __STDC__
9081# include <limits.h>
9082#else
9083# include <assert.h>
9084#endif
9085/* Override any gcc2 internal prototype to avoid an error. */
9086#ifdef __cplusplus
9087extern "C"
9088{
9089#endif
9090/* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9092char $ac_func ();
9093/* The GNU C library defines this for functions which it implements
9094 to always fail with ENOSYS. Some functions are actually named
9095 something starting with __ and the normal name is an alias. */
9096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9097choke me
9098#else
9099char (*f) () = $ac_func;
9100#endif
9101#ifdef __cplusplus
9102}
9103#endif
9104
9105int
9106main ()
9107{
9108return f != $ac_func;
9109 ;
9110 return 0;
9111}
9112_ACEOF
9113rm -f conftest.$ac_objext conftest$ac_exeext
9114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 eval "$as_ac_var=yes"
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130eval "$as_ac_var=no"
9131fi
9132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133fi
9134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9136if test `eval echo '${'$as_ac_var'}'` = yes; then
9137 cat >>confdefs.h <<_ACEOF
9138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9139_ACEOF
9140
9141else
9142 # FreeBSD has a gnugetopt library for this
9143 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
9144echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
9145if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147else
9148 ac_check_lib_save_LIBS=$LIBS
9149LIBS="-lgnugetopt $LIBS"
9150cat >conftest.$ac_ext <<_ACEOF
9151#line $LINENO "configure"
9152/* confdefs.h. */
9153_ACEOF
9154cat confdefs.h >>conftest.$ac_ext
9155cat >>conftest.$ac_ext <<_ACEOF
9156/* end confdefs.h. */
9157
9158/* Override any gcc2 internal prototype to avoid an error. */
9159#ifdef __cplusplus
9160extern "C"
9161#endif
9162/* We use char because int might match the return type of a gcc2
9163 builtin and then its argument prototype would still apply. */
9164char getopt_long ();
9165int
9166main ()
9167{
9168getopt_long ();
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_lib_gnugetopt_getopt_long=yes
9186else
9187 echo "$as_me: failed program was:" >&5
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190ac_cv_lib_gnugetopt_getopt_long=no
9191fi
9192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9193LIBS=$ac_check_lib_save_LIBS
9194fi
9195echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
9196echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
9197if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
9198 cat >>confdefs.h <<\_ACEOF
9199#define HAVE_GETOPT_LONG 1
9200_ACEOF
9201
9202else
9203 # use the GNU replacement
9204 LIBOBJS="$LIBOBJS getopt.$ac_objext"
9205 LIBOBJS="$LIBOBJS getopt1.$ac_objext"
9206 ac_config_links="$ac_config_links ggsn/getopt.h:ggsn/gnugetopt.h"
9207
9208 ac_config_links="$ac_config_links sgsnemu/getopt.h:sgsnemu/gnugetopt.h"
9209
9210fi
9211
9212fi
9213done
9214
9215
jjako286bc982003-01-28 23:17:50 +00009216am__api_version="1.6"
9217echo "$as_me:$LINENO: checking whether build environment is sane" >&5
9218echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009219# Just in case
9220sleep 1
jjako286bc982003-01-28 23:17:50 +00009221echo timestamp > conftest.file
jjako52c24142002-12-16 13:33:51 +00009222# Do `set' in a subshell so we don't clobber the current shell's
9223# arguments. Must try -L first in case configure is actually a
9224# symlink; some systems play weird games with the mod time of symlinks
9225# (eg FreeBSD returns the mod time of the symlink's containing
9226# directory).
9227if (
jjako286bc982003-01-28 23:17:50 +00009228 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
jjako52c24142002-12-16 13:33:51 +00009229 if test "$*" = "X"; then
9230 # -L didn't work.
jjako286bc982003-01-28 23:17:50 +00009231 set X `ls -t $srcdir/configure conftest.file`
jjako52c24142002-12-16 13:33:51 +00009232 fi
jjako286bc982003-01-28 23:17:50 +00009233 rm -f conftest.file
9234 if test "$*" != "X $srcdir/configure conftest.file" \
9235 && test "$*" != "X conftest.file $srcdir/configure"; then
jjako52c24142002-12-16 13:33:51 +00009236
9237 # If neither matched, then we have a broken ls. This can happen
9238 # if, for instance, CONFIG_SHELL is bash and it inherits a
9239 # broken ls alias from the environment. This has actually
9240 # happened. Such a system could not be considered "sane".
jjako286bc982003-01-28 23:17:50 +00009241 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
9242alias in your environment" >&5
9243echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
9244alias in your environment" >&2;}
9245 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00009246 fi
9247
jjako286bc982003-01-28 23:17:50 +00009248 test "$2" = conftest.file
jjako52c24142002-12-16 13:33:51 +00009249 )
9250then
9251 # Ok.
9252 :
9253else
jjako286bc982003-01-28 23:17:50 +00009254 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
9255Check your system clock" >&5
9256echo "$as_me: error: newly created file is older than distributed files!
9257Check your system clock" >&2;}
9258 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00009259fi
jjako286bc982003-01-28 23:17:50 +00009260echo "$as_me:$LINENO: result: yes" >&5
9261echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00009262test "$program_prefix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00009263 program_transform_name="s,^,$program_prefix,;$program_transform_name"
jjako52c24142002-12-16 13:33:51 +00009264# Use a double $ so make ignores it.
9265test "$program_suffix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00009266 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9267# Double any \ or $. echo might interpret backslashes.
9268# By default was `s,x,x', remove it if useless.
9269cat <<\_ACEOF >conftest.sed
9270s/[\\$]/&&/g;s/;s,x,x,$//
9271_ACEOF
9272program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9273rm conftest.sed
jjako52c24142002-12-16 13:33:51 +00009274
jjako52c24142002-12-16 13:33:51 +00009275
jjako286bc982003-01-28 23:17:50 +00009276# expand $ac_aux_dir to an absolute path
9277am_aux_dir=`cd $ac_aux_dir && pwd`
9278
9279test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9280# Use eval to expand $SHELL
9281if eval "$MISSING --run true"; then
9282 am_missing_run="$MISSING --run "
jjako52c24142002-12-16 13:33:51 +00009283else
jjako286bc982003-01-28 23:17:50 +00009284 am_missing_run=
9285 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
9286echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
9287fi
9288
jjako08d331d2003-10-13 20:33:30 +00009289echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9290echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00009291set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
9292if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294else
9295 cat >conftest.make <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00009296all:
jjako08d331d2003-10-13 20:33:30 +00009297 @echo 'ac_maketemp="$(MAKE)"'
jjako286bc982003-01-28 23:17:50 +00009298_ACEOF
jjako52c24142002-12-16 13:33:51 +00009299# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
jjako286bc982003-01-28 23:17:50 +00009300eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
jjako52c24142002-12-16 13:33:51 +00009301if test -n "$ac_maketemp"; then
9302 eval ac_cv_prog_make_${ac_make}_set=yes
9303else
9304 eval ac_cv_prog_make_${ac_make}_set=no
9305fi
jjako286bc982003-01-28 23:17:50 +00009306rm -f conftest.make
jjako52c24142002-12-16 13:33:51 +00009307fi
9308if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
jjako286bc982003-01-28 23:17:50 +00009309 echo "$as_me:$LINENO: result: yes" >&5
9310echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00009311 SET_MAKE=
9312else
jjako286bc982003-01-28 23:17:50 +00009313 echo "$as_me:$LINENO: result: no" >&5
9314echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00009315 SET_MAKE="MAKE=${MAKE-make}"
9316fi
9317
jjako286bc982003-01-28 23:17:50 +00009318rm -f .deps 2>/dev/null
9319mkdir .deps 2>/dev/null
9320if test -d .deps; then
9321 DEPDIR=.deps
9322else
9323 # MS-DOS does not allow filenames that begin with a dot.
9324 DEPDIR=_deps
jjako52c24142002-12-16 13:33:51 +00009325fi
jjako286bc982003-01-28 23:17:50 +00009326rmdir .deps 2>/dev/null
9327
9328
jjako08d331d2003-10-13 20:33:30 +00009329 ac_config_commands="$ac_config_commands depfiles"
jjako286bc982003-01-28 23:17:50 +00009330
9331
9332am_make=${MAKE-make}
9333cat > confinc << 'END'
9334doit:
9335 @echo done
9336END
9337# If we don't find an include directive, just comment out the code.
9338echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
9339echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
9340am__include="#"
9341am__quote=
9342_am_result=none
9343# First try GNU make style include.
9344echo "include confinc" > confmf
9345# We grep out `Entering directory' and `Leaving directory'
9346# messages which can occur if `w' ends up in MAKEFLAGS.
9347# In particular we don't look at `^make:' because GNU make might
9348# be invoked under some other name (usually "gmake"), in which
9349# case it prints its new name instead of `make'.
9350if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
9351 am__include=include
9352 am__quote=
9353 _am_result=GNU
9354fi
9355# Now try BSD make style include.
9356if test "$am__include" = "#"; then
9357 echo '.include "confinc"' > confmf
9358 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9359 am__include=.include
9360 am__quote="\""
9361 _am_result=BSD
9362 fi
9363fi
9364
9365
9366echo "$as_me:$LINENO: result: $_am_result" >&5
9367echo "${ECHO_T}$_am_result" >&6
9368rm -f confinc confmf
9369
9370# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
9371if test "${enable_dependency_tracking+set}" = set; then
9372 enableval="$enable_dependency_tracking"
9373
9374fi;
9375if test "x$enable_dependency_tracking" != xno; then
9376 am_depcomp="$ac_aux_dir/depcomp"
9377 AMDEPBACKSLASH='\'
9378fi
9379
9380
9381if test "x$enable_dependency_tracking" != xno; then
9382 AMDEP_TRUE=
9383 AMDEP_FALSE='#'
9384else
9385 AMDEP_TRUE='#'
9386 AMDEP_FALSE=
9387fi
9388
9389
9390
9391 # test to see if srcdir already configured
9392if test "`cd $srcdir && pwd`" != "`pwd`" &&
9393 test -f $srcdir/config.status; then
9394 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
9395echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
9396 { (exit 1); exit 1; }; }
9397fi
9398
9399# Define the identity of the package.
9400 PACKAGE=openggsn
jjakob62c3dd2004-05-27 18:51:55 +00009401 VERSION=0.82
jjako286bc982003-01-28 23:17:50 +00009402
9403
9404cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00009405#define PACKAGE "$PACKAGE"
jjako286bc982003-01-28 23:17:50 +00009406_ACEOF
jjako52c24142002-12-16 13:33:51 +00009407
jjako286bc982003-01-28 23:17:50 +00009408
9409cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00009410#define VERSION "$VERSION"
jjako286bc982003-01-28 23:17:50 +00009411_ACEOF
9412
9413# Some tools Automake needs.
9414
9415ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
jjako52c24142002-12-16 13:33:51 +00009416
9417
jjako286bc982003-01-28 23:17:50 +00009418AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
jjako52c24142002-12-16 13:33:51 +00009419
jjako286bc982003-01-28 23:17:50 +00009420
9421AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9422
9423
9424AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9425
9426
9427MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9428
9429
9430AMTAR=${AMTAR-"${am_missing_run}tar"}
9431
9432install_sh=${install_sh-"$am_aux_dir/install-sh"}
9433
9434# Installed binaries are usually stripped using `strip' when the user
9435# run `make install-strip'. However `strip' might not be the right
9436# tool to use in cross-compilation environments, therefore Automake
9437# will honor the `STRIP' environment variable to overrule this program.
9438if test "$cross_compiling" != no; then
9439 if test -n "$ac_tool_prefix"; then
9440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9441set dummy ${ac_tool_prefix}strip; ac_word=$2
9442echo "$as_me:$LINENO: checking for $ac_word" >&5
9443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9444if test "${ac_cv_prog_STRIP+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009446else
jjako286bc982003-01-28 23:17:50 +00009447 if test -n "$STRIP"; then
9448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9449else
9450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451for as_dir in $PATH
9452do
9453 IFS=$as_save_IFS
9454 test -z "$as_dir" && as_dir=.
9455 for ac_exec_ext in '' $ac_executable_extensions; do
9456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9459 break 2
9460 fi
9461done
9462done
9463
9464fi
9465fi
9466STRIP=$ac_cv_prog_STRIP
9467if test -n "$STRIP"; then
9468 echo "$as_me:$LINENO: result: $STRIP" >&5
9469echo "${ECHO_T}$STRIP" >&6
9470else
9471 echo "$as_me:$LINENO: result: no" >&5
9472echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00009473fi
9474
jjako286bc982003-01-28 23:17:50 +00009475fi
9476if test -z "$ac_cv_prog_STRIP"; then
9477 ac_ct_STRIP=$STRIP
9478 # Extract the first word of "strip", so it can be a program name with args.
9479set dummy strip; ac_word=$2
9480echo "$as_me:$LINENO: checking for $ac_word" >&5
9481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9482if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009484else
jjako286bc982003-01-28 23:17:50 +00009485 if test -n "$ac_ct_STRIP"; then
9486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9487else
9488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489for as_dir in $PATH
9490do
9491 IFS=$as_save_IFS
9492 test -z "$as_dir" && as_dir=.
9493 for ac_exec_ext in '' $ac_executable_extensions; do
9494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9495 ac_cv_prog_ac_ct_STRIP="strip"
9496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 break 2
9498 fi
9499done
9500done
9501
9502 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9503fi
9504fi
9505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9506if test -n "$ac_ct_STRIP"; then
9507 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9508echo "${ECHO_T}$ac_ct_STRIP" >&6
9509else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00009512fi
9513
jjako286bc982003-01-28 23:17:50 +00009514 STRIP=$ac_ct_STRIP
jjako52c24142002-12-16 13:33:51 +00009515else
jjako286bc982003-01-28 23:17:50 +00009516 STRIP="$ac_cv_prog_STRIP"
jjako52c24142002-12-16 13:33:51 +00009517fi
9518
jjako286bc982003-01-28 23:17:50 +00009519fi
9520INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9521
9522# We need awk for the "check" target. The system "awk" is bad on
9523# some platforms.
9524
9525
9526depcc="$CC" am_compiler_list=
9527
9528echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9529echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9530if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009532else
jjako286bc982003-01-28 23:17:50 +00009533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9534 # We make a subdir and do the tests there. Otherwise we can end up
9535 # making bogus files that we don't know about and never remove. For
9536 # instance it was reported that on HP-UX the gcc test will end up
9537 # making a dummy file named `D' -- because `-MD' means `put the output
9538 # in D'.
9539 mkdir conftest.dir
9540 # Copy depcomp to subdir because otherwise we won't find it if we're
9541 # using a relative directory.
9542 cp "$am_depcomp" conftest.dir
9543 cd conftest.dir
9544
9545 am_cv_CC_dependencies_compiler_type=none
9546 if test "$am_compiler_list" = ""; then
9547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9548 fi
9549 for depmode in $am_compiler_list; do
9550 # We need to recreate these files for each test, as the compiler may
9551 # overwrite some of them when testing with obscure command lines.
9552 # This happens at least with the AIX C compiler.
9553 echo '#include "conftest.h"' > conftest.c
9554 echo 'int i;' > conftest.h
9555 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
9556
9557 case $depmode in
9558 nosideeffect)
9559 # after this tag, mechanisms are not by side-effect, so they'll
9560 # only be used when explicitly requested
9561 if test "x$enable_dependency_tracking" = xyes; then
9562 continue
9563 else
9564 break
9565 fi
9566 ;;
9567 none) break ;;
9568 esac
9569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9570 # mode. It turns out that the SunPro C++ compiler does not properly
9571 # handle `-M -o', and we need to detect this.
9572 if depmode=$depmode \
9573 source=conftest.c object=conftest.o \
9574 depfile=conftest.Po tmpdepfile=conftest.TPo \
9575 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
9576 grep conftest.h conftest.Po > /dev/null 2>&1 &&
9577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9578 am_cv_CC_dependencies_compiler_type=$depmode
9579 break
9580 fi
9581 done
9582
9583 cd ..
9584 rm -rf conftest.dir
9585else
9586 am_cv_CC_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +00009587fi
9588
jjako286bc982003-01-28 23:17:50 +00009589fi
9590echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9591echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9592CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9593
9594
9595depcc="$CXX" am_compiler_list=
9596
9597echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9598echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9599if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009601else
jjako286bc982003-01-28 23:17:50 +00009602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9603 # We make a subdir and do the tests there. Otherwise we can end up
9604 # making bogus files that we don't know about and never remove. For
9605 # instance it was reported that on HP-UX the gcc test will end up
9606 # making a dummy file named `D' -- because `-MD' means `put the output
9607 # in D'.
9608 mkdir conftest.dir
9609 # Copy depcomp to subdir because otherwise we won't find it if we're
9610 # using a relative directory.
9611 cp "$am_depcomp" conftest.dir
9612 cd conftest.dir
9613
9614 am_cv_CXX_dependencies_compiler_type=none
9615 if test "$am_compiler_list" = ""; then
9616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9617 fi
9618 for depmode in $am_compiler_list; do
9619 # We need to recreate these files for each test, as the compiler may
9620 # overwrite some of them when testing with obscure command lines.
9621 # This happens at least with the AIX C compiler.
9622 echo '#include "conftest.h"' > conftest.c
9623 echo 'int i;' > conftest.h
9624 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
9625
9626 case $depmode in
9627 nosideeffect)
9628 # after this tag, mechanisms are not by side-effect, so they'll
9629 # only be used when explicitly requested
9630 if test "x$enable_dependency_tracking" = xyes; then
9631 continue
9632 else
9633 break
9634 fi
9635 ;;
9636 none) break ;;
9637 esac
9638 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9639 # mode. It turns out that the SunPro C++ compiler does not properly
9640 # handle `-M -o', and we need to detect this.
9641 if depmode=$depmode \
9642 source=conftest.c object=conftest.o \
9643 depfile=conftest.Po tmpdepfile=conftest.TPo \
9644 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
9645 grep conftest.h conftest.Po > /dev/null 2>&1 &&
9646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9647 am_cv_CXX_dependencies_compiler_type=$depmode
9648 break
9649 fi
9650 done
9651
9652 cd ..
9653 rm -rf conftest.dir
9654else
9655 am_cv_CXX_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +00009656fi
9657
jjako286bc982003-01-28 23:17:50 +00009658fi
9659echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9660echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
9661CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
jjako52c24142002-12-16 13:33:51 +00009662
9663
jjako286bc982003-01-28 23:17:50 +00009664
9665
jjako08d331d2003-10-13 20:33:30 +00009666 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 +00009667
9668cat >confcache <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00009669# This file is a shell script that caches the results of configure
9670# tests run on this system so they can be shared between configure
jjako286bc982003-01-28 23:17:50 +00009671# scripts and configure runs, see configure's option --config-cache.
9672# It is not useful on other systems. If it contains results you don't
9673# want to keep, you may remove or edit it.
jjako52c24142002-12-16 13:33:51 +00009674#
jjako286bc982003-01-28 23:17:50 +00009675# config.status only pays attention to the cache file if you give it
9676# the --recheck option to rerun configure.
jjako52c24142002-12-16 13:33:51 +00009677#
jjako08d331d2003-10-13 20:33:30 +00009678# `ac_cv_env_foo' variables (set or unset) will be overridden when
jjako286bc982003-01-28 23:17:50 +00009679# loading this file, other *unset* `ac_cv_foo' will be assigned the
9680# following values.
9681
9682_ACEOF
9683
jjako52c24142002-12-16 13:33:51 +00009684# The following way of writing the cache mishandles newlines in values,
9685# but we know of no workaround that is simple, portable, and efficient.
9686# So, don't put newlines in cache variables' values.
9687# Ultrix sh set writes to stderr and can't be redirected directly,
9688# and sets the high bit in the cache file unless we assign to the vars.
jjako286bc982003-01-28 23:17:50 +00009689{
9690 (set) 2>&1 |
9691 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9692 *ac_space=\ *)
9693 # `set' does not quote correctly, so add quotes (double-quote
9694 # substitution turns \\\\ into \\, and sed turns \\ into \).
9695 sed -n \
9696 "s/'/'\\\\''/g;
9697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9698 ;;
9699 *)
9700 # `set' quotes correctly as required by POSIX, so do not add quotes.
9701 sed -n \
9702 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9703 ;;
9704 esac;
9705} |
9706 sed '
9707 t clear
9708 : clear
9709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9710 t end
9711 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9712 : end' >>confcache
jjako08d331d2003-10-13 20:33:30 +00009713if diff $cache_file confcache >/dev/null 2>&1; then :; else
jjako52c24142002-12-16 13:33:51 +00009714 if test -w $cache_file; then
jjako286bc982003-01-28 23:17:50 +00009715 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9716 cat confcache >$cache_file
jjako52c24142002-12-16 13:33:51 +00009717 else
9718 echo "not updating unwritable cache $cache_file"
9719 fi
9720fi
9721rm -f confcache
9722
jjako52c24142002-12-16 13:33:51 +00009723test "x$prefix" = xNONE && prefix=$ac_default_prefix
9724# Let make expand exec_prefix.
9725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9726
jjako286bc982003-01-28 23:17:50 +00009727# VPATH may cause trouble with some makes, so we remove $(srcdir),
9728# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9729# trailing colons and then remove the whole line if VPATH becomes empty
9730# (actually we leave an empty line to preserve line numbers).
jjako52c24142002-12-16 13:33:51 +00009731if test "x$srcdir" = x.; then
jjako286bc982003-01-28 23:17:50 +00009732 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9733s/:*\$(srcdir):*/:/;
9734s/:*\${srcdir}:*/:/;
9735s/:*@srcdir@:*/:/;
9736s/^\([^=]*=[ ]*\):*/\1/;
9737s/:*$//;
9738s/^[^=]*=[ ]*$//;
9739}'
jjako52c24142002-12-16 13:33:51 +00009740fi
9741
jjako286bc982003-01-28 23:17:50 +00009742DEFS=-DHAVE_CONFIG_H
jjako52c24142002-12-16 13:33:51 +00009743
jjako08d331d2003-10-13 20:33:30 +00009744ac_libobjs=
9745ac_ltlibobjs=
9746for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9747 # 1. Remove the extension, and $U if already installed.
9748 ac_i=`echo "$ac_i" |
9749 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9750 # 2. Add them.
9751 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9752 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9753done
9754LIBOBJS=$ac_libobjs
9755
9756LTLIBOBJS=$ac_ltlibobjs
9757
9758
jjako286bc982003-01-28 23:17:50 +00009759if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9760 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9761Usually this means the macro was only invoked conditionally." >&5
9762echo "$as_me: error: conditional \"AMDEP\" was never defined.
9763Usually this means the macro was only invoked conditionally." >&2;}
9764 { (exit 1); exit 1; }; }
9765fi
jjako52c24142002-12-16 13:33:51 +00009766
jjako52c24142002-12-16 13:33:51 +00009767: ${CONFIG_STATUS=./config.status}
jjako286bc982003-01-28 23:17:50 +00009768ac_clean_files_save=$ac_clean_files
9769ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9770{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9771echo "$as_me: creating $CONFIG_STATUS" >&6;}
9772cat >$CONFIG_STATUS <<_ACEOF
9773#! $SHELL
9774# Generated by $as_me.
jjako52c24142002-12-16 13:33:51 +00009775# Run this file to recreate the current configuration.
jjako52c24142002-12-16 13:33:51 +00009776# Compiler output produced by configure, useful for debugging
jjako286bc982003-01-28 23:17:50 +00009777# configure, is in config.log if it exists.
jjako52c24142002-12-16 13:33:51 +00009778
jjako286bc982003-01-28 23:17:50 +00009779debug=false
jjako08d331d2003-10-13 20:33:30 +00009780ac_cs_recheck=false
9781ac_cs_silent=false
jjako286bc982003-01-28 23:17:50 +00009782SHELL=\${CONFIG_SHELL-$SHELL}
9783_ACEOF
jjako52c24142002-12-16 13:33:51 +00009784
jjako286bc982003-01-28 23:17:50 +00009785cat >>$CONFIG_STATUS <<\_ACEOF
jjako286bc982003-01-28 23:17:50 +00009786## --------------------- ##
9787## M4sh Initialization. ##
9788## --------------------- ##
jjako52c24142002-12-16 13:33:51 +00009789
jjako286bc982003-01-28 23:17:50 +00009790# Be Bourne compatible
9791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9792 emulate sh
9793 NULLCMD=:
jjako08d331d2003-10-13 20:33:30 +00009794 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9795 # is contrary to our usage. Disable this feature.
9796 alias -g '${1+"$@"}'='"$@"'
jjako286bc982003-01-28 23:17:50 +00009797elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9798 set -o posix
jjako52c24142002-12-16 13:33:51 +00009799fi
jjako52c24142002-12-16 13:33:51 +00009800
jjako286bc982003-01-28 23:17:50 +00009801# Support unset when possible.
9802if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9803 as_unset=unset
9804else
9805 as_unset=false
9806fi
jjako52c24142002-12-16 13:33:51 +00009807
jjako08d331d2003-10-13 20:33:30 +00009808
9809# Work around bugs in pre-3.0 UWIN ksh.
9810$as_unset ENV MAIL MAILPATH
9811PS1='$ '
9812PS2='> '
9813PS4='+ '
9814
9815# NLS nuisances.
9816for as_var in \
9817 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9818 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9819 LC_TELEPHONE LC_TIME
9820do
9821 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9822 eval $as_var=C; export $as_var
9823 else
9824 $as_unset $as_var
9825 fi
9826done
9827
9828# Required to use basename.
9829if expr a : '\(a\)' >/dev/null 2>&1; then
9830 as_expr=expr
9831else
9832 as_expr=false
9833fi
9834
9835if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9836 as_basename=basename
9837else
9838 as_basename=false
9839fi
jjako286bc982003-01-28 23:17:50 +00009840
9841
9842# Name of the executable.
jjako08d331d2003-10-13 20:33:30 +00009843as_me=`$as_basename "$0" ||
jjako286bc982003-01-28 23:17:50 +00009844$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9845 X"$0" : 'X\(//\)$' \| \
9846 X"$0" : 'X\(/\)$' \| \
9847 . : '\(.\)' 2>/dev/null ||
9848echo X/"$0" |
9849 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9850 /^X\/\(\/\/\)$/{ s//\1/; q; }
9851 /^X\/\(\/\).*/{ s//\1/; q; }
9852 s/.*/./; q'`
9853
jjako08d331d2003-10-13 20:33:30 +00009854
jjako286bc982003-01-28 23:17:50 +00009855# PATH needs CR, and LINENO needs CR and PATH.
9856# Avoid depending upon Character Ranges.
9857as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9858as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9859as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9860as_cr_digits='0123456789'
9861as_cr_alnum=$as_cr_Letters$as_cr_digits
9862
9863# The user is always right.
9864if test "${PATH_SEPARATOR+set}" != set; then
jjako08d331d2003-10-13 20:33:30 +00009865 echo "#! /bin/sh" >conf$$.sh
9866 echo "exit 0" >>conf$$.sh
9867 chmod +x conf$$.sh
9868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +00009869 PATH_SEPARATOR=';'
9870 else
9871 PATH_SEPARATOR=:
9872 fi
jjako08d331d2003-10-13 20:33:30 +00009873 rm -f conf$$.sh
jjako286bc982003-01-28 23:17:50 +00009874fi
9875
9876
9877 as_lineno_1=$LINENO
9878 as_lineno_2=$LINENO
9879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9880 test "x$as_lineno_1" != "x$as_lineno_2" &&
9881 test "x$as_lineno_3" = "x$as_lineno_2" || {
9882 # Find who we are. Look in the path if we contain no path at all
9883 # relative or not.
9884 case $0 in
9885 *[\\/]* ) as_myself=$0 ;;
9886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887for as_dir in $PATH
9888do
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9892done
9893
9894 ;;
9895 esac
9896 # We did not find ourselves, most probably we were run as `sh COMMAND'
9897 # in which case we are not to be found in the path.
9898 if test "x$as_myself" = x; then
9899 as_myself=$0
9900 fi
9901 if test ! -f "$as_myself"; then
9902 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9903echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9904 { (exit 1); exit 1; }; }
9905 fi
9906 case $CONFIG_SHELL in
9907 '')
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for as_base in sh bash ksh sh5; do
9914 case $as_dir in
9915 /*)
9916 if ("$as_dir/$as_base" -c '
9917 as_lineno_1=$LINENO
9918 as_lineno_2=$LINENO
9919 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9920 test "x$as_lineno_1" != "x$as_lineno_2" &&
9921 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
jjako08d331d2003-10-13 20:33:30 +00009922 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9923 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
jjako286bc982003-01-28 23:17:50 +00009924 CONFIG_SHELL=$as_dir/$as_base
9925 export CONFIG_SHELL
9926 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9927 fi;;
9928 esac
9929 done
9930done
9931;;
jjako52c24142002-12-16 13:33:51 +00009932 esac
9933
jjako286bc982003-01-28 23:17:50 +00009934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9935 # uniformly replaced by the line number. The first 'sed' inserts a
9936 # line-number line before each line; the second 'sed' does the real
9937 # work. The second script uses 'N' to pair each line-number line
9938 # with the numbered line, and appends trailing '-' during
9939 # substitution so that $LINENO is not a special case at line end.
9940 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9941 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9942 sed '=' <$as_myself |
9943 sed '
9944 N
9945 s,$,-,
9946 : loop
9947 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9948 t loop
9949 s,-$,,
9950 s,^['$as_cr_digits']*\n,,
9951 ' >$as_me.lineno &&
9952 chmod +x $as_me.lineno ||
9953 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9954echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9955 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00009956
jjako286bc982003-01-28 23:17:50 +00009957 # Don't try to exec as it changes $[0], causing all sort of problems
9958 # (the dirname of $[0] is not the place where we might find the
9959 # original and so on. Autoconf is especially sensible to this).
9960 . ./$as_me.lineno
9961 # Exit status is that of the last command.
9962 exit
9963}
9964
9965
9966case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9967 *c*,-n*) ECHO_N= ECHO_C='
9968' ECHO_T=' ' ;;
9969 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9970 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9971esac
9972
9973if expr a : '\(a\)' >/dev/null 2>&1; then
9974 as_expr=expr
9975else
9976 as_expr=false
9977fi
9978
9979rm -f conf$$ conf$$.exe conf$$.file
9980echo >conf$$.file
9981if ln -s conf$$.file conf$$ 2>/dev/null; then
9982 # We could just check for DJGPP; but this test a) works b) is more generic
9983 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9984 if test -f conf$$.exe; then
9985 # Don't use ln at all; we don't have any links
9986 as_ln_s='cp -p'
jjako52c24142002-12-16 13:33:51 +00009987 else
jjako286bc982003-01-28 23:17:50 +00009988 as_ln_s='ln -s'
9989 fi
9990elif ln conf$$.file conf$$ 2>/dev/null; then
9991 as_ln_s=ln
9992else
9993 as_ln_s='cp -p'
9994fi
9995rm -f conf$$ conf$$.exe conf$$.file
9996
jjako08d331d2003-10-13 20:33:30 +00009997if mkdir -p . 2>/dev/null; then
9998 as_mkdir_p=:
9999else
10000 as_mkdir_p=false
10001fi
10002
jjako286bc982003-01-28 23:17:50 +000010003as_executable_p="test -f"
10004
10005# Sed expression to map a string onto a valid CPP name.
10006as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10007
10008# Sed expression to map a string onto a valid variable name.
10009as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10010
10011
10012# IFS
10013# We need space, tab and new line, in precisely that order.
10014as_nl='
10015'
10016IFS=" $as_nl"
10017
10018# CDPATH.
jjako08d331d2003-10-13 20:33:30 +000010019$as_unset CDPATH
jjako286bc982003-01-28 23:17:50 +000010020
10021exec 6>&1
10022
10023# Open the log real soon, to keep \$[0] and so on meaningful, and to
10024# report actual input values of CONFIG_FILES etc. instead of their
10025# values after options handling. Logging --version etc. is OK.
10026exec 5>>config.log
10027{
10028 echo
10029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10030## Running $as_me. ##
10031_ASBOX
10032} >&5
10033cat >&5 <<_CSEOF
10034
jjakob62c3dd2004-05-27 18:51:55 +000010035This file was extended by openggsn $as_me 0.82, which was
jjako08d331d2003-10-13 20:33:30 +000010036generated by GNU Autoconf 2.57. Invocation command line was
jjako286bc982003-01-28 23:17:50 +000010037
10038 CONFIG_FILES = $CONFIG_FILES
10039 CONFIG_HEADERS = $CONFIG_HEADERS
10040 CONFIG_LINKS = $CONFIG_LINKS
10041 CONFIG_COMMANDS = $CONFIG_COMMANDS
10042 $ $0 $@
10043
10044_CSEOF
10045echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10046echo >&5
10047_ACEOF
10048
10049# Files that config.status was made for.
10050if test -n "$ac_config_files"; then
10051 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10052fi
10053
10054if test -n "$ac_config_headers"; then
10055 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10056fi
10057
10058if test -n "$ac_config_links"; then
10059 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10060fi
10061
10062if test -n "$ac_config_commands"; then
10063 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10064fi
10065
10066cat >>$CONFIG_STATUS <<\_ACEOF
10067
10068ac_cs_usage="\
10069\`$as_me' instantiates files from templates according to the
10070current configuration.
10071
10072Usage: $0 [OPTIONS] [FILE]...
10073
10074 -h, --help print this help, then exit
10075 -V, --version print version number, then exit
jjako08d331d2003-10-13 20:33:30 +000010076 -q, --quiet do not print progress messages
jjako286bc982003-01-28 23:17:50 +000010077 -d, --debug don't remove temporary files
10078 --recheck update $as_me by reconfiguring in the same conditions
10079 --file=FILE[:TEMPLATE]
10080 instantiate the configuration file FILE
10081 --header=FILE[:TEMPLATE]
10082 instantiate the configuration header FILE
10083
10084Configuration files:
10085$config_files
10086
10087Configuration headers:
10088$config_headers
10089
jjako1d3db972004-01-16 09:56:56 +000010090Configuration links:
10091$config_links
10092
jjako286bc982003-01-28 23:17:50 +000010093Configuration commands:
10094$config_commands
10095
10096Report bugs to <bug-autoconf@gnu.org>."
10097_ACEOF
10098
10099cat >>$CONFIG_STATUS <<_ACEOF
10100ac_cs_version="\\
jjakob62c3dd2004-05-27 18:51:55 +000010101openggsn config.status 0.82
jjako08d331d2003-10-13 20:33:30 +000010102configured by $0, generated by GNU Autoconf 2.57,
jjako286bc982003-01-28 23:17:50 +000010103 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10104
10105Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10106Free Software Foundation, Inc.
10107This config.status script is free software; the Free Software Foundation
10108gives unlimited permission to copy, distribute and modify it."
10109srcdir=$srcdir
10110INSTALL="$INSTALL"
10111_ACEOF
10112
10113cat >>$CONFIG_STATUS <<\_ACEOF
10114# If no file are specified by the user, then we need to provide default
10115# value. By we need to know if files were specified by the user.
10116ac_need_defaults=:
10117while test $# != 0
10118do
10119 case $1 in
10120 --*=*)
10121 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10122 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
jjako08d331d2003-10-13 20:33:30 +000010123 ac_shift=:
jjako286bc982003-01-28 23:17:50 +000010124 ;;
jjako08d331d2003-10-13 20:33:30 +000010125 -*)
10126 ac_option=$1
10127 ac_optarg=$2
10128 ac_shift=shift
10129 ;;
jjako286bc982003-01-28 23:17:50 +000010130 *) # This is not an option, so the user has probably given explicit
10131 # arguments.
jjako08d331d2003-10-13 20:33:30 +000010132 ac_option=$1
jjako286bc982003-01-28 23:17:50 +000010133 ac_need_defaults=false;;
10134 esac
10135
jjako08d331d2003-10-13 20:33:30 +000010136 case $ac_option in
jjako286bc982003-01-28 23:17:50 +000010137 # Handling of the options.
10138_ACEOF
jjako0a120b22003-07-10 18:35:50 +000010139cat >>$CONFIG_STATUS <<\_ACEOF
jjako08d331d2003-10-13 20:33:30 +000010140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10141 ac_cs_recheck=: ;;
jjako286bc982003-01-28 23:17:50 +000010142 --version | --vers* | -V )
10143 echo "$ac_cs_version"; exit 0 ;;
10144 --he | --h)
10145 # Conflict between --help and --header
10146 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10147Try \`$0 --help' for more information." >&5
10148echo "$as_me: error: ambiguous option: $1
10149Try \`$0 --help' for more information." >&2;}
10150 { (exit 1); exit 1; }; };;
10151 --help | --hel | -h )
10152 echo "$ac_cs_usage"; exit 0 ;;
10153 --debug | --d* | -d )
10154 debug=: ;;
10155 --file | --fil | --fi | --f )
jjako08d331d2003-10-13 20:33:30 +000010156 $ac_shift
10157 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
jjako286bc982003-01-28 23:17:50 +000010158 ac_need_defaults=false;;
10159 --header | --heade | --head | --hea )
jjako08d331d2003-10-13 20:33:30 +000010160 $ac_shift
10161 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
jjako286bc982003-01-28 23:17:50 +000010162 ac_need_defaults=false;;
jjako08d331d2003-10-13 20:33:30 +000010163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10165 ac_cs_silent=: ;;
jjako286bc982003-01-28 23:17:50 +000010166
10167 # This is an error.
10168 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10169Try \`$0 --help' for more information." >&5
10170echo "$as_me: error: unrecognized option: $1
10171Try \`$0 --help' for more information." >&2;}
10172 { (exit 1); exit 1; }; } ;;
10173
10174 *) ac_config_targets="$ac_config_targets $1" ;;
10175
10176 esac
10177 shift
10178done
10179
jjako08d331d2003-10-13 20:33:30 +000010180ac_configure_extra_args=
10181
10182if $ac_cs_silent; then
10183 exec 6>/dev/null
10184 ac_configure_extra_args="$ac_configure_extra_args --silent"
10185fi
10186
10187_ACEOF
10188cat >>$CONFIG_STATUS <<_ACEOF
10189if \$ac_cs_recheck; then
10190 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10191 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10192fi
10193
jjako286bc982003-01-28 23:17:50 +000010194_ACEOF
10195
10196cat >>$CONFIG_STATUS <<_ACEOF
10197#
10198# INIT-COMMANDS section.
10199#
10200
10201AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10202
10203_ACEOF
10204
10205
10206
10207cat >>$CONFIG_STATUS <<\_ACEOF
10208for ac_config_target in $ac_config_targets
10209do
10210 case "$ac_config_target" in
10211 # Handling of arguments.
10212 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10213 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10214 "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;;
10215 "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;;
10216 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
10217 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
10218 "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;;
10219 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10220 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
jjakoa9639f32003-07-07 15:30:11 +000010221 "openggsn.spec" ) CONFIG_FILES="$CONFIG_FILES openggsn.spec" ;;
jjako1d3db972004-01-16 09:56:56 +000010222 "ggsn/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS ggsn/getopt.h:ggsn/gnugetopt.h" ;;
10223 "sgsnemu/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS sgsnemu/getopt.h:sgsnemu/gnugetopt.h" ;;
jjako286bc982003-01-28 23:17:50 +000010224 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10225 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10226 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10227echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10228 { (exit 1); exit 1; }; };;
10229 esac
10230done
10231
10232# If the user did not use the arguments to specify the items to instantiate,
10233# then the envvar interface is used. Set only those that are not.
10234# We use the long form for the default assignment because of an extremely
10235# bizarre bug on SunOS 4.1.3.
10236if $ac_need_defaults; then
10237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
jjako1d3db972004-01-16 09:56:56 +000010239 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
jjako286bc982003-01-28 23:17:50 +000010240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10241fi
10242
jjako08d331d2003-10-13 20:33:30 +000010243# Have a temporary directory for convenience. Make it in the build tree
10244# simply because there is no reason to put it here, and in addition,
10245# creating and moving files from /tmp can sometimes cause problems.
jjako286bc982003-01-28 23:17:50 +000010246# Create a temporary directory, and hook for its removal unless debugging.
10247$debug ||
10248{
10249 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10250 trap '{ (exit 1); exit 1; }' 1 2 13 15
10251}
10252
10253# Create a (secure) tmp directory for tmp files.
jjako08d331d2003-10-13 20:33:30 +000010254
jjako286bc982003-01-28 23:17:50 +000010255{
jjako08d331d2003-10-13 20:33:30 +000010256 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
jjako286bc982003-01-28 23:17:50 +000010257 test -n "$tmp" && test -d "$tmp"
10258} ||
10259{
jjako08d331d2003-10-13 20:33:30 +000010260 tmp=./confstat$$-$RANDOM
jjako286bc982003-01-28 23:17:50 +000010261 (umask 077 && mkdir $tmp)
10262} ||
10263{
jjako08d331d2003-10-13 20:33:30 +000010264 echo "$me: cannot create a temporary directory in ." >&2
jjako286bc982003-01-28 23:17:50 +000010265 { (exit 1); exit 1; }
10266}
10267
10268_ACEOF
10269
10270cat >>$CONFIG_STATUS <<_ACEOF
10271
10272#
10273# CONFIG_FILES section.
10274#
10275
10276# No need to generate the scripts if there are no CONFIG_FILES.
10277# This happens for instance when ./config.status config.h
10278if test -n "\$CONFIG_FILES"; then
10279 # Protect against being on the right side of a sed subst in config.status.
10280 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10281 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10282s,@SHELL@,$SHELL,;t t
10283s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10284s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10285s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10286s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10287s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10288s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10289s,@exec_prefix@,$exec_prefix,;t t
10290s,@prefix@,$prefix,;t t
10291s,@program_transform_name@,$program_transform_name,;t t
10292s,@bindir@,$bindir,;t t
10293s,@sbindir@,$sbindir,;t t
10294s,@libexecdir@,$libexecdir,;t t
10295s,@datadir@,$datadir,;t t
10296s,@sysconfdir@,$sysconfdir,;t t
10297s,@sharedstatedir@,$sharedstatedir,;t t
10298s,@localstatedir@,$localstatedir,;t t
10299s,@libdir@,$libdir,;t t
10300s,@includedir@,$includedir,;t t
10301s,@oldincludedir@,$oldincludedir,;t t
10302s,@infodir@,$infodir,;t t
10303s,@mandir@,$mandir,;t t
10304s,@build_alias@,$build_alias,;t t
10305s,@host_alias@,$host_alias,;t t
10306s,@target_alias@,$target_alias,;t t
10307s,@DEFS@,$DEFS,;t t
10308s,@ECHO_C@,$ECHO_C,;t t
10309s,@ECHO_N@,$ECHO_N,;t t
10310s,@ECHO_T@,$ECHO_T,;t t
10311s,@LIBS@,$LIBS,;t t
10312s,@CC@,$CC,;t t
10313s,@CFLAGS@,$CFLAGS,;t t
10314s,@LDFLAGS@,$LDFLAGS,;t t
10315s,@CPPFLAGS@,$CPPFLAGS,;t t
10316s,@ac_ct_CC@,$ac_ct_CC,;t t
10317s,@EXEEXT@,$EXEEXT,;t t
10318s,@OBJEXT@,$OBJEXT,;t t
10319s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10320s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10321s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10322s,@AWK@,$AWK,;t t
10323s,@CPP@,$CPP,;t t
10324s,@CXX@,$CXX,;t t
10325s,@CXXFLAGS@,$CXXFLAGS,;t t
10326s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10327s,@RANLIB@,$RANLIB,;t t
10328s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10329s,@build@,$build,;t t
10330s,@build_cpu@,$build_cpu,;t t
10331s,@build_vendor@,$build_vendor,;t t
10332s,@build_os@,$build_os,;t t
10333s,@host@,$host,;t t
10334s,@host_cpu@,$host_cpu,;t t
10335s,@host_vendor@,$host_vendor,;t t
10336s,@host_os@,$host_os,;t t
10337s,@LN_S@,$LN_S,;t t
10338s,@ECHO@,$ECHO,;t t
10339s,@STRIP@,$STRIP,;t t
10340s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
jjako08d331d2003-10-13 20:33:30 +000010341s,@EGREP@,$EGREP,;t t
jjako286bc982003-01-28 23:17:50 +000010342s,@LIBTOOL@,$LIBTOOL,;t t
jjakoa9639f32003-07-07 15:30:11 +000010343s,@EXEC_LDFLAGS@,$EXEC_LDFLAGS,;t t
jjako286bc982003-01-28 23:17:50 +000010344s,@LIBOBJS@,$LIBOBJS,;t t
10345s,@PACKAGE@,$PACKAGE,;t t
10346s,@VERSION@,$VERSION,;t t
10347s,@ACLOCAL@,$ACLOCAL,;t t
10348s,@AUTOCONF@,$AUTOCONF,;t t
10349s,@AUTOMAKE@,$AUTOMAKE,;t t
10350s,@AUTOHEADER@,$AUTOHEADER,;t t
10351s,@MAKEINFO@,$MAKEINFO,;t t
10352s,@AMTAR@,$AMTAR,;t t
10353s,@install_sh@,$install_sh,;t t
10354s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10355s,@SET_MAKE@,$SET_MAKE,;t t
10356s,@DEPDIR@,$DEPDIR,;t t
10357s,@am__include@,$am__include,;t t
10358s,@am__quote@,$am__quote,;t t
10359s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10360s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10361s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10362s,@CCDEPMODE@,$CCDEPMODE,;t t
10363s,@CXXDEPMODE@,$CXXDEPMODE,;t t
jjako08d331d2003-10-13 20:33:30 +000010364s,@LTLIBOBJS@,$LTLIBOBJS,;t t
jjako286bc982003-01-28 23:17:50 +000010365CEOF
10366
10367_ACEOF
10368
10369 cat >>$CONFIG_STATUS <<\_ACEOF
10370 # Split the substitutions into bite-sized pieces for seds with
10371 # small command number limits, like on Digital OSF/1 and HP-UX.
10372 ac_max_sed_lines=48
10373 ac_sed_frag=1 # Number of current file.
10374 ac_beg=1 # First line for current file.
10375 ac_end=$ac_max_sed_lines # Line after last line for current file.
10376 ac_more_lines=:
10377 ac_sed_cmds=
10378 while $ac_more_lines; do
10379 if test $ac_beg -gt 1; then
10380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10381 else
10382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10383 fi
10384 if test ! -s $tmp/subs.frag; then
10385 ac_more_lines=false
10386 else
10387 # The purpose of the label and of the branching condition is to
10388 # speed up the sed processing (if there are no `@' at all, there
10389 # is no need to browse any of the substitutions).
10390 # These are the two extra sed commands mentioned above.
10391 (echo ':t
10392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10393 if test -z "$ac_sed_cmds"; then
10394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10395 else
10396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10397 fi
10398 ac_sed_frag=`expr $ac_sed_frag + 1`
10399 ac_beg=$ac_end
10400 ac_end=`expr $ac_end + $ac_max_sed_lines`
10401 fi
10402 done
10403 if test -z "$ac_sed_cmds"; then
10404 ac_sed_cmds=cat
10405 fi
10406fi # test -n "$CONFIG_FILES"
10407
10408_ACEOF
10409cat >>$CONFIG_STATUS <<\_ACEOF
10410for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10412 case $ac_file in
10413 - | *:- | *:-:* ) # input from stdin
10414 cat >$tmp/stdin
10415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10419 * ) ac_file_in=$ac_file.in ;;
10420 esac
10421
10422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10423 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10425 X"$ac_file" : 'X\(//\)[^/]' \| \
10426 X"$ac_file" : 'X\(//\)$' \| \
10427 X"$ac_file" : 'X\(/\)' \| \
10428 . : '\(.\)' 2>/dev/null ||
10429echo X"$ac_file" |
10430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10432 /^X\(\/\/\)$/{ s//\1/; q; }
10433 /^X\(\/\).*/{ s//\1/; q; }
10434 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000010435 { if $as_mkdir_p; then
10436 mkdir -p "$ac_dir"
10437 else
10438 as_dir="$ac_dir"
10439 as_dirs=
10440 while test ! -d "$as_dir"; do
10441 as_dirs="$as_dir $as_dirs"
10442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10444 X"$as_dir" : 'X\(//\)[^/]' \| \
10445 X"$as_dir" : 'X\(//\)$' \| \
10446 X"$as_dir" : 'X\(/\)' \| \
10447 . : '\(.\)' 2>/dev/null ||
10448echo X"$as_dir" |
10449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10451 /^X\(\/\/\)$/{ s//\1/; q; }
10452 /^X\(\/\).*/{ s//\1/; q; }
10453 s/.*/./; q'`
10454 done
10455 test ! -n "$as_dirs" || mkdir $as_dirs
10456 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10457echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10458 { (exit 1); exit 1; }; }; }
jjako286bc982003-01-28 23:17:50 +000010459
10460 ac_builddir=.
10461
10462if test "$ac_dir" != .; then
10463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10464 # A "../" for each directory in $ac_dir_suffix.
10465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10466else
10467 ac_dir_suffix= ac_top_builddir=
10468fi
10469
10470case $srcdir in
10471 .) # No --srcdir option. We are building in place.
10472 ac_srcdir=.
10473 if test -z "$ac_top_builddir"; then
10474 ac_top_srcdir=.
10475 else
10476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10477 fi ;;
10478 [\\/]* | ?:[\\/]* ) # Absolute path.
10479 ac_srcdir=$srcdir$ac_dir_suffix;
10480 ac_top_srcdir=$srcdir ;;
10481 *) # Relative path.
10482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10484esac
10485# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10486# absolute.
10487ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
jjako08d331d2003-10-13 20:33:30 +000010488ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
jjako286bc982003-01-28 23:17:50 +000010489ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10490ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10491
10492
10493 case $INSTALL in
10494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10495 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10496 esac
10497
10498 if test x"$ac_file" != x-; then
10499 { echo "$as_me:$LINENO: creating $ac_file" >&5
10500echo "$as_me: creating $ac_file" >&6;}
10501 rm -f "$ac_file"
10502 fi
10503 # Let's still pretend it is `configure' which instantiates (i.e., don't
10504 # use $as_me), people would be surprised to read:
10505 # /* config.h. Generated by config.status. */
10506 if test x"$ac_file" = x-; then
10507 configure_input=
10508 else
10509 configure_input="$ac_file. "
10510 fi
10511 configure_input=$configure_input"Generated from `echo $ac_file_in |
10512 sed 's,.*/,,'` by configure."
10513
10514 # First look for the input files in the build tree, otherwise in the
10515 # src tree.
10516 ac_file_inputs=`IFS=:
10517 for f in $ac_file_in; do
10518 case $f in
10519 -) echo $tmp/stdin ;;
10520 [\\/$]*)
10521 # Absolute (can't be DOS-style, as IFS=:)
10522 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10523echo "$as_me: error: cannot find input file: $f" >&2;}
10524 { (exit 1); exit 1; }; }
10525 echo $f;;
10526 *) # Relative
10527 if test -f "$f"; then
10528 # Build tree
10529 echo $f
10530 elif test -f "$srcdir/$f"; then
10531 # Source tree
10532 echo $srcdir/$f
10533 else
10534 # /dev/null tree
10535 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10536echo "$as_me: error: cannot find input file: $f" >&2;}
10537 { (exit 1); exit 1; }; }
10538 fi;;
10539 esac
10540 done` || { (exit 1); exit 1; }
10541_ACEOF
10542cat >>$CONFIG_STATUS <<_ACEOF
10543 sed "$ac_vpsub
10544$extrasub
10545_ACEOF
10546cat >>$CONFIG_STATUS <<\_ACEOF
10547:t
10548/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10549s,@configure_input@,$configure_input,;t t
10550s,@srcdir@,$ac_srcdir,;t t
10551s,@abs_srcdir@,$ac_abs_srcdir,;t t
10552s,@top_srcdir@,$ac_top_srcdir,;t t
10553s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10554s,@builddir@,$ac_builddir,;t t
10555s,@abs_builddir@,$ac_abs_builddir,;t t
10556s,@top_builddir@,$ac_top_builddir,;t t
10557s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10558s,@INSTALL@,$ac_INSTALL,;t t
10559" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10560 rm -f $tmp/stdin
10561 if test x"$ac_file" != x-; then
10562 mv $tmp/out $ac_file
10563 else
10564 cat $tmp/out
10565 rm -f $tmp/out
jjako52c24142002-12-16 13:33:51 +000010566 fi
10567
jjako286bc982003-01-28 23:17:50 +000010568done
10569_ACEOF
10570cat >>$CONFIG_STATUS <<\_ACEOF
10571
10572#
10573# CONFIG_HEADER section.
10574#
10575
10576# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10577# NAME is the cpp macro being defined and VALUE is the value it is being given.
10578#
10579# ac_d sets the value in "#define NAME VALUE" lines.
10580ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10581ac_dB='[ ].*$,\1#\2'
10582ac_dC=' '
10583ac_dD=',;t'
10584# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10585ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10586ac_uB='$,\1#\2define\3'
10587ac_uC=' '
10588ac_uD=',;t'
10589
10590for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10592 case $ac_file in
10593 - | *:- | *:-:* ) # input from stdin
10594 cat >$tmp/stdin
10595 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10597 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10599 * ) ac_file_in=$ac_file.in ;;
10600 esac
10601
10602 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10603echo "$as_me: creating $ac_file" >&6;}
10604
10605 # First look for the input files in the build tree, otherwise in the
10606 # src tree.
10607 ac_file_inputs=`IFS=:
10608 for f in $ac_file_in; do
10609 case $f in
10610 -) echo $tmp/stdin ;;
10611 [\\/$]*)
10612 # Absolute (can't be DOS-style, as IFS=:)
10613 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10614echo "$as_me: error: cannot find input file: $f" >&2;}
10615 { (exit 1); exit 1; }; }
10616 echo $f;;
10617 *) # Relative
10618 if test -f "$f"; then
10619 # Build tree
10620 echo $f
10621 elif test -f "$srcdir/$f"; then
10622 # Source tree
10623 echo $srcdir/$f
10624 else
10625 # /dev/null tree
10626 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10627echo "$as_me: error: cannot find input file: $f" >&2;}
10628 { (exit 1); exit 1; }; }
10629 fi;;
10630 esac
10631 done` || { (exit 1); exit 1; }
10632 # Remove the trailing spaces.
10633 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10634
10635_ACEOF
10636
10637# Transform confdefs.h into two sed scripts, `conftest.defines' and
10638# `conftest.undefs', that substitutes the proper values into
10639# config.h.in to produce config.h. The first handles `#define'
10640# templates, and the second `#undef' templates.
10641# And first: Protect against being on the right side of a sed subst in
10642# config.status. Protect against being in an unquoted here document
10643# in config.status.
10644rm -f conftest.defines conftest.undefs
10645# Using a here document instead of a string reduces the quoting nightmare.
10646# Putting comments in sed scripts is not portable.
10647#
10648# `end' is used to avoid that the second main sed command (meant for
10649# 0-ary CPP macros) applies to n-ary macro definitions.
10650# See the Autoconf documentation for `clear'.
10651cat >confdef2sed.sed <<\_ACEOF
10652s/[\\&,]/\\&/g
10653s,[\\$`],\\&,g
10654t clear
10655: clear
10656s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10657t end
10658s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10659: end
10660_ACEOF
10661# If some macros were called several times there might be several times
10662# the same #defines, which is useless. Nevertheless, we may not want to
10663# sort them, since we want the *last* AC-DEFINE to be honored.
10664uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10665sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10666rm -f confdef2sed.sed
10667
10668# This sed command replaces #undef with comments. This is necessary, for
10669# example, in the case of _POSIX_SOURCE, which is predefined and required
10670# on some systems where configure will not decide to define it.
10671cat >>conftest.undefs <<\_ACEOF
10672s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10673_ACEOF
10674
10675# Break up conftest.defines because some shells have a limit on the size
10676# of here documents, and old seds have small limits too (100 cmds).
10677echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
jjako08d331d2003-10-13 20:33:30 +000010678echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000010679echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10680echo ' :' >>$CONFIG_STATUS
10681rm -f conftest.tail
10682while grep . conftest.defines >/dev/null
10683do
10684 # Write a limited-size here document to $tmp/defines.sed.
10685 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10686 # Speed up: don't consider the non `#define' lines.
10687 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10688 # Work around the forget-to-reset-the-flag bug.
10689 echo 't clr' >>$CONFIG_STATUS
10690 echo ': clr' >>$CONFIG_STATUS
10691 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10692 echo 'CEOF
10693 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10694 rm -f $tmp/in
10695 mv $tmp/out $tmp/in
10696' >>$CONFIG_STATUS
10697 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10698 rm -f conftest.defines
10699 mv conftest.tail conftest.defines
10700done
10701rm -f conftest.defines
jjako08d331d2003-10-13 20:33:30 +000010702echo ' fi # grep' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000010703echo >>$CONFIG_STATUS
10704
10705# Break up conftest.undefs because some shells have a limit on the size
10706# of here documents, and old seds have small limits too (100 cmds).
10707echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10708rm -f conftest.tail
10709while grep . conftest.undefs >/dev/null
10710do
10711 # Write a limited-size here document to $tmp/undefs.sed.
10712 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10713 # Speed up: don't consider the non `#undef'
10714 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10715 # Work around the forget-to-reset-the-flag bug.
10716 echo 't clr' >>$CONFIG_STATUS
10717 echo ': clr' >>$CONFIG_STATUS
10718 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10719 echo 'CEOF
10720 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10721 rm -f $tmp/in
10722 mv $tmp/out $tmp/in
10723' >>$CONFIG_STATUS
10724 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10725 rm -f conftest.undefs
10726 mv conftest.tail conftest.undefs
10727done
10728rm -f conftest.undefs
10729
10730cat >>$CONFIG_STATUS <<\_ACEOF
10731 # Let's still pretend it is `configure' which instantiates (i.e., don't
10732 # use $as_me), people would be surprised to read:
10733 # /* config.h. Generated by config.status. */
10734 if test x"$ac_file" = x-; then
10735 echo "/* Generated by configure. */" >$tmp/config.h
10736 else
10737 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10738 fi
10739 cat $tmp/in >>$tmp/config.h
10740 rm -f $tmp/in
10741 if test x"$ac_file" != x-; then
jjako08d331d2003-10-13 20:33:30 +000010742 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +000010743 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10744echo "$as_me: $ac_file is unchanged" >&6;}
10745 else
10746 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10747$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10748 X"$ac_file" : 'X\(//\)[^/]' \| \
10749 X"$ac_file" : 'X\(//\)$' \| \
10750 X"$ac_file" : 'X\(/\)' \| \
10751 . : '\(.\)' 2>/dev/null ||
10752echo X"$ac_file" |
10753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10755 /^X\(\/\/\)$/{ s//\1/; q; }
10756 /^X\(\/\).*/{ s//\1/; q; }
10757 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000010758 { if $as_mkdir_p; then
10759 mkdir -p "$ac_dir"
10760 else
10761 as_dir="$ac_dir"
10762 as_dirs=
10763 while test ! -d "$as_dir"; do
10764 as_dirs="$as_dir $as_dirs"
10765 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10766$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10767 X"$as_dir" : 'X\(//\)[^/]' \| \
10768 X"$as_dir" : 'X\(//\)$' \| \
10769 X"$as_dir" : 'X\(/\)' \| \
10770 . : '\(.\)' 2>/dev/null ||
10771echo X"$as_dir" |
10772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10774 /^X\(\/\/\)$/{ s//\1/; q; }
10775 /^X\(\/\).*/{ s//\1/; q; }
10776 s/.*/./; q'`
10777 done
10778 test ! -n "$as_dirs" || mkdir $as_dirs
10779 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10780echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10781 { (exit 1); exit 1; }; }; }
jjako286bc982003-01-28 23:17:50 +000010782
10783 rm -f $ac_file
10784 mv $tmp/config.h $ac_file
10785 fi
10786 else
10787 cat $tmp/config.h
10788 rm -f $tmp/config.h
10789 fi
10790 # Run the commands associated with the file.
10791 case $ac_file in
10792 config.h ) # update the timestamp
10793echo 'timestamp for config.h' >"./stamp-h1"
10794 ;;
10795 esac
10796done
10797_ACEOF
10798cat >>$CONFIG_STATUS <<\_ACEOF
10799
10800#
jjako1d3db972004-01-16 09:56:56 +000010801# CONFIG_LINKS section.
10802#
10803
10804for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10805 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10806 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10807
10808 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10809echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10810
10811 if test ! -r $srcdir/$ac_source; then
10812 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10813echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10814 { (exit 1); exit 1; }; }
10815 fi
10816 rm -f $ac_dest
10817
10818 # Make relative symlinks.
10819 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10820$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10821 X"$ac_dest" : 'X\(//\)[^/]' \| \
10822 X"$ac_dest" : 'X\(//\)$' \| \
10823 X"$ac_dest" : 'X\(/\)' \| \
10824 . : '\(.\)' 2>/dev/null ||
10825echo X"$ac_dest" |
10826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10828 /^X\(\/\/\)$/{ s//\1/; q; }
10829 /^X\(\/\).*/{ s//\1/; q; }
10830 s/.*/./; q'`
10831 { if $as_mkdir_p; then
10832 mkdir -p "$ac_dest_dir"
10833 else
10834 as_dir="$ac_dest_dir"
10835 as_dirs=
10836 while test ! -d "$as_dir"; do
10837 as_dirs="$as_dir $as_dirs"
10838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10839$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10840 X"$as_dir" : 'X\(//\)[^/]' \| \
10841 X"$as_dir" : 'X\(//\)$' \| \
10842 X"$as_dir" : 'X\(/\)' \| \
10843 . : '\(.\)' 2>/dev/null ||
10844echo X"$as_dir" |
10845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10847 /^X\(\/\/\)$/{ s//\1/; q; }
10848 /^X\(\/\).*/{ s//\1/; q; }
10849 s/.*/./; q'`
10850 done
10851 test ! -n "$as_dirs" || mkdir $as_dirs
10852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10853echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10854 { (exit 1); exit 1; }; }; }
10855
10856 ac_builddir=.
10857
10858if test "$ac_dest_dir" != .; then
10859 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10860 # A "../" for each directory in $ac_dir_suffix.
10861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10862else
10863 ac_dir_suffix= ac_top_builddir=
10864fi
10865
10866case $srcdir in
10867 .) # No --srcdir option. We are building in place.
10868 ac_srcdir=.
10869 if test -z "$ac_top_builddir"; then
10870 ac_top_srcdir=.
10871 else
10872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10873 fi ;;
10874 [\\/]* | ?:[\\/]* ) # Absolute path.
10875 ac_srcdir=$srcdir$ac_dir_suffix;
10876 ac_top_srcdir=$srcdir ;;
10877 *) # Relative path.
10878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10880esac
10881# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
10882# absolute.
10883ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
10884ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
10885ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
10886ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
10887
10888
10889 case $srcdir in
10890 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10891 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10892 esac
10893
10894 # Try a symlink, then a hard link, then a copy.
10895 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10896 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10897 cp -p $srcdir/$ac_source $ac_dest ||
10898 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10899echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10900 { (exit 1); exit 1; }; }
10901done
10902_ACEOF
10903cat >>$CONFIG_STATUS <<\_ACEOF
10904
10905#
jjako286bc982003-01-28 23:17:50 +000010906# CONFIG_COMMANDS section.
10907#
10908for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10909 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10910 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10911 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10912$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10913 X"$ac_dest" : 'X\(//\)[^/]' \| \
10914 X"$ac_dest" : 'X\(//\)$' \| \
10915 X"$ac_dest" : 'X\(/\)' \| \
10916 . : '\(.\)' 2>/dev/null ||
10917echo X"$ac_dest" |
10918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10920 /^X\(\/\/\)$/{ s//\1/; q; }
10921 /^X\(\/\).*/{ s//\1/; q; }
10922 s/.*/./; q'`
10923 ac_builddir=.
10924
10925if test "$ac_dir" != .; then
10926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10927 # A "../" for each directory in $ac_dir_suffix.
10928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10929else
10930 ac_dir_suffix= ac_top_builddir=
10931fi
10932
10933case $srcdir in
10934 .) # No --srcdir option. We are building in place.
10935 ac_srcdir=.
10936 if test -z "$ac_top_builddir"; then
10937 ac_top_srcdir=.
10938 else
10939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10940 fi ;;
10941 [\\/]* | ?:[\\/]* ) # Absolute path.
10942 ac_srcdir=$srcdir$ac_dir_suffix;
10943 ac_top_srcdir=$srcdir ;;
jjako52c24142002-12-16 13:33:51 +000010944 *) # Relative path.
jjako286bc982003-01-28 23:17:50 +000010945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10947esac
10948# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10949# absolute.
10950ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
jjako08d331d2003-10-13 20:33:30 +000010951ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
jjako286bc982003-01-28 23:17:50 +000010952ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10953ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10954
10955
10956 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10957echo "$as_me: executing $ac_dest commands" >&6;}
10958 case $ac_dest in
10959 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10960 # Strip MF so we end up with the name of the file.
10961 mf=`echo "$mf" | sed -e 's/:.*$//'`
10962 # Check whether this is an Automake generated Makefile or not.
10963 # We used to match only the files named `Makefile.in', but
10964 # some people rename them; so instead we look at the file content.
10965 # Grep'ing the first line is not enough: some people post-process
10966 # each Makefile.in and add a new line on top of each file to say so.
10967 # So let's grep whole file.
10968 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10969 dirpart=`(dirname "$mf") 2>/dev/null ||
10970$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10971 X"$mf" : 'X\(//\)[^/]' \| \
10972 X"$mf" : 'X\(//\)$' \| \
10973 X"$mf" : 'X\(/\)' \| \
10974 . : '\(.\)' 2>/dev/null ||
10975echo X"$mf" |
10976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10978 /^X\(\/\/\)$/{ s//\1/; q; }
10979 /^X\(\/\).*/{ s//\1/; q; }
10980 s/.*/./; q'`
10981 else
10982 continue
10983 fi
10984 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10985 # Extract the definition of DEP_FILES from the Makefile without
10986 # running `make'.
10987 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10988 test -z "$DEPDIR" && continue
10989 # When using ansi2knr, U may be empty or an underscore; expand it
10990 U=`sed -n -e '/^U = / s///p' < "$mf"`
10991 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10992 # We invoke sed twice because it is the simplest approach to
10993 # changing $(DEPDIR) to its actual value in the expansion.
10994 for file in `sed -n -e '
10995 /^DEP_FILES = .*\\\\$/ {
10996 s/^DEP_FILES = //
10997 :loop
10998 s/\\\\$//
10999 p
11000 n
11001 /\\\\$/ b loop
11002 p
11003 }
11004 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11005 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11006 # Make sure the directory exists.
11007 test -f "$dirpart/$file" && continue
11008 fdir=`(dirname "$file") 2>/dev/null ||
11009$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11010 X"$file" : 'X\(//\)[^/]' \| \
11011 X"$file" : 'X\(//\)$' \| \
11012 X"$file" : 'X\(/\)' \| \
11013 . : '\(.\)' 2>/dev/null ||
11014echo X"$file" |
11015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11017 /^X\(\/\/\)$/{ s//\1/; q; }
11018 /^X\(\/\).*/{ s//\1/; q; }
11019 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000011020 { if $as_mkdir_p; then
11021 mkdir -p $dirpart/$fdir
11022 else
11023 as_dir=$dirpart/$fdir
11024 as_dirs=
11025 while test ! -d "$as_dir"; do
11026 as_dirs="$as_dir $as_dirs"
11027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11029 X"$as_dir" : 'X\(//\)[^/]' \| \
11030 X"$as_dir" : 'X\(//\)$' \| \
11031 X"$as_dir" : 'X\(/\)' \| \
11032 . : '\(.\)' 2>/dev/null ||
11033echo X"$as_dir" |
11034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11036 /^X\(\/\/\)$/{ s//\1/; q; }
11037 /^X\(\/\).*/{ s//\1/; q; }
11038 s/.*/./; q'`
11039 done
11040 test ! -n "$as_dirs" || mkdir $as_dirs
11041 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11042echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11043 { (exit 1); exit 1; }; }; }
jjako52c24142002-12-16 13:33:51 +000011044
jjako286bc982003-01-28 23:17:50 +000011045 # echo "creating $dirpart/$file"
11046 echo '# dummy' > "$dirpart/$file"
11047 done
11048done
11049 ;;
jjako52c24142002-12-16 13:33:51 +000011050 esac
jjako286bc982003-01-28 23:17:50 +000011051done
11052_ACEOF
jjako52c24142002-12-16 13:33:51 +000011053
jjako286bc982003-01-28 23:17:50 +000011054cat >>$CONFIG_STATUS <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000011055
jjako286bc982003-01-28 23:17:50 +000011056{ (exit 0); exit 0; }
11057_ACEOF
jjako52c24142002-12-16 13:33:51 +000011058chmod +x $CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000011059ac_clean_files=$ac_clean_files_save
11060
11061
11062# configure is writing to config.log, and then calls config.status.
11063# config.status does its own redirection, appending to config.log.
11064# Unfortunately, on DOS this fails, as config.log is still kept open
11065# by configure, so config.status won't be able to write to it; its
11066# output is simply discarded. So we exec the FD to /dev/null,
11067# effectively closing config.log, so it can be properly (re)opened and
11068# appended to by config.status. When coming back to configure, we
11069# need to make the FD available again.
11070if test "$no_create" != yes; then
11071 ac_cs_success=:
jjako08d331d2003-10-13 20:33:30 +000011072 ac_config_status_args=
11073 test "$silent" = yes &&
11074 ac_config_status_args="$ac_config_status_args --quiet"
jjako286bc982003-01-28 23:17:50 +000011075 exec 5>/dev/null
jjako08d331d2003-10-13 20:33:30 +000011076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
jjako286bc982003-01-28 23:17:50 +000011077 exec 5>>config.log
11078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11079 # would make configure fail if this is the last instruction.
11080 $ac_cs_success || { (exit 1); exit 1; }
11081fi
jjako52c24142002-12-16 13:33:51 +000011082