blob: 8155b64450f66437120a576e702e84f1549353bd [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.
jjakoe31b2402004-12-30 23:07:42 +00003# Generated by GNU Autoconf 2.57 for openggsn 0.83.
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'
jjakoe31b2402004-12-30 23:07:42 +0000430PACKAGE_VERSION='0.83'
431PACKAGE_STRING='openggsn 0.83'
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
jjakoe31b2402004-12-30 23:07:42 +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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK CPP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL EXEC_LDFLAGS EXEC_LDADD 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'
jjako08d331d2003-10-13 20:33:30 +0000473ac_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
jjakoe31b2402004-12-30 23:07:42 +0000949\`configure' configures openggsn 0.83 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]
jjako77edc822004-09-10 17:19:31 +00001010 --target=TARGET configure for building compilers for TARGET [HOST]
jjako286bc982003-01-28 23:17:50 +00001011_ACEOF
1012fi
1013
1014if test -n "$ac_init_help"; then
1015 case $ac_init_help in
jjakoe31b2402004-12-30 23:07:42 +00001016 short | recursive ) echo "Configuration of openggsn 0.83:";;
jjako286bc982003-01-28 23:17:50 +00001017 esac
1018 cat <<\_ACEOF
1019
1020Optional Features:
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023 --enable-shared=PKGS build shared libraries default=yes
1024 --enable-static=PKGS build static libraries default=yes
1025 --enable-fast-install=PKGS optimize for fast installation default=yes
1026 --disable-libtool-lock avoid locking (might break parallel builds)
jjakoa9639f32003-07-07 15:30:11 +00001027 --enable-static-exec Enable static linking of executables
jjako286bc982003-01-28 23:17:50 +00001028 --disable-dependency-tracking Speeds up one-time builds
1029 --enable-dependency-tracking Do not reject slow dependency extractors
1030
1031Optional Packages:
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gnu-ld assume the C compiler uses GNU ld default=no
1035 --with-pic try to use only PIC/non-PIC objects default=use both
1036
1037Some influential environment variables:
1038 CC C compiler command
1039 CFLAGS C compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1044 CPP C preprocessor
1045 CXX C++ compiler command
1046 CXXFLAGS C++ compiler flags
1047
1048Use these variables to override the choices made by `configure' or to help
1049it to find libraries and programs with nonstandard names/locations.
1050
1051Report bugs to <jj@openggsn.org>.
1052_ACEOF
1053fi
1054
1055if test "$ac_init_help" = "recursive"; then
1056 # If there are subdirs, report their specific --help.
1057 ac_popdir=`pwd`
1058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059 test -d $ac_dir || continue
1060 ac_builddir=.
1061
1062if test "$ac_dir" != .; then
1063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064 # A "../" for each directory in $ac_dir_suffix.
1065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066else
1067 ac_dir_suffix= ac_top_builddir=
1068fi
1069
1070case $srcdir in
1071 .) # No --srcdir option. We are building in place.
1072 ac_srcdir=.
1073 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=.
1075 else
1076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 fi ;;
1078 [\\/]* | ?:[\\/]* ) # Absolute path.
1079 ac_srcdir=$srcdir$ac_dir_suffix;
1080 ac_top_srcdir=$srcdir ;;
1081 *) # Relative path.
1082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084esac
1085# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1086# absolute.
1087ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
jjako08d331d2003-10-13 20:33:30 +00001088ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
jjako286bc982003-01-28 23:17:50 +00001089ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1090ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1091
1092 cd $ac_dir
1093 # Check for guested configure; otherwise get Cygnus style configure.
1094 if test -f $ac_srcdir/configure.gnu; then
1095 echo
1096 $SHELL $ac_srcdir/configure.gnu --help=recursive
1097 elif test -f $ac_srcdir/configure; then
1098 echo
1099 $SHELL $ac_srcdir/configure --help=recursive
1100 elif test -f $ac_srcdir/configure.ac ||
1101 test -f $ac_srcdir/configure.in; then
1102 echo
1103 $ac_configure --help
1104 else
1105 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1106 fi
1107 cd $ac_popdir
1108 done
1109fi
1110
1111test -n "$ac_init_help" && exit 0
1112if $ac_init_version; then
1113 cat <<\_ACEOF
jjakoe31b2402004-12-30 23:07:42 +00001114openggsn configure 0.83
jjako08d331d2003-10-13 20:33:30 +00001115generated by GNU Autoconf 2.57
jjako286bc982003-01-28 23:17:50 +00001116
1117Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1118Free Software Foundation, Inc.
1119This configure script is free software; the Free Software Foundation
1120gives unlimited permission to copy, distribute and modify it.
1121_ACEOF
1122 exit 0
1123fi
1124exec 5>config.log
1125cat >&5 <<_ACEOF
1126This file contains any messages produced by compilers while
1127running configure, to aid debugging if configure makes a mistake.
1128
jjakoe31b2402004-12-30 23:07:42 +00001129It was created by openggsn $as_me 0.83, which was
jjako08d331d2003-10-13 20:33:30 +00001130generated by GNU Autoconf 2.57. Invocation command line was
jjako286bc982003-01-28 23:17:50 +00001131
1132 $ $0 $@
1133
1134_ACEOF
1135{
1136cat <<_ASUNAME
1137## --------- ##
1138## Platform. ##
1139## --------- ##
1140
1141hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1142uname -m = `(uname -m) 2>/dev/null || echo unknown`
1143uname -r = `(uname -r) 2>/dev/null || echo unknown`
1144uname -s = `(uname -s) 2>/dev/null || echo unknown`
1145uname -v = `(uname -v) 2>/dev/null || echo unknown`
1146
1147/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1148/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1149
1150/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1151/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1152/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1153hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1154/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1155/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1156/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1157
1158_ASUNAME
1159
1160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1161for as_dir in $PATH
1162do
1163 IFS=$as_save_IFS
1164 test -z "$as_dir" && as_dir=.
1165 echo "PATH: $as_dir"
1166done
1167
1168} >&5
1169
1170cat >&5 <<_ACEOF
1171
1172
1173## ----------- ##
1174## Core tests. ##
1175## ----------- ##
1176
1177_ACEOF
1178
1179
1180# Keep a trace of the command line.
1181# Strip out --no-create and --no-recursion so they do not pile up.
jjako08d331d2003-10-13 20:33:30 +00001182# Strip out --silent because we don't want to record it for future runs.
jjako286bc982003-01-28 23:17:50 +00001183# Also quote any args containing shell meta-characters.
jjako08d331d2003-10-13 20:33:30 +00001184# Make two passes to allow for proper duplicate-argument suppression.
jjako286bc982003-01-28 23:17:50 +00001185ac_configure_args=
jjako08d331d2003-10-13 20:33:30 +00001186ac_configure_args0=
1187ac_configure_args1=
jjako286bc982003-01-28 23:17:50 +00001188ac_sep=
jjako08d331d2003-10-13 20:33:30 +00001189ac_must_keep_next=false
1190for ac_pass in 1 2
jjako286bc982003-01-28 23:17:50 +00001191do
jjako08d331d2003-10-13 20:33:30 +00001192 for ac_arg
1193 do
1194 case $ac_arg in
1195 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 continue ;;
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 esac
1202 case $ac_pass in
1203 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1204 2)
1205 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1206 if test $ac_must_keep_next = true; then
1207 ac_must_keep_next=false # Got value, back to normal.
1208 else
1209 case $ac_arg in
1210 *=* | --config-cache | -C | -disable-* | --disable-* \
1211 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1212 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1213 | -with-* | --with-* | -without-* | --without-* | --x)
1214 case "$ac_configure_args0 " in
1215 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1216 esac
1217 ;;
1218 -* ) ac_must_keep_next=true ;;
1219 esac
1220 fi
1221 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1222 # Get rid of the leading space.
1223 ac_sep=" "
1224 ;;
1225 esac
1226 done
jjako286bc982003-01-28 23:17:50 +00001227done
jjako08d331d2003-10-13 20:33:30 +00001228$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1229$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
jjako286bc982003-01-28 23:17:50 +00001230
1231# When interrupted or exit'd, cleanup temporary files, and complete
1232# config.log. We remove comments because anyway the quotes in there
1233# would cause problems or look ugly.
1234# WARNING: Be sure not to use single quotes in there, as some shells,
1235# such as our DU 5.0 friend, will then `close' the trap.
1236trap 'exit_status=$?
1237 # Save into config.log some information that might help in debugging.
1238 {
1239 echo
jjako08d331d2003-10-13 20:33:30 +00001240
jjako286bc982003-01-28 23:17:50 +00001241 cat <<\_ASBOX
1242## ---------------- ##
1243## Cache variables. ##
1244## ---------------- ##
1245_ASBOX
1246 echo
1247 # The following way of writing the cache mishandles newlines in values,
1248{
1249 (set) 2>&1 |
1250 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1251 *ac_space=\ *)
1252 sed -n \
1253 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1255 ;;
1256 *)
1257 sed -n \
1258 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1259 ;;
1260 esac;
1261}
1262 echo
jjako08d331d2003-10-13 20:33:30 +00001263
1264 cat <<\_ASBOX
1265## ----------------- ##
1266## Output variables. ##
1267## ----------------- ##
1268_ASBOX
1269 echo
1270 for ac_var in $ac_subst_vars
1271 do
1272 eval ac_val=$`echo $ac_var`
1273 echo "$ac_var='"'"'$ac_val'"'"'"
1274 done | sort
1275 echo
1276
1277 if test -n "$ac_subst_files"; then
1278 cat <<\_ASBOX
1279## ------------- ##
1280## Output files. ##
1281## ------------- ##
1282_ASBOX
1283 echo
1284 for ac_var in $ac_subst_files
1285 do
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1288 done | sort
1289 echo
1290 fi
1291
jjako286bc982003-01-28 23:17:50 +00001292 if test -s confdefs.h; then
1293 cat <<\_ASBOX
1294## ----------- ##
1295## confdefs.h. ##
1296## ----------- ##
1297_ASBOX
1298 echo
jjako08d331d2003-10-13 20:33:30 +00001299 sed "/^$/d" confdefs.h | sort
jjako286bc982003-01-28 23:17:50 +00001300 echo
1301 fi
1302 test "$ac_signal" != 0 &&
1303 echo "$as_me: caught signal $ac_signal"
1304 echo "$as_me: exit $exit_status"
1305 } >&5
1306 rm -f core core.* *.core &&
1307 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1308 exit $exit_status
1309 ' 0
1310for ac_signal in 1 2 13 15; do
1311 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1312done
1313ac_signal=0
1314
1315# confdefs.h avoids OS command line length limits that DEFS can exceed.
1316rm -rf conftest* confdefs.h
1317# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1318echo >confdefs.h
1319
1320# Predefined preprocessor variables.
1321
1322cat >>confdefs.h <<_ACEOF
1323#define PACKAGE_NAME "$PACKAGE_NAME"
1324_ACEOF
1325
1326
1327cat >>confdefs.h <<_ACEOF
1328#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1329_ACEOF
1330
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_VERSION "$PACKAGE_VERSION"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_STRING "$PACKAGE_STRING"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1344_ACEOF
1345
1346
1347# Let the site file select an alternate cache file if it wants to.
jjako52c24142002-12-16 13:33:51 +00001348# Prefer explicitly selected file to automatically selected ones.
1349if test -z "$CONFIG_SITE"; then
1350 if test "x$prefix" != xNONE; then
1351 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1352 else
1353 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1354 fi
1355fi
1356for ac_site_file in $CONFIG_SITE; do
1357 if test -r "$ac_site_file"; then
jjako286bc982003-01-28 23:17:50 +00001358 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1359echo "$as_me: loading site script $ac_site_file" >&6;}
1360 sed 's/^/| /' "$ac_site_file" >&5
jjako52c24142002-12-16 13:33:51 +00001361 . "$ac_site_file"
1362 fi
1363done
1364
1365if test -r "$cache_file"; then
jjako286bc982003-01-28 23:17:50 +00001366 # Some versions of bash will fail to source /dev/null (special
1367 # files actually), so we avoid doing that.
1368 if test -f "$cache_file"; then
1369 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1370echo "$as_me: loading cache $cache_file" >&6;}
1371 case $cache_file in
1372 [\\/]* | ?:[\\/]* ) . $cache_file;;
1373 *) . ./$cache_file;;
1374 esac
1375 fi
jjako52c24142002-12-16 13:33:51 +00001376else
jjako286bc982003-01-28 23:17:50 +00001377 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1378echo "$as_me: creating cache $cache_file" >&6;}
1379 >$cache_file
1380fi
1381
1382# Check that the precious variables saved in the cache have kept the same
1383# value.
1384ac_cache_corrupted=false
1385for ac_var in `(set) 2>&1 |
1386 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1387 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1388 eval ac_new_set=\$ac_env_${ac_var}_set
1389 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1390 eval ac_new_val="\$ac_env_${ac_var}_value"
1391 case $ac_old_set,$ac_new_set in
1392 set,)
1393 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1394echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1395 ac_cache_corrupted=: ;;
1396 ,set)
1397 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1398echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1399 ac_cache_corrupted=: ;;
1400 ,);;
1401 *)
1402 if test "x$ac_old_val" != "x$ac_new_val"; then
1403 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1404echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1405 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1406echo "$as_me: former value: $ac_old_val" >&2;}
1407 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1408echo "$as_me: current value: $ac_new_val" >&2;}
1409 ac_cache_corrupted=:
1410 fi;;
1411 esac
1412 # Pass precious variables to config.status.
1413 if test "$ac_new_set" = set; then
1414 case $ac_new_val in
1415 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1416 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1417 *) ac_arg=$ac_var=$ac_new_val ;;
1418 esac
1419 case " $ac_configure_args " in
1420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1421 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1422 esac
1423 fi
1424done
1425if $ac_cache_corrupted; then
1426 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1427echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1428 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1429echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1430 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00001431fi
1432
1433ac_ext=c
jjako52c24142002-12-16 13:33:51 +00001434ac_cpp='$CPP $CPPFLAGS'
jjako286bc982003-01-28 23:17:50 +00001435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00001438
1439
1440
jjako52c24142002-12-16 13:33:51 +00001441
jjako52c24142002-12-16 13:33:51 +00001442
jjako286bc982003-01-28 23:17:50 +00001443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
jjako08d331d2003-10-13 20:33:30 +00001465
jjako286bc982003-01-28 23:17:50 +00001466# Add the stamp file to the list of files AC keeps track of,
1467# along with our hook.
jjako08d331d2003-10-13 20:33:30 +00001468 ac_config_headers="$ac_config_headers config.h"
jjako286bc982003-01-28 23:17:50 +00001469
1470
1471
1472#AC_CONFIG_HEADER([config.h])
1473
jjako77edc822004-09-10 17:19:31 +00001474ac_aux_dir=
1475for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1476 if test -f $ac_dir/install-sh; then
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install-sh -c"
1479 break
1480 elif test -f $ac_dir/install.sh; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install.sh -c"
1483 break
1484 elif test -f $ac_dir/shtool; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/shtool install -c"
1487 break
1488 fi
1489done
1490if test -z "$ac_aux_dir"; then
1491 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1492echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1493 { (exit 1); exit 1; }; }
1494fi
1495ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1498
1499# Make sure we can run config.sub.
1500$ac_config_sub sun4 >/dev/null 2>&1 ||
1501 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1502echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1503 { (exit 1); exit 1; }; }
1504
1505echo "$as_me:$LINENO: checking build system type" >&5
1506echo $ECHO_N "checking build system type... $ECHO_C" >&6
1507if test "${ac_cv_build+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
1510 ac_cv_build_alias=$build_alias
1511test -z "$ac_cv_build_alias" &&
1512 ac_cv_build_alias=`$ac_config_guess`
1513test -z "$ac_cv_build_alias" &&
1514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1515echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1516 { (exit 1); exit 1; }; }
1517ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1519echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522fi
1523echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1524echo "${ECHO_T}$ac_cv_build" >&6
1525build=$ac_cv_build
1526build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529
1530
1531echo "$as_me:$LINENO: checking host system type" >&5
1532echo $ECHO_N "checking host system type... $ECHO_C" >&6
1533if test "${ac_cv_host+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1535else
1536 ac_cv_host_alias=$host_alias
1537test -z "$ac_cv_host_alias" &&
1538 ac_cv_host_alias=$ac_cv_build_alias
1539ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1540 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1541echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1542 { (exit 1); exit 1; }; }
1543
1544fi
1545echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1546echo "${ECHO_T}$ac_cv_host" >&6
1547host=$ac_cv_host
1548host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1549host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1550host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551
1552
1553echo "$as_me:$LINENO: checking target system type" >&5
1554echo $ECHO_N "checking target system type... $ECHO_C" >&6
1555if test "${ac_cv_target+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1557else
1558 ac_cv_target_alias=$target_alias
1559test "x$ac_cv_target_alias" = "x" &&
1560 ac_cv_target_alias=$ac_cv_host_alias
1561ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1568echo "${ECHO_T}$ac_cv_target" >&6
1569target=$ac_cv_target
1570target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575# The aliases save the names the user supplied, while $host etc.
1576# will get canonicalized.
1577test -n "$target_alias" &&
1578 test "$program_prefix$program_suffix$program_transform_name" = \
1579 NONENONEs,x,x, &&
1580 program_prefix=${target_alias}-
1581
jjako286bc982003-01-28 23:17:50 +00001582# Checks for programs.
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1590set dummy ${ac_tool_prefix}gcc; ac_word=$2
1591echo "$as_me:$LINENO: checking for $ac_word" >&5
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
jjako286bc982003-01-28 23:17:50 +00001599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
jjako52c24142002-12-16 13:33:51 +00001613fi
1614fi
jjako286bc982003-01-28 23:17:50 +00001615CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001616if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001617 echo "$as_me:$LINENO: result: $CC" >&5
1618echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001619else
jjako286bc982003-01-28 23:17:50 +00001620 echo "$as_me:$LINENO: result: no" >&5
1621echo "${ECHO_T}no" >&6
1622fi
1623
1624fi
1625if test -z "$ac_cv_prog_CC"; then
1626 ac_ct_CC=$CC
1627 # Extract the first word of "gcc", so it can be a program name with args.
1628set dummy gcc; ac_word=$2
1629echo "$as_me:$LINENO: checking for $ac_word" >&5
1630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636else
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="gcc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
1649done
1650
1651fi
1652fi
1653ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656echo "${ECHO_T}$ac_ct_CC" >&6
1657else
1658 echo "$as_me:$LINENO: result: no" >&5
1659echo "${ECHO_T}no" >&6
1660fi
1661
1662 CC=$ac_ct_CC
1663else
1664 CC="$ac_cv_prog_CC"
jjako52c24142002-12-16 13:33:51 +00001665fi
1666
1667if test -z "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1670set dummy ${ac_tool_prefix}cc; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001675else
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1678else
jjako286bc982003-01-28 23:17:50 +00001679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690done
1691done
1692
1693fi
1694fi
1695CC=$ac_cv_prog_CC
1696if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698echo "${ECHO_T}$CC" >&6
1699else
1700 echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702fi
1703
1704fi
1705if test -z "$ac_cv_prog_CC"; then
1706 ac_ct_CC=$CC
1707 # Extract the first word of "cc", so it can be a program name with args.
1708set dummy cc; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716else
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="cc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728done
1729done
1730
1731fi
1732fi
1733ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736echo "${ECHO_T}$ac_ct_CC" >&6
1737else
1738 echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742 CC=$ac_ct_CC
1743else
1744 CC="$ac_cv_prog_CC"
1745fi
1746
1747fi
1748if test -z "$CC"; then
1749 # Extract the first word of "cc", so it can be a program name with args.
1750set dummy cc; ac_word=$2
1751echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758else
jjako52c24142002-12-16 13:33:51 +00001759 ac_prog_rejected=no
jjako286bc982003-01-28 23:17:50 +00001760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1768 ac_prog_rejected=yes
1769 continue
1770 fi
1771 ac_cv_prog_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775done
1776done
1777
jjako52c24142002-12-16 13:33:51 +00001778if test $ac_prog_rejected = yes; then
1779 # We found a bogon in the path, so make sure we never use it.
1780 set dummy $ac_cv_prog_CC
1781 shift
jjako286bc982003-01-28 23:17:50 +00001782 if test $# != 0; then
jjako52c24142002-12-16 13:33:51 +00001783 # We chose a different compiler from the bogus one.
1784 # However, it has the same basename, so the bogon will be chosen
1785 # first if we set CC to just the basename; use the full file name.
1786 shift
jjako08d331d2003-10-13 20:33:30 +00001787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
jjako52c24142002-12-16 13:33:51 +00001788 fi
1789fi
1790fi
1791fi
jjako286bc982003-01-28 23:17:50 +00001792CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001793if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001794 echo "$as_me:$LINENO: result: $CC" >&5
1795echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001796else
jjako286bc982003-01-28 23:17:50 +00001797 echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001799fi
1800
jjako286bc982003-01-28 23:17:50 +00001801fi
1802if test -z "$CC"; then
1803 if test -n "$ac_tool_prefix"; then
1804 for ac_prog in cl
1805 do
1806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001812else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815else
jjako286bc982003-01-28 23:17:50 +00001816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
jjako52c24142002-12-16 13:33:51 +00001826 fi
jjako286bc982003-01-28 23:17:50 +00001827done
1828done
1829
1830fi
1831fi
1832CC=$ac_cv_prog_CC
1833if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835echo "${ECHO_T}$CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001839fi
1840
jjako286bc982003-01-28 23:17:50 +00001841 test -n "$CC" && break
1842 done
1843fi
1844if test -z "$CC"; then
1845 ac_ct_CC=$CC
1846 for ac_prog in cl
1847do
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849set dummy $ac_prog; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="$ac_prog"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869done
1870done
jjako52c24142002-12-16 13:33:51 +00001871
jjako286bc982003-01-28 23:17:50 +00001872fi
1873fi
1874ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877echo "${ECHO_T}$ac_ct_CC" >&6
1878else
1879 echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
jjako52c24142002-12-16 13:33:51 +00001882
jjako286bc982003-01-28 23:17:50 +00001883 test -n "$ac_ct_CC" && break
1884done
jjako52c24142002-12-16 13:33:51 +00001885
jjako286bc982003-01-28 23:17:50 +00001886 CC=$ac_ct_CC
1887fi
1888
1889fi
1890
1891
jjako08d331d2003-10-13 20:33:30 +00001892test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: no acceptable C compiler found in \$PATH
1895See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00001896 { (exit 1); exit 1; }; }
1897
1898# Provide some information about the compiler.
1899echo "$as_me:$LINENO:" \
1900 "checking for C compiler version" >&5
1901ac_compiler=`set X $ac_compile; echo $2`
1902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1903 (eval $ac_compiler --version </dev/null >&5) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1908 (eval $ac_compiler -v </dev/null >&5) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1913 (eval $ac_compiler -V </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917
1918cat >conftest.$ac_ext <<_ACEOF
1919#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00001920/* confdefs.h. */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00001925
jjako286bc982003-01-28 23:17:50 +00001926int
1927main ()
1928{
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934ac_clean_files_save=$ac_clean_files
jjako08d331d2003-10-13 20:33:30 +00001935ac_clean_files="$ac_clean_files a.out a.exe b.out"
jjako286bc982003-01-28 23:17:50 +00001936# Try to create an executable without -o first, disregard a.out.
1937# It will help us diagnose broken compilers, and finding out an intuition
1938# of exeext.
1939echo "$as_me:$LINENO: checking for C compiler default output" >&5
1940echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1941ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1943 (eval $ac_link_default) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 # Find the output, starting from the most likely. This scheme is
1948# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1949# resort.
1950
1951# Be careful to initialize this variable, since it used to be cached.
1952# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1953ac_cv_exeext=
jjako08d331d2003-10-13 20:33:30 +00001954# b.out is created by i960 compilers.
1955for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1956do
1957 test -f "$ac_file" || continue
jjako286bc982003-01-28 23:17:50 +00001958 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00001959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1960 ;;
1961 conftest.$ac_ext )
1962 # This is the source file.
1963 ;;
1964 [ab].out )
1965 # We found the default executable, but exeext='' is most
1966 # certainly right.
1967 break;;
1968 *.* )
1969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970 # FIXME: I believe we export ac_cv_exeext for Libtool,
1971 # but it would be cool to find out if it's true. Does anybody
1972 # maintain Libtool? --akim.
1973 export ac_cv_exeext
1974 break;;
1975 * )
1976 break;;
jjako286bc982003-01-28 23:17:50 +00001977 esac
1978done
jjako52c24142002-12-16 13:33:51 +00001979else
jjako286bc982003-01-28 23:17:50 +00001980 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00001981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1984See \`config.log' for more details." >&5
1985echo "$as_me: error: C compiler cannot create executables
1986See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00001987 { (exit 77); exit 77; }; }
jjako52c24142002-12-16 13:33:51 +00001988fi
1989
jjako286bc982003-01-28 23:17:50 +00001990ac_exeext=$ac_cv_exeext
1991echo "$as_me:$LINENO: result: $ac_file" >&5
1992echo "${ECHO_T}$ac_file" >&6
jjako52c24142002-12-16 13:33:51 +00001993
jjako286bc982003-01-28 23:17:50 +00001994# Check the compiler produces executables we can run. If not, either
1995# the compiler is broken, or we cross compile.
1996echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1997echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1998# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1999# If not cross compiling, check that we can run a simple program.
2000if test "$cross_compiling" != yes; then
2001 if { ac_try='./$ac_file'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2007 cross_compiling=no
2008 else
2009 if test "$cross_compiling" = maybe; then
2010 cross_compiling=yes
2011 else
2012 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
jjako08d331d2003-10-13 20:33:30 +00002013If you meant to cross compile, use \`--host'.
2014See \`config.log' for more details." >&5
jjako286bc982003-01-28 23:17:50 +00002015echo "$as_me: error: cannot run C compiled programs.
jjako08d331d2003-10-13 20:33:30 +00002016If you meant to cross compile, use \`--host'.
2017See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002018 { (exit 1); exit 1; }; }
2019 fi
2020 fi
2021fi
2022echo "$as_me:$LINENO: result: yes" >&5
2023echo "${ECHO_T}yes" >&6
2024
jjako08d331d2003-10-13 20:33:30 +00002025rm -f a.out a.exe conftest$ac_cv_exeext b.out
jjako286bc982003-01-28 23:17:50 +00002026ac_clean_files=$ac_clean_files_save
2027# Check the compiler produces executables we can run. If not, either
2028# the compiler is broken, or we cross compile.
2029echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032echo "${ECHO_T}$cross_compiling" >&6
2033
2034echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037 (eval $ac_link) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2043# work properly (i.e., refer to `conftest.exe'), while it won't with
2044# `rm'.
jjako08d331d2003-10-13 20:33:30 +00002045for ac_file in conftest.exe conftest conftest.*; do
2046 test -f "$ac_file" || continue
jjako286bc982003-01-28 23:17:50 +00002047 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00002048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
jjako286bc982003-01-28 23:17:50 +00002049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050 export ac_cv_exeext
2051 break;;
2052 * ) break;;
2053 esac
2054done
jjako52c24142002-12-16 13:33:51 +00002055else
jjako08d331d2003-10-13 20:33:30 +00002056 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2059See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002060 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00002061fi
2062
jjako286bc982003-01-28 23:17:50 +00002063rm -f conftest$ac_cv_exeext
2064echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067rm -f conftest.$ac_ext
2068EXEEXT=$ac_cv_exeext
2069ac_exeext=$EXEEXT
2070echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002074else
jjako286bc982003-01-28 23:17:50 +00002075 cat >conftest.$ac_ext <<_ACEOF
2076#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002077/* confdefs.h. */
2078_ACEOF
2079cat confdefs.h >>conftest.$ac_ext
2080cat >>conftest.$ac_ext <<_ACEOF
2081/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002082
jjako286bc982003-01-28 23:17:50 +00002083int
2084main ()
2085{
2086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091rm -f conftest.o conftest.obj
2092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2098 case $ac_file in
jjako08d331d2003-10-13 20:33:30 +00002099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
jjako286bc982003-01-28 23:17:50 +00002100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2101 break;;
2102 esac
2103done
2104else
2105 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: cannot compute suffix of object files: cannot compile
2111See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002112 { (exit 1); exit 1; }; }
2113fi
2114
2115rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116fi
2117echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2118echo "${ECHO_T}$ac_cv_objext" >&6
2119OBJEXT=$ac_cv_objext
2120ac_objext=$OBJEXT
2121echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2122echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2123if test "${ac_cv_c_compiler_gnu+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126 cat >conftest.$ac_ext <<_ACEOF
2127#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002128/* confdefs.h. */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002133
jjako286bc982003-01-28 23:17:50 +00002134int
2135main ()
2136{
2137#ifndef __GNUC__
2138 choke me
2139#endif
2140
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145rm -f conftest.$ac_objext
2146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -s conftest.$ac_objext'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2157 ac_compiler_gnu=yes
2158else
2159 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002160sed 's/^/| /' conftest.$ac_ext >&5
2161
jjako286bc982003-01-28 23:17:50 +00002162ac_compiler_gnu=no
2163fi
2164rm -f conftest.$ac_objext conftest.$ac_ext
2165ac_cv_c_compiler_gnu=$ac_compiler_gnu
2166
2167fi
2168echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170GCC=`test $ac_compiler_gnu = yes && echo yes`
2171ac_test_CFLAGS=${CFLAGS+set}
2172ac_save_CFLAGS=$CFLAGS
2173CFLAGS="-g"
2174echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176if test "${ac_cv_prog_cc_g+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 cat >conftest.$ac_ext <<_ACEOF
2180#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002181/* confdefs.h. */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002186
jjako286bc982003-01-28 23:17:50 +00002187int
2188main ()
2189{
2190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195rm -f conftest.$ac_objext
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00002207 ac_cv_prog_cc_g=yes
2208else
jjako286bc982003-01-28 23:17:50 +00002209 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002210sed 's/^/| /' conftest.$ac_ext >&5
2211
jjako286bc982003-01-28 23:17:50 +00002212ac_cv_prog_cc_g=no
jjako52c24142002-12-16 13:33:51 +00002213fi
jjako286bc982003-01-28 23:17:50 +00002214rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00002215fi
jjako286bc982003-01-28 23:17:50 +00002216echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2217echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
jjako52c24142002-12-16 13:33:51 +00002218if test "$ac_test_CFLAGS" = set; then
jjako286bc982003-01-28 23:17:50 +00002219 CFLAGS=$ac_save_CFLAGS
jjako52c24142002-12-16 13:33:51 +00002220elif test $ac_cv_prog_cc_g = yes; then
2221 if test "$GCC" = yes; then
2222 CFLAGS="-g -O2"
2223 else
2224 CFLAGS="-g"
2225 fi
2226else
2227 if test "$GCC" = yes; then
2228 CFLAGS="-O2"
2229 else
2230 CFLAGS=
2231 fi
2232fi
jjako08d331d2003-10-13 20:33:30 +00002233echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2234echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2235if test "${ac_cv_prog_cc_stdc+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238 ac_cv_prog_cc_stdc=no
2239ac_save_CC=$CC
2240cat >conftest.$ac_ext <<_ACEOF
2241#line $LINENO "configure"
2242/* confdefs.h. */
2243_ACEOF
2244cat confdefs.h >>conftest.$ac_ext
2245cat >>conftest.$ac_ext <<_ACEOF
2246/* end confdefs.h. */
2247#include <stdarg.h>
2248#include <stdio.h>
2249#include <sys/types.h>
2250#include <sys/stat.h>
2251/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2252struct buf { int x; };
2253FILE * (*rcsopen) (struct buf *, struct stat *, int);
2254static char *e (p, i)
2255 char **p;
2256 int i;
2257{
2258 return p[i];
2259}
2260static char *f (char * (*g) (char **, int), char **p, ...)
2261{
2262 char *s;
2263 va_list v;
2264 va_start (v,p);
2265 s = g (p, va_arg (v,int));
2266 va_end (v);
2267 return s;
2268}
2269int test (int i, double x);
2270struct s1 {int (*f) (int a);};
2271struct s2 {int (*f) (double a);};
2272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2273int argc;
2274char **argv;
2275int
2276main ()
2277{
2278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283# Don't try gcc -ansi; that turns off useful extensions and
2284# breaks some systems' header files.
2285# AIX -qlanglvl=ansi
2286# Ultrix and OSF/1 -std1
2287# HP-UX 10.20 and later -Ae
2288# HP-UX older versions -Aa -D_HPUX_SOURCE
2289# SVR4 -Xc -D__EXTENSIONS__
2290for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2291do
2292 CC="$ac_save_CC $ac_arg"
2293 rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 ac_cv_prog_cc_stdc=$ac_arg
2306break
2307else
2308 echo "$as_me: failed program was:" >&5
2309sed 's/^/| /' conftest.$ac_ext >&5
2310
2311fi
2312rm -f conftest.$ac_objext
2313done
2314rm -f conftest.$ac_ext conftest.$ac_objext
2315CC=$ac_save_CC
2316
2317fi
2318
2319case "x$ac_cv_prog_cc_stdc" in
2320 x|xno)
2321 echo "$as_me:$LINENO: result: none needed" >&5
2322echo "${ECHO_T}none needed" >&6 ;;
2323 *)
2324 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2325echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2326 CC="$CC $ac_cv_prog_cc_stdc" ;;
2327esac
2328
jjako286bc982003-01-28 23:17:50 +00002329# Some people use a C++ compiler to compile C. Since we use `exit',
2330# in C++ we need to declare it. In case someone uses the same compiler
2331# for both compiling C and C++ we need to have the C++ compiler decide
2332# the declaration of exit, since it's the most demanding environment.
2333cat >conftest.$ac_ext <<_ACEOF
2334#ifndef __cplusplus
2335 choke me
2336#endif
2337_ACEOF
2338rm -f conftest.$ac_objext
2339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340 (eval $ac_compile) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 for ac_declaration in \
2351 ''\
2352 '#include <stdlib.h>' \
2353 'extern "C" void std::exit (int) throw (); using std::exit;' \
2354 'extern "C" void std::exit (int); using std::exit;' \
2355 'extern "C" void exit (int) throw ();' \
2356 'extern "C" void exit (int);' \
2357 'void exit (int);'
2358do
2359 cat >conftest.$ac_ext <<_ACEOF
2360#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002366#include <stdlib.h>
2367$ac_declaration
jjako286bc982003-01-28 23:17:50 +00002368int
2369main ()
2370{
2371exit (42);
2372 ;
2373 return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 :
2389else
2390 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002391sed 's/^/| /' conftest.$ac_ext >&5
2392
jjako286bc982003-01-28 23:17:50 +00002393continue
2394fi
2395rm -f conftest.$ac_objext conftest.$ac_ext
2396 cat >conftest.$ac_ext <<_ACEOF
2397#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002398/* confdefs.h. */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002403$ac_declaration
jjako286bc982003-01-28 23:17:50 +00002404int
2405main ()
2406{
2407exit (42);
2408 ;
2409 return 0;
2410}
2411_ACEOF
2412rm -f conftest.$ac_objext
2413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 break
2425else
2426 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002427sed 's/^/| /' conftest.$ac_ext >&5
2428
jjako286bc982003-01-28 23:17:50 +00002429fi
2430rm -f conftest.$ac_objext conftest.$ac_ext
2431done
2432rm -f conftest*
2433if test -n "$ac_declaration"; then
2434 echo '#ifdef __cplusplus' >>confdefs.h
2435 echo $ac_declaration >>confdefs.h
2436 echo '#endif' >>confdefs.h
2437fi
2438
2439else
2440 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002441sed 's/^/| /' conftest.$ac_ext >&5
2442
jjako286bc982003-01-28 23:17:50 +00002443fi
2444rm -f conftest.$ac_objext conftest.$ac_ext
2445ac_ext=c
2446ac_cpp='$CPP $CPPFLAGS'
2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00002450
jjako52c24142002-12-16 13:33:51 +00002451# Find a good install program. We prefer a C program (faster),
2452# so one script is as good as another. But avoid the broken or
2453# incompatible versions:
2454# SysV /etc/install, /usr/sbin/install
2455# SunOS /usr/etc/install
2456# IRIX /sbin/install
2457# AIX /bin/install
jjako286bc982003-01-28 23:17:50 +00002458# AmigaOS /C/install, which installs bootblocks on floppy discs
jjako52c24142002-12-16 13:33:51 +00002459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462# ./install, which can be erroneously created by make from ./install.sh.
jjako286bc982003-01-28 23:17:50 +00002463echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2464echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002465if test -z "$INSTALL"; then
jjako286bc982003-01-28 23:17:50 +00002466if test "${ac_cv_path_install+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002468else
jjako286bc982003-01-28 23:17:50 +00002469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 # Account for people who put trailing slashes in PATH elements.
2475case $as_dir/ in
2476 ./ | .// | /cC/* | \
2477 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2489 :
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
2494 else
2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496 break 3
2497 fi
2498 fi
jjako52c24142002-12-16 13:33:51 +00002499 done
jjako286bc982003-01-28 23:17:50 +00002500 done
2501 ;;
2502esac
2503done
2504
jjako52c24142002-12-16 13:33:51 +00002505
2506fi
2507 if test "${ac_cv_path_install+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00002508 INSTALL=$ac_cv_path_install
jjako52c24142002-12-16 13:33:51 +00002509 else
2510 # As a last resort, use the slow shell script. We don't cache a
2511 # path for INSTALL within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the path is relative.
jjako286bc982003-01-28 23:17:50 +00002514 INSTALL=$ac_install_sh
jjako52c24142002-12-16 13:33:51 +00002515 fi
2516fi
jjako286bc982003-01-28 23:17:50 +00002517echo "$as_me:$LINENO: result: $INSTALL" >&5
2518echo "${ECHO_T}$INSTALL" >&6
jjako52c24142002-12-16 13:33:51 +00002519
2520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521# It thinks the first close brace ends the variable substitution.
2522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
jjako286bc982003-01-28 23:17:50 +00002524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
jjako52c24142002-12-16 13:33:51 +00002525
2526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
jjako286bc982003-01-28 23:17:50 +00002528for ac_prog in gawk mawk nawk awk
2529do
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531set dummy $ac_prog; ac_word=$2
2532echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534if test "${ac_cv_prog_AWK+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002536else
jjako286bc982003-01-28 23:17:50 +00002537 if test -n "$AWK"; then
2538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
jjako52c24142002-12-16 13:33:51 +00002539else
jjako286bc982003-01-28 23:17:50 +00002540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_AWK="$ac_prog"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551done
2552done
2553
jjako52c24142002-12-16 13:33:51 +00002554fi
2555fi
jjako286bc982003-01-28 23:17:50 +00002556AWK=$ac_cv_prog_AWK
2557if test -n "$AWK"; then
2558 echo "$as_me:$LINENO: result: $AWK" >&5
2559echo "${ECHO_T}$AWK" >&6
jjako52c24142002-12-16 13:33:51 +00002560else
jjako286bc982003-01-28 23:17:50 +00002561 echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6
2563fi
2564
2565 test -n "$AWK" && break
2566done
2567
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2574echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2575# On Suns, sometimes $CPP names a directory.
2576if test -n "$CPP" && test -d "$CPP"; then
2577 CPP=
2578fi
2579if test -z "$CPP"; then
2580 if test "${ac_cv_prog_CPP+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583 # Double quotes because CPP needs to be expanded
2584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2585 do
2586 ac_preproc_ok=false
2587for ac_c_preproc_warn_flag in '' yes
2588do
2589 # Use a header file that comes with gcc, so configuring glibc
2590 # with a fresh cross-compiler works.
jjako08d331d2003-10-13 20:33:30 +00002591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2592 # <limits.h> exists even on freestanding compilers.
jjako286bc982003-01-28 23:17:50 +00002593 # On the NeXT, cc -E runs the code through the compiler's parser,
2594 # not just through cpp. "Syntax error" is here to catch this case.
2595 cat >conftest.$ac_ext <<_ACEOF
2596#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602#ifdef __STDC__
2603# include <limits.h>
2604#else
2605# include <assert.h>
2606#endif
jjako286bc982003-01-28 23:17:50 +00002607 Syntax error
2608_ACEOF
2609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2611 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002612 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } >/dev/null; then
2617 if test -s conftest.err; then
2618 ac_cpp_err=$ac_c_preproc_warn_flag
2619 else
2620 ac_cpp_err=
2621 fi
2622else
2623 ac_cpp_err=yes
2624fi
2625if test -z "$ac_cpp_err"; then
2626 :
2627else
2628 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002629sed 's/^/| /' conftest.$ac_ext >&5
2630
jjako286bc982003-01-28 23:17:50 +00002631 # Broken: fails on valid input.
2632continue
2633fi
2634rm -f conftest.err conftest.$ac_ext
2635
2636 # OK, works on sane cases. Now check whether non-existent headers
2637 # can be detected and how.
2638 cat >conftest.$ac_ext <<_ACEOF
2639#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002645#include <ac_nonexistent.h>
2646_ACEOF
2647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002650 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } >/dev/null; then
2655 if test -s conftest.err; then
2656 ac_cpp_err=$ac_c_preproc_warn_flag
2657 else
2658 ac_cpp_err=
2659 fi
2660else
2661 ac_cpp_err=yes
2662fi
2663if test -z "$ac_cpp_err"; then
2664 # Broken: success on invalid input.
2665continue
2666else
2667 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002668sed 's/^/| /' conftest.$ac_ext >&5
2669
jjako286bc982003-01-28 23:17:50 +00002670 # Passes both tests.
2671ac_preproc_ok=:
2672break
2673fi
2674rm -f conftest.err conftest.$ac_ext
2675
2676done
2677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2678rm -f conftest.err conftest.$ac_ext
2679if $ac_preproc_ok; then
2680 break
2681fi
2682
2683 done
2684 ac_cv_prog_CPP=$CPP
2685
2686fi
2687 CPP=$ac_cv_prog_CPP
2688else
2689 ac_cv_prog_CPP=$CPP
2690fi
2691echo "$as_me:$LINENO: result: $CPP" >&5
2692echo "${ECHO_T}$CPP" >&6
2693ac_preproc_ok=false
2694for ac_c_preproc_warn_flag in '' yes
2695do
2696 # Use a header file that comes with gcc, so configuring glibc
2697 # with a fresh cross-compiler works.
jjako08d331d2003-10-13 20:33:30 +00002698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2699 # <limits.h> exists even on freestanding compilers.
jjako286bc982003-01-28 23:17:50 +00002700 # On the NeXT, cc -E runs the code through the compiler's parser,
2701 # not just through cpp. "Syntax error" is here to catch this case.
2702 cat >conftest.$ac_ext <<_ACEOF
2703#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002704/* confdefs.h. */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
2708/* end confdefs.h. */
2709#ifdef __STDC__
2710# include <limits.h>
2711#else
2712# include <assert.h>
2713#endif
jjako286bc982003-01-28 23:17:50 +00002714 Syntax error
2715_ACEOF
2716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2718 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002719 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002720 rm -f conftest.er1
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } >/dev/null; then
2724 if test -s conftest.err; then
2725 ac_cpp_err=$ac_c_preproc_warn_flag
2726 else
2727 ac_cpp_err=
2728 fi
2729else
2730 ac_cpp_err=yes
2731fi
2732if test -z "$ac_cpp_err"; then
2733 :
2734else
2735 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002736sed 's/^/| /' conftest.$ac_ext >&5
2737
jjako286bc982003-01-28 23:17:50 +00002738 # Broken: fails on valid input.
2739continue
2740fi
2741rm -f conftest.err conftest.$ac_ext
2742
2743 # OK, works on sane cases. Now check whether non-existent headers
2744 # can be detected and how.
2745 cat >conftest.$ac_ext <<_ACEOF
2746#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002752#include <ac_nonexistent.h>
2753_ACEOF
2754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00002757 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00002758 rm -f conftest.er1
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_c_preproc_warn_flag
2764 else
2765 ac_cpp_err=
2766 fi
2767else
2768 ac_cpp_err=yes
2769fi
2770if test -z "$ac_cpp_err"; then
2771 # Broken: success on invalid input.
2772continue
2773else
2774 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002775sed 's/^/| /' conftest.$ac_ext >&5
2776
jjako286bc982003-01-28 23:17:50 +00002777 # Passes both tests.
2778ac_preproc_ok=:
2779break
2780fi
2781rm -f conftest.err conftest.$ac_ext
2782
2783done
2784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2785rm -f conftest.err conftest.$ac_ext
2786if $ac_preproc_ok; then
2787 :
2788else
jjako08d331d2003-10-13 20:33:30 +00002789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2790See \`config.log' for more details." >&5
2791echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2792See \`config.log' for more details." >&2;}
jjako286bc982003-01-28 23:17:50 +00002793 { (exit 1); exit 1; }; }
2794fi
2795
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801
2802ac_ext=cc
2803ac_cpp='$CXXCPP $CPPFLAGS'
2804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2807if test -n "$ac_tool_prefix"; then
2808 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2809 do
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814if test "${ac_cv_prog_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817 if test -n "$CXX"; then
2818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831done
2832done
2833
2834fi
2835fi
2836CXX=$ac_cv_prog_CXX
2837if test -n "$CXX"; then
2838 echo "$as_me:$LINENO: result: $CXX" >&5
2839echo "${ECHO_T}$CXX" >&6
2840else
2841 echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
2843fi
2844
2845 test -n "$CXX" && break
2846 done
2847fi
2848if test -z "$CXX"; then
2849 ac_ct_CXX=$CXX
2850 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2851do
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853set dummy $ac_prog; ac_word=$2
2854echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 if test -n "$ac_ct_CXX"; then
2860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2861else
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_ac_ct_CXX="$ac_prog"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873done
2874done
2875
2876fi
2877fi
2878ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2879if test -n "$ac_ct_CXX"; then
2880 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2881echo "${ECHO_T}$ac_ct_CXX" >&6
2882else
2883 echo "$as_me:$LINENO: result: no" >&5
2884echo "${ECHO_T}no" >&6
2885fi
2886
2887 test -n "$ac_ct_CXX" && break
2888done
2889test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2890
2891 CXX=$ac_ct_CXX
jjako52c24142002-12-16 13:33:51 +00002892fi
2893
2894
jjako286bc982003-01-28 23:17:50 +00002895# Provide some information about the compiler.
2896echo "$as_me:$LINENO:" \
2897 "checking for C++ compiler version" >&5
2898ac_compiler=`set X $ac_compile; echo $2`
2899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2900 (eval $ac_compiler --version </dev/null >&5) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2905 (eval $ac_compiler -v </dev/null >&5) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2910 (eval $ac_compiler -V </dev/null >&5) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914
2915echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 cat >conftest.$ac_ext <<_ACEOF
2921#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002927
jjako286bc982003-01-28 23:17:50 +00002928int
2929main ()
2930{
2931#ifndef __GNUC__
2932 choke me
2933#endif
2934
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext
2940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try='test -s conftest.$ac_objext'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2951 ac_compiler_gnu=yes
2952else
2953 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00002954sed 's/^/| /' conftest.$ac_ext >&5
2955
jjako286bc982003-01-28 23:17:50 +00002956ac_compiler_gnu=no
2957fi
2958rm -f conftest.$ac_objext conftest.$ac_ext
2959ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2960
2961fi
2962echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2963echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2964GXX=`test $ac_compiler_gnu = yes && echo yes`
2965ac_test_CXXFLAGS=${CXXFLAGS+set}
2966ac_save_CXXFLAGS=$CXXFLAGS
2967CXXFLAGS="-g"
2968echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2969echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2970if test "${ac_cv_prog_cxx_g+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 cat >conftest.$ac_ext <<_ACEOF
2974#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00002975/* confdefs.h. */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00002980
jjako286bc982003-01-28 23:17:50 +00002981int
2982main ()
2983{
2984
2985 ;
2986 return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext
2990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_cv_prog_cxx_g=yes
3002else
3003 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003004sed 's/^/| /' conftest.$ac_ext >&5
3005
jjako286bc982003-01-28 23:17:50 +00003006ac_cv_prog_cxx_g=no
3007fi
3008rm -f conftest.$ac_objext conftest.$ac_ext
3009fi
3010echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3011echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3012if test "$ac_test_CXXFLAGS" = set; then
3013 CXXFLAGS=$ac_save_CXXFLAGS
3014elif test $ac_cv_prog_cxx_g = yes; then
3015 if test "$GXX" = yes; then
3016 CXXFLAGS="-g -O2"
3017 else
3018 CXXFLAGS="-g"
3019 fi
3020else
3021 if test "$GXX" = yes; then
3022 CXXFLAGS="-O2"
3023 else
3024 CXXFLAGS=
3025 fi
3026fi
3027for ac_declaration in \
3028 ''\
3029 '#include <stdlib.h>' \
3030 'extern "C" void std::exit (int) throw (); using std::exit;' \
3031 'extern "C" void std::exit (int); using std::exit;' \
3032 'extern "C" void exit (int) throw ();' \
3033 'extern "C" void exit (int);' \
3034 'void exit (int);'
3035do
3036 cat >conftest.$ac_ext <<_ACEOF
3037#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00003038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003043#include <stdlib.h>
3044$ac_declaration
jjako286bc982003-01-28 23:17:50 +00003045int
3046main ()
3047{
3048exit (42);
3049 ;
3050 return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext
3054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 :
3066else
3067 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003068sed 's/^/| /' conftest.$ac_ext >&5
3069
jjako286bc982003-01-28 23:17:50 +00003070continue
3071fi
3072rm -f conftest.$ac_objext conftest.$ac_ext
3073 cat >conftest.$ac_ext <<_ACEOF
3074#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00003075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003080$ac_declaration
jjako286bc982003-01-28 23:17:50 +00003081int
3082main ()
3083{
3084exit (42);
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 break
3102else
3103 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003104sed 's/^/| /' conftest.$ac_ext >&5
3105
jjako286bc982003-01-28 23:17:50 +00003106fi
3107rm -f conftest.$ac_objext conftest.$ac_ext
3108done
3109rm -f conftest*
3110if test -n "$ac_declaration"; then
3111 echo '#ifdef __cplusplus' >>confdefs.h
3112 echo $ac_declaration >>confdefs.h
3113 echo '#endif' >>confdefs.h
3114fi
3115
3116ac_ext=c
3117ac_cpp='$CPP $CPPFLAGS'
3118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
3122if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3124set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3125echo "$as_me:$LINENO: checking for $ac_word" >&5
3126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127if test "${ac_cv_prog_RANLIB+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130 if test -n "$RANLIB"; then
3131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3132else
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144done
3145done
3146
3147fi
3148fi
3149RANLIB=$ac_cv_prog_RANLIB
3150if test -n "$RANLIB"; then
3151 echo "$as_me:$LINENO: result: $RANLIB" >&5
3152echo "${ECHO_T}$RANLIB" >&6
3153else
3154 echo "$as_me:$LINENO: result: no" >&5
3155echo "${ECHO_T}no" >&6
3156fi
3157
3158fi
3159if test -z "$ac_cv_prog_RANLIB"; then
3160 ac_ct_RANLIB=$RANLIB
3161 # Extract the first word of "ranlib", so it can be a program name with args.
3162set dummy ranlib; ac_word=$2
3163echo "$as_me:$LINENO: checking for $ac_word" >&5
3164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
3168 if test -n "$ac_ct_RANLIB"; then
3169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_RANLIB="ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182done
3183done
3184
3185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3186fi
3187fi
3188ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3189if test -n "$ac_ct_RANLIB"; then
3190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3191echo "${ECHO_T}$ac_ct_RANLIB" >&6
3192else
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195fi
3196
3197 RANLIB=$ac_ct_RANLIB
3198else
3199 RANLIB="$ac_cv_prog_RANLIB"
3200fi
3201
3202
3203
3204#JJAKO Check for libtool
jjako52c24142002-12-16 13:33:51 +00003205# Check whether --enable-shared or --disable-shared was given.
3206if test "${enable_shared+set}" = set; then
3207 enableval="$enable_shared"
3208 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00003209case $enableval in
jjako52c24142002-12-16 13:33:51 +00003210yes) enable_shared=yes ;;
3211no) enable_shared=no ;;
3212*)
3213 enable_shared=no
3214 # Look at the argument we got. We use all the common list separators.
3215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3216 for pkg in $enableval; do
3217 if test "X$pkg" = "X$p"; then
3218 enable_shared=yes
3219 fi
3220 done
3221 IFS="$ac_save_ifs"
3222 ;;
3223esac
3224else
3225 enable_shared=yes
jjako286bc982003-01-28 23:17:50 +00003226fi;
jjako52c24142002-12-16 13:33:51 +00003227# Check whether --enable-static or --disable-static was given.
3228if test "${enable_static+set}" = set; then
3229 enableval="$enable_static"
3230 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00003231case $enableval in
jjako52c24142002-12-16 13:33:51 +00003232yes) enable_static=yes ;;
3233no) enable_static=no ;;
3234*)
3235 enable_static=no
3236 # Look at the argument we got. We use all the common list separators.
3237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3238 for pkg in $enableval; do
3239 if test "X$pkg" = "X$p"; then
3240 enable_static=yes
3241 fi
3242 done
3243 IFS="$ac_save_ifs"
3244 ;;
3245esac
3246else
3247 enable_static=yes
jjako286bc982003-01-28 23:17:50 +00003248fi;
jjako52c24142002-12-16 13:33:51 +00003249# Check whether --enable-fast-install or --disable-fast-install was given.
3250if test "${enable_fast_install+set}" = set; then
3251 enableval="$enable_fast_install"
3252 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00003253case $enableval in
jjako52c24142002-12-16 13:33:51 +00003254yes) enable_fast_install=yes ;;
3255no) enable_fast_install=no ;;
3256*)
3257 enable_fast_install=no
3258 # Look at the argument we got. We use all the common list separators.
3259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3260 for pkg in $enableval; do
3261 if test "X$pkg" = "X$p"; then
3262 enable_fast_install=yes
3263 fi
3264 done
3265 IFS="$ac_save_ifs"
3266 ;;
3267esac
3268else
3269 enable_fast_install=yes
jjako286bc982003-01-28 23:17:50 +00003270fi;
jjako286bc982003-01-28 23:17:50 +00003271# Find the correct PATH separator. Usually this is `:', but
3272# DJGPP uses `;' like DOS.
3273if test "X${PATH_SEPARATOR+set}" != Xset; then
3274 UNAME=${UNAME-`uname 2>/dev/null`}
3275 case X$UNAME in
3276 *-DOS) lt_cv_sys_path_separator=';' ;;
3277 *) lt_cv_sys_path_separator=':' ;;
3278 esac
3279 PATH_SEPARATOR=$lt_cv_sys_path_separator
jjako52c24142002-12-16 13:33:51 +00003280fi
jjako286bc982003-01-28 23:17:50 +00003281
jjako52c24142002-12-16 13:33:51 +00003282
3283# Check whether --with-gnu-ld or --without-gnu-ld was given.
3284if test "${with_gnu_ld+set}" = set; then
3285 withval="$with_gnu_ld"
3286 test "$withval" = no || with_gnu_ld=yes
3287else
3288 with_gnu_ld=no
jjako286bc982003-01-28 23:17:50 +00003289fi;
jjako52c24142002-12-16 13:33:51 +00003290ac_prog=ld
jjako286bc982003-01-28 23:17:50 +00003291if test "$GCC" = yes; then
jjako52c24142002-12-16 13:33:51 +00003292 # Check if gcc -print-prog-name=ld gives a path.
jjako286bc982003-01-28 23:17:50 +00003293 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3294echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3295 case $host in
3296 *-*-mingw*)
3297 # gcc leaves a trailing carriage return which upsets mingw
3298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3299 *)
3300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3301 esac
3302 case $ac_prog in
jjako52c24142002-12-16 13:33:51 +00003303 # Accept absolute paths.
3304 [\\/]* | [A-Za-z]:[\\/]*)
3305 re_direlt='/[^/][^/]*/\.\./'
3306 # Canonicalize the path of ld
3307 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3309 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3310 done
3311 test -z "$LD" && LD="$ac_prog"
3312 ;;
3313 "")
3314 # If it fails, then pretend we aren't using GCC.
3315 ac_prog=ld
3316 ;;
3317 *)
3318 # If it is relative, then search for the first ld in PATH.
3319 with_gnu_ld=unknown
3320 ;;
3321 esac
3322elif test "$with_gnu_ld" = yes; then
jjako286bc982003-01-28 23:17:50 +00003323 echo "$as_me:$LINENO: checking for GNU ld" >&5
3324echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003325else
jjako286bc982003-01-28 23:17:50 +00003326 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3327echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003328fi
jjako286bc982003-01-28 23:17:50 +00003329if test "${lt_cv_path_LD+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003331else
3332 if test -z "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003334 for ac_dir in $PATH; do
3335 test -z "$ac_dir" && ac_dir=.
3336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
jjako286bc982003-01-28 23:17:50 +00003337 lt_cv_path_LD="$ac_dir/$ac_prog"
jjako52c24142002-12-16 13:33:51 +00003338 # Check to see if the program is GNU ld. I'd rather use --version,
3339 # but apparently some GNU ld's only accept -v.
3340 # Break only if it was the GNU/non-GNU ld that we prefer.
jjako286bc982003-01-28 23:17:50 +00003341 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
jjako52c24142002-12-16 13:33:51 +00003342 test "$with_gnu_ld" != no && break
3343 else
3344 test "$with_gnu_ld" != yes && break
3345 fi
3346 fi
3347 done
3348 IFS="$ac_save_ifs"
3349else
jjako286bc982003-01-28 23:17:50 +00003350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
jjako52c24142002-12-16 13:33:51 +00003351fi
3352fi
3353
jjako286bc982003-01-28 23:17:50 +00003354LD="$lt_cv_path_LD"
jjako52c24142002-12-16 13:33:51 +00003355if test -n "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003356 echo "$as_me:$LINENO: result: $LD" >&5
3357echo "${ECHO_T}$LD" >&6
jjako52c24142002-12-16 13:33:51 +00003358else
jjako286bc982003-01-28 23:17:50 +00003359 echo "$as_me:$LINENO: result: no" >&5
3360echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00003361fi
jjako286bc982003-01-28 23:17:50 +00003362test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3363echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3364 { (exit 1); exit 1; }; }
3365echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3366echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3367if test "${lt_cv_prog_gnu_ld+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003369else
3370 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3371if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
jjako286bc982003-01-28 23:17:50 +00003372 lt_cv_prog_gnu_ld=yes
jjako52c24142002-12-16 13:33:51 +00003373else
jjako286bc982003-01-28 23:17:50 +00003374 lt_cv_prog_gnu_ld=no
jjako52c24142002-12-16 13:33:51 +00003375fi
3376fi
jjako286bc982003-01-28 23:17:50 +00003377echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3378echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3379with_gnu_ld=$lt_cv_prog_gnu_ld
jjako52c24142002-12-16 13:33:51 +00003380
3381
jjako286bc982003-01-28 23:17:50 +00003382echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3383echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3384if test "${lt_cv_ld_reload_flag+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387 lt_cv_ld_reload_flag='-r'
3388fi
3389echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3390echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3391reload_flag=$lt_cv_ld_reload_flag
3392test -n "$reload_flag" && reload_flag=" $reload_flag"
3393
3394echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3395echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3396if test "${lt_cv_path_NM+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003398else
3399 if test -n "$NM"; then
3400 # Let the user override the test.
jjako286bc982003-01-28 23:17:50 +00003401 lt_cv_path_NM="$NM"
jjako52c24142002-12-16 13:33:51 +00003402else
jjako286bc982003-01-28 23:17:50 +00003403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003404 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3405 test -z "$ac_dir" && ac_dir=.
jjako286bc982003-01-28 23:17:50 +00003406 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3407 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
jjako52c24142002-12-16 13:33:51 +00003408 # Check to see if the nm accepts a BSD-compat flag.
3409 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3410 # nm: unknown option "B" ignored
jjako286bc982003-01-28 23:17:50 +00003411 # Tru64's nm complains that /dev/null is an invalid object file
3412 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3413 lt_cv_path_NM="$tmp_nm -B"
jjako52c24142002-12-16 13:33:51 +00003414 break
jjako286bc982003-01-28 23:17:50 +00003415 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3416 lt_cv_path_NM="$tmp_nm -p"
jjako52c24142002-12-16 13:33:51 +00003417 break
3418 else
jjako286bc982003-01-28 23:17:50 +00003419 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
jjako52c24142002-12-16 13:33:51 +00003420 continue # so that we can try to find one that supports BSD flags
3421 fi
3422 fi
3423 done
3424 IFS="$ac_save_ifs"
jjako286bc982003-01-28 23:17:50 +00003425 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
jjako52c24142002-12-16 13:33:51 +00003426fi
3427fi
3428
jjako286bc982003-01-28 23:17:50 +00003429NM="$lt_cv_path_NM"
3430echo "$as_me:$LINENO: result: $NM" >&5
3431echo "${ECHO_T}$NM" >&6
jjako52c24142002-12-16 13:33:51 +00003432
jjako08d331d2003-10-13 20:33:30 +00003433echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3434echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3435if test "${lt_cv_path_SED+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 # Loop through the user's path and test for sed and gsed.
3439# Then use that list of sed's as ones to test for truncation.
3440as_executable_p="test -f"
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in sed gsed; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3449 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3450 fi
3451 done
3452 done
3453done
3454
3455 # Create a temporary directory, and hook for its removal unless debugging.
3456$debug ||
3457{
3458 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3459 trap '{ (exit 1); exit 1; }' 1 2 13 15
3460}
3461
3462# Create a (secure) tmp directory for tmp files.
3463: ${TMPDIR=/tmp}
3464{
3465 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3466 test -n "$tmp" && test -d "$tmp"
3467} ||
3468{
3469 tmp=$TMPDIR/sed$$-$RANDOM
3470 (umask 077 && mkdir $tmp)
3471} ||
3472{
3473 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3474 { (exit 1); exit 1; }
3475}
3476 _max=0
3477 _count=0
3478 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3479 # along with /bin/sed that truncates output.
3480 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3481 test ! -f ${_sed} && break
3482 cat /dev/null > "$tmp/sed.in"
3483 _count=0
3484 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3485 # Check for GNU sed and select it if it is found.
3486 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3487 lt_cv_path_SED=${_sed}
3488 break
3489 fi
3490 while true; do
3491 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3492 mv "$tmp/sed.tmp" "$tmp/sed.in"
3493 cp "$tmp/sed.in" "$tmp/sed.nl"
3494 echo >>"$tmp/sed.nl"
3495 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3496 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3497 # 40000 chars as input seems more than enough
3498 test $_count -gt 10 && break
3499 _count=`expr $_count + 1`
3500 if test $_count -gt $_max; then
3501 _max=$_count
3502 lt_cv_path_SED=$_sed
3503 fi
3504 done
3505 done
3506 rm -rf "$tmp"
3507
3508fi
3509
3510if test "X$SED" != "X"; then
3511 lt_cv_path_SED=$SED
3512else
3513 SED=$lt_cv_path_SED
3514fi
3515echo "$as_me:$LINENO: result: $SED" >&5
3516echo "${ECHO_T}$SED" >&6
3517
jjako286bc982003-01-28 23:17:50 +00003518echo "$as_me:$LINENO: checking whether ln -s works" >&5
3519echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3520LN_S=$as_ln_s
3521if test "$LN_S" = "ln -s"; then
3522 echo "$as_me:$LINENO: result: yes" >&5
3523echo "${ECHO_T}yes" >&6
3524else
3525 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3526echo "${ECHO_T}no, using $LN_S" >&6
3527fi
jjako52c24142002-12-16 13:33:51 +00003528
jjako08d331d2003-10-13 20:33:30 +00003529echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3530echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00003531if test "${lt_cv_deplibs_check_method+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 lt_cv_file_magic_cmd='$MAGIC_CMD'
3535lt_cv_file_magic_test_file=
3536lt_cv_deplibs_check_method='unknown'
3537# Need to set the preceding variable on all platforms that support
3538# interlibrary dependencies.
3539# 'none' -- dependencies not supported.
3540# `unknown' -- same as none, but documents that we really don't know.
3541# 'pass_all' -- all dependencies passed with no checks.
3542# 'test_compile' -- check by making test program.
3543# 'file_magic [[regex]]' -- check by looking for files in library path
3544# which responds to the $file_magic_cmd with a given egrep regex.
3545# If you have `file' or equivalent on your system and you're not sure
3546# whether `pass_all' will *always* work, you probably want this one.
3547
3548case $host_os in
3549aix4* | aix5*)
3550 lt_cv_deplibs_check_method=pass_all
3551 ;;
3552
3553beos*)
3554 lt_cv_deplibs_check_method=pass_all
3555 ;;
3556
3557bsdi4*)
3558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3559 lt_cv_file_magic_cmd='/usr/bin/file -L'
3560 lt_cv_file_magic_test_file=/shlib/libc.so
3561 ;;
3562
3563cygwin* | mingw* | pw32*)
3564 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3565 lt_cv_file_magic_cmd='$OBJDUMP -f'
3566 ;;
3567
3568darwin* | rhapsody*)
3569 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3570 lt_cv_file_magic_cmd='/usr/bin/file -L'
3571 case "$host_os" in
3572 rhapsody* | darwin1.[012])
3573 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3574 ;;
3575 *) # Darwin 1.3 on
3576 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3577 ;;
3578 esac
3579 ;;
3580
3581freebsd*)
3582 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3583 case $host_cpu in
3584 i*86 )
3585 # Not sure whether the presence of OpenBSD here was a mistake.
3586 # Let's accept both of them until this is cleared up.
3587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3588 lt_cv_file_magic_cmd=/usr/bin/file
3589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3590 ;;
3591 esac
3592 else
3593 lt_cv_deplibs_check_method=pass_all
3594 fi
3595 ;;
3596
3597gnu*)
3598 lt_cv_deplibs_check_method=pass_all
3599 ;;
3600
3601hpux10.20*|hpux11*)
3602 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3603 lt_cv_file_magic_cmd=/usr/bin/file
3604 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3605 ;;
3606
jjako08d331d2003-10-13 20:33:30 +00003607irix5* | irix6* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00003608 case $host_os in
jjako08d331d2003-10-13 20:33:30 +00003609 irix5* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00003610 # this will be overridden with pass_all, but let us keep it just in case
3611 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3612 ;;
3613 *)
3614 case $LD in
3615 *-32|*"-32 ") libmagic=32-bit;;
3616 *-n32|*"-n32 ") libmagic=N32;;
3617 *-64|*"-64 ") libmagic=64-bit;;
3618 *) libmagic=never-match;;
3619 esac
3620 # this will be overridden with pass_all, but let us keep it just in case
3621 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3622 ;;
3623 esac
3624 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3625 lt_cv_deplibs_check_method=pass_all
3626 ;;
3627
3628# This must be Linux ELF.
3629linux-gnu*)
3630 case $host_cpu in
jjako08d331d2003-10-13 20:33:30 +00003631 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
jjako286bc982003-01-28 23:17:50 +00003632 lt_cv_deplibs_check_method=pass_all ;;
3633 *)
3634 # glibc up to 2.1.1 does not perform some relocations on ARM
3635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3636 esac
3637 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3638 ;;
3639
3640netbsd*)
3641 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3642 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3643 else
3644 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3645 fi
3646 ;;
3647
3648newos6*)
3649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3650 lt_cv_file_magic_cmd=/usr/bin/file
3651 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3652 ;;
3653
3654openbsd*)
3655 lt_cv_file_magic_cmd=/usr/bin/file
3656 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3659 else
3660 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3661 fi
3662 ;;
3663
3664osf3* | osf4* | osf5*)
3665 # this will be overridden with pass_all, but let us keep it just in case
3666 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3667 lt_cv_file_magic_test_file=/shlib/libc.so
3668 lt_cv_deplibs_check_method=pass_all
3669 ;;
3670
3671sco3.2v5*)
3672 lt_cv_deplibs_check_method=pass_all
3673 ;;
3674
3675solaris*)
3676 lt_cv_deplibs_check_method=pass_all
3677 lt_cv_file_magic_test_file=/lib/libc.so
3678 ;;
3679
3680sysv5uw[78]* | sysv4*uw2*)
3681 lt_cv_deplibs_check_method=pass_all
3682 ;;
3683
3684sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3685 case $host_vendor in
3686 motorola)
3687 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]'
3688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3689 ;;
3690 ncr)
3691 lt_cv_deplibs_check_method=pass_all
3692 ;;
3693 sequent)
3694 lt_cv_file_magic_cmd='/bin/file'
3695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3696 ;;
3697 sni)
3698 lt_cv_file_magic_cmd='/bin/file'
3699 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3700 lt_cv_file_magic_test_file=/lib/libc.so
3701 ;;
jjako08d331d2003-10-13 20:33:30 +00003702 siemens)
3703 lt_cv_deplibs_check_method=pass_all
3704 ;;
jjako286bc982003-01-28 23:17:50 +00003705 esac
3706 ;;
jjako52c24142002-12-16 13:33:51 +00003707esac
3708
jjako286bc982003-01-28 23:17:50 +00003709fi
3710echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3711echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3712file_magic_cmd=$lt_cv_file_magic_cmd
3713deplibs_check_method=$lt_cv_deplibs_check_method
jjako52c24142002-12-16 13:33:51 +00003714
3715
jjako286bc982003-01-28 23:17:50 +00003716
3717
3718
3719
3720
3721
3722# Check for command to grab the raw symbol name followed by C symbol from nm.
3723echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3724echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3725if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728
3729# These are sane defaults that work on at least a few old systems.
3730# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3731
3732# Character class describing NM global symbol codes.
3733symcode='[BCDEGRST]'
3734
3735# Regexp to match symbols that can be accessed directly from C.
3736sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3737
3738# Transform the above into a raw symbol and a C symbol.
3739symxfrm='\1 \2\3 \3'
3740
3741# Transform an extracted symbol line into a proper C declaration
3742lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3743
3744# Transform an extracted symbol line into symbol name and symbol address
3745lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3746
3747# Define system-specific variables.
3748case $host_os in
3749aix*)
3750 symcode='[BCDT]'
3751 ;;
3752cygwin* | mingw* | pw32*)
3753 symcode='[ABCDGISTW]'
3754 ;;
3755hpux*) # Its linker distinguishes data from code symbols
3756 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3757 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'"
3758 ;;
jjako08d331d2003-10-13 20:33:30 +00003759irix* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00003760 symcode='[BCDEGRST]'
3761 ;;
jjako08d331d2003-10-13 20:33:30 +00003762osf*)
3763 symcode='[BCDEGQRST]'
3764 ;;
jjako286bc982003-01-28 23:17:50 +00003765solaris* | sysv5*)
3766 symcode='[BDT]'
3767 ;;
3768sysv4)
3769 symcode='[DFNSTU]'
3770 ;;
3771esac
3772
3773# Handle CRLF in mingw tool chain
3774opt_cr=
3775case $host_os in
3776mingw*)
3777 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3778 ;;
3779esac
3780
3781# If we're using GNU nm, then use its standard symbol codes.
3782if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3783 symcode='[ABCDGISTW]'
3784fi
3785
3786# Try without a prefix undercore, then with it.
3787for ac_symprfx in "" "_"; do
3788
3789 # Write the raw and C identifiers.
3790lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3791
3792 # Check to see that the pipe works correctly.
3793 pipe_works=no
3794 rm -f conftest*
3795 cat > conftest.$ac_ext <<EOF
3796#ifdef __cplusplus
3797extern "C" {
3798#endif
3799char nm_test_var;
3800void nm_test_func(){}
3801#ifdef __cplusplus
3802}
3803#endif
3804int main(){nm_test_var='a';nm_test_func();return(0);}
3805EOF
3806
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
3812 # Now try to grab the symbols.
3813 nlist=conftest.nm
3814 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3815 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && test -s "$nlist"; then
3819 # Try sorting and uniquifying the output.
3820 if sort "$nlist" | uniq > "$nlist"T; then
3821 mv -f "$nlist"T "$nlist"
3822 else
3823 rm -f "$nlist"T
3824 fi
3825
3826 # Make sure that we snagged all the symbols we need.
3827 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3828 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3829 cat <<EOF > conftest.$ac_ext
3830#ifdef __cplusplus
3831extern "C" {
3832#endif
3833
3834EOF
3835 # Now generate the symbol file.
3836 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3837
3838 cat <<EOF >> conftest.$ac_ext
3839#if defined (__STDC__) && __STDC__
3840# define lt_ptr void *
3841#else
3842# define lt_ptr char *
3843# define const
3844#endif
3845
3846/* The mapping between symbol names and symbols. */
3847const struct {
3848 const char *name;
3849 lt_ptr address;
3850}
3851lt_preloaded_symbols[] =
3852{
3853EOF
3854 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3855 cat <<\EOF >> conftest.$ac_ext
3856 {0, (lt_ptr) 0}
3857};
3858
3859#ifdef __cplusplus
3860}
3861#endif
3862EOF
3863 # Now try linking the two files.
3864 mv conftest.$ac_objext conftstm.$ac_objext
3865 save_LIBS="$LIBS"
3866 save_CFLAGS="$CFLAGS"
3867 LIBS="conftstm.$ac_objext"
3868 CFLAGS="$CFLAGS$no_builtin_flag"
3869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3870 (eval $ac_link) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjako08d331d2003-10-13 20:33:30 +00003873 (exit $ac_status); } && test -s conftest$ac_exeext; then
jjako286bc982003-01-28 23:17:50 +00003874 pipe_works=yes
3875 fi
3876 LIBS="$save_LIBS"
3877 CFLAGS="$save_CFLAGS"
3878 else
3879 echo "cannot find nm_test_func in $nlist" >&5
3880 fi
3881 else
3882 echo "cannot find nm_test_var in $nlist" >&5
3883 fi
3884 else
3885 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3886 fi
3887 else
3888 echo "$progname: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 fi
3891 rm -f conftest* conftst*
3892
3893 # Do not use the global_symbol_pipe unless it works.
3894 if test "$pipe_works" = yes; then
3895 break
3896 else
3897 lt_cv_sys_global_symbol_pipe=
3898 fi
3899done
3900
3901fi
3902
3903global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3904if test -z "$lt_cv_sys_global_symbol_pipe"; then
3905 global_symbol_to_cdecl=
3906 global_symbol_to_c_name_address=
3907else
3908 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3909 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3910fi
3911if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3912then
3913 echo "$as_me:$LINENO: result: failed" >&5
3914echo "${ECHO_T}failed" >&6
3915else
3916 echo "$as_me:$LINENO: result: ok" >&5
3917echo "${ECHO_T}ok" >&6
3918fi
3919
3920
jjako08d331d2003-10-13 20:33:30 +00003921echo "$as_me:$LINENO: checking for egrep" >&5
3922echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3927 then ac_cv_prog_egrep='grep -E'
3928 else ac_cv_prog_egrep='egrep'
3929 fi
3930fi
3931echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP=$ac_cv_prog_egrep
3934
3935
jjako286bc982003-01-28 23:17:50 +00003936echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3937echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3938if test "${ac_cv_header_stdc+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 cat >conftest.$ac_ext <<_ACEOF
3942#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00003943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003948#include <stdlib.h>
3949#include <stdarg.h>
3950#include <string.h>
3951#include <float.h>
3952
jjako08d331d2003-10-13 20:33:30 +00003953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
jjako286bc982003-01-28 23:17:50 +00003960_ACEOF
jjako08d331d2003-10-13 20:33:30 +00003961rm -f conftest.$ac_objext
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>&5
jjako286bc982003-01-28 23:17:50 +00003964 ac_status=$?
jjako286bc982003-01-28 23:17:50 +00003965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjako08d331d2003-10-13 20:33:30 +00003966 (exit $ac_status); } &&
3967 { ac_try='test -s conftest.$ac_objext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
jjako286bc982003-01-28 23:17:50 +00003973 ac_cv_header_stdc=yes
3974else
3975 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00003976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978ac_cv_header_stdc=no
jjako286bc982003-01-28 23:17:50 +00003979fi
jjako08d331d2003-10-13 20:33:30 +00003980rm -f conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00003981
3982if test $ac_cv_header_stdc = yes; then
3983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3984 cat >conftest.$ac_ext <<_ACEOF
3985#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00003986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00003991#include <string.h>
3992
3993_ACEOF
3994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00003995 $EGREP "memchr" >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +00003996 :
3997else
3998 ac_cv_header_stdc=no
3999fi
4000rm -f conftest*
4001
4002fi
4003
4004if test $ac_cv_header_stdc = yes; then
4005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4006 cat >conftest.$ac_ext <<_ACEOF
4007#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004008/* confdefs.h. */
4009_ACEOF
4010cat confdefs.h >>conftest.$ac_ext
4011cat >>conftest.$ac_ext <<_ACEOF
4012/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004013#include <stdlib.h>
4014
4015_ACEOF
4016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00004017 $EGREP "free" >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +00004018 :
4019else
4020 ac_cv_header_stdc=no
4021fi
4022rm -f conftest*
4023
4024fi
4025
4026if test $ac_cv_header_stdc = yes; then
4027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4028 if test "$cross_compiling" = yes; then
4029 :
4030else
4031 cat >conftest.$ac_ext <<_ACEOF
4032#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004033/* confdefs.h. */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004038#include <ctype.h>
4039#if ((' ' & 0x0FF) == 0x020)
4040# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4041# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4042#else
jjako08d331d2003-10-13 20:33:30 +00004043# define ISLOWER(c) \
4044 (('a' <= (c) && (c) <= 'i') \
jjako286bc982003-01-28 23:17:50 +00004045 || ('j' <= (c) && (c) <= 'r') \
4046 || ('s' <= (c) && (c) <= 'z'))
4047# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4048#endif
4049
4050#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4051int
4052main ()
4053{
4054 int i;
4055 for (i = 0; i < 256; i++)
4056 if (XOR (islower (i), ISLOWER (i))
4057 || toupper (i) != TOUPPER (i))
4058 exit(2);
4059 exit (0);
4060}
4061_ACEOF
4062rm -f conftest$ac_exeext
4063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064 (eval $ac_link) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 :
4074else
4075 echo "$as_me: program exited with status $ac_status" >&5
4076echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004077sed 's/^/| /' conftest.$ac_ext >&5
4078
jjako286bc982003-01-28 23:17:50 +00004079( exit $ac_status )
4080ac_cv_header_stdc=no
4081fi
jjako08d331d2003-10-13 20:33:30 +00004082rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00004083fi
4084fi
4085fi
4086echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4087echo "${ECHO_T}$ac_cv_header_stdc" >&6
4088if test $ac_cv_header_stdc = yes; then
4089
4090cat >>confdefs.h <<\_ACEOF
4091#define STDC_HEADERS 1
4092_ACEOF
4093
4094fi
4095
4096# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4107 inttypes.h stdint.h unistd.h
4108do
4109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4110echo "$as_me:$LINENO: checking for $ac_header" >&5
4111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4112if eval "test \"\${$as_ac_Header+set}\" = set"; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 cat >conftest.$ac_ext <<_ACEOF
4116#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004122$ac_includes_default
4123
4124#include <$ac_header>
4125_ACEOF
4126rm -f conftest.$ac_objext
4127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -s conftest.$ac_objext'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 eval "$as_ac_Header=yes"
4139else
4140 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004141sed 's/^/| /' conftest.$ac_ext >&5
4142
jjako286bc982003-01-28 23:17:50 +00004143eval "$as_ac_Header=no"
4144fi
4145rm -f conftest.$ac_objext conftest.$ac_ext
4146fi
4147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4149if test `eval echo '${'$as_ac_Header'}'` = yes; then
4150 cat >>confdefs.h <<_ACEOF
4151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4152_ACEOF
4153
4154fi
4155
4156done
4157
4158
4159
4160for ac_header in dlfcn.h
4161do
4162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4163if eval "test \"\${$as_ac_Header+set}\" = set"; then
4164 echo "$as_me:$LINENO: checking for $ac_header" >&5
4165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4166if eval "test \"\${$as_ac_Header+set}\" = set"; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168fi
4169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4171else
4172 # Is the header compilable?
4173echo "$as_me:$LINENO: checking $ac_header usability" >&5
4174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4175cat >conftest.$ac_ext <<_ACEOF
4176#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004182$ac_includes_default
4183#include <$ac_header>
4184_ACEOF
4185rm -f conftest.$ac_objext
4186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_header_compiler=yes
4198else
4199 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004200sed 's/^/| /' conftest.$ac_ext >&5
4201
jjako286bc982003-01-28 23:17:50 +00004202ac_header_compiler=no
4203fi
4204rm -f conftest.$ac_objext conftest.$ac_ext
4205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4206echo "${ECHO_T}$ac_header_compiler" >&6
4207
4208# Is the header present?
4209echo "$as_me:$LINENO: checking $ac_header presence" >&5
4210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4211cat >conftest.$ac_ext <<_ACEOF
4212#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004218#include <$ac_header>
4219_ACEOF
4220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4222 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00004223 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00004224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } >/dev/null; then
4228 if test -s conftest.err; then
4229 ac_cpp_err=$ac_c_preproc_warn_flag
4230 else
4231 ac_cpp_err=
4232 fi
4233else
4234 ac_cpp_err=yes
4235fi
4236if test -z "$ac_cpp_err"; then
4237 ac_header_preproc=yes
4238else
4239 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004240sed 's/^/| /' conftest.$ac_ext >&5
4241
jjako286bc982003-01-28 23:17:50 +00004242 ac_header_preproc=no
4243fi
4244rm -f conftest.err conftest.$ac_ext
4245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4246echo "${ECHO_T}$ac_header_preproc" >&6
4247
4248# So? What about this header?
4249case $ac_header_compiler:$ac_header_preproc in
4250 yes:no )
4251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00004254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4255 (
4256 cat <<\_ASBOX
4257## ------------------------------------ ##
4258## Report this to bug-autoconf@gnu.org. ##
4259## ------------------------------------ ##
4260_ASBOX
4261 ) |
4262 sed "s/^/$as_me: WARNING: /" >&2
4263 ;;
jjako286bc982003-01-28 23:17:50 +00004264 no:yes )
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4268echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00004270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4271 (
4272 cat <<\_ASBOX
4273## ------------------------------------ ##
4274## Report this to bug-autoconf@gnu.org. ##
4275## ------------------------------------ ##
4276_ASBOX
4277 ) |
4278 sed "s/^/$as_me: WARNING: /" >&2
4279 ;;
jjako286bc982003-01-28 23:17:50 +00004280esac
4281echo "$as_me:$LINENO: checking for $ac_header" >&5
4282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4283if eval "test \"\${$as_ac_Header+set}\" = set"; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 eval "$as_ac_Header=$ac_header_preproc"
4287fi
4288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290
4291fi
4292if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295_ACEOF
4296
4297fi
4298
4299done
4300
4301
4302
4303
4304
jjako08d331d2003-10-13 20:33:30 +00004305
jjako286bc982003-01-28 23:17:50 +00004306# Only perform the check for file, if the check method requires it
4307case $deplibs_check_method in
4308file_magic*)
4309 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4310 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4311echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4312if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315 case $MAGIC_CMD in
4316 /*)
4317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4318 ;;
4319 ?:/*)
4320 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4321 ;;
4322 *)
4323 ac_save_MAGIC_CMD="$MAGIC_CMD"
4324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4325 ac_dummy="/usr/bin:$PATH"
4326 for ac_dir in $ac_dummy; do
4327 test -z "$ac_dir" && ac_dir=.
4328 if test -f $ac_dir/${ac_tool_prefix}file; then
4329 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4330 if test -n "$file_magic_test_file"; then
4331 case $deplibs_check_method in
4332 "file_magic "*)
4333 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4336 egrep "$file_magic_regex" > /dev/null; then
4337 :
4338 else
4339 cat <<EOF 1>&2
4340
4341*** Warning: the command libtool uses to detect shared libraries,
4342*** $file_magic_cmd, produces output that libtool cannot recognize.
4343*** The result is that libtool may fail to recognize shared libraries
4344*** as such. This will affect the creation of libtool libraries that
4345*** depend on shared libraries, but programs linked with such libtool
4346*** libraries will work regardless of this problem. Nevertheless, you
4347*** may want to report the problem to your system manager and/or to
4348*** bug-libtool@gnu.org
4349
4350EOF
4351 fi ;;
4352 esac
4353 fi
4354 break
4355 fi
4356 done
4357 IFS="$ac_save_ifs"
4358 MAGIC_CMD="$ac_save_MAGIC_CMD"
4359 ;;
4360esac
4361fi
4362
4363MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4364if test -n "$MAGIC_CMD"; then
4365 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4366echo "${ECHO_T}$MAGIC_CMD" >&6
4367else
4368 echo "$as_me:$LINENO: result: no" >&5
4369echo "${ECHO_T}no" >&6
4370fi
4371
4372if test -z "$lt_cv_path_MAGIC_CMD"; then
4373 if test -n "$ac_tool_prefix"; then
4374 echo "$as_me:$LINENO: checking for file" >&5
4375echo $ECHO_N "checking for file... $ECHO_C" >&6
4376if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379 case $MAGIC_CMD in
4380 /*)
4381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4382 ;;
4383 ?:/*)
4384 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4385 ;;
4386 *)
4387 ac_save_MAGIC_CMD="$MAGIC_CMD"
4388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4389 ac_dummy="/usr/bin:$PATH"
4390 for ac_dir in $ac_dummy; do
4391 test -z "$ac_dir" && ac_dir=.
4392 if test -f $ac_dir/file; then
4393 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4394 if test -n "$file_magic_test_file"; then
4395 case $deplibs_check_method in
4396 "file_magic "*)
4397 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4399 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4400 egrep "$file_magic_regex" > /dev/null; then
4401 :
4402 else
4403 cat <<EOF 1>&2
4404
4405*** Warning: the command libtool uses to detect shared libraries,
4406*** $file_magic_cmd, produces output that libtool cannot recognize.
4407*** The result is that libtool may fail to recognize shared libraries
4408*** as such. This will affect the creation of libtool libraries that
4409*** depend on shared libraries, but programs linked with such libtool
4410*** libraries will work regardless of this problem. Nevertheless, you
4411*** may want to report the problem to your system manager and/or to
4412*** bug-libtool@gnu.org
4413
4414EOF
4415 fi ;;
4416 esac
4417 fi
4418 break
4419 fi
4420 done
4421 IFS="$ac_save_ifs"
4422 MAGIC_CMD="$ac_save_MAGIC_CMD"
4423 ;;
4424esac
4425fi
4426
4427MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4428if test -n "$MAGIC_CMD"; then
4429 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4430echo "${ECHO_T}$MAGIC_CMD" >&6
4431else
4432 echo "$as_me:$LINENO: result: no" >&5
4433echo "${ECHO_T}no" >&6
4434fi
4435
4436 else
4437 MAGIC_CMD=:
4438 fi
4439fi
4440
4441 fi
4442 ;;
4443esac
4444
4445if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4447set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4448echo "$as_me:$LINENO: checking for $ac_word" >&5
4449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450if test "${ac_cv_prog_RANLIB+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453 if test -n "$RANLIB"; then
4454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467done
4468done
4469
4470fi
4471fi
4472RANLIB=$ac_cv_prog_RANLIB
4473if test -n "$RANLIB"; then
4474 echo "$as_me:$LINENO: result: $RANLIB" >&5
4475echo "${ECHO_T}$RANLIB" >&6
4476else
4477 echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
4479fi
4480
4481fi
4482if test -z "$ac_cv_prog_RANLIB"; then
4483 ac_ct_RANLIB=$RANLIB
4484 # Extract the first word of "ranlib", so it can be a program name with args.
4485set dummy ranlib; ac_word=$2
4486echo "$as_me:$LINENO: checking for $ac_word" >&5
4487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 if test -n "$ac_ct_RANLIB"; then
4492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_RANLIB="ranlib"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506done
4507
4508 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4509fi
4510fi
4511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4512if test -n "$ac_ct_RANLIB"; then
4513 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4514echo "${ECHO_T}$ac_ct_RANLIB" >&6
4515else
4516 echo "$as_me:$LINENO: result: no" >&5
4517echo "${ECHO_T}no" >&6
4518fi
4519
4520 RANLIB=$ac_ct_RANLIB
4521else
4522 RANLIB="$ac_cv_prog_RANLIB"
4523fi
4524
4525if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}strip; ac_word=$2
4528echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530if test "${ac_cv_prog_STRIP+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533 if test -n "$STRIP"; then
4534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548done
4549
4550fi
4551fi
4552STRIP=$ac_cv_prog_STRIP
4553if test -n "$STRIP"; then
4554 echo "$as_me:$LINENO: result: $STRIP" >&5
4555echo "${ECHO_T}$STRIP" >&6
4556else
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
4559fi
4560
4561fi
4562if test -z "$ac_cv_prog_STRIP"; then
4563 ac_ct_STRIP=$STRIP
4564 # Extract the first word of "strip", so it can be a program name with args.
4565set dummy strip; ac_word=$2
4566echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 if test -n "$ac_ct_STRIP"; then
4572 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_STRIP="strip"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586done
4587
4588 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4589fi
4590fi
4591ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4592if test -n "$ac_ct_STRIP"; then
4593 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4594echo "${ECHO_T}$ac_ct_STRIP" >&6
4595else
4596 echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598fi
4599
4600 STRIP=$ac_ct_STRIP
4601else
4602 STRIP="$ac_cv_prog_STRIP"
4603fi
4604
4605
4606enable_dlopen=no
4607enable_win32_dll=no
4608
jjako52c24142002-12-16 13:33:51 +00004609# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4610if test "${enable_libtool_lock+set}" = set; then
4611 enableval="$enable_libtool_lock"
jjako52c24142002-12-16 13:33:51 +00004612
jjako286bc982003-01-28 23:17:50 +00004613fi;
4614test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
jjako52c24142002-12-16 13:33:51 +00004615
4616# Some flags need to be propagated to the compiler or linker for good
4617# libtool support.
jjako286bc982003-01-28 23:17:50 +00004618case $host in
jjako52c24142002-12-16 13:33:51 +00004619*-*-irix6*)
4620 # Find out which ABI we are using.
jjako77edc822004-09-10 17:19:31 +00004621 echo '#line 4621 "configure"' > conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00004622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; then
4627 case `/usr/bin/file conftest.$ac_objext` in
jjako52c24142002-12-16 13:33:51 +00004628 *32-bit*)
4629 LD="${LD-ld} -32"
4630 ;;
4631 *N32*)
4632 LD="${LD-ld} -n32"
4633 ;;
4634 *64-bit*)
4635 LD="${LD-ld} -64"
4636 ;;
4637 esac
4638 fi
4639 rm -rf conftest*
4640 ;;
4641
4642*-*-sco3.2v5*)
4643 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4644 SAVE_CFLAGS="$CFLAGS"
4645 CFLAGS="$CFLAGS -belf"
jjako286bc982003-01-28 23:17:50 +00004646 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4647echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4648if test "${lt_cv_cc_needs_belf+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00004650else
jjako286bc982003-01-28 23:17:50 +00004651
4652
4653 ac_ext=c
4654ac_cpp='$CPP $CPPFLAGS'
4655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658
4659 cat >conftest.$ac_ext <<_ACEOF
4660#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00004666
jjako286bc982003-01-28 23:17:50 +00004667int
4668main ()
4669{
jjako52c24142002-12-16 13:33:51 +00004670
jjako286bc982003-01-28 23:17:50 +00004671 ;
4672 return 0;
4673}
4674_ACEOF
4675rm -f conftest.$ac_objext conftest$ac_exeext
4676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677 (eval $ac_link) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -s conftest$ac_exeext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00004687 lt_cv_cc_needs_belf=yes
4688else
jjako286bc982003-01-28 23:17:50 +00004689 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00004690sed 's/^/| /' conftest.$ac_ext >&5
4691
jjako286bc982003-01-28 23:17:50 +00004692lt_cv_cc_needs_belf=no
jjako52c24142002-12-16 13:33:51 +00004693fi
jjako286bc982003-01-28 23:17:50 +00004694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4695 ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00004700
jjako286bc982003-01-28 23:17:50 +00004701fi
4702echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4703echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
jjako52c24142002-12-16 13:33:51 +00004704 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4705 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4706 CFLAGS="$SAVE_CFLAGS"
4707 fi
4708 ;;
4709
4710
4711esac
4712
jjako286bc982003-01-28 23:17:50 +00004713# Sed substitution that helps us do robust quoting. It backslashifies
4714# metacharacters that are still active within double-quoted strings.
4715Xsed='sed -e s/^X//'
4716sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
jjako52c24142002-12-16 13:33:51 +00004717
jjako286bc982003-01-28 23:17:50 +00004718# Same as above, but do not quote variable references.
4719double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4720
4721# Sed substitution to delay expansion of an escaped shell variable in a
4722# double_quote_subst'ed string.
4723delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4724
4725# Constants:
4726rm="rm -f"
4727
4728# Global variables:
4729default_ofile=libtool
4730can_build_shared=yes
4731
4732# All known linkers require a `.a' archive for static linking (except M$VC,
4733# which needs '.lib').
4734libext=a
4735ltmain="$ac_aux_dir/ltmain.sh"
4736ofile="$default_ofile"
4737with_gnu_ld="$lt_cv_prog_gnu_ld"
4738need_locks="$enable_libtool_lock"
4739
4740old_CC="$CC"
4741old_CFLAGS="$CFLAGS"
4742
4743# Set sane defaults for various variables
4744test -z "$AR" && AR=ar
4745test -z "$AR_FLAGS" && AR_FLAGS=cru
4746test -z "$AS" && AS=as
4747test -z "$CC" && CC=cc
4748test -z "$DLLTOOL" && DLLTOOL=dlltool
4749test -z "$LD" && LD=ld
4750test -z "$LN_S" && LN_S="ln -s"
4751test -z "$MAGIC_CMD" && MAGIC_CMD=file
4752test -z "$NM" && NM=nm
4753test -z "$OBJDUMP" && OBJDUMP=objdump
4754test -z "$RANLIB" && RANLIB=:
4755test -z "$STRIP" && STRIP=:
4756test -z "$ac_objext" && ac_objext=o
4757
4758if test x"$host" != x"$build"; then
4759 ac_tool_prefix=${host_alias}-
4760else
4761 ac_tool_prefix=
4762fi
4763
4764# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4765case $host_os in
4766linux-gnu*) ;;
4767linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4768esac
4769
4770case $host_os in
4771aix3*)
4772 # AIX sometimes has problems with the GCC collect2 program. For some
4773 # reason, if we set the COLLECT_NAMES environment variable, the problems
4774 # vanish in a puff of smoke.
4775 if test "X${COLLECT_NAMES+set}" != Xset; then
4776 COLLECT_NAMES=
4777 export COLLECT_NAMES
4778 fi
4779 ;;
4780esac
4781
4782# Determine commands to create old-style static archives.
4783old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4784old_postinstall_cmds='chmod 644 $oldlib'
4785old_postuninstall_cmds=
4786
4787if test -n "$RANLIB"; then
4788 case $host_os in
4789 openbsd*)
4790 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004791 ;;
4792 *)
jjako286bc982003-01-28 23:17:50 +00004793 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004794 ;;
jjako286bc982003-01-28 23:17:50 +00004795 esac
4796 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4797fi
4798
4799# Allow CC to be a program name with arguments.
4800set dummy $CC
4801compiler="$2"
4802
4803echo "$as_me:$LINENO: checking for objdir" >&5
4804echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4805rm -f .libs 2>/dev/null
4806mkdir .libs 2>/dev/null
4807if test -d .libs; then
4808 objdir=.libs
jjako52c24142002-12-16 13:33:51 +00004809else
jjako286bc982003-01-28 23:17:50 +00004810 # MS-DOS does not allow filenames that begin with a dot.
4811 objdir=_libs
4812fi
4813rmdir .libs 2>/dev/null
4814echo "$as_me:$LINENO: result: $objdir" >&5
4815echo "${ECHO_T}$objdir" >&6
4816
4817
4818
4819# Check whether --with-pic or --without-pic was given.
4820if test "${with_pic+set}" = set; then
4821 withval="$with_pic"
4822 pic_mode="$withval"
4823else
4824 pic_mode=default
4825fi;
4826test -z "$pic_mode" && pic_mode=default
4827
4828# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4829# in isolation, and that seeing it set (from the cache) indicates that
4830# the associated values are set (in the cache) correctly too.
4831echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4832echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4833if test "${lt_cv_prog_cc_pic+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836 lt_cv_prog_cc_pic=
4837 lt_cv_prog_cc_shlib=
4838 lt_cv_prog_cc_wl=
4839 lt_cv_prog_cc_static=
4840 lt_cv_prog_cc_no_builtin=
4841 lt_cv_prog_cc_can_build_shared=$can_build_shared
4842
4843 if test "$GCC" = yes; then
4844 lt_cv_prog_cc_wl='-Wl,'
4845 lt_cv_prog_cc_static='-static'
4846
4847 case $host_os in
4848 aix*)
4849 # Below there is a dirty hack to force normal static linking with -ldl
4850 # The problem is because libdl dynamically linked with both libc and
4851 # libC (AIX C++ library), which obviously doesn't included in libraries
4852 # list by gcc. This cause undefined symbols with -static flags.
4853 # This hack allows C programs to be linked with "-static -ldl", but
4854 # not sure about C++ programs.
4855 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4856 ;;
4857 amigaos*)
4858 # FIXME: we need at least 68020 code to build shared libraries, but
4859 # adding the `-m68020' flag to GCC prevents building anything better,
4860 # like `-m68040'.
4861 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4862 ;;
jjako08d331d2003-10-13 20:33:30 +00004863 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
jjako286bc982003-01-28 23:17:50 +00004864 # PIC is the default for these OSes.
4865 ;;
4866 darwin* | rhapsody*)
4867 # PIC is the default on this platform
4868 # Common symbols not allowed in MH_DYLIB files
4869 lt_cv_prog_cc_pic='-fno-common'
4870 ;;
4871 cygwin* | mingw* | pw32* | os2*)
4872 # This hack is so that the source file can tell whether it is being
4873 # built for inclusion in a dll (and should export symbols for example).
4874 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4875 ;;
4876 sysv4*MP*)
4877 if test -d /usr/nec; then
4878 lt_cv_prog_cc_pic=-Kconform_pic
4879 fi
4880 ;;
4881 *)
4882 lt_cv_prog_cc_pic='-fPIC'
4883 ;;
4884 esac
jjako52c24142002-12-16 13:33:51 +00004885 else
jjako286bc982003-01-28 23:17:50 +00004886 # PORTME Check for PIC flags for the system compiler.
4887 case $host_os in
4888 aix3* | aix4* | aix5*)
4889 lt_cv_prog_cc_wl='-Wl,'
4890 # All AIX code is PIC.
4891 if test "$host_cpu" = ia64; then
4892 # AIX 5 now supports IA64 processor
4893 lt_cv_prog_cc_static='-Bstatic'
4894 else
4895 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4896 fi
4897 ;;
4898
4899 hpux9* | hpux10* | hpux11*)
4900 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4901 lt_cv_prog_cc_wl='-Wl,'
4902 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4903 lt_cv_prog_cc_pic='+Z'
4904 ;;
4905
jjako08d331d2003-10-13 20:33:30 +00004906 irix5* | irix6* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00004907 lt_cv_prog_cc_wl='-Wl,'
4908 lt_cv_prog_cc_static='-non_shared'
4909 # PIC (with -KPIC) is the default.
4910 ;;
4911
4912 cygwin* | mingw* | pw32* | os2*)
4913 # This hack is so that the source file can tell whether it is being
4914 # built for inclusion in a dll (and should export symbols for example).
4915 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4916 ;;
4917
4918 newsos6)
4919 lt_cv_prog_cc_pic='-KPIC'
4920 lt_cv_prog_cc_static='-Bstatic'
4921 ;;
4922
4923 osf3* | osf4* | osf5*)
4924 # All OSF/1 code is PIC.
4925 lt_cv_prog_cc_wl='-Wl,'
4926 lt_cv_prog_cc_static='-non_shared'
4927 ;;
4928
4929 sco3.2v5*)
4930 lt_cv_prog_cc_pic='-Kpic'
4931 lt_cv_prog_cc_static='-dn'
4932 lt_cv_prog_cc_shlib='-belf'
4933 ;;
4934
4935 solaris*)
4936 lt_cv_prog_cc_pic='-KPIC'
4937 lt_cv_prog_cc_static='-Bstatic'
4938 lt_cv_prog_cc_wl='-Wl,'
4939 ;;
4940
4941 sunos4*)
4942 lt_cv_prog_cc_pic='-PIC'
4943 lt_cv_prog_cc_static='-Bstatic'
4944 lt_cv_prog_cc_wl='-Qoption ld '
4945 ;;
4946
4947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4948 lt_cv_prog_cc_pic='-KPIC'
4949 lt_cv_prog_cc_static='-Bstatic'
jjako08d331d2003-10-13 20:33:30 +00004950 lt_cv_prog_cc_wl='-Wl,'
jjako286bc982003-01-28 23:17:50 +00004951 ;;
4952
4953 uts4*)
4954 lt_cv_prog_cc_pic='-pic'
4955 lt_cv_prog_cc_static='-Bstatic'
4956 ;;
4957
4958 sysv4*MP*)
4959 if test -d /usr/nec ;then
4960 lt_cv_prog_cc_pic='-Kconform_pic'
4961 lt_cv_prog_cc_static='-Bstatic'
4962 fi
4963 ;;
4964
4965 *)
4966 lt_cv_prog_cc_can_build_shared=no
4967 ;;
4968 esac
4969 fi
4970
4971fi
4972
4973if test -z "$lt_cv_prog_cc_pic"; then
4974 echo "$as_me:$LINENO: result: none" >&5
4975echo "${ECHO_T}none" >&6
4976else
4977 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4978echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4979
4980 # Check to make sure the pic_flag actually works.
4981 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4982echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4983 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 save_CFLAGS="$CFLAGS"
4987 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4988 cat >conftest.$ac_ext <<_ACEOF
4989#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00004990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00004995
jjako286bc982003-01-28 23:17:50 +00004996int
4997main ()
4998{
4999
5000 ;
5001 return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
5005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 case $host_os in
5017 hpux9* | hpux10* | hpux11*)
5018 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5019 # they create non-PIC objects. So, if there were any warnings, we
5020 # assume that PIC is not supported.
5021 if test -s conftest.err; then
5022 lt_cv_prog_cc_pic_works=no
5023 else
5024 lt_cv_prog_cc_pic_works=yes
5025 fi
5026 ;;
5027 *)
5028 lt_cv_prog_cc_pic_works=yes
5029 ;;
5030 esac
5031
5032else
5033 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005034sed 's/^/| /' conftest.$ac_ext >&5
5035
jjako286bc982003-01-28 23:17:50 +00005036 lt_cv_prog_cc_pic_works=no
5037
5038fi
5039rm -f conftest.$ac_objext conftest.$ac_ext
5040 CFLAGS="$save_CFLAGS"
5041
5042fi
5043
5044
5045 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5046 lt_cv_prog_cc_pic=
5047 lt_cv_prog_cc_can_build_shared=no
5048 else
5049 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5050 fi
5051
5052 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5053echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5054fi
5055
5056# Check for any special shared library compilation flags.
5057if test -n "$lt_cv_prog_cc_shlib"; then
5058 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5059echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5060 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5061 else
5062 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5063echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5064 lt_cv_prog_cc_can_build_shared=no
jjako52c24142002-12-16 13:33:51 +00005065 fi
5066fi
jjako52c24142002-12-16 13:33:51 +00005067
jjako286bc982003-01-28 23:17:50 +00005068echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5069echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5070if test "${lt_cv_prog_cc_static_works+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00005072else
jjako286bc982003-01-28 23:17:50 +00005073 lt_cv_prog_cc_static_works=no
5074 save_LDFLAGS="$LDFLAGS"
5075 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5076 cat >conftest.$ac_ext <<_ACEOF
5077#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00005078/* confdefs.h. */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00005083
jjako286bc982003-01-28 23:17:50 +00005084int
5085main ()
5086{
5087
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -s conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 lt_cv_prog_cc_static_works=yes
5105else
5106 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005107sed 's/^/| /' conftest.$ac_ext >&5
5108
jjako52c24142002-12-16 13:33:51 +00005109fi
jjako286bc982003-01-28 23:17:50 +00005110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5111 LDFLAGS="$save_LDFLAGS"
5112
5113fi
5114
5115
5116# Belt *and* braces to stop my trousers falling down:
5117test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5118echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5119echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5120
5121pic_flag="$lt_cv_prog_cc_pic"
5122special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5123wl="$lt_cv_prog_cc_wl"
5124link_static_flag="$lt_cv_prog_cc_static"
5125no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5126can_build_shared="$lt_cv_prog_cc_can_build_shared"
5127
5128
5129# Check to see if options -o and -c are simultaneously supported by compiler
5130echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5131echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5132if test "${lt_cv_compiler_c_o+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135
5136$rm -r conftest 2>/dev/null
5137mkdir conftest
5138cd conftest
5139echo "int some_variable = 0;" > conftest.$ac_ext
5140mkdir out
5141# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5142# that will create temporary files in the current directory regardless of
5143# the output directory. Thus, making CWD read-only will cause this test
5144# to fail, enabling locking or at least warning the user not to do parallel
5145# builds.
5146chmod -w .
5147save_CFLAGS="$CFLAGS"
5148CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5149compiler_c_o=no
jjako77edc822004-09-10 17:19:31 +00005150if { (eval echo configure:5150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
jjako286bc982003-01-28 23:17:50 +00005151 # The compiler can only warn and ignore the option if not recognized
5152 # So say no if there are warnings
5153 if test -s out/conftest.err; then
5154 lt_cv_compiler_c_o=no
5155 else
5156 lt_cv_compiler_c_o=yes
5157 fi
5158else
5159 # Append any errors to the config.log.
5160 cat out/conftest.err 1>&5
5161 lt_cv_compiler_c_o=no
5162fi
5163CFLAGS="$save_CFLAGS"
5164chmod u+w .
5165$rm conftest* out/*
5166rmdir out
5167cd ..
5168rmdir conftest
5169$rm -r conftest 2>/dev/null
5170
5171fi
5172
5173compiler_c_o=$lt_cv_compiler_c_o
5174echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5175echo "${ECHO_T}$compiler_c_o" >&6
5176
5177if test x"$compiler_c_o" = x"yes"; then
5178 # Check to see if we can write to a .lo
5179 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5180echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5181 if test "${lt_cv_compiler_o_lo+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184
5185 lt_cv_compiler_o_lo=no
5186 save_CFLAGS="$CFLAGS"
5187 CFLAGS="$CFLAGS -c -o conftest.lo"
5188 save_objext="$ac_objext"
5189 ac_objext=lo
5190 cat >conftest.$ac_ext <<_ACEOF
5191#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00005192/* confdefs.h. */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00005197
jjako286bc982003-01-28 23:17:50 +00005198int
5199main ()
5200{
5201int some_variable = 0;
5202 ;
5203 return 0;
5204}
5205_ACEOF
5206rm -f conftest.$ac_objext
5207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 # The compiler can only warn and ignore the option if not recognized
5219 # So say no if there are warnings
5220 if test -s conftest.err; then
5221 lt_cv_compiler_o_lo=no
5222 else
5223 lt_cv_compiler_o_lo=yes
5224 fi
5225
5226else
5227 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005228sed 's/^/| /' conftest.$ac_ext >&5
5229
jjako286bc982003-01-28 23:17:50 +00005230fi
5231rm -f conftest.$ac_objext conftest.$ac_ext
5232 ac_objext="$save_objext"
5233 CFLAGS="$save_CFLAGS"
5234
5235fi
5236
5237 compiler_o_lo=$lt_cv_compiler_o_lo
5238 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5239echo "${ECHO_T}$compiler_o_lo" >&6
5240else
5241 compiler_o_lo=no
5242fi
5243
5244# Check to see if we can do hard links to lock some files if needed
5245hard_links="nottested"
5246if test "$compiler_c_o" = no && test "$need_locks" != no; then
5247 # do not overwrite the value of need_locks provided by the user
5248 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5249echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5250 hard_links=yes
5251 $rm conftest*
5252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5253 touch conftest.a
5254 ln conftest.a conftest.b 2>&5 || hard_links=no
5255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5256 echo "$as_me:$LINENO: result: $hard_links" >&5
5257echo "${ECHO_T}$hard_links" >&6
5258 if test "$hard_links" = no; then
5259 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5260echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5261 need_locks=warn
5262 fi
5263else
5264 need_locks=no
5265fi
5266
5267if test "$GCC" = yes; then
5268 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5269 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5270echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5271 echo "int some_variable = 0;" > conftest.$ac_ext
5272 save_CFLAGS="$CFLAGS"
5273 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5274 compiler_rtti_exceptions=no
5275 cat >conftest.$ac_ext <<_ACEOF
5276#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00005277/* confdefs.h. */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00005282
jjako286bc982003-01-28 23:17:50 +00005283int
5284main ()
5285{
5286int some_variable = 0;
5287 ;
5288 return 0;
5289}
5290_ACEOF
5291rm -f conftest.$ac_objext
5292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 # The compiler can only warn and ignore the option if not recognized
5304 # So say no if there are warnings
5305 if test -s conftest.err; then
5306 compiler_rtti_exceptions=no
5307 else
5308 compiler_rtti_exceptions=yes
5309 fi
5310
5311else
5312 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00005313sed 's/^/| /' conftest.$ac_ext >&5
5314
jjako286bc982003-01-28 23:17:50 +00005315fi
5316rm -f conftest.$ac_objext conftest.$ac_ext
5317 CFLAGS="$save_CFLAGS"
5318 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5319echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5320
5321 if test "$compiler_rtti_exceptions" = "yes"; then
5322 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5323 else
5324 no_builtin_flag=' -fno-builtin'
5325 fi
5326fi
5327
5328# See if the linker supports building shared libraries.
5329echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5330echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5331
5332allow_undefined_flag=
5333no_undefined_flag=
5334need_lib_prefix=unknown
5335need_version=unknown
5336# when you set need_version to no, make sure it does not cause -set_version
5337# flags to be left without arguments
5338archive_cmds=
5339archive_expsym_cmds=
5340old_archive_from_new_cmds=
5341old_archive_from_expsyms_cmds=
5342export_dynamic_flag_spec=
5343whole_archive_flag_spec=
5344thread_safe_flag_spec=
5345hardcode_into_libs=no
5346hardcode_libdir_flag_spec=
5347hardcode_libdir_separator=
5348hardcode_direct=no
5349hardcode_minus_L=no
5350hardcode_shlibpath_var=unsupported
5351runpath_var=
5352link_all_deplibs=unknown
5353always_export_symbols=no
5354export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5355# include_expsyms should be a list of space-separated symbols to be *always*
5356# included in the symbol list
5357include_expsyms=
5358# exclude_expsyms can be an egrep regular expression of symbols to exclude
5359# it will be wrapped by ` (' and `)$', so one must not match beginning or
5360# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5361# as well as any symbol that contains `d'.
5362exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5363# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5364# platforms (ab)use it in PIC code, but their linkers get confused if
5365# the symbol is explicitly referenced. Since portable code cannot
5366# rely on this symbol name, it's probably fine to never include it in
5367# preloaded symbol tables.
5368extract_expsyms_cmds=
5369
5370case $host_os in
5371cygwin* | mingw* | pw32*)
5372 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5373 # When not using gcc, we currently assume that we are using
5374 # Microsoft Visual C++.
5375 if test "$GCC" != yes; then
5376 with_gnu_ld=no
5377 fi
5378 ;;
5379openbsd*)
5380 with_gnu_ld=no
5381 ;;
5382esac
5383
5384ld_shlibs=yes
5385if test "$with_gnu_ld" = yes; then
5386 # If archive_cmds runs LD, not CC, wlarc should be empty
5387 wlarc='${wl}'
5388
5389 # See if GNU ld supports shared libraries.
5390 case $host_os in
5391 aix3* | aix4* | aix5*)
5392 # On AIX, the GNU linker is very broken
5393 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5394 ld_shlibs=no
5395 cat <<EOF 1>&2
5396
5397*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5398*** to be unable to reliably create shared libraries on AIX.
5399*** Therefore, libtool is disabling shared libraries support. If you
5400*** really care for shared libraries, you may want to modify your PATH
5401*** so that a non-GNU linker is found, and then restart.
5402
5403EOF
5404 ;;
5405
5406 amigaos*)
5407 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)'
5408 hardcode_libdir_flag_spec='-L$libdir'
5409 hardcode_minus_L=yes
5410
5411 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5412 # that the semantics of dynamic libraries on AmigaOS, at least up
5413 # to version 4, is to share data among multiple programs linked
5414 # with the same dynamic library. Since this doesn't match the
5415 # behavior of shared libraries on other platforms, we can use
5416 # them.
5417 ld_shlibs=no
5418 ;;
5419
5420 beos*)
5421 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5422 allow_undefined_flag=unsupported
5423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5424 # support --undefined. This deserves some investigation. FIXME
5425 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5426 else
5427 ld_shlibs=no
5428 fi
5429 ;;
5430
5431 cygwin* | mingw* | pw32*)
5432 # hardcode_libdir_flag_spec is actually meaningless, as there is
5433 # no search path for DLLs.
5434 hardcode_libdir_flag_spec='-L$libdir'
5435 allow_undefined_flag=unsupported
5436 always_export_symbols=yes
5437
5438 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5439 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5440 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5441 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5442 else $CC -o impgen impgen.c ; fi)~
5443 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5444
5445 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5446
5447 # cygwin and mingw dlls have different entry points and sets of symbols
5448 # to exclude.
5449 # FIXME: what about values for MSVC?
5450 dll_entry=__cygwin_dll_entry@12
5451 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5452 case $host_os in
5453 mingw*)
5454 # mingw values
5455 dll_entry=_DllMainCRTStartup@12
5456 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5457 ;;
5458 esac
5459
5460 # mingw and cygwin differ, and it's simplest to just exclude the union
5461 # of the two symbol sets.
5462 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5463
5464 # recent cygwin and mingw systems supply a stub DllMain which the user
5465 # can override, but on older systems we have to supply one (in ltdll.c)
5466 if test "x$lt_cv_need_dllmain" = "xyes"; then
5467 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5468 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~
5469 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5470 else
5471 ltdll_obj=
5472 ltdll_cmds=
5473 fi
5474
5475 # Extract the symbol export list from an `--export-all' def file,
5476 # then regenerate the def file from the symbol export list, so that
5477 # the compiled dll only exports the symbol export list.
5478 # Be careful not to strip the DATA tag left be newer dlltools.
5479 export_symbols_cmds="$ltdll_cmds"'
5480 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5481 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5482
5483 # If the export-symbols file already is a .def file (1st line
5484 # is EXPORTS), use it as is.
5485 # If DATA tags from a recent dlltool are present, honour them!
jjako08d331d2003-10-13 20:33:30 +00005486 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
jjako286bc982003-01-28 23:17:50 +00005487 cp $export_symbols $output_objdir/$soname-def;
5488 else
5489 echo EXPORTS > $output_objdir/$soname-def;
5490 _lt_hint=1;
5491 cat $export_symbols | while read symbol; do
5492 set dummy \$symbol;
5493 case \$# in
5494 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
jjako08d331d2003-10-13 20:33:30 +00005495 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
jjako286bc982003-01-28 23:17:50 +00005496 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5497 esac;
5498 _lt_hint=`expr 1 + \$_lt_hint`;
5499 done;
5500 fi~
5501 '"$ltdll_cmds"'
5502 $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~
5503 $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~
5504 $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~
5505 $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~
5506 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5507 ;;
5508
5509 netbsd*)
5510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5511 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5512 wlarc=
5513 else
5514 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5515 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5516 fi
5517 ;;
5518
5519 solaris* | sysv5*)
5520 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5521 ld_shlibs=no
5522 cat <<EOF 1>&2
5523
5524*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5525*** create shared libraries on Solaris systems. Therefore, libtool
5526*** is disabling shared libraries support. We urge you to upgrade GNU
5527*** binutils to release 2.9.1 or newer. Another option is to modify
5528*** your PATH or compiler configuration so that the native linker is
5529*** used, and then restart.
5530
5531EOF
5532 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5535 else
5536 ld_shlibs=no
5537 fi
5538 ;;
5539
5540 sunos4*)
5541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5542 wlarc=
5543 hardcode_direct=yes
5544 hardcode_shlibpath_var=no
5545 ;;
5546
5547 *)
5548 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5551 else
5552 ld_shlibs=no
5553 fi
5554 ;;
5555 esac
5556
5557 if test "$ld_shlibs" = yes; then
5558 runpath_var=LD_RUN_PATH
5559 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5560 export_dynamic_flag_spec='${wl}--export-dynamic'
5561 case $host_os in
5562 cygwin* | mingw* | pw32*)
5563 # dlltool doesn't understand --whole-archive et. al.
5564 whole_archive_flag_spec=
5565 ;;
5566 *)
5567 # ancient GNU ld didn't support --whole-archive et. al.
5568 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5569 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5570 else
5571 whole_archive_flag_spec=
5572 fi
5573 ;;
5574 esac
5575 fi
5576else
5577 # PORTME fill in a description of your system's linker (not GNU ld)
5578 case $host_os in
5579 aix3*)
5580 allow_undefined_flag=unsupported
5581 always_export_symbols=yes
5582 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'
5583 # Note: this linker hardcodes the directories in LIBPATH if there
5584 # are no directories specified by -L.
5585 hardcode_minus_L=yes
5586 if test "$GCC" = yes && test -z "$link_static_flag"; then
5587 # Neither direct hardcoding nor static linking is supported with a
5588 # broken collect2.
5589 hardcode_direct=unsupported
5590 fi
5591 ;;
5592
5593 aix4* | aix5*)
5594 if test "$host_cpu" = ia64; then
5595 # On IA64, the linker does run time linking by default, so we don't
5596 # have to do anything special.
5597 aix_use_runtimelinking=no
5598 exp_sym_flag='-Bexport'
5599 no_entry_flag=""
5600 else
5601 aix_use_runtimelinking=no
5602
5603 # Test if we are trying to use run time linking or normal
5604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5605 # need to do runtime linking.
5606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5607 for ld_flag in $LDFLAGS; do
jjako08d331d2003-10-13 20:33:30 +00005608 case $ld_flag in
5609 *-brtl*)
jjako286bc982003-01-28 23:17:50 +00005610 aix_use_runtimelinking=yes
5611 break
jjako08d331d2003-10-13 20:33:30 +00005612 ;;
5613 esac
jjako286bc982003-01-28 23:17:50 +00005614 done
5615 esac
5616
5617 exp_sym_flag='-bexport'
5618 no_entry_flag='-bnoentry'
5619 fi
5620
5621 # When large executables or shared objects are built, AIX ld can
5622 # have problems creating the table of contents. If linking a library
5623 # or program results in "error TOC overflow" add -mminimal-toc to
5624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5626
5627 hardcode_direct=yes
5628 archive_cmds=''
5629 hardcode_libdir_separator=':'
5630 if test "$GCC" = yes; then
5631 case $host_os in aix4.[012]|aix4.[012].*)
5632 collect2name=`${CC} -print-prog-name=collect2`
5633 if test -f "$collect2name" && \
5634 strings "$collect2name" | grep resolve_lib_name >/dev/null
5635 then
5636 # We have reworked collect2
5637 hardcode_direct=yes
5638 else
5639 # We have old collect2
5640 hardcode_direct=unsupported
5641 # It fails to find uninstalled libraries when the uninstalled
5642 # path is not listed in the libpath. Setting hardcode_minus_L
5643 # to unsupported forces relinking
5644 hardcode_minus_L=yes
5645 hardcode_libdir_flag_spec='-L$libdir'
5646 hardcode_libdir_separator=
5647 fi
5648 esac
5649
5650 shared_flag='-shared'
5651 else
5652 # not using gcc
5653 if test "$host_cpu" = ia64; then
5654 shared_flag='${wl}-G'
5655 else
5656 if test "$aix_use_runtimelinking" = yes; then
5657 shared_flag='${wl}-G'
5658 else
5659 shared_flag='${wl}-bM:SRE'
5660 fi
5661 fi
5662 fi
5663
5664 # It seems that -bexpall can do strange things, so it is better to
5665 # generate a list of symbols to export.
5666 always_export_symbols=yes
5667 if test "$aix_use_runtimelinking" = yes; then
5668 # Warning - without using the other runtime loading flags (-brtl),
5669 # -berok will link without error, but may produce a broken library.
5670 allow_undefined_flag='-berok'
5671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5672 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"
5673 else
5674 if test "$host_cpu" = ia64; then
5675 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5676 allow_undefined_flag="-z nodefs"
5677 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"
5678 else
5679 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5680 # Warning - without using the other run time loading flags,
5681 # -berok will link without error, but may produce a broken library.
5682 allow_undefined_flag='${wl}-berok'
5683 # This is a bit strange, but is similar to how AIX traditionally builds
5684 # it's shared libraries.
5685 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'
5686 fi
5687 fi
5688 ;;
5689
5690 amigaos*)
5691 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)'
5692 hardcode_libdir_flag_spec='-L$libdir'
5693 hardcode_minus_L=yes
5694 # see comment about different semantics on the GNU ld section
5695 ld_shlibs=no
5696 ;;
5697
5698 cygwin* | mingw* | pw32*)
5699 # When not using gcc, we currently assume that we are using
5700 # Microsoft Visual C++.
5701 # hardcode_libdir_flag_spec is actually meaningless, as there is
5702 # no search path for DLLs.
5703 hardcode_libdir_flag_spec=' '
5704 allow_undefined_flag=unsupported
5705 # Tell ltmain to make .lib files, not .a files.
5706 libext=lib
5707 # FIXME: Setting linknames here is a bad hack.
5708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5709 # The linker will automatically build a .lib file if we build a DLL.
5710 old_archive_from_new_cmds='true'
5711 # FIXME: Should let the user specify the lib program.
5712 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5713 fix_srcfile_path='`cygpath -w "$srcfile"`'
5714 ;;
5715
5716 darwin* | rhapsody*)
5717 case "$host_os" in
5718 rhapsody* | darwin1.[012])
5719 allow_undefined_flag='-undefined suppress'
5720 ;;
5721 *) # Darwin 1.3 on
5722 allow_undefined_flag='-flat_namespace -undefined suppress'
5723 ;;
5724 esac
5725 # FIXME: Relying on posixy $() will cause problems for
5726 # cross-compilation, but unfortunately the echo tests do not
jjako08d331d2003-10-13 20:33:30 +00005727 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5728 # `"' quotes if we put them in here... so don't!
5729 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 +00005730 # We need to add '_' to the symbols in $export_symbols first
5731 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5732 hardcode_direct=yes
5733 hardcode_shlibpath_var=no
5734 whole_archive_flag_spec='-all_load $convenience'
5735 ;;
5736
5737 freebsd1*)
5738 ld_shlibs=no
5739 ;;
5740
5741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5742 # support. Future versions do this automatically, but an explicit c++rt0.o
5743 # does not break anything, and helps significantly (at the cost of a little
5744 # extra space).
5745 freebsd2.2*)
5746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5747 hardcode_libdir_flag_spec='-R$libdir'
5748 hardcode_direct=yes
5749 hardcode_shlibpath_var=no
5750 ;;
5751
5752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5753 freebsd2*)
5754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5755 hardcode_direct=yes
5756 hardcode_minus_L=yes
5757 hardcode_shlibpath_var=no
5758 ;;
5759
5760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5761 freebsd*)
5762 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5763 hardcode_libdir_flag_spec='-R$libdir'
5764 hardcode_direct=yes
5765 hardcode_shlibpath_var=no
5766 ;;
5767
5768 hpux9* | hpux10* | hpux11*)
5769 case $host_os in
5770 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' ;;
5771 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5772 esac
5773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5774 hardcode_libdir_separator=:
5775 hardcode_direct=yes
5776 hardcode_minus_L=yes # Not in the search PATH, but as the default
5777 # location of the library.
5778 export_dynamic_flag_spec='${wl}-E'
5779 ;;
5780
jjako08d331d2003-10-13 20:33:30 +00005781 irix5* | irix6* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00005782 if test "$GCC" = yes; then
5783 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 +00005784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
jjako286bc982003-01-28 23:17:50 +00005785 else
5786 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 +00005787 hardcode_libdir_flag_spec='-rpath $libdir'
jjako286bc982003-01-28 23:17:50 +00005788 fi
jjako286bc982003-01-28 23:17:50 +00005789 hardcode_libdir_separator=:
5790 link_all_deplibs=yes
5791 ;;
5792
5793 netbsd*)
5794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5796 else
5797 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5798 fi
5799 hardcode_libdir_flag_spec='-R$libdir'
5800 hardcode_direct=yes
5801 hardcode_shlibpath_var=no
5802 ;;
5803
5804 newsos6)
5805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5806 hardcode_direct=yes
5807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5808 hardcode_libdir_separator=:
5809 hardcode_shlibpath_var=no
5810 ;;
5811
5812 openbsd*)
5813 hardcode_direct=yes
5814 hardcode_shlibpath_var=no
5815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
jjako08d331d2003-10-13 20:33:30 +00005816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
jjako286bc982003-01-28 23:17:50 +00005817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5818 export_dynamic_flag_spec='${wl}-E'
5819 else
5820 case "$host_os" in
5821 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5823 hardcode_libdir_flag_spec='-R$libdir'
5824 ;;
5825 *)
jjako08d331d2003-10-13 20:33:30 +00005826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
jjako286bc982003-01-28 23:17:50 +00005827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5828 ;;
5829 esac
5830 fi
5831 ;;
5832
5833 os2*)
5834 hardcode_libdir_flag_spec='-L$libdir'
5835 hardcode_minus_L=yes
5836 allow_undefined_flag=unsupported
5837 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'
5838 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5839 ;;
5840
5841 osf3*)
5842 if test "$GCC" = yes; then
5843 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5844 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'
5845 else
5846 allow_undefined_flag=' -expect_unresolved \*'
5847 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'
5848 fi
5849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5850 hardcode_libdir_separator=:
5851 ;;
5852
5853 osf4* | osf5*) # as osf3* with the addition of -msym flag
5854 if test "$GCC" = yes; then
5855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5856 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'
5857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5858 else
5859 allow_undefined_flag=' -expect_unresolved \*'
5860 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'
5861 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5862 $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'
5863
5864 #Both c and cxx compiler support -rpath directly
5865 hardcode_libdir_flag_spec='-rpath $libdir'
5866 fi
5867 hardcode_libdir_separator=:
5868 ;;
5869
5870 sco3.2v5*)
5871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5872 hardcode_shlibpath_var=no
5873 runpath_var=LD_RUN_PATH
5874 hardcode_runpath_var=yes
5875 export_dynamic_flag_spec='${wl}-Bexport'
5876 ;;
5877
5878 solaris*)
5879 # gcc --version < 3.0 without binutils cannot create self contained
5880 # shared libraries reliably, requiring libgcc.a to resolve some of
5881 # the object symbols generated in some cases. Libraries that use
5882 # assert need libgcc.a to resolve __eprintf, for example. Linking
5883 # a copy of libgcc.a into every shared library to guarantee resolving
5884 # such symbols causes other problems: According to Tim Van Holder
5885 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5886 # (to the application) exception stack for one thing.
5887 no_undefined_flag=' -z defs'
5888 if test "$GCC" = yes; then
5889 case `$CC --version 2>/dev/null` in
5890 [12].*)
5891 cat <<EOF 1>&2
5892
5893*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5894*** create self contained shared libraries on Solaris systems, without
5895*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5896*** -no-undefined support, which will at least allow you to build shared
5897*** libraries. However, you may find that when you link such libraries
5898*** into an application without using GCC, you have to manually add
5899*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5900*** upgrade to a newer version of GCC. Another option is to rebuild your
5901*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5902
5903EOF
5904 no_undefined_flag=
5905 ;;
5906 esac
5907 fi
5908 # $CC -shared without GNU ld will not create a library from C++
5909 # object files and a static libstdc++, better avoid it by now
5910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5911 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5913 hardcode_libdir_flag_spec='-R$libdir'
5914 hardcode_shlibpath_var=no
5915 case $host_os in
5916 solaris2.[0-5] | solaris2.[0-5].*) ;;
5917 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5919 esac
5920 link_all_deplibs=yes
5921 ;;
5922
5923 sunos4*)
5924 if test "x$host_vendor" = xsequent; then
5925 # Use $CC to link under sequent, because it throws in some extra .o
5926 # files that make .init and .fini sections work.
5927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5928 else
5929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5930 fi
5931 hardcode_libdir_flag_spec='-L$libdir'
5932 hardcode_direct=yes
5933 hardcode_minus_L=yes
5934 hardcode_shlibpath_var=no
5935 ;;
5936
5937 sysv4)
jjako08d331d2003-10-13 20:33:30 +00005938 case $host_vendor in
5939 sni)
5940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5941 hardcode_direct=yes # is this really true???
5942 ;;
5943 siemens)
5944 ## LD is ld it makes a PLAMLIB
5945 ## CC just makes a GrossModule.
5946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5947 reload_cmds='$CC -r -o $output$reload_objs'
5948 hardcode_direct=no
5949 ;;
5950 motorola)
5951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5953 ;;
5954 esac
jjako286bc982003-01-28 23:17:50 +00005955 runpath_var='LD_RUN_PATH'
5956 hardcode_shlibpath_var=no
5957 ;;
5958
5959 sysv4.3*)
5960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5961 hardcode_shlibpath_var=no
5962 export_dynamic_flag_spec='-Bexport'
5963 ;;
5964
5965 sysv5*)
5966 no_undefined_flag=' -z text'
5967 # $CC -shared without GNU ld will not create a library from C++
5968 # object files and a static libstdc++, better avoid it by now
5969 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5970 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5971 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5972 hardcode_libdir_flag_spec=
5973 hardcode_shlibpath_var=no
5974 runpath_var='LD_RUN_PATH'
5975 ;;
5976
5977 uts4*)
5978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5979 hardcode_libdir_flag_spec='-L$libdir'
5980 hardcode_shlibpath_var=no
5981 ;;
5982
5983 dgux*)
5984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985 hardcode_libdir_flag_spec='-L$libdir'
5986 hardcode_shlibpath_var=no
5987 ;;
5988
5989 sysv4*MP*)
5990 if test -d /usr/nec; then
5991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5992 hardcode_shlibpath_var=no
5993 runpath_var=LD_RUN_PATH
5994 hardcode_runpath_var=yes
5995 ld_shlibs=yes
5996 fi
5997 ;;
5998
5999 sysv4.2uw2*)
6000 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6001 hardcode_direct=yes
6002 hardcode_minus_L=no
6003 hardcode_shlibpath_var=no
6004 hardcode_runpath_var=yes
6005 runpath_var=LD_RUN_PATH
6006 ;;
6007
6008 sysv5uw7* | unixware7*)
6009 no_undefined_flag='${wl}-z ${wl}text'
6010 if test "$GCC" = yes; then
6011 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6012 else
6013 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6014 fi
6015 runpath_var='LD_RUN_PATH'
6016 hardcode_shlibpath_var=no
6017 ;;
6018
6019 *)
6020 ld_shlibs=no
6021 ;;
6022 esac
6023fi
6024echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6025echo "${ECHO_T}$ld_shlibs" >&6
6026test "$ld_shlibs" = no && can_build_shared=no
6027
6028# Check hardcoding attributes.
6029echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6030echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6031hardcode_action=
6032if test -n "$hardcode_libdir_flag_spec" || \
6033 test -n "$runpath_var"; then
6034
6035 # We can hardcode non-existant directories.
6036 if test "$hardcode_direct" != no &&
6037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6038 # have to relink, otherwise we might link with an installed library
6039 # when we should be linking with a yet-to-be-installed one
6040 ## test "$hardcode_shlibpath_var" != no &&
6041 test "$hardcode_minus_L" != no; then
6042 # Linking always hardcodes the temporary library directory.
6043 hardcode_action=relink
6044 else
6045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6046 hardcode_action=immediate
6047 fi
6048else
6049 # We cannot hardcode anything, or else we can only hardcode existing
6050 # directories.
6051 hardcode_action=unsupported
6052fi
6053echo "$as_me:$LINENO: result: $hardcode_action" >&5
6054echo "${ECHO_T}$hardcode_action" >&6
6055
6056striplib=
6057old_striplib=
6058echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6059echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6060if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6061 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6062 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
6065else
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068fi
6069
6070reload_cmds='$LD$reload_flag -o $output$reload_objs'
6071test -z "$deplibs_check_method" && deplibs_check_method=unknown
6072
6073# PORTME Fill in your ld.so characteristics
6074echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6076library_names_spec=
6077libname_spec='lib$name'
6078soname_spec=
6079postinstall_cmds=
6080postuninstall_cmds=
6081finish_cmds=
6082finish_eval=
6083shlibpath_var=
6084shlibpath_overrides_runpath=unknown
6085version_type=none
6086dynamic_linker="$host_os ld.so"
6087sys_lib_dlsearch_path_spec="/lib /usr/lib"
6088sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6089
6090case $host_os in
6091aix3*)
6092 version_type=linux
6093 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6094 shlibpath_var=LIBPATH
6095
6096 # AIX has no versioning support, so we append a major version to the name.
6097 soname_spec='${libname}${release}.so$major'
6098 ;;
6099
6100aix4* | aix5*)
6101 version_type=linux
jjako08d331d2003-10-13 20:33:30 +00006102 need_lib_prefix=no
6103 need_version=no
6104 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00006105 if test "$host_cpu" = ia64; then
6106 # AIX 5 supports IA64
6107 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6108 shlibpath_var=LD_LIBRARY_PATH
6109 else
6110 # With GCC up to 2.95.x, collect2 would create an import file
6111 # for dependence libraries. The import file would start with
6112 # the line `#! .'. This would cause the generated library to
6113 # depend on `.', always an invalid library. This was fixed in
6114 # development snapshots of GCC prior to 3.0.
6115 case $host_os in
6116 aix4 | aix4.[01] | aix4.[01].*)
6117 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6118 echo ' yes '
6119 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6120 :
6121 else
6122 can_build_shared=no
6123 fi
6124 ;;
6125 esac
6126 # AIX (on Power*) has no versioning support, so currently we can
6127 # not hardcode correct soname into executable. Probably we can
6128 # add versioning support to collect2, so additional links can
6129 # be useful in future.
6130 if test "$aix_use_runtimelinking" = yes; then
6131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6132 # instead of lib<name>.a to let people know that these are not
6133 # typical AIX shared libraries.
6134 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6135 else
6136 # We preserve .a as extension for shared libraries through AIX4.2
6137 # and later when we are not doing run time linking.
6138 library_names_spec='${libname}${release}.a $libname.a'
6139 soname_spec='${libname}${release}.so$major'
6140 fi
6141 shlibpath_var=LIBPATH
6142 fi
jjako08d331d2003-10-13 20:33:30 +00006143 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00006144 ;;
6145
6146amigaos*)
6147 library_names_spec='$libname.ixlibrary $libname.a'
6148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6149 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'
6150 ;;
6151
6152beos*)
6153 library_names_spec='${libname}.so'
6154 dynamic_linker="$host_os ld.so"
6155 shlibpath_var=LIBRARY_PATH
6156 ;;
6157
6158bsdi4*)
6159 version_type=linux
6160 need_version=no
6161 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6162 soname_spec='${libname}${release}.so$major'
6163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6164 shlibpath_var=LD_LIBRARY_PATH
6165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6167 export_dynamic_flag_spec=-rdynamic
6168 # the default ld.so.conf also contains /usr/contrib/lib and
6169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6170 # libtool to hard-code these into programs
6171 ;;
6172
6173cygwin* | mingw* | pw32*)
6174 version_type=windows
6175 need_version=no
6176 need_lib_prefix=no
6177 case $GCC,$host_os in
6178 yes,cygwin*)
6179 library_names_spec='$libname.dll.a'
6180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6181 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6182 dldir=$destdir/`dirname \$dlpath`~
6183 test -d \$dldir || mkdir -p \$dldir~
6184 $install_prog .libs/$dlname \$dldir/$dlname'
6185 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6186 dlpath=$dir/\$dldll~
6187 $rm \$dlpath'
6188 ;;
6189 yes,mingw*)
6190 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
jjako08d331d2003-10-13 20:33:30 +00006191 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 +00006192 ;;
6193 yes,pw32*)
6194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6195 ;;
6196 *)
6197 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6198 ;;
6199 esac
6200 dynamic_linker='Win32 ld.exe'
6201 # FIXME: first we should search . and the directory the executable is in
6202 shlibpath_var=PATH
6203 ;;
6204
6205darwin* | rhapsody*)
6206 dynamic_linker="$host_os dyld"
6207 version_type=darwin
6208 need_lib_prefix=no
6209 need_version=no
6210 # FIXME: Relying on posixy $() will cause problems for
6211 # cross-compilation, but unfortunately the echo tests do not
6212 # yet detect zsh echo's removal of \ escapes.
6213 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)'
6214 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6215 shlibpath_overrides_runpath=yes
6216 shlibpath_var=DYLD_LIBRARY_PATH
6217 ;;
6218
6219freebsd1*)
6220 dynamic_linker=no
6221 ;;
6222
6223freebsd*)
6224 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6225 version_type=freebsd-$objformat
6226 case $version_type in
6227 freebsd-elf*)
6228 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6229 need_version=no
6230 need_lib_prefix=no
6231 ;;
6232 freebsd-*)
6233 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6234 need_version=yes
6235 ;;
6236 esac
6237 shlibpath_var=LD_LIBRARY_PATH
6238 case $host_os in
6239 freebsd2*)
6240 shlibpath_overrides_runpath=yes
6241 ;;
6242 *)
6243 shlibpath_overrides_runpath=no
6244 hardcode_into_libs=yes
6245 ;;
6246 esac
6247 ;;
6248
6249gnu*)
6250 version_type=linux
6251 need_lib_prefix=no
6252 need_version=no
6253 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6254 soname_spec='${libname}${release}.so$major'
6255 shlibpath_var=LD_LIBRARY_PATH
6256 hardcode_into_libs=yes
6257 ;;
6258
6259hpux9* | hpux10* | hpux11*)
6260 # Give a soname corresponding to the major version so that dld.sl refuses to
6261 # link against other versions.
6262 dynamic_linker="$host_os dld.sl"
6263 version_type=sunos
6264 need_lib_prefix=no
6265 need_version=no
6266 shlibpath_var=SHLIB_PATH
6267 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6268 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6269 soname_spec='${libname}${release}.sl$major'
6270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6271 postinstall_cmds='chmod 555 $lib'
6272 ;;
6273
jjako08d331d2003-10-13 20:33:30 +00006274irix5* | irix6* | nonstopux*)
6275 case $host_os in
6276 nonstopux*) version_type=nonstopux ;;
6277 *) version_type=irix ;;
6278 esac
jjako286bc982003-01-28 23:17:50 +00006279 need_lib_prefix=no
6280 need_version=no
6281 soname_spec='${libname}${release}.so$major'
6282 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6283 case $host_os in
jjako08d331d2003-10-13 20:33:30 +00006284 irix5* | nonstopux*)
jjako286bc982003-01-28 23:17:50 +00006285 libsuff= shlibsuff=
6286 ;;
6287 *)
6288 case $LD in # libtool.m4 will add one of these switches to LD
6289 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6290 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6291 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6292 *) libsuff= shlibsuff= libmagic=never-match;;
6293 esac
6294 ;;
6295 esac
6296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6297 shlibpath_overrides_runpath=no
6298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6300 ;;
6301
6302# No shared lib support for Linux oldld, aout, or coff.
6303linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6304 dynamic_linker=no
6305 ;;
6306
6307# This must be Linux ELF.
6308linux-gnu*)
6309 version_type=linux
6310 need_lib_prefix=no
6311 need_version=no
6312 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6313 soname_spec='${libname}${release}.so$major'
6314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6315 shlibpath_var=LD_LIBRARY_PATH
6316 shlibpath_overrides_runpath=no
6317 # This implies no fast_install, which is unacceptable.
6318 # Some rework will be needed to allow for fast_install
6319 # before this can be enabled.
6320 hardcode_into_libs=yes
6321
6322 # We used to test for /lib/ld.so.1 and disable shared libraries on
6323 # powerpc, because MkLinux only supported shared libraries with the
6324 # GNU dynamic linker. Since this was broken with cross compilers,
6325 # most powerpc-linux boxes support dynamic linking these days and
6326 # people can always --disable-shared, the test was removed, and we
6327 # assume the GNU/Linux dynamic linker is in use.
6328 dynamic_linker='GNU/Linux ld.so'
jjako08d331d2003-10-13 20:33:30 +00006329
6330 # Find out which ABI we are using (multilib Linux x86_64 hack).
6331 libsuff=
6332 case "$host_cpu" in
6333 x86_64*|s390x*)
jjako77edc822004-09-10 17:19:31 +00006334 echo '#line 6334 "configure"' > conftest.$ac_ext
jjako08d331d2003-10-13 20:33:30 +00006335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; then
6340 case `/usr/bin/file conftest.$ac_objext` in
6341 *64-bit*)
6342 libsuff=64
6343 ;;
6344 esac
6345 fi
6346 rm -rf conftest*
6347 ;;
6348 *)
6349 ;;
6350 esac
6351 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6352 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
jjako286bc982003-01-28 23:17:50 +00006353 ;;
6354
6355netbsd*)
6356 version_type=sunos
6357 need_lib_prefix=no
6358 need_version=no
6359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6360 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6362 dynamic_linker='NetBSD (a.out) ld.so'
6363 else
6364 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6365 soname_spec='${libname}${release}.so$major'
6366 dynamic_linker='NetBSD ld.elf_so'
6367 fi
6368 shlibpath_var=LD_LIBRARY_PATH
6369 shlibpath_overrides_runpath=yes
6370 hardcode_into_libs=yes
6371 ;;
6372
6373newsos6)
6374 version_type=linux
6375 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6376 shlibpath_var=LD_LIBRARY_PATH
6377 shlibpath_overrides_runpath=yes
6378 ;;
6379
6380openbsd*)
6381 version_type=sunos
6382 need_lib_prefix=no
6383 need_version=no
6384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6385 case "$host_os" in
6386 openbsd2.[89] | openbsd2.[89].*)
6387 shlibpath_overrides_runpath=no
6388 ;;
6389 *)
6390 shlibpath_overrides_runpath=yes
6391 ;;
6392 esac
6393 else
6394 shlibpath_overrides_runpath=yes
6395 fi
6396 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6398 shlibpath_var=LD_LIBRARY_PATH
6399 ;;
6400
6401os2*)
6402 libname_spec='$name'
6403 need_lib_prefix=no
6404 library_names_spec='$libname.dll $libname.a'
6405 dynamic_linker='OS/2 ld.exe'
6406 shlibpath_var=LIBPATH
6407 ;;
6408
6409osf3* | osf4* | osf5*)
6410 version_type=osf
6411 need_version=no
jjako08d331d2003-10-13 20:33:30 +00006412 soname_spec='${libname}${release}.so$major'
6413 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
jjako286bc982003-01-28 23:17:50 +00006414 shlibpath_var=LD_LIBRARY_PATH
6415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
jjako08d331d2003-10-13 20:33:30 +00006417 hardcode_into_libs=yes
jjako286bc982003-01-28 23:17:50 +00006418 ;;
6419
6420sco3.2v5*)
6421 version_type=osf
6422 soname_spec='${libname}${release}.so$major'
6423 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6424 shlibpath_var=LD_LIBRARY_PATH
6425 ;;
6426
6427solaris*)
6428 version_type=linux
6429 need_lib_prefix=no
6430 need_version=no
6431 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6432 soname_spec='${libname}${release}.so$major'
6433 shlibpath_var=LD_LIBRARY_PATH
6434 shlibpath_overrides_runpath=yes
6435 hardcode_into_libs=yes
6436 # ldd complains unless libraries are executable
6437 postinstall_cmds='chmod +x $lib'
6438 ;;
6439
6440sunos4*)
6441 version_type=sunos
6442 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6444 shlibpath_var=LD_LIBRARY_PATH
6445 shlibpath_overrides_runpath=yes
6446 if test "$with_gnu_ld" = yes; then
6447 need_lib_prefix=no
6448 fi
6449 need_version=yes
6450 ;;
6451
6452sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6453 version_type=linux
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6455 soname_spec='${libname}${release}.so$major'
6456 shlibpath_var=LD_LIBRARY_PATH
6457 case $host_vendor in
6458 sni)
6459 shlibpath_overrides_runpath=no
jjako08d331d2003-10-13 20:33:30 +00006460 need_lib_prefix=no
6461 export_dynamic_flag_spec='${wl}-Blargedynsym'
6462 runpath_var=LD_RUN_PATH
6463 ;;
6464 siemens)
6465 need_lib_prefix=no
jjako286bc982003-01-28 23:17:50 +00006466 ;;
6467 motorola)
6468 need_lib_prefix=no
6469 need_version=no
6470 shlibpath_overrides_runpath=no
6471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6472 ;;
6473 esac
6474 ;;
6475
6476uts4*)
6477 version_type=linux
6478 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6479 soname_spec='${libname}${release}.so$major'
6480 shlibpath_var=LD_LIBRARY_PATH
6481 ;;
6482
6483dgux*)
6484 version_type=linux
6485 need_lib_prefix=no
6486 need_version=no
6487 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6488 soname_spec='${libname}${release}.so$major'
6489 shlibpath_var=LD_LIBRARY_PATH
6490 ;;
6491
6492sysv4*MP*)
6493 if test -d /usr/nec ;then
6494 version_type=linux
6495 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6496 soname_spec='$libname.so.$major'
6497 shlibpath_var=LD_LIBRARY_PATH
6498 fi
6499 ;;
6500
6501*)
6502 dynamic_linker=no
6503 ;;
6504esac
6505echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6506echo "${ECHO_T}$dynamic_linker" >&6
6507test "$dynamic_linker" = no && can_build_shared=no
6508
6509# Report the final consequences.
6510echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6511echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6512echo "$as_me:$LINENO: result: $can_build_shared" >&5
6513echo "${ECHO_T}$can_build_shared" >&6
6514
6515echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6516echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6517test "$can_build_shared" = "no" && enable_shared=no
6518
6519# On AIX, shared libraries and static libraries use the same namespace, and
6520# are all built from PIC.
6521case "$host_os" in
6522aix3*)
6523 test "$enable_shared" = yes && enable_static=no
6524 if test -n "$RANLIB"; then
6525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6526 postinstall_cmds='$RANLIB $lib'
6527 fi
6528 ;;
6529
6530aix4*)
6531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6532 test "$enable_shared" = yes && enable_static=no
6533 fi
6534 ;;
6535esac
6536echo "$as_me:$LINENO: result: $enable_shared" >&5
6537echo "${ECHO_T}$enable_shared" >&6
6538
6539echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6540echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6541# Make sure either enable_shared or enable_static is yes.
6542test "$enable_shared" = yes || enable_static=yes
6543echo "$as_me:$LINENO: result: $enable_static" >&5
6544echo "${ECHO_T}$enable_static" >&6
6545
6546if test "$hardcode_action" = relink; then
6547 # Fast installation is not supported
6548 enable_fast_install=no
6549elif test "$shlibpath_overrides_runpath" = yes ||
6550 test "$enable_shared" = no; then
6551 # Fast installation is not necessary
6552 enable_fast_install=needless
6553fi
6554
6555variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6556if test "$GCC" = yes; then
6557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6558fi
6559
6560if test "x$enable_dlopen" != xyes; then
6561 enable_dlopen=unknown
6562 enable_dlopen_self=unknown
6563 enable_dlopen_self_static=unknown
6564else
6565 lt_cv_dlopen=no
6566 lt_cv_dlopen_libs=
6567
6568 case $host_os in
6569 beos*)
6570 lt_cv_dlopen="load_add_on"
6571 lt_cv_dlopen_libs=
6572 lt_cv_dlopen_self=yes
6573 ;;
6574
6575 cygwin* | mingw* | pw32*)
6576 lt_cv_dlopen="LoadLibrary"
6577 lt_cv_dlopen_libs=
6578 ;;
6579
6580 *)
6581 echo "$as_me:$LINENO: checking for shl_load" >&5
6582echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6583if test "${ac_cv_func_shl_load+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 cat >conftest.$ac_ext <<_ACEOF
6587#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006588/* confdefs.h. */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006593/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00006594 which can conflict with char shl_load (); below.
6595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6596 <limits.h> exists even on freestanding compilers. */
6597#ifdef __STDC__
6598# include <limits.h>
6599#else
6600# include <assert.h>
6601#endif
jjako286bc982003-01-28 23:17:50 +00006602/* Override any gcc2 internal prototype to avoid an error. */
6603#ifdef __cplusplus
6604extern "C"
jjako08d331d2003-10-13 20:33:30 +00006605{
jjako286bc982003-01-28 23:17:50 +00006606#endif
6607/* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6609char shl_load ();
jjako286bc982003-01-28 23:17:50 +00006610/* The GNU C library defines this for functions which it implements
6611 to always fail with ENOSYS. Some functions are actually named
6612 something starting with __ and the normal name is an alias. */
6613#if defined (__stub_shl_load) || defined (__stub___shl_load)
6614choke me
6615#else
jjako08d331d2003-10-13 20:33:30 +00006616char (*f) () = shl_load;
6617#endif
6618#ifdef __cplusplus
6619}
jjako286bc982003-01-28 23:17:50 +00006620#endif
6621
jjako08d331d2003-10-13 20:33:30 +00006622int
6623main ()
6624{
6625return f != shl_load;
jjako286bc982003-01-28 23:17:50 +00006626 ;
6627 return 0;
6628}
6629_ACEOF
6630rm -f conftest.$ac_objext conftest$ac_exeext
6631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6632 (eval $ac_link) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try='test -s conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_func_shl_load=yes
6643else
6644 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006645sed 's/^/| /' conftest.$ac_ext >&5
6646
jjako286bc982003-01-28 23:17:50 +00006647ac_cv_func_shl_load=no
6648fi
6649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6650fi
6651echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6652echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6653if test $ac_cv_func_shl_load = yes; then
6654 lt_cv_dlopen="shl_load"
6655else
6656 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6657echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6658if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 ac_check_lib_save_LIBS=$LIBS
6662LIBS="-ldld $LIBS"
6663cat >conftest.$ac_ext <<_ACEOF
6664#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006665/* confdefs.h. */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006670
6671/* Override any gcc2 internal prototype to avoid an error. */
6672#ifdef __cplusplus
6673extern "C"
6674#endif
6675/* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677char shl_load ();
jjako286bc982003-01-28 23:17:50 +00006678int
6679main ()
6680{
6681shl_load ();
6682 ;
6683 return 0;
6684}
6685_ACEOF
6686rm -f conftest.$ac_objext conftest$ac_exeext
6687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
6692 { ac_try='test -s conftest$ac_exeext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 (eval $ac_try) 2>&5
6695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 ac_cv_lib_dld_shl_load=yes
6699else
6700 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006701sed 's/^/| /' conftest.$ac_ext >&5
6702
jjako286bc982003-01-28 23:17:50 +00006703ac_cv_lib_dld_shl_load=no
6704fi
6705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6706LIBS=$ac_check_lib_save_LIBS
6707fi
6708echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6709echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6710if test $ac_cv_lib_dld_shl_load = yes; then
6711 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6712else
6713 echo "$as_me:$LINENO: checking for dlopen" >&5
6714echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6715if test "${ac_cv_func_dlopen+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 cat >conftest.$ac_ext <<_ACEOF
6719#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006720/* confdefs.h. */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006725/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00006726 which can conflict with char dlopen (); below.
6727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6728 <limits.h> exists even on freestanding compilers. */
6729#ifdef __STDC__
6730# include <limits.h>
6731#else
6732# include <assert.h>
6733#endif
jjako286bc982003-01-28 23:17:50 +00006734/* Override any gcc2 internal prototype to avoid an error. */
6735#ifdef __cplusplus
6736extern "C"
jjako08d331d2003-10-13 20:33:30 +00006737{
jjako286bc982003-01-28 23:17:50 +00006738#endif
6739/* We use char because int might match the return type of a gcc2
6740 builtin and then its argument prototype would still apply. */
6741char dlopen ();
jjako286bc982003-01-28 23:17:50 +00006742/* The GNU C library defines this for functions which it implements
6743 to always fail with ENOSYS. Some functions are actually named
6744 something starting with __ and the normal name is an alias. */
6745#if defined (__stub_dlopen) || defined (__stub___dlopen)
6746choke me
6747#else
jjako08d331d2003-10-13 20:33:30 +00006748char (*f) () = dlopen;
6749#endif
6750#ifdef __cplusplus
6751}
jjako286bc982003-01-28 23:17:50 +00006752#endif
6753
jjako08d331d2003-10-13 20:33:30 +00006754int
6755main ()
6756{
6757return f != dlopen;
jjako286bc982003-01-28 23:17:50 +00006758 ;
6759 return 0;
6760}
6761_ACEOF
6762rm -f conftest.$ac_objext conftest$ac_exeext
6763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -s conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_func_dlopen=yes
6775else
6776 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006777sed 's/^/| /' conftest.$ac_ext >&5
6778
jjako286bc982003-01-28 23:17:50 +00006779ac_cv_func_dlopen=no
6780fi
6781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6782fi
6783echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6784echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6785if test $ac_cv_func_dlopen = yes; then
6786 lt_cv_dlopen="dlopen"
6787else
6788 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6789echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6790if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793 ac_check_lib_save_LIBS=$LIBS
6794LIBS="-ldl $LIBS"
6795cat >conftest.$ac_ext <<_ACEOF
6796#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006797/* confdefs.h. */
6798_ACEOF
6799cat confdefs.h >>conftest.$ac_ext
6800cat >>conftest.$ac_ext <<_ACEOF
6801/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006802
6803/* Override any gcc2 internal prototype to avoid an error. */
6804#ifdef __cplusplus
6805extern "C"
6806#endif
6807/* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6809char dlopen ();
jjako286bc982003-01-28 23:17:50 +00006810int
6811main ()
6812{
6813dlopen ();
6814 ;
6815 return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext conftest$ac_exeext
6819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_lib_dl_dlopen=yes
6831else
6832 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006833sed 's/^/| /' conftest.$ac_ext >&5
6834
jjako286bc982003-01-28 23:17:50 +00006835ac_cv_lib_dl_dlopen=no
6836fi
6837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838LIBS=$ac_check_lib_save_LIBS
6839fi
6840echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6842if test $ac_cv_lib_dl_dlopen = yes; then
6843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6844else
6845 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6846echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6847if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 ac_check_lib_save_LIBS=$LIBS
6851LIBS="-lsvld $LIBS"
6852cat >conftest.$ac_ext <<_ACEOF
6853#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006854/* confdefs.h. */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006859
6860/* Override any gcc2 internal prototype to avoid an error. */
6861#ifdef __cplusplus
6862extern "C"
6863#endif
6864/* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6866char dlopen ();
jjako286bc982003-01-28 23:17:50 +00006867int
6868main ()
6869{
6870dlopen ();
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875rm -f conftest.$ac_objext conftest$ac_exeext
6876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_lib_svld_dlopen=yes
6888else
6889 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006890sed 's/^/| /' conftest.$ac_ext >&5
6891
jjako286bc982003-01-28 23:17:50 +00006892ac_cv_lib_svld_dlopen=no
6893fi
6894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6895LIBS=$ac_check_lib_save_LIBS
6896fi
6897echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6898echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6899if test $ac_cv_lib_svld_dlopen = yes; then
6900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6901else
6902 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6903echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6904if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 ac_check_lib_save_LIBS=$LIBS
6908LIBS="-ldld $LIBS"
6909cat >conftest.$ac_ext <<_ACEOF
6910#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00006911/* confdefs.h. */
6912_ACEOF
6913cat confdefs.h >>conftest.$ac_ext
6914cat >>conftest.$ac_ext <<_ACEOF
6915/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00006916
6917/* Override any gcc2 internal prototype to avoid an error. */
6918#ifdef __cplusplus
6919extern "C"
6920#endif
6921/* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6923char dld_link ();
jjako286bc982003-01-28 23:17:50 +00006924int
6925main ()
6926{
6927dld_link ();
6928 ;
6929 return 0;
6930}
6931_ACEOF
6932rm -f conftest.$ac_objext conftest$ac_exeext
6933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934 (eval $ac_link) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest$ac_exeext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_cv_lib_dld_dld_link=yes
6945else
6946 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00006947sed 's/^/| /' conftest.$ac_ext >&5
6948
jjako286bc982003-01-28 23:17:50 +00006949ac_cv_lib_dld_dld_link=no
6950fi
6951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6952LIBS=$ac_check_lib_save_LIBS
6953fi
6954echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6955echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6956if test $ac_cv_lib_dld_dld_link = yes; then
6957 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6958fi
6959
6960
6961fi
6962
6963
6964fi
6965
6966
6967fi
6968
6969
6970fi
6971
6972
6973fi
6974
6975 ;;
6976 esac
6977
6978 if test "x$lt_cv_dlopen" != xno; then
6979 enable_dlopen=yes
6980 else
6981 enable_dlopen=no
6982 fi
6983
6984 case $lt_cv_dlopen in
6985 dlopen)
6986 save_CPPFLAGS="$CPPFLAGS"
6987 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6988
6989 save_LDFLAGS="$LDFLAGS"
6990 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6991
6992 save_LIBS="$LIBS"
6993 LIBS="$lt_cv_dlopen_libs $LIBS"
6994
6995 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6996echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6997if test "${lt_cv_dlopen_self+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 if test "$cross_compiling" = yes; then :
7001 lt_cv_dlopen_self=cross
7002else
7003 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7004 lt_status=$lt_dlunknown
7005 cat > conftest.$ac_ext <<EOF
jjako77edc822004-09-10 17:19:31 +00007006#line 7006 "configure"
jjako286bc982003-01-28 23:17:50 +00007007#include "confdefs.h"
7008
7009#if HAVE_DLFCN_H
7010#include <dlfcn.h>
7011#endif
7012
7013#include <stdio.h>
7014
7015#ifdef RTLD_GLOBAL
7016# define LT_DLGLOBAL RTLD_GLOBAL
7017#else
7018# ifdef DL_GLOBAL
7019# define LT_DLGLOBAL DL_GLOBAL
7020# else
7021# define LT_DLGLOBAL 0
7022# endif
7023#endif
7024
7025/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7026 find out it does not work in some platform. */
7027#ifndef LT_DLLAZY_OR_NOW
7028# ifdef RTLD_LAZY
7029# define LT_DLLAZY_OR_NOW RTLD_LAZY
7030# else
7031# ifdef DL_LAZY
7032# define LT_DLLAZY_OR_NOW DL_LAZY
7033# else
7034# ifdef RTLD_NOW
7035# define LT_DLLAZY_OR_NOW RTLD_NOW
7036# else
7037# ifdef DL_NOW
7038# define LT_DLLAZY_OR_NOW DL_NOW
7039# else
7040# define LT_DLLAZY_OR_NOW 0
7041# endif
7042# endif
7043# endif
7044# endif
7045#endif
7046
7047#ifdef __cplusplus
7048extern "C" void exit (int);
7049#endif
7050
7051void fnord() { int i=42;}
7052int main ()
7053{
7054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7055 int status = $lt_dlunknown;
7056
7057 if (self)
7058 {
7059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7060 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7061 /* dlclose (self); */
7062 }
7063
7064 exit (status);
7065}
7066EOF
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7072 (./conftest; exit; ) 2>/dev/null
7073 lt_status=$?
7074 case x$lt_status in
7075 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7076 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7077 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7078 esac
7079 else :
7080 # compilation failed
7081 lt_cv_dlopen_self=no
7082 fi
7083fi
7084rm -fr conftest*
7085
7086
7087fi
7088echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7089echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7090
7091 if test "x$lt_cv_dlopen_self" = xyes; then
7092 LDFLAGS="$LDFLAGS $link_static_flag"
7093 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7094echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7095if test "${lt_cv_dlopen_self_static+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098 if test "$cross_compiling" = yes; then :
7099 lt_cv_dlopen_self_static=cross
7100else
7101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7102 lt_status=$lt_dlunknown
7103 cat > conftest.$ac_ext <<EOF
jjako77edc822004-09-10 17:19:31 +00007104#line 7104 "configure"
jjako286bc982003-01-28 23:17:50 +00007105#include "confdefs.h"
7106
7107#if HAVE_DLFCN_H
7108#include <dlfcn.h>
7109#endif
7110
7111#include <stdio.h>
7112
7113#ifdef RTLD_GLOBAL
7114# define LT_DLGLOBAL RTLD_GLOBAL
7115#else
7116# ifdef DL_GLOBAL
7117# define LT_DLGLOBAL DL_GLOBAL
7118# else
7119# define LT_DLGLOBAL 0
7120# endif
7121#endif
7122
7123/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7124 find out it does not work in some platform. */
7125#ifndef LT_DLLAZY_OR_NOW
7126# ifdef RTLD_LAZY
7127# define LT_DLLAZY_OR_NOW RTLD_LAZY
7128# else
7129# ifdef DL_LAZY
7130# define LT_DLLAZY_OR_NOW DL_LAZY
7131# else
7132# ifdef RTLD_NOW
7133# define LT_DLLAZY_OR_NOW RTLD_NOW
7134# else
7135# ifdef DL_NOW
7136# define LT_DLLAZY_OR_NOW DL_NOW
7137# else
7138# define LT_DLLAZY_OR_NOW 0
7139# endif
7140# endif
7141# endif
7142# endif
7143#endif
7144
7145#ifdef __cplusplus
7146extern "C" void exit (int);
7147#endif
7148
7149void fnord() { int i=42;}
7150int main ()
7151{
7152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7153 int status = $lt_dlunknown;
7154
7155 if (self)
7156 {
7157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7158 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7159 /* dlclose (self); */
7160 }
7161
7162 exit (status);
7163}
7164EOF
7165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166 (eval $ac_link) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7170 (./conftest; exit; ) 2>/dev/null
7171 lt_status=$?
7172 case x$lt_status in
7173 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7174 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7175 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7176 esac
7177 else :
7178 # compilation failed
7179 lt_cv_dlopen_self_static=no
7180 fi
7181fi
7182rm -fr conftest*
7183
7184
7185fi
7186echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7187echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7188 fi
7189
7190 CPPFLAGS="$save_CPPFLAGS"
7191 LDFLAGS="$save_LDFLAGS"
7192 LIBS="$save_LIBS"
7193 ;;
7194 esac
7195
7196 case $lt_cv_dlopen_self in
7197 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7198 *) enable_dlopen_self=unknown ;;
7199 esac
7200
7201 case $lt_cv_dlopen_self_static in
7202 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7203 *) enable_dlopen_self_static=unknown ;;
7204 esac
7205fi
7206
7207
7208if test "$enable_shared" = yes && test "$GCC" = yes; then
7209 case $archive_cmds in
7210 *'~'*)
7211 # FIXME: we may have to deal with multi-command sequences.
7212 ;;
7213 '$CC '*)
7214 # Test whether the compiler implicitly links with -lc since on some
7215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7216 # to ld, don't add -lc before -lgcc.
7217 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7218echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7219 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222 $rm conftest*
7223 echo 'static int dummy;' > conftest.$ac_ext
7224
7225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226 (eval $ac_compile) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; then
7230 soname=conftest
7231 lib=conftest
7232 libobjs=conftest.$ac_objext
7233 deplibs=
7234 wl=$lt_cv_prog_cc_wl
7235 compiler_flags=-v
7236 linker_flags=-v
7237 verstring=
7238 output_objdir=.
7239 libname=conftest
7240 save_allow_undefined_flag=$allow_undefined_flag
7241 allow_undefined_flag=
7242 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7243 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }
7247 then
7248 lt_cv_archive_cmds_need_lc=no
7249 else
7250 lt_cv_archive_cmds_need_lc=yes
7251 fi
7252 allow_undefined_flag=$save_allow_undefined_flag
7253 else
7254 cat conftest.err 1>&5
7255 fi
7256fi
7257
7258 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7259echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7260 ;;
7261 esac
7262fi
7263need_lc=${lt_cv_archive_cmds_need_lc-yes}
7264
7265# The second clause should only fire when bootstrapping the
7266# libtool distribution, otherwise you forgot to ship ltmain.sh
7267# with your package, and you will get complaints that there are
7268# no rules to generate ltmain.sh.
7269if test -f "$ltmain"; then
7270 :
7271else
7272 # If there is no Makefile yet, we rely on a make rule to execute
7273 # `config.status --recheck' to rerun these tests and create the
7274 # libtool script then.
7275 test -f Makefile && make "$ltmain"
7276fi
7277
7278if test -f "$ltmain"; then
7279 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7280 $rm -f "${ofile}T"
7281
7282 echo creating $ofile
7283
7284 # Now quote all the things that may contain metacharacters while being
7285 # careful not to overquote the AC_SUBSTed values. We take copies of the
7286 # variables and quote the copies for generation of the libtool script.
jjako08d331d2003-10-13 20:33:30 +00007287 for var in echo old_CC old_CFLAGS SED \
jjako286bc982003-01-28 23:17:50 +00007288 AR AR_FLAGS CC LD LN_S NM SHELL \
7289 reload_flag reload_cmds wl \
7290 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7291 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7292 library_names_spec soname_spec \
7293 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7294 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7295 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7296 old_striplib striplib file_magic_cmd export_symbols_cmds \
7297 deplibs_check_method allow_undefined_flag no_undefined_flag \
7298 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7299 global_symbol_to_c_name_address \
7300 hardcode_libdir_flag_spec hardcode_libdir_separator \
7301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7302 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7303
7304 case $var in
7305 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7306 old_postinstall_cmds | old_postuninstall_cmds | \
7307 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7308 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7309 postinstall_cmds | postuninstall_cmds | \
7310 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7311 # Double-quote double-evaled strings.
7312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7313 ;;
7314 *)
7315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7316 ;;
7317 esac
7318 done
7319
7320 cat <<__EOF__ > "${ofile}T"
7321#! $SHELL
7322
7323# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7324# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7325# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7326#
7327# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7328# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7329#
7330# This program is free software; you can redistribute it and/or modify
7331# it under the terms of the GNU General Public License as published by
7332# the Free Software Foundation; either version 2 of the License, or
7333# (at your option) any later version.
7334#
7335# This program is distributed in the hope that it will be useful, but
7336# WITHOUT ANY WARRANTY; without even the implied warranty of
7337# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7338# General Public License for more details.
7339#
7340# You should have received a copy of the GNU General Public License
7341# along with this program; if not, write to the Free Software
7342# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7343#
7344# As a special exception to the GNU General Public License, if you
7345# distribute this file as part of a program that contains a
7346# configuration script generated by Autoconf, you may include it under
7347# the same distribution terms that you use for the rest of that program.
7348
jjako08d331d2003-10-13 20:33:30 +00007349# A sed that does not truncate output.
7350SED=$lt_SED
7351
jjako286bc982003-01-28 23:17:50 +00007352# Sed that helps us avoid accidentally triggering echo(1) options like -n.
jjako08d331d2003-10-13 20:33:30 +00007353Xsed="${SED} -e s/^X//"
jjako286bc982003-01-28 23:17:50 +00007354
7355# The HP-UX ksh and POSIX shell print the target directory to stdout
7356# if CDPATH is set.
7357if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7358
7359# ### BEGIN LIBTOOL CONFIG
7360
7361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7362
7363# Shell to use when invoking shell scripts.
7364SHELL=$lt_SHELL
7365
7366# Whether or not to build shared libraries.
7367build_libtool_libs=$enable_shared
7368
7369# Whether or not to build static libraries.
7370build_old_libs=$enable_static
7371
7372# Whether or not to add -lc for building shared libraries.
7373build_libtool_need_lc=$need_lc
7374
7375# Whether or not to optimize for fast installation.
7376fast_install=$enable_fast_install
7377
7378# The host system.
7379host_alias=$host_alias
7380host=$host
7381
7382# An echo program that does not interpret backslashes.
7383echo=$lt_echo
7384
7385# The archiver.
7386AR=$lt_AR
7387AR_FLAGS=$lt_AR_FLAGS
7388
7389# The default C compiler.
7390CC=$lt_CC
7391
7392# Is the compiler the GNU C compiler?
7393with_gcc=$GCC
7394
7395# The linker used to build libraries.
7396LD=$lt_LD
7397
7398# Whether we need hard or soft links.
7399LN_S=$lt_LN_S
7400
7401# A BSD-compatible nm program.
7402NM=$lt_NM
7403
7404# A symbol stripping program
7405STRIP=$STRIP
7406
7407# Used to examine libraries when file_magic_cmd begins "file"
7408MAGIC_CMD=$MAGIC_CMD
7409
7410# Used on cygwin: DLL creation program.
7411DLLTOOL="$DLLTOOL"
7412
7413# Used on cygwin: object dumper.
7414OBJDUMP="$OBJDUMP"
7415
7416# Used on cygwin: assembler.
7417AS="$AS"
7418
7419# The name of the directory that contains temporary libtool files.
7420objdir=$objdir
7421
7422# How to create reloadable object files.
7423reload_flag=$lt_reload_flag
7424reload_cmds=$lt_reload_cmds
7425
7426# How to pass a linker flag through the compiler.
7427wl=$lt_wl
7428
7429# Object file suffix (normally "o").
7430objext="$ac_objext"
7431
7432# Old archive suffix (normally "a").
7433libext="$libext"
7434
7435# Executable file suffix (normally "").
7436exeext="$exeext"
7437
7438# Additional compiler flags for building library objects.
7439pic_flag=$lt_pic_flag
7440pic_mode=$pic_mode
7441
7442# Does compiler simultaneously support -c and -o options?
7443compiler_c_o=$lt_compiler_c_o
7444
7445# Can we write directly to a .lo ?
7446compiler_o_lo=$lt_compiler_o_lo
7447
7448# Must we lock files when doing compilation ?
7449need_locks=$lt_need_locks
7450
7451# Do we need the lib prefix for modules?
7452need_lib_prefix=$need_lib_prefix
7453
7454# Do we need a version for libraries?
7455need_version=$need_version
7456
7457# Whether dlopen is supported.
7458dlopen_support=$enable_dlopen
7459
7460# Whether dlopen of programs is supported.
7461dlopen_self=$enable_dlopen_self
7462
7463# Whether dlopen of statically linked programs is supported.
7464dlopen_self_static=$enable_dlopen_self_static
7465
7466# Compiler flag to prevent dynamic linking.
7467link_static_flag=$lt_link_static_flag
7468
7469# Compiler flag to turn off builtin functions.
7470no_builtin_flag=$lt_no_builtin_flag
7471
7472# Compiler flag to allow reflexive dlopens.
7473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7474
7475# Compiler flag to generate shared objects directly from archives.
7476whole_archive_flag_spec=$lt_whole_archive_flag_spec
7477
7478# Compiler flag to generate thread-safe objects.
7479thread_safe_flag_spec=$lt_thread_safe_flag_spec
7480
7481# Library versioning type.
7482version_type=$version_type
7483
7484# Format of library name prefix.
7485libname_spec=$lt_libname_spec
7486
7487# List of archive names. First name is the real one, the rest are links.
7488# The last name is the one that the linker finds with -lNAME.
7489library_names_spec=$lt_library_names_spec
7490
7491# The coded name of the library, if different from the real name.
7492soname_spec=$lt_soname_spec
7493
7494# Commands used to build and install an old-style archive.
7495RANLIB=$lt_RANLIB
7496old_archive_cmds=$lt_old_archive_cmds
7497old_postinstall_cmds=$lt_old_postinstall_cmds
7498old_postuninstall_cmds=$lt_old_postuninstall_cmds
7499
7500# Create an old-style archive from a shared archive.
7501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7502
7503# Create a temporary old-style archive to link instead of a shared archive.
7504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7505
7506# Commands used to build and install a shared archive.
7507archive_cmds=$lt_archive_cmds
7508archive_expsym_cmds=$lt_archive_expsym_cmds
7509postinstall_cmds=$lt_postinstall_cmds
7510postuninstall_cmds=$lt_postuninstall_cmds
7511
7512# Commands to strip libraries.
7513old_striplib=$lt_old_striplib
7514striplib=$lt_striplib
7515
7516# Method to check whether dependent libraries are shared objects.
7517deplibs_check_method=$lt_deplibs_check_method
7518
7519# Command to use when deplibs_check_method == file_magic.
7520file_magic_cmd=$lt_file_magic_cmd
7521
7522# Flag that allows shared libraries with undefined symbols to be built.
7523allow_undefined_flag=$lt_allow_undefined_flag
7524
7525# Flag that forces no undefined symbols.
7526no_undefined_flag=$lt_no_undefined_flag
7527
7528# Commands used to finish a libtool library installation in a directory.
7529finish_cmds=$lt_finish_cmds
7530
7531# Same as above, but a single script fragment to be evaled but not shown.
7532finish_eval=$lt_finish_eval
7533
7534# Take the output of nm and produce a listing of raw symbols and C names.
7535global_symbol_pipe=$lt_global_symbol_pipe
7536
7537# Transform the output of nm in a proper C declaration
7538global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7539
7540# Transform the output of nm in a C name address pair
7541global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7542
7543# This is the shared library runtime path variable.
7544runpath_var=$runpath_var
7545
7546# This is the shared library path variable.
7547shlibpath_var=$shlibpath_var
7548
7549# Is shlibpath searched before the hard-coded library search path?
7550shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7551
7552# How to hardcode a shared library path into an executable.
7553hardcode_action=$hardcode_action
7554
7555# Whether we should hardcode library paths into libraries.
7556hardcode_into_libs=$hardcode_into_libs
7557
7558# Flag to hardcode \$libdir into a binary during linking.
7559# This must work even if \$libdir does not exist.
7560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7561
7562# Whether we need a single -rpath flag with a separated argument.
7563hardcode_libdir_separator=$lt_hardcode_libdir_separator
7564
7565# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7566# resulting binary.
7567hardcode_direct=$hardcode_direct
7568
7569# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7570# resulting binary.
7571hardcode_minus_L=$hardcode_minus_L
7572
7573# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7574# the resulting binary.
7575hardcode_shlibpath_var=$hardcode_shlibpath_var
7576
7577# Variables whose values should be saved in libtool wrapper scripts and
7578# restored at relink time.
7579variables_saved_for_relink="$variables_saved_for_relink"
7580
7581# Whether libtool must link a program against all its dependency libraries.
7582link_all_deplibs=$link_all_deplibs
7583
7584# Compile-time system search path for libraries
7585sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7586
7587# Run-time system search path for libraries
7588sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7589
7590# Fix the shell variable \$srcfile for the compiler.
7591fix_srcfile_path="$fix_srcfile_path"
7592
7593# Set to yes if exported symbols are required.
7594always_export_symbols=$always_export_symbols
7595
7596# The commands to list exported symbols.
7597export_symbols_cmds=$lt_export_symbols_cmds
7598
7599# The commands to extract the exported symbol list from a shared archive.
7600extract_expsyms_cmds=$lt_extract_expsyms_cmds
7601
7602# Symbols that should not be listed in the preloaded symbols.
7603exclude_expsyms=$lt_exclude_expsyms
7604
7605# Symbols that must always be exported.
7606include_expsyms=$lt_include_expsyms
7607
7608# ### END LIBTOOL CONFIG
7609
7610__EOF__
7611
7612 case $host_os in
7613 aix3*)
7614 cat <<\EOF >> "${ofile}T"
7615
7616# AIX sometimes has problems with the GCC collect2 program. For some
7617# reason, if we set the COLLECT_NAMES environment variable, the problems
7618# vanish in a puff of smoke.
7619if test "X${COLLECT_NAMES+set}" != Xset; then
7620 COLLECT_NAMES=
7621 export COLLECT_NAMES
7622fi
7623EOF
7624 ;;
7625 esac
7626
7627 case $host_os in
7628 cygwin* | mingw* | pw32* | os2*)
7629 cat <<'EOF' >> "${ofile}T"
7630 # This is a source program that is used to create dlls on Windows
7631 # Don't remove nor modify the starting and closing comments
7632# /* ltdll.c starts here */
7633# #define WIN32_LEAN_AND_MEAN
7634# #include <windows.h>
7635# #undef WIN32_LEAN_AND_MEAN
7636# #include <stdio.h>
7637#
7638# #ifndef __CYGWIN__
7639# # ifdef __CYGWIN32__
7640# # define __CYGWIN__ __CYGWIN32__
7641# # endif
7642# #endif
7643#
7644# #ifdef __cplusplus
7645# extern "C" {
7646# #endif
7647# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7648# #ifdef __cplusplus
7649# }
7650# #endif
7651#
7652# #ifdef __CYGWIN__
7653# #include <cygwin/cygwin_dll.h>
7654# DECLARE_CYGWIN_DLL( DllMain );
7655# #endif
7656# HINSTANCE __hDllInstance_base;
7657#
7658# BOOL APIENTRY
7659# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7660# {
7661# __hDllInstance_base = hInst;
7662# return TRUE;
7663# }
7664# /* ltdll.c ends here */
7665 # This is a source program that is used to create import libraries
7666 # on Windows for dlls which lack them. Don't remove nor modify the
7667 # starting and closing comments
7668# /* impgen.c starts here */
7669# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7670#
7671# This file is part of GNU libtool.
7672#
7673# This program is free software; you can redistribute it and/or modify
7674# it under the terms of the GNU General Public License as published by
7675# the Free Software Foundation; either version 2 of the License, or
7676# (at your option) any later version.
7677#
7678# This program is distributed in the hope that it will be useful,
7679# but WITHOUT ANY WARRANTY; without even the implied warranty of
7680# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7681# GNU General Public License for more details.
7682#
7683# You should have received a copy of the GNU General Public License
7684# along with this program; if not, write to the Free Software
7685# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7686# */
7687#
7688# #include <stdio.h> /* for printf() */
7689# #include <unistd.h> /* for open(), lseek(), read() */
7690# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7691# #include <string.h> /* for strdup() */
7692#
7693# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7694# #ifndef O_BINARY
7695# #define O_BINARY 0
7696# #endif
7697#
7698# static unsigned int
7699# pe_get16 (fd, offset)
7700# int fd;
7701# int offset;
7702# {
7703# unsigned char b[2];
7704# lseek (fd, offset, SEEK_SET);
7705# read (fd, b, 2);
7706# return b[0] + (b[1]<<8);
7707# }
7708#
7709# static unsigned int
7710# pe_get32 (fd, offset)
7711# int fd;
7712# int offset;
7713# {
7714# unsigned char b[4];
7715# lseek (fd, offset, SEEK_SET);
7716# read (fd, b, 4);
7717# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7718# }
7719#
7720# static unsigned int
7721# pe_as32 (ptr)
7722# void *ptr;
7723# {
7724# unsigned char *b = ptr;
7725# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7726# }
7727#
7728# int
7729# main (argc, argv)
7730# int argc;
7731# char *argv[];
7732# {
7733# int dll;
7734# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7735# unsigned long export_rva, export_size, nsections, secptr, expptr;
7736# unsigned long name_rvas, nexp;
7737# unsigned char *expdata, *erva;
7738# char *filename, *dll_name;
7739#
7740# filename = argv[1];
7741#
7742# dll = open(filename, O_RDONLY|O_BINARY);
7743# if (dll < 1)
7744# return 1;
7745#
7746# dll_name = filename;
7747#
7748# for (i=0; filename[i]; i++)
7749# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7750# dll_name = filename + i +1;
7751#
7752# pe_header_offset = pe_get32 (dll, 0x3c);
7753# opthdr_ofs = pe_header_offset + 4 + 20;
7754# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7755#
7756# if (num_entries < 1) /* no exports */
7757# return 1;
7758#
7759# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7760# export_size = pe_get32 (dll, opthdr_ofs + 100);
7761# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7762# secptr = (pe_header_offset + 4 + 20 +
7763# pe_get16 (dll, pe_header_offset + 4 + 16));
7764#
7765# expptr = 0;
7766# for (i = 0; i < nsections; i++)
7767# {
7768# char sname[8];
7769# unsigned long secptr1 = secptr + 40 * i;
7770# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7771# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7772# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7773# lseek(dll, secptr1, SEEK_SET);
7774# read(dll, sname, 8);
7775# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7776# {
7777# expptr = fptr + (export_rva - vaddr);
7778# if (export_rva + export_size > vaddr + vsize)
7779# export_size = vsize - (export_rva - vaddr);
7780# break;
7781# }
7782# }
7783#
7784# expdata = (unsigned char*)malloc(export_size);
7785# lseek (dll, expptr, SEEK_SET);
7786# read (dll, expdata, export_size);
7787# erva = expdata - export_rva;
7788#
7789# nexp = pe_as32 (expdata+24);
7790# name_rvas = pe_as32 (expdata+32);
7791#
7792# printf ("EXPORTS\n");
7793# for (i = 0; i<nexp; i++)
7794# {
7795# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7796# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7797# }
7798#
7799# return 0;
7800# }
7801# /* impgen.c ends here */
7802
7803EOF
7804 ;;
7805 esac
7806
7807 # We use sed instead of cat because bash on DJGPP gets confused if
7808 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7809 # text mode, it properly converts lines to CR/LF. This bash problem
7810 # is reportedly fixed, but why not run on old versions too?
7811 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7812
7813 mv -f "${ofile}T" "$ofile" || \
7814 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7815 chmod +x "$ofile"
7816fi
7817
7818
7819
jjako52c24142002-12-16 13:33:51 +00007820
7821
7822# This can be used to rebuild libtool when needed
jjako286bc982003-01-28 23:17:50 +00007823LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
jjako52c24142002-12-16 13:33:51 +00007824
7825# Always use our own libtool.
7826LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7827
jjako286bc982003-01-28 23:17:50 +00007828# Prevent multiple expansion
jjako52c24142002-12-16 13:33:51 +00007829
7830
jjako286bc982003-01-28 23:17:50 +00007831
7832
jjakoa9639f32003-07-07 15:30:11 +00007833# Check whether --enable-static-exec or --disable-static-exec was given.
7834if test "${enable_static_exec+set}" = set; then
7835 enableval="$enable_static_exec"
7836 EXEC_LDFLAGS="-all-static"
7837fi;
7838
7839
jjako286bc982003-01-28 23:17:50 +00007840
jjakoe31b2402004-12-30 23:07:42 +00007841
jjako77edc822004-09-10 17:19:31 +00007842case "${host}" in
jjakoe31b2402004-12-30 23:07:42 +00007843 i*86-*-linux-gnu*)
7844 EXEC_LDADD="-Wl,--rpath -Wl,/usr/local/lib" ;;
jjako77edc822004-09-10 17:19:31 +00007845 *solaris*)
jjakoe31b2402004-12-30 23:07:42 +00007846 EXEC_LDADD="-lresolv -lsocket -lnsl" ;;
jjako77edc822004-09-10 17:19:31 +00007847esac
7848
7849
jjako77edc822004-09-10 17:19:31 +00007850
7851
jjako286bc982003-01-28 23:17:50 +00007852# Checks for libraries.
7853# FIXME: Replace `main' with a function in `-le':
jjakoa9639f32003-07-07 15:30:11 +00007854#AC_CHECK_LIB([e], [main])
jjako286bc982003-01-28 23:17:50 +00007855# FIXME: Replace `main' with a function in `-lgtp':
jjakoa9639f32003-07-07 15:30:11 +00007856#AC_CHECK_LIB([gtp], [main])
jjako286bc982003-01-28 23:17:50 +00007857# FIXME: Replace `main' with a function in `-links':
jjakoa9639f32003-07-07 15:30:11 +00007858#AC_CHECK_LIB([inks], [main])
jjako286bc982003-01-28 23:17:50 +00007859
7860# Checks for header files.
7861echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7862echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7863if test "${ac_cv_header_stdc+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 cat >conftest.$ac_ext <<_ACEOF
7867#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007868/* confdefs.h. */
7869_ACEOF
7870cat confdefs.h >>conftest.$ac_ext
7871cat >>conftest.$ac_ext <<_ACEOF
7872/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007873#include <stdlib.h>
7874#include <stdarg.h>
7875#include <string.h>
7876#include <float.h>
jjako286bc982003-01-28 23:17:50 +00007877
jjako08d331d2003-10-13 20:33:30 +00007878int
7879main ()
7880{
7881
7882 ;
7883 return 0;
7884}
jjako286bc982003-01-28 23:17:50 +00007885_ACEOF
jjako08d331d2003-10-13 20:33:30 +00007886rm -f conftest.$ac_objext
7887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>&5
jjako286bc982003-01-28 23:17:50 +00007889 ac_status=$?
jjako286bc982003-01-28 23:17:50 +00007890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
jjako08d331d2003-10-13 20:33:30 +00007891 (exit $ac_status); } &&
7892 { ac_try='test -s conftest.$ac_objext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007898 ac_cv_header_stdc=yes
7899else
jjako286bc982003-01-28 23:17:50 +00007900 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00007901sed 's/^/| /' conftest.$ac_ext >&5
7902
7903ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +00007904fi
jjako08d331d2003-10-13 20:33:30 +00007905rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007906
7907if test $ac_cv_header_stdc = yes; then
7908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007909 cat >conftest.$ac_ext <<_ACEOF
7910#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007911/* confdefs.h. */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007916#include <string.h>
jjako286bc982003-01-28 23:17:50 +00007917
7918_ACEOF
jjako52c24142002-12-16 13:33:51 +00007919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00007920 $EGREP "memchr" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00007921 :
7922else
jjako52c24142002-12-16 13:33:51 +00007923 ac_cv_header_stdc=no
7924fi
7925rm -f conftest*
7926
7927fi
7928
7929if test $ac_cv_header_stdc = yes; then
7930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007931 cat >conftest.$ac_ext <<_ACEOF
7932#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007933/* confdefs.h. */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007938#include <stdlib.h>
jjako286bc982003-01-28 23:17:50 +00007939
7940_ACEOF
jjako52c24142002-12-16 13:33:51 +00007941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00007942 $EGREP "free" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00007943 :
7944else
jjako52c24142002-12-16 13:33:51 +00007945 ac_cv_header_stdc=no
7946fi
7947rm -f conftest*
7948
7949fi
7950
7951if test $ac_cv_header_stdc = yes; then
7952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jjako286bc982003-01-28 23:17:50 +00007953 if test "$cross_compiling" = yes; then
jjako52c24142002-12-16 13:33:51 +00007954 :
7955else
jjako286bc982003-01-28 23:17:50 +00007956 cat >conftest.$ac_ext <<_ACEOF
7957#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00007958/* confdefs.h. */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
7962/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00007963#include <ctype.h>
jjako286bc982003-01-28 23:17:50 +00007964#if ((' ' & 0x0FF) == 0x020)
7965# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7966# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7967#else
jjako08d331d2003-10-13 20:33:30 +00007968# define ISLOWER(c) \
7969 (('a' <= (c) && (c) <= 'i') \
jjako286bc982003-01-28 23:17:50 +00007970 || ('j' <= (c) && (c) <= 'r') \
7971 || ('s' <= (c) && (c) <= 'z'))
7972# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7973#endif
jjako52c24142002-12-16 13:33:51 +00007974
jjako286bc982003-01-28 23:17:50 +00007975#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7976int
7977main ()
7978{
7979 int i;
7980 for (i = 0; i < 256; i++)
7981 if (XOR (islower (i), ISLOWER (i))
7982 || toupper (i) != TOUPPER (i))
7983 exit(2);
7984 exit (0);
7985}
7986_ACEOF
7987rm -f conftest$ac_exeext
7988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007998 :
7999else
jjako286bc982003-01-28 23:17:50 +00008000 echo "$as_me: program exited with status $ac_status" >&5
8001echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008002sed 's/^/| /' conftest.$ac_ext >&5
8003
jjako286bc982003-01-28 23:17:50 +00008004( exit $ac_status )
8005ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +00008006fi
jjako08d331d2003-10-13 20:33:30 +00008007rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008008fi
8009fi
jjako286bc982003-01-28 23:17:50 +00008010fi
8011echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8012echo "${ECHO_T}$ac_cv_header_stdc" >&6
jjako52c24142002-12-16 13:33:51 +00008013if test $ac_cv_header_stdc = yes; then
jjako286bc982003-01-28 23:17:50 +00008014
8015cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008016#define STDC_HEADERS 1
jjako286bc982003-01-28 23:17:50 +00008017_ACEOF
jjako52c24142002-12-16 13:33:51 +00008018
8019fi
8020
jjako286bc982003-01-28 23:17:50 +00008021echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8022echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8023if test "${ac_cv_header_sys_wait_h+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008025else
jjako286bc982003-01-28 23:17:50 +00008026 cat >conftest.$ac_ext <<_ACEOF
8027#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008033#include <sys/types.h>
8034#include <sys/wait.h>
8035#ifndef WEXITSTATUS
jjako286bc982003-01-28 23:17:50 +00008036# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
jjako52c24142002-12-16 13:33:51 +00008037#endif
8038#ifndef WIFEXITED
jjako286bc982003-01-28 23:17:50 +00008039# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
jjako52c24142002-12-16 13:33:51 +00008040#endif
jjako286bc982003-01-28 23:17:50 +00008041
jjako286bc982003-01-28 23:17:50 +00008042int
8043main ()
8044{
8045 int s;
8046 wait (&s);
8047 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8048 ;
8049 return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext
8053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -s conftest.$ac_objext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008064 ac_cv_header_sys_wait_h=yes
8065else
jjako286bc982003-01-28 23:17:50 +00008066 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008067sed 's/^/| /' conftest.$ac_ext >&5
8068
jjako286bc982003-01-28 23:17:50 +00008069ac_cv_header_sys_wait_h=no
jjako52c24142002-12-16 13:33:51 +00008070fi
jjako286bc982003-01-28 23:17:50 +00008071rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008072fi
jjako286bc982003-01-28 23:17:50 +00008073echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8074echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
jjako52c24142002-12-16 13:33:51 +00008075if test $ac_cv_header_sys_wait_h = yes; then
jjako286bc982003-01-28 23:17:50 +00008076
8077cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008078#define HAVE_SYS_WAIT_H 1
jjako286bc982003-01-28 23:17:50 +00008079_ACEOF
jjako52c24142002-12-16 13:33:51 +00008080
8081fi
8082
jjako286bc982003-01-28 23:17:50 +00008083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095for 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 +00008096do
jjako286bc982003-01-28 23:17:50 +00008097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8098if eval "test \"\${$as_ac_Header+set}\" = set"; then
8099 echo "$as_me:$LINENO: checking for $ac_header" >&5
8100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8101if eval "test \"\${$as_ac_Header+set}\" = set"; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103fi
8104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00008106else
jjako286bc982003-01-28 23:17:50 +00008107 # Is the header compilable?
8108echo "$as_me:$LINENO: checking $ac_header usability" >&5
8109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8110cat >conftest.$ac_ext <<_ACEOF
8111#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008112/* confdefs.h. */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008117$ac_includes_default
8118#include <$ac_header>
8119_ACEOF
8120rm -f conftest.$ac_objext
8121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00008133else
jjako286bc982003-01-28 23:17:50 +00008134 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008135sed 's/^/| /' conftest.$ac_ext >&5
8136
jjako286bc982003-01-28 23:17:50 +00008137ac_header_compiler=no
8138fi
8139rm -f conftest.$ac_objext conftest.$ac_ext
8140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8141echo "${ECHO_T}$ac_header_compiler" >&6
8142
8143# Is the header present?
8144echo "$as_me:$LINENO: checking $ac_header presence" >&5
8145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8146cat >conftest.$ac_ext <<_ACEOF
8147#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008148/* confdefs.h. */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008153#include <$ac_header>
8154_ACEOF
8155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00008158 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00008159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8165 else
8166 ac_cpp_err=
8167 fi
8168else
8169 ac_cpp_err=yes
8170fi
8171if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8173else
8174 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008175sed 's/^/| /' conftest.$ac_ext >&5
8176
jjako286bc982003-01-28 23:17:50 +00008177 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00008178fi
jjako286bc982003-01-28 23:17:50 +00008179rm -f conftest.err conftest.$ac_ext
8180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181echo "${ECHO_T}$ac_header_preproc" >&6
8182
8183# So? What about this header?
8184case $ac_header_compiler:$ac_header_preproc in
8185 yes:no )
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00008189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8190 (
8191 cat <<\_ASBOX
8192## ------------------------------------ ##
8193## Report this to bug-autoconf@gnu.org. ##
8194## ------------------------------------ ##
8195_ASBOX
8196 ) |
8197 sed "s/^/$as_me: WARNING: /" >&2
8198 ;;
jjako286bc982003-01-28 23:17:50 +00008199 no:yes )
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00008205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8206 (
8207 cat <<\_ASBOX
8208## ------------------------------------ ##
8209## Report this to bug-autoconf@gnu.org. ##
8210## ------------------------------------ ##
8211_ASBOX
8212 ) |
8213 sed "s/^/$as_me: WARNING: /" >&2
8214 ;;
jjako286bc982003-01-28 23:17:50 +00008215esac
8216echo "$as_me:$LINENO: checking for $ac_header" >&5
8217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8218if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008220else
jjako286bc982003-01-28 23:17:50 +00008221 eval "$as_ac_Header=$ac_header_preproc"
jjako52c24142002-12-16 13:33:51 +00008222fi
jjako286bc982003-01-28 23:17:50 +00008223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8225
8226fi
8227if test `eval echo '${'$as_ac_Header'}'` = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230_ACEOF
8231
8232fi
8233
jjako52c24142002-12-16 13:33:51 +00008234done
8235
8236
jjako77edc822004-09-10 17:19:31 +00008237# Check for if header
8238
8239
8240for ac_header in linux/if.h net/if.h
8241do
8242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8243if eval "test \"\${$as_ac_Header+set}\" = set"; then
8244 echo "$as_me:$LINENO: checking for $ac_header" >&5
8245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8246if eval "test \"\${$as_ac_Header+set}\" = set"; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248fi
8249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8251else
8252 # Is the header compilable?
8253echo "$as_me:$LINENO: checking $ac_header usability" >&5
8254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8255cat >conftest.$ac_ext <<_ACEOF
8256#line $LINENO "configure"
8257/* confdefs.h. */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
8261/* end confdefs.h. */
8262$ac_includes_default
8263#include <$ac_header>
8264_ACEOF
8265rm -f conftest.$ac_objext
8266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8267 (eval $ac_compile) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 ac_header_compiler=yes
8278else
8279 echo "$as_me: failed program was:" >&5
8280sed 's/^/| /' conftest.$ac_ext >&5
8281
8282ac_header_compiler=no
8283fi
8284rm -f conftest.$ac_objext conftest.$ac_ext
8285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8286echo "${ECHO_T}$ac_header_compiler" >&6
8287
8288# Is the header present?
8289echo "$as_me:$LINENO: checking $ac_header presence" >&5
8290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8291cat >conftest.$ac_ext <<_ACEOF
8292#line $LINENO "configure"
8293/* confdefs.h. */
8294_ACEOF
8295cat confdefs.h >>conftest.$ac_ext
8296cat >>conftest.$ac_ext <<_ACEOF
8297/* end confdefs.h. */
8298#include <$ac_header>
8299_ACEOF
8300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } >/dev/null; then
8308 if test -s conftest.err; then
8309 ac_cpp_err=$ac_c_preproc_warn_flag
8310 else
8311 ac_cpp_err=
8312 fi
8313else
8314 ac_cpp_err=yes
8315fi
8316if test -z "$ac_cpp_err"; then
8317 ac_header_preproc=yes
8318else
8319 echo "$as_me: failed program was:" >&5
8320sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_header_preproc=no
8323fi
8324rm -f conftest.err conftest.$ac_ext
8325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8326echo "${ECHO_T}$ac_header_preproc" >&6
8327
8328# So? What about this header?
8329case $ac_header_compiler:$ac_header_preproc in
8330 yes:no )
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8335 (
8336 cat <<\_ASBOX
8337## ------------------------------------ ##
8338## Report this to bug-autoconf@gnu.org. ##
8339## ------------------------------------ ##
8340_ASBOX
8341 ) |
8342 sed "s/^/$as_me: WARNING: /" >&2
8343 ;;
8344 no:yes )
8345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8351 (
8352 cat <<\_ASBOX
8353## ------------------------------------ ##
8354## Report this to bug-autoconf@gnu.org. ##
8355## ------------------------------------ ##
8356_ASBOX
8357 ) |
8358 sed "s/^/$as_me: WARNING: /" >&2
8359 ;;
8360esac
8361echo "$as_me:$LINENO: checking for $ac_header" >&5
8362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8363if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366 eval "$as_ac_Header=$ac_header_preproc"
8367fi
8368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8370
8371fi
8372if test `eval echo '${'$as_ac_Header'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8375_ACEOF
8376
8377fi
8378
8379done
8380
8381
8382# Check for tun header
8383
8384
8385for ac_header in linux/if_tun.h net/if_tun.h
8386do
8387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8388if eval "test \"\${$as_ac_Header+set}\" = set"; then
8389 echo "$as_me:$LINENO: checking for $ac_header" >&5
8390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8391if eval "test \"\${$as_ac_Header+set}\" = set"; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393fi
8394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396else
8397 # Is the header compilable?
8398echo "$as_me:$LINENO: checking $ac_header usability" >&5
8399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8400cat >conftest.$ac_ext <<_ACEOF
8401#line $LINENO "configure"
8402/* confdefs.h. */
8403_ACEOF
8404cat confdefs.h >>conftest.$ac_ext
8405cat >>conftest.$ac_ext <<_ACEOF
8406/* end confdefs.h. */
8407$ac_includes_default
8408#include <$ac_header>
8409_ACEOF
8410rm -f conftest.$ac_objext
8411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8412 (eval $ac_compile) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_header_compiler=yes
8423else
8424 echo "$as_me: failed program was:" >&5
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
8427ac_header_compiler=no
8428fi
8429rm -f conftest.$ac_objext conftest.$ac_ext
8430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431echo "${ECHO_T}$ac_header_compiler" >&6
8432
8433# Is the header present?
8434echo "$as_me:$LINENO: checking $ac_header presence" >&5
8435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8436cat >conftest.$ac_ext <<_ACEOF
8437#line $LINENO "configure"
8438/* confdefs.h. */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h. */
8443#include <$ac_header>
8444_ACEOF
8445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } >/dev/null; then
8453 if test -s conftest.err; then
8454 ac_cpp_err=$ac_c_preproc_warn_flag
8455 else
8456 ac_cpp_err=
8457 fi
8458else
8459 ac_cpp_err=yes
8460fi
8461if test -z "$ac_cpp_err"; then
8462 ac_header_preproc=yes
8463else
8464 echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 ac_header_preproc=no
8468fi
8469rm -f conftest.err conftest.$ac_ext
8470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8471echo "${ECHO_T}$ac_header_preproc" >&6
8472
8473# So? What about this header?
8474case $ac_header_compiler:$ac_header_preproc in
8475 yes:no )
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8480 (
8481 cat <<\_ASBOX
8482## ------------------------------------ ##
8483## Report this to bug-autoconf@gnu.org. ##
8484## ------------------------------------ ##
8485_ASBOX
8486 ) |
8487 sed "s/^/$as_me: WARNING: /" >&2
8488 ;;
8489 no:yes )
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8496 (
8497 cat <<\_ASBOX
8498## ------------------------------------ ##
8499## Report this to bug-autoconf@gnu.org. ##
8500## ------------------------------------ ##
8501_ASBOX
8502 ) |
8503 sed "s/^/$as_me: WARNING: /" >&2
8504 ;;
8505esac
8506echo "$as_me:$LINENO: checking for $ac_header" >&5
8507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511 eval "$as_ac_Header=$ac_header_preproc"
8512fi
8513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515
8516fi
8517if test `eval echo '${'$as_ac_Header'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8520_ACEOF
8521
8522fi
8523
8524done
8525
8526
8527# Check for netlink and rtnetlink headers
8528
8529
8530for ac_header in linux/netlink.h linux/rtnetlink.h
8531do
8532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8533if eval "test \"\${$as_ac_Header+set}\" = set"; then
8534 echo "$as_me:$LINENO: checking for $ac_header" >&5
8535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8536if eval "test \"\${$as_ac_Header+set}\" = set"; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538fi
8539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8541else
8542 # Is the header compilable?
8543echo "$as_me:$LINENO: checking $ac_header usability" >&5
8544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8545cat >conftest.$ac_ext <<_ACEOF
8546#line $LINENO "configure"
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
8552$ac_includes_default
8553#include <$ac_header>
8554_ACEOF
8555rm -f conftest.$ac_objext
8556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_header_compiler=yes
8568else
8569 echo "$as_me: failed program was:" >&5
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572ac_header_compiler=no
8573fi
8574rm -f conftest.$ac_objext conftest.$ac_ext
8575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8576echo "${ECHO_T}$ac_header_compiler" >&6
8577
8578# Is the header present?
8579echo "$as_me:$LINENO: checking $ac_header presence" >&5
8580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8581cat >conftest.$ac_ext <<_ACEOF
8582#line $LINENO "configure"
8583/* confdefs.h. */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h. */
8588#include <$ac_header>
8589_ACEOF
8590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } >/dev/null; then
8598 if test -s conftest.err; then
8599 ac_cpp_err=$ac_c_preproc_warn_flag
8600 else
8601 ac_cpp_err=
8602 fi
8603else
8604 ac_cpp_err=yes
8605fi
8606if test -z "$ac_cpp_err"; then
8607 ac_header_preproc=yes
8608else
8609 echo "$as_me: failed program was:" >&5
8610sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_header_preproc=no
8613fi
8614rm -f conftest.err conftest.$ac_ext
8615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8616echo "${ECHO_T}$ac_header_preproc" >&6
8617
8618# So? What about this header?
8619case $ac_header_compiler:$ac_header_preproc in
8620 yes:no )
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8625 (
8626 cat <<\_ASBOX
8627## ------------------------------------ ##
8628## Report this to bug-autoconf@gnu.org. ##
8629## ------------------------------------ ##
8630_ASBOX
8631 ) |
8632 sed "s/^/$as_me: WARNING: /" >&2
8633 ;;
8634 no:yes )
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8638echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8641 (
8642 cat <<\_ASBOX
8643## ------------------------------------ ##
8644## Report this to bug-autoconf@gnu.org. ##
8645## ------------------------------------ ##
8646_ASBOX
8647 ) |
8648 sed "s/^/$as_me: WARNING: /" >&2
8649 ;;
8650esac
8651echo "$as_me:$LINENO: checking for $ac_header" >&5
8652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8653if eval "test \"\${$as_ac_Header+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655else
8656 eval "$as_ac_Header=$ac_header_preproc"
8657fi
8658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8660
8661fi
8662if test `eval echo '${'$as_ac_Header'}'` = yes; then
8663 cat >>confdefs.h <<_ACEOF
8664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8665_ACEOF
8666
8667fi
8668
8669done
8670
8671
8672
jjako286bc982003-01-28 23:17:50 +00008673# Checks for typedefs, structures, and compiler characteristics.
jjako286bc982003-01-28 23:17:50 +00008674echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8675echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8676if test "${ac_cv_c_const+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679 cat >conftest.$ac_ext <<_ACEOF
8680#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008686
jjako286bc982003-01-28 23:17:50 +00008687int
8688main ()
8689{
8690/* FIXME: Include the comments suggested by Paul. */
8691#ifndef __cplusplus
8692 /* Ultrix mips cc rejects this. */
8693 typedef int charset[2];
8694 const charset x;
8695 /* SunOS 4.1.1 cc rejects this. */
8696 char const *const *ccp;
8697 char **p;
8698 /* NEC SVR4.0.2 mips cc rejects this. */
8699 struct point {int x, y;};
8700 static struct point const zero = {0,0};
8701 /* AIX XL C 1.02.0.0 rejects this.
8702 It does not let you subtract one const X* pointer from another in
8703 an arm of an if-expression whose if-part is not a constant
8704 expression */
8705 const char *g = "string";
8706 ccp = &g + (g ? g-g : 0);
8707 /* HPUX 7.0 cc rejects these. */
8708 ++ccp;
8709 p = (char**) ccp;
8710 ccp = (char const *const *) p;
8711 { /* SCO 3.2v4 cc rejects this. */
8712 char *t;
8713 char const *s = 0 ? (char *) 0 : (char const *) 0;
jjako52c24142002-12-16 13:33:51 +00008714
jjako286bc982003-01-28 23:17:50 +00008715 *t++ = 0;
8716 }
8717 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8718 int x[] = {25, 17};
8719 const int *foo = &x[0];
8720 ++foo;
8721 }
8722 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8723 typedef const int *iptr;
8724 iptr p = 0;
8725 ++p;
8726 }
8727 { /* AIX XL C 1.02.0.0 rejects this saying
8728 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8729 struct s { int j; const int *ap[3]; };
8730 struct s *b; b->j = 5;
8731 }
8732 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8733 const int foo = 10;
8734 }
8735#endif
jjako52c24142002-12-16 13:33:51 +00008736
jjako286bc982003-01-28 23:17:50 +00008737 ;
8738 return 0;
jjako52c24142002-12-16 13:33:51 +00008739}
jjako286bc982003-01-28 23:17:50 +00008740_ACEOF
8741rm -f conftest.$ac_objext
8742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -s conftest.$ac_objext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008753 ac_cv_c_const=yes
8754else
jjako286bc982003-01-28 23:17:50 +00008755 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008756sed 's/^/| /' conftest.$ac_ext >&5
8757
jjako286bc982003-01-28 23:17:50 +00008758ac_cv_c_const=no
jjako52c24142002-12-16 13:33:51 +00008759fi
jjako286bc982003-01-28 23:17:50 +00008760rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008761fi
jjako286bc982003-01-28 23:17:50 +00008762echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8763echo "${ECHO_T}$ac_cv_c_const" >&6
jjako52c24142002-12-16 13:33:51 +00008764if test $ac_cv_c_const = no; then
jjako286bc982003-01-28 23:17:50 +00008765
8766cat >>confdefs.h <<\_ACEOF
8767#define const
8768_ACEOF
jjako52c24142002-12-16 13:33:51 +00008769
8770fi
8771
jjako286bc982003-01-28 23:17:50 +00008772echo "$as_me:$LINENO: checking for mode_t" >&5
8773echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
8774if test "${ac_cv_type_mode_t+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008776else
jjako286bc982003-01-28 23:17:50 +00008777 cat >conftest.$ac_ext <<_ACEOF
8778#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008779/* confdefs.h. */
8780_ACEOF
8781cat confdefs.h >>conftest.$ac_ext
8782cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008784$ac_includes_default
jjako286bc982003-01-28 23:17:50 +00008785int
8786main ()
8787{
8788if ((mode_t *) 0)
8789 return 0;
8790if (sizeof (mode_t))
8791 return 0;
8792 ;
8793 return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext
8797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798 (eval $ac_compile) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_type_mode_t=yes
8809else
8810 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008811sed 's/^/| /' conftest.$ac_ext >&5
8812
jjako286bc982003-01-28 23:17:50 +00008813ac_cv_type_mode_t=no
8814fi
8815rm -f conftest.$ac_objext conftest.$ac_ext
8816fi
8817echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8818echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8819if test $ac_cv_type_mode_t = yes; then
8820 :
8821else
8822
8823cat >>confdefs.h <<_ACEOF
8824#define mode_t int
8825_ACEOF
8826
8827fi
8828
8829echo "$as_me:$LINENO: checking for size_t" >&5
8830echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8831if test "${ac_cv_type_size_t+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833else
8834 cat >conftest.$ac_ext <<_ACEOF
8835#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008836/* confdefs.h. */
8837_ACEOF
8838cat confdefs.h >>conftest.$ac_ext
8839cat >>conftest.$ac_ext <<_ACEOF
8840/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00008841$ac_includes_default
jjako286bc982003-01-28 23:17:50 +00008842int
8843main ()
8844{
8845if ((size_t *) 0)
8846 return 0;
8847if (sizeof (size_t))
8848 return 0;
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853rm -f conftest.$ac_objext
8854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8855 (eval $ac_compile) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008865 ac_cv_type_size_t=yes
8866else
jjako286bc982003-01-28 23:17:50 +00008867 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008868sed 's/^/| /' conftest.$ac_ext >&5
8869
jjako286bc982003-01-28 23:17:50 +00008870ac_cv_type_size_t=no
jjako52c24142002-12-16 13:33:51 +00008871fi
jjako286bc982003-01-28 23:17:50 +00008872rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008873fi
jjako286bc982003-01-28 23:17:50 +00008874echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8875echo "${ECHO_T}$ac_cv_type_size_t" >&6
8876if test $ac_cv_type_size_t = yes; then
8877 :
jjako52c24142002-12-16 13:33:51 +00008878else
jjako286bc982003-01-28 23:17:50 +00008879
8880cat >>confdefs.h <<_ACEOF
8881#define size_t unsigned
8882_ACEOF
8883
8884fi
8885
8886echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8887echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8888if test "${ac_cv_header_time+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891 cat >conftest.$ac_ext <<_ACEOF
8892#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00008893/* confdefs.h. */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00008898#include <sys/types.h>
8899#include <sys/time.h>
8900#include <time.h>
jjako286bc982003-01-28 23:17:50 +00008901
jjako286bc982003-01-28 23:17:50 +00008902int
8903main ()
8904{
8905if ((struct tm *) 0)
8906return 0;
8907 ;
8908 return 0;
8909}
8910_ACEOF
8911rm -f conftest.$ac_objext
8912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913 (eval $ac_compile) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -s conftest.$ac_objext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008923 ac_cv_header_time=yes
8924else
jjako286bc982003-01-28 23:17:50 +00008925 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00008926sed 's/^/| /' conftest.$ac_ext >&5
8927
jjako286bc982003-01-28 23:17:50 +00008928ac_cv_header_time=no
jjako52c24142002-12-16 13:33:51 +00008929fi
jjako286bc982003-01-28 23:17:50 +00008930rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008931fi
jjako286bc982003-01-28 23:17:50 +00008932echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8933echo "${ECHO_T}$ac_cv_header_time" >&6
jjako52c24142002-12-16 13:33:51 +00008934if test $ac_cv_header_time = yes; then
jjako286bc982003-01-28 23:17:50 +00008935
8936cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008937#define TIME_WITH_SYS_TIME 1
jjako286bc982003-01-28 23:17:50 +00008938_ACEOF
jjako52c24142002-12-16 13:33:51 +00008939
8940fi
8941
8942
jjako77edc822004-09-10 17:19:31 +00008943# check for ifaliasreq
8944echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
8945echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
8946
8947
8948cat >conftest.$ac_ext <<_ACEOF
8949#line $LINENO "configure"
8950/* confdefs.h. */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h. */
8955#include <net/if.h>
8956
8957_ACEOF
8958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8959 $EGREP "ifaliasreq" >/dev/null 2>&1; then
8960 echo "$as_me:$LINENO: result: yes" >&5
8961echo "${ECHO_T}yes" >&6
8962 cat >>confdefs.h <<\_ACEOF
8963#define HAVE_IFALIASREQ 1
8964_ACEOF
8965
8966else
8967 echo "$as_me:$LINENO: result: no" >&5
8968echo "${ECHO_T}no" >&6
8969fi
8970rm -f conftest*
8971
8972
8973# check for ifreq.ifru_netmask
8974echo "$as_me:$LINENO: checking whether struct ifreq.ifru_netmask exist" >&5
8975echo $ECHO_N "checking whether struct ifreq.ifru_netmask exist... $ECHO_C" >&6
8976
8977
8978cat >conftest.$ac_ext <<_ACEOF
8979#line $LINENO "configure"
8980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
8985#include <linux/if.h>
8986
8987_ACEOF
8988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8989 $EGREP "ifru_netmask" >/dev/null 2>&1; then
8990 echo "$as_me:$LINENO: result: yes" >&5
8991echo "${ECHO_T}yes" >&6
8992 cat >>confdefs.h <<\_ACEOF
8993#define HAVE_IFREQ_IFRU_NETMASK 1
8994_ACEOF
8995
8996else
8997 echo "$as_me:$LINENO: result: no" >&5
8998echo "${ECHO_T}no" >&6
8999fi
9000rm -f conftest*
9001
9002
9003
9004# check for rt_msghdr
9005echo "$as_me:$LINENO: checking whether struct rt_msghdr exist" >&5
9006echo $ECHO_N "checking whether struct rt_msghdr exist... $ECHO_C" >&6
9007
9008
9009cat >conftest.$ac_ext <<_ACEOF
9010#line $LINENO "configure"
9011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h. */
9016#include <net/route.h>
9017
9018_ACEOF
9019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9020 $EGREP "rt_msghdr" >/dev/null 2>&1; then
9021 echo "$as_me:$LINENO: result: yes" >&5
9022echo "${ECHO_T}yes" >&6
9023 cat >>confdefs.h <<\_ACEOF
9024#define HAVE_RT_MSGHDR 1
9025_ACEOF
9026
9027else
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
9030fi
9031rm -f conftest*
9032
9033
9034
jjako286bc982003-01-28 23:17:50 +00009035# Checks for library functions.
9036if test $ac_cv_c_compiler_gnu = yes; then
9037 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
9038echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
9039if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009041else
9042 ac_pattern="Autoconf.*'x'"
jjako286bc982003-01-28 23:17:50 +00009043 cat >conftest.$ac_ext <<_ACEOF
9044#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00009045/* confdefs.h. */
9046_ACEOF
9047cat confdefs.h >>conftest.$ac_ext
9048cat >>conftest.$ac_ext <<_ACEOF
9049/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00009050#include <sgtty.h>
9051Autoconf TIOCGETP
jjako286bc982003-01-28 23:17:50 +00009052_ACEOF
jjako52c24142002-12-16 13:33:51 +00009053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00009054 $EGREP "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00009055 ac_cv_prog_gcc_traditional=yes
9056else
jjako52c24142002-12-16 13:33:51 +00009057 ac_cv_prog_gcc_traditional=no
9058fi
9059rm -f conftest*
9060
9061
9062 if test $ac_cv_prog_gcc_traditional = no; then
jjako286bc982003-01-28 23:17:50 +00009063 cat >conftest.$ac_ext <<_ACEOF
9064#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00009065/* confdefs.h. */
9066_ACEOF
9067cat confdefs.h >>conftest.$ac_ext
9068cat >>conftest.$ac_ext <<_ACEOF
9069/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00009070#include <termio.h>
9071Autoconf TCGETA
jjako286bc982003-01-28 23:17:50 +00009072_ACEOF
jjako52c24142002-12-16 13:33:51 +00009073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jjako08d331d2003-10-13 20:33:30 +00009074 $EGREP "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00009075 ac_cv_prog_gcc_traditional=yes
9076fi
9077rm -f conftest*
9078
9079 fi
9080fi
jjako286bc982003-01-28 23:17:50 +00009081echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
9082echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
jjako52c24142002-12-16 13:33:51 +00009083 if test $ac_cv_prog_gcc_traditional = yes; then
9084 CC="$CC -traditional"
9085 fi
9086fi
9087
jjako286bc982003-01-28 23:17:50 +00009088
9089for ac_header in stdlib.h
9090do
9091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9092if eval "test \"\${$as_ac_Header+set}\" = set"; then
9093 echo "$as_me:$LINENO: checking for $ac_header" >&5
9094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9095if eval "test \"\${$as_ac_Header+set}\" = set"; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097fi
9098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00009100else
jjako286bc982003-01-28 23:17:50 +00009101 # Is the header compilable?
9102echo "$as_me:$LINENO: checking $ac_header usability" >&5
9103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9104cat >conftest.$ac_ext <<_ACEOF
9105#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00009106/* confdefs.h. */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
9110/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00009111$ac_includes_default
9112#include <$ac_header>
9113_ACEOF
9114rm -f conftest.$ac_objext
9115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9116 (eval $ac_compile) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -s conftest.$ac_objext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00009127else
jjako286bc982003-01-28 23:17:50 +00009128 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00009129sed 's/^/| /' conftest.$ac_ext >&5
9130
jjako286bc982003-01-28 23:17:50 +00009131ac_header_compiler=no
jjako52c24142002-12-16 13:33:51 +00009132fi
jjako286bc982003-01-28 23:17:50 +00009133rm -f conftest.$ac_objext conftest.$ac_ext
9134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9135echo "${ECHO_T}$ac_header_compiler" >&6
jjako52c24142002-12-16 13:33:51 +00009136
jjako286bc982003-01-28 23:17:50 +00009137# Is the header present?
9138echo "$as_me:$LINENO: checking $ac_header presence" >&5
9139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9140cat >conftest.$ac_ext <<_ACEOF
9141#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00009142/* confdefs.h. */
9143_ACEOF
9144cat confdefs.h >>conftest.$ac_ext
9145cat >>conftest.$ac_ext <<_ACEOF
9146/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00009147#include <$ac_header>
9148_ACEOF
9149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9151 ac_status=$?
jjako08d331d2003-10-13 20:33:30 +00009152 grep -v '^ *+' conftest.er1 >conftest.err
jjako286bc982003-01-28 23:17:50 +00009153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } >/dev/null; then
9157 if test -s conftest.err; then
9158 ac_cpp_err=$ac_c_preproc_warn_flag
9159 else
9160 ac_cpp_err=
9161 fi
jjako52c24142002-12-16 13:33:51 +00009162else
jjako286bc982003-01-28 23:17:50 +00009163 ac_cpp_err=yes
9164fi
9165if test -z "$ac_cpp_err"; then
9166 ac_header_preproc=yes
9167else
9168 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00009169sed 's/^/| /' conftest.$ac_ext >&5
9170
jjako286bc982003-01-28 23:17:50 +00009171 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00009172fi
jjako286bc982003-01-28 23:17:50 +00009173rm -f conftest.err conftest.$ac_ext
9174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9175echo "${ECHO_T}$ac_header_preproc" >&6
jjako52c24142002-12-16 13:33:51 +00009176
jjako286bc982003-01-28 23:17:50 +00009177# So? What about this header?
9178case $ac_header_compiler:$ac_header_preproc in
9179 yes:no )
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00009183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9184 (
9185 cat <<\_ASBOX
9186## ------------------------------------ ##
9187## Report this to bug-autoconf@gnu.org. ##
9188## ------------------------------------ ##
9189_ASBOX
9190 ) |
9191 sed "s/^/$as_me: WARNING: /" >&2
9192 ;;
jjako286bc982003-01-28 23:17:50 +00009193 no:yes )
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
jjako08d331d2003-10-13 20:33:30 +00009199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9200 (
9201 cat <<\_ASBOX
9202## ------------------------------------ ##
9203## Report this to bug-autoconf@gnu.org. ##
9204## ------------------------------------ ##
9205_ASBOX
9206 ) |
9207 sed "s/^/$as_me: WARNING: /" >&2
9208 ;;
jjako286bc982003-01-28 23:17:50 +00009209esac
9210echo "$as_me:$LINENO: checking for $ac_header" >&5
9211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9212if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009214else
jjako286bc982003-01-28 23:17:50 +00009215 eval "$as_ac_Header=$ac_header_preproc"
9216fi
9217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9219
9220fi
9221if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222 cat >>confdefs.h <<_ACEOF
9223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9224_ACEOF
9225
jjako52c24142002-12-16 13:33:51 +00009226fi
9227
jjako286bc982003-01-28 23:17:50 +00009228done
9229
jjako08d331d2003-10-13 20:33:30 +00009230echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9231echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9232if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00009233 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009234else
9235 if test "$cross_compiling" = yes; then
jjako08d331d2003-10-13 20:33:30 +00009236 ac_cv_func_malloc_0_nonnull=no
jjako52c24142002-12-16 13:33:51 +00009237else
jjako286bc982003-01-28 23:17:50 +00009238 cat >conftest.$ac_ext <<_ACEOF
9239#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00009240/* confdefs.h. */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h. */
jjako286bc982003-01-28 23:17:50 +00009245#if STDC_HEADERS || HAVE_STDLIB_H
9246# include <stdlib.h>
jjako52c24142002-12-16 13:33:51 +00009247#else
jjako286bc982003-01-28 23:17:50 +00009248char *malloc ();
jjako52c24142002-12-16 13:33:51 +00009249#endif
9250
jjako286bc982003-01-28 23:17:50 +00009251int
9252main ()
jjako52c24142002-12-16 13:33:51 +00009253{
jjako286bc982003-01-28 23:17:50 +00009254exit (malloc (0) ? 0 : 1);
9255 ;
9256 return 0;
jjako52c24142002-12-16 13:33:51 +00009257}
jjako286bc982003-01-28 23:17:50 +00009258_ACEOF
9259rm -f conftest$ac_exeext
9260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
jjako08d331d2003-10-13 20:33:30 +00009270 ac_cv_func_malloc_0_nonnull=yes
jjako52c24142002-12-16 13:33:51 +00009271else
jjako286bc982003-01-28 23:17:50 +00009272 echo "$as_me: program exited with status $ac_status" >&5
9273echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00009274sed 's/^/| /' conftest.$ac_ext >&5
9275
jjako286bc982003-01-28 23:17:50 +00009276( exit $ac_status )
jjako08d331d2003-10-13 20:33:30 +00009277ac_cv_func_malloc_0_nonnull=no
jjako52c24142002-12-16 13:33:51 +00009278fi
jjako08d331d2003-10-13 20:33:30 +00009279rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00009280fi
jjako286bc982003-01-28 23:17:50 +00009281fi
jjako08d331d2003-10-13 20:33:30 +00009282echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9283echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9284if test $ac_cv_func_malloc_0_nonnull = yes; then
jjako286bc982003-01-28 23:17:50 +00009285
9286cat >>confdefs.h <<\_ACEOF
9287#define HAVE_MALLOC 1
9288_ACEOF
jjako52c24142002-12-16 13:33:51 +00009289
jjako08d331d2003-10-13 20:33:30 +00009290else
9291 cat >>confdefs.h <<\_ACEOF
9292#define HAVE_MALLOC 0
9293_ACEOF
9294
9295 LIBOBJS="$LIBOBJS malloc.$ac_objext"
9296
9297cat >>confdefs.h <<\_ACEOF
9298#define malloc rpl_malloc
9299_ACEOF
9300
jjako52c24142002-12-16 13:33:51 +00009301fi
9302
jjako08d331d2003-10-13 20:33:30 +00009303
9304
jjako1d3db972004-01-16 09:56:56 +00009305# AC_FUNC_MEMCMP
jjako286bc982003-01-28 23:17:50 +00009306
9307
9308
9309
9310
9311
9312
9313
9314for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol
jjako52c24142002-12-16 13:33:51 +00009315do
jjako286bc982003-01-28 23:17:50 +00009316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9317echo "$as_me:$LINENO: checking for $ac_func" >&5
9318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9319if eval "test \"\${$as_ac_var+set}\" = set"; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009321else
jjako286bc982003-01-28 23:17:50 +00009322 cat >conftest.$ac_ext <<_ACEOF
9323#line $LINENO "configure"
jjako08d331d2003-10-13 20:33:30 +00009324/* confdefs.h. */
9325_ACEOF
9326cat confdefs.h >>conftest.$ac_ext
9327cat >>conftest.$ac_ext <<_ACEOF
9328/* end confdefs.h. */
jjako52c24142002-12-16 13:33:51 +00009329/* System header to define __stub macros and hopefully few prototypes,
jjako08d331d2003-10-13 20:33:30 +00009330 which can conflict with char $ac_func (); below.
9331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9332 <limits.h> exists even on freestanding compilers. */
9333#ifdef __STDC__
9334# include <limits.h>
9335#else
9336# include <assert.h>
9337#endif
jjako52c24142002-12-16 13:33:51 +00009338/* Override any gcc2 internal prototype to avoid an error. */
jjako286bc982003-01-28 23:17:50 +00009339#ifdef __cplusplus
9340extern "C"
jjako08d331d2003-10-13 20:33:30 +00009341{
jjako286bc982003-01-28 23:17:50 +00009342#endif
jjako52c24142002-12-16 13:33:51 +00009343/* We use char because int might match the return type of a gcc2
jjako286bc982003-01-28 23:17:50 +00009344 builtin and then its argument prototype would still apply. */
9345char $ac_func ();
jjako52c24142002-12-16 13:33:51 +00009346/* The GNU C library defines this for functions which it implements
9347 to always fail with ENOSYS. Some functions are actually named
9348 something starting with __ and the normal name is an alias. */
9349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9350choke me
9351#else
jjako08d331d2003-10-13 20:33:30 +00009352char (*f) () = $ac_func;
9353#endif
9354#ifdef __cplusplus
9355}
jjako52c24142002-12-16 13:33:51 +00009356#endif
9357
jjako08d331d2003-10-13 20:33:30 +00009358int
9359main ()
9360{
9361return f != $ac_func;
jjako286bc982003-01-28 23:17:50 +00009362 ;
9363 return 0;
9364}
9365_ACEOF
9366rm -f conftest.$ac_objext conftest$ac_exeext
9367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 eval "$as_ac_var=yes"
jjako52c24142002-12-16 13:33:51 +00009379else
jjako286bc982003-01-28 23:17:50 +00009380 echo "$as_me: failed program was:" >&5
jjako08d331d2003-10-13 20:33:30 +00009381sed 's/^/| /' conftest.$ac_ext >&5
9382
jjako286bc982003-01-28 23:17:50 +00009383eval "$as_ac_var=no"
jjako52c24142002-12-16 13:33:51 +00009384fi
jjako286bc982003-01-28 23:17:50 +00009385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00009386fi
jjako286bc982003-01-28 23:17:50 +00009387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9389if test `eval echo '${'$as_ac_var'}'` = yes; then
9390 cat >>confdefs.h <<_ACEOF
9391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9392_ACEOF
jjako52c24142002-12-16 13:33:51 +00009393
jjako52c24142002-12-16 13:33:51 +00009394fi
9395done
9396
9397
jjako1d3db972004-01-16 09:56:56 +00009398
9399for ac_func in inet_aton inet_addr
9400do
9401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9402echo "$as_me:$LINENO: checking for $ac_func" >&5
9403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9404if eval "test \"\${$as_ac_var+set}\" = set"; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406else
9407 cat >conftest.$ac_ext <<_ACEOF
9408#line $LINENO "configure"
9409/* confdefs.h. */
9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
9414/* System header to define __stub macros and hopefully few prototypes,
9415 which can conflict with char $ac_func (); below.
9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417 <limits.h> exists even on freestanding compilers. */
9418#ifdef __STDC__
9419# include <limits.h>
9420#else
9421# include <assert.h>
9422#endif
9423/* Override any gcc2 internal prototype to avoid an error. */
9424#ifdef __cplusplus
9425extern "C"
9426{
9427#endif
9428/* We use char because int might match the return type of a gcc2
9429 builtin and then its argument prototype would still apply. */
9430char $ac_func ();
9431/* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9435choke me
9436#else
9437char (*f) () = $ac_func;
9438#endif
9439#ifdef __cplusplus
9440}
9441#endif
9442
9443int
9444main ()
9445{
9446return f != $ac_func;
9447 ;
9448 return 0;
9449}
9450_ACEOF
9451rm -f conftest.$ac_objext conftest$ac_exeext
9452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 eval "$as_ac_var=yes"
9464else
9465 echo "$as_me: failed program was:" >&5
9466sed 's/^/| /' conftest.$ac_ext >&5
9467
9468eval "$as_ac_var=no"
9469fi
9470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9471fi
9472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9474if test `eval echo '${'$as_ac_var'}'` = yes; then
9475 cat >>confdefs.h <<_ACEOF
9476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9477_ACEOF
9478 break
9479fi
9480done
9481
9482
9483# check for getopt in standard library
9484 # clean out junk possibly left behind by a previous configuration
9485 rm -f lib/getopt.h
9486 # Check for getopt_long support
9487
9488for ac_header in getopt.h
9489do
9490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9491if eval "test \"\${$as_ac_Header+set}\" = set"; then
9492 echo "$as_me:$LINENO: checking for $ac_header" >&5
9493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9494if eval "test \"\${$as_ac_Header+set}\" = set"; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496fi
9497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9499else
9500 # Is the header compilable?
9501echo "$as_me:$LINENO: checking $ac_header usability" >&5
9502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9503cat >conftest.$ac_ext <<_ACEOF
9504#line $LINENO "configure"
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510$ac_includes_default
9511#include <$ac_header>
9512_ACEOF
9513rm -f conftest.$ac_objext
9514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -s conftest.$ac_objext'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then
9525 ac_header_compiler=yes
9526else
9527 echo "$as_me: failed program was:" >&5
9528sed 's/^/| /' conftest.$ac_ext >&5
9529
9530ac_header_compiler=no
9531fi
9532rm -f conftest.$ac_objext conftest.$ac_ext
9533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9534echo "${ECHO_T}$ac_header_compiler" >&6
9535
9536# Is the header present?
9537echo "$as_me:$LINENO: checking $ac_header presence" >&5
9538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9539cat >conftest.$ac_ext <<_ACEOF
9540#line $LINENO "configure"
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546#include <$ac_header>
9547_ACEOF
9548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } >/dev/null; then
9556 if test -s conftest.err; then
9557 ac_cpp_err=$ac_c_preproc_warn_flag
9558 else
9559 ac_cpp_err=
9560 fi
9561else
9562 ac_cpp_err=yes
9563fi
9564if test -z "$ac_cpp_err"; then
9565 ac_header_preproc=yes
9566else
9567 echo "$as_me: failed program was:" >&5
9568sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ac_header_preproc=no
9571fi
9572rm -f conftest.err conftest.$ac_ext
9573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9574echo "${ECHO_T}$ac_header_preproc" >&6
9575
9576# So? What about this header?
9577case $ac_header_compiler:$ac_header_preproc in
9578 yes:no )
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9583 (
9584 cat <<\_ASBOX
9585## ------------------------------------ ##
9586## Report this to bug-autoconf@gnu.org. ##
9587## ------------------------------------ ##
9588_ASBOX
9589 ) |
9590 sed "s/^/$as_me: WARNING: /" >&2
9591 ;;
9592 no:yes )
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9599 (
9600 cat <<\_ASBOX
9601## ------------------------------------ ##
9602## Report this to bug-autoconf@gnu.org. ##
9603## ------------------------------------ ##
9604_ASBOX
9605 ) |
9606 sed "s/^/$as_me: WARNING: /" >&2
9607 ;;
9608esac
9609echo "$as_me:$LINENO: checking for $ac_header" >&5
9610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9611if eval "test \"\${$as_ac_Header+set}\" = set"; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614 eval "$as_ac_Header=$ac_header_preproc"
9615fi
9616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9618
9619fi
9620if test `eval echo '${'$as_ac_Header'}'` = yes; then
9621 cat >>confdefs.h <<_ACEOF
9622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9623_ACEOF
9624
9625fi
9626
9627done
9628
9629
9630for ac_func in getopt_long
9631do
9632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9633echo "$as_me:$LINENO: checking for $ac_func" >&5
9634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9635if eval "test \"\${$as_ac_var+set}\" = set"; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638 cat >conftest.$ac_ext <<_ACEOF
9639#line $LINENO "configure"
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645/* System header to define __stub macros and hopefully few prototypes,
9646 which can conflict with char $ac_func (); below.
9647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9648 <limits.h> exists even on freestanding compilers. */
9649#ifdef __STDC__
9650# include <limits.h>
9651#else
9652# include <assert.h>
9653#endif
9654/* Override any gcc2 internal prototype to avoid an error. */
9655#ifdef __cplusplus
9656extern "C"
9657{
9658#endif
9659/* We use char because int might match the return type of a gcc2
9660 builtin and then its argument prototype would still apply. */
9661char $ac_func ();
9662/* The GNU C library defines this for functions which it implements
9663 to always fail with ENOSYS. Some functions are actually named
9664 something starting with __ and the normal name is an alias. */
9665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9666choke me
9667#else
9668char (*f) () = $ac_func;
9669#endif
9670#ifdef __cplusplus
9671}
9672#endif
9673
9674int
9675main ()
9676{
9677return f != $ac_func;
9678 ;
9679 return 0;
9680}
9681_ACEOF
9682rm -f conftest.$ac_objext conftest$ac_exeext
9683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684 (eval $ac_link) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } &&
9688 { ac_try='test -s conftest$ac_exeext'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 eval "$as_ac_var=yes"
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
9699eval "$as_ac_var=no"
9700fi
9701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9702fi
9703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9705if test `eval echo '${'$as_ac_var'}'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9708_ACEOF
9709
9710else
9711 # FreeBSD has a gnugetopt library for this
9712 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
9713echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
9714if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 ac_check_lib_save_LIBS=$LIBS
9718LIBS="-lgnugetopt $LIBS"
9719cat >conftest.$ac_ext <<_ACEOF
9720#line $LINENO "configure"
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
9726
9727/* Override any gcc2 internal prototype to avoid an error. */
9728#ifdef __cplusplus
9729extern "C"
9730#endif
9731/* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733char getopt_long ();
9734int
9735main ()
9736{
9737getopt_long ();
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_lib_gnugetopt_getopt_long=yes
9755else
9756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759ac_cv_lib_gnugetopt_getopt_long=no
9760fi
9761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9762LIBS=$ac_check_lib_save_LIBS
9763fi
9764echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
9765echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
9766if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
9767 cat >>confdefs.h <<\_ACEOF
9768#define HAVE_GETOPT_LONG 1
9769_ACEOF
9770
9771else
9772 # use the GNU replacement
9773 LIBOBJS="$LIBOBJS getopt.$ac_objext"
9774 LIBOBJS="$LIBOBJS getopt1.$ac_objext"
9775 ac_config_links="$ac_config_links ggsn/getopt.h:ggsn/gnugetopt.h"
9776
9777 ac_config_links="$ac_config_links sgsnemu/getopt.h:sgsnemu/gnugetopt.h"
9778
9779fi
9780
9781fi
9782done
9783
9784
jjako286bc982003-01-28 23:17:50 +00009785am__api_version="1.6"
9786echo "$as_me:$LINENO: checking whether build environment is sane" >&5
9787echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009788# Just in case
9789sleep 1
jjako286bc982003-01-28 23:17:50 +00009790echo timestamp > conftest.file
jjako52c24142002-12-16 13:33:51 +00009791# Do `set' in a subshell so we don't clobber the current shell's
9792# arguments. Must try -L first in case configure is actually a
9793# symlink; some systems play weird games with the mod time of symlinks
9794# (eg FreeBSD returns the mod time of the symlink's containing
9795# directory).
9796if (
jjako286bc982003-01-28 23:17:50 +00009797 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
jjako52c24142002-12-16 13:33:51 +00009798 if test "$*" = "X"; then
9799 # -L didn't work.
jjako286bc982003-01-28 23:17:50 +00009800 set X `ls -t $srcdir/configure conftest.file`
jjako52c24142002-12-16 13:33:51 +00009801 fi
jjako286bc982003-01-28 23:17:50 +00009802 rm -f conftest.file
9803 if test "$*" != "X $srcdir/configure conftest.file" \
9804 && test "$*" != "X conftest.file $srcdir/configure"; then
jjako52c24142002-12-16 13:33:51 +00009805
9806 # If neither matched, then we have a broken ls. This can happen
9807 # if, for instance, CONFIG_SHELL is bash and it inherits a
9808 # broken ls alias from the environment. This has actually
9809 # happened. Such a system could not be considered "sane".
jjako286bc982003-01-28 23:17:50 +00009810 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
9811alias in your environment" >&5
9812echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
9813alias in your environment" >&2;}
9814 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00009815 fi
9816
jjako286bc982003-01-28 23:17:50 +00009817 test "$2" = conftest.file
jjako52c24142002-12-16 13:33:51 +00009818 )
9819then
9820 # Ok.
9821 :
9822else
jjako286bc982003-01-28 23:17:50 +00009823 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
9824Check your system clock" >&5
9825echo "$as_me: error: newly created file is older than distributed files!
9826Check your system clock" >&2;}
9827 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00009828fi
jjako286bc982003-01-28 23:17:50 +00009829echo "$as_me:$LINENO: result: yes" >&5
9830echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00009831test "$program_prefix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00009832 program_transform_name="s,^,$program_prefix,;$program_transform_name"
jjako52c24142002-12-16 13:33:51 +00009833# Use a double $ so make ignores it.
9834test "$program_suffix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00009835 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9836# Double any \ or $. echo might interpret backslashes.
9837# By default was `s,x,x', remove it if useless.
9838cat <<\_ACEOF >conftest.sed
9839s/[\\$]/&&/g;s/;s,x,x,$//
9840_ACEOF
9841program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9842rm conftest.sed
jjako52c24142002-12-16 13:33:51 +00009843
jjako52c24142002-12-16 13:33:51 +00009844
jjako286bc982003-01-28 23:17:50 +00009845# expand $ac_aux_dir to an absolute path
9846am_aux_dir=`cd $ac_aux_dir && pwd`
9847
9848test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9849# Use eval to expand $SHELL
9850if eval "$MISSING --run true"; then
9851 am_missing_run="$MISSING --run "
jjako52c24142002-12-16 13:33:51 +00009852else
jjako286bc982003-01-28 23:17:50 +00009853 am_missing_run=
9854 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
9855echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
9856fi
9857
jjako08d331d2003-10-13 20:33:30 +00009858echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9859echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
jjako286bc982003-01-28 23:17:50 +00009860set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
9861if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 cat >conftest.make <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00009865all:
jjako08d331d2003-10-13 20:33:30 +00009866 @echo 'ac_maketemp="$(MAKE)"'
jjako286bc982003-01-28 23:17:50 +00009867_ACEOF
jjako52c24142002-12-16 13:33:51 +00009868# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
jjako286bc982003-01-28 23:17:50 +00009869eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
jjako52c24142002-12-16 13:33:51 +00009870if test -n "$ac_maketemp"; then
9871 eval ac_cv_prog_make_${ac_make}_set=yes
9872else
9873 eval ac_cv_prog_make_${ac_make}_set=no
9874fi
jjako286bc982003-01-28 23:17:50 +00009875rm -f conftest.make
jjako52c24142002-12-16 13:33:51 +00009876fi
9877if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
jjako286bc982003-01-28 23:17:50 +00009878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00009880 SET_MAKE=
9881else
jjako286bc982003-01-28 23:17:50 +00009882 echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00009884 SET_MAKE="MAKE=${MAKE-make}"
9885fi
9886
jjako286bc982003-01-28 23:17:50 +00009887rm -f .deps 2>/dev/null
9888mkdir .deps 2>/dev/null
9889if test -d .deps; then
9890 DEPDIR=.deps
9891else
9892 # MS-DOS does not allow filenames that begin with a dot.
9893 DEPDIR=_deps
jjako52c24142002-12-16 13:33:51 +00009894fi
jjako286bc982003-01-28 23:17:50 +00009895rmdir .deps 2>/dev/null
9896
9897
jjako08d331d2003-10-13 20:33:30 +00009898 ac_config_commands="$ac_config_commands depfiles"
jjako286bc982003-01-28 23:17:50 +00009899
9900
9901am_make=${MAKE-make}
9902cat > confinc << 'END'
9903doit:
9904 @echo done
9905END
9906# If we don't find an include directive, just comment out the code.
9907echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
9908echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
9909am__include="#"
9910am__quote=
9911_am_result=none
9912# First try GNU make style include.
9913echo "include confinc" > confmf
9914# We grep out `Entering directory' and `Leaving directory'
9915# messages which can occur if `w' ends up in MAKEFLAGS.
9916# In particular we don't look at `^make:' because GNU make might
9917# be invoked under some other name (usually "gmake"), in which
9918# case it prints its new name instead of `make'.
9919if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
9920 am__include=include
9921 am__quote=
9922 _am_result=GNU
9923fi
9924# Now try BSD make style include.
9925if test "$am__include" = "#"; then
9926 echo '.include "confinc"' > confmf
9927 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9928 am__include=.include
9929 am__quote="\""
9930 _am_result=BSD
9931 fi
9932fi
9933
9934
9935echo "$as_me:$LINENO: result: $_am_result" >&5
9936echo "${ECHO_T}$_am_result" >&6
9937rm -f confinc confmf
9938
9939# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
9940if test "${enable_dependency_tracking+set}" = set; then
9941 enableval="$enable_dependency_tracking"
9942
9943fi;
9944if test "x$enable_dependency_tracking" != xno; then
9945 am_depcomp="$ac_aux_dir/depcomp"
9946 AMDEPBACKSLASH='\'
9947fi
9948
9949
9950if test "x$enable_dependency_tracking" != xno; then
9951 AMDEP_TRUE=
9952 AMDEP_FALSE='#'
9953else
9954 AMDEP_TRUE='#'
9955 AMDEP_FALSE=
9956fi
9957
9958
9959
9960 # test to see if srcdir already configured
9961if test "`cd $srcdir && pwd`" != "`pwd`" &&
9962 test -f $srcdir/config.status; then
9963 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
9964echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
9965 { (exit 1); exit 1; }; }
9966fi
9967
9968# Define the identity of the package.
9969 PACKAGE=openggsn
jjakoe31b2402004-12-30 23:07:42 +00009970 VERSION=0.83
jjako286bc982003-01-28 23:17:50 +00009971
9972
9973cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00009974#define PACKAGE "$PACKAGE"
jjako286bc982003-01-28 23:17:50 +00009975_ACEOF
jjako52c24142002-12-16 13:33:51 +00009976
jjako286bc982003-01-28 23:17:50 +00009977
9978cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00009979#define VERSION "$VERSION"
jjako286bc982003-01-28 23:17:50 +00009980_ACEOF
9981
9982# Some tools Automake needs.
9983
9984ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
jjako52c24142002-12-16 13:33:51 +00009985
9986
jjako286bc982003-01-28 23:17:50 +00009987AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
jjako52c24142002-12-16 13:33:51 +00009988
jjako286bc982003-01-28 23:17:50 +00009989
9990AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9991
9992
9993AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9994
9995
9996MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9997
9998
9999AMTAR=${AMTAR-"${am_missing_run}tar"}
10000
10001install_sh=${install_sh-"$am_aux_dir/install-sh"}
10002
10003# Installed binaries are usually stripped using `strip' when the user
10004# run `make install-strip'. However `strip' might not be the right
10005# tool to use in cross-compilation environments, therefore Automake
10006# will honor the `STRIP' environment variable to overrule this program.
10007if test "$cross_compiling" != no; then
10008 if test -n "$ac_tool_prefix"; then
10009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10010set dummy ${ac_tool_prefix}strip; ac_word=$2
10011echo "$as_me:$LINENO: checking for $ac_word" >&5
10012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10013if test "${ac_cv_prog_STRIP+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000010015else
jjako286bc982003-01-28 23:17:50 +000010016 if test -n "$STRIP"; then
10017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10018else
10019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020for as_dir in $PATH
10021do
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10026 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 break 2
10029 fi
10030done
10031done
10032
10033fi
10034fi
10035STRIP=$ac_cv_prog_STRIP
10036if test -n "$STRIP"; then
10037 echo "$as_me:$LINENO: result: $STRIP" >&5
10038echo "${ECHO_T}$STRIP" >&6
10039else
10040 echo "$as_me:$LINENO: result: no" >&5
10041echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +000010042fi
10043
jjako286bc982003-01-28 23:17:50 +000010044fi
10045if test -z "$ac_cv_prog_STRIP"; then
10046 ac_ct_STRIP=$STRIP
10047 # Extract the first word of "strip", so it can be a program name with args.
10048set dummy strip; ac_word=$2
10049echo "$as_me:$LINENO: checking for $ac_word" >&5
10050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10051if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000010053else
jjako286bc982003-01-28 23:17:50 +000010054 if test -n "$ac_ct_STRIP"; then
10055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10056else
10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058for as_dir in $PATH
10059do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10064 ac_cv_prog_ac_ct_STRIP="strip"
10065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 break 2
10067 fi
10068done
10069done
10070
10071 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10072fi
10073fi
10074ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10075if test -n "$ac_ct_STRIP"; then
10076 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10077echo "${ECHO_T}$ac_ct_STRIP" >&6
10078else
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +000010081fi
10082
jjako286bc982003-01-28 23:17:50 +000010083 STRIP=$ac_ct_STRIP
jjako52c24142002-12-16 13:33:51 +000010084else
jjako286bc982003-01-28 23:17:50 +000010085 STRIP="$ac_cv_prog_STRIP"
jjako52c24142002-12-16 13:33:51 +000010086fi
10087
jjako286bc982003-01-28 23:17:50 +000010088fi
10089INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
10090
10091# We need awk for the "check" target. The system "awk" is bad on
10092# some platforms.
10093
10094
10095depcc="$CC" am_compiler_list=
10096
10097echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10098echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10099if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000010101else
jjako286bc982003-01-28 23:17:50 +000010102 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10103 # We make a subdir and do the tests there. Otherwise we can end up
10104 # making bogus files that we don't know about and never remove. For
10105 # instance it was reported that on HP-UX the gcc test will end up
10106 # making a dummy file named `D' -- because `-MD' means `put the output
10107 # in D'.
10108 mkdir conftest.dir
10109 # Copy depcomp to subdir because otherwise we won't find it if we're
10110 # using a relative directory.
10111 cp "$am_depcomp" conftest.dir
10112 cd conftest.dir
10113
10114 am_cv_CC_dependencies_compiler_type=none
10115 if test "$am_compiler_list" = ""; then
10116 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10117 fi
10118 for depmode in $am_compiler_list; do
10119 # We need to recreate these files for each test, as the compiler may
10120 # overwrite some of them when testing with obscure command lines.
10121 # This happens at least with the AIX C compiler.
10122 echo '#include "conftest.h"' > conftest.c
10123 echo 'int i;' > conftest.h
10124 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
10125
10126 case $depmode in
10127 nosideeffect)
10128 # after this tag, mechanisms are not by side-effect, so they'll
10129 # only be used when explicitly requested
10130 if test "x$enable_dependency_tracking" = xyes; then
10131 continue
10132 else
10133 break
10134 fi
10135 ;;
10136 none) break ;;
10137 esac
10138 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10139 # mode. It turns out that the SunPro C++ compiler does not properly
10140 # handle `-M -o', and we need to detect this.
10141 if depmode=$depmode \
10142 source=conftest.c object=conftest.o \
10143 depfile=conftest.Po tmpdepfile=conftest.TPo \
10144 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
10145 grep conftest.h conftest.Po > /dev/null 2>&1 &&
10146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10147 am_cv_CC_dependencies_compiler_type=$depmode
10148 break
10149 fi
10150 done
10151
10152 cd ..
10153 rm -rf conftest.dir
10154else
10155 am_cv_CC_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +000010156fi
10157
jjako286bc982003-01-28 23:17:50 +000010158fi
10159echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
10160echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
10161CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10162
10163
10164depcc="$CXX" am_compiler_list=
10165
10166echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10167echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10168if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +000010170else
jjako286bc982003-01-28 23:17:50 +000010171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10172 # We make a subdir and do the tests there. Otherwise we can end up
10173 # making bogus files that we don't know about and never remove. For
10174 # instance it was reported that on HP-UX the gcc test will end up
10175 # making a dummy file named `D' -- because `-MD' means `put the output
10176 # in D'.
10177 mkdir conftest.dir
10178 # Copy depcomp to subdir because otherwise we won't find it if we're
10179 # using a relative directory.
10180 cp "$am_depcomp" conftest.dir
10181 cd conftest.dir
10182
10183 am_cv_CXX_dependencies_compiler_type=none
10184 if test "$am_compiler_list" = ""; then
10185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10186 fi
10187 for depmode in $am_compiler_list; do
10188 # We need to recreate these files for each test, as the compiler may
10189 # overwrite some of them when testing with obscure command lines.
10190 # This happens at least with the AIX C compiler.
10191 echo '#include "conftest.h"' > conftest.c
10192 echo 'int i;' > conftest.h
10193 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
10194
10195 case $depmode in
10196 nosideeffect)
10197 # after this tag, mechanisms are not by side-effect, so they'll
10198 # only be used when explicitly requested
10199 if test "x$enable_dependency_tracking" = xyes; then
10200 continue
10201 else
10202 break
10203 fi
10204 ;;
10205 none) break ;;
10206 esac
10207 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10208 # mode. It turns out that the SunPro C++ compiler does not properly
10209 # handle `-M -o', and we need to detect this.
10210 if depmode=$depmode \
10211 source=conftest.c object=conftest.o \
10212 depfile=conftest.Po tmpdepfile=conftest.TPo \
10213 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
10214 grep conftest.h conftest.Po > /dev/null 2>&1 &&
10215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10216 am_cv_CXX_dependencies_compiler_type=$depmode
10217 break
10218 fi
10219 done
10220
10221 cd ..
10222 rm -rf conftest.dir
10223else
10224 am_cv_CXX_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +000010225fi
10226
jjako286bc982003-01-28 23:17:50 +000010227fi
10228echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10229echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
10230CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
jjako52c24142002-12-16 13:33:51 +000010231
10232
jjako286bc982003-01-28 23:17:50 +000010233
10234
jjako08d331d2003-10-13 20:33:30 +000010235 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 +000010236
10237cat >confcache <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000010238# This file is a shell script that caches the results of configure
10239# tests run on this system so they can be shared between configure
jjako286bc982003-01-28 23:17:50 +000010240# scripts and configure runs, see configure's option --config-cache.
10241# It is not useful on other systems. If it contains results you don't
10242# want to keep, you may remove or edit it.
jjako52c24142002-12-16 13:33:51 +000010243#
jjako286bc982003-01-28 23:17:50 +000010244# config.status only pays attention to the cache file if you give it
10245# the --recheck option to rerun configure.
jjako52c24142002-12-16 13:33:51 +000010246#
jjako08d331d2003-10-13 20:33:30 +000010247# `ac_cv_env_foo' variables (set or unset) will be overridden when
jjako286bc982003-01-28 23:17:50 +000010248# loading this file, other *unset* `ac_cv_foo' will be assigned the
10249# following values.
10250
10251_ACEOF
10252
jjako52c24142002-12-16 13:33:51 +000010253# The following way of writing the cache mishandles newlines in values,
10254# but we know of no workaround that is simple, portable, and efficient.
10255# So, don't put newlines in cache variables' values.
10256# Ultrix sh set writes to stderr and can't be redirected directly,
10257# and sets the high bit in the cache file unless we assign to the vars.
jjako286bc982003-01-28 23:17:50 +000010258{
10259 (set) 2>&1 |
10260 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10261 *ac_space=\ *)
10262 # `set' does not quote correctly, so add quotes (double-quote
10263 # substitution turns \\\\ into \\, and sed turns \\ into \).
10264 sed -n \
10265 "s/'/'\\\\''/g;
10266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10267 ;;
10268 *)
10269 # `set' quotes correctly as required by POSIX, so do not add quotes.
10270 sed -n \
10271 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10272 ;;
10273 esac;
10274} |
10275 sed '
10276 t clear
10277 : clear
10278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10279 t end
10280 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10281 : end' >>confcache
jjako08d331d2003-10-13 20:33:30 +000010282if diff $cache_file confcache >/dev/null 2>&1; then :; else
jjako52c24142002-12-16 13:33:51 +000010283 if test -w $cache_file; then
jjako286bc982003-01-28 23:17:50 +000010284 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10285 cat confcache >$cache_file
jjako52c24142002-12-16 13:33:51 +000010286 else
10287 echo "not updating unwritable cache $cache_file"
10288 fi
10289fi
10290rm -f confcache
10291
jjako52c24142002-12-16 13:33:51 +000010292test "x$prefix" = xNONE && prefix=$ac_default_prefix
10293# Let make expand exec_prefix.
10294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10295
jjako286bc982003-01-28 23:17:50 +000010296# VPATH may cause trouble with some makes, so we remove $(srcdir),
10297# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10298# trailing colons and then remove the whole line if VPATH becomes empty
10299# (actually we leave an empty line to preserve line numbers).
jjako52c24142002-12-16 13:33:51 +000010300if test "x$srcdir" = x.; then
jjako286bc982003-01-28 23:17:50 +000010301 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10302s/:*\$(srcdir):*/:/;
10303s/:*\${srcdir}:*/:/;
10304s/:*@srcdir@:*/:/;
10305s/^\([^=]*=[ ]*\):*/\1/;
10306s/:*$//;
10307s/^[^=]*=[ ]*$//;
10308}'
jjako52c24142002-12-16 13:33:51 +000010309fi
10310
jjako286bc982003-01-28 23:17:50 +000010311DEFS=-DHAVE_CONFIG_H
jjako52c24142002-12-16 13:33:51 +000010312
jjako08d331d2003-10-13 20:33:30 +000010313ac_libobjs=
10314ac_ltlibobjs=
10315for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10316 # 1. Remove the extension, and $U if already installed.
10317 ac_i=`echo "$ac_i" |
10318 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10319 # 2. Add them.
10320 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10321 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10322done
10323LIBOBJS=$ac_libobjs
10324
10325LTLIBOBJS=$ac_ltlibobjs
10326
10327
jjako286bc982003-01-28 23:17:50 +000010328if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10329 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10330Usually this means the macro was only invoked conditionally." >&5
10331echo "$as_me: error: conditional \"AMDEP\" was never defined.
10332Usually this means the macro was only invoked conditionally." >&2;}
10333 { (exit 1); exit 1; }; }
10334fi
jjako52c24142002-12-16 13:33:51 +000010335
jjako52c24142002-12-16 13:33:51 +000010336: ${CONFIG_STATUS=./config.status}
jjako286bc982003-01-28 23:17:50 +000010337ac_clean_files_save=$ac_clean_files
10338ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10339{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10340echo "$as_me: creating $CONFIG_STATUS" >&6;}
10341cat >$CONFIG_STATUS <<_ACEOF
10342#! $SHELL
10343# Generated by $as_me.
jjako52c24142002-12-16 13:33:51 +000010344# Run this file to recreate the current configuration.
jjako52c24142002-12-16 13:33:51 +000010345# Compiler output produced by configure, useful for debugging
jjako286bc982003-01-28 23:17:50 +000010346# configure, is in config.log if it exists.
jjako52c24142002-12-16 13:33:51 +000010347
jjako286bc982003-01-28 23:17:50 +000010348debug=false
jjako08d331d2003-10-13 20:33:30 +000010349ac_cs_recheck=false
10350ac_cs_silent=false
jjako286bc982003-01-28 23:17:50 +000010351SHELL=\${CONFIG_SHELL-$SHELL}
10352_ACEOF
jjako52c24142002-12-16 13:33:51 +000010353
jjako286bc982003-01-28 23:17:50 +000010354cat >>$CONFIG_STATUS <<\_ACEOF
jjako286bc982003-01-28 23:17:50 +000010355## --------------------- ##
10356## M4sh Initialization. ##
10357## --------------------- ##
jjako52c24142002-12-16 13:33:51 +000010358
jjako286bc982003-01-28 23:17:50 +000010359# Be Bourne compatible
10360if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10361 emulate sh
10362 NULLCMD=:
jjako08d331d2003-10-13 20:33:30 +000010363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10364 # is contrary to our usage. Disable this feature.
10365 alias -g '${1+"$@"}'='"$@"'
jjako286bc982003-01-28 23:17:50 +000010366elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10367 set -o posix
jjako52c24142002-12-16 13:33:51 +000010368fi
jjako52c24142002-12-16 13:33:51 +000010369
jjako286bc982003-01-28 23:17:50 +000010370# Support unset when possible.
10371if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10372 as_unset=unset
10373else
10374 as_unset=false
10375fi
jjako52c24142002-12-16 13:33:51 +000010376
jjako08d331d2003-10-13 20:33:30 +000010377
10378# Work around bugs in pre-3.0 UWIN ksh.
10379$as_unset ENV MAIL MAILPATH
10380PS1='$ '
10381PS2='> '
10382PS4='+ '
10383
10384# NLS nuisances.
10385for as_var in \
10386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10388 LC_TELEPHONE LC_TIME
10389do
10390 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10391 eval $as_var=C; export $as_var
10392 else
10393 $as_unset $as_var
10394 fi
10395done
10396
10397# Required to use basename.
10398if expr a : '\(a\)' >/dev/null 2>&1; then
10399 as_expr=expr
10400else
10401 as_expr=false
10402fi
10403
10404if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10405 as_basename=basename
10406else
10407 as_basename=false
10408fi
jjako286bc982003-01-28 23:17:50 +000010409
10410
10411# Name of the executable.
jjako08d331d2003-10-13 20:33:30 +000010412as_me=`$as_basename "$0" ||
jjako286bc982003-01-28 23:17:50 +000010413$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10414 X"$0" : 'X\(//\)$' \| \
10415 X"$0" : 'X\(/\)$' \| \
10416 . : '\(.\)' 2>/dev/null ||
10417echo X/"$0" |
10418 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10419 /^X\/\(\/\/\)$/{ s//\1/; q; }
10420 /^X\/\(\/\).*/{ s//\1/; q; }
10421 s/.*/./; q'`
10422
jjako08d331d2003-10-13 20:33:30 +000010423
jjako286bc982003-01-28 23:17:50 +000010424# PATH needs CR, and LINENO needs CR and PATH.
10425# Avoid depending upon Character Ranges.
10426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10429as_cr_digits='0123456789'
10430as_cr_alnum=$as_cr_Letters$as_cr_digits
10431
10432# The user is always right.
10433if test "${PATH_SEPARATOR+set}" != set; then
jjako08d331d2003-10-13 20:33:30 +000010434 echo "#! /bin/sh" >conf$$.sh
10435 echo "exit 0" >>conf$$.sh
10436 chmod +x conf$$.sh
10437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +000010438 PATH_SEPARATOR=';'
10439 else
10440 PATH_SEPARATOR=:
10441 fi
jjako08d331d2003-10-13 20:33:30 +000010442 rm -f conf$$.sh
jjako286bc982003-01-28 23:17:50 +000010443fi
10444
10445
10446 as_lineno_1=$LINENO
10447 as_lineno_2=$LINENO
10448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10449 test "x$as_lineno_1" != "x$as_lineno_2" &&
10450 test "x$as_lineno_3" = "x$as_lineno_2" || {
10451 # Find who we are. Look in the path if we contain no path at all
10452 # relative or not.
10453 case $0 in
10454 *[\\/]* ) as_myself=$0 ;;
10455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10461done
10462
10463 ;;
10464 esac
10465 # We did not find ourselves, most probably we were run as `sh COMMAND'
10466 # in which case we are not to be found in the path.
10467 if test "x$as_myself" = x; then
10468 as_myself=$0
10469 fi
10470 if test ! -f "$as_myself"; then
10471 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10472echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10473 { (exit 1); exit 1; }; }
10474 fi
10475 case $CONFIG_SHELL in
10476 '')
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10479do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for as_base in sh bash ksh sh5; do
10483 case $as_dir in
10484 /*)
10485 if ("$as_dir/$as_base" -c '
10486 as_lineno_1=$LINENO
10487 as_lineno_2=$LINENO
10488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10489 test "x$as_lineno_1" != "x$as_lineno_2" &&
10490 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
jjako08d331d2003-10-13 20:33:30 +000010491 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10492 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
jjako286bc982003-01-28 23:17:50 +000010493 CONFIG_SHELL=$as_dir/$as_base
10494 export CONFIG_SHELL
10495 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10496 fi;;
10497 esac
10498 done
10499done
10500;;
jjako52c24142002-12-16 13:33:51 +000010501 esac
10502
jjako286bc982003-01-28 23:17:50 +000010503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10504 # uniformly replaced by the line number. The first 'sed' inserts a
10505 # line-number line before each line; the second 'sed' does the real
10506 # work. The second script uses 'N' to pair each line-number line
10507 # with the numbered line, and appends trailing '-' during
10508 # substitution so that $LINENO is not a special case at line end.
10509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10510 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10511 sed '=' <$as_myself |
10512 sed '
10513 N
10514 s,$,-,
10515 : loop
10516 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10517 t loop
10518 s,-$,,
10519 s,^['$as_cr_digits']*\n,,
10520 ' >$as_me.lineno &&
10521 chmod +x $as_me.lineno ||
10522 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10523echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10524 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +000010525
jjako286bc982003-01-28 23:17:50 +000010526 # Don't try to exec as it changes $[0], causing all sort of problems
10527 # (the dirname of $[0] is not the place where we might find the
10528 # original and so on. Autoconf is especially sensible to this).
10529 . ./$as_me.lineno
10530 # Exit status is that of the last command.
10531 exit
10532}
10533
10534
10535case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10536 *c*,-n*) ECHO_N= ECHO_C='
10537' ECHO_T=' ' ;;
10538 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10539 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10540esac
10541
10542if expr a : '\(a\)' >/dev/null 2>&1; then
10543 as_expr=expr
10544else
10545 as_expr=false
10546fi
10547
10548rm -f conf$$ conf$$.exe conf$$.file
10549echo >conf$$.file
10550if ln -s conf$$.file conf$$ 2>/dev/null; then
10551 # We could just check for DJGPP; but this test a) works b) is more generic
10552 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10553 if test -f conf$$.exe; then
10554 # Don't use ln at all; we don't have any links
10555 as_ln_s='cp -p'
jjako52c24142002-12-16 13:33:51 +000010556 else
jjako286bc982003-01-28 23:17:50 +000010557 as_ln_s='ln -s'
10558 fi
10559elif ln conf$$.file conf$$ 2>/dev/null; then
10560 as_ln_s=ln
10561else
10562 as_ln_s='cp -p'
10563fi
10564rm -f conf$$ conf$$.exe conf$$.file
10565
jjako08d331d2003-10-13 20:33:30 +000010566if mkdir -p . 2>/dev/null; then
10567 as_mkdir_p=:
10568else
10569 as_mkdir_p=false
10570fi
10571
jjako286bc982003-01-28 23:17:50 +000010572as_executable_p="test -f"
10573
10574# Sed expression to map a string onto a valid CPP name.
10575as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10576
10577# Sed expression to map a string onto a valid variable name.
10578as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10579
10580
10581# IFS
10582# We need space, tab and new line, in precisely that order.
10583as_nl='
10584'
10585IFS=" $as_nl"
10586
10587# CDPATH.
jjako08d331d2003-10-13 20:33:30 +000010588$as_unset CDPATH
jjako286bc982003-01-28 23:17:50 +000010589
10590exec 6>&1
10591
10592# Open the log real soon, to keep \$[0] and so on meaningful, and to
10593# report actual input values of CONFIG_FILES etc. instead of their
10594# values after options handling. Logging --version etc. is OK.
10595exec 5>>config.log
10596{
10597 echo
10598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10599## Running $as_me. ##
10600_ASBOX
10601} >&5
10602cat >&5 <<_CSEOF
10603
jjakoe31b2402004-12-30 23:07:42 +000010604This file was extended by openggsn $as_me 0.83, which was
jjako08d331d2003-10-13 20:33:30 +000010605generated by GNU Autoconf 2.57. Invocation command line was
jjako286bc982003-01-28 23:17:50 +000010606
10607 CONFIG_FILES = $CONFIG_FILES
10608 CONFIG_HEADERS = $CONFIG_HEADERS
10609 CONFIG_LINKS = $CONFIG_LINKS
10610 CONFIG_COMMANDS = $CONFIG_COMMANDS
10611 $ $0 $@
10612
10613_CSEOF
10614echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10615echo >&5
10616_ACEOF
10617
10618# Files that config.status was made for.
10619if test -n "$ac_config_files"; then
10620 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10621fi
10622
10623if test -n "$ac_config_headers"; then
10624 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10625fi
10626
10627if test -n "$ac_config_links"; then
10628 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10629fi
10630
10631if test -n "$ac_config_commands"; then
10632 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10633fi
10634
10635cat >>$CONFIG_STATUS <<\_ACEOF
10636
10637ac_cs_usage="\
10638\`$as_me' instantiates files from templates according to the
10639current configuration.
10640
10641Usage: $0 [OPTIONS] [FILE]...
10642
10643 -h, --help print this help, then exit
10644 -V, --version print version number, then exit
jjako08d331d2003-10-13 20:33:30 +000010645 -q, --quiet do not print progress messages
jjako286bc982003-01-28 23:17:50 +000010646 -d, --debug don't remove temporary files
10647 --recheck update $as_me by reconfiguring in the same conditions
10648 --file=FILE[:TEMPLATE]
10649 instantiate the configuration file FILE
10650 --header=FILE[:TEMPLATE]
10651 instantiate the configuration header FILE
10652
10653Configuration files:
10654$config_files
10655
10656Configuration headers:
10657$config_headers
10658
jjako1d3db972004-01-16 09:56:56 +000010659Configuration links:
10660$config_links
10661
jjako286bc982003-01-28 23:17:50 +000010662Configuration commands:
10663$config_commands
10664
10665Report bugs to <bug-autoconf@gnu.org>."
10666_ACEOF
10667
10668cat >>$CONFIG_STATUS <<_ACEOF
10669ac_cs_version="\\
jjakoe31b2402004-12-30 23:07:42 +000010670openggsn config.status 0.83
jjako08d331d2003-10-13 20:33:30 +000010671configured by $0, generated by GNU Autoconf 2.57,
jjako286bc982003-01-28 23:17:50 +000010672 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10673
10674Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10675Free Software Foundation, Inc.
10676This config.status script is free software; the Free Software Foundation
10677gives unlimited permission to copy, distribute and modify it."
10678srcdir=$srcdir
10679INSTALL="$INSTALL"
10680_ACEOF
10681
10682cat >>$CONFIG_STATUS <<\_ACEOF
10683# If no file are specified by the user, then we need to provide default
10684# value. By we need to know if files were specified by the user.
10685ac_need_defaults=:
10686while test $# != 0
10687do
10688 case $1 in
10689 --*=*)
10690 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10691 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
jjako08d331d2003-10-13 20:33:30 +000010692 ac_shift=:
jjako286bc982003-01-28 23:17:50 +000010693 ;;
jjako08d331d2003-10-13 20:33:30 +000010694 -*)
10695 ac_option=$1
10696 ac_optarg=$2
10697 ac_shift=shift
10698 ;;
jjako286bc982003-01-28 23:17:50 +000010699 *) # This is not an option, so the user has probably given explicit
10700 # arguments.
jjako08d331d2003-10-13 20:33:30 +000010701 ac_option=$1
jjako286bc982003-01-28 23:17:50 +000010702 ac_need_defaults=false;;
10703 esac
10704
jjako08d331d2003-10-13 20:33:30 +000010705 case $ac_option in
jjako286bc982003-01-28 23:17:50 +000010706 # Handling of the options.
10707_ACEOF
jjako0a120b22003-07-10 18:35:50 +000010708cat >>$CONFIG_STATUS <<\_ACEOF
jjako08d331d2003-10-13 20:33:30 +000010709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10710 ac_cs_recheck=: ;;
jjako286bc982003-01-28 23:17:50 +000010711 --version | --vers* | -V )
10712 echo "$ac_cs_version"; exit 0 ;;
10713 --he | --h)
10714 # Conflict between --help and --header
10715 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10716Try \`$0 --help' for more information." >&5
10717echo "$as_me: error: ambiguous option: $1
10718Try \`$0 --help' for more information." >&2;}
10719 { (exit 1); exit 1; }; };;
10720 --help | --hel | -h )
10721 echo "$ac_cs_usage"; exit 0 ;;
10722 --debug | --d* | -d )
10723 debug=: ;;
10724 --file | --fil | --fi | --f )
jjako08d331d2003-10-13 20:33:30 +000010725 $ac_shift
10726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
jjako286bc982003-01-28 23:17:50 +000010727 ac_need_defaults=false;;
10728 --header | --heade | --head | --hea )
jjako08d331d2003-10-13 20:33:30 +000010729 $ac_shift
10730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
jjako286bc982003-01-28 23:17:50 +000010731 ac_need_defaults=false;;
jjako08d331d2003-10-13 20:33:30 +000010732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10734 ac_cs_silent=: ;;
jjako286bc982003-01-28 23:17:50 +000010735
10736 # This is an error.
10737 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10738Try \`$0 --help' for more information." >&5
10739echo "$as_me: error: unrecognized option: $1
10740Try \`$0 --help' for more information." >&2;}
10741 { (exit 1); exit 1; }; } ;;
10742
10743 *) ac_config_targets="$ac_config_targets $1" ;;
10744
10745 esac
10746 shift
10747done
10748
jjako08d331d2003-10-13 20:33:30 +000010749ac_configure_extra_args=
10750
10751if $ac_cs_silent; then
10752 exec 6>/dev/null
10753 ac_configure_extra_args="$ac_configure_extra_args --silent"
10754fi
10755
10756_ACEOF
10757cat >>$CONFIG_STATUS <<_ACEOF
10758if \$ac_cs_recheck; then
10759 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10760 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10761fi
10762
jjako286bc982003-01-28 23:17:50 +000010763_ACEOF
10764
10765cat >>$CONFIG_STATUS <<_ACEOF
10766#
10767# INIT-COMMANDS section.
10768#
10769
10770AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10771
10772_ACEOF
10773
10774
10775
10776cat >>$CONFIG_STATUS <<\_ACEOF
10777for ac_config_target in $ac_config_targets
10778do
10779 case "$ac_config_target" in
10780 # Handling of arguments.
10781 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10782 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10783 "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;;
10784 "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;;
10785 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
10786 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
10787 "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;;
10788 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10789 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
jjakoa9639f32003-07-07 15:30:11 +000010790 "openggsn.spec" ) CONFIG_FILES="$CONFIG_FILES openggsn.spec" ;;
jjako1d3db972004-01-16 09:56:56 +000010791 "ggsn/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS ggsn/getopt.h:ggsn/gnugetopt.h" ;;
10792 "sgsnemu/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS sgsnemu/getopt.h:sgsnemu/gnugetopt.h" ;;
jjako286bc982003-01-28 23:17:50 +000010793 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10794 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10795 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10796echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10797 { (exit 1); exit 1; }; };;
10798 esac
10799done
10800
10801# If the user did not use the arguments to specify the items to instantiate,
10802# then the envvar interface is used. Set only those that are not.
10803# We use the long form for the default assignment because of an extremely
10804# bizarre bug on SunOS 4.1.3.
10805if $ac_need_defaults; then
10806 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10807 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
jjako1d3db972004-01-16 09:56:56 +000010808 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
jjako286bc982003-01-28 23:17:50 +000010809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10810fi
10811
jjako08d331d2003-10-13 20:33:30 +000010812# Have a temporary directory for convenience. Make it in the build tree
10813# simply because there is no reason to put it here, and in addition,
10814# creating and moving files from /tmp can sometimes cause problems.
jjako286bc982003-01-28 23:17:50 +000010815# Create a temporary directory, and hook for its removal unless debugging.
10816$debug ||
10817{
10818 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10819 trap '{ (exit 1); exit 1; }' 1 2 13 15
10820}
10821
10822# Create a (secure) tmp directory for tmp files.
jjako08d331d2003-10-13 20:33:30 +000010823
jjako286bc982003-01-28 23:17:50 +000010824{
jjako08d331d2003-10-13 20:33:30 +000010825 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
jjako286bc982003-01-28 23:17:50 +000010826 test -n "$tmp" && test -d "$tmp"
10827} ||
10828{
jjako08d331d2003-10-13 20:33:30 +000010829 tmp=./confstat$$-$RANDOM
jjako286bc982003-01-28 23:17:50 +000010830 (umask 077 && mkdir $tmp)
10831} ||
10832{
jjako08d331d2003-10-13 20:33:30 +000010833 echo "$me: cannot create a temporary directory in ." >&2
jjako286bc982003-01-28 23:17:50 +000010834 { (exit 1); exit 1; }
10835}
10836
10837_ACEOF
10838
10839cat >>$CONFIG_STATUS <<_ACEOF
10840
10841#
10842# CONFIG_FILES section.
10843#
10844
10845# No need to generate the scripts if there are no CONFIG_FILES.
10846# This happens for instance when ./config.status config.h
10847if test -n "\$CONFIG_FILES"; then
10848 # Protect against being on the right side of a sed subst in config.status.
10849 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10850 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10851s,@SHELL@,$SHELL,;t t
10852s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10853s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10854s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10855s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10856s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10857s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10858s,@exec_prefix@,$exec_prefix,;t t
10859s,@prefix@,$prefix,;t t
10860s,@program_transform_name@,$program_transform_name,;t t
10861s,@bindir@,$bindir,;t t
10862s,@sbindir@,$sbindir,;t t
10863s,@libexecdir@,$libexecdir,;t t
10864s,@datadir@,$datadir,;t t
10865s,@sysconfdir@,$sysconfdir,;t t
10866s,@sharedstatedir@,$sharedstatedir,;t t
10867s,@localstatedir@,$localstatedir,;t t
10868s,@libdir@,$libdir,;t t
10869s,@includedir@,$includedir,;t t
10870s,@oldincludedir@,$oldincludedir,;t t
10871s,@infodir@,$infodir,;t t
10872s,@mandir@,$mandir,;t t
10873s,@build_alias@,$build_alias,;t t
10874s,@host_alias@,$host_alias,;t t
10875s,@target_alias@,$target_alias,;t t
10876s,@DEFS@,$DEFS,;t t
10877s,@ECHO_C@,$ECHO_C,;t t
10878s,@ECHO_N@,$ECHO_N,;t t
10879s,@ECHO_T@,$ECHO_T,;t t
10880s,@LIBS@,$LIBS,;t t
jjako77edc822004-09-10 17:19:31 +000010881s,@build@,$build,;t t
10882s,@build_cpu@,$build_cpu,;t t
10883s,@build_vendor@,$build_vendor,;t t
10884s,@build_os@,$build_os,;t t
10885s,@host@,$host,;t t
10886s,@host_cpu@,$host_cpu,;t t
10887s,@host_vendor@,$host_vendor,;t t
10888s,@host_os@,$host_os,;t t
10889s,@target@,$target,;t t
10890s,@target_cpu@,$target_cpu,;t t
10891s,@target_vendor@,$target_vendor,;t t
10892s,@target_os@,$target_os,;t t
jjako286bc982003-01-28 23:17:50 +000010893s,@CC@,$CC,;t t
10894s,@CFLAGS@,$CFLAGS,;t t
10895s,@LDFLAGS@,$LDFLAGS,;t t
10896s,@CPPFLAGS@,$CPPFLAGS,;t t
10897s,@ac_ct_CC@,$ac_ct_CC,;t t
10898s,@EXEEXT@,$EXEEXT,;t t
10899s,@OBJEXT@,$OBJEXT,;t t
10900s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10901s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10902s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10903s,@AWK@,$AWK,;t t
10904s,@CPP@,$CPP,;t t
10905s,@CXX@,$CXX,;t t
10906s,@CXXFLAGS@,$CXXFLAGS,;t t
10907s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10908s,@RANLIB@,$RANLIB,;t t
10909s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
jjako286bc982003-01-28 23:17:50 +000010910s,@LN_S@,$LN_S,;t t
10911s,@ECHO@,$ECHO,;t t
10912s,@STRIP@,$STRIP,;t t
10913s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
jjako08d331d2003-10-13 20:33:30 +000010914s,@EGREP@,$EGREP,;t t
jjako286bc982003-01-28 23:17:50 +000010915s,@LIBTOOL@,$LIBTOOL,;t t
jjakoa9639f32003-07-07 15:30:11 +000010916s,@EXEC_LDFLAGS@,$EXEC_LDFLAGS,;t t
jjakoe31b2402004-12-30 23:07:42 +000010917s,@EXEC_LDADD@,$EXEC_LDADD,;t t
jjako286bc982003-01-28 23:17:50 +000010918s,@LIBOBJS@,$LIBOBJS,;t t
10919s,@PACKAGE@,$PACKAGE,;t t
10920s,@VERSION@,$VERSION,;t t
10921s,@ACLOCAL@,$ACLOCAL,;t t
10922s,@AUTOCONF@,$AUTOCONF,;t t
10923s,@AUTOMAKE@,$AUTOMAKE,;t t
10924s,@AUTOHEADER@,$AUTOHEADER,;t t
10925s,@MAKEINFO@,$MAKEINFO,;t t
10926s,@AMTAR@,$AMTAR,;t t
10927s,@install_sh@,$install_sh,;t t
10928s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10929s,@SET_MAKE@,$SET_MAKE,;t t
10930s,@DEPDIR@,$DEPDIR,;t t
10931s,@am__include@,$am__include,;t t
10932s,@am__quote@,$am__quote,;t t
10933s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10934s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10935s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10936s,@CCDEPMODE@,$CCDEPMODE,;t t
10937s,@CXXDEPMODE@,$CXXDEPMODE,;t t
jjako08d331d2003-10-13 20:33:30 +000010938s,@LTLIBOBJS@,$LTLIBOBJS,;t t
jjako286bc982003-01-28 23:17:50 +000010939CEOF
10940
10941_ACEOF
10942
10943 cat >>$CONFIG_STATUS <<\_ACEOF
10944 # Split the substitutions into bite-sized pieces for seds with
10945 # small command number limits, like on Digital OSF/1 and HP-UX.
10946 ac_max_sed_lines=48
10947 ac_sed_frag=1 # Number of current file.
10948 ac_beg=1 # First line for current file.
10949 ac_end=$ac_max_sed_lines # Line after last line for current file.
10950 ac_more_lines=:
10951 ac_sed_cmds=
10952 while $ac_more_lines; do
10953 if test $ac_beg -gt 1; then
10954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10955 else
10956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10957 fi
10958 if test ! -s $tmp/subs.frag; then
10959 ac_more_lines=false
10960 else
10961 # The purpose of the label and of the branching condition is to
10962 # speed up the sed processing (if there are no `@' at all, there
10963 # is no need to browse any of the substitutions).
10964 # These are the two extra sed commands mentioned above.
10965 (echo ':t
10966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10967 if test -z "$ac_sed_cmds"; then
10968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10969 else
10970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10971 fi
10972 ac_sed_frag=`expr $ac_sed_frag + 1`
10973 ac_beg=$ac_end
10974 ac_end=`expr $ac_end + $ac_max_sed_lines`
10975 fi
10976 done
10977 if test -z "$ac_sed_cmds"; then
10978 ac_sed_cmds=cat
10979 fi
10980fi # test -n "$CONFIG_FILES"
10981
10982_ACEOF
10983cat >>$CONFIG_STATUS <<\_ACEOF
10984for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10986 case $ac_file in
10987 - | *:- | *:-:* ) # input from stdin
10988 cat >$tmp/stdin
10989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10993 * ) ac_file_in=$ac_file.in ;;
10994 esac
10995
10996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10999 X"$ac_file" : 'X\(//\)[^/]' \| \
11000 X"$ac_file" : 'X\(//\)$' \| \
11001 X"$ac_file" : 'X\(/\)' \| \
11002 . : '\(.\)' 2>/dev/null ||
11003echo X"$ac_file" |
11004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11006 /^X\(\/\/\)$/{ s//\1/; q; }
11007 /^X\(\/\).*/{ s//\1/; q; }
11008 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000011009 { if $as_mkdir_p; then
11010 mkdir -p "$ac_dir"
11011 else
11012 as_dir="$ac_dir"
11013 as_dirs=
11014 while test ! -d "$as_dir"; do
11015 as_dirs="$as_dir $as_dirs"
11016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11018 X"$as_dir" : 'X\(//\)[^/]' \| \
11019 X"$as_dir" : 'X\(//\)$' \| \
11020 X"$as_dir" : 'X\(/\)' \| \
11021 . : '\(.\)' 2>/dev/null ||
11022echo X"$as_dir" |
11023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11025 /^X\(\/\/\)$/{ s//\1/; q; }
11026 /^X\(\/\).*/{ s//\1/; q; }
11027 s/.*/./; q'`
11028 done
11029 test ! -n "$as_dirs" || mkdir $as_dirs
11030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11031echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11032 { (exit 1); exit 1; }; }; }
jjako286bc982003-01-28 23:17:50 +000011033
11034 ac_builddir=.
11035
11036if test "$ac_dir" != .; then
11037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11038 # A "../" for each directory in $ac_dir_suffix.
11039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11040else
11041 ac_dir_suffix= ac_top_builddir=
11042fi
11043
11044case $srcdir in
11045 .) # No --srcdir option. We are building in place.
11046 ac_srcdir=.
11047 if test -z "$ac_top_builddir"; then
11048 ac_top_srcdir=.
11049 else
11050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11051 fi ;;
11052 [\\/]* | ?:[\\/]* ) # Absolute path.
11053 ac_srcdir=$srcdir$ac_dir_suffix;
11054 ac_top_srcdir=$srcdir ;;
11055 *) # Relative path.
11056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11058esac
11059# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11060# absolute.
11061ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
jjako08d331d2003-10-13 20:33:30 +000011062ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
jjako286bc982003-01-28 23:17:50 +000011063ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11064ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11065
11066
11067 case $INSTALL in
11068 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11069 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11070 esac
11071
11072 if test x"$ac_file" != x-; then
11073 { echo "$as_me:$LINENO: creating $ac_file" >&5
11074echo "$as_me: creating $ac_file" >&6;}
11075 rm -f "$ac_file"
11076 fi
11077 # Let's still pretend it is `configure' which instantiates (i.e., don't
11078 # use $as_me), people would be surprised to read:
11079 # /* config.h. Generated by config.status. */
11080 if test x"$ac_file" = x-; then
11081 configure_input=
11082 else
11083 configure_input="$ac_file. "
11084 fi
11085 configure_input=$configure_input"Generated from `echo $ac_file_in |
11086 sed 's,.*/,,'` by configure."
11087
11088 # First look for the input files in the build tree, otherwise in the
11089 # src tree.
11090 ac_file_inputs=`IFS=:
11091 for f in $ac_file_in; do
11092 case $f in
11093 -) echo $tmp/stdin ;;
11094 [\\/$]*)
11095 # Absolute (can't be DOS-style, as IFS=:)
11096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11097echo "$as_me: error: cannot find input file: $f" >&2;}
11098 { (exit 1); exit 1; }; }
11099 echo $f;;
11100 *) # Relative
11101 if test -f "$f"; then
11102 # Build tree
11103 echo $f
11104 elif test -f "$srcdir/$f"; then
11105 # Source tree
11106 echo $srcdir/$f
11107 else
11108 # /dev/null tree
11109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11110echo "$as_me: error: cannot find input file: $f" >&2;}
11111 { (exit 1); exit 1; }; }
11112 fi;;
11113 esac
11114 done` || { (exit 1); exit 1; }
11115_ACEOF
11116cat >>$CONFIG_STATUS <<_ACEOF
11117 sed "$ac_vpsub
11118$extrasub
11119_ACEOF
11120cat >>$CONFIG_STATUS <<\_ACEOF
11121:t
11122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11123s,@configure_input@,$configure_input,;t t
11124s,@srcdir@,$ac_srcdir,;t t
11125s,@abs_srcdir@,$ac_abs_srcdir,;t t
11126s,@top_srcdir@,$ac_top_srcdir,;t t
11127s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11128s,@builddir@,$ac_builddir,;t t
11129s,@abs_builddir@,$ac_abs_builddir,;t t
11130s,@top_builddir@,$ac_top_builddir,;t t
11131s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11132s,@INSTALL@,$ac_INSTALL,;t t
11133" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11134 rm -f $tmp/stdin
11135 if test x"$ac_file" != x-; then
11136 mv $tmp/out $ac_file
11137 else
11138 cat $tmp/out
11139 rm -f $tmp/out
jjako52c24142002-12-16 13:33:51 +000011140 fi
11141
jjako286bc982003-01-28 23:17:50 +000011142done
11143_ACEOF
11144cat >>$CONFIG_STATUS <<\_ACEOF
11145
11146#
11147# CONFIG_HEADER section.
11148#
11149
11150# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11151# NAME is the cpp macro being defined and VALUE is the value it is being given.
11152#
11153# ac_d sets the value in "#define NAME VALUE" lines.
11154ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11155ac_dB='[ ].*$,\1#\2'
11156ac_dC=' '
11157ac_dD=',;t'
11158# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11159ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11160ac_uB='$,\1#\2define\3'
11161ac_uC=' '
11162ac_uD=',;t'
11163
11164for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11166 case $ac_file in
11167 - | *:- | *:-:* ) # input from stdin
11168 cat >$tmp/stdin
11169 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11171 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11173 * ) ac_file_in=$ac_file.in ;;
11174 esac
11175
11176 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11177echo "$as_me: creating $ac_file" >&6;}
11178
11179 # First look for the input files in the build tree, otherwise in the
11180 # src tree.
11181 ac_file_inputs=`IFS=:
11182 for f in $ac_file_in; do
11183 case $f in
11184 -) echo $tmp/stdin ;;
11185 [\\/$]*)
11186 # Absolute (can't be DOS-style, as IFS=:)
11187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11188echo "$as_me: error: cannot find input file: $f" >&2;}
11189 { (exit 1); exit 1; }; }
11190 echo $f;;
11191 *) # Relative
11192 if test -f "$f"; then
11193 # Build tree
11194 echo $f
11195 elif test -f "$srcdir/$f"; then
11196 # Source tree
11197 echo $srcdir/$f
11198 else
11199 # /dev/null tree
11200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11201echo "$as_me: error: cannot find input file: $f" >&2;}
11202 { (exit 1); exit 1; }; }
11203 fi;;
11204 esac
11205 done` || { (exit 1); exit 1; }
11206 # Remove the trailing spaces.
11207 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11208
11209_ACEOF
11210
11211# Transform confdefs.h into two sed scripts, `conftest.defines' and
11212# `conftest.undefs', that substitutes the proper values into
11213# config.h.in to produce config.h. The first handles `#define'
11214# templates, and the second `#undef' templates.
11215# And first: Protect against being on the right side of a sed subst in
11216# config.status. Protect against being in an unquoted here document
11217# in config.status.
11218rm -f conftest.defines conftest.undefs
11219# Using a here document instead of a string reduces the quoting nightmare.
11220# Putting comments in sed scripts is not portable.
11221#
11222# `end' is used to avoid that the second main sed command (meant for
11223# 0-ary CPP macros) applies to n-ary macro definitions.
11224# See the Autoconf documentation for `clear'.
11225cat >confdef2sed.sed <<\_ACEOF
11226s/[\\&,]/\\&/g
11227s,[\\$`],\\&,g
11228t clear
11229: clear
11230s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11231t end
11232s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11233: end
11234_ACEOF
11235# If some macros were called several times there might be several times
11236# the same #defines, which is useless. Nevertheless, we may not want to
11237# sort them, since we want the *last* AC-DEFINE to be honored.
11238uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11239sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11240rm -f confdef2sed.sed
11241
11242# This sed command replaces #undef with comments. This is necessary, for
11243# example, in the case of _POSIX_SOURCE, which is predefined and required
11244# on some systems where configure will not decide to define it.
11245cat >>conftest.undefs <<\_ACEOF
11246s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11247_ACEOF
11248
11249# Break up conftest.defines because some shells have a limit on the size
11250# of here documents, and old seds have small limits too (100 cmds).
11251echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
jjako08d331d2003-10-13 20:33:30 +000011252echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000011253echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11254echo ' :' >>$CONFIG_STATUS
11255rm -f conftest.tail
11256while grep . conftest.defines >/dev/null
11257do
11258 # Write a limited-size here document to $tmp/defines.sed.
11259 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11260 # Speed up: don't consider the non `#define' lines.
11261 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11262 # Work around the forget-to-reset-the-flag bug.
11263 echo 't clr' >>$CONFIG_STATUS
11264 echo ': clr' >>$CONFIG_STATUS
11265 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11266 echo 'CEOF
11267 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11268 rm -f $tmp/in
11269 mv $tmp/out $tmp/in
11270' >>$CONFIG_STATUS
11271 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11272 rm -f conftest.defines
11273 mv conftest.tail conftest.defines
11274done
11275rm -f conftest.defines
jjako08d331d2003-10-13 20:33:30 +000011276echo ' fi # grep' >>$CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000011277echo >>$CONFIG_STATUS
11278
11279# Break up conftest.undefs because some shells have a limit on the size
11280# of here documents, and old seds have small limits too (100 cmds).
11281echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11282rm -f conftest.tail
11283while grep . conftest.undefs >/dev/null
11284do
11285 # Write a limited-size here document to $tmp/undefs.sed.
11286 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11287 # Speed up: don't consider the non `#undef'
11288 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11289 # Work around the forget-to-reset-the-flag bug.
11290 echo 't clr' >>$CONFIG_STATUS
11291 echo ': clr' >>$CONFIG_STATUS
11292 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11293 echo 'CEOF
11294 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11295 rm -f $tmp/in
11296 mv $tmp/out $tmp/in
11297' >>$CONFIG_STATUS
11298 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11299 rm -f conftest.undefs
11300 mv conftest.tail conftest.undefs
11301done
11302rm -f conftest.undefs
11303
11304cat >>$CONFIG_STATUS <<\_ACEOF
11305 # Let's still pretend it is `configure' which instantiates (i.e., don't
11306 # use $as_me), people would be surprised to read:
11307 # /* config.h. Generated by config.status. */
11308 if test x"$ac_file" = x-; then
11309 echo "/* Generated by configure. */" >$tmp/config.h
11310 else
11311 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11312 fi
11313 cat $tmp/in >>$tmp/config.h
11314 rm -f $tmp/in
11315 if test x"$ac_file" != x-; then
jjako08d331d2003-10-13 20:33:30 +000011316 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
jjako286bc982003-01-28 23:17:50 +000011317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11318echo "$as_me: $ac_file is unchanged" >&6;}
11319 else
11320 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11321$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11322 X"$ac_file" : 'X\(//\)[^/]' \| \
11323 X"$ac_file" : 'X\(//\)$' \| \
11324 X"$ac_file" : 'X\(/\)' \| \
11325 . : '\(.\)' 2>/dev/null ||
11326echo X"$ac_file" |
11327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11329 /^X\(\/\/\)$/{ s//\1/; q; }
11330 /^X\(\/\).*/{ s//\1/; q; }
11331 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000011332 { if $as_mkdir_p; then
11333 mkdir -p "$ac_dir"
11334 else
11335 as_dir="$ac_dir"
11336 as_dirs=
11337 while test ! -d "$as_dir"; do
11338 as_dirs="$as_dir $as_dirs"
11339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11341 X"$as_dir" : 'X\(//\)[^/]' \| \
11342 X"$as_dir" : 'X\(//\)$' \| \
11343 X"$as_dir" : 'X\(/\)' \| \
11344 . : '\(.\)' 2>/dev/null ||
11345echo X"$as_dir" |
11346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11348 /^X\(\/\/\)$/{ s//\1/; q; }
11349 /^X\(\/\).*/{ s//\1/; q; }
11350 s/.*/./; q'`
11351 done
11352 test ! -n "$as_dirs" || mkdir $as_dirs
11353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11355 { (exit 1); exit 1; }; }; }
jjako286bc982003-01-28 23:17:50 +000011356
11357 rm -f $ac_file
11358 mv $tmp/config.h $ac_file
11359 fi
11360 else
11361 cat $tmp/config.h
11362 rm -f $tmp/config.h
11363 fi
11364 # Run the commands associated with the file.
11365 case $ac_file in
11366 config.h ) # update the timestamp
11367echo 'timestamp for config.h' >"./stamp-h1"
11368 ;;
11369 esac
11370done
11371_ACEOF
11372cat >>$CONFIG_STATUS <<\_ACEOF
11373
11374#
jjako1d3db972004-01-16 09:56:56 +000011375# CONFIG_LINKS section.
11376#
11377
11378for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
11379 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11380 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11381
11382 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
11383echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
11384
11385 if test ! -r $srcdir/$ac_source; then
11386 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
11387echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
11388 { (exit 1); exit 1; }; }
11389 fi
11390 rm -f $ac_dest
11391
11392 # Make relative symlinks.
11393 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
11394$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11395 X"$ac_dest" : 'X\(//\)[^/]' \| \
11396 X"$ac_dest" : 'X\(//\)$' \| \
11397 X"$ac_dest" : 'X\(/\)' \| \
11398 . : '\(.\)' 2>/dev/null ||
11399echo X"$ac_dest" |
11400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11402 /^X\(\/\/\)$/{ s//\1/; q; }
11403 /^X\(\/\).*/{ s//\1/; q; }
11404 s/.*/./; q'`
11405 { if $as_mkdir_p; then
11406 mkdir -p "$ac_dest_dir"
11407 else
11408 as_dir="$ac_dest_dir"
11409 as_dirs=
11410 while test ! -d "$as_dir"; do
11411 as_dirs="$as_dir $as_dirs"
11412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11414 X"$as_dir" : 'X\(//\)[^/]' \| \
11415 X"$as_dir" : 'X\(//\)$' \| \
11416 X"$as_dir" : 'X\(/\)' \| \
11417 . : '\(.\)' 2>/dev/null ||
11418echo X"$as_dir" |
11419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11421 /^X\(\/\/\)$/{ s//\1/; q; }
11422 /^X\(\/\).*/{ s//\1/; q; }
11423 s/.*/./; q'`
11424 done
11425 test ! -n "$as_dirs" || mkdir $as_dirs
11426 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
11427echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
11428 { (exit 1); exit 1; }; }; }
11429
11430 ac_builddir=.
11431
11432if test "$ac_dest_dir" != .; then
11433 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
11434 # A "../" for each directory in $ac_dir_suffix.
11435 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11436else
11437 ac_dir_suffix= ac_top_builddir=
11438fi
11439
11440case $srcdir in
11441 .) # No --srcdir option. We are building in place.
11442 ac_srcdir=.
11443 if test -z "$ac_top_builddir"; then
11444 ac_top_srcdir=.
11445 else
11446 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11447 fi ;;
11448 [\\/]* | ?:[\\/]* ) # Absolute path.
11449 ac_srcdir=$srcdir$ac_dir_suffix;
11450 ac_top_srcdir=$srcdir ;;
11451 *) # Relative path.
11452 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11453 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11454esac
11455# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
11456# absolute.
11457ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
11458ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
11459ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
11460ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
11461
11462
11463 case $srcdir in
11464 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
11465 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
11466 esac
11467
11468 # Try a symlink, then a hard link, then a copy.
11469 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11470 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
11471 cp -p $srcdir/$ac_source $ac_dest ||
11472 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
11473echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
11474 { (exit 1); exit 1; }; }
11475done
11476_ACEOF
11477cat >>$CONFIG_STATUS <<\_ACEOF
11478
11479#
jjako286bc982003-01-28 23:17:50 +000011480# CONFIG_COMMANDS section.
11481#
11482for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11483 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11484 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11485 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11486$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11487 X"$ac_dest" : 'X\(//\)[^/]' \| \
11488 X"$ac_dest" : 'X\(//\)$' \| \
11489 X"$ac_dest" : 'X\(/\)' \| \
11490 . : '\(.\)' 2>/dev/null ||
11491echo X"$ac_dest" |
11492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11494 /^X\(\/\/\)$/{ s//\1/; q; }
11495 /^X\(\/\).*/{ s//\1/; q; }
11496 s/.*/./; q'`
11497 ac_builddir=.
11498
11499if test "$ac_dir" != .; then
11500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11501 # A "../" for each directory in $ac_dir_suffix.
11502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11503else
11504 ac_dir_suffix= ac_top_builddir=
11505fi
11506
11507case $srcdir in
11508 .) # No --srcdir option. We are building in place.
11509 ac_srcdir=.
11510 if test -z "$ac_top_builddir"; then
11511 ac_top_srcdir=.
11512 else
11513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11514 fi ;;
11515 [\\/]* | ?:[\\/]* ) # Absolute path.
11516 ac_srcdir=$srcdir$ac_dir_suffix;
11517 ac_top_srcdir=$srcdir ;;
jjako52c24142002-12-16 13:33:51 +000011518 *) # Relative path.
jjako286bc982003-01-28 23:17:50 +000011519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11521esac
11522# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11523# absolute.
11524ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
jjako08d331d2003-10-13 20:33:30 +000011525ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
jjako286bc982003-01-28 23:17:50 +000011526ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11527ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11528
11529
11530 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11531echo "$as_me: executing $ac_dest commands" >&6;}
11532 case $ac_dest in
11533 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11534 # Strip MF so we end up with the name of the file.
11535 mf=`echo "$mf" | sed -e 's/:.*$//'`
11536 # Check whether this is an Automake generated Makefile or not.
11537 # We used to match only the files named `Makefile.in', but
11538 # some people rename them; so instead we look at the file content.
11539 # Grep'ing the first line is not enough: some people post-process
11540 # each Makefile.in and add a new line on top of each file to say so.
11541 # So let's grep whole file.
11542 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11543 dirpart=`(dirname "$mf") 2>/dev/null ||
11544$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11545 X"$mf" : 'X\(//\)[^/]' \| \
11546 X"$mf" : 'X\(//\)$' \| \
11547 X"$mf" : 'X\(/\)' \| \
11548 . : '\(.\)' 2>/dev/null ||
11549echo X"$mf" |
11550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11552 /^X\(\/\/\)$/{ s//\1/; q; }
11553 /^X\(\/\).*/{ s//\1/; q; }
11554 s/.*/./; q'`
11555 else
11556 continue
11557 fi
11558 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11559 # Extract the definition of DEP_FILES from the Makefile without
11560 # running `make'.
11561 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11562 test -z "$DEPDIR" && continue
11563 # When using ansi2knr, U may be empty or an underscore; expand it
11564 U=`sed -n -e '/^U = / s///p' < "$mf"`
11565 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11566 # We invoke sed twice because it is the simplest approach to
11567 # changing $(DEPDIR) to its actual value in the expansion.
11568 for file in `sed -n -e '
11569 /^DEP_FILES = .*\\\\$/ {
11570 s/^DEP_FILES = //
11571 :loop
11572 s/\\\\$//
11573 p
11574 n
11575 /\\\\$/ b loop
11576 p
11577 }
11578 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11580 # Make sure the directory exists.
11581 test -f "$dirpart/$file" && continue
11582 fdir=`(dirname "$file") 2>/dev/null ||
11583$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11584 X"$file" : 'X\(//\)[^/]' \| \
11585 X"$file" : 'X\(//\)$' \| \
11586 X"$file" : 'X\(/\)' \| \
11587 . : '\(.\)' 2>/dev/null ||
11588echo X"$file" |
11589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11591 /^X\(\/\/\)$/{ s//\1/; q; }
11592 /^X\(\/\).*/{ s//\1/; q; }
11593 s/.*/./; q'`
jjako08d331d2003-10-13 20:33:30 +000011594 { if $as_mkdir_p; then
11595 mkdir -p $dirpart/$fdir
11596 else
11597 as_dir=$dirpart/$fdir
11598 as_dirs=
11599 while test ! -d "$as_dir"; do
11600 as_dirs="$as_dir $as_dirs"
11601 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11602$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11603 X"$as_dir" : 'X\(//\)[^/]' \| \
11604 X"$as_dir" : 'X\(//\)$' \| \
11605 X"$as_dir" : 'X\(/\)' \| \
11606 . : '\(.\)' 2>/dev/null ||
11607echo X"$as_dir" |
11608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11610 /^X\(\/\/\)$/{ s//\1/; q; }
11611 /^X\(\/\).*/{ s//\1/; q; }
11612 s/.*/./; q'`
11613 done
11614 test ! -n "$as_dirs" || mkdir $as_dirs
11615 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11616echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11617 { (exit 1); exit 1; }; }; }
jjako52c24142002-12-16 13:33:51 +000011618
jjako286bc982003-01-28 23:17:50 +000011619 # echo "creating $dirpart/$file"
11620 echo '# dummy' > "$dirpart/$file"
11621 done
11622done
11623 ;;
jjako52c24142002-12-16 13:33:51 +000011624 esac
jjako286bc982003-01-28 23:17:50 +000011625done
11626_ACEOF
jjako52c24142002-12-16 13:33:51 +000011627
jjako286bc982003-01-28 23:17:50 +000011628cat >>$CONFIG_STATUS <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000011629
jjako286bc982003-01-28 23:17:50 +000011630{ (exit 0); exit 0; }
11631_ACEOF
jjako52c24142002-12-16 13:33:51 +000011632chmod +x $CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000011633ac_clean_files=$ac_clean_files_save
11634
11635
11636# configure is writing to config.log, and then calls config.status.
11637# config.status does its own redirection, appending to config.log.
11638# Unfortunately, on DOS this fails, as config.log is still kept open
11639# by configure, so config.status won't be able to write to it; its
11640# output is simply discarded. So we exec the FD to /dev/null,
11641# effectively closing config.log, so it can be properly (re)opened and
11642# appended to by config.status. When coming back to configure, we
11643# need to make the FD available again.
11644if test "$no_create" != yes; then
11645 ac_cs_success=:
jjako08d331d2003-10-13 20:33:30 +000011646 ac_config_status_args=
11647 test "$silent" = yes &&
11648 ac_config_status_args="$ac_config_status_args --quiet"
jjako286bc982003-01-28 23:17:50 +000011649 exec 5>/dev/null
jjako08d331d2003-10-13 20:33:30 +000011650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
jjako286bc982003-01-28 23:17:50 +000011651 exec 5>>config.log
11652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11653 # would make configure fail if this is the last instruction.
11654 $ac_cs_success || { (exit 1); exit 1; }
11655fi
jjako52c24142002-12-16 13:33:51 +000011656